in fact,i want to change the p_**.mdl model when player use the gun.but i dont want to use pev_weaponmodel, because i need to set pev_body(i have combined many p_**.mdl into one model),then i need the p_**.mdl 's index to set pev_body
Quote:
Originally Posted by Black Rose
I've checked into it. It's basically impossible.
The p_ model movement stops when the Z-rotation reaches a certain point even though the v_ model is still moving, that can be calculated of course. The problem with this is that 2 entitys are needed to separate the 2 different locations. I'm not very up to date on AMXx and I don't know if you can make one of them invisible for some players and the other one invisible for the others.
The player is constantly moving. This probably can not be calculated since it's only the model animation, not the actual angles of the crosshair that is moving. You will get offsets that looks like shit.
Someone has to find out all the lenghts of weapons. Possible but time consuming.
The calculations needed for a full server where people are spraying is a lot. The server could choke and players would suffer lag spikes if that happened. There's also a chance to hit the roof of maximum number of entities.
So, what exactly do you need and for what reason? Can we solve this in a different way?
|