Fixed death given to the mother zombies, created cvars to control friendlyfire and blast damage, hitgroup file now allows you to disable shootable hitgroups on zombies.
This commit is contained in:
1 parent
b99d253477
commit
2718b527ac
7 files changed
+204
-103
No files matched your search
+11
-5
@@ -60,7 +60,13 @@ InfectOnMapStart()
|
||||
{
|
||||
// Reset timer handle.
|
||||
tInfect = INVALID_HANDLE;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Loads downloadable content data for infect module.
|
||||
*/
|
||||
InfectLoad()
|
||||
{
|
||||
// Get infection sound.
|
||||
decl String:sound[PLATFORM_MAX_PATH];
|
||||
GetConVarString(g_hCvarsList[CVAR_INFECT_SOUND], sound, sizeof(sound));
|
||||
@@ -517,10 +523,7 @@ InfectPlayer(client, attacker = -1, bool:motherinfect = false)
|
||||
// Apply effects.
|
||||
InfectEffects(client);
|
||||
|
||||
// Add a death to the zombie's score.
|
||||
AddPlayerDeath(client, 1);
|
||||
|
||||
// Fire death event and set weapon info if the attacker is specified.
|
||||
// If attacker is valid, then continue.
|
||||
if (ZRIsValidClient(attacker))
|
||||
{
|
||||
// Create and send custom player_death event.
|
||||
@@ -536,6 +539,9 @@ InfectPlayer(client, attacker = -1, bool:motherinfect = false)
|
||||
// Give client's infector a point.
|
||||
AddPlayerScore(attacker, 1);
|
||||
|
||||
// Add a death to the zombie's score.
|
||||
AddPlayerDeath(client, 1);
|
||||
|
||||
// Apply infect HP gain.
|
||||
new healthgain = ClassGetHealthInfectGain(attacker);
|
||||
new health = GetClientHealth(attacker);
|
||||
|
||||
Reference in new issue
Block a user