Gothic 1 Classic

Gothic 1 Classic

84 ratings
zNoFriendlyFire - no damage on non-enemy NPCs
   
Award
Favorite
Favorited
Unfavorite
Type: Addon
Category: Enhancement
Tags: Union, Plugin
File Size
Posted
Updated
27.939 KB
9 Jul, 2022 @ 8:51am
4 Oct, 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 2 here
- Source code in GitHub[github.com]
Popular Discussions View All (2)
0
9 Jul, 2022 @ 9:56am
PINNED: Bug report
Gratt.5r2
0
9 Jul, 2022 @ 9:55am
PINNED: Questions
Gratt.5r2
2 Comments
YellouBee 24 Mar @ 9:21am 
Great mod. I was wondering though... Would it be possible to add a feature that stops you from targeting dead enemies while in combat? I don't remember if this is a issue with mouse and keyboard so much, but my biggest problem fighting groups in G1 with the controller is target soft lock sticking to enemies after I already killed them. I think G2 as soon as an enemy dies the softlock switches to the nearest target alive, but in G1 I keep getting stuck whacking the dead enemy on the ground.
Penny <3 8 Mar @ 4:12pm 
The pic for this mod is awesome XD