Xonotic Forums
entities - damage if func_pointparticles - Printable Version

+- Xonotic Forums (https://forums.xonotic.org)
+-- Forum: Creating & Contributing (https://forums.xonotic.org/forumdisplay.php?fid=10)
+--- Forum: Xonotic - Development (https://forums.xonotic.org/forumdisplay.php?fid=12)
+--- Thread: entities - damage if func_pointparticles (/showthread.php?tid=4294)

entities - damage if func_pointparticles - It'sMe - 07-10-2013


I have created a small map with two func_pointparticles entities.
Both use as effect pipe_smoke.

Actually my idea is that the player gets hurt if the particles are emitted.
First func_pointparticles is combined with trigger_swamp.
I tried to activate/deactivate trigger_swamp by modifying its keys dmg and swamp_slowdown via target_spawn entities.
Second func_pointparticles is combined with trigger_hurt, which should be activated/deactivated via relay_activate and relay_deactivate.

But both fail Sad

I added a pk3... solution expected Smile[attachment=1156]

RE: entities - damage if func_pointparticles - Mr. Bougo - 07-10-2013

Note to mappers who might help with this: if you find that the approach *should* work but doesn't, please say so and we can file a bug report. It seems strange to me that trigger_hurt wouldn't be affected by relay_(de)activate.

RE: entities - damage if func_pointparticles - CuBe0wL - 07-11-2013

I once wanted to make a "trap map". Here's how I did it: you push a button, some "gas holder cannisters" open up, green particles are emitted, and a trigger hurt is activated.
I pasted the relevant part into this map, I hope it still works, I didn't tested:

RE: entities - damage if func_pointparticles - It'sMe - 07-11-2013

The map and it's effects work fine, thanks C.Brutail
But you do not activate/deactivate trigger_hurt. It's connected to func_door and misc_follow. If the door moves in direction of z-axis, trigger_hurt does, too.
Players are able to touch it and get hurt.
It works and I will use the same principle, but i would like to know how you can toggle the status of trigger_hurt or modify the entity keys of trigger_swamp via target_spawn.

RE: entities - damage if func_pointparticles - aa - 07-11-2013

Is it possible to toggle an event randomly, or on equal intervals?