Item suit (Black Mesa): Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
 
   
 
 Note:By default, all players in multiplayer are in the suit. Can be stripped by player_weaponstrip.
Note:By default, all players in multiplayer are in the suit. Can be stripped by player_weaponstrip.
 Bug:
Bug:
 Note:Most objects that inherit class
Note:Most objects that inherit class 
 Important:The boot sequence works only if map's BSP uses bm_c1a0a in the file name. This is a hardcoded feature.
Important:The boot sequence works only if map's BSP uses bm_c1a0a in the file name. This is a hardcoded feature.
 Important:Does not disable physics and collision.
Important:Does not disable physics and collision.
	
		
	
| MyGamepedia (talk | contribs) No edit summary | MyGamepedia (talk | contribs)  | ||
| (33 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
| {{TabsBar|main=item_suit}} | {{TabsBar|main=item_suit}} | ||
| [[File:  | {{CDA|CItem_Suit|CBasePickup|CBaseAnimating|CBaseEntity|}}  | ||
| [[File: item_suit_bms12.png | right |  | [[File:item suit bms fixed.png|80px||thumb|right|The suit model from all [[Steam]] versions of the game.]]   | ||
| {{This is a| | [[File:item_suit_bms12.png|80px||thumb|right|The suit model from the mod version of the game.]]   | ||
| {{This is a|model entity|name=item_suit|game=Black Mesa}} This entity represents the Mark IV Hazardous Environment suit. Picking it up will enable flashlight, running, [[HUD]], armor and the suit voice lines. | |||
| {{note|By default, all players in multiplayer are in the suit. Can be stripped by {{ent|player_weaponstrip}}.}} | {{note|By default, all players in multiplayer are in the suit. Can be stripped by {{ent|player_weaponstrip}}.}} | ||
| {{bug|hidetested=1|Stripping suit and giving it again in multiplayer will show weapon's ammo and clip amount, even if the weapon is stripped. | {{bug|hidetested=1| | ||
| *Stripping suit and giving it again in multiplayer will show weapon's ammo and clip amount, even if the weapon is stripped. | |||
| *Stripping suit will not set 0 value for armor. The armor will also reduce damage even after stripping. | |||
| *Save reload will disable boot sequence. | |||
| *[[Level Transitions|Level transition]] will break the [[HUD]] if boot sequence wasn't finished. | |||
| }} | |||
| {{note|Most objects that inherit class {{code|CBasePickup}} in {{bms|1}} have the following features: | {{note|Most objects that inherit class {{code|CBasePickup}} in {{bms|1}} have the following features: | ||
| * They're [[VPhysics]] objects (disabled in multiplayer mode). | * They're [[VPhysics]] objects (disabled in multiplayer mode). | ||
| Line 13: | Line 18: | ||
| }} | }} | ||
| {{bug|hidetested=1|Doesn't collide with other {{code|CBasePickup}} and ''weapon_'' entities {{not|{{bms12}}}}.}} | {{bug|hidetested=1|Doesn't collide with other {{code|CBasePickup}} and ''weapon_'' entities {{not|{{bms12}}}}.}} | ||
| {{important|The boot sequence works only if map's [[BSP]] uses '''bm_c1a0a''' in the file name. This is a hardcoded feature.}} | |||
| ==Keyvalues== | ==Keyvalues== | ||
| Line 29: | Line 35: | ||
| }} | }} | ||
| {{I|Enable|param=void|Make this item visible and enable the ability to be picked up by players.}} | {{I|Enable|param=void|Make this item visible and enable the ability to be picked up by players.}} | ||
| {{I|Fall|param=void| | {{I|Fall|param=void|Deattaches this entity if was attached with ''AttachTo'' input, the entity will retain its position before applying this input and will remain stationary until something will hit it.}} | ||
| ==Flags== | ==Flags== | ||
| {{fl|131072|Boot Sequence|Doesn't affect anything.}} | |||
| {{Fl|1|[[Physics optimization|Start Asleep]]}} | {{Fl|1|[[Physics optimization|Start Asleep]]}} | ||
| {{Fl|2|[[Physics optimization|Motion Disabled]]}} | {{Fl|2|[[Physics optimization|Motion Disabled]]}} | ||
| Line 40: | Line 47: | ||
| {{varcom|start}} | {{varcom|start}} | ||
| {{varcom|suitvolume|0.25|[[Float]]|Sound volume for the suit voice lines.}} | {{varcom|suitvolume|0.25|[[Float]]|Sound volume for the suit voice lines.}} | ||
| {{varcom|sv_always_run|0|[[Bool]]|Sets player's movement style. 0 - walk with normal speed, running available with the suit only and only if hold the button. 1 - always run, the button will make player very slow walking with very quite step sounds. Forced to 1 in multiplayer mode.}} | |||
| {{varcom|hud_crosshair_enable|1|Bool|Enable\disable weapon's crosshair display.}} | |||
| {{varcom|hud_crosshair_enemy_detect_range|4096|Float|The distance from the enemy player to the client at which the weapon crosshair turns red when the client look at the enemy player.}} | |||
| {{varcom|hud_playerinfo_distance|4096|Float|The distance from the player to the client at which the player information will be displayed when the client look at the player.}} | |||
| {{varcom|cl_drawhud|1|Bool|Enable\disable HUD display (with crosshair).}} | |||
| {{varcom|hud_fastswitch|0|[[Integer]]|See [[Hud fastswitch|hud_fastswitch]] page. | |||
| {{note|3 seems to be broken.}} | |||
| }} | |||
| {{varcom|mat_geiger_noise_enable|1|Bool|Enable\disable geiger noise effect when near radiation.}} | |||
| {{varcom|mat_chromatic_damage_enable |1|Bool|Enable\disable chromatic aberration effect when received damage.}} | |||
| {{varcom|end}} | {{varcom|end}} | ||
| Line 45: | Line 62: | ||
| * [[Item battery (Black Mesa)|item_battery]] - battery for the suit | * [[Item battery (Black Mesa)|item_battery]] - battery for the suit | ||
| * [[Item suitcharger (Black Mesa)|item_suitcharger]] - armor charger for the suit | * [[Item suitcharger (Black Mesa)|item_suitcharger]] - armor charger for the suit | ||
| * [[Misc dead hev (Black Mesa)|misc_dead_hev]] - dead HEV scientist | |||
| * [[Item longjump (Black Mesa)|item_longjump]] - the long jump module for the suit | |||
Latest revision as of 12:30, 28 September 2025
|  Class hierarchy | 
|---|
| CItem_Suit | 
 
  The suit model from all Steam versions of the game.
item_suit  is a   model entity  available in  Black Mesa. This entity represents the Mark IV Hazardous Environment suit. Picking it up will enable flashlight, running, HUD, armor and the suit voice lines.
 Black Mesa. This entity represents the Mark IV Hazardous Environment suit. Picking it up will enable flashlight, running, HUD, armor and the suit voice lines.
 Note:By default, all players in multiplayer are in the suit. Can be stripped by player_weaponstrip.
Note:By default, all players in multiplayer are in the suit. Can be stripped by player_weaponstrip. Bug:
Bug:
- Stripping suit and giving it again in multiplayer will show weapon's ammo and clip amount, even if the weapon is stripped.
- Stripping suit will not set 0 value for armor. The armor will also reduce damage even after stripping.
- Save reload will disable boot sequence.
- Level transition will break the HUD if boot sequence wasn't finished.
 Note:Most objects that inherit class
Note:Most objects that inherit class CBasePickup in Black Mesa have the following features:
- They're VPhysics objects (disabled in multiplayer mode).
- Respawn in multiplayer mode (item_weapon_ entities creating xen portal effects as well).
- No physics and collision in multiplayer.
- Model can be changed to your own via the parameter (which is not in the FGD by default, added in Enhanced Black Mesa FGD).
 Important:The boot sequence works only if map's BSP uses bm_c1a0a in the file name. This is a hardcoded feature.
Important:The boot sequence works only if map's BSP uses bm_c1a0a in the file name. This is a hardcoded feature.Keyvalues
- Respawn Time (respawntime) <float>
- Time waited between respawns in multiplayer mode.
- Model (model) <model path> !FGD
- Model to use for this entity.
Outputs
- OnPlayerDenied <void>
- Fires if the player has not picked it up when touched.
- OnPlayerPickup <void>
- Fires if the player picked it up.
Inputs
- AttachTo <void>
- Attaches this entity to !activator, the entity becomes impossible to pick up. It becomes invisible in first person mode, but only in Steam versions of the game only.
- Respawn <void>
- Respawn this entity in multiplayer. Fired by this entity after the amount of time from Respawn Time property.
- Disable <void>
- Make this item invisible and disable the ability to be picked up by players.
 Important:Does not disable physics and collision.
Important:Does not disable physics and collision.- Enable <void>
- Make this item visible and enable the ability to be picked up by players.
- Fall <void>
- Deattaches this entity if was attached with AttachTo input, the entity will retain its position before applying this input and will remain stationary until something will hit it.
Flags
- Boot Sequence : [131072]
- Doesn't affect anything.
- Start Asleep : [1]
- Motion Disabled : [2]
- Hard Respawn : [4]
- Respawn this entity even if it's already spawned. The timer will cycle throughout entire round. Picking up does not restart the timer.
- Silent Pickup : [8]
- Pick up this entity with no sound and HUD animation.
Dedicated Console Variables
| Cvar/Command | Parameters or default value | Descriptor | Effect | 
|---|---|---|---|
| suitvolume | 0.25 | Float | Sound volume for the suit voice lines. | 
| sv_always_run | 0 | Bool | Sets player's movement style. 0 - walk with normal speed, running available with the suit only and only if hold the button. 1 - always run, the button will make player very slow walking with very quite step sounds. Forced to 1 in multiplayer mode. | 
| hud_crosshair_enable | 1 | Bool | Enable\disable weapon's crosshair display. | 
| hud_crosshair_enemy_detect_range | 4096 | Float | The distance from the enemy player to the client at which the weapon crosshair turns red when the client look at the enemy player. | 
| hud_playerinfo_distance | 4096 | Float | The distance from the player to the client at which the player information will be displayed when the client look at the player. | 
| cl_drawhud | 1 | Bool | Enable\disable HUD display (with crosshair). | 
| hud_fastswitch | 0 | Integer | See hud_fastswitch page.  Note:3 seems to be broken. | 
| mat_geiger_noise_enable | 1 | Bool | Enable\disable geiger noise effect when near radiation. | 
| mat_chromatic_damage_enable | 1 | Bool | Enable\disable chromatic aberration effect when received damage. | 
See Also
- item_battery - battery for the suit
- item_suitcharger - armor charger for the suit
- misc_dead_hev - dead HEV scientist
- item_longjump - the long jump module for the suit

