]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Require Wield To Activate Double-bladed ESword (#32869)
authorPreston Smith <92108534+thetolbean@users.noreply.github.com>
Sat, 30 Nov 2024 19:31:40 +0000 (13:31 -0600)
committerGitHub <noreply@github.com>
Sat, 30 Nov 2024 19:31:40 +0000 (20:31 +0100)
* Add MeleeRequiresWield component

* Prevent world activation

Resources/Prototypes/Entities/Objects/Weapons/Melee/e_sword.yml

index 0b0719e77f8b1fb385097833a46e9c1b0fe48a10..59a27ccf0cc87defe117d53e92d3e6cbe3868b1e 100644 (file)
   components:
   - type: ItemToggle
     onUse: false # wielding events control it instead
+    onActivate: false # prevents the weapon from being able to be turned on when it is on the ground
     soundActivate:
       path: /Audio/Weapons/ebladeon.ogg
       params: