sfall-team/sfall

A new weapon like the Molotov Cocktail?

blackpaulillyria opened this issue · 3 comments

Is it possible to create a new weapon like the Molotov Cocktail? A weapon that would explode upon impact but do a special Dancing Flames death animation if the victim dies? I tried but couldn't get the desired behavior. My targets explode upon death even when the weapon has perk "Weapon Flameboy". It seems that there are some aspects of Molotov Cocktail which are hardcoded into the exe.

There's already a mod that changes the molotov cocktail to deal fire damage (for years by now, in fact, probably one of the oldest). You can just copy that.

See this for an example:
9bd9837
Or you can check EcCo for more advanced examples (incendiary weapons/ammo).

The "Weapon Flameboy" perk does not guarantee the fire dance death anim. It only lowers the damage threshold for more violent death anims. If the damage type is not fire, obviously you won't get the fire dance anim.

Thanks for your help, guys! So basically that mod does something similar to what is happening here at this line and I can apply that behaviour to some other weapon PID?

https://github.com/alexbatalov/fallout2-re/blob/b135fc46ef40c4aecd156f3cebcf88ec531bb8ac/src/game/actions.c#L189