Jump to content
Sign in to follow this  
wass24

Gas mask question

Recommended Posts

I just recently downloaded an addon that allows a unit to don a gas mask, it's called "fml_nbcunits35." Is there a way of setting off a smoke grenade or other device in an area or trigger, and have it affect a player if their mask is off or not affect the player if their mask is on? I currently use a combination of several scripts where people start coughing then collapsing at the end of their waypoint paths, but this other method would be much more effective. Along with that, is there a way to link the commands to put on and take off the gas mask to a keyboard letter (ie. Binos = "B"). I can try to further explain if needed. Thank you very much.

Share this post


Link to post
Share on other sites

but no answer so far :-(

you could check with unit hasweapon "fml_nbcunits35" with a trigger, but I'm not sure whether it will make a difference between mask off or on (it simply checks for all weapons at a unit's disposition, if I'm not mistaken).

It will work if you are looking for the distinction between NBC and non-NBC units; regular units would drop dead, NBC's could go on.

Share this post


Link to post
Share on other sites
but no answer so far :-(

you could check with unit hasweapon "fml_nbcunits35" with a trigger, but I'm not sure whether it will make a difference between mask off or on (it simply checks for all weapons at a unit's disposition, if I'm not mistaken).

It will work if you are looking for the distinction between NBC and non-NBC units; regular units would drop dead, NBC's could go on.

AFAIK its not a weapon but put on with the settexture command...? rock.gif

Share this post


Link to post
Share on other sites

This might be a little far fetched.  Lets say that the "put on mask" command also adds an inventory weapon or item that is not needed by that unit and the "take off mask" command would remove the mask and that item.  Instead of checking to see if the mask is on or off, it would check for the inventory item that the game would recognize.  Would this work then? Also is there a way that when the mask is on, the player would see everything with a yellowish tint?

Share this post


Link to post
Share on other sites
This might be a little far fetched.  Lets say that the "put on mask" command also adds an inventory weapon or item that is not needed by that unit and the "take off mask" command would remove the mask and that item.  Instead of checking to see if the mask is on or off, it would check for the inventory item that the game would recognize.  Would this work then?  Also is there a way that when the mask is on, the player would see everything with a yellowish tint?

well, its easyer to ask mig to edit his script, and when the mask is put on a variable should be set to true...

you could detect that variable and do whatever you want with it... wink_o.gif

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×