Description
Gives deathmatch respawn to Counter Strike: Source.
Optionally sets player's money on respawn, removes ground weapons and defuser kits,
provides spawn and Gun-Game level-up protection, ragdoll dissolve, and removal of player collisions.
This plugin allows you to have what used to require finding, downloading, and configuring several plugins.
Configuration is kept to a minimum to simply installation. Tweaks to colors, timings, etc. can be
accomplished by recompiling. PM me if you need help.
Players won't respawn between round_end and round_start.
Teleports players up who spawn buried (a log message is generated for this rare event).
Removes ragdoll of players who spectate.
Spawn and Gun-Game level-up protection is canceled if the player fires his weapon.
Will not dissolve ragdolls after round end (should mitigate map change issue).
As of 2011, the game engine now removes ragdoll on respawn, team change (including spectate), and
disconnect. Dissolve will beat respawn.
Servers using this mod:
GameTracker sm_dmlite_version
Installation:
Place compiled plugin (sm_dmlite.smx) into your plugins folder.
The configuration file (dmlite.cfg) is generated automatically.
Changes to dmlite.cfg are read at map/plugin load time.
Changes to cvars made in console take effect immediately.
Complimentary Plugins:
Ammo Replenishment Lite
Gun Menu Pawn
Upgrade Notes:
Added sm_dmlite_money as of v2.5; add this to dmlite.cfg if you wish to use it.
Added sm_dmlite_protect as of v2.6; add this to dmlite.cfg if you wish to disable it.
Added sm_dmlite_dissolve as of v2.6; add this to dmlite.cfg if you wish to enable it.
Added sm_dmlite_noblock as of v2.6; add this to dmlite.cfg if you wish to disable it.
Replace sm_dmlite_protect with sm_dmlite_spawn_time and sm_dmlite_level_time as of v2.7; update dmlite.cfg appropriately.
Alternatively, you can delete the old dmlite.cfg and a replacement, with all of the
cvars provided, will be created when the next map loads.
Problems, Bug Reports, Feature Requests, and Compliments:
Please send me a private message at
http://forums.alliedmods.net/private.php?do=newpm&u=46596
Include a detailed description of how to reproduce the problem. Information about your server,
such as dedicate/listen, platform (win32/linux), game, and ip address may be useful.
I prefer to keep the plugin thread cleared so people don't have to wade through pages of fodder.
The community will be given a chance to address any bug reports that are posted in the plugin thread.
If you want a direct response from me, send a private message.
Compliments are always welcomed in the thread.
Background:
Originally created by TechKnow. See
http://forums.alliedmods.net/showthread.php?t=81787
Spawn Protection derived from Spawn Protection v1.5 by Fredd. See
http://forums.alliedmods.net/showthread.php?t=68139
Ragdoll Dissolve derived from Dissolve (player ragdolls) by L. Duke
See
http://forums.alliedmods.net/showthread.php?t=71084
No Block derived from NoBlock v1.4.2 by altex and Meng
See
http://forums.alliedmods.net/showthread.php?t=91617
and
http://forums.alliedmods.net/showthread.php?t=107619
Files:- cstrike/addons/sourcemod/plugins/sm_dmlite.smx
- cstrike/cfg/sourcemod/dmlite.cfg
- cstrike/cfg/server.cfg
Configuration Variables (Change in dmlite.cfg):- sm_dmlite_delay - Number of seconds before respawing player. 0 Disables respawn. (Default: "3.0")
- sm_dmlite_money - Player respawn money. 0 Disables account adjustment. (Default: "0")
- sm_dmlite_cleanup - Enable/Disable weapon cleanup. (Default: "1")
- sm_dmlite_spawn_time - Spawn Protection time in seconds. 0 Disables Spawn Protection. (Default: "0.85")
- sm_dmlite_level_time - GG Levelup Protection time in seconds. 0 Disables Levelup Protection. (Default: "0.60")
- sm_dmlite_dissolve - Enable/Disable Ragdoll Dissolve. (Default: "1")
- sm_dmlite_noblock - Enable/Disable Removal of Player Collisions. (Default: "1")
Server Configuration Variables (Change in server.cfg):- mp_startmoney - Set this to match sm_dmlite_money
- mp_buytime - Set this to allow late buying (50000 is longer than a month)
- mp_ignore_round_win_conditions - Set this to prevent round end
To-Do:
Option to give C4 when mp_ignore_round_win_conditions 1
Option to remove map objectives
Add spawn points
Changelog:
Code:
2.9 [-] 2012 - 01/12 LumiStance
Correct team check in RespawnAllDead
2.8 [-] 2011 - 11/13 LumiStance (337 downloads)
Add CS_TEAM constant labels
Remove Ragdoll spam; game now removes ragdolls
Moved CheckClientSpawnHeight call to Event_PlayerSpawn
2.7 [-] 2011 - 01/10 LumiStance (1990 downloads)
Add code to cancel protection on weapon firing
Replace sm_dmlite_protect with sm_dmlite_spawn_time and sm_dmlite_level_time
Cache m_hOwnerEntity
2.6 [-] 2010 - 11/20 LumiStance
Added Spawn Protection and Gun Game Level-Up protection and sm_dmlite_protect cvar
Added Ragdoll Dissolve and sm_dmlite_dissolve cvar
Added No Block and sm_dmlite_noblock cvar
Removed respawn spam
Added code to work around A2S_RULES bug in linux orange box
Added code to find (every 15s) dead players that didn't fire player_death event
2.5 [-] 2010 - 09/11 LumiStance
Added code to reset player's account at respawn
Added code to Event_BombExploded check g_RespawnDelay
Refactored redundant code
Added CheckClientSpawnHeight to find players spawned into the ground
Added code to block respawn at round end
2.4 [-] 2010 - 09/06 LumiStance
Corrected usage of MaxClients in RespawnAllDead and StripGroundWeapons
Added code to Event_PlayerTeam to ignore players who weren't on a team
2.3 [-] 2010 - 09/02 LumiStance
Added code to remove defusers with owners - defusers don't exist when equiped
Stripped IsClientConnected when IsClientInGame was also checked
2.2 [-] 2010 - 07/20 LumiStance
Added code to remove ragdoll when player joins spectators
2.1 [-] 2010 - 07/06 LumiStance
Added code to find players killed by C4
2.0 [-] 2010 - 06/28 LumiStance
Finalize Rebranding and Release with TechKnow's blessing
1.9 [-] 2010 - 06/27 LumiStance
Replaced AutoTimer with joinclass command hook
Cleaned up code
Change Chat Message to before delay
1.8 [-] 2010 - 06/26 LumiStance
Revise Weapon Cleanup code
1.7 [-] 2010 - 06/25 LumiStance
Replaced SDKCall for RoundRespawn with CS_RespawnPlayer
This removes dependency on gamedata.txt and make compatible with Source 2010 Update
Clean up whitespace
Added documentation
1.6 [-] 2008 - 12/11 TechKnow
Added map weapons removal at round start, replaces the need for plugin Buyitdamnit.
1.5
Repaired Autospawn timmer multiple starts.
1.4
Removed chat command !spawn and spawn and replaced them with a total AUTO-Spawn because players
are too stupid to type !spawn or spawn in chat.
1.3
Added Remove weapons on players death to prevent other players from picking up the wrong weapon
and to stop server from lagging when a long round is leaving MANY guns/weapons loose on the
ground. and cvar to control on or off.
The scripting of removal of weapons was made by Kigen, a MASTER scripter.
1.2
Repaired client chat message saying..
[GGDM]You can not spawn because you are already alive.
or
[GGDM]You can not spawn because you are not on a team.
Eevry time you typed weather you typed spawn or !spawn or NOT.
1.1
Added so players can spawn themselves if they join in the middle of a round so they dont have to
wait for next round to be spawned.
1.0
released