Half-Life: Added check for violence_hblood and violence_hgibs and acting
accordingly.
This commit is contained in:
parent
de9ec013af
commit
b649ab78ca
2 changed files with 9 additions and 0 deletions
|
@ -47,6 +47,10 @@ FX_Blood(vector pos, vector color)
|
|||
self.touch = __NULL__;
|
||||
}
|
||||
|
||||
if (cvar("violence_hblood") <= 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
env_sprite eBlood = spawn(env_sprite);
|
||||
setorigin(eBlood, pos);
|
||||
setmodel(eBlood, "sprites/bloodspray.spr");
|
||||
|
|
|
@ -54,6 +54,11 @@ FX_GibHuman(vector pos)
|
|||
{
|
||||
Decals_Place(self.origin, sprintf("{blood%d", floor(random(1,9))));
|
||||
}
|
||||
|
||||
if (cvar("violence_hgibs") <= 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
for (int i = 0; i < 5; i++) {
|
||||
vector vel;
|
||||
vel[0] = random(-128,128);
|
||||
|
|
Loading…
Reference in a new issue