Donate to Motivate
This is just a simple plugin I wrote because I was bored. Basically, server owners can set what loadouts each player starts with. Bots share the same loadout since their "ID" is just "BOT" so there's no point in even setting a loadout for each of them.
How It Works
When a player spawns as a survivor, the plugin looks for their Steam ID in the config file. If it's not listed, the player will be given the default pack. When a player goes AFK, the bot that replaces the player is given a new loadout. When a player replaces the bot, the player will get a new set of their own loadout.
Basically, like this:
Player spawns and is given a shotgun.
When player goes afk, bot gets an smg.
Player comes back and replaces bot, he/she gets a shotgun again.
When a bot spawns as a survivor, the plugin looks for the "bot" ID in the config file. If it's not listed, the bot will be given the default pack. When a player takes over the bot, the player will be given a new loadout.
Basically, like this:
Bot spawns and is given an smg.
When player takes over the bot, player gets a shotgun.
Player leaves and is replaced by a bot, the bot is given an smg.
sm_starter <#userid|name> "item1,item2,item3,item4,item5"
Example: sm_starter @me "smg,pistol,pain_pills" (Character limit for loadout is 325 including commas.)
This command will save the specified starter pack for the player's Steam ID in the config. It will take effect the next time the player_spawn event is fired for that player. (i.e. Player goes afk or vice versa.)
"Survivor Starter Pack"
"Plugin Enabled" "1" // 0: Plugin is off, 1: Plugin is on
"Default Pack" "smg,pistol,pain_pills" // This loadout is used when the player's Steam ID isn't listed below...
// This is my Steam ID as an example...
"Starter Pack" "autoshotgun,knife,molotov,first_aid_kit,adrenaline"
// The "ID" used for bots...
"Starter Pack" "smg_mp5,pistol_magnum,first_aid_kit,pain_pills"
I'm not sure. Let me know.
1. The config file will be generated in the default cfg/sourcemod
2. Use the sm_starter
command to add new Steam IDs to the config file. (You can still manually add Steam IDs yourself out of the game.)
3. The bots are given a specified loadout when a player goes AFK and vice-versa and when they spawn. This is done so that bots can have their own loadouts as well.
I don't know. Post one below and I'll look into it.
1. Place survivor_starter_pack.smx
inside plugins folder.