I'd rather suggest that hitPlayer() receives an optional parameter for a calculation function reference.
In GMPA there are these SetTimer functions, where you specify the name of a timer function using a string parameter. This principle could also be applied here.
If the optional parameter is specified the selfmade calculation function will be called. If it isn't specified it falls back to Gothic's original calculation or doesn't calculate anything at all.
In GMPA there are these SetTimer functions, where you specify the name of a timer function using a string parameter. This principle could also be applied here.
If the optional parameter is specified the selfmade calculation function will be called. If it isn't specified it falls back to Gothic's original calculation or doesn't calculate anything at all.