Difference between revisions of "Player weaponstrip"

From Sven Co-op
Jump to navigation Jump to search
(Spawnflag for removing HEV is 1)
m (Descriptions for each m_iAffected choice)
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
 
}}
 
}}
  
Removes all weapons and ammo from player. It's possible to also remove HEV suit.Keyvalues
+
Removes all weapons and ammo from player. It's possible to also remove HEV suit.
  
{{Entity_keyvalue|Players to strip|m_iAffected|Allows to change which players will be affected by player_weaponstrip.}}
+
== Keyvalues ==
 +
 
 +
{{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.