Changing the weapon camera


Hi, I’m remaking the weapon models for q3a as a mod (based 90% on the original q3a guns - really just a high Poly model remake with better textures etc.)
However my problem is this; how would i go about changing the camera location slightly so i could get a better view of the length of the weapons? To add a more modern fps feel and to view my creations better.
I know it has no real effect on game play - its just an aesthetics/ immersion focal point.


The first person weapon position is controlled by tag_weapon in models/weapons2/shotgun/shotgun_hand.md3 or other models/weapons2/x/x_hand.md3 for a specific weapons.

For development you can set cg_gunX, cg_gunY, and cg_gunZ cvars to offset the position. They are cheat protected so you need to load the map using devmap command in the console.

Also please don’t edit posts to completely change the title/content.


I understand the tags in the models that the engine links together during game play, ie player model tag weapon>weapon hand tags> tag weapon flash etc. That’s all well and good, but if I’m to change the tag weapon hand positions to get a better perspective - other players will view all player models running around with a gun hovering out and away from their hands, and id rather not have to resort to that.
Are the cvars (i presume to be command or code variable?) for just changing where the hud view places the model, ie the camera view changes? But still leaves the hands gripping the weapon to be seen by others, essentially keeping the weapon hand tags untouched?
And my apologies about the post, no one really replied to it, and the whole notion of animated weapons isn’t on my agenda anymore so i thought rather than flooding the list of topics just change it.


_hand.md3 models and cg_gunX/Y/Z console variables only change the first person HUD view. They have no affect on third person / other player models running around.

tag_weapon in the _hand.md3 models set the weapon position for the first person HUD view. tag_weapon in the player model’s upper.md3 set the third person position.


Ok, so with that in mind one could add some lines to make it so that in first person view, a higher poly model could be used, and then an inworld/3rd person view would show a separate lower poly model to allow a faster game play with higher graphical allowance?


Yes. It can be done by modifying the source code for the cgame qvm.