AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [CS] bomb count down (https://forums.alliedmods.net/showthread.php?t=26912)

commonbullet 04-11-2006 02:01

[CS] bomb count down
 
Is there a way to stop, pause or remove bomb count down once it's been planted? (if possible, not by defusing it)

FatalisDK 04-11-2006 04:20

Don't know if it would work but you could try mp_c4timer 99999.

Hawk552 04-11-2006 09:57

Quote:

Originally Posted by FatalisDK
Don't know if it would work but you could try mp_c4timer 99999.

I don't think that works until a round change. Also, the max c4timer is 60 or 45 seconds (I forgot which), last I checked.

I'm reasonably sure there's a keyvalue placed on the C4. I'm not sure though.

My only other suggestion would be to copy the model of the C4 onto another ent and then remove the real one, but that would just stop it outright without any ability to start it back up again. Also, I think that's prone to crashes.

VEN 04-11-2006 10:06

Quote:

Don't know if it would work but you could try mp_c4timer 99999.
That will not help since max. value is 90 (seconds).

You can stop animation, sounds and possibility to explode by superciding bomb's entity thinking. To enable such things set next think time to appropriate value.

That method will not stop actual bomb's countdown though. But you can play with think time and other entvars.

commonbullet 04-11-2006 12:29

Thank you.

I don't if it's too rustic to remove it, but it's working fine for me.
Code:
new c4 = find_ent_by_model (0,"grenade","models/w_c4.mdl") if (c4)         entity_set_int(c4, EV_INT_flags, FL_KILLME)

The planted bomb keeps being shown in radar but the counter stops and no team wins, just like I needed...

VEN 04-12-2006 08:51

Quote:

The planted bomb keeps being shown in radar
You can send BombPickup message to every Terrorist.

Quote:

the counter stops and no team wins
But only untill round time 0:00 (doesn't matter that timer is hidden). If timer would reach 0:00 Terrorist will loose. Stop bomb thinking solves that problem.


All times are GMT -4. The time now is 16:48.

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