Spring.SetUnitCloak change please?

Spring.SetUnitCloak change please?

Requests for features in the spring code.

Moderator: Moderators

Post Reply
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Spring.SetUnitCloak change please?

Post by smoth »

Spring.SetUnitCloak

( number unitID,
boolean cloaked | number scriptCloak,
[ number decloakDistance | boolean decloakAbs ] ) -> nil


If the 2nd argument is a number, the value works like this:
1:=normal cloak
2:=for free cloak (cost no E)
3:=for free + no decloaking (except the unit is stunned)
4>=ultimative cloak (no ecost, no decloaking, no stunned decloak)
this is all well and good, but I was in a situation where I had to choose one feature over another because I wanted #4 but with a unit being able to spot the target at a distance....

Would it be a lot of trouble to add an option where: cost, no decloak, no stunned could be set as params for more power use rather than just this value based configuration?
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: Spring.SetUnitCloak change please?

Post by lurker »

enum ScriptCloakBits { // FIXME -- not implemented
// always set to 0 if not enabled
SCRIPT_CLOAK_ENABLED = (1 << 0),
SCRIPT_CLOAK_IGNORE_ENERGY = (1 << 1),
SCRIPT_CLOAK_IGNORE_STUNNED = (1 << 2),
SCRIPT_CLOAK_IGNORE_PROXIMITY = (1 << 3),
SCRIPT_CLOAK_IGNORE_BUILDING = (1 << 4),
SCRIPT_CLOAK_IGNORE_RECLAIM = (1 << 5),
SCRIPT_CLOAK_IGNORE_CAPTURING = (1 << 6),
SCRIPT_CLOAK_IGNORE_TERRAFORM = (1 << 7)
};
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Spring.SetUnitCloak change please?

Post by smoth »

We have this!?!?
*edits* whoops I didn't parse the comment... lol
User avatar
REVENGE
Posts: 2382
Joined: 24 Aug 2006, 06:13

Re: Spring.SetUnitCloak change please?

Post by REVENGE »

Fuck, that's where you get that shit from.
Post Reply

Return to “Feature Requests”