Gothic II: Gold Classic

Gothic II: Gold Classic

196 个评价
zNoFriendlyFire - no damage on non-enemy NPCs
2
   
奖励
收藏
已收藏
取消收藏
Type: Addon
Category: Enhancement
标签: Union, Plugin
文件大小
发表于
更新日期
27.939 KB
2022 年 7 月 9 日 上午 9:45
2022 年 10 月 4 日 上午 6:58
3 项改动说明 ( 查看 )

订阅以下载
zNoFriendlyFire - no damage on non-enemy NPCs

描述
Plugin depending on the situation disables focus and damage on friendly or neutral NPCs.
It prevents miss-damage. For example you can't hurt a farmer if you're fighting a bandit.

The plugin recommended to use with zGamePad.

For developers:
You can add the rule that always allows or denies focus:
Makes an NPC permanently invisible to combat focus (except when the player is their current opponent) func void AI_SetNeverFocusInstance(var C_Npc npc) func void AI_SetNeverFocusInstanceName(var string instanceName) Makes the NPC permanently visible to the combat focus func void AI_SetAlwaysFocusInstance(var C_Npc npc) func void AI_SetAlwaysFocusInstanceName(var string instanceName)

Usage: place .d file with this code to the Gothic\System\Autorun directory (allowed vdf/mod volume)
func event GameInit() { AI_SetAlwaysFocusInstanceName("VLK_574_Mud"); };

Links
- Version for Gothic 1 here
- Source code in GitHub[github.com]
热门讨论 查看全部(2)
5
2022 年 10 月 4 日 下午 3:51
置顶: Bug report
Gratt.5r2
1
1 月 9 日 下午 10:24
置顶: Questions
Gratt.5r2
1 条留言
DUCATISLO 2022 年 8 月 11 日 下午 1:27 
gg