Garry's Mod Wiki

Revision Difference

Enums/SF#514960

<cat>enum</cat>⤶ <enumeration>⤶ <description>⤶ Enumerations describing certain spawnflags. Everything except for SF_PHYS* is serverside only.⤶ ⤶ Spawnflags are set using <page>Entity:SetKeyValue</page> with **"spawnflags"** as the key.⤶ ⤶ * SF_CITIZEN_* spawnflags represent spawnflags only usable on [npc_citizen](https://developer.valvesoftware.com/wiki/Npc_citizen).⤶ * SF_NPC_* - Usable on all NPCs⤶ * SF_PHYSBOX_* - Usable on [func_physbox](https://developer.valvesoftware.com/wiki/Func_physbox)⤶ * SF_PHYSPROP_* - Usable on [prop_physics](https://developer.valvesoftware.com/wiki/Prop_physics) entities⤶ ⤶ <note>This is not a full list of available spawnflags, there are `a lot` more, each unique to each entity, you can find out more on the [Valve Developer Community](https://developer.valvesoftware.com/wiki/Main_Page) website for the entities in question.</note>⤶ </description>⤶ <fields>{{EnumField|SF_CITIZEN_AMMORESUPPLIER|524288|Citizen that resupplies ammo</fields>⤶ ⤶ </enumeration>⤶ ⤶ {{EnumField|SF_CITIZEN_FOLLOW|65536|"Follow the player as soon as I spawn"}}{{EnumField|SF_CITIZEN_IGNORE_SEMAPHORE|2097152|"Work outside the speech semaphore system"}}{{EnumField|SF_CITIZEN_MEDIC|131072|Makes the citizen a medic}}{{EnumField|SF_CITIZEN_NOT_COMMANDABLE|1048576|Citizen cannot join players squad, and will not able to be commanded by the Half-Life 2 command system for Citizens}}{{EnumField|SF_CITIZEN_RANDOM_HEAD|262144|Gives the citizen a random head}}{{EnumField|SF_CITIZEN_RANDOM_HEAD_FEMALE|8388608|Gives the citizen a random female head}}{{EnumField|SF_CITIZEN_RANDOM_HEAD_MALE|4194304|Gives the citizen a random male head}}{{EnumField|SF_CITIZEN_USE_RENDER_BOUNDS|16777216|"Use render bounds instead of human hull for guys sitting in chairs, etc". Must be set before Spawn() is called to take effect}}{{EnumField|SF_FLOOR_TURRET_CITIZEN|512|Makes the floor turret friendly}}{{EnumField|SF_NPC_ALTCOLLISION|4096|Do Alternate collision for this NPC (player avoidance)}}{{EnumField|SF_NPC_ALWAYSTHINK|1024|[Think outside PVS](https://developer.valvesoftware.com/wiki/NPC_Sensing)}}{{EnumField|SF_NPC_DROP_HEALTHKIT|8|NPC Drops health kit when it dies}}{{EnumField|SF_NPC_FADE_CORPSE|512|Fade Corpse}}{{EnumField|SF_NPC_FALL_TO_GROUND|4|If not set, means *teleport* to ground}}{{EnumField|SF_NPC_GAG|2|No IDLE sounds until angry}}{{EnumField|SF_NPC_LONG_RANGE|256|Long Visibility/Shoot}}{{EnumField|SF_NPC_NO_PLAYER_PUSHAWAY|16384|Ignore player push - Don't give way to player}}{{EnumField|SF_NPC_NO_WEAPON_DROP|8192|NPC Doesn't drop weapon on death}}{{EnumField|SF_NPC_START_EFFICIENT|16|Don't acquire enemies or avoid obstacles}}{{EnumField|SF_NPC_TEMPLATE|2048|This entity is a template for the [npc_template_maker](https://developer.valvesoftware.com/wiki/Npc_template_maker). It will not spawn automatically and cannot be used with [point_template](https://developer.valvesoftware.com/wiki/Point_template).}}{{EnumField|SF_NPC_WAIT_FOR_SCRIPT|128|Wait for script}}{{EnumField|SF_NPC_WAIT_TILL_SEEN|1|Wait till seen}}{{EnumField|SF_PHYSBOX_MOTIONDISABLED|32768|If set, calls <page>PhysObj:EnableMotion</page>( false ) on the func_physbox when the physics are created}}{{EnumField|SF_PHYSBOX_NEVER_PICK_UP|2097152|Gravity gun is NOT allowed to pick this up.}}{{EnumField|SF_PHYSPROP_MOTIONDISABLED|8|If set, calls <page>PhysObj:EnableMotion</page>( false ) on the func_physbox when the physics are created. See [Physics optimization](https://developer.valvesoftware.com/wiki/Physics_optimization)}}{{EnumField|SF_PHYSPROP_PREVENT_PICKUP|512|Prevent that physbox from being picked up}}{{EnumField|SF_ROLLERMINE_FRIENDLY|65536|Makes the rollermine friendly}}⤶ }}