What is it good for?
I created this for ZombieMod escape servers that have noblock enabled. Players can't block each other with grenades (for example in elevators or boats) anymore now.
Limitations
The plugin will only set he-grenades into "noblock"-mode. You can easily modfiy it for smokegrenades and flashbangs if you need it.
Requirements
DukeHacks must be installed (version 0.0.0.3 for CSS!).
Possible server crash
I didn't tested this plugin on a full server yet. In the DukeHacks documentation it says:
Quote:
/**
* @brief Called whenever an entity is created (currently only entities with an edict index)
* Using GetEdictClasName and similar functions can cause the server to crash.
* For most applications, you should use dhOnEntitySpawned instead.
*
* @param edict Index of the edict.
* @return Pl_Continue
*/
forward ResultType:dhOnEntityCreated(edict);
|
I use the "dhOnEntityCreated" callback and the "GetEdictClassName" function, so a server-crash could be possible.
Installation/Configuration
Put smx into "cstrike/addons/sourcemod/plugins". No configuration, no convars.