Project Perfect Mod Forums
:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::


The time now is Tue Mar 19, 2024 9:43 am
All times are UTC + 0
(**) Light Towers (GASPOT) explained
Moderators: Global Moderators, Tiberian Sun Moderators
Post new topic   Reply to topic Page 1 of 1 [1 Post] Mark the topic unread ::  View previous topic :: View next topic
Author Message
Lin Kuei Ominae
Seth


Joined: 16 Aug 2006
Location: Germany

PostPosted: Thu Dec 13, 2012 10:21 am    Post subject:  (**) Light Towers (GASPOT) explained Reply with quote  Mark this post and the followings unread

Python wrote:

Originally posted by EnsignRed:

--------------------------------------------------------------------------------------------------------------

I searched for this myself and didn't quite find what I was looking for, so I hammered it out for myself.

To add a spotlight to a Light Tower (GASPOT), you double click on the tower, and a dialog box will open containing the options for the struture.
In colomn 2, box 2, Set it for: 1 - Rules.Ini setting
Then, change the numerical value for direction in colomn 1, box 2.
If you think of a clock face, these values will give you 1/4 sweeps in the following directions:

Value / Clock Position Sweep
0 / 12-3
32 / 2-4
64 / 3-6
96 / 4-8
128 / 6-9
160 / 8-10
192 / 9-12
224 / 10-2

Or, set it for 2 - Circle / Direction (back in colomn 2, box 2) to get a full circle sweep, like a lighthouse. The Directional value then becomes the starting position value:

Value / Clock Position Start
0 / 12
32 / 2
64 / 3
96 / 4
128 / 6
160 / 8
192 / 9
224 / 10

With four towers placed in a square, you can adjust the starting positions accordingly to have them all converge when facing inward. Nice ambiance for a Orca Transport landing zone.

**

These values can also be changed by editing the code in the .mpr or .map file manually after setting it for 1 - Rules.Ini setting:

[Structures]
0=Neutral,GASPOT,256,52,45,0,None,0,0,1,0,1,None,None,None,1,1

0 = Structure number. Starts with "0" and accends accordingly. (*1)
Neutral, = Who owns the structure
GASPOT, = The .ini name for the structure
256, = Structure strength
52,45, = Map Coordinates (*2)
0, = Directional value. By playing with these numbers, it IS possible to get a sweep direction outside the preset defaults.
0, = This position toggles between a standard sweep (value 1) or a "reverse" sweep. (value 0) This allows you to have two spotlights sweep opposite each other and overlap, like at a gate or allong a perimiter. (This has no effect with full circle spots, they always move clockwise.) It isn't possible to change this in FinalSun, it must be changed manually.
1, = Master setting value:
0 = No spot
1 = Rules.Ini setting
2 = 2 - Circle / Direction

*1 The best I can tell this number is assigned in the order you place the buildings on the map. If you plan to frequently go back and edit the code manualy, it helps to place like structures at the same time or to place structures in an area at the same time. This will make it a bit easier to edit, as they will be grouped together in the code as well.  
*2 While I was experimenting with this, I accidenally set this outside my test map and it gave the program siezures. (Although, it may have been that I set the map at 25x25. Don't do that either.)

Note: If I haven't highlighted a piece of the code above yet, that's because I haven't yet figured out what it does or as this project progresses, it doesn't apply to Light Towers. As I mention below, research for this tut. is ongoing.

Now, I think there may be a different way to add a siren/klaxon to a tower. Out of curiosity I looked at the code for TS GDI Mission #12, Rescue the prisoners. That mission has a lot of Light towers. Here's an excerpt of what I found:

1033387=Neutral,GASPOT,256,186,67,192,0854AEC0,0,0,1,0,1,None,None,None,1,1
1033405=Neutral,GASPOT,256,84,182,160,0A00A410,0,0,1,0,1,None,None,None,1,1
1033408=Neutral,GASPOT,256,90,182,96,0A00A410,0,0,1,0,1,None,None,None,1,1
1033495=Neutral,GASPOT,256,86,128,224,08541D50,0,0,1,0,1,None,None,None,1,1
1033498=Neutral,GASPOT,256,89,139,96,08541D50,0,0,1,0,1,None,None,None,1,1
1033502=Neutral,GASPOT,256,130,57,224,08540410,0,0,1,0,1,None,None,None,1,1
1033505=Neutral,GASPOT,256,137,61,96,08540410,0,0,1,0,1,None,None,None,1,1
1033523=Neutral,GASPOT,256,195,65,192,0854AEC0,0,0,1,0,1,None,None,None,1,1
1033526=Neutral,GASPOT,256,189,80,64,None,0,0,1,0,1,None,None,None,1,1
1033529=Neutral,GASPOT,256,164,31,0,None,0,0,1,0,2,None,None,None,1,1
1033581=Neutral,GASPOT,256,186,61,192,0854AEC0,0,0,1,0,1,None,None,None,1,1
1033591=Neutral,GASPOT,256,72,100,160,0854FF90,0,0,1,0,1,None,None,None,1,1

[Triggers]
0A00ABF0=Nod,<none>,Alarm 1,0,1,1,1,0
08544550=Nod,<none>,Alarm 2,0,1,1,1,0
08541230=Nod,<none>,Alarm 3,0,1,1,1,0
08540310=Nod,<none>,Alarm 4,0,1,1,1,0
0854ED10=Nod,<none>,Prison Alarm,0,1,1,1,0

[Tags]
0A00A410=2,Alarm 1,0A00ABF0
08541D50=2,Alarm 2,08544550
08540410=2,Alarm 3,08541230
0854FF90=2,Alarm 4,08540310
0854AEC0=2,Prison Alarm,0854ED10

Looks like the first "none" is a place for a tag that sets off a trigger. Then again I am new to this, so I might be talking out my butt.

This is an ongoing research project, I will post updates as I discover them, and I invite others to add their findings as well.


This tutorial is sponsored by tibweb.


Key Words: #Tutorials #Mapping #TiberianSun #Firestorm #Rules.INI #FinalSun 

_________________
SHP Artist of Twisted Insurrection:  Nod buildings

Public SHPs
X-Mech Calendar (28 Mechs for GDI and Nod)
5 GDI, 5 Nod, 1 Mutant, 1 Scrin unit, 1 GDI building

Tools
Image Shaper______TMP Shop______C&C Executable Modifier

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [1 Post] Mark the topic unread ::  View previous topic :: View next topic
 
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © phpBB Group

[ Time: 0.1422s ][ Queries: 11 (0.0086s) ][ Debug on ]