Raised This Month: $ Target: $400
 0% 

Call/Execute GameEventType?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
LukeyB
Member
Join Date: Dec 2011
Old 03-25-2014 , 17:57   Call/Execute GameEventType?
Reply With Quote #1

Does anyone know how to call/execute a GameEventType? These ones in particular?

PHP Code:
enum GameEventType_t
{
    
GameEventType_BOMB_BEEP,
    
GameEventType_BOMB_DEFUSING
}
const 
IsDefusing = (1<<8)
#define is_user_defusing(%0)    (get_pdata_int(%0,232,5) & IsDefusing)
public client_PreThink(id)
{
    new 
bombplanted fm_find_ent_by_model(-1"grenade""models/w_c4.mdl")
    if(
is_user_alive(id) && is_user_bot(id) && bombplanted)
    {
        
set GameEventType_BOMB_BEEP to 1 allow bots to hear bomb beeping regardless of distance from the bomb
    
}
    if(!
bombplanted)
    {
        
set GameEventType_BOMB_BEEP back to 2 NULL
    
}
    if(
is_user_alive(id) && is_user_defusing(id))
    {
        
set GameEventType_BOMB_DEFUSING to 1 allow bots to know someone is defusing regardless of distance from the bomb
    
}
    if(
is_user_alive(id) && !is_user_defusing(id))
    {
        
set GameEventType_BOMB_DEFUSING back to 2 NULL
    
}

LukeyB is offline
LukeyB
Member
Join Date: Dec 2011
Old 04-11-2014 , 20:43   Re: Call/Execute GameEventType?
Reply With Quote #2

So no one has any idea how to do this? I just want the bots to know where the bomb is when it's planted and if someone is defusing it. I'd be very grateful for any ideas. Thanks!
LukeyB is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:56.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode