Gas_Trigger

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
User avatar
XenoPHoXx_NL
Sergeant
Posts: 53
Joined: Thu Feb 16, 2006 11:26 pm
Contact:

Gas_Trigger

Post 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
Can't Win The Game? Change The Rules!
neillomax
Lieutenant General
Posts: 880
Joined: Thu Jun 23, 2005 6:57 am

Post by neillomax »

The "gas" level is m613d, in Allied Assault. Maybe you can find what you are looking for there.
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

entity

Post 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.
Tom Trude,

Image
User avatar
XenoPHoXx_NL
Sergeant
Posts: 53
Joined: Thu Feb 16, 2006 11:26 pm
Contact:

Post by XenoPHoXx_NL »

thanks for the fast reply

i will try this guys thxx again
Can't Win The Game? Change The Rules!
User avatar
Trash Can Man
Sergeant
Posts: 58
Joined: Mon Apr 19, 2004 9:23 pm
Location: NY the 'cuse!
Contact:

Re: entity

Post 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
Image
Post Reply