Left 4 Dead 2

Left 4 Dead 2

46 ratings
Additional Events Lib
   
Award
Favorite
Favorited
Unfavorite
Game Content: Scripts
File Size
Posted
Updated
289.500 KB
12 Feb @ 11:04am
29 May @ 6:25am
11 Change Notes ( view )

Subscribe to download
Additional Events Lib

In 2 collections by skysky199
Script List
112 items
Script List <Odds and Ends>
36 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
5 Comments
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.