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

[L4D2] Charger Power


Post New Thread Reply   
 
Thread Tools Display Modes
a2121858
Member
Join Date: Sep 2020
Old 10-20-2021 , 21:46   Re: [L4D2] Charger Power
Reply With Quote #81

This version adds item damage source tracking.

Modified according to #76 Silvers's version and method.
Attached Files
File Type: sp Get Plugin or Get Source (l4d2_charger_power.sp - 313 views - 10.4 KB)
a2121858 is offline
BioHazardN7
Member
Join Date: Oct 2020
Location: Укр
Old 07-26-2023 , 09:34   Re: [L4D2] Charger Power
Reply With Quote #82

Quote:
Originally Posted by a2121858 View Post
This version adds item damage source tracking.

Modified according to #76 Silvers's version and method.
Code:
SourcePawn Compiler 1.11.0.6934
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2021 AlliedModders LLC

l4d2_charger_power.sp(161) : warning 242: function "TimerRemoveEntity" should return an explicit value
l4d2_charger_power.sp(180) : warning 242: function "CheckEntity" should return an explicit value
l4d2_charger_power.sp(180) : warning 242: function "CheckEntity" should return an explicit value
l4d2_charger_power.sp(213) : warning 242: function "EventPlayerSpawn" should return an explicit value
l4d2_charger_power.sp(247) : warning 242: function "DelayDisplayHint" should return an explicit value
l4d2_charger_power.sp(247) : warning 242: function "DelayDisplayHint" should return an explicit value
l4d2_charger_power.sp(308) : warning 242: function "RemoveInstructorHint" should return an explicit value
l4d2_charger_power.sp(308) : warning 242: function "RemoveInstructorHint" should return an explicit value
Code size:         13660 bytes
Data size:         4152 bytes
Stack/heap size:      16808 bytes
Total requirements:   34620 bytes

8 Warnings.
BioHazardN7 is offline
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 10-27-2023 , 22:38   Re: [L4D2] Charger Power
Reply With Quote #83

Quote:
Originally Posted by BioHazardN7 View Post
Code:
SourcePawn Compiler 1.11.0.6934
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2021 AlliedModders LLC

l4d2_charger_power.sp(161) : warning 242: function "TimerRemoveEntity" should return an explicit value
l4d2_charger_power.sp(180) : warning 242: function "CheckEntity" should return an explicit value
l4d2_charger_power.sp(180) : warning 242: function "CheckEntity" should return an explicit value
l4d2_charger_power.sp(213) : warning 242: function "EventPlayerSpawn" should return an explicit value
l4d2_charger_power.sp(247) : warning 242: function "DelayDisplayHint" should return an explicit value
l4d2_charger_power.sp(247) : warning 242: function "DelayDisplayHint" should return an explicit value
l4d2_charger_power.sp(308) : warning 242: function "RemoveInstructorHint" should return an explicit value
l4d2_charger_power.sp(308) : warning 242: function "RemoveInstructorHint" should return an explicit value
Code size:         13660 bytes
Data size:         4152 bytes
Stack/heap size:      16808 bytes
Total requirements:   34620 bytes

8 Warnings.
Fix warnings and memory leak
Attached Files
File Type: txt charger_power.phrases.txt (293 Bytes, 40 views)
File Type: sp Get Plugin or Get Source (l4d2_charger_power.sp - 38 views - 10.0 KB)
__________________

Last edited by HarryPotter; 02-03-2024 at 10:52.
HarryPotter is offline
glhf3000
Member
Join Date: Aug 2010
Location: middle-universe
Old 03-12-2024 , 03:16   Re: [L4D2] Charger Power
Reply With Quote #84

This addon to the main plugin makes the pushing force dependent on the charger's speed. By default, the game sets a sprint(warmup) time of 0.5 seconds, with a starting speed of 250 and a maximum of 500. Consequently, in the first 0.5 seconds, the pushing force varies from 250/500=50% to 100%, and at the end of the sprint, when the speed drops from 500 to 0, the pushing force will range from 100% down to 0.

The plugin uses standard L4D2 cvars for this:

z_charge_warmup
z_charge_duration
z_charge_start_speed
z_charge_max_speed

Overall, this addresses the imbalance issue with pushing cars, as the charger immediately pushed far, something you just don't have time to notice. Especially if additional boxes/cars were added to the map for this purpose using a stripper beforehand.

It's made as a separate plugin because the main one has been modified/corrected in many places and everyone customizes it for themselves, i.e., just to avoid mixing things up.

If you change the cvar for the pushing force, you will need to reload this plugin afterward.

Attached Files
File Type: sp Get Plugin or Get Source (l4d2_charger_power_distance.sp - 11 views - 3.8 KB)

Last edited by glhf3000; 03-12-2024 at 11:10.
glhf3000 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 07:27.


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