Raised This Month: $ Target: $400
 0% 

get the crosshair position


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 08-14-2009 , 12:06   get the crosshair position
Reply With Quote #1

tittle?!
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
minimiller
Veteran Member
Join Date: Aug 2007
Location: United Kingdom
Old 08-14-2009 , 12:10   Re: get the crosshair position
Reply With Quote #2

the title** dosent explain enough
__________________
minimiller is offline
Send a message via MSN to minimiller
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 08-14-2009 , 12:11   Re: get the crosshair position
Reply With Quote #3

-1.0, -1.0 ?!
__________________
xPaw is offline
Jon
Veteran Member
Join Date: Dec 2007
Old 08-14-2009 , 12:12   Re: get the crosshair position
Reply With Quote #4

get_user_origin( id, vOrigin, 3 ) ?

Bad description.
Jon is offline
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 08-14-2009 , 12:28   Re: get the crosshair position
Reply With Quote #5

i want to block +lookup or +lookdown. but player can use it in the cases.

example the origin of crosshair when its in the middle = 0

the topmost = 100
& the lower position = -100

i want to block that player can move crosshair more then +50 & -50
so by -50 is stop. & player cant move the crosshair lower.
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 08-14-2009 , 12:56   Re: get the crosshair position
Reply With Quote #6

pev_v_angle
__________________
xPaw is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 08-14-2009 , 16:39   Re: get the crosshair position
Reply With Quote #7

I don't think is other way than PlayerPreThink, get pev_v_angles, make some verifications if vAngle[1] is >= -50 set it to -50 and same for 50.
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 08-14-2009 , 17:07   Re: get the crosshair position
Reply With Quote #8

PHP Code:
if( is_user_alive(id)) { // is_user_alive
        
static Float:vAngles];
        
pevidpev_v_anglevAngles );
        
        if( 
vAngles] > 10.0 ) {
            
vAngles] = 10.0;
            
            
set_pevidpev_anglesvAngles );
            
set_pevidpev_fixangle);
        }
        else if( 
vAngles] < 4.0 ) {
            
vAngles] = 4.0;
            
            
set_pevidpev_anglesvAngles );
            
set_pevidpev_fixangle);
        }
    } 
on pc its ok but on the server screen shakes

i tried so too ::

PHP Code:
if( is_user_alive(id)) { // is_user_alive
        
static Float:vAngles];
        
pevidpev_v_anglevAngles );
        
        if( 
vAngles] > 4.0 ) {
            
vAngles] = 4.0;
            
            
set_pevidpev_anglesvAngles );
            
set_pevidpev_fixangle);
        }
        else if( 
vAngles] < 4.0 ) {
            
vAngles] = 4.0;
            
            
set_pevidpev_anglesvAngles );
            
set_pevidpev_fixangle);
        }
    } 
& its in my PreThink
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 08-15-2009 , 05:01   Re: get the crosshair position
Reply With Quote #9

Atleast you could say what i gave you this code o_0.
__________________
xPaw is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 08-15-2009 , 05:22   Re: get the crosshair position
Reply With Quote #10

Yea, screen will shake a bit as long as fakemeta forward is slower than engine so you can't set it really fast before engine move the aim.
__________________
Still...lovin' . Connor noob! Hello
Alka 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 15:13.


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