Page 1 of 2
A Quick Question On Stealth
Posted: Sun May 15, 2011 4:46 am
by Slime615
Ok, quick question?
How do I add a stealth weapon, that is always on, unless a person fires their weapon, then automaticly comes back on after a the weapon has stopped firing?
I need it for my special opps Mod
Re: A Quick Question On Stealth
Posted: Sun May 15, 2011 7:28 am
by Teancum
The Bothan Spy has pretty much exactly what you want. I'd look at his odfs.
Re: A Quick Question On Stealth
Posted: Sun May 15, 2011 9:43 am
by Slime615
Ah yes. Exept, i want the unit to always be in stealth, not have a weapon that puts them in it, but to have it as a feature of their armour so to speak.
It is not togable, but automatic, not a weapon.
Any help?
Re: A Quick Question On Stealth
Posted: Sun May 15, 2011 9:47 am
by Snork
I think just giving the texture an alpha channel and hex editting transparency would do it
Re: A Quick Question On Stealth
Posted: Sun May 15, 2011 9:53 am
by Fiodis
Then it'd always be transparent. I think he wants it so that the unit has stealth on when it spawns, and always has stealth on unless they're in the process of firing a specific weapon. More basically, I think he wants to have the Bothan's stealth auto-fire. I don't think that's possible.
Re: A Quick Question On Stealth
Posted: Sun May 15, 2011 9:53 am
by [Padawan]Helkaan
Snork wrote:I think just giving the texture an alpha channel and hex editting transparency would do it
I never tested that ingame, but I think this will make the player totally invisible and not transparent. That's what we do when we want to remove a jetpack from a jettrooper for example.
edit: Fiodis beat me
Re: A Quick Question On Stealth
Posted: Sun May 15, 2011 10:10 am
by sim-al2
Snork wrote:I think just giving the texture an alpha channel and hex editting transparency would do it
But he still wouldn't have "stealth" in the viewpoint of the AI. Remember that the AI isn't really effected by visual things, i.e. the fog could be set to 1m and they could still head-shot you across the map unless you change their view settings. You need to have the stealth weapon to make the unit actually work.
Re: A Quick Question On Stealth
Posted: Sun May 15, 2011 10:33 am
by Snork
darn :/
Re: A Quick Question On Stealth
Posted: Sun May 15, 2011 10:43 am
by Dakota
i am just wondering something, doesn't the ai usally just turn on their stealth anyway near the time they spawn? In the my test map my stealth jet trooper ai always turn on their stealth and then run around, at that point i am just wondering where did those emp blasts come from... thats also the point when i just use the weapon that kills any unit on screen (invisable or not).
errr... my point is that i think the ai have something in their programing that makes them keep their stealth on as much as they can, just make the stealth weapon take no energy and they will usally keep it on as long as they can.
Re: A Quick Question On Stealth
Posted: Sun May 15, 2011 10:44 am
by DarthD.U.C.K.
Fiodis wrote:More basically, I think he wants to have the Bothan's stealth auto-fire. I don't think that's possible.
i think it is, years ago somebody made a laseraim as secondary weapon that shot all the time.
Re: A Quick Question On Stealth
Posted: Sun May 15, 2011 10:50 am
by Slime615
Is there not a way to just apply the effect to the units ODF, using a similar script to haveing the "War Hero" Bonus on legendery? The unit always has rage active on it... I simply want to have the stealth always active on the unit..... the same stealth as the one that the bothan use, that is true, but as a feature of the ODF, not as a weapon....
Since it would be applying the bothan ODF, it would have the same effect as the stalth has (ie not letting enemys see/shoot you)
I was sure you could just add it....

Re: A Quick Question On Stealth
Posted: Sun May 15, 2011 11:05 am
by Fiodis
DarthD.U.C.K. wrote:Fiodis wrote:More basically, I think he wants to have the Bothan's stealth auto-fire. I don't think that's possible.
i think it is, years ago somebody made a laseraim as secondary weapon that shot all the time.
I did make a laser-aim that shot for quite a while - I suppose by bumping up the duration you could theoretically make it shoot for the entire map session. But then you wouldn't be able to turn it off by firing another weapon. Also, to make it shoot in the first place you would have had to fire it, as opposed to the laser
firing itself right after you spawn.
Slime615 wrote:Is there not a way to just apply the effect to the units ODF, using a similar script to haveing the "War Hero" Bonus on legendery? The unit always has rage active on it... I simply want to have the stealth always active on the unit..... the same stealth as the one that the bothan use, that is true, but as a feature of the ODF, not as a weapon....
Since it would be applying the bothan ODF, it would have the same effect as the stalth has (ie not letting enemys see/shoot you)
I was sure you could just add it....

Unfortunately it doesn't work like that. You can add a shield to a unit, and maybe a couple of other things, but you can't just take a weapon and put it into a unit. And with this, you wouldn't be "applying the bothan ODF", you'd be taking lines from a weapon odf and putting them in a unit odf. The Bothan odf itself doesn't have anything to do with stealth.
Re: A Quick Question On Stealth
Posted: Sun May 15, 2011 11:42 am
by Slime615
Right ok.
So,
I am trying to make a game mode called "Spec Opps"
It is essencialy, a small hunt, except, that every unit starts stealthed. They only come out of stealth when they fire a weapon, or throw a grenade or swing a sword, and enter again a short time after they stop that action.
The idea is so have a hunt "Hide and Seek"...
Is this not possible?
Re: A Quick Question On Stealth
Posted: Sun May 15, 2011 11:47 am
by Fiodis
You're supposed to locate your enemy when they fire at something, and then you briefly come out of stealth to attack
them? But then they would have had to have found someone to shoot at in the first place, by seeing
their target shoot at something, and that something having shot at something else....
What I'm trying to say is, why would anyone ever shoot at all? They would just give their position away.
I don't think the AI would understand this. I'm having a little trouble, myself.
Re: A Quick Question On Stealth
Posted: Sun May 15, 2011 11:50 am
by Slime615
hang on.... yeah. I see that flaw.................
Fail..........
Ok. I got it.
Because the stealth fields are not perfect. They flicker occasionaly, especialy when moving....
Re: A Quick Question On Stealth
Posted: Sun May 15, 2011 11:55 am
by DarthD.U.C.K.
thats not the reason, you can disable the flickering
Re: A Quick Question On Stealth
Posted: Sun May 15, 2011 12:12 pm
by THEWULFMAN
DarthD.U.C.K. wrote:thats not the reason, you can disable the flickering
I think he wants to have the flickering so that the AI will fire when they see someone moving.
Re: A Quick Question On Stealth
Posted: Sun May 15, 2011 12:13 pm
by Slime615
yup.
Re: A Quick Question On Stealth
Posted: Sun May 15, 2011 12:44 pm
by Maveritchell
Short answer to a long thread: It's not possible to do what you want to do exactly like you want to do it.
Re: A Quick Question On Stealth
Posted: Sun May 15, 2011 1:24 pm
by Lagomorphia
What's wrong with giving it no energy depletion and telling the AI to always use it?