Page 1 of 1
Gas_Trigger
Posted: Fri Mar 03, 2006 12:02 am
by XenoPHoXx_NL
Hi guy's a little question
I tried to make a gas_trigger in my map but don't know how.
I want it to be similiar with a gas grenade used in sh and bt
but now i don't use the grenade i want to make some sort of chamber
where people get trapped and they will die because of the gas flowting into the room.
How could i do this in mohradiant & the scripting part?
Any help is welcome
thx again
Posted: Fri Mar 03, 2006 4:46 am
by neillomax
The "gas" level is m613d, in Allied Assault. Maybe you can find what you are looking for there.
entity
Posted: Fri Mar 03, 2006 5:24 am
by tltrude
The entity name for the yellow gas is:
animate_fx_adam-mustard-gas
You can create the entity and then give it a targetname with Key N.
To turn the gas on and off, the lines in your script would look something like this.
$gas1 anim start
$gas1 anim stop
Here a a thread that show how a player can be killed slowly by the gas.
Code: Select all
gaskill:
local.sucker = parm.other
if (local.sucker istouching $gas_killer == 1)
{
radiusdamage local.sucker.origin 10 16
}
wait 1
goto gaskill
end
"$gas_killer" is a trigger_multiple and, if a player is touching it, he will start dying at a rate of 10 hitpionts a second.
Hope that helps.
Posted: Fri Mar 03, 2006 11:48 am
by XenoPHoXx_NL
thanks for the fast reply
i will try this guys thxx again
Re: entity
Posted: Sat Mar 04, 2006 3:37 pm
by Trash Can Man
tltrude wrote:The entity name for the yellow gas is:
animate_fx_adam-mustard-gas
You can create the entity and then give it a targetname with Key N.
To turn the gas on and off, the lines in your script would look something like this.
$gas1 anim start
$gas1 anim stop
Here a a thread that show how a player can be killed slowly by the gas.
Code: Select all
gaskill:
local.sucker = parm.other
if (local.sucker istouching $gas_killer == 1)
{
radiusdamage local.sucker.origin 10 16
}
wait 1
goto gaskill
end
"$gas_killer" is a trigger_multiple and, if a player is touching it, he will start dying at a rate of 10 hitpionts a second.
Hope that helps.
O M G!!! Tom Lives!!! lol
I just wanted to say that thanks to Tom, amongst others, is the reason I love map making in the first place! People willing to share their time to help others sometimes goes un-thanked. I am just here to say THANK YOU!!!
Trash Can Man