Skip to content
This repository has been archived by the owner on Feb 26, 2021. It is now read-only.

Commit

Permalink
Disallow item equipping while tranquilized
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonWizard committed Mar 15, 2019
1 parent 2ae3d5e commit 7058bd5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion TranquilizerGun/TranqGunPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespace TranquilizerGun
name = "TranquilizerGun",
description = "Adds a tranquilizer gun with temporarily ragdolls players.",
id = "xyz.wizardlywonders.TranquilizerGun",
version = "1.1.0",
version = "1.1.1",
SmodMajor = 3,
SmodMinor = 3,
SmodRevision = 0
Expand Down
1 change: 1 addition & 0 deletions TranquilizerGun/TranquilizerGun.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ private IEnumerable<float> Tranquilize(Player p)
{
elapsed += Time.deltaTime;
p.Teleport(loc);
p.SetCurrentItemIndex(-1); // disallow equipping anything

yield return 0;
}
Expand Down

0 comments on commit 7058bd5

Please sign in to comment.