Version: v070802b
Updated on: 2007-10-06 06:17:09
by Cap'tain ta race File Name: pirat_restrict_v070802b.zip
File Size: 3228 bytes
(View Zip Contents)
Version Notes: [color=red]New in v070802b[/color] :
- bug when a "mp_restartgame" is done, weapons were not restrict. Now working.
- the default file [color=red]es_restriction_list_db.txt[/color] is modified just to be more standard.
Download this version
Version: v070802b
Updated on: 2007-08-06 00:58:50
by Cap'tain ta race File Name: pirat_restrict_v070802.zip
File Size: 3263 bytes
(View Zip Contents)
Version Notes: [size=18][u]V070802[/u][/size]
[b]Requirements: Eventscripts v1.5 or higher[/b]
What's New: You can now add [color=red]"spawn_with"[/color] parameter to have the possibility to change/restrict the weapons and ammo given to the player at spawn.
adding the possibility to specify only a part of the name of a map with * caracter.
Always the same file to admin the restriction: [color=red]es_restriction_list_db.txt[/color]
This file is an [b]example[/b], modify him as your wish (at each map start this file is reloaded).
The area with "filter_for_all_maps" are the parameter for all maps by default:
[code]"remove" "weapon_rpg,item_rpg_round"[/code]
Will delete all weapon_rpg and item_rpg_round on the ground (for all map).
[code]"spawn_with" "weapon_physcannon,weapon_smg1,2x weapon_frag,weapon_pistol,3x item_ammo_pistol ...."[/code]
Player will spawn with all this list of weapons and ammo. (by default for all maps).
You can leave the "spawn_with" "" or delete it if you want use the Valve default weapons player spawn.
you can specify quantity ex: "2x weapon_frag" give 2 grenades.
[code]// special restrictions sort by weapons and items[/code]
below this line you can manage special config and this one have priority.
[code]"weapon_physcannon"
{
"spawn_with" "a2k_crossbow_vs_357"
}
"weapon_frag"
{
"spawn_with" "2x a2k_crossbow_vs_357"
}[/code]
For this example at map "a2k_crossbow_vs_357" The player will only spawn with "weapon_physcannon" and two weapon_frag. (even if there is a "spawn_with" for all map this one have priority).
[code]"weapon_rpg"
{
"keep" "js_*"
}[/code]
In this example we want have the weapon_rpg for all map with a name beginning by "js_" (actually often coop map).
Below the whole restriction list example shipped with this version.
[code]"restriction_list"
{
"filter_for_all_maps"
{
"remove" "weapon_rpg,item_rpg_round"
"spawn_with" "weapon_physcannon,weapon_smg1,2x weapon_frag,weapon_pistol,3x item_ammo_pistol,item_ammo_pistol_large,weapon_stunstick,weapon_crowbar"
}
// special restrictions sort by weapons and items
"weapon_physcannon"
{
"spawn_with" "a2k_crossbow_vs_357"
}
"weapon_rpg_e1"
{
"remove" "dm_biohazard"
}
"weapon_rpg_1"
{
"remove" "dm_biohazard"
}
"weapon_rpg"
{
"keep" "js_*"
}
"item_rpg_round"
{
"keep" "js_*"
}
"weapon_frag"
{
"spawn_with" "2x a2k_crossbow_vs_357"
}
}[/code]
Download this version