Left 4 Dead 2

Left 4 Dead 2

37 ratings
[VScript] Bot Charger's Mid-Charge Damage Resistance For Human Players
   
Award
Favorite
Favorited
Unfavorite
Infected: Charger
Game Content: Scripts
File Size
Posted
2.710 KB
28 May @ 3:27pm
1 Change Note ( view )

Subscribe to download
[VScript] Bot Charger's Mid-Charge Damage Resistance For Human Players

In 1 collection by Witch
[VScript] Special Infected Bot Abilities Pack
9 items
Description
No more getting levelled!

Simply recreates the 66% damage resistance that bot chargers have when charging, and lets human chargers use it. I don't even have any screenshot or video for this addon, as it's self-explanatory.
12 Comments
Witch  [author] 29 May @ 9:08am 
only when you charge.
Unknown 29 May @ 9:05am 
osea esto le da al Charger resistencia del 66% todo el tiempo o solo cuando embiste?:steamsad::steamfacepalm:
Witch  [author] 29 May @ 6:21am 
Thank you, I'll look into AllowTakeDamage.
kurochama 28 May @ 8:06pm 
If you want to keep the burning tank while applying fire damage resist/ immunity, one of the ideal methods would be using "SetHealth" on "player_hurt" like I mentioned before. But you'll need to check the number for fire damage type first by using "printl" or "ClientPrint" on "param.type". After getting the number for fire damage type, you can use "SetHealth" to restore health equal to the damage taken when hit by fire damage type.
Alternatively, there's also "AllowTakeDamage" to reduce of nullify damage from certain damage type or from certain attackers, but I'm not sure if tank's pain sounds when on fire are also played with this method.
Witch  [author] 28 May @ 7:22pm 
I appreciate the help you provided for a potential fire damage script (maybe i really should make one to see how much it affects tanks) though I was mainly aiming for being able to cease all attempts of the game to deal fire damage to tanks, since that would allow the tank to play his unique on-fire pain sounds uninterrupted.
kurochama 28 May @ 6:39pm 
@Witch , what do you want with fire damage? If it's to give fire damage resist, you can use "player_hurt" & use "param.type" there to check fire damage. If it's true, then use "SetHealth" to restore health as much as the damage taken for fire damage immunity or just certain portion of damage taken (like only 0.5x of the damage taken for 50% damage resist) for fire damage resist ("param.dmg_health" for damage taken). There's also an easy way to use "Extinguish" from "List of Script Functions" (use "IsOnFire" to check burning state & "Extinguish" to extinguish the fire) on "player_hurt" to make special extinguish fire automatically in certain seconds after getting burned.
BigFellaBubsy 28 May @ 5:34pm 
these are really cool vscripts
Witch  [author] 28 May @ 4:40pm 
since there's a netprop for whether or not you can take damage...I wonder if there's one for fire damage?
kurochama 28 May @ 4:26pm 
In case if you're interested, you can also try to buff spitter when she uses ability (spit), by using "ability_use", "spit_burst", & "player_hurt". For example, if you want to toggle on/ off invincibility when using spit, set "m_takedamage" netprops to 0 on spitter on "ability_use", & then reset it back on "spit_burst". Or you can use a timer that has like 5 seconds of duration that starts the count from "ability_use"
Legoshi's Lover 28 May @ 4:06pm 
Eyes. Ears. Nose. Toes.