All pastes #962063 Raw Edit

Unnamed

public text v1 · immutable
#962063 ·published 2008-03-29 13:28 UTC
rendered paste body
void Qw::aimAt(idVec3 &target ) {
	if  (gLocal->usercmds[gLocal->localClientNum].buttons.btn.attack == 1){ //crappy aim on key -.-
	idAngles ang = (target - gLocal->GetLocalPlayer()->firstPersonViewOrigin).ToAngles();

	ang -= gLocal->GetLocalPlayer()->viewAngles;
	//ang.Normalize180();

//	*q4h.q4->cl_mouse_x += ang.pitch;
//	*q4h.q4->cl_mouse_y += ang.yaw;
	
	*(float *)(0x893a040 + 4) += ang.pitch; //retail 0x893a040 uhh ??? 0x89636E0 ?? 0x89639e0 this one maybe ???
	*(float *)(0x893a040 + 8) += ang.yaw;
	}
	
	
	
}