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.

手枪(能量枪)

From Valve Developer Community
Jump to: navigation, search


English (en)русский (ru)中文 (zh)
... Icon-Important.png

介绍

本篇教程将教您如何给玩家手枪或能量枪

过程

创建一个测试用房间。放入实体 item_hlvr_weapon_energygun。 你可以通过“Spawn ammo”来设置初始弹药。

HLA SDK Energy Gun Img1.png

你可以放入一个 item_hlvr_clip_energygunitem_hlvr_clip_energygun 点实体来生成弹药。

让它生成

插入一个 info_hlvr_equip_player 实体。 并设置以下属性:

Key Value
Equip on Map Start
Pistol

你可以用以下属性设置初始弹药:

Key Value
Loaded Pistol Ammo 10

你可以用以下属性设置背包的弹药量:

Key Value
Pistol Ammo 10