Giter Site home page Giter Site logo

franisz / zscalefightrange Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 1.6 MB

Union Plugin for Gothic Game

Home Page: https://steamcommunity.com/sharedfiles/filedetails/?id=2974195268

D 0.04% C++ 99.95% C 0.01%
gothic gothic1 gothic2 modding-gothic

zscalefightrange's Introduction

zScaleFightRange

This is a plugin that fixes fight range for NPCs that have scaled model. It's made in Union for Gothic I and II.

Features

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 3 options (all enabled by default) that can be changed in gothic.ini or ingame menu:

  • ScaleSmallerNpcs - enables scalling of NPCs with scale smaller than 1
  • ScaleLargerNpcs - enables scalling of NPCs with scale larger than 1
  • ScalePlayer - enables scalling of player

zscalefightrange's People

Contributors

franisz avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.