Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: Mad Bomber on September 08, 2013, 06:57:48 pm

Title: A question regarding weapons: variable damage over range?
Post by: Mad Bomber on September 08, 2013, 06:57:48 pm
I haven't found anything in the Weapons.tbl page on the wiki (http://hard-light.net/wiki/index.php/Weapons.tbl) about this, so I'll ask here.

Can the FS2 Open code currently accomodate weapons (primary or secondary) that deal variable damage based on the amount of distance they've traveled? (E.g. $Max Damage at $Range1, $Min Damage at $Range2, with the area in between being calculated on a sliding scale.)
Title: Re: A question regarding weapons: variable damage over range?
Post by: Fury on September 08, 2013, 11:36:32 pm
Only in beams.
Title: Re: A question regarding weapons: variable damage over range?
Post by: Mad Bomber on September 09, 2013, 08:28:11 am
I suspected that was the case  :sigh:
Title: Re: A question regarding weapons: variable damage over range?
Post by: Droid803 on September 10, 2013, 02:07:11 am
Not really an issue.
Everything should be using beams anyway.
(I'm being sarcastic)
Title: Re: A question regarding weapons: variable damage over range?
Post by: Aardwolf on September 10, 2013, 09:59:09 pm
Doable with scripting™

@Droid803 lolwut
Title: Re: A question regarding weapons: variable damage over range?
Post by: Mad Bomber on September 10, 2013, 10:47:39 pm
Doable with scripting™

Yeah, I was thinking about that. Like, an entry for each range bracket of the weapon, and the script would change the weapon to the appropriate variant based on range-to-target.

How could I do this and still account for the player being able to change their weapons loadout before the mission began?

(Might be time to move this to the Scripting subforum...)