Page 1 of 1

Non-Solid Objects spawned from scripts

Posted: Thu Apr 29, 2004 1:11 pm
by Pvt.Army
I am trying to spawn a script object into a map to fix a problem with a stock map. The trouble is, the object is Solid for the player and all weapons apart from rifles and MG. It's really weird. You cannot shoot Pistol, SMG or rockets through it. And grenades bounce back. How do I stop Rifles and MG's?

Any help would be greatly appreciated. This is the script so far that I am using...

local.Rock = spawn script_object
local.Rock model "static/rock_large.tik"
local.Rock.origin = ( 912.00 624.00 8.00 )
local.Rock.angles = (0 0 0)
local.Rock.scale = 0.95
local.Rock solid
local.Rock immune bullet
local.Rock immune fast_bullet
local.Rock immune bash
local.Rock immune mg
local.Rock immune explosion

immune

Posted: Thu Apr 29, 2004 6:46 pm
by tltrude
Try this, take out all that "immune" stuff and add this line.

local.Rock solid

You can also try spawning the model without making it a script_object.

local.rock = spawn static/rock_large.tik

That model has its own clip map, so it should be immune if you spawn it without making it a script_model or script_object.

Posted: Fri Apr 30, 2004 9:40 am
by Pvt.Army
Looking at the .MAP file for ROCK_LARGE, it seems that it only has player clips and not weapon clips. I have tried updating the orginal .MAP file for the rock and then spawning it, but I think the .MAP file only works when you compile the map. I could be wrong but that is what seems to happen.
Does anyone actually know if the .MAP file is used when spawning from a script?
Thanks so far anyway.