Page 1 of 1

Property gun_offset for character prototypes

Posted: Mon Apr 10, 2023 9:40 am
by Pi-C
My mod miniMAXIme allows players to increase or reduce the size of their character by scaling the prototypes graphics etc. When a very small scale was used, the muzzle flash from firing the weapon could be upwards of the position of the character's head, and if a very big scale was used, it could be somewhere near their knees.

The obvious solution was to scale the position of the muzzle flash as well. However, the position where shooting particles will be shown is not a property of the character, but the gun. So I've also scaled that position on all guns I deem to be intended for use by characters. This actually seems to work for the default character.

Now, my mod also allows players to switch between (custom) characters on the fly. These characters may be taller or smaller than the default character, so the muzzle flash from the gun may still be at the wrong position even after it has been scaled.

I'd like to have a property in the character definition that would define the offset of the custom character's gun in relation where the default character has its weapon. This way, mod authors could make sure that their new characters don't look ridiculous while shooting.