Skip to content

ZockiRR/RustTaser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How It Works

When entering the chat command the named player or if no name given yourself is granted an item named as Taser. This item can normally be dropped and will function as Taser for everyone else. This is the main difference to the Taser, where it depends on permission and ammo type rather then a chat command. The taser has one charge. After using that charge the taser needs a specific amount of time to recharge. If a player in range is hit by the taser he immediatly gets into the wounded state and will get back up again after a specific amount of time or when another player helps him in the normal way. Unless the taser damage is changed to something > 0, the taser is unable to kill a player. If the player doesn't have the permission to use the taser he won't fire the taser, but will receive a specified amount of damage. If everyone should have the permission to use the taser you may add the permission to the default group like oxide.grant group default electrictaser.usetaser.

Commands

GiveTaser

This will give the specified player a taser or if no playername was given yourself.

/givetaser [optional:playername]
Example: /givetaser ZockiRR

Syntax - Options

  • playername - The player who will get the taser (default: yourself)

GiveTazer

This will give the specified player a taser or if no playername was given yourself.

/givetazer [optional:playername]
Example: /givetazer ZockiRR

Syntax - Options

  • playername - The player who will get the taser (default: yourself)

RemoveAllTasers

This will remove all currently existing tasers from the server.

/removealltasers
Example: /removealltasers

RemoveAllTazers

This will remove all currently existing tasers from the server.

/removealltazers
Example: /removealltazers

Permissions

  • electrictaser.givetaser -- Allows the use of the givetaser/givetazer commands
  • electrictaser.removealltasers -- Allows the use of the removealltasers/removealltazers commands
  • electrictaser.tasenpc -- Allows the player to tase NPCs, which are player like (for example Scientists)
  • electrictaser.usetaser -- Allows the player to use the taser in general

Configuration

{
  // Time in seconds which the taser needs to charge for the next use
  "TaserCooldown": 5.0,
  // Distance in which the taser is effective (downs a player)
  "TaserDistance": 8.0,
  // The duration in seconds which the player is wounded when hit, before he stands up again
  "TaserShockDuration": 20.0,
  // The electrical damage which the taser deals on hit (before armor reduction)
  "TaserDamage": 0.0,
  // The electrical damage which the player receives without having use permission (before armor reduction)
  "NoUsePermissionDamage": 20.0,
  // This will kill NPCs instantly when tased instead of wounding them
  "InstantKillsNPCs": false,
  // This locks tased NPCs belt inventory (only when in wounded state)
  "NPCBeltLocked": true,
  // This locks tased NPCs wear inventory (only when in wounded state)
  "NPCWearLocked": true,
  // These are the used assets from the game and should not be changed unless not working anymore
  "ItemNailgun": "pistol.nailgun",
  "PrefabScream": "assets/bundled/prefabs/fx/player/gutshot_scream.prefab",
  "PrefabShock": "assets/prefabs/locks/keypad/effects/lock.code.shock.prefab"
}

About

Gives players with permissions the ability to spawn a taser.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages