Added option for random dissolve effect.
Added an option to the account module to give money for damaging a client. Expanded player hull xy offset by 1 unit. Fixed anti-stuck not solidifying clients. Fixed weapon rendering glitches (again)
This commit is contained in:
@ -28,7 +28,8 @@
|
||||
/**
|
||||
* @section Different dissolve types.
|
||||
*/
|
||||
#define VEFFECTS_RAGDOLL_DISSOLVE_EFFECTLESS -1
|
||||
#define VEFFECTS_RAGDOLL_DISSOLVE_EFFECTLESS -2
|
||||
#define VEFFECTS_RAGDOLL_DISSOLVE_RANDOM -1
|
||||
#define VEFFECTS_RAGDOLL_DISSOLVE_ENERGY 0
|
||||
#define VEFFECTS_RAGDOLL_DISSOLVE_ELECTRICALH 1
|
||||
#define VEFFECTS_RAGDOLL_DISSOLVE_ELECTRICALL 2
|
||||
@ -101,6 +102,12 @@ RagdollRemove(ragdoll)
|
||||
return;
|
||||
}
|
||||
|
||||
// If random, set value to any between "energy" effect and "core" effect.
|
||||
if (dissolve == VEFFECTS_RAGDOLL_DISSOLVE_RANDOM)
|
||||
{
|
||||
dissolve = GetRandomInt(VEFFECTS_RAGDOLL_DISSOLVE_ENERGY, VEFFECTS_RAGDOLL_DISSOLVE_CORE);
|
||||
}
|
||||
|
||||
// Prep the ragdoll for dissolving.
|
||||
decl String:targetname[64];
|
||||
Format(targetname, sizeof(targetname), "zr_dissolve_%d", ragdoll);
|
||||
|
Reference in New Issue
Block a user