Little Fighter Empire - Forums
Friendly fire - Printable Version

+- Little Fighter Empire - Forums (https://lf-empire.de/forum)
+-- Forum: Little Fighter 2 Zone (https://lf-empire.de/forum/forumdisplay.php?fid=7)
+--- Forum: [2.0] Exe Editing (https://lf-empire.de/forum/forumdisplay.php?fid=43)
+--- Thread: Friendly fire (/showthread.php?tid=9362)

Pages: 1 2


Friendly fire - Marko - 08-20-2014

Is it possible to introduce friendly fire in lf2?
Has anyone ever done it before?
or just to add friendly fire effect on few moves?


RE: Friendly fire - Nyamaiku - 08-20-2014

the burning state (18 i think? i forgot) allow friendly fire, but cause smoke effect.
you can remove the normal smoke, then make burning frames spawn their own smoke.


RE: Friendly fire - Hellblazer - 08-20-2014

It is in the mod lf2.5


RE: Friendly fire - Marko - 08-20-2014

isnt state 18 selfhit stuff?.. I was thinking of punching your teamate or if you do explosion its affect your teamates as well.. so you can kill them.

@Appendix, really?


RE: Friendly fire - Nyamaiku - 08-20-2014

(08-20-2014, 01:54 PM)Marko Wrote:  isnt state 18 selfhit stuff?.. I was thinking of punching your teamate or if you do explosion its affect your teamates as well.. so you can kill them.
you can hit your self, why cant you hit your teammates?
remember when you are burning you can burn your teammates too?


RE: Friendly fire - Marko - 08-20-2014

(08-20-2014, 02:14 PM)Nyamaiku Wrote:  
(08-20-2014, 01:54 PM)Marko Wrote:  isn't state 18 selfhit stuff?.. I was thinking of punching your teammate or if you do explosion its affect your teammates as well.. so you can kill them.
you can hit your self, why cant you hit your teammates?
remember when you are burning you can burn your teammates too?
Hmm.. could work but what if you wanna make something bigger like mod for example? Editing every move would be ridiculous. I am talking about some hex editing thing. Is there any way?


RE: Friendly fire - o_g349 - 08-20-2014

If you don't want use state: 18 to hit teammate, what the keyword do you want to use ?
Do you want to create new keyword to indicate that character can attack teammate, like can_hit_teammate: 1 ?
Or you just want to use some keyword but not 'state', like 'effect: 17', to indicate you want to attack teammate ?


RE: Friendly fire - Gespenst - 08-20-2014

I bet someone might know.
Lets think about that thing when somebody used to talk about catch a teammate.


RE: Friendly fire - TamBoy - 08-22-2014

(08-20-2014, 02:24 PM)Marko Wrote:  
(08-20-2014, 02:14 PM)Nyamaiku Wrote:  
(08-20-2014, 01:54 PM)Marko Wrote:  isn't state 18 selfhit stuff?.. I was thinking of punching your teammate or if you do explosion its affect your teammates as well.. so you can kill them.
you can hit your self, why cant you hit your teammates?
remember when you are burning you can burn your teammates too?
Hmm.. could work but what if you wanna make something bigger like mod for example? Editing every move would be ridiculous. I am talking about some hex editing thing. Is there any way?
If im not wrong, there is a mod made for more DC options call lf2 new (if I remember correctly), Im pretty sure it got this option. You should check it.
The mod post (in the chinese forum, translated by Google translate)



RE: Friendly fire - o_g349 - 08-22-2014

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.

    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#1> != 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#1> != 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#2>>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