Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Scooby_Doo on September 17, 2007, 09:12:56 pm

Title: Weapons alias.
Post by: Scooby_Doo on September 17, 2007, 09:12:56 pm
I posted this in the mod form about a month ago, but no response.  Maybe this is the correct place.

Is it possible to have Weapon B to be an alias to Weapon A.  If weapon A is changed B gets changed too?  Or at least an easier way to do than having to go in a copy and paste everything?
Title: Re: Weapons alias.
Post by: karajorma on September 18, 2007, 10:52:08 am
What you need is an equivalent to Turey's template code but for weapons instead of ships.
Title: Re: Weapons alias.
Post by: Scooby_Doo on September 18, 2007, 05:31:31 pm
I kinda scanned through it, does it still require modifications on the original table ($template:?).  If so, then thats not doable.
Title: Re: Weapons alias.
Post by: Turey on September 18, 2007, 07:33:07 pm
I kinda scanned through it, does it still require modifications on the original table ($template:?).  If so, then thats not doable.

Why?
Title: Re: Weapons alias.
Post by: Nuke on September 18, 2007, 07:44:21 pm
What you need is an equivalent to Turey's template code but for weapons instead of ships.

template code isnt being developed for both :D
Title: Re: Weapons alias.
Post by: Turey on September 18, 2007, 07:55:51 pm
What you need is an equivalent to Turey's template code but for weapons instead of ships.

template code isnt being developed for both :D

It could be.
Title: Re: Weapons alias.
Post by: Scooby_Doo on September 18, 2007, 09:45:21 pm
Basically I want to use Saga's missiles, but I've already got my own missile names.  Now I could go through 40 models and redo their tables and upload them or I could copy and paste the values from their entries, but they wouldn't keep updated.  Or I could alias my missile with theirs and never have to touch it again.
Title: Re: Weapons alias.
Post by: Turey on September 18, 2007, 10:02:22 pm
Basically I want to use Saga's missiles, but I've already got my own missile names.  Now I could go through 40 models and redo their tables and upload them or I could copy and paste the values from their entries, but they wouldn't keep updated.  Or I could alias my missile with theirs and never have to touch it again.

Hurray for Find and Replace!
Title: Re: Weapons alias.
Post by: Scooby_Doo on September 18, 2007, 10:10:53 pm
That won't work as well.... each model is in a seperate vps (all those that i've uploaded).  However there is a single master weapon table, if I could change that one then everyone would get those updates.