Adding Weapons in Single Player??

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
User avatar
aLpHa2
Lance Corporal
Posts: 14
Joined: Sun Apr 27, 2003 3:40 am

Adding Weapons in Single Player??

Post by aLpHa2 »

Ok i follow a tutorial that is SP and its a combined tut on destroying flak88 rondevouzing with ur allies and fighting off tanks. but the only thing is that i cant spawn with weapons. i am using Spearhead. ok i put this into my script just like it tells me too. i got the tut from the Spearhead SDK tuts.
this is what i put


//---------------------------------------------------------------------------------------------------------------------------------
InitPlayer:
//---------------------------------------------------------------------------------------------------------------------------------
//setup our player with weapons
$player takeall
$player item weapons/Webley_Revolver.tik
$player item weapons/enfield.tik
$player item weapons/sten.tik
$player item weapons/mills_grenade.tik
$player item weapons/M18_smoke_grenade.tik

// give him some ammo
$player ammo pistol 48
$player ammo smg 168
$player ammo rifle 80
$player ammo smokegrenade 3
$player ammo grenade 3

// start out using the smg
$player useweaponclass smg

// give him binoculars and the explosive icon...
$player item items/binoculars.tik


yet when i start out i dont spawn with anything
and im thinking that putting the $ before player is making it not work
In a battle never ever look back. If you ever need help drop but dont stop. Keep going! A battle is not won over the luck if you shoot someone or if they shoot you its about the men beside you. They help you, they put pride in you, and they guide you.

This is to my Bro that was lost in Desert Storm.

UNITY.BROTHERHOOD.PEACE
User avatar
Zip
Major
Posts: 323
Joined: Wed Apr 09, 2003 6:47 pm
Location: Belgium

Post by Zip »

In a battle never ever look back. If you ever need help drop but dont stop. Keep going! A battle is not won over the luck if you shoot someone or if they shoot you its about the men beside you. They help you, they put pride in you, and they guide you.

This is to my Bro that was lost in Desert Storm.
That is deep. Sorry to hear that.

As for your SP problem, did you put your script in the same location as your .bsp? I don't know about SP, but if you make a multiplayer map your script must be in the same place as your .bsp (i.e. if your .bsp is in mainta\maps\dm then your script should be there too)

Hope that helps :)
Zip :?
User avatar
mohaa_rox
Field Marshal
Posts: 2760
Joined: Mon Nov 11, 2002 7:05 am
Contact:

Post by mohaa_rox »

so for SP, just place it in mohaa\mainta\maps
Live to map, not map to live.
-mohaa_rox, .map
moderator
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

for the binoculars you can use

waitthread global/items.scr::add_item "binoculars"

That will put the binoculars on the hud for you . The rest look ok to me .
Post Reply