mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2026-01-15 17:41:49 +00:00
knife sheild
This commit is contained in:
@@ -2406,7 +2406,7 @@ knife(ent, knifeDist)
|
|||||||
if (ent.hasRiotShield)
|
if (ent.hasRiotShield)
|
||||||
{
|
{
|
||||||
entCone = ent getConeDot(self.origin, ent.origin, ent GetPlayerAngles());
|
entCone = ent getConeDot(self.origin, ent.origin, ent GetPlayerAngles());
|
||||||
if ((entCone > 0.85 && ent.hasRiotShieldEquipped) || (entCone < -0.85 && !ent.hasRiotShieldEquipped))
|
if ((entCone > 0.65 && ent.hasRiotShieldEquipped) || (entCone < -0.65 && !ent.hasRiotShieldEquipped))
|
||||||
{
|
{
|
||||||
// play riot shield hitting knife sound
|
// play riot shield hitting knife sound
|
||||||
if (!usedRiot)
|
if (!usedRiot)
|
||||||
|
|||||||
Reference in New Issue
Block a user