[ANY] No Double Push (2.4.6, 2015-12-05)
10 Attachment(s)
Code:
/* |
Re: No Double Push - Set return time (wait) of buttons (works for any game)
As I mentioned in another topic, that method doesn't exactly work. Printing the logs to chat will show that the entity has accepted your dispatched value, but buttons continue to function normally and a stripper_dump will show that the entities retain their true wait value. If you try it on a map that has a low recovery time, such as dr_manylevelsofhell_fix4 (20 seconds), you'll see that buttons recover normally.
|
Re: No Double Push - Set return time (wait) of buttons (works for any game)
Could it be because of a round restart or do the buttons reset in the same round?
Its strange that this won't work with buttons, I've using the same code for a long time now in hl2dm to let func_doors stay open when used once. Do you know, when the buttons retain their true value? When pressed or on just the next frame? |
Re: No Double Push - Set return time (wait) of buttons (works for any game)
It's quite possible they're being reset on round restart, I never thought of that, and I've never ran a stripper dump before that period. All I know is I fiddled with the code for weeks with every combination of ints/strings/floats possible and buttons refused keep the values that were dispatched to them. I'll try to test it on my server and get back to you, not sure when that'll be.
|
Re: No Double Push - Set return time (wait) of buttons (works for any game)
Update: I tested the code on both steamworks and sunnyday, and the buttons are definitely being reset after the values are being assigned. However, I'm not sure if it's after round_start or if it's being done every game frame. A stripper dump shows that the values have already been reset after a round has been started, so I'm inclined to believe it's being done per frame. Using Stripper: Source, however, I'm able to set all wait values to "-1" when the map loads and those values remain. So perhaps we should look for a function that fires prior to OnMapStart?
According to dirka_dirka, round_start and round_start_post_nav fire once prior to OnMapStart. |
Re: No Double Push - Set return time (wait) of buttons (works for any game)
Code:
Changed button (463) wait time from -333.000000 to -1.000000 It was indeed the round_start that changed some buttons back to their normal values. I'll add the changes and reupload the plugin in some minutes. edit: updated to 1.2.0 |
Re: No Double Push - Set return time (wait) of buttons (works for any game)
If you set the wait value to -1 after the entity has been spawned, it is effectively the same as setting the recovery time to 0. Instead you probably want to use a large number otherwise the buttons instantly recover.
|
Re: No Double Push - Locks buttons. (works for any game)
updated to v2.4.5
see first post for changelog. |
Re: No Double Push - Locks buttons. (works for any game)
I´m running an HL2DM Server, is it possible to lock the vent in dm_lockdown!
Hope you know which map and vent i mean! :-D I installed your plugin, but nothing happened to the button, the vent turns and then the plug disconnected, i want to block / lock this! Hope you can help me to solve my problem! Thanks for reply. |
Re: No Double Push - Locks buttons. (works for any game)
Yes I know the vent shaft on lockdown.
This plugin isn't able to block the ventilator in dm_lockdown. If you pay me 15$ then I'll code you a single plugin especially for dm_lockdown. |
All times are GMT -4. The time now is 02:34. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.