This article relates to the game "Half-Life: Alyx". Click here for more information.
This article relates to the workshop tools for "Half-Life: Alyx". Click here for more information.
This article's documentation is for Source 2. Click here for more information.

Difference between revisions of "Half-Life: Alyx Workshop Tools/Level Design/Shotgun"

From Valve Developer Community
Jump to: navigation, search
(Added HLATools page template)
m (Make entities link to their wiki page, and make weapon classname match that shown in screenshot)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
 +
{{otherlang2
 +
|ru=Инструменты_мастерской_Half-Life:_Alyx/Дизайн_уровней/Оружие/Дробовик
 +
}}
 
{{HLATools page|leveldesign=1}}
 
{{HLATools page|leveldesign=1}}
 
== Introduction ==
 
== Introduction ==
Line 6: Line 9:
 
== Making it pickable ==
 
== Making it pickable ==
  
Create a test room. Insert a '''weapon_shotgun''' entity. You can set the initial ammo via the property ''Spawn Ammo''.
+
Create a test room. Insert an '''[[item_hlvr_weapon_shotgun]]''' entity. You can set the initial ammo via the property ''Spawn Ammo''.
  
 
[[File:HLA_SDK_Shotgun_Img1.png]]
 
[[File:HLA_SDK_Shotgun_Img1.png]]
  
You can spawn ammo by inserting an '''item_hlvr_clip_shotgun_single''', '''item_hlvr_clip_shotgun_shells_pair''' or '''item_hlvr_clip_shotgun_multiple''' point entity.
+
You can spawn ammo by inserting an '''[[item_hlvr_clip_shotgun_single]]''', '''[[item_hlvr_clip_shotgun_shells_pair]]''' or '''[[item_hlvr_clip_shotgun_multiple]]''' point entity.
  
 
== Giving it on spawn ==
 
== Giving it on spawn ==
  
Insert an '''info_hlvr_equip_player''' entity. Set the following properties:
+
Insert an '''[[info_hlvr_equip_player]]''' entity. Set the following properties:
  
 
{| class="wikitable"
 
{| class="wikitable"

Latest revision as of 01:16, 21 July 2020

Русский

Introduction

This tutorial will teach you how give the player the Shotgun.

Making it pickable

Create a test room. Insert an item_hlvr_weapon_shotgun entity. You can set the initial ammo via the property Spawn Ammo.

HLA SDK Shotgun Img1.png

You can spawn ammo by inserting an item_hlvr_clip_shotgun_single, item_hlvr_clip_shotgun_shells_pair or item_hlvr_clip_shotgun_multiple point entity.

Giving it on spawn

Insert an info_hlvr_equip_player entity. Set the following properties:

Key Value
Equip on Map Start
Shotgun

You can set the initial loaded ammo with the following property:

Key Value
Loaded Shotgun Ammo 7

You can set the backpack ammo amount with the following property:

Key Value
Shotgun Ammo 7