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

[L4D2]Is it possible to control the charge time of a single Charger?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
a2121858
Member
Join Date: Sep 2020
Old 02-17-2022 , 02:57   [L4D2]Is it possible to control the charge time of a single Charger?
Reply With Quote #1

Hi, is there a way to modify the charge time of a single Charger?

Do not modify the whole by "z_charge_duration".

Can someone help me? Thanks!
a2121858 is offline
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 02-17-2022 , 03:54   Re: [L4D2]Is it possible to control the charge time of a single Charger?
Reply With Quote #2

You can try detouring the "CCharge::ActivateAbility" function.

In the pre-hook, set "z_charge_duration" to whatever value you want for the player.
In the post-hook, set "z_charge_duration" back to the default value.
__________________
Psyk0tik is offline
NoroHime
Veteran Member
Join Date: Aug 2016
Location: bed
Old 02-25-2022 , 01:12   Re: [L4D2]Is it possible to control the charge time of a single Charger?
Reply With Quote #3

learn how to setup SDKTools
https://wiki.alliedmods.net/SDKTools...ling_Functions
anyway im not start learn how use that, call a function looks easy, but hook function kinda hard
__________________
NoroHime is offline
a2121858
Member
Join Date: Sep 2020
Old 02-25-2022 , 01:40   Re: [L4D2]Is it possible to control the charge time of a single Charger?
Reply With Quote #4

Thanks Psyk0tik and NoroHime, I will try.
a2121858 is offline
Reply



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 19:13.


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