Zh/Health: Difference between revisions

From Valve Developer Community
< Zh
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{LanguageBar|title =  生命值}}
{{LanguageBar|title =  生命值}}
{{Abstract Mapping}}
{{Abstract Mapping:zh-cn}}
<br>
<br>
__NOTOC__
__NOTOC__
Line 13: Line 13:


==生命值关卡设置==
==生命值关卡设置==
* {{tf2}} [[TF2/Resupply Areas|《军团要塞2》中的补给区]]
* {{tf2}} {{L|TF2/Resupply Areas|《军团要塞2》中的补给区}}


== 生命值编码 ==
== 生命值编码 ==
* [[Adding class based health differences|添加职业差异化生命值系统]]
* {{L|Adding class based health differences|添加职业差异化生命值系统}}
* [[Regenerating Health|恢复生命值]]
* {{L|Regenerating Health|恢复生命值}}
* [[VGUI 生命值栏|VGUI 生命值栏]]
* {{L|VGUI 生命值栏|VGUI 生命值栏}}
* [[VGUI Image Progress Bar|VGUI图像状态栏]]
* {{L|VGUI Image Progress Bar|VGUI图像状态栏}}


== {{src}} 起源中关于生命值的实体==
== {{src}} 起源中关于生命值的实体==
=== {{hl2series|4}} ===
=== {{hl2series|4}} ===
* {{ent|func_recharge}}
* {{L|func_recharge}}
* {{ent|func_healthcharger}}
* {{L|func_healthcharger}}
* {{ent|item_battery}}
* {{L|item_battery}}
* {{ent|item_healthcharger}}
* {{L|item_healthcharger}}
* {{ent|item_healthkit}}
* {{L|item_healthkit}}
* {{ent|item_healthvial}}
* {{L|item_healthvial}}
* {{ent|item_item_crate}}
* {{L|item_item_crate}}
* {{ent|item_suitcharger}}
* {{L|item_suitcharger}}
* {{ent|npc_antlion_grub}}
* {{L|npc_antlion_grub}}


=== {{hls|4}} 与 {{hldms|4}} ===
=== {{hls|4}} 与 {{hldms|4}} ===
* <code>[[func healthcharger (Half-Life: Source)|func_healthcharger]]</code>
* <code>{{L|func healthcharger (Half-Life: Source)|func_healthcharger}}</code>
* <code>[[func recharge (Half-Life: Source)|func_recharge]]</code>
* <code>{{L|func recharge (Half-Life: Source)|func_recharge}}</code>
* <code>[[item battery (Half-Life: Source)|item_battery]]</code>
* <code>{{L|item battery (Half-Life: Source)|item_battery}}</code>
* <code>[[item healthkit (Half-Life: Source)|item_healthkit]]</code>
* <code>{{L|item healthkit (Half-Life: Source)|item_healthkit}}</code>


=== {{tf2|4}} ===
=== {{tf2|4}} ===
* {{ent|func_regenerate}}
* {{L|func_regenerate}}
* {{ent|item_healthkit_full}}
* {{L|item_healthkit_full}}
* {{ent|item_healthkit_medium}}
* {{L|item_healthkit_medium}}
* {{ent|item_healthkit_small}}
* {{L|item_healthkit_small}}
* {{ent|obj_dispenser}}
* {{L|obj_dispenser}}


=== {{l4dseries|4}} ===
=== {{l4dseries|4}} ===
* {{ent|prop_health_cabinet}}
* {{L|prop_health_cabinet}}
* {{ent|weapon_first_aid_kit_spawn}}
* {{L|weapon_first_aid_kit_spawn}}
* {{ent|weapon_defibrillator_spawn}}
* {{L|weapon_defibrillator_spawn}}
* {{ent|weapon_pain_pills_spawn}}
* {{L|weapon_pain_pills_spawn}}
* {{ent|weapon_adrenaline_spawn}}
* {{L|weapon_adrenaline_spawn}}


=== {{Csgo|4}} ===
=== {{Csgo|4}} ===
* {{ent|weapon_healthshot}}
* {{L|weapon_healthshot}}


=== {{as|4}} ===
=== {{as|4}} ===
* {{ent|asw_pickup_medkit}}
* {{L|asw_pickup_medkit}}


=== {{sineps|4}} ===
=== {{sineps|4}} ===
* {{ent|item_antigen_dispenser}}
* {{L|item_antigen_dispenser}}
* {{ent|item_healthvial}}
* {{L|item_healthvial}}
* {{ent|item_megahealth}}
* {{L|item_megahealth}}
* {{ent|prop_antigen_canister}}
* {{L|prop_antigen_canister}}
* {{ent|prop_antigen_explosive_barrel}}
* {{L|prop_antigen_explosive_barrel}}


=== {{Ship|4}} ===
=== {{Ship|4}} ===
* {{ent|ship_item_spawner}}
* {{L|ship_item_spawner}}


=== {{dmmm|4}} ===
=== {{dmmm|4}} ===
* {{ent|item_food_banana_regime}}
* {{L|item_food_banana_regime}}
* {{ent|item_food_banana01}}
* {{L|item_food_banana01}}
* {{ent|item_food_banana02}}
* {{L|item_food_banana02}}
* {{ent|item_food_banana03}}
* {{L|item_food_banana03}}
* {{ent|item_food_banana04}}
* {{L|item_food_banana04}}
* {{ent|item_food_bread01_cooked}}
* {{L|item_food_bread01_cooked}}
* {{ent|item_food_bread01_row}}
* {{L|item_food_bread01_row}}
* {{ent|item_food_chicken_roasted}}
* {{L|item_food_chicken_roasted}}
* {{ent|item_food_fish_hanged}}
* {{L|item_food_fish_hanged}}
* {{ent|item_food_fibs_cooked}}
* {{L|item_food_fibs_cooked}}
* {{ent|item_food_fibs_row}}
* {{L|item_food_fibs_row}}
* {{ent|item_food_fish01}}
* {{L|item_food_fish01}}
* {{ent|item_food_fish02}}
* {{L|item_food_fish02}}
* {{ent|item_food_fish03}}
* {{L|item_food_fish03}}
* {{ent|item_food_food_ratio02}}
* {{L|item_food_food_ratio02}}
* {{ent|item_food_garlic}}
* {{L|item_food_garlic}}
* {{ent|item_food_ham}}
* {{L|item_food_ham}}
* {{ent|item_food_leek01}}
* {{L|item_food_leek01}}
* {{ent|item_food_magic_toad}}
* {{L|item_food_magic_toad}}
* {{ent|item_food_mushroom}}
* {{L|item_food_mushroom}}
* {{ent|item_food_mushroom_verymedium}}
* {{L|item_food_mushroom_verymedium}}
* {{ent|item_food_pie}}
* {{L|item_food_pie}}
* {{ent|item_food_red_apple}}
* {{L|item_food_red_apple}}
* {{ent|item_potion_full_life}}
* {{L|item_potion_full_life}}
* {{ent|item_potion_life}}
* {{L|item_potion_life}}
* {{ent|weapon_arxringregeneration}}
* {{L|weapon_arxringregeneration}}
* {{ent|weapon_arxringsecondchance}}
* {{L|weapon_arxringsecondchance}}
* {{ent|weapon_mm_helmet_health}}
* {{L|weapon_mm_helmet_health}}


=== {{vtmb|4}} ===
=== {{vtmb|4}} ===
* {{ent|item_g_bloodpack}}
* {{L|item_g_bloodpack}}
* {{ent|item_g_bluebloodpack}}
* {{L|item_g_bluebloodpack}}
* {{ent|item_g_eldervitaepack}}
* {{L|item_g_eldervitaepack}}
* {{ent|item_p_occult_heal_rate}}
* {{L|item_p_occult_heal_rate}}
* {{ent|item_p_occult_regen}}
* {{L|item_p_occult_regen}}


== {{goldsrc}} GoldSrc health entities ==
== {{goldsrc}} GoldSrc health entities ==
=== {{hl|4}}, {{hlop4|4}}, {{hlbs|4}} ===
=== {{hl|4}}, {{hlop4|4}}, {{hlbs|4}} ===
* {{ent|func_healthcharger|engine=goldsrc}}
* {{L|func_healthcharger|engine=goldsrc}}
* {{ent|func_recharge|engine=goldsrc}}
* {{L|func_recharge|engine=goldsrc}}
* {{ent|item_battery|engine=goldsrc}}
* {{L|item_battery|engine=goldsrc}}
* {{ent|item_healthkit|engine=goldsrc}}
* {{L|item_healthkit|engine=goldsrc}}
* {{ent|func_door|engine=goldsrc}}/{{ent|func_door_rotating|engine=goldsrc}} ({{mono|healthvalue}} KV)
* {{L|func_door|engine=goldsrc}}/{{ent|func_door_rotating|engine=goldsrc}} ({{mono|healthvalue}} KV)


=== {{tfc|4}} ===
=== {{tfc|4}} ===
* {{ent|func_healthcharger|engine=goldsrc}}
* {{L|func_healthcharger|engine=goldsrc}}
* {{ent|item_healthkit|engine=goldsrc}}
* {{L|item_healthkit|engine=goldsrc}}


{{ACategory|Hubs}}
{{ACategory|Hubs}}
{{ACategory|Abstract Mapping}}
{{ACategory|Abstract Mapping}}

Latest revision as of 08:31, 24 June 2025

English (en)中文 (zh)Translate (Translate)
概括性的地图制作系列 讨论你的想法——帮助我们写你需要的文章和想法

弹药 | 生物 | 蚁狮 | 光束和激光 | 线缆与绳索 | 动态的天空与云雾 | 色彩理论 | 战斗 | 联合军 | 压缩(起源 1) | | 尘土、雾、烟 | 升降机 | 关卡转换 | 环境光效、太阳、天气、室外 | 爆炸 | 火焰 | 植被 | 玻璃和窗户 | 猎头蟹 | 生命值 | 梯子 | 光效 | 优化 | 物理 | 视网膜扫描仪 | 声效和音乐 | 特效 | 地形 | 火车 | 炮塔 | | 武器 | 僵尸


生命值(又称生命点数,英文缩写"HP"或偶称"Hit Points")是电子游戏中表征角色生理状态的数值体系。在多数基于 起源引擎 的游戏中,角色生成时将被赋予特定数值的生命值,该数值通过 HUD 实时显示。角色承受伤害时将扣除相应生命值,当HP归零时角色死亡。大多数游戏提供可恢复生命值的增益物品。

Note.png注意:当通过 addoutput "health [number]" 指令修改玩家或NPC的生命值时,其生命值不会实时更新。生命值变更仅在实体承受伤害或获得治疗时生效。若将生命值设置为0或负数,实体虽不会立即死亡,但会处于濒死状态——承受任何伤害都会随即死亡。
绝大多数NPC与玩家实体都支持通过 SetHealth 输入项正确设置生命值,该输入将严格遵循实体的 max_health 键值限制。

在部分游戏,例如在 传送门 传送门 中,采用了一种名为动态生命恢复的替代机制:当玩家处于非战斗状态时,生命值将快速自动恢复。该模式下,生命值通常不会在屏幕上显示数值。

在多数多人在线游戏中,所有角色初始生命值相同;而在职业分工制游戏,例如在 军团要塞2 军团要塞2 中,不同职业常采用差异化初始生命值配置。

以下是与生命值相关的文章列表:

生命值关卡设置

生命值编码

起源 起源中关于生命值的实体

Half-Life 2 series Half-Life 2 series

半衰期:起源 半衰期:起源半衰期死亡竞赛:起源 半衰期死亡竞赛:起源

军团要塞2 军团要塞2

求生之路系列求生之路系列 求生之路系列

反恐精英:全球攻势 反恐精英:全球攻势

异形丛生 异形丛生

SiN Episodes SiN Episodes

The Ship: Murder Party The Ship: Murder Party

Dark Messiah of Might and Magic Dark Messiah of Might and Magic

Vampire: The Masquerade – Bloodlines Vampire: The Masquerade – Bloodlines

金源 GoldSrc health entities

半衰期 半衰期, 半衰期:争锋相对 半衰期:争锋相对, 半衰期:蓝色行动 半衰期:蓝色行动

军团要塞 经典 军团要塞 经典