mirror of
https://github.com/ineedbots/t4_bot_warfare.git
synced 2025-04-21 23:45:43 +00:00
Fix gib error
This commit is contained in:
parent
884c0b0959
commit
04b82f16e4
@ -255,6 +255,7 @@ onPlayerConnect()
|
|||||||
player thread onGrenadeFire();
|
player thread onGrenadeFire();
|
||||||
player thread onWeaponFired();
|
player thread onWeaponFired();
|
||||||
player thread doPlayerModelFix();
|
player thread doPlayerModelFix();
|
||||||
|
player thread onPlayerSpawned();
|
||||||
|
|
||||||
player thread connected();
|
player thread connected();
|
||||||
}
|
}
|
||||||
@ -664,6 +665,19 @@ addBots()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
When any player spawns
|
||||||
|
*/
|
||||||
|
onPlayerSpawned()
|
||||||
|
{
|
||||||
|
self endon("disconnect");
|
||||||
|
for(;;)
|
||||||
|
{
|
||||||
|
self waittill ( "spawned_player" );
|
||||||
|
self.gib_ref = undefined;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
A thread for ALL players, will monitor and grenades thrown.
|
A thread for ALL players, will monitor and grenades thrown.
|
||||||
*/
|
*/
|
||||||
|
@ -162,7 +162,7 @@ IsBotKnifing()
|
|||||||
*/
|
*/
|
||||||
IsPlayerModelOK()
|
IsPlayerModelOK()
|
||||||
{
|
{
|
||||||
return (isDefined(self.bot_model_fix));
|
return (isDefined(self.bot_model_fix) && !isDefined(self.gib_ref));
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user