Results 1 to 2 of 2

Thread: model angles relative to ground

  1. #1
    Private First Class RobsoN's Avatar
    Join Date
    Jan 2013
    Location
    /home/cod2/
    Posts
    230
    Thanks
    119
    Thanked 95 Times in 64 Posts

    model angles relative to ground

    Hi, as in title, I want to give model angles relactive to ground. How to do that?
    Click image for larger version. 

Name:	x.jpg 
Views:	30 
Size:	30.2 KB 
ID:	527

    Tried with that code, but angles is same all time:
    PHP Code:
    while(true)
        {
            
    vector AnglesToForwardself.angles );
            
    vector maps\mp\_utility::vectorScale(vector54);
            
    vector self.origin vector;
            
    trace bullettrace(vector + (0,0,100) ,vector + (0,0,-100000000), falsemodel);
            
            
    model.origin trace["position"];
            
    model.angles vectortoangles(trace["normal"]);
            
            
    wait .1;
        } 
    Regards,
    RobsoN
    "Don't worry if your code doesn't work correctly - if everything worked, you would not work" ~Mosher's right

  2. #2
    Private
    Join Date
    Jan 2013
    Location
    Hungary
    Posts
    113
    Thanks
    10
    Thanked 74 Times in 45 Posts

  3. The Following User Says Thank You to randall For This Useful Post:

    kung foo man (28th October 2013)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •