Gothic 1 Classic

Gothic 1 Classic

评价数不足
zScaleFightRange
   
奖励
收藏
已收藏
取消收藏
Type: Addon
Category: Utility
文件大小
发表于
171.639 KB
2023 年 5 月 10 日 下午 1:36
1 项改动说明 ( 查看 )

订阅以下载
zScaleFightRange

描述
This is a plugin that fixes fight range for NPCs that have scaled model.

In vanilla game, NPCs with changed model scale via Mdl_SetModelScale function for example have changed model and hitbox but not the fight range, that is defined in guilds table. The plugin adjusts the fight range via hooks, so it's safe to add or remove at any point in the game. The range of NPCs is multiplied by the z scale, the length of the model.

A Giant bug monster with scale set to Mdl_SetModelScale(self,0.4,0.4,0.35):
  • In vanilla would have whopping: 240 range (120 base range + 120 fist range)
  • With this plugin, it would be: 84 range

This work on larger NPCs as well, so NPCs with larger scale, will no longer have to walk into you in order to hit you, their range is multiplied the same way.

This plugin does not scale the range of an equipped weapon, so for example range of goblin itself will be scaled but the range of his weapon not.

Plugin has some settings that can be changed via ingame menu.

Version for Gothic 2
Source code and detailed description on GitHub[github.com]