Blockland Forums > Suggestions & Requests
S.L.A.M A.K.A the unknown explosive of HL2
Counter98:
--- Quote from: The Corporation on May 05, 2012, 01:04:50 PM ---Laser would have to work with constant raycasts being emitted.
I don't think that would be a good idea.
--- End quote ---
There are alot more than constant raycasts that work for that kind of stuff.
Idea:
1. It will send ONE ray cast when it is created.
2. When the ray cast hit a static object, it creates a 'zone' entity, and a laser emitter.
-If it hits a non-static object, it detonates on instant.
3. When a player enters the 'zone' it triggers an event.
Greek2me:
--- Quote from: phflack on May 05, 2012, 01:44:45 PM ---a trigger couldn't be created?
--- End quote ---
Yes, triggers would probably be the way to go. The hardest part would be defining the trigger's size and shape properly I think.
Derroith:
When the bomb is planted can't it use a different .dts that had an invisible piece that when touched, explodes?
Kniaz:
--- Quote from: Derroith on May 07, 2012, 12:04:30 AM ---When the bomb is planted can't it use a different .dts that had an invisible piece that when touched, explodes?
--- End quote ---
Perhaps, but the problem with that is this invisible piece can go through bricks.
M:
Use triggers, yes.
For the laser you could use a DTS shape with no collision, scaled to the size of the laser. Since the emitter couldn't be told to go only a certain distance on a per-object basis, only as part of a datablock; you'd have to make a line of emitters to make that work.
When you plant it on the floor it should create a large, flat trigger so if you step within a radius of it it detonates.