Left 4 Dead 2

Left 4 Dead 2

56 ratings
Additional Events Lib
   
Award
Favorite
Favorited
Unfavorite
Game Content: Scripts
File Size
Posted
Updated
296.019 KB
12 Feb @ 11:04am
20 Aug @ 11:22am
12 Change Notes ( view )

Subscribe to download
Additional Events Lib

In 2 collections by skysky199
Script List
129 items
Script List <Odds and Ends>
41 items
Description
Additional Events:
General Events:
OnSpawn
OnTakeDamage
OnTakeDamage_Post
OnDeath
OnDeath_Pre
OnAbilityUse
OnShoved
OnGiveDamage
OnGiveDamage_Post
OnChatTriggers
OnJoined
OnConnected
OnDisconnected
OnConsoleCommand

Skill Events:
OnSkeet
OnDeadstop
OnPounce
OnLevel
OnTongueRelease
OnHelp
OnDeathCharge
OnTriggerCarAlarm
OnStop
OnRockKilled
OnWitchDeathEx

Scan-Based Events:
OnThink
OnPlayerRunCmd
OnTankRock
OnScenePlayed

Response-Based Events:
OnResponse
OnLook
9 Comments
Xenorvya 17 Aug @ 5:14pm 
Ok it is No Temp Health Decay, thanks for the heads up.
Xenorvya 17 Aug @ 7:59am 
Weird. I am subscribed to No Temp Health Decay, I'll see if it's that mod that causes the problem.
skysky199  [author] 17 Aug @ 7:58am 
@Legoshi's

This doesn't modify convars. The only script of mine that uses that convar is No Temp health Decay.
Xenorvya 16 Aug @ 8:09pm 
Could you make this script compatible with "survivor_incap_decay_rate" ? I personally set the decay rate to 1, so you only lose 1 hp every second, but everytime this script in particular is enabled (not even Lib Collections), it goes back to the default 3 hp per second instead of 1.
Morsch 10 May @ 2:48pm 
Noted, this code was a placeholder either way, i made another one and that one worked fine; your clues were righteous.
skysky199  [author] 10 May @ 12:28pm 
@Morsh

Tested, it's working for me.
Maybe you forgot to enable the Lib Collections too, or you might have misconfigured something in the ems (settings) of my scripts. Try to remove the ems folder and test again.

And if I can suggest,
1.
Don't put VSLib at the same level as your director_base_addon; create a new folder and include it by
IncludeScript("Floder_Name/VSLib");

2.
There is already a function to determine whether player is a bot.
bool IsPlayerABot(handle player)

3.
To determine the spit damage, why not just use
Damagtype & DMG_RADIATION
Morsch 10 May @ 6:08am 
https://pastebin.com/8nt8M9Wj

The fire part works, but when i have this enabled, the spit refuses to work.
skysky199  [author] 9 May @ 10:44pm 
@Morsh

If you have VSLib and/or L4Lib, AllowTakeDamage will not be loaded by this.
Maybe there was an error when processing AllowTakeDamage, then causing the functions below the error one not be performed.
How did you use the AllowTakeDamage function with VSLib or L4Lib?
Morsch 9 May @ 1:55pm 
Just a heads up, your lib seems to cause some issues with Left 4 Lib and VSLib sometimes.

I was making a test script that made the bots stop taking damage from the spit when they reached 39 hp, i was using VSLib and your lib was conflicting with it; the script only worked when i had disabled your lib files.

I also noticed that the spit damage modifier from left 4 bots 2 gets a little janky when this is enabled too.