: When you plant c4. It shows a line(>|
) thats moving towards another Line(|<<< C4
). The distance between those 2 lines depends on a cvar - mp_c4timer. When both lines collide. C4 Explodes.
) (1 - Only Terrorists will see the Timer Line, 0 - everyone including CT's will see the Timer Line)
I recommend: Do not set mp_c4timer below 0 and above 50. Just an recommendation.
*Optimized Code(Use switch instead of if/else,shortened the code a little bit, using cvar pointer instead of get_cvar_num)
*Optimized Code a little
*Fixed the glitch when someone joins a server he can't see the moving line.
*Recoded the plugin. Fixed Many glitches..
*Now when the bomb explodes, it changes the C4 text to [DEFUSED]/[BOMB] depending which team won.
*Fixed the glitch > if bomb doesn't explode but the round ends.. and server has freeze time it still shows the line until freezetime ends.