Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: Molaris on December 19, 2012, 11:44:28 am

Title: Spread Fire
Post by: Molaris on December 19, 2012, 11:44:28 am
Is there any way to cause a weapons attacks to fire around the target as well as at? For example, when you load the TerPulse from BP via cheat codes and fire, they do not fire straight, but in random directions. How do you go about doing this? Flak Turrets do this to some degree I believe. I'm interested in learning how to do that. Thanks guys.
Title: Re: Spread Fire
Post by: Nyctaeus on December 19, 2012, 11:52:11 am
http://www.hard-light.net/wiki/index.php/Weapons.tbl#.24FOF: ??
Title: Re: Spread Fire
Post by: Shivan Hunter on December 19, 2012, 11:54:10 am
$FOF=degrees (http://www.hard-light.net/wiki/index.php/Weapons.tbl#.24FOF:). Put this in your weapon definition in the order it appears in that wiki page.

[EDIT] lol ninja'd. Also, it's a good idea to look through the Wiki pages on weapons.tbl or ahips.tbl just to see what's possible.
Title: Re: Spread Fire
Post by: Molaris on December 19, 2012, 01:14:59 pm
I've tried looking through sometimes, but can have a hard time breaking it down and understanding it. either I'm simple or the wiki is complex......or both.....but thanks guys, I appreciate it.

Is there a bigger reason that field was created for that or is it simply for looks?
Title: Re: Spread Fire
Post by: General Battuta on December 19, 2012, 02:16:29 pm
$FOF is definitely not simply for looks. Weapons like the TerPulse would be much more powerful without it.