lf2 new use itr kind 40~49 to hit teammate.
So do you want one ?
I decompiled the function func_417400/does_attack_success, this line can tell you why state 18 can attack your teammate.
If you want one, just modify here.
to:
and compile this code to .dll
So do you want one ?
I decompiled the function func_417400/does_attack_success, this line can tell you why state 18 can attack your teammate.
If you want one, just modify here.
C-Code:
# 00417862 # attacker can't attack the one on same team. if (attacker->team == injured->team and attacker->team != no_team and <DVZ_ME#0> != itr_heal and # burning object can attack the one on same team except # flame and firen explosion. (attacker_state != fire_state or effect == flame_effect or effect == firen_explosion_effect ) and # weapons and balls and drinks can attack the balls in # opposite directions. (attacker_type != character_type or injured_type != attack_type or attacker->facing == injured->facing ) and # attacker can attack weapons and drinks on same team. injured_type != lignt_weapon_type and injured_type != heavy_weapon_type and injured_type != throw_weapon_type and injured_type != drink_type) break end |
to:
C-Code:
# 00417862 # attacker can't attack the one on same team. if (attacker->team == injured->team and attacker->team != no_team and <DVZ_ME#0> != itr_heal and # burning object can attack the one on same team except # flame and firen explosion. (attacker_state != fire_state or effect == flame_effect or effect == firen_explosion_effect ) and itr_kind != 123 and <DVZ_ME#1>>effect != 456 and # weapons and balls and drinks can attack the balls in # opposite directions. (attacker_type != character_type or injured_type != attack_type or attacker->facing == injured->facing ) and # attacker can attack weapons and drinks on same team. injured_type != lignt_weapon_type and injured_type != heavy_weapon_type and injured_type != throw_weapon_type and injured_type != drink_type) break end |
and compile this code to .dll
Decompiled functions: [documented] Functions decompiled
Decompile lf2.exe project for documentation: https://github.com/xsoameix/lf2
Decompile lf2.exe project for implementation: https://github.com/xsoameix/openlf2
Once any function fully engineer reversed in documentation project, then we implement it in implementation project.
lf2 data structure: Updated spreadsheet, many changes made by o_g349/xsoameix, I have two different nick names.
A old project: lf2-MS
Decompile lf2.exe project for documentation: https://github.com/xsoameix/lf2
Decompile lf2.exe project for implementation: https://github.com/xsoameix/openlf2
Once any function fully engineer reversed in documentation project, then we implement it in implementation project.
lf2 data structure: Updated spreadsheet, many changes made by o_g349/xsoameix, I have two different nick names.
A old project: lf2-MS