Posted: Sun Jul 17, 2011 7:22 pm Post subject:
Light Tower
Hello, guys. I want to make alittle interesting bases (Campaign/Skirmish) most of the time, such as Prisons/Camps, ya'know. But I need LightTowers to face a certian direction. If that can't be done, then I want the LightTowers to do a circle motion with its spotlight. But I don't know how. If you know how, it would be really appreciated. QUICK_EDIT
You mean you want the spotlight face a certain direction? It's possible, though the light will still perform a short, arcing sweep. Just double-click the building on the map and select Spotlight: 1 - Rules.ini setting. You can further adjust the settings in the forementioned ini file if you know what you're doing (you can even make the light stay still if you want). _________________
Joined: 09 May 2011 Location: Approaching the Great Pyramid
Posted: Mon Jul 18, 2011 1:09 am Post subject:
this are settings for rules.ini to be used
Code:
SpotlightSpeed=.015 ; speed in radians
SpotlightMovementRadius=0 ; offset of center of arc sweep (was 2000)
SpotlightLocationRadius=1000 ; offset from building
SpotlightAcceleration=.0025 ; acceleration in radians
SpotlightAngle=360 ; maximum suggest angle of arc sweep (was .5)
SpotlightAngle=123456 works ok too, but not correct.
The spotlight is hardcoded to make sweep to + SpotlightAngle and then back to - SpotlightAngle, thus in your case you tell it to turn 20626,48 circles in one direction and then 20626,48 circles in the other direction.
with 6.283 it would turn only one full circle in one direction and then another one in the other direction. A multiple of that value and you can set the exact amount of full 360° rotations it should do, which is ingame a lot more easy to use. _________________ SHP Artist of Twisted Insurrection: Nod buildings
I know you didn't want that, but that is how it's coded.
If you give the key such a high value it can cause unexpected results. The game is quite unsafe coded (almost no exception handling) and if it's only accepting a byte value with max 255, then this could cause strange effects like a savegame bug or an IE. _________________ SHP Artist of Twisted Insurrection: Nod buildings
Well, i didn't said it would cause instability, only that it could cause it.
You can of course keep the high value, but know that this is untested terrain and if you should get a strange IE, it might take you a long time to find that one out.
And no, there's no way to make it rotate constantly only in one direction. _________________ SHP Artist of Twisted Insurrection: Nod buildings
I wanted the entire Light Tower code including the new code to make the spotlight motion go in a full circle motion continuisly. Because I think I placed the new code at the wrong place of the Light Tower... QUICK_EDIT
but how to make spotlight spot an enemy unit with its light? _________________ Welcome to the unit, I´ll see you around.
Tiberian Sun 2.05:
https://www.moddb.com/mods/tiberian-sun-205 Last edited by Navy SEAL on Wed Aug 24, 2011 11:47 am; edited 1 time in total QUICK_EDIT
That's not possible, except on maps via triggers for already placed spotlight towers. _________________ SHP Artist of Twisted Insurrection: Nod buildings
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