Walking through walls
Moderator: Moderators
Walking through walls
In my map I have a whole bunch of exploder walls. After compiling and testing, I found that it seemed as though they didn't exist. I could shoot and walk through the walls that had the exploder stuff, fall through the floors where other exploders were, and i could see the sun flare through the ceiling on the bottom floor (there is no roof yet, so the flare is going right through). I have already had some working in this map, and now none do. If it makes a difference, I am up to #set/9.
PSYCHO - Who you callin a PSYCHO?


That is funny because the exploder script has this . I don't know why they did it this way .
if (level.exploders > 0)
{
level.exploders = $exploder.size
level.exploder = exec global/makearray.scr $exploder
for (local.i=1;local.i<level.exploders+1;local.i++)
{
if (level.exploder[local.i].walkable == NIL)
{
level.exploder[local.i] notsolid
level.exploder[local.i] thread solidify
}
solidify:
level waittill spawn
self solid
self disconnect_paths
if (level.exploders > 0)
{
level.exploders = $exploder.size
level.exploder = exec global/makearray.scr $exploder
for (local.i=1;local.i<level.exploders+1;local.i++)
{
if (level.exploder[local.i].walkable == NIL)
{
level.exploder[local.i] notsolid
level.exploder[local.i] thread solidify
}
solidify:
level waittill spawn
self solid
self disconnect_paths
here is that portion of the script:
Code: Select all
level waittill prespawn
exec global/DMprecache.scr
exec global/exploder.scr
level.script=maps/dm/test_mansion_battle.scr
level waittill spawn
PSYCHO - Who you callin a PSYCHO?


moved one of the walls to test:
kept a wall (script obj) in its original place
moved the trigger, explodersmashed, and exploderfire to a different location in the room.
compiled and tested. the wall was there but i could still walk and shoot through it. trigger was non-existant - i unloaded a few rounds where it should have been, and nothing happened.
EDIT: now i saved all the sets to prefabs so I didn't have to build them again. I left the original one that I made in the map (which was working fine before) but still walking through. I have a floatplane error - maybe that is causing it, but not getting an entity or brush number to find the error. Will keep trying. Other than that, if any ideas pop into anyones head, let me know.
kept a wall (script obj) in its original place
moved the trigger, explodersmashed, and exploderfire to a different location in the room.
compiled and tested. the wall was there but i could still walk and shoot through it. trigger was non-existant - i unloaded a few rounds where it should have been, and nothing happened.
EDIT: now i saved all the sets to prefabs so I didn't have to build them again. I left the original one that I made in the map (which was working fine before) but still walking through. I have a floatplane error - maybe that is causing it, but not getting an entity or brush number to find the error. Will keep trying. Other than that, if any ideas pop into anyones head, let me know.
PSYCHO - Who you callin a PSYCHO?


Still can't figure it out. Here is my entire script so far:
Code: Select all
main:
setcvar "g_obj_alliedtext1" "Take over the"
setcvar "g_obj_alliedtext2" "house."
setcvar "g_obj_alliedtext3" ""
setcvar "g_obj_axistext1" "Defend the house."
setcvar "g_obj_axistext2" ""
setcvar "g_obj_axistext3" ""
setcvar "g_scoreboardpic" "none"
exec global/exploder.scr
level waittill prespawn
exec global/DMprecache.scr
level.script=maps/dm/test_mansion_battle.scr
level waittill spawn
end
firehurt:
$fire volumedamage 15
end
PSYCHO - Who you callin a PSYCHO?


if all else fails (which it might) jsut have a general line as such
this'll just resolidify them. when they're deleted it won't cause any ill-effects.
Code: Select all
$exploder solidthat definately made them solid, but it seems that the exploder script isn't loading. My trigger doesn't work - was working before.
I think it is because I have a floatplane error, but can't get rid of it. I used rogues plugin, but that didn't do the trick. The error isn't giving me a brush/entity number, so how the heck do I find it?
I think it is because I have a floatplane error, but can't get rid of it. I used rogues plugin, but that didn't do the trick. The error isn't giving me a brush/entity number, so how the heck do I find it?
PSYCHO - Who you callin a PSYCHO?


Code: Select all
main:
setcvar "g_obj_alliedtext1" "Take over the"
setcvar "g_obj_alliedtext2" "house."
setcvar "g_obj_alliedtext3" ""
setcvar "g_obj_axistext1" "Defend the house."
setcvar "g_obj_axistext2" ""
setcvar "g_obj_axistext3" ""
setcvar "g_scoreboardpic" "none"
level waittill prespawn
exec global/DMprecache.scr
exec global/exploder.scr
$exploder solid
level.script=maps/dm/test_mansion_battle.scr
level waittill spawn
end
firehurt:
$fire volumedamage 15
end
I MIGHThave sorted it out. I loaded one #set and checked all the values. Some were in CAPS. I didn't think anything at the time so I left them. I changed them to small and the exploder worked now. Only thing is, I can see the sun flare through the ceiling. (This leads into ANOTHER Q where I ask if there is a method to block the flare - I have no roof yet and am hoping that will help.)
PSYCHO - Who you callin a PSYCHO?




