View Single Post
Author Message
Jasonbourne
Senior Member
Join Date: Nov 2011
Location: Sydney , AUS
Old 01-07-2012 , 08:04   [CS:S] MGspawn [1.1.1] || Respawn players killed by world or props
Reply With Quote #1

[CS:S] MGspawn [1.1.1]
Updated [09/01/2012]

If you have any issues with repeated spawn killing ,
Then increase your sm_mgspawn_delay to a value
equal to or greater than 1.0


Aim:
Code:
This plugin is aimed at mini-games servers. It is designed to respawn 
players killed by world or props. This saves them going to spec and back 
to the team to respawn. This plugin is enabled for maps which have only 
one team spawn (either ct or t but not both // can be disabled with cvar) 

The specific map i had in mind when developing this plugin was mg_saw,
im not sure what this style of mg maps are refereed to but if there are
more checks needed before enabling the plugin on these maps i will gladly
add them in
This does not respawn players that are killed by other players at any time

Cvars:
Code:
sm_mgspawn_enable <1/0> // Enable mgspawn. [0 = FALSE, 1 = TRUE]
sm_mgspawn_delay <0.1> // Set respawn delay
sm_mgspawn_spawnpoints <1/0> // Set to 0 to enable for all maps or set to 1 to only enable when there are one team spawn points set
Plans:
Code:
Hooking cvar change so that spawnpoint logic is calculated not only on map change but also cvar change

Changelog:

Code:
1.0.0 
- Initial Release
1.0.1 
- Added version cvar 
- Added auto created config file
1.1.0
- Added Spawn Kill detection // plugin turns itself off
- Removed auto-generated config
1.1.1
-Improved Spawn Kill detection logic
Plugin Logic:
Code:
Spawn Points

Plugin will be enabled only when there are either no ct spawn points or no t spawn points.

SpawnKiller Check

Plugin will be disabled if player dies from prop/world within 0.2 seconds of spawning
Attached Files
File Type: sp Get Plugin or Get Source (mgspawn.sp - 2354 views - 3.6 KB)

Last edited by Jasonbourne; 01-08-2012 at 21:33.
Jasonbourne is offline