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

[L4D2] Changing a revive speed for an individual player


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BRU7US
Member
Join Date: Jul 2020
Location: Tatarstan, Kazan
Old 05-20-2023 , 10:18   [L4D2] Changing a revive speed for an individual player
Reply With Quote #1

Does anyone know how to change a revive speed for an individual player? For example: i can revive teammate in 4 seconds, and "player 2" can revive in 2 seconds.

Last edited by BRU7US; 05-20-2023 at 10:18.
BRU7US is offline
alasfourom
Senior Member
Join Date: Feb 2022
Location: Saudi Arabia
Old 05-21-2023 , 10:48   Re: [L4D2] Changing a revive speed for an individual player
Reply With Quote #2

You can try this: Survivor Utilities - By: Earendil

PHP Code:
/**
 * @brief                   Called when a survivor revives another one
 *
 * @param client            Survivor reviving
 * @param target            Survivor being revived
 * @param duration          Duration of the deploy
 *
 * @return                  Plugin_Handled to block the reviving, Plugin_Changed to override duration, Plugin_Continue otherwise
 */
forward Action SU_OnRevive(int clientint targetfloatduration); 
__________________
alasfourom is offline
BRU7US
Member
Join Date: Jul 2020
Location: Tatarstan, Kazan
Old 05-21-2023 , 20:14   Re: [L4D2] Changing a revive speed for an individual player
Reply With Quote #3

Quote:
Originally Posted by alasfourom View Post
You can try this: Survivor Utilities - By: Earendil

PHP Code:
/**
 * @brief                   Called when a survivor revives another one
 *
 * @param client            Survivor reviving
 * @param target            Survivor being revived
 * @param duration          Duration of the deploy
 *
 * @return                  Plugin_Handled to block the reviving, Plugin_Changed to override duration, Plugin_Continue otherwise
 */
forward Action SU_OnRevive(int clientint targetfloatduration); 
I'll try it. Thanks!
BRU7US is offline
BHaType
Great Tester of Whatever
Join Date: Jun 2018
Old 05-21-2023 , 22:02   Re: [L4D2] Changing a revive speed for an individual player
Reply With Quote #4

Quote:
Originally Posted by BRU7US View Post
Does anyone know how to change a revive speed for an individual player? For example: i can revive teammate in 4 seconds, and "player 2" can revive in 2 seconds.
You can hook revive event and change convar to whatever value.
Take a look to this example. Makes player revive faster by chance.
Spoiler
__________________
cry
BHaType is offline
Send a message via AIM to BHaType
BRU7US
Member
Join Date: Jul 2020
Location: Tatarstan, Kazan
Old 05-22-2023 , 13:12   Re: [L4D2] Changing a revive speed for an individual player
Reply With Quote #5

Quote:
Originally Posted by BHaType View Post
You can hook revive event and change convar to whatever value.
Take a look to this example. Makes player revive faster by chance.
Spoiler
It doesn't look complicated! Thank you!
BRU7US 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 12:52.


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