STEAM GROUP
Left 4 Dead 2 Workshop Beta L4D2WSB
STEAM GROUP
Left 4 Dead 2 Workshop Beta L4D2WSB
3
IN-GAME
23
ONLINE
Founded
15 October, 2012
Showing 151-160 of 197 entries
5
Knowing map transition is done, weapons with missing ammo, and other odds and ends...
13
Entities.FindByModel never finds anything
19
What are people making?
7
ModEvents.res Discussion
0
FYI - Mutation scripts get executed twice (at least non-mode ones)
0
AllowTakeDamage spamming on melee weapons
I noticed when converting from using OnGameEvent_player_hurt to AllowTakeDamage, melee weapons are sending out a bunch of zero damaged events after the intial damage per swing.

The number of extra calls vary per weapon (tonfa has least) and I'm guessing becasue of that, it's firing for each hit ray? I don't suppose it hurts anything as the damage is correct but I imagine it's a lot of overhead in a mob if four people are swinging.

For instance, one bat hit on a tank produces 23 spurious calls to AllowTakeDamage
function AllowTakeDamage(dt){ printl (dt.Attacker+" damaged "+dt.Victim+" "+dt.DamageDone); return dt; } produces... ([1] player) damaged ([6] player) 200 ([1] player) damaged ([6] player) 0 ([1] player) damaged ([6] player) 0 ([1] player) damaged ([6] player) 0 ([1] player) damaged ([6] player) 0 ([1] player) damaged ([6] player) 0 ([1] player) damaged ([6] player) 0 ([1] player) damaged ([6] player) 0 ([1] player) damaged ([6] player) 0 ([1] player) damaged ([6] player) 0 ([1] player) damaged ([6] player) 0 ([1] player) damaged ([6] player) 0 ([1] player) damaged ([6] player) 0 ([1] player) damaged ([6] player) 0 ([1] player) damaged ([6] player) 0 ([1] player) damaged ([6] player) 0 ([1] player) damaged ([6] player) 0 ([1] player) damaged ([6] player) 0 ([1] player) damaged ([6] player) 0 ([1] player) damaged ([6] player) 0 ([1] player) damaged ([6] player) 0 ([1] player) damaged ([6] player) 0 ([1] player) damaged ([6] player) 0 ([1] player) damaged ([6] player) 0

The player_hurt event handler is called once as expected
4
Too Long, Did not read?
Showing 151-160 of 197 entries