PDA

View Full Version : Ham_Player_GetGunPosition crashes


Cheap_Suit
04-05-2008, 19:49
Im a doing it wrong?

register_clcmd("say /test", "test")

public test(id)
{
new Float:origin[3]
ExecuteHam(Ham_Player_GetGunPosition, id, origin)
server_print("%f %f %f", origin[0], origin[1], origin[2])
}


/**
* Description: Returns a vector that tells the gun position.
* Forward params: function(this)
* Return type: Vector, byreffed in execute.
* Execute params: ExecuteHam(Ham_Player_GetGunPosition, this, Float:output[3]);
*/
Ham_Player_GetGunPosition


And in EngFunc_GetBonePosition, would like a description on each bone number.

v3x
04-06-2008, 00:39
For "you know whats and giggles" try using ExecuteHamB().

Alka
04-06-2008, 02:52
To get a description for each bone of an model, open the model with "Jed's HL Model Viewer" and go Options->Dump model info.

Arkshine
04-06-2008, 04:08
@Cheap_Suit

I had already tried and it crashes for me, too. I don't know why. So, I had used pev_origin + pev_viewoffs which does the same thing.

ConnorMcLeod
04-06-2008, 04:37
Have you tried to replace player id with weapon entity id ?

Arkshine
04-06-2008, 05:20
Sure. To be sure, I've re-tested and it still crashes.