From b03acf73e047277e311c9feb2c3f57f2775a587f Mon Sep 17 00:00:00 2001 From: mittorn Date: Wed, 11 Jan 2017 14:09:20 +0000 Subject: [PATCH] Zoom event --- dlls/crossbow.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dlls/crossbow.cpp b/dlls/crossbow.cpp index 2a9c9c09..bbc1b1db 100644 --- a/dlls/crossbow.cpp +++ b/dlls/crossbow.cpp @@ -22,6 +22,7 @@ #include "nodes.h" #include "player.h" #include "gamerules.h" +#include "bot_exports.h" #ifndef CLIENT_DLL #define BOLT_AIR_VELOCITY 2000 @@ -494,6 +495,8 @@ void CCrossbow::SecondaryAttack() pev->nextthink = UTIL_WeaponTimeBase() + 0.1; m_flNextSecondaryAttack = UTIL_WeaponTimeBase() + 1.0; + if( TheBots ) + TheBots->OnEvent( EVENT_WEAPON_ZOOMED, m_pPlayer ); } void CCrossbow::Reload( void )