C++/SPRX 1st Person...
 
Notifications
Clear all

C++/SPRX 1st Person Mod


KranK
Posts: 336
Topic starter
(@KranK)
Reputable RivalGamer
Joined: 9 years ago

Hey RG Babys
well to day i will drop this here for your use if you will ever need it

this 1st person mod made a long time ago in Rage ASM for dark horse menu
but today i bring you the new coded version of it into C++

[HIDE]
bool FirstPersonActive;
int FirstPersonCamera;

void FirstPerson()
{

if (!FirstPersonActive)
{
FirstPersonActive = true;
FirstPersonCamera = CAM::CREATE_CAM("DEFAULT_SCRIPTED_CAMERA", 1);
CAM::ATTACH_CAM_TO_PED_BONE(FirstPersonCamera, PLAYER::PLAYER_PED_ID(), 31086, 0.0f, 0.15000000596046f, 0.019999999552965, 1);
CAM::SET_CAM_ACTIVE(FirstPersonCamera, true);
CAM::RENDER_SCRIPT_CAMS(true, false, 3000, true, false);

}
else
{
if (CAM::DOES_CAM_EXIST(FirstPersonCamera))
{
FirstPersonActive = false;
CAM::SET_CAM_ACTIVE(FirstPersonCamera, false);
CAM::RENDER_SCRIPT_CAMS(false, false, 3000, true, false);
CAM::DESTROY_CAM(FirstPersonCamera, false);
}

}

}

//first Person Rotation
if (FirstPersonActive)
{
//Camera Correction
Vector3 Get_Cam_Roataion = CAM::GET_GAMEPLAY_CAM_ROT(2);
CAM::SET_CAM_ROT(FirstPersonCamera, Get_Cam_Roataion.x, Get_Cam_Roataion.y, Get_Cam_Roataion.z, 2);
ENTITYPLAYER_PED_ID(), Get_Cam_Roataion.x, Get_Cam_Roataion.y, Get_Cam_Roataion.z, 2, 1);
//CrossHair
int HairColorRed;
int HairColorGreen;
int HairColorBlue;
float HairXsize;
float HairYsize;
if (PEDPLAYER_PED_ID()))
{
HairColorRed = 255;
HairColorGreen = 255;
HairColorBlue = 255;
HairXsize = 0.050000000745058f;
HairYsize = 0.050000000745058f;
}
if (PEDPLAYER_PED_ID()))
{
//not draw if in Melee Combat
}
else
{
if (CONTROLS::IS_CONTROL_PRESSED(2, 198))
{
HairXsize = 0.050000000745058f;
HairYsize = 0.050000000745058f;
/*if (PLAYERPLAYER_ID()))
{*/
HairColorRed = 255;
HairColorGreen = 255;
HairColorBlue = 255;
/*}*/
if (PLAYERPLAYER_ID()))
{
HairColorRed = 255;
HairColorGreen = 0;
HairColorBlue = 0;
}
}
if (CONTROLS::IS_CONTROL_PRESSED(2, 199))
{
HairColorRed = 0;
HairColorGreen = 255;
HairColorBlue = 0;
HairXsize = 0.050000000745058f;
HairYsize = 0.050000000745058f;
}
}
DrawSprite("Darts", "Dart_Reticules_Zoomed", 0.50199997425079f, 0.5, HairXsize, HairYsize, 0.0f, HairColorRed, HairColorGreen, HairColorBlue, 100);
}
else
{
//nothing here xD
}
[/HIDE]

ENjoy

Reply
Name of the Video Game, and any other Tags
3 Replies
LEGACYY
Posts: 2350
(@legacyy)
Noble RivalGamer
Joined: 9 years ago

(y) KranK the Legend

Reply
Vexx
Posts: 609
 Vexx
(@Vexx)
Honorable RivalGamer
Joined: 9 years ago

Great Work GTA Master KranK keep it up bro. (y)

Reply
I Like Women
Posts: 1005
(@I Like Women)
Noble RivalGamer
Joined: 9 years ago

Oh hail KrankK, this niqqa never fails me.

Awesome release, bruh

Reply