excludeweapons.txt

Overview Source Syntax


Overview

excludeweapons.txt is used by SMOD to thoroughly remove any extra weapons the user does not want. Instead of overriding class names or remove entities via mapadds, this script will automatically remove any weapon entities listed within the without code block.

Source

"Weapon exclusion list"
{
//    Describe weapon classname here. Weapon is excluded from game.
//    If you want to use sample, comment out the "without" section.

    "without" {

//    SMOD Weapons
    "weapon_stcannon" {}
    "weapon_physgun" {}
    "weapon_flaregun" {}
    "weapon_physlauncher" {}
    "weapon_gauss" {}
    "weapon_kar98" {}
    "weapon_lasergun" {}
    "weapon_nodemaker" {}
    "weapon_msbomb" {}
    "weapon_grease" {}
    "weapon_gravgren" {}
    "weapon_ak47" {}
    "weapon_flamethrower" {}
    "weapon_bananna" {}
    "weapon_anm14" {}
    "weapon_bugspawner" {}
    "weapon_abgun" {}
    "weapon_hopwire" {}
    "weapon_hopwire_old" {}
    "weapon_lstick" {}
    "weapon_mp5" {}
    "weapon_psp" {}
    "weapon_scissor" {}
    "weapon_shovel" {}
    "weapon_soy" {}
    "weapon_stickybomb" {}
    "weapon_svd" {}
    "weapon_gcrowbar" {}

//    Custom Weapons
    "weapon_custom1" {}
    "weapon_custom2" {}
    "weapon_custom3" {}
    "weapon_custom4" {}
    "weapon_custom5" {}
    "weapon_custom6" {}
    "weapon_custom7" {}
    "weapon_custom8" {}
    "weapon_custom9" {}
    "weapon_custom10" {}
    "weapon_custom11" {}
    "weapon_custom12" {}
    "weapon_custom13" {}
    "weapon_custom14" {}
    "weapon_custom15" {}
    "weapon_custom16" {}
    "weapon_custom17" {}
    "weapon_custom18" {}
    "weapon_custom19" {}
    "weapon_custom20" {}
    "weapon_custom21" {}
    "weapon_custom22" {}
    "weapon_custom23" {}
    "weapon_custom24" {}
    "weapon_custom25" {}
    "weapon_custom26" {}
    "weapon_custom27" {}
    "weapon_custom28" {}
    "weapon_custom29" {}
    "weapon_custom30" {}
    }
}

You must comment out (//) the beginning of the without block if entities are to be excluded.

Syntax

1
2
3
4
    "without"
        {
        "weapon_crowbar" {}
        }

Line 1 begins the without block.
Line 2 lists a weapon classname. Place all entities you wish to exclude within the opening and closing brackets. Note that it is necessary to have a opening { and closing } brace after each entity name or only every other weapon will be excluded.


Customization

Mapadd Command Reference (Non-LUA)Command Reference (LUA)Getting StartedPorts 'n' Doors
Alarm, Alarm!Color Correction in SMODDoor BreachingMobile APCsWorking With Dropships
Supply Drop (LUA)Countdown (LUA)
kh0rn3's Mapadd Generator
Scripts addcontentsoverride_classsmod_custom_explosivesmodaclistSMOD Soundscripts

npc_gib_modelnpc_replace_modelnpc_shieldsetnpc_weapon_randomizenpc_weaponweight

excludeweaponsweapon_categoryweapon_customConsole Command List
Other Crosshair CustomizationGenerating AI NodesUsing the NodemakerSubViewCam
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License