Open MrFailzz opened 1 year ago
NetProps.SetPropEntity(tallboy, "m_pummelVictim", tallboy);
NetProps.SetPropEntity(survivor, "m_pummelAttacker", survivor);
I think this should be swapped around like this:
NetProps.SetPropEntity(tallboy, "m_pummelVictim", survivor);
NetProps.SetPropEntity(survivor, "m_pummelAttacker", tallboy);
It's been a while since I messed with this but I recall the victim and attacker properties are basically opposite of what they would be intuitively.
You should be able to see the same thing with the Hockey ability function. To get the smoker out of the attack state you set their tongueVictim property to 0 instead of the survivors.
Basically for grabs victim = infected attacker = survivor
Using clearer variable names would help eliminate confusion, e.g. tallboy = attacker, survivor = victim, which would look like this:
NetProps.SetPropEntity(attacker, "m_pummelVictim", victim);
NetProps.SetPropEntity(victim, "m_pummelAttacker", attacker);
At least from what I tested when I posted #48 this looks correct to me. What I was pointing out was that your code was pointing each entity to itself, e.g. attacker = attacker, victim = victim, which I presume is why things weren't attaching or animating correctly.
Currently it looks like this:
NetProps.SetPropEntity(attacker, "m_pummelVictim", attacker);
NetProps.SetPropEntity(victim, "m_pummelAttacker", victim);
It still has the same result as the original IMG. I might've just swapped those around at some point to see what would happen and forgot to change it back tbh
Also to clarify a bit more the result also deals no dmg. Idk if the stuff with the Hag was applying the dmg correctly
Tried some stuff here but it doesn't "grab" the survivor (just like parents them) https://github.com/MrFailzz/Swarm-Mode/blob/main/scripts/vscripts/swarm/swarm_specials.nut#L351-L363