smodaclist.txt

Overview Source Syntax Usage Notes


Overview

smodaclist.txt is an SMOD script that can add entity names to the console's auto-complete list. The entries are limited to the npc_create, npc_create_equipment, and give commands. Each command is given it's own code block and within those code blocks you should list any entities that you want to include.


smodaclistcon.png

Source

"npc_create" {
    "npc_metropolice"
    "npc_combine_s"
    "npc_combine_e"
    "npc_combine_p"
    "npc_combine_c"
    "npc_stalker"
    "npc_antlion"
    "npc_antlionguard"
    "npc_combine_ace"
    "npc_cscanner"
    "npc_kscanner"
    "npc_manhack"
    "npc_rollermine"
    "npc_combinegunship"
    "npc_helicopter"
    "npc_houndeye"
    "npc_zombie"
    "npc_fastzombie"
    "npc_poisonzombie"
    "npc_headcrab"
    "npc_headcrab_fast"
    "npc_poisonheadcrab"
    "npc_kheadcrab"
    "npc_citizen"
    "npc_um_citizen"
    "npc_zombine"
    "npc_f_kleiner"
    "npc_f_combine"
    "npc_f_monk"
    "npc_f_turret_floor"
    "npc_vortigaunt"
    "npc_citizen_medic"
    "npc_rocket_turret"
    "npc_crossbow_turret"
    "npc_laser_turret"
    "npc_f_rocket_turret"
    "npc_f_crossbow_turret"
    "npc_f_laser_turret"
}

"npc_create_equipment" {
    "weapon_crowbar"
    "weapon_lstick"
    "weapon_pistol"
    "weapon_alyxgun"
    "weapon_smg1"
    "weapon_ar2"
    "weapon_lasergun"
    "weapon_ak47"
    "weapon_kar98"
    "weapon_grease"
    "weapon_shotgun"
    "weapon_svd"
    "weapon_rpg"
}

"give" {
    "item_suit"
    "item_healthvial"
    "item_battery"
    "item_ammo_pistol"
    "item_ammo_smg1"
    "item_ammo_ar2"
    "item_ammo_357"
    "item_ammo_crossbow"
    "item_rpg_round"
    "item_ammo_smg1_grenade"
    "item_box_buckshot"
    "item_ammo_ar2_altfire"
    "item_box_flare_rounds"
    "weapon_custom"
    "weapon_crowbar"
    "weapon_physgun"
    "weapon_physcannon"
    "weapon_shovel"
    "weapon_lstick"
    "weapon_stcannon"
    "weapon_gcrowbar"
    "weapon_soy"
    "weapon_pistol"
    "weapon_357"
    "weapon_flaregun"
    "weapon_alyxgun"
    "weapon_smg1"
    "weapon_ar2"
    "weapon_gauss"
    "weapon_lasergun"
    "weapon_ak47"
    "weapon_kar98"
    "weapon_grease"
    "weapon_abgun"
    "weapon_mp5"
    "weapon_shotgun"
    "weapon_crossbow"
    "weapon_scissor"
    "weapon_psp"
    "weapon_svd"
    "grenade"
    "weapon_frag"
    "weapon_physlauncher"
    "weapon_bananna"
    "weapon_msbomb"
    "weapon_gravgren"
    "weapon_stickybomb"
    "weapon_rpg"
    "weapon_bugbait"
    "weapon_bugspawner"
    "weapon_hopwire"
    "weapon_hopwire_old"
    "weapon_flamethrower"
}


Syntax

1
2
3
4
"npc_create_equipment"
    {
    "weapon_svd"
    }

Line 1 names the command that the next few lines will apply to. In this case, npc_create_equipment so any added commands will fill out its list of possible weapons.

Line 2 has an opening brace, {. This signals the start of a code block, which will continue until we hit its closing brace, }. Anything within these braces will apply to the command named in line 1.

Line 3 is a entity we want to add to the auto-complete list for this command. In this case, the SVD rifle's classname is being added.

Line 4 is a closing brace for the npc_create_equipment block. You must match every opening brace with a closing brace or you'll have problems. Most commonly, the entire script won't run or some code blocks will be skipped over and won't do anything.

Usage Notes

  • The auto-complete list is cap-sensitive. If you type out npc_Create instead of npc_create, don't expect help from the console.
  • Fake entity names can be used with override_class.txt to create new spawn commands. A case where this is useful is making some coherent names for custom weapons; an entry for weapon_shredder can be created that will always be overridden to weapon_custom17.


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