Spawned objects' clipping?

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Spawned objects' clipping?

Post by Rookie One.pl »

Hi,

I'm trying to spawn a sandbag and an MG42 on top of it in a stock map. The problem is that the sandbag is neither explosion- nor bullet-proof. To me it appears as an issue of clipping - making the sandbag solid does nothing, if it's spawned as a static object (local.sandbag = spawn models/static/sandbag_small_semicircle.tik) - you can still walk and throw grenades through it, and if it's spawned as a script_model, it prevents you from walking through, however then the "box" you can see in radiant is solid and as a result you get an invisible brush, moreover, you still can shoot bullets through it. There is a clip mask in models/static/sandbag_small_semicircle.map, but I can't figure out how to force the game to use it. Has anyone got a clue for this?

Cheers,

Rookie One
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
Green Beret
Major General
Posts: 746
Joined: Mon Apr 19, 2004 12:21 pm
Contact:

Post by Green Beret »

theres a file in MAM or CI one or the two,and it has under barts fixes he has tanks on destroyed village,and to prevent people from walking throught them he spawn small scale brush's im sure u couldnt shoot throught it either.
Image
Master-Of-Fungus-Foo-D
Muffin Man
Posts: 1544
Joined: Tue Jan 27, 2004 12:33 am
Location: cali, United States

Post by Master-Of-Fungus-Foo-D »

yes. why not spawn script objects? in a _________ sandbag semiscricle shape?
.........................................................|..............|
.........................................................|....___.....|
.........................................................|....|...|....|
.........................................................|__|....|__|
Image
The Fungus Theme song!!!

Code: Select all

while (local.player istouching self)
User avatar
MPowell1944
Moderator
Posts: 287
Joined: Thu Jan 09, 2003 7:06 am
Location: Woodstock, GA
Contact:

Post by MPowell1944 »

Thats what I am doing on the map mod I'm creating. Any spawned items get their own clipbrush. Using solid is crap when trying to make a clip for the object. Just spawn a script_object with a setsize and make that solid.
Post Reply