Explodable Models?


(GunitMapper) #1

I am making a map where there is a secret door hidden in the floor. I want this door covered by a couple of skeleton models that you would have to shoot or blow up to get them out of the way.

What would be the easiest way to pull this off? I found a couple of threads that mentioned that this was possible, but tricky. Any ideas? Thanks in advance! :stuck_out_tongue:


(dutchmeat) #2

Just use G_spawn to spawn them at a spawnpoint given by the map.
Here’s an example that will help,

http://cvs.icculus.org/cvs/fi/game/g_fi.c?rev=1.9


(carnage) #3

Just use G_spawn to spawn them at a spawnpoint given by the map.
Here’s an example that will help,

http://cvs.icculus.org/cvs/fi/game/g_fi.c?rev=1.9

im not sure that will help in the development of a map. i would look at using an entity like a func_explosive or script_mover and attaching the model to it that way so it can be destroyed or moved when you need it ot

also some debris emitting entities with a bone texture should provide a nicer way to cover up the fact that the models instantly vanish


(dutchmeat) #4

func_explosive was dynamitable object i thought, you could also try func_breakable


(carnage) #5

func_explosive was dynamitable object

no func_explosive was any destructible you could configure it to only be damaged by dynomite or just damaged by explosions