Эта статья относится к игре "Half-Life: Alyx". Нажмите для получения дополнительной информации.
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.

Shotgun

From Valve Developer Community
< Ru‎ | Half-Life: Alyx Workshop Tools‎ | Level Design
Revision as of 23:19, 27 May 2020 by REDESAILE (talk | contribs) (Created page with "{{otherlang2 en=Half-Life:_Alyx_Workshop_Tools/Level_Design/Shotgun }} {{HLATools page|leveldesign=1}} == Introduction == This tutorial will teach you how give the player the...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

{{otherlang2 en=Half-Life:_Alyx_Workshop_Tools/Level_Design/Shotgun }}

Introduction

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

Making it pickable

Create a test room. Insert a 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