Zylenxx / Expression2

Expression2 Codes and concepts.
0 stars 0 forks source link

sent_Militechdrone - dmgClk() throwing tickquotas despite perf() check #1

Open Zylenxx opened 1 year ago

Zylenxx commented 1 year ago

Branch: Sents

File:sent_militechdrone,Line 332-337 segment:

... if( dmgClk() && perf(20) && lastDamageVictim()==Dronebody ){ Setting = "agressive" Health = max(0,Health-lastDamage():getDamage()) Target = lastDamage():getAttacker() Followtime = 1500 } ...

dmgClk() is being called regardless for each instance of damage done. this breaks in these cases:

NEEDS A FIX ASAP

Zylenxx commented 1 year ago

Bug is related to parsing projectiles whom's entity is no longer valid upon calling the damage tick.

Keeping cantfix tag until i get back to it.