Difference between revisions of "Player weaponstrip"

From Sven Co-op
Jump to navigation Jump to search
m
m (Descriptions for each m_iAffected choice)
 
Line 7: Line 7:
 
== Keyvalues ==
 
== Keyvalues ==
  
{{Entity_keyvalue|Players to strip|m_iAffected|Allows to change which players will be affected by player_weaponstrip.}}
+
{{Entity_keyvalue|Players to strip|m_iAffected|Allows to change which players will be affected by player_weaponstrip.
 +
<br>Options are:
 +
* <code>0</code> Activator only: strip only !activator of the script e.g. player who pressed a button that targeted this entity.
 +
* <code>1</code> All players: strip everyone on map.
 +
* <code>2</code> All players except activator: strip everyone except the !activator of the script- e.g. strip everyone except player who pressed a button that targeted this entity.}}
  
 
== Flags ==
 
== Flags ==

Latest revision as of 18:07, 24 March 2023

player_weaponstrip
Type

point

Status

supported

 


Removes all weapons and ammo from player. It's possible to also remove HEV suit.

1 Keyvalues

Players to strip : m_iAffected

Allows to change which players will be affected by player_weaponstrip.
Options are:

  • 0 Activator only: strip only !activator of the script e.g. player who pressed a button that targeted this entity.
  • 1 All players: strip everyone on map.
  • 2 All players except activator: strip everyone except the !activator of the script- e.g. strip everyone except player who pressed a button that targeted this entity.

2 Flags

1 : Strip suit, too

(Also) remove HEV suit.