All pastes #271928 Raw Edit

Someone

public text v1 · immutable
·published 2006-12-08 15:48 UTC
rendered paste body
public GetPositionBeforePlayer( Float:playerPosX, Float:playerPosY, Float:playerAngle, &Float:x, &Float:y )
{
	new Float:value = floatadd( floatmul( playerAngle, floatdiv( PI, 180 ) ), floatmul( 0.5, PI ) );

	x = 7.0 * floatcos( value ) + playerPosX;
	y = 7.0 * floatsin( value ) + playerPosY;	
}