View Single Post
Author Message
Alfred E. Neumann
Junior Member
Join Date: Jan 2010
Location: Germany
Old 03-02-2010 , 05:58   [DOD:S] Seek and Destroy
Reply With Quote #1

Hi folks!

This is my first plugin. A hide and seek like modification.
To have more fun I added some more features to this mod.

Credits:
- Some small parts by Clement Vuchener (http://baronettes.verygames.net/)
- Function WeaponCleanUp by Kigen
- Function Timer_Beacon by DJ Tsunami

Install:

1) Add the hns_models.txt to your dod folder (e.g. /opt/games/dod_server/orangebox/dod)

2) Add the plugin to your plugin directory. To enable the plugin set sad_active to 1


Add Models:

Just edit the hns_models.txt and add/remove the models you want.
But be careful when selecting new models. Please check where the "ground" of the model is, using the modelviewer. Otherwise the model will sink into the ground, until it reaches the "ground"-position in the model.

If you see Red-Error-Signs running around, then please check the spelling of the new entries you have made. If you mistype something source replaces the model with the error model.

Also please dont use custom models. They will work, but only if the client allows custom content, otherwise he will see alot of errors running around...

Settings:

All default settings are written to dod/cfg/sourcemod/seek_and_destroy.cfg
You can change it there if you want to have it permanent.

Cvars and Commands:
Quote:
* CVars:
*
* sad_active
* Values: 0 | 1
* Desc: Activates Seek and Destroy
*
* sad_warmup
* Values: min 0.0 - max unlimited
* Desc: Warumup Time before the round begins. (Time for the hidden to find a hideout)
*
* sad_roundtime
* Values: min 0.0 - max unlimited
* Desc: The time the seekers have to find the hidden (if sad_userounds = 1)
*
* sad_findtime
* Values: min 1.0 - max unlimited
* Desc: The time the seekers have to find the last living hidden player (only used if sad_userounds = 1)
*
* sad_winrounds
* Values: min 0 - max unlimited
* Desc: Round wins a time requires to end the map
*
* sad_userounds
* Values: 0 | 1
* Desc: If 1: Play with limited time for each round (set in sad_roundtime)
* If 0: Play without time limit
*
* sad_blind
* Values: 0 | 1
* Desc: Blind the Seeker for Warmup Time
*
* sad_freeze
* Values: 0 | 1
* Desc: Freeze the Seeker for Warmup Time
*
* sad_beacon
* Values: 0 | 1
* Desc: Place beacon on the last living player of the hidden team
*
* sad_beacon_freq
* Values: min 0.0 - max unlimited
* Desc: Beacon beep frequency. Time in seconds in which the beacon will beep
*
* sad_beacon_start
* Values: min 0.0 - max unlimited
* Desc:
*
* sad_earn_pistols
* Values: 0 | 1
* Desc: Players can earn pistols for kills with knife/spade
*
* sad_earn_weapons
* Values: 0 | 1
* Desc: Players can earn any kind of weapon (except Snipers and MGs) for kills with knife/spade
*
* sad_weapon_team
* Values: 1 | 2 | 3
* Desc: Specify the team which can gain weapons the kills with knife/spade
* 1 = both
* 2 = Hidden team (Allies)
* 3 = Seeker team (Axis)
*
*
* Console Commands:
*
* For Players:
*
* sad_scoreboard
* Desc: Shows the Seek and Destroy Scoreboard (usally automatic shown on the left side)
*
* toggle3rd
* Desc: Sets view to 3rd person
*
* toggle1st
* Desc: Sets view to 1st person
*
* +3rd/-r3d
* Desc: Changes view to 3rd person as long as the player presses the binded key
*
* +1st/-1st
* Desc: Changes view to 1st person as long as the player presses the binded key
*
* For Server:
*
* sad_restart
* Desc: Restarts the round
*
*
* Say Commands:
*
* timeleft/roundtime
* Desc: Shows the rest time of the running round
*
* !+3rd/!-3rd
* Desc: toggles between 3rd and 1st person


Version 1.0.2.1:

- Beacon hopefully fixed (Thanks to BC Pitbull)
- Plugin should now really inactive if sad_active = 0
- Increased minimum Players to 3 (was 2 before)

Version: 1.0.2.0:
- First Public Release

Todo:
- fix up some weired ugly code
- add more features

Open Features:
- Add the possibilty to "create a duplicate" of the model which the hidden currently is. This model should be destructable with an explosion
(see my questions related to this here: http://forums.alliedmods.net/showthread.php?t=118301)
- Remove the restart round and trigger DOD:S own round-end
(-> http://forums.alliedmods.net/showthread.php?p=1047575)

Ideas and Bugreports are welcome
Attached Files
File Type: txt hns_models.txt (1.9 KB, 417 views)
File Type: sp Get Plugin or Get Source (hns.sp - 633 views - 74.4 KB)

Last edited by Alfred E. Neumann; 09-07-2010 at 16:25.
Alfred E. Neumann is offline