[2 Problems] func_wall and velocity_by_aim
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:
|
Re: [2 Problems] func_wall and velocity_by_aim
- ( 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; |
Re: [2 Problems] func_wall and velocity_by_aim
Error: Invalid expression, assumed zero
global_get( glb_v_forward, forward )?? |
Re: [2 Problems] func_wall and velocity_by_aim
I've edited the code above.
|
Re: [2 Problems] func_wall and velocity_by_aim
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) |
Re: [2 Problems] func_wall and velocity_by_aim
|
Re: [2 Problems] func_wall and velocity_by_aim
:o ty
This is my current code PHP Code:
EDIT: pev_angles also does the same thing as pev_v_angle |
| All times are GMT -4. The time now is 08:36. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.