Removing and giving player initial equipment

Need Help? The Day isnt going so well on the Mapping front?
Post Reply
Losvaize
Vertex
Vertex
Posts: 14
Joined: Tue Feb 09, 2010 2:41 pm

Removing and giving player initial equipment

Post by Losvaize »

Good day

I would like your assistance in this matter:

Is it possible to control what equipment the player in a lan game receives at the begginning of the map?

I have ovserved OC provides to player as default suit, crowbar, medkit...
I would like them to have just the suit, and ar2 in another map.
I suppose adding equipment can be done with an additional script (even I don't know how it can be done), but no clue about removing it.

Thank you a lot.

Marco
User avatar
Datastream
Donator
Donator
Posts: 870
Joined: Thu Dec 24, 2009 1:24 pm

Post by Datastream »

I think you will have to edit the map for that.
User avatar
Shana
Lead Developer
Lead Developer
Posts: 2971
Joined: Tue Aug 29, 2006 8:12 pm
Location: Germany
Contact:

Post by Shana »

Spawn equipment is defined in maps/cfg/mapname_modify.txt.

For an existing map you can just edit the SpawnItems section when the modify script already exists.

For your own map or in case there's no modify script yet, simply create a new text file called mapname_modify.txt and throw this inside:

Code: Select all

mapname_here
{
SpawnItems
{
    "weapon_smg1" "1"
    "weapon_crowbar" "1"
    "weapon_pistol" "1"
    "weapon_shotgun" "1"
    "item_box_buckshot" "2"
    "item_ammo_smg1_large" "1"
    "item_ammo_pistol_large" "1"
    "weapon_healer" "1"
}
}
Change equipment to whatever you need of course.
Losvaize
Vertex
Vertex
Posts: 14
Joined: Tue Feb 09, 2010 2:41 pm

Post by Losvaize »

It worked perfectly! Thank you a lot!


Marco
Post Reply