Author Topic: Poisonous Air  (Read 1238 times)

I had an idea for a Metro 2033 RP and realized theres no way of maxing toxic air in BL.

So pretty much how this would work is act similar to how lava and water are placed.

The player can adjust the height of how high the toxic air can be and anything above that height slowly dies unless there is a gasmask equipped.

Oh and perhaps an option to choose how much damage the air does and the delay between entering the air so you can be warned to equip your gasmask. One idea of warning the player that they are entering the toxic areas are that they will emit a breath holding sound and perhaps the air would make them choke every so often.

I'm no eventer, but could this be possible with zones and VCE? :s

I'm no eventer, but could this be possible with zones and VCE? :s
I'm not really a VCE or Zone whiz, I think however this would be a much easier solution for other players like me who aren't educated well in VCE or Zones.

It is possible with VCE, but true, it probably would be easier for eventing noobs to have an add-on such as this.

I'm not the one to do great events, I have other people for that, but uh maybe put 16x16 zones everywhere and um maybe this works?

Before exiting a room until you go outdoors,
1. O onplayerenterzone > client > bottomtext > <font:impact> <color:ffff00>WARNING! TOXIC GASES OUTSIDE, TAKE CAUTION!
2. O (delay 1) onplayerenterzone > self > cancelevents
3. O onminigamereset > self > toggleeventsenabled > 1 2

1. O (delay 1000?) onplayerenterzone > player > addhealth > -5 or sooo
2. O onplayerleavezone > self > cancelevents
3. O onplayerleavezone > self > toggleeventsenabled > 1 2 3 4
4. X onplayerleavezone > self > toggleeventsenabled > 1 2 3 4
3. O onminigamereset > self > toggleeventsenabled > 1 2 3 4

idk not the best way to do it but yknow. and maybe a way to ammend the gas mask is uhhhehh
name all toxic zones, place a brick somewhere that looks like a gas mask and then maybe cancel all the toxic zones events? idk if this were a linear thing it'd work.
« Last Edit: April 22, 2013, 10:30:21 AM by Flamecannon »

This can simply be done with zone bricks and events.

onplayerenterzone > player > add damage > (negative value)

This can simply be done with zone bricks and events.

onplayerenterzone > player > add damage > (negative value)


If it were "add damage" (a non-existent output event) then wouldn't a negative value with it add health? Why would "Poisonous Air" do that?

I could make toxic gas area cubes
first tell me how much damage you want to it to do
and direct me towards the gas mask addon you want to use

If it were "add damage" (a non-existent output event) then wouldn't a negative value with it add health? Why would "Poisonous Air" do that?
Are you handicapped?

Are you handicapped?
in theory if add damage existed, negative added damage would add health
only add health exists and that's the actual use of a negative integer
calm down!!111

This would be more easily scripted than evented.

Are you handicapped?
the opposite adding damage is adding health

read the post correctly before insulting the user next time

I could make toxic gas area cubes
first tell me how much damage you want to it to do
and direct me towards the gas mask addon you want to use
Use gravity cat's gas mask.



The only problem is that you need to press a brick to get the gasmask.



Code: [Select]
Gasmask brick:

X 0ms onActivate Player VCE_ifVariable gasmask == 1
X 0ms onVariableTrue Player VCE_modVariable gasmask Set 0
X 0ms onVariableTrue Client ChatMessage You take the gas mask off.
X 0ms onVariableFalse Player VCE_modVariable gasmask Set 1
X 0ms onVariableFalse Client ChatMessage <color:00FF00>You put the gas mask on.
Code: [Select]
Toxic zone brick:

# Event Saver v0.1 - 04/23/13 12:18:52
X 33ms onPlayerEnterZone Self fireRelay
X 1000ms onRelay Self fireRelay
X 0ms onRelay Self VCE_ifVariable <var:br:toxic> != potato 3 3
X 0ms onVariableTrue Player VCE_ifVariable gasmask == 1 4 7
X 0ms onVariableTrue Client ChatMessage <color:FFFFFF>You are in a toxic zone, good thing you have the gas mask on.
X 0ms onVariableFalse Player AddHealth -5
X 0ms onVariableFalse Client ChatMessage You are in a toxic zone, put on a gas mask!
X 0ms onPlayerleaveZone Self cancelEvents

If you want to turn toxicity on and off, change the br:toxic value to something else and make a brick to change that value off and on, so ti triggers Variable true (or so it doesn't).
« Last Edit: April 23, 2013, 05:26:45 AM by LeetZero »

Somebody, edit a zone brick to constantly hurt the player (perhaps 5 health lost per second) as long as they are in it.

It would be an easy edit.