AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   [REQUEST] Lower time flashed CS 1.6 (https://forums.alliedmods.net/showthread.php?t=302343)

suhdude 10-25-2017 14:39

[REQUEST] Lower time flashed CS 1.6
 
Me and my friend have a very busy public server running, and the time flashed is too great.
Is there a way to lower the time?

I know that if you are already flashed, and get flashed again.
That second flash will last much much longer than the initial one.

Maybe this can be something to play around with as well.
When we have 32 people playing, you are white for too long.

Thanks a ton to anyone trying to help! :)

suhdude 10-26-2017 15:33

Re: [REQUEST] Lower time flashed CS 1.6
 
bump

Please, this is huge!

suhdude 10-27-2017 14:21

Re: [REQUEST] Lower time flashed CS 1.6
 
Maybe someone can edit this plugin and take what is needed from it?
https://forums.alliedmods.net/showth...?p=7802?p=7802

Thanks a ton!

HamletEagle 11-02-2017 13:11

Re: [REQUEST] Lower time flashed CS 1.6
 
By fastly looking at game code it seems that the most simple way is to hook ScreenFade message with register_message and change holdTime param.

EFFx 11-02-2017 16:45

Re: [REQUEST] Lower time flashed CS 1.6
 
There are topics that explain how to do that. Just search a bit and you'll find 'em.

suhdude 11-03-2017 08:49

Re: [REQUEST] Lower time flashed CS 1.6
 
Quote:

Originally Posted by HamletEagle (Post 2558100)
By fastly looking at game code it seems that the most simple way is to hook ScreenFade message with register_message and change holdTime param.

Thank you HamletEagle, maybe this will be my first step to learn scripting!
Edit: I don't think I'm capable of this yet, need to do a few more tutorials at least :D

suhdude 11-03-2017 08:51

Re: [REQUEST] Lower time flashed CS 1.6
 
Quote:

Originally Posted by suhdude (Post 2558254)
Thank you HamletEagle, maybe this will be my first step to learn scripting!

I have googled and searched in "plugins" and "snippets and tutorial" for "flash time" "flashbang" "ScreenFade" "time flashed" without any luck.

Am I looking in the wrong place?

Thanks for responding to my initial post.

HamletEagle 11-03-2017 16:41

Re: [REQUEST] Lower time flashed CS 1.6
 
Quote:

Originally Posted by HamletEagle (Post 2558100)
By fastly looking at game code it seems that the most simple way is to hook ScreenFade message with register_message and change holdTime param.

https://wiki.alliedmods.net/Half-Lif...nts#ScreenFade
That's the message structure. You need to do set_msg_arg_int on the second argument. It's 5 lines of code.

Rohanlogs 11-04-2017 08:51

Re: [REQUEST] Lower time flashed CS 1.6
 
2 Attachment(s)
Well this should be one way to do it but untested.
Increase amx_flash_multiplier to lower the time flashed.
Default = 1.

talibana 10-08-2021 16:33

Re: [REQUEST] Lower time flashed CS 1.6
 
Quote:

Originally Posted by Rohanlogs (Post 2558457)
Well this should be one way to do it but untested.
Increase amx_flash_multiplier to lower the time flashed.
Default = 1.

I have that error in logs and server crash when someone throw flashbang.

L 10/08/2021 - 23:26:09: [AMXX] Displaying debug trace (plugin "flashed_duration.amxx", version "0.0.1")
L 10/08/2021 - 23:26:09: [AMXX] Run time error 11: divide
L 10/08/2021 - 23:26:09: [AMXX] [0] flashed_duration.sma::EventBlinded (line 33)


All times are GMT -4. The time now is 03:58.

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