Need some help with vectors
Hi, i actually need to change at a precise moment a player direction's vector to his opposite vector (v to -v). In this way, he can't go on certain map areas.
Can you help me, please? |
Re: Need some help with vectors
PHP Code:
|
Re: Need some help with vectors
You have to retrieve v_angle and set angles.
And set fixangle to 1 so it takes effect. PHP Code:
|
Re: Need some help with vectors
Ok thank you, but player's movement direction is not changed.
|
Re: Need some help with vectors
If you want to block certain areas then check this: http://forums.alliedmods.net/showthr...52#post1448052
|
Re: Need some help with vectors
Thank you but i think that your plugin is a bit complex: i only want to 'push' a player who is touching an entity.
|
Re: Need some help with vectors
Instead of just changing the angle of the player, why not expel him in the opposite direction of the entity ( pev_velocity ) ?
|
Re: Need some help with vectors
Try with angle[x]
|
| All times are GMT -4. The time now is 11:55. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.