ClientGame_EventParse() now has returns either 0 or 1 to signal successful overrides.
CSMultiplayerRules now calls player.Death() like FreeHL.
This commit is contained in:
parent
b1ddff0e1a
commit
69836864ee
2 changed files with 6 additions and 7 deletions
|
@ -14,7 +14,7 @@
|
|||
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
void
|
||||
int
|
||||
ClientGame_EventParse(float fHeader)
|
||||
{
|
||||
switch (fHeader) {
|
||||
|
@ -132,5 +132,8 @@ switch (fHeader) {
|
|||
case EV_RADIOMSG2:
|
||||
Radio_PlayPlayerMessage(readbyte(), readbyte());
|
||||
break;
|
||||
default:
|
||||
return (0);
|
||||
}
|
||||
return (1);
|
||||
}
|
||||
|
|
|
@ -19,7 +19,7 @@ CSMultiplayerRules::MaxItemPerSlot(int slot)
|
|||
{
|
||||
/* grenades */
|
||||
if (slot == 3) {
|
||||
return 3;
|
||||
return (3);
|
||||
}
|
||||
return (1);
|
||||
}
|
||||
|
@ -79,12 +79,8 @@ CSMultiplayerRules::PlayerDeath(base_player pl)
|
|||
|
||||
/* clear all ammo and inventory... */
|
||||
PlayerClearWeaponry(targ);
|
||||
targ.movetype = MOVETYPE_NONE;
|
||||
targ.solid = SOLID_NOT;
|
||||
targ.takedamage = DAMAGE_NO;
|
||||
targ.Death();
|
||||
targ.gflags &= ~GF_FLASHLIGHT;
|
||||
targ.armor = 0;
|
||||
targ.health = 0;
|
||||
|
||||
/* gamerule stuff */
|
||||
static void GoSpec(void) {
|
||||
|
|
Loading…
Reference in a new issue