Skip to content

Randomize NPC models.#2423

Open
IBRS-4Ever wants to merge 2 commits intoFacepunch:masterfrom
IBRS-4Ever:random_model_on_spawn
Open

Randomize NPC models.#2423
IBRS-4Ever wants to merge 2 commits intoFacepunch:masterfrom
IBRS-4Ever:random_model_on_spawn

Conversation

@IBRS-4Ever
Copy link
Contributor

@IBRS-4Ever IBRS-4Ever commented Jan 13, 2026

Spawn NPCs with randomized model if "Model" value is a table.


local NPC =
{
	Name = "Random Combine Soldier",
	Class = "npc_combine_s",
	Model = { "models/combine_soldier.mdl", "models/combine_soldier_prisonguard.mdl", "models/combine_super_soldier.mdl" },
	Category = "Test"
}

list.Set( "NPC", "random_combine", NPC )

@IBRS-4Ever
Copy link
Contributor Author

20260114012300_1
20260114012324_1

@IBRS-4Ever IBRS-4Ever closed this Jan 13, 2026
@IBRS-4Ever IBRS-4Ever deleted the random_model_on_spawn branch January 13, 2026 17:34
@IBRS-4Ever IBRS-4Ever restored the random_model_on_spawn branch January 13, 2026 17:35
@IBRS-4Ever IBRS-4Ever reopened this Jan 13, 2026
@robotboy655 robotboy655 added Addition The pull request adds new functionality. Enhancement The pull request enhances current functionality. labels Jan 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Addition The pull request adds new functionality. Enhancement The pull request enhances current functionality.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants