Bomb beep

From EventScripts Community Encyclopedia

Description

bomb_beep executes EVERY TIME THE BOMB BEEPS

This beep does not occur once every second. Instead the bomb_beep event executes approximately 8.4 times per second.

For example: A bomb timer is set to explode in 30 seconds (cvar mp_c4timer = 30)

If you were to write code like this:

event round_start
{
   es_setinfo num_beeps 0
}
 
event bomb_beep
{
   es_math num_beeps + 1
   es_msg server_var(num_beeps)
}

You would of course get a message showing the beep number of each beep.

You would get 252 messages for a 30 second bomb, with the last one being the message "252".

252 beeps/30 seconds = 8.4 beeps/second

You can then use this number to calculate messages at certain times during the bomb detonation process, etc.

Variables

Variables Specific to bomb_beep That Are Expanded: Quote:

     event_var(entindex)
           The Valve-assigned entity index of the bomb (used for es_setindexprop)
blog comments powered by Disqus