When making the unit death scripts, it would be nice if one could somehow customize what effects are used for the flying pieces, currently you can only change the smoke/fire bitmaps for the whole mod (I think). This would be useful for making gory stuff, like mutilated arms spraying blood when flying, and to get more variation in general. The best would of course be if it could be done on a script basis, berhaps the "| BITMAP1" thing that seems to be unused today, or some GET/SET trickery could be even better. Failing all else, a simple FBI tag might do.
The second thing is that it would be nice to be able to create ground decals, both for the piece landing, and directly from the script. This would obviously be useful for, again, blood. Also to make more neat footsteps for big units with elaborate walking scripts, etc.
ground decals and stuff
Moderator: Moderators
- Guessmyname
- Posts: 3301
- Joined: 28 Apr 2005, 21:07
There are a couple of threads about it and it's all in the changelog by the way.
- Calling emit-sfx 2048 from a script will now allways fire the weapon. Emit-sfx 4096 will now take over the previous behavior of detonating the weapon at the piece position.
- Added the abillity to call explosiongenerators and weaponfire from within script via emit-sfx command.
Explosiongenerators to be called via script are defined in the unit TDF file in a section called SFXTypes, with tags explosiongenerator+n=some_explosion
and then called via emit-sfx 1024+n.
Weaponfire are called via emit-sfx 2048+weapon_to_fire.