This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

View position roll


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
wiwi249
Member
Join Date: Oct 2013
Old 05-11-2015 , 15:54   View position roll
Reply With Quote #1

Hello.
Another hard question. Is there any way to change the view angles roll? I tried doing it but nothing happens, neither when I try to rotate the whole player model. Any ideas how? Maybe is there a way of doing it using orpheu?

Additionally, i'm also looking at any way I can change the weapon model's pitch. I just want to make it still in one place when I'm looking up or down, I tried SVC_CROSSHAIRANGLE but that didn't do the trick enough. I'm looking at the cs.so decompiled with IDA to find some possible function to hook with orpheu, but I don't know what are they all about. Any resource would be very appreciated ;)

Sincerely,
Vic
wiwi249 is offline
hzqst
Senior Member
Join Date: Jul 2008
Old 05-11-2015 , 20:43   Re: View position roll
Reply With Quote #2

try pev->v_angle[2]?
hzqst is offline
wiwi249
Member
Join Date: Oct 2013
Old 05-12-2015 , 03:45   Re: View position roll
Reply With Quote #3

This is what i did:
PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <fakemeta>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_clcmd("say /test1""Test1")
    
register_clcmd("say /test2""Test2")
    
register_clcmd("say /test3""Test3")
}

public 
Test1(id) {
    if(!
is_user_alive(id))
        return 
PLUGIN_HANDLED;
        
    new 
Float:Angles[3];
    
pev(idpev_v_angleAngles);
    
Angles[2] = 45.0;
    
set_pev(idpev_v_angleAngles);

    return 
PLUGIN_HANDLED;
}

public 
Test2(id) {
    if(!
is_user_alive(id))
        return 
PLUGIN_HANDLED;
        
    new 
Float:Angles[3];
    
pev(idpev_anglesAngles);
    
Angles[0] = 45.0;
    
set_pev(idpev_anglesAngles);

    return 
PLUGIN_HANDLED;
}

public 
Test3(id) {
    if(!
is_user_alive(id))
        return 
PLUGIN_HANDLED;
        
    new 
Float:Angles[3];
    
pev(idpev_anglesAngles);
    
Angles[2] = 45.0;
    
set_pev(idpev_anglesAngles);

    return 
PLUGIN_HANDLED;

It didn't work :/
wiwi249 is offline
wiwi249
Member
Join Date: Oct 2013
Old 05-12-2015 , 20:08   Re: View position roll
Reply With Quote #4

Oh, stupid me.
I added set_pev(id, pev_fixangle, 1) and now the player models rotation works fine. Also the setting of the pev_v_angle works good now but only the pitch and yaw, no roll in it, but I think I can work with it.

How about my second question? Does anyone have any idea? :/
wiwi249 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 14:39.


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