Gothic II: Gold Classic

Gothic II: Gold Classic

176 ratings
zNoFriendlyFire - no damage on non-enemy NPCs
2
   
Award
Favorite
Favorited
Unfavorite
Type: Addon
Category: Enhancement
Tags: Union, Plugin
File Size
Posted
Updated
27.939 KB
Jul 9, 2022 @ 9:45am
Oct 4, 2022 @ 6:58am
3 Change Notes ( view )

Subscribe to download
zNoFriendlyFire - no damage on non-enemy NPCs

Description
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]
Popular Discussions View All (2)
5
Oct 4, 2022 @ 3:51pm
PINNED: Bug report
Gratt.5r2
1
Jan 9 @ 10:24pm
PINNED: Questions
Gratt.5r2
1 Comments
DUCATISLO Aug 11, 2022 @ 1:27pm 
gg