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

[L4D2] Custom Respawn Health/Revive Count of Defibrillator/Rescue v2.2【2024-03-22】


Post New Thread Reply   
 
Thread Tools Display Modes
Author
little_froy
Senior Member
Join Date: May 2021
Plugin ID:
8421
Plugin Version:
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
Servers with this Plugin:
 
Plugin Description:
Old 03-15-2023 , 13:15   [L4D2] Custom Respawn Health/Revive Count of Defibrillator/Rescue v2.2【2024-03-22】
Reply With Quote #1

Description
  • allow custom respawn health/revive count of defibrillator/rescue.

Cvars
PHP Code:
// 1 = enable, 0 = disable. set "m_isGoingToDie" prop after defibrillator used?
// -
// Default: "0"
respawn_health_defib_dying "0"

// how many health buffer will get after defibrillator used
// -
// Default: "0.0"
// Minimum: "0.000000"
respawn_health_defib_health_buffer "0.0"

// how many main health will get after defibrillator used
// -
// Default: "30"
// Minimum: "1.000000"
respawn_health_defib_health_true "30"

// how many revive count will be set after defibrillator used?
// -
// Default: "0"
// Minimum: "0.000000"
respawn_health_defib_revive_count "0"

// 1 = enable defib health settings, 2 = enable rescue health settings. add numbers together
// -
// Default: "3"
// Minimum: "0.000000"
// Maximum: "3.000000"
respawn_health_enable "3"

// 1 = enable, 0 = disable. set "m_isGoingToDie" prop after rescued?
// -
// Default: "0"
respawn_health_rescue_dying "0"

// how many health buffer will get after rescued
// -
// Default: "0.0"
// Minimum: "0.000000"
respawn_health_rescue_health_buffer "0.0"

// how many main health will get after rescued
// -
// Default: "30"
// Minimum: "1.000000"
respawn_health_rescue_health_true "30"

// how many revive count will be set after rescued?
// -
// Default: "0"
// Minimum: "0.000000"
respawn_health_rescue_revive_count "0" 
Related Plugins
Forwards
Spoiler


Change log
Spoiler
Attached Files
File Type: sp Get Plugin or Get Source (respawn_health.sp - 16 views - 8.2 KB)
File Type: inc respawn_health.inc (771 Bytes, 6 views)

Last edited by little_froy; 03-22-2024 at 10:07.
little_froy is offline
Earendil
Senior Member
Join Date: Jan 2020
Location: Spain
Old 03-15-2023 , 18:35   Re: [L4D2] Simple Custom Respawn Health of Defibrillator/Rescue v1.0【2023-03-16】
Reply With Quote #2

Similar results can be achieved by modifying server ConVars:

Code:
sm_cvar survivor_revive_health    -> Temporary
sm_cvar z_survivor_respawn_health -> Permanent and works for defib and closet rescue
__________________
>>My plugins<<
>>GitHub<<
Earendil is offline
little_froy
Senior Member
Join Date: May 2021
Old 03-12-2024 , 07:59   Re: [L4D2] Custom Respawn Health and Revive Coun of Defibrillator/Rescue v2.0【2024-03
Reply With Quote #3

Code:
2.0 (2024-03-12:
-now allow custom health buffer/"m_isGoingToDie" prop/revive count. optional use Heartbeat (Revive Fix - Post Revive Options) to fix thirdstrike and heartbeat if revive count reaches the max.
-all cvar name changed, you have to remove the old .cfg file.

Last edited by little_froy; 03-12-2024 at 08:00.
little_froy 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 04:51.


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