Raised This Month: $ Target: $400
 0% 

Small edit


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 05-10-2018 , 16:53   Re: Small edit
Reply With Quote #2

you can add a time stamp for it.

PHP Code:
new g_LandedTimer[33]

...

public 
LandEntityThinkiEntity )  
{

...
                if(
g_LandedTimer[id] < get_gametime())
                {
                        
emit_sound(idCHAN_BODYsnd_land[random_num(0sizeof snd_land 1)], VOL_NORMATTN_NORM0PITCH_NORM)
                        
g_LandedTimer[id] = get_gametime() + 0.5
                 
}
...

or

just change
PHP Code:
entity_set_floatg_LandEntity EV_FL_nextthink get_gametime() + 0.01 ); 
=>

PHP Code:
entity_set_floatg_LandEntity EV_FL_nextthink get_gametime() + 0.5 ); 
__________________
My plugin:
Celena Luna is offline
 



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 04:38.


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