Fortress Forever

Go Back   Fortress Forever > Editing > Modding

Reply
 
Thread Tools Display Modes
Old 08-22-2008, 09:22 PM   #1
hlstriker
QUAD ROCKET
Server Owner
Fortress Forever Staff
 
hlstriker's Avatar
 
Join Date: Jul 2007
Class/Position: Soldier
Gametype: Rocket Jumping
Affiliations: -g1 ]qS[ -eC- :e0: [ESAD]
Posts Rated Helpful 11 Times
[SM Plugin] FF OvD Enforce

Another plugin for SourceMod.
You can download it HERE:

Copy and pasted from the AM forums:
Quote:
+description+
This plugin will enforce Offense VS Defense game play if there are a certain amount of players in the server.

- When OvD is activated players will be assigned to certain teams so the teams are even.
- If there is an odd amount of players on the server then defense will gain the remainder.
- Defense can only use: Sniper, Soldier, Demoman, HWGuy, Engineer.
- Offense can only use: Scout, Soldier, Demoman, Medic, Pyro, Spy.

+installation+
- Place the FFOvDCheck.smx file inside of the addons/sourcemod/plugins/ folder.
- Place the ovdmapblacklist.ini file inside of the addons/sourcemod/configs/ folder.

+cvars+
sv_ovdenabled <1/0>: Enables/Disables OvD Enforcement.
sv_ovdmaxplayernum <amount>: Max number of players in server for OvD to be active.
sv_ovdminplayernum <amount>: Min number of players in server for OvD to be active.

+change log+
Version 1.0 ( 08-22-2008 )
-- Initial release.

Version 1.1 ( 08-22-2008 )
-- Added auto-detection if plugin should be enabled or disabled for map type.
-- Added blacklist file for maps that admin wants to manually disable plugin for.
-- Added Demoman as an Offensive and Defensive class.

Last edited by hlstriker; 08-23-2008 at 12:01 AM.
hlstriker is offline   Reply With Quote


Old 08-22-2008, 09:28 PM   #2
GeoKill----->
Community Member
Server Owner
Beta Tester
Forum Moderator
 
GeoKill----->'s Avatar
 
Join Date: Mar 2007
Location: Hawthorne, California
Class/Position: Soldier/Spy/Scout
Gametype: AvD
Affiliations: :e0:Eternal Order Leader
Posts Rated Helpful 12 Times
Neat
__________________

:e0: Will live on Forever
Support FF:
GeoKill-----> is offline   Reply With Quote


Old 08-22-2008, 10:38 PM   #3
Pon
Not choking. Yet.
Lua Team
Wiki Team
Fortress Forever Staff
 
Pon's Avatar
 
Join Date: Jul 2007
Location: Scotland
Class/Position: Demo/Def - Spy/Off
Gametype: Anything but yet more fucking CTF
Affiliations: FF.AvD [FF AvD/ID guild]
Posts Rated Helpful 0 Times
Does this detect the type of map in play at all, or allow the definition of exempt maps?

I just ask, as on a server that runs a mixed gametype map rotation, or even just allows a vote of all default maps, I imagine it would seriously fuck up AvD, push, hunted and cz2 gameplay, and there won't always be an admin around to turn it off...

EDIT: It's probably not gonna be a big deal really, but some clan servers do run in pub mode when not in use and might leave it on.
__________________
Support FF:

YOU GUYS REALLY SHOULD UPDATE YOUR STAFF LIST!
I haven't posted since 2010...

Preferable to death. But only just...

Last edited by Pon; 08-22-2008 at 10:48 PM.
Pon is offline   Reply With Quote


Old 08-22-2008, 11:22 PM   #4
zE
Pew pew ze beams
 
zE's Avatar
 
Join Date: Jan 2008
Gametype: Gathers
Affiliations: pew pew
Posts Rated Helpful 11 Times
good plugin, gonna install this gg : D
zE is offline   Reply With Quote


Old 08-22-2008, 11:33 PM   #5
BoltR
 
BoltR's Avatar
 
Join Date: Jul 2007
Posts Rated Helpful 0 Times
I'm confused how this actually enforces OvD. Yay, now you can't blow the grate on well?
BoltR is offline   Reply With Quote


Old 08-22-2008, 11:48 PM   #6
zE
Pew pew ze beams
 
zE's Avatar
 
Join Date: Jan 2008
Gametype: Gathers
Affiliations: pew pew
Posts Rated Helpful 11 Times
ye u right misses demo on offense, demo is pretty useful in offie in several maps
zE is offline   Reply With Quote


Old 08-23-2008, 12:00 AM   #7
hlstriker
QUAD ROCKET
Server Owner
Fortress Forever Staff
 
hlstriker's Avatar
 
Join Date: Jul 2007
Class/Position: Soldier
Gametype: Rocket Jumping
Affiliations: -g1 ]qS[ -eC- :e0: [ESAD]
Posts Rated Helpful 11 Times
Quote:
Originally Posted by Pon
... some clan servers do run in pub mode when not in use and might leave it on.
Once enough players join the server the plugin will turn into pub mode. I made this plugin so when there are around 5-7 players per team they won't be bored trying to play pub style.

Anyhow, updated the plugin. See the change log in first post.
hlstriker is offline   Reply With Quote


Old 08-23-2008, 12:49 AM   #8
Pon
Not choking. Yet.
Lua Team
Wiki Team
Fortress Forever Staff
 
Pon's Avatar
 
Join Date: Jul 2007
Location: Scotland
Class/Position: Demo/Def - Spy/Off
Gametype: Anything but yet more fucking CTF
Affiliations: FF.AvD [FF AvD/ID guild]
Posts Rated Helpful 0 Times
Ahh, I meant my edit to be tied into the rest of my post, sort of as reasoning as why I thought map type detection was nessecary in a possible example situation. My edits suck

Anyways, gj on this, I'm sure quite a few server owners will find it useful.
__________________
Support FF:

YOU GUYS REALLY SHOULD UPDATE YOUR STAFF LIST!
I haven't posted since 2010...

Preferable to death. But only just...
Pon is offline   Reply With Quote


Old 08-27-2008, 12:34 AM   #9
zE
Pew pew ze beams
 
zE's Avatar
 
Join Date: Jan 2008
Gametype: Gathers
Affiliations: pew pew
Posts Rated Helpful 11 Times
can u do it, so that red team cant cap if theres less then 10 players on server ?
zE is offline   Reply With Quote


Old 08-27-2008, 10:52 AM   #10
Firefox11
 
Join Date: Dec 2007
Class/Position: O&D: Pyro, Sniper
Gametype: AvD
Affiliations: FF.AvD [FF AvD/ID guild]
Posts Rated Helpful 0 Times
Code:
+cvars+
sv_ovdenabled 1
sv_ovdmaxplayernum 10
sv_ovdminplayernum 0
Use those to enable it up to 10 players?
Firefox11 is offline   Reply With Quote


Old 08-27-2008, 11:26 PM   #11
hlstriker
QUAD ROCKET
Server Owner
Fortress Forever Staff
 
hlstriker's Avatar
 
Join Date: Jul 2007
Class/Position: Soldier
Gametype: Rocket Jumping
Affiliations: -g1 ]qS[ -eC- :e0: [ESAD]
Posts Rated Helpful 11 Times
You would want to use "sv_ovdmaxplayernum 9" so the plugin will disable once 10 players are in.

The "sv_ovdmaxplayernum" and "sv_ovdminplayernum" just tell the server how many players should be on the teams so the plugin will activate.
hlstriker is offline   Reply With Quote


Old 08-29-2008, 08:45 PM   #12
zE
Pew pew ze beams
 
zE's Avatar
 
Join Date: Jan 2008
Gametype: Gathers
Affiliations: pew pew
Posts Rated Helpful 11 Times
this plugin isnt working in my server, i ve put the FFOvDCheck.smx file inside of the /FortressForever/addons/sourcemod/plugins/ folder and the FFOvDCheck.sp file inside of the FortressForever/addons/sourcemod/scripting/folder .. the ovdmapblacklist.ini file inside of the addons/sourcemod/configs/ folder.
I´ve just edited this line " g_hMinCvar = CreateConVar("sv_ovdminplayernum", "1.0", "Min number of players in server for OvD to be active", 0, true... " to test it alone in server, and i did tryed aarvdark and openfire ctf maps.
zE is offline   Reply With Quote


Old 09-05-2008, 01:54 PM   #13
Kiljen
Beta Tester
 
Join Date: Aug 2008
Class/Position: scout/soldier
Gametype: ctf, AvD
Affiliations: .gr
Posts Rated Helpful 0 Times
Nice work

Very nice man
Kiljen is offline   Reply With Quote


Old 09-05-2008, 02:41 PM   #14
zE
Pew pew ze beams
 
zE's Avatar
 
Join Date: Jan 2008
Gametype: Gathers
Affiliations: pew pew
Posts Rated Helpful 11 Times
It does not work with linux servers .\
zE is offline   Reply With Quote


Old 09-06-2008, 04:17 AM   #15
hlstriker
QUAD ROCKET
Server Owner
Fortress Forever Staff
 
hlstriker's Avatar
 
Join Date: Jul 2007
Class/Position: Soldier
Gametype: Rocket Jumping
Affiliations: -g1 ]qS[ -eC- :e0: [ESAD]
Posts Rated Helpful 11 Times
Just made my own Linux server and it worked just fine. Talk to me again on steam next time we are both on.

EDIT: Never mind..., it loads but crashes when players join for Linux. Guess it's Windows only plugin for a while.


Last edited by hlstriker; 09-06-2008 at 03:32 PM.
hlstriker is offline   Reply With Quote


Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:17 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.