Is it somehow possible to imitate a 'slasher' style beam in spring? (I'm refering to a class of Freespace 2 beam weapons that slash the target instead of focusing on one spot).
Also, it it possible submunitions? (I'm not really to hopeful on this)
Weapon scripting questions
Moderator: Moderators
I read up that submunitions were possible in TA. The idea was to have a weapon where the spreading only occurs a while after the shot has been shot, and to fire a large burst of shots all at once, so initially all shots occupy the same position so looks like one, then they spread. I can't find back the topic, don't remember exactly how you make them spread after a while (I think it's something about how missile go into loose mode when out of flight time), and anyway Spring difference in weapon TDF tags interpretation could make it not work directly. But it's still a lead to investigate.
Woah, very good!KDR_11k wrote:yeha just added functionality for firing any weapon therough the script
emit-sfx <WeaponNum-1>+2048 from <piece>; does the trick in the latest build.
WeaponNum is the number of the weapon on the unit (not a weapon ID), starting with 0.
emit-sfx 0+2048 from <vector>; would detonate the primary weapon at given vector; vector meaning something with less than two vertices in this case, e.g. a flare1 position. To make it "shoot" from something you have to emit it from a piece with more than two vertices. Thus "emit-sfx 1+2048 from gun1" would fire weapon 2 from an object called gun1.
zwzsg: Your fat shrew stomp script may greatly benefit from that, you don't need hacky workarounds anymore :). True melee combat looks quite possible now...
WeaponNum is the number of the weapon on the unit (not a weapon ID), starting with 0.
emit-sfx 0+2048 from <vector>; would detonate the primary weapon at given vector; vector meaning something with less than two vertices in this case, e.g. a flare1 position. To make it "shoot" from something you have to emit it from a piece with more than two vertices. Thus "emit-sfx 1+2048 from gun1" would fire weapon 2 from an object called gun1.
zwzsg: Your fat shrew stomp script may greatly benefit from that, you don't need hacky workarounds anymore :). True melee combat looks quite possible now...