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

[L4D2] Changing the cooldown Ability


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
eyal282
Veteran Member
Join Date: Aug 2011
Old 03-05-2017 , 17:13   [L4D2] Changing the cooldown Ability
Reply With Quote #1

I am trying to reset the cooldown of charger so although currently his ability his ready, to set it to as if he just charged and failed.

No success. How can it be done?
eyal282 is offline
xerox8521
Senior Member
Join Date: Sep 2011
Old 03-06-2017 , 05:06   Re: [L4D2] Changing the cooldown Ability
Reply With Quote #2

Create an SDK Call for CBaseAbility::StartActivationTimer. Then you use GetEntPropEnt(client, Prop_Send,"m_customAbility") to receive the ability for the player or special infected. Then do the sdkcall.
xerox8521 is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 03-07-2017 , 15:00   Re: [L4D2] Changing the cooldown Ability
Reply With Quote #3

Quote:
Originally Posted by xerox8521 View Post
Create an SDK Call for CBaseAbility::StartActivationTimer. Then you use GetEntPropEnt(client, Prop_Send,"m_customAbility") to receive the ability for the player or special infected. Then do the sdkcall.
Can you give me an example please?
eyal282 is offline
Lux
Veteran Member
Join Date: Jan 2015
Location: Cat
Old 03-07-2017 , 21:17   Re: [L4D2] Changing the cooldown Ability
Reply With Quote #4

Quote:
Originally Posted by xerox8521 View Post
Create an SDK Call for CBaseAbility::StartActivationTimer. Then you use GetEntPropEnt(client, Prop_Send,"m_customAbility") to receive the ability for the player or special infected. Then do the sdkcall.
I'm sure you don't need a sdk to change that?
__________________
Connect
My Plugins: KlickME
[My GitHub]

Commission me for L4D
Lux is offline
Shadowysn
Senior Member
Join Date: Sep 2015
Location: Location:
Old 07-31-2022 , 02:22   Re: [L4D2] Changing the cooldown Ability
Reply With Quote #5

Quote:
Originally Posted by Lux View Post
I'm sure you don't need a sdk to change that?
Attempting to change the ability_charge entity's m_nextActivationTimer's m_duration and m_timestamp netprops just seems to crash my server every time.

Last edited by Shadowysn; 07-31-2022 at 02:25.
Shadowysn is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 07-31-2022 , 23:13   Re: [L4D2] Changing the cooldown Ability
Reply With Quote #6

With the existence of Left4Dhooks this question legitimately doesn't matter.
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334
eyal282 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 10:55.


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