Raised This Month: $51 Target: $400
 12% 

How to adjust player model's angles?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
redivcram
Veteran Member
Join Date: Jul 2014
Location: Serbia
Old 02-02-2021 , 19:05   How to adjust player model's angles?
Reply With Quote #1

EDIT: Edited the title to avoid confusion between player character model and p_wpn.mdl models.



So I've got a generic entity whose model has been set to a player model eg. sas.
How do I adjust the model's horizontal and vertical angles? If I were to modify the ent's angles and/or viewangles, then the model would remain in a statue state. It would rotate but the bodyparts would not on their own like on a regular player.

PHP Code:
public create_ent() {

        new 
ent create_entity("info_target");
        
// Set model, origin, yada yada...


I can set the model animation sequence, but how do I change its actual pitch and yaw?

Last edited by redivcram; 02-03-2021 at 11:46.
redivcram is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 02-03-2021 , 13:31   Re: How to adjust player model's angles?
Reply With Quote #2

I think EV_VEC_v_angle will do the trick.
__________________








CrazY. is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:32.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode