Prop weapon

From Sunrust Wiki
Jump to navigation Jump to search

Game specific weapon.

Keyvalues

Weapon Type <choices>

Weapon type this entity becomes.

Empty <choices>

Set to empty the weapon of any default ammo.
  • 0: No
  • 1: Yes

Never Remove <choices>

Never remove when used or damage, for repeated uses.
  • 0: No
  • 1: Yes

Ignore Pickup Counter <choices>

Set to ignore a maxpickupcounter, if any.
  • 0: No
  • 1: Yes

Ignore Use <choices>

Set to disable being able to pickup via use key.
  • 0: No
  • 1: Yes

Restrained <choices>

Freeze the weapon in midair.
  • 0: No
  • 1: Yes

Inputs

input givetoactivator <void>

Forces the weapon onto the activator.

input setneverremove <integer>

Set to make infinite uses.

input setignorepickupcount <integer>

Set to ignore any max pickup counter.

input setignoreuse <integer>

Set to disable being able to pickup via use key

input setweapontype <string>

Set to change the weapon type of this entity.

input setempty <string>

Set to empty the weapon of any default ammo.

Outputs

output OnPickupPassed <void>

Called when the weapon is given to the player.

output OnPickupFailed <void>

Called when the weapon is not given to the player.