mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-03-12 05:22:55 +00:00
Zoom event
This commit is contained in:
parent
41136c6e30
commit
b03acf73e0
@ -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 )
|
||||
|
Loading…
x
Reference in New Issue
Block a user