Help spawning stuff..

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
yuppicide
Lance Corporal
Posts: 21
Joined: Sat Oct 25, 2003 5:24 am

Help spawning stuff..

Post by yuppicide »

Where can I find a model of a LADDER and a PLANK OF WOOD?! I need to spawn them in an already existing map.

Does anyone know the name of the gun.. um it's usually in a window or atop a sandbag.. it's like a turret gun or something. I would like to spawn one of those also.
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Re: Help spawning stuff..

Post by jv_map »

yuppicide wrote:Does anyone know the name of the gun.. um it's usually in a window or atop a sandbag.. it's like a turret gun or something. I would like to spawn one of those also.
I suppose you mean a mg-42 german machinegun, spawn it like this:

local.mg = spawn statweapons/mg42_gun.tik
Image
yuppicide
Lance Corporal
Posts: 21
Joined: Sat Oct 25, 2003 5:24 am

Re: Help spawning stuff..

Post by yuppicide »

Yep.. thanks.. now all I need to find is a plank of wood.. nobody seems to be able to help me with this one. Like the plank of wood in MOHDM6/Stallingrad that crosses to the two buildings.
jv_map wrote:
yuppicide wrote:Does anyone know the name of the gun.. um it's usually in a window or atop a sandbag.. it's like a turret gun or something. I would like to spawn one of those also.
I suppose you mean a mg-42 german machinegun, spawn it like this:

local.mg = spawn statweapons/mg42_gun.tik
M&M
General
Posts: 1427
Joined: Sun Sep 14, 2003 1:03 am
Location: egypt
Contact:

Post by M&M »

how do u determine where 2 spawn it?
Image
yuppicide
Lance Corporal
Posts: 21
Joined: Sat Oct 25, 2003 5:24 am

Post by yuppicide »

Start up a server running the map you want.. in spectate mode goto the spot you want to add in the item and look the direction you want the item pointing. Open the console with ~ and type coord. It will show you your coordinates. Those aren't going to be exact.. in the end you'll need some tweaking.

I find it all annoying/confusing a bit, but I fool around with the numbers to get them to work.

In COORD the only thing you're worried about are LOCATION and ANGLE. In LOCATION I think the first number is the length of the item.. I could be wrong, but with my own testing that's what it looks like it is to me. The second number positions the item. Making the number more negative moves it to the right, making the number more positive moves the item to the left more. The third number is the height of the item.. making the number more negative moves the item up more and making the number more positive moves the item down more. I could be wrong on these also, I'm just going off notes I wrote down, but I could be wrong. For ANGLE the second number makes the item rotate.
M&M wrote:how do u determine where 2 spawn it?
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

There is no model for a plank of wood... the one in stalingrad is made from a single brush with wood texture.
Image
M&M
General
Posts: 1427
Joined: Sun Sep 14, 2003 1:03 am
Location: egypt
Contact:

Post by M&M »

tnx alot yuppicide,can u spawn brushes and texture them,or is it only models that can be spawned?
Image
yuppicide
Lance Corporal
Posts: 21
Joined: Sat Oct 25, 2003 5:24 am

Post by yuppicide »

I only know how to spawn existing stuff.. if you open PAKSCAPE and open some of the PAK files you can find the .tik files in there to spawn.
M&M wrote:tnx alot yuppicide,can u spawn brushes and texture them,or is it only models that can be spawned?
yuppicide
Lance Corporal
Posts: 21
Joined: Sat Oct 25, 2003 5:24 am

Post by yuppicide »

Thanks.. You're the first person to answer that one. Do you know how I can spawn a brush?! I'm not very advanced with all of this, so if you could show me an example of spanwing a brush and texturing it?! I'll fool around with the numbers and get it to the right size and location.
jv_map wrote:There is no model for a plank of wood... the one in stalingrad is made from a single brush with wood texture.
omniscient
Major General
Posts: 694
Joined: Tue Sep 16, 2003 12:02 am

Post by omniscient »

u cant spawn a brush.
Image
Post Reply