Raised This Month: $ Target: $400
 0% 

[2 Problems] func_wall and velocity_by_aim


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Excalibur.007
Veteran Member
Join Date: Sep 2009
Location: Singapore
Old 03-03-2010 , 02:37   [2 Problems] func_wall and velocity_by_aim
Reply With Quote #1

1. func_wall
Is there any other thing than func_wall? I wanted a thing that check it for walls(Vertical). Examples: cs_mansion those concrete gray walls.

2. velocity_by_aim
How can I make it so that if the user move the mouse but still go the previous direction
If not possible, is there a way I can block mouse movement? Btw if I want to unbind mouse, what is the key? client_cmd(id, "unbind <what key>")

PHP Code:
static Float:aim_velocity]
velocity_by_aimplayer1200aim_velocity )
set_user_velocityplayeraim_velocity 

Last edited by Excalibur.007; 03-03-2010 at 02:57.
Excalibur.007 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-03-2010 , 05:56   Re: [2 Problems] func_wall and velocity_by_aim
Reply With Quote #2

- ( don't understand )
- velocity_by_aim() use pev_v_angle, to do what you need, you should use pev_angles.

pev( player, pev_angles, angles );

engfunc( EngFunc_MakeVectors, angles );
global_get( glb_v_forward, forwardDir );

aim_velocity [ 0 ] = forwardDir[ 0 ] * 1200;
aim_velocity [ 1 ] = forwardDir[ 1 ] * 1200;
aim_velocity [ 2 ] = forwardDir[ 2 ] * 1200;
__________________

Last edited by Arkshine; 03-03-2010 at 07:21.
Arkshine is offline
Old 03-03-2010, 06:44
Excalibur.007
This message has been deleted by Excalibur.007. Reason: SRY DOUBLE POST
Excalibur.007
Veteran Member
Join Date: Sep 2009
Location: Singapore
Old 03-03-2010 , 06:52   Re: [2 Problems] func_wall and velocity_by_aim
Reply With Quote #3

Error: Invalid expression, assumed zero

global_get( glb_v_forward, forward )??
Excalibur.007 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-03-2010 , 07:21   Re: [2 Problems] func_wall and velocity_by_aim
Reply With Quote #4

I've edited the code above.
__________________
Arkshine is offline
Excalibur.007
Veteran Member
Join Date: Sep 2009
Location: Singapore
Old 03-03-2010 , 17:25   Re: [2 Problems] func_wall and velocity_by_aim
Reply With Quote #5

Ok thanks btw, what's the different between pev_angles and pev_v_angle?
EDIT: I need to know it cause I rarely use FM in my plug-ins(Meaning I don't know a lot about FM.)
EDIT2: Velocity works but I still can move using the mouse(Changing direction)

Last edited by Excalibur.007; 03-03-2010 at 17:32.
Excalibur.007 is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 03-03-2010 , 17:28   Re: [2 Problems] func_wall and velocity_by_aim
Reply With Quote #6

Somewhat reliable pev research. Your pevs are at the bottom.

http://xpaw.crannk.de/pev_research.php
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
Excalibur.007
Veteran Member
Join Date: Sep 2009
Location: Singapore
Old 03-03-2010 , 17:36   Re: [2 Problems] func_wall and velocity_by_aim
Reply With Quote #7

ty

This is my current code
PHP Code:
enum _:Angle_t Float:PitchFloat:YawFloat:Roll }
enum _:Coord_t Float:xFloat:yFloat:}

new 
Float:viewAnglesAngle_t ]
new 
Float:aim_velocity]
new 
Float:forwardDirCoord_t ]
        
pevplayerpev_v_angleviewAngles )

engfuncEngFunc_MakeVectorsviewAngles )
global_getglb_v_forwardforwardDir )
        
aim_velocity] = forwardDir] * 1200
aim_velocity
] = forwardDir] * 1200
aim_velocity
] = forwardDir] * 1200
        
set_pev
playerpev_velocityaim_velocity 
Velocity works but not going the same direction. Meaning I wanted it to stay on the moving position even the mouse is moved.
EDIT: pev_angles also does the same thing as pev_v_angle

Last edited by Excalibur.007; 03-03-2010 at 17:44.
Excalibur.007 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 08:36.


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