Neurotoxin dispencer and countdown

Avatar
Vicyouz
9 Posts
Posted Apr 29, 2012
Hi everyone!, i want to know how to make a neurotoxin dispencer and a countdown (lol read the title)because i don?t found nothing in the wiki, so i hope someone can help me. Thanks!
Advertisement
Registered users don’t see ads! Register now!
Avatar
Paradoxic R3mix
87 Posts
Posted Apr 29, 2012
Replied 3 hours later
Okay, well, i've been wondering this too, but the only thing I know about doing this is the fumes that come out of the vent. It is a info_particle_system, with the particle name of: human_cleanser, or human_cleanser_cheap. Here is a list of particles for future reference! :thumbup: https://developer.valvesoftware.com/wiki/List_of_Portal_2_Particles
Avatar
RustyDios
154 Posts
Posted Apr 29, 2012
Replied 8 minutes later
Try these for a starting point on what to do;
http://forums.thinking.withportals.com/mapping-help/neurotoxin-t3560.html?hilit=neurotoxin
http://forums.thinking.withportals.com/post39987.html#p39987

Hope they help!

Avatar
Haggis
158 Posts
Posted May 01, 2012
Replied 1 day later
I'm at work just now, but if you find a map made by myself, Portal Raider Toxic B3, it has exactly what you are looking for. Feel free to decompile the map. I will send u the .vmf if that does not work
Avatar
Haggis
158 Posts
Posted May 02, 2012
Replied 1 day later

Here is the .vmf as promised. Go into the main room, to the left you will see 2 pipes, the neurotxinn is in the pipes. The countdown screen is on the wall at the back, hope this helps.

sp_portal_raider_toxic_b3.vmf
Attachments
sp_portal_raider_toxic_b3.vmf
3.17 MB 64 downloads
Avatar
portal2companioncube
108 Posts
Posted May 02, 2012
Replied 1 hour later
To kill the player when the timer runs out, you could place a trigger_hurt covering the entire map and activate it once the timer runs out.
Avatar
spongylover123
944 Posts
Posted May 03, 2012
Replied 1 day later
or, an easier way is to make a logic_relay and add the output
ontrigger - @command - Command - startneurotoxin/ kill delay: how long you want to wait

and when the player kills the neurotoxin, disable the trigger.

Avatar
Lpfreaky90
2,842 Posts
Posted May 03, 2012
Replied 4 minutes later

spongylover123 wrote:
or, an easier way is to make a logic_relay and add the output
ontrigger - @command - Command - startneurotoxin/ kill delay: how long you want to wait

and when the player kills the neurotoxin, disable the trigger.

Isn't cancelpending a better option?
That allows it to be activated again in case you do need to add some more neurotoxin in case the test subject needs to hurry up a bit more? :lol:

Avatar
spongylover123
944 Posts
Posted May 03, 2012
Replied 16 minutes later

lpfreaky90 wrote:
Isn't cancelpending a better option?
That allows it to be activated again in case you do need to add some more neurotoxin in case the test subject needs to hurry up a bit more? :lol:

Sometimes when I'm bored, I used the complicated methods of mapping.

Avatar
Vicyouz
9 Posts
Posted May 04, 2012
Replied 16 hours later

Haggis wrote:
Here is the .vmf as promised. Go into the main room, to the left you will see 2 pipes, the neurotxinn is in the pipes. The countdown screen is on the wall at the back, hope this helps.

sp_portal_raider_toxic_b3.vmf

Thanks a lot every one! But how i change the time?

Avatar
Haggis
158 Posts
Posted May 04, 2012
Replied 1 hour later
Its been a while since i last mapped for Portal 2, looking at my .vmf again, i saw a Logic auto and a Point Client Command,in front of the big screen, copy these 2 entities into your map. Click on the vgui_neurotoxin_countdown entity, in the class info you will see Countdown time, change this to what ever you want. We will call your timer Countdown_Timer, to trigger the countdown, put in this output

onpressed Countdown_Timer enable, if you are using a button.

Advertisement
Registered users don’t see ads! Register now!
Avatar
Vicyouz
9 Posts
Posted May 04, 2012
Replied 3 hours later

Haggis wrote:
Its been a while since i last mapped for Portal 2, looking at my .vmf again, i saw a Logic auto and a Point Client Command,in front of the big screen, copy these 2 entities into your map. Click on the vgui_neurotoxin_countdown entity, in the class info you will see Countdown time, change this to what ever you want. We will call your timer Countdown_Timer, to trigger the countdown, put in this output

onpressed Countdown_Timer enable, if you are using a button.

Thanks again, you help me a lot!