安装 Steam
登录
|
语言
繁體中文(繁体中文)
日本語(日语)
한국어(韩语)
ไทย(泰语)
български(保加利亚语)
Čeština(捷克语)
Dansk(丹麦语)
Deutsch(德语)
English(英语)
Español-España(西班牙语 - 西班牙)
Español - Latinoamérica(西班牙语 - 拉丁美洲)
Ελληνικά(希腊语)
Français(法语)
Italiano(意大利语)
Bahasa Indonesia(印度尼西亚语)
Magyar(匈牙利语)
Nederlands(荷兰语)
Norsk(挪威语)
Polski(波兰语)
Português(葡萄牙语 - 葡萄牙)
Português-Brasil(葡萄牙语 - 巴西)
Română(罗马尼亚语)
Русский(俄语)
Suomi(芬兰语)
Svenska(瑞典语)
Türkçe(土耳其语)
Tiếng Việt(越南语)
Українська(乌克兰语)
报告翻译问题








Thanks for letting me know about this, I think I know why.
EDIT: This has been fixed
Edit: I'm using the x86-64 branch
When I spawn an NPC by using point_template and not the spawn menu, those NPCs won't get into beds when they die either.
When I spawn an NPC by using the developer console instead of the spawn menu, those NPCs won't get into beds when they die either.
Basically, anything that wasn't spawned by using the spawn menu won't go into a bed when they die.
Edit: Grammar.
Update: I tested this on the default branch of GMod and the bug persisted. Also, headcrabs that come off of zombies won't get into beds when they die.
Update: I don't know if this is intentional or not but the turrets won't go into beds when they die. Even if they were spawned by using the spawn menu. I can see this being a feature for the friendly turrets but I just want to make sure this isn't an actual big or not.
Granted I don't really know much about lua so i haven't checked the code but if i had to guess, does it put npcs into a list of eligibility for deathbed transformation upon spawning rather than it just being an event that triggers upon death? I'm probably wrong but that theory would explain why it's dependent on the spawn method (probably doesn't add them to said list if not spawned through spawn menu since that's what it's tracking)
Or maybe I'm wrong and it's something else entirely
[Deathbed] lua/autorun/sh_deathbed.lua:204: attempt to index global 'npc' (a nil value)
1. v - lua/autorun/sh_deathbed.lua:204
2. unknown - lua/includes/modules/hook.lua:102
3. Create - [C]:-1
4. GetGroupOBB - lua/sv_npcd_spawn.lua:191
5. TargetSpawnSquad - lua/sv_npcd_spawn.lua:2448
6. TargetSpawnPreset - lua/sv_npcd_spawn.lua:2478
7. func - lua/sv_npcd.lua:632
8. unknown - lua/includes/extensions/net.lua:34 (x4)
[Deathbed] lua/autorun/sh_deathbed.lua:204: attempt to index global 'npc' (a nil value)
1. v - lua/autorun/sh_deathbed.lua:204
2. unknown - lua/includes/modules/hook.lua:102
3. Create - [C]:-1
4. SpawnNPC - lua/sv_npcd_spawn.lua:411
5. SpawnSquad - lua/sv_npcd_spawn.lua:1555
6. unknown - lua/sv_npcd.lua:769 (x4)
[Deathbed] lua/autorun/sh_deathbed.lua:204: attempt to index global 'npc' (a nil value)
1. v - lua/autorun/sh_deathbed.lua:204
2. unknown - lua/includes/modules/hook.lua:102
3. Create - [C]:-1
4. InternalSpawnNPC - gamemodes/sandbox/gamemode/commands.lua:435
5. Spawn_NPC - gamemodes/sandbox/gamemode/commands.lua:609
6. unknown - gamemodes/sandbox/gamemode/commands.lua:641
7. unknown - lua/includes/modules/concommand.lua:54