Monthly Target: $400 Donations: $70

change c4 time to detonation in real time (mp_c4timer)

Post New Thread Reply   
Thread Tools Display Modes
Author Message
Junior Member
Join Date: Feb 2012
Location: Toruń, Poland
Old 05-06-2012 , 08:52   change c4 time to detonation in real time (mp_c4timer)
Reply With Quote #1


I`ve tried to change time to detonation of c4 entity in real time, but I failed a lot of tries.
I wanna change "mp_c4timer" for any player, where custom players can have other "time counts to detonate"

Ask: How can I change c4 timer in real time (instant) depending on player who planted the bomb?

I tried DispatchKeyValue( ent, "detonatedelay", time ); but it doesn`t to anything for me.
I tried set_pdata_float(ent, 85, time); but i doesn`t work too.

Also, I can`t stand how to change the bottom HUD timing for the c4 counter.
I believe you can help me or give the way to script it. Thanks a lot.

For example, the code, which set detonation time for c4 to 35 secs for user`s
authid begining STEAM_0:0: or to 45 secs for STEAM_0:1: would make my problem done.

edit. I solved it by myself using cs_set_c4_explode_time(ent,get_gametime()+tim eToExplode);
I would be glad if you close the topic. Thanks a lot.

Last edited by benio101; 05-14-2012 at 19:15. Reason: added an example of a code, which would done my prob.
benio101 is offline
Old 05-07-2012, 04:41
This message has been deleted by Exolent[jNr]. Reason: Don't bump until 2 weeks have passed since last post.

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 12:23.

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