Quote:
Originally Posted by switz213
Is this possible? How can I grab a player's entity?
GetEntPropFloat(ent, Prop_Send, "m_flPoseParameter", 0);
or even
GetEntPropFloat(ent, Prop_Send, "m_flPoseParameter[0]");
|
Top one should work. That should get you the body_pitch value of whatever you're checking if it's in TF2 anyway. If you need info on values and such, I've done a bit of general fucking around with m_flPoseParameters as part of some fun work on the old GMG "Pets" plugin so I could use scaled down TF2 player models. I've not messed with it in other games though; just TF2.
I'd change "ent" to "client" though if you're trying to grab a player's poseparameter values; GetEntPropFloat(client, Prop_Send, "m_flPoseParameter", 0)
I tossed some info up on PasteBin just now about m_flPoseParameters from the work I've done. I suggest you give it a quick once-over as I explain the values you can use;
http://pastebin.com/YMDDrN9n
Also, if you really want to get into animating and poseparameters and such, I was just reminded by Pelipoika of Arthurdead's "
UtilsExt" extension, which I highly recommend.
EDIT: Actually, I should've asked initially, but what game are you trying to use this in? I mean, the process *should* be somewhat the same no matter the game...I think.