Author Topic: ProjType settings (spells.2da) video and demo module:  (Read 423 times)

Legacy_OldTimeRadio

  • Hero Member
  • *****
  • Posts: 2307
  • Karma: +0/-0
ProjType settings (spells.2da) video and demo module:
« on: January 15, 2012, 01:56:57 am »


               The video and demo module below shows off the 9 ProjType settings for projectiles in spells.2da and what each of them look like when used.

They are:
homing - Homes directly to target
ballistic - Homes to target following ballistic arc
highballistic - Homes to target following extremely steep ballistic arc, like a mortar.
burst - Homes to target via random (XYZ) ballistic arc. Path random on all 3 axes.
accelerating - Homes directly to target, accelerating as it travels
spiral - Homes to target then spirals around several times before impact.  Think "Hellball"
linked - Attached to ProjSpwnPoint and at the very last second homes directly to target
bounce - Travels to target via 3 bounces.  First bounce at halfway point, second when 3/4 there if not launched high.
test - (undocumented) Homes to target following ballistic arc, breaks into 4 MIRVs at halfway point which converge on target.
**** - This is the "tenth" setting but it's really no setting at all so any projectile created using this as a ProjType setting will hang in space where it was created.  There are probably much better methods to use if you're going for that effect.

'Image

'Image

There is a longer post in the CC forum but it covers more material than just scripting stuff.  Hope this encourages more people to take a stab at making custom spells.
               
               

               
            

Legacy_WhiZard

  • Hero Member
  • *****
  • Posts: 2149
  • Karma: +0/-0
ProjType settings (spells.2da) video and demo module:
« Reply #1 on: January 15, 2012, 03:16:34 am »


               Thank you OTR. Just to note, PROJECTILE_PATH_TYPE_DEFAULT, is what you want to use in ActionCastSpellAt...() commands to make use of the .2da projectile settings.  The other scripted options (to override the .2da setting) are much more limiting.
               
               

               


                     Modifié par WhiZard, 15 janvier 2012 - 03:16 .
                     
                  


            

Legacy_OldTimeRadio

  • Hero Member
  • *****
  • Posts: 2307
  • Karma: +0/-0
ProjType settings (spells.2da) video and demo module:
« Reply #2 on: January 15, 2012, 05:19:26 pm »


               

WhiZard wrote...
Thank you OTR. Just to note, PROJECTILE_PATH_TYPE_DEFAULT, is what you want to use in ActionCastSpellAt...() commands to make use of the .2da projectile settings.  The other scripted options (to override the .2da setting) are much more limiting.


Absolutely right, WhiZard- thanks for pointing that out.  In the bigger message in the CC forums there are script snippets included which indicate that but I'd forgotten to state it explicitly.
               
               

               


                     Modifié par OldTimeRadio, 15 janvier 2012 - 05:20 .