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
Removing and giving player initial equipment
- Datastream
- Donator
- Posts: 870
- Joined: Thu Dec 24, 2009 1:24 pm
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:
Change equipment to whatever you need of course.
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"
}
}