Always Visible Feature

Always Visible Feature

Requests for features in the spring code.

Moderator: Moderators

Post Reply
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Always Visible Feature

Post by zwzsg »

Is there a way to make a feature always visible?
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Re: Always Visible Feature

Post by KDR_11k »

I think there's either a SetFeatureAlwaysVisible or a tag in the featuredef, I know I had them set to always visible for a while in ColorWar.
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Re: Always Visible Feature

Post by zwzsg »

I don't have any old Color Wars, I can only find the 3.
[ 3720] LuaRules::RunCallIn: error = 2, GameFrame, [string "LuaRules/Gadgets/colorwars.lua"]:123: attempt to call field 'SetFeatureAlwaysVisible' (a nil value)
stack traceback:
[string "LuaRules/Gadgets/colorwars.lua"]:123: in function 'GameFrame'
[string "LuaGadgets/gadgets.lua"]:926: in function <[string "LuaGadgets/gadgets.lua"]:924>
(tail call): ?
SetFeatureAlwaysVisible is either not existing or not spelt like that.

Good to know there's a way, not I just have to find the spelling of that Lua command or TDF tag.

I did try the TDF tags nodrawundergray=0; and fardraw=1; to no avail.
[Krogoth86]
Posts: 1176
Joined: 23 Aug 2007, 19:46

Re: Always Visible Feature

Post by [Krogoth86] »

I know of no way to keep them visible engine wise. The defense range widget makes things like DTs staying visible though so you may want to look up how he did it...
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Re: Always Visible Feature

Post by zwzsg »

<[LCC]jK> and all features are always visible ...
<[LCC]jK> just features with a teamID set check los
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Re: Always Visible Feature

Post by KDR_11k »

Yeah but I had CW use team-owned features that were always visible. I don't remember how I did it though, it did reduce the CPU use hugely AFAIK.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: Always Visible Feature

Post by AF »

features are subject to detail checks, features that are too far away arent drawn.

Prime exmaples ht elast tiem this ws brought up involved a map witha giant bridge feature that when you got too far away ti vanished, or aGorms tree map.

I submitted a patch which added a tag allowing this to eb fixed, however I do not remember the tag name.
Post Reply

Return to “Feature Requests”