i've made a smoke grenade that works fine, but its a bit pointless against ai, i was wondering if there is someway to make it so computer players don't notice you if your in it or will have bad aim in it.
i was reading on another topic about smoke grenades and someone suggested the setdenseenvironment lua code, but i'm not sure that would get me what i want.
i was wondering, what if the grenade was able to make you bascially invisable, like the stealth but without the invisablity, only the radar jamming and the ai not seeing you part. so basically a grenade that you are invisable if you are in the effect of it.
i know effects aren't really something trackable but maybe some timing and lua coding and a bit of luck could do it.
any ideas?
Smoke grenade
Moderator: Moderators
- Dakota
- Field Commander

- Posts: 991
- Joined: Mon Dec 06, 2010 8:21 pm
- Projects :: making random weapon assets
- xbox live or psn: PS3 beats xbox
- Location: at a computer desk floating around in space
-
Marth8880
- Resistance Leader
- Posts: 5042
- Joined: Tue Feb 09, 2010 8:43 pm
- Projects :: DI2 + Psychosis
- xbox live or psn: Marth8880
- Location: Edinburgh, UK
- Contact:
Re: smoke grenade
Nope, most likely not.
- lucasfart
- Sith

- Posts: 1440
- Joined: Tue Feb 24, 2009 5:32 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Australia
Re: smoke grenade
The only way I can see this working is somehow implementing an aivis region whereever you place the grenade. The downside with this is that anyone on the other side of the smoke will still be visible and shot at, even if you physically can't see them.
See THIS page.
And invisibility would be extremely hard to implement, because how would you define when he gets invisibility? When the grenade hits something?
See THIS page.
And invisibility would be extremely hard to implement, because how would you define when he gets invisibility? When the grenade hits something?
- Dakota
- Field Commander

- Posts: 991
- Joined: Mon Dec 06, 2010 8:21 pm
- Projects :: making random weapon assets
- xbox live or psn: PS3 beats xbox
- Location: at a computer desk floating around in space
Re: smoke grenade
lucasfart wrote:And invisibility would be extremely hard to implement, because how would you define when he gets invisibility? When the grenade hits something?
i was going to give the grenade a damage radius the about the size of the effect and then make it do very very little damage and i remember an lua code to recognize when a unit takes a certain ammount of damage, i'm wondering if there is a code that could be used with it to do what i want it to do, which is make you invisible to ai.
Edit: before even posting this post i am adding this edit because i notice that if you walk out of the effect you would still have the invisibility to ai, making it sort of like a complicated invisablity buff.
well, thats all i needed really, i just wanted to make sure that there wasn't a real good way to do this before throwing out the idea entirely.
thanks for your time.
