reworked zmarket

fixed kevlar bug
This commit is contained in:
2016-02-12 04:16:59 +01:00
parent d88e748f0e
commit 3afde85238
10 changed files with 423 additions and 349 deletions

View File

@ -275,6 +275,9 @@ InfectOnClientSpawn(client)
CS_SwitchTeam(client, CS_TEAM_CT);
CS_RespawnPlayer(client);
}
// Unglitch kevlar. (Reset hitbox to HITBOX_GENERIC)
SetEntData(client, 4444, 0, 4);
}
/**
@ -782,6 +785,10 @@ InfectHumanToZombie(client, attacker = -1, bool:motherinfect = false, bool:respa
}
}
// Remove kevlar and helmet
SetEntProp(client, Prop_Send, "m_ArmorValue", 0, 1);
SetEntProp(client, Prop_Send, "m_bHasHelmet", 0);
// Print message to client.
TranslationPrintToChat(client, "Infect infected");
@ -853,6 +860,9 @@ InfectZombieToHuman(client, bool:respawn = false, bool:protect = false)
SpawnProtectStart(client);
}
// Unglitch kevlar. (Reset hitbox to HITBOX_GENERIC)
SetEntData(client, 4444, 0, 4);
// Forward event to modules.
SEffectsOnClientHuman(client);
APIOnClientHumanPost(client, respawn, protect);