mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2025-04-23 06:15:43 +00:00
riot
This commit is contained in:
parent
703ae41222
commit
6458b3929b
@ -2494,7 +2494,7 @@ knife(ent, knifeDist)
|
||||
// check riotshield
|
||||
if (ent.hasRiotShield)
|
||||
{
|
||||
entCone = ent getConeDot(self.origin, ent.origin, ent GetPlayerAngles());
|
||||
entCone = ent getConeDot((self.origin[0], self.origin[1], 0), (ent.origin[0], ent.origin[1], 0), (0, ent GetPlayerAngles()[1], 0));
|
||||
if ((entCone > 0.65 && ent.hasRiotShieldEquipped) || (entCone < -0.65 && !ent.hasRiotShieldEquipped))
|
||||
{
|
||||
// play riot shield hitting knife sound
|
||||
|
Loading…
x
Reference in New Issue
Block a user