Alter units' LoS depending on on/off state

Alter units' LoS depending on on/off state

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
User avatar
Caydr
Omnidouche
Posts: 7179
Joined: 16 Oct 2004, 19:40

Alter units' LoS depending on on/off state

Post by Caydr »

Would it be possible to, for instance, make it so that when a radar tower is turned off it gives 1/10 of its regular LoS? Or how about a unit that only gives long-range LoS after it's been stationary for several seconds, allowing for a little animation to finish of a mini tower being raised from its roof. The possibilities are interesting.

A multiplier value would do fine.
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6242
Joined: 29 Apr 2005, 01:14

Post by FLOZi »

Controlling LoS through the script would be a more powerful and generalised solution.


e.g. for a sniper script, you could increase the LOS only when aiming to simulate the scope
User avatar
Comp1337
Posts: 2434
Joined: 12 Oct 2005, 17:32

Post by Comp1337 »

That woud need a cone of vision..
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6242
Joined: 29 Apr 2005, 01:14

Post by FLOZi »

No it wouldn't. You misunderstand my premise.
esteroth12
Posts: 501
Joined: 18 May 2006, 21:19

Re: Alter units' LoS depending on on/off state

Post by esteroth12 »

Caydr wrote:Would it be possible to, for instance, make it so that when a radar tower is turned off it gives 1/10 of its regular LoS? Or how about a unit that only gives long-range LoS after it's been stationary for several seconds, allowing for a little animation to finish of a mini tower being raised from its roof. The possibilities are interesting.

A multiplier value would do fine.
trying to fix the exploit where people build a radar tower and turn it off?
User avatar
Caydr
Omnidouche
Posts: 7179
Joined: 16 Oct 2004, 19:40

Post by Caydr »

Correct. But I've got other things in mind too.
Post Reply

Return to “Engine”