Weapon Banning and Replacement
These settings allow you to ban (remove) or replace weapons on existing maps without making any changes to the original bsp files. This is done by spawning an alternative weapon which you specify instead of a weapon specified in the bsp file. To do this you will need to make use of the new weapon spawn flags listed below...

Weapon Flags
WF_NULL 0
WF_PIPE 1
WF_CROWBAR 2
WF_PISTOL 4
WF_SHOTGUN 8
WF_TOMMYGUN 16
WF_HMG 32
WF_GRENADELAUNCHER 64
WF_BAZOOKA 128
WF_FLAMETHROWER 256

Replacing Weapons:
To replace a particular weapon all you need to do is set the relevant weapons spawn setting (using the commands listed below) to the flag of the weapon you wish to replace it with.

For example, to replace the bazooka with a heavy machine gun, you would need to use the following setting:
set spawn_weapon_bazooka 32

Banning Weapons:
To ban a particular weapon all you need to do is set the relevant weapons spawn setting to 0. This will result in the removal (ban) of both the weapon and the weapons ammo type.

For example to ban the bazooka, you would need to use the following setting:
set spawn_weapon_bazooka 0

Intelligent Weapon Banning and Replacement Explained:
Replacing a weapon will also replace the weapons ammo type with the ammo used by the replacement weapon. This means that if you replace a grenade launcher with a shotgun all the grenades found on the map will be replaced by shells and replacing a flame thrower with a bazooka will subsequently result in all the flame tanks being replaced by rockets.

If you replace a weapon with a weapon that doesn't require ammo, all the ammo packs for the replaced weapon will be removed, for example, replacing the tommygun with the crowbar will result in the removal of all the cylinder bullet packs and replacing a heavy machine gun with a crowbar results in all the 308 cal packs being removed.

Setting the weapons spawn setting to the flag of the same weapon will have no effect, therefore, the original item being spawned.

Arenas:
The weapon replacement feature enables server admins to set up any 'arena' type mod they so wish. While setting each of the individual weapon spawn flags to same value will achieve this there is a global overwrite weapon spawn flag (spawn_weapon_all) which can be used to replace all weapons with the same weapon, to do this, simply set spawn_weapon_all to the flag of the weapon you wish to feature in the arena, this results in all weapons being replaced by one type of weapon and all ammo pack being replaced by the ammo used by the replacement weapon.

For example to replace all weapons with the flame thrower, you would need to use the following setting:
set spawn_weapon_all 256

NOTE: You cannot use the global overwrite weapon spawn flag to ban all weapons! To do this you will need to set each individual weapon spawn flag to 0.

Example configuration files for all the possible 'arena' style games are included in the download file.

NOTE: Its not possible to replace a weapon with the pipe! This is because there is no 'ground' model available for pipe. In an attempt to keep this mod server-side I have a firm idea as to how I can get around this problem and you can expect this feature to be available in a future version.

The weapon banning and replacement feature has no effect on the start_* values, this makes it possible to ban a weapon on a map but include the banned weapon in the clients inventory.

Command Description Default Value

spawn_weapon_all

When set, all weapons will spawn as this item to create an 'Arena' 0
spawn_weapon_crowbar Specifies the weapon to spawn in place of the Crowbar 2
spawn_weapon_pistol Specifies the weapon to spawn in place of the Pistol 4
spawn_weapon_shotgun Specifies the weapon to spawn in place of the Shotgun 8
spawn_weapon_tommygun Specifies the weapon to spawn in place of the Tommygun 16
spawn_weapon_hmg Specifies the weapon to spawn in place of the H.M.G 32
spawn_weapon_grenadelauncher Specifies the weapon to spawn in place of the Grenade Launcher 64
spawn_weapon_bazooka Specifies the weapon to spawn in place of the Bazooka 128
spawn_weapon_flamethrower Specifies the weapon to spawn in place of the Flame Thrower 256

www.loaded-mod.fsnet.co.uk
The Loaded Kingpin Modification is copyright © 1999 - 2000 Kevin Fell ( Wolverine[CotC] )
Kingpin: Life of Crime © 1999 Xatrix Entertainment, Inc. All rights reserved