Raised This Month: $12 Target: $400
 3% 

[REQUEST] Lower time flashed CS 1.6


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
suhdude
Senior Member
Join Date: Mar 2016
Location: Sweden
Old 10-25-2017 , 14:39   [REQUEST] Lower time flashed CS 1.6
Reply With Quote #1

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 is offline
suhdude
Senior Member
Join Date: Mar 2016
Location: Sweden
Old 10-26-2017 , 15:33   Re: [REQUEST] Lower time flashed CS 1.6
Reply With Quote #2

bump

Please, this is huge!
suhdude is offline
suhdude
Senior Member
Join Date: Mar 2016
Location: Sweden
Old 10-27-2017 , 14:21   Re: [REQUEST] Lower time flashed CS 1.6
Reply With Quote #3

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!
suhdude is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 11-02-2017 , 13:11   Re: [REQUEST] Lower time flashed CS 1.6
Reply With Quote #4

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.
__________________

Last edited by HamletEagle; 11-02-2017 at 13:11.
HamletEagle is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 11-02-2017 , 16:45   Re: [REQUEST] Lower time flashed CS 1.6
Reply With Quote #5

There are topics that explain how to do that. Just search a bit and you'll find 'em.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
suhdude
Senior Member
Join Date: Mar 2016
Location: Sweden
Old 11-03-2017 , 08:49   Re: [REQUEST] Lower time flashed CS 1.6
Reply With Quote #6

Quote:
Originally Posted by HamletEagle View Post
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

Last edited by suhdude; 11-03-2017 at 09:14.
suhdude is offline
suhdude
Senior Member
Join Date: Mar 2016
Location: Sweden
Old 11-03-2017 , 08:51   Re: [REQUEST] Lower time flashed CS 1.6
Reply With Quote #7

Quote:
Originally Posted by suhdude View Post
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.
suhdude is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 11-03-2017 , 16:41   Re: [REQUEST] Lower time flashed CS 1.6
Reply With Quote #8

Quote:
Originally Posted by HamletEagle View Post
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.
__________________

Last edited by HamletEagle; 11-03-2017 at 16:41.
HamletEagle is offline
Rohanlogs
Senior Member
Join Date: Nov 2015
Old 11-04-2017 , 08:51   Re: [REQUEST] Lower time flashed CS 1.6
Reply With Quote #9

Well this should be one way to do it but untested.
Increase amx_flash_multiplier to lower the time flashed.
Default = 1.
Attached Files
File Type: sma Get Plugin or Get Source (flashed_duration.sma - 718 views - 1.0 KB)
File Type: sma Get Plugin or Get Source (flashed_duration_fix.sma - 228 views - 1.2 KB)
__________________

Last edited by Rohanlogs; 10-18-2021 at 14:51.
Rohanlogs is offline
talibana
Member
Join Date: Oct 2008
Location: United Kingdom
Old 10-08-2021 , 16:33   Re: [REQUEST] Lower time flashed CS 1.6
Reply With Quote #10

Quote:
Originally Posted by Rohanlogs View Post
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)
talibana is offline
Reply


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 04:51.


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