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
Gas_Trigger
Moderator: Moderators
- XenoPHoXx_NL
- Sergeant
- Posts: 53
- Joined: Thu Feb 16, 2006 11:26 pm
- Contact:
Gas_Trigger
Can't Win The Game? Change The Rules!
entity
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.
"$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.
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
Hope that helps.
- XenoPHoXx_NL
- Sergeant
- Posts: 53
- Joined: Thu Feb 16, 2006 11:26 pm
- Contact:
- Trash Can Man
- Sergeant
- Posts: 58
- Joined: Mon Apr 19, 2004 9:23 pm
- Location: NY the 'cuse!
- Contact:
Re: entity
O M G!!! Tom Lives!!! loltltrude 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.
"$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.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
Hope that helps.
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

