TorchAPI / Essentials

A Torch plugin that adds must-have utilities and administration tools to Space Engineers dedicated servers.
23 stars 31 forks source link

Add system for setting items player spawns with. #205

Open PalpatineSWU opened 2 years ago

PalpatineSWU commented 2 years ago

Add a simple way to add items to players inventory on spawn, features might include. +add tools, weapons, ammo, items, to player inventory on spawn +add command to set mutltiple loadouts for player to spawn with, worker with tools, soldier with weapons or even as exact as sniper. Command might be !kit sniper +add ability to automatically include ammo that shoots from gun upon adding gun to player inventory +add ability to randomly select weapon to give player (with ammo)

true
<SpawnWithRandomWeapon>true</SpawnWithRandomWeapon>
<SpawnWithRandomWeaponAmmoAmount>10</SpawnWithRandomWeaponAmmoAmount>
<Usekits>true</Usekits>
<Kits>
      <Kit>
      <Kitname>sniper</Kitname>
      <String>RapidFireAutomaticRifleItem</String>   <!--DisplayName, SubtypeId-->
      <StringMultiplier>1</StringMultiplier>         <!--Amount of above item to spawn-->
      <String>Steel Plate</String>                   <!--DisplayName, SubtypeId-->
      <StringMultiplier>100</StringMultiplier>       <!--Amount of above item to spawn-->          
      <AmmoAmount>4</AmmoAmount>                     <!--Magazines to spawn with weapons in kit-->
      <Creditcost>0</Creditcost>
      <Allowonrespawn>0</Allowonrespawn>  <!--Allow player to respawn with kit, automatically charges credits-->
      </kit>
</Kits>