ALERT!
Click here to register with a few steps and explore all our cool stuff we have to offer!
Home
Upgrade
Credits
Help
Search
Awards
Achievements
 2704

Teleport Camera

by XBLxPhantom - 05-04-2019 - 03:12 PM
#11
(05-06-2019 - 11:24 PM)BModzMasterTM Wrote: how it lloks bro? some video...?

Sadly i have no videos showing how it looks. Throw it in a source & test it to see if you like it.
Reply
#12
(05-04-2019 - 03:12 PM)XBLxPhantom Wrote: Saw another post where they just leaked AFC's cam tele. (It's not bad, but it's quite a lot of code for something that can be so simple) So, here is mine.
Code:
void Tele_Cam(float x, float y, float z) {
Cam_Zoom = true;
if (!CAM::DOES_CAM_EXIST(TeleportCamera)) {
TeleportCamera = CAM::CREATE_CAM("DEFAULT_SCRIPTED_CAMERA", 1);
if (SkyteleCam) {
CAM::SET_CAM_COORD(TeleportCamera, x + 25.0f, y - 25.0f, z + 190.0f);
}
else {
CAM::SET_CAM_COORD(TeleportCamera, x + 7.0f, y, z + 3.3f);
}
CAM::POINT_CAM_AT_COORD(TeleportCamera, x, y, z);
STREAMING::_SET_FOCUS_AREA(x, y, z, 0.0f, 0.0f, 0.0f);
CAM::SET_CAM_ACTIVE(TeleportCamera, true);
CAM::RENDER_SCRIPT_CAMS(1, 1, 4000, 1, 0);
}
}
void ADD_TELE(char *option, int PedHandle, float x, float y, float z, char *info = NULL) {
ADD_OPTION(option, info);
if (CurrentOption == OptionCount) {
if (OptionPress) {
if (TeleportCamerabool) {
GRAPHICS::START_SCREEN_EFFECT("MinigameTransitionIn", 0, 0);
Tele_Cam(x, y, z);
}
uint handle = PedHandle;
if (PED::IS_PED_IN_ANY_VEHICLE(handle, 0))
handle = PED::GET_VEHICLE_PED_IS_IN(handle, 0);
ENTITY::SET_ENTITY_COORDS(handle, x, y, z + 0.5f, 0, 0, 0, 1);
}
}
}
if (Cam_Zoom) {
if (CAM::DOES_CAM_EXIST(TeleportCamera)) {
Teleport_Timer++;
if (Teleport_Timer >= 175) {
GRAPHICS::STOP_SCREEN_EFFECT("MinigameTransitionIn");
GRAPHICS::START_SCREEN_EFFECT("MinigameTransitionOut", 0, 0);
Teleport_Timer = 0;
CAM::STOP_CAM_POINTING(TeleportCamera);
CAM::SET_CAM_ACTIVE(TeleportCamera, false);
CAM::DESTROY_CAM(TeleportCamera, false);
CAM::RENDER_SCRIPT_CAMS(0, 1, 2000, 1, 0);
STREAMING::CLEAR_FOCUS();
TeleportCamera = NULL;
ShowMessageOnScreen("~g~Teleported to Location!");
Cam_Zoom = false;
}
}
}
bool Cam_Zoom = false;
Cam TeleportCamera;
int Teleport_Timer = 0;
bool TeleportCamerabool = false;
bool SkyTeleCam = false;

Thanks for sharing it
Reply
#13
(05-04-2019 - 03:12 PM)XBLxPhantom Wrote: Saw another post where they just leaked AFC's cam tele. (It's not bad, but it's quite a lot of code for something that can be so simple) So, here is mine.
Code:
void Tele_Cam(float x, float y, float z) {
Cam_Zoom = true;
if (!CAM::DOES_CAM_EXIST(TeleportCamera)) {
TeleportCamera = CAM::CREATE_CAM("DEFAULT_SCRIPTED_CAMERA", 1);
if (SkyteleCam) {
CAM::SET_CAM_COORD(TeleportCamera, x + 25.0f, y - 25.0f, z + 190.0f);
}
else {
CAM::SET_CAM_COORD(TeleportCamera, x + 7.0f, y, z + 3.3f);
}
CAM::POINT_CAM_AT_COORD(TeleportCamera, x, y, z);
STREAMING::_SET_FOCUS_AREA(x, y, z, 0.0f, 0.0f, 0.0f);
CAM::SET_CAM_ACTIVE(TeleportCamera, true);
CAM::RENDER_SCRIPT_CAMS(1, 1, 4000, 1, 0);
}
}
void ADD_TELE(char *option, int PedHandle, float x, float y, float z, char *info = NULL) {
ADD_OPTION(option, info);
if (CurrentOption == OptionCount) {
if (OptionPress) {
if (TeleportCamerabool) {
GRAPHICS::START_SCREEN_EFFECT("MinigameTransitionIn", 0, 0);
Tele_Cam(x, y, z);
}
uint handle = PedHandle;
if (PED::IS_PED_IN_ANY_VEHICLE(handle, 0))
handle = PED::GET_VEHICLE_PED_IS_IN(handle, 0);
ENTITY::SET_ENTITY_COORDS(handle, x, y, z + 0.5f, 0, 0, 0, 1);
}
}
}
if (Cam_Zoom) {
if (CAM::DOES_CAM_EXIST(TeleportCamera)) {
Teleport_Timer++;
if (Teleport_Timer >= 175) {
GRAPHICS::STOP_SCREEN_EFFECT("MinigameTransitionIn");
GRAPHICS::START_SCREEN_EFFECT("MinigameTransitionOut", 0, 0);
Teleport_Timer = 0;
CAM::STOP_CAM_POINTING(TeleportCamera);
CAM::SET_CAM_ACTIVE(TeleportCamera, false);
CAM::DESTROY_CAM(TeleportCamera, false);
CAM::RENDER_SCRIPT_CAMS(0, 1, 2000, 1, 0);
STREAMING::CLEAR_FOCUS();
TeleportCamera = NULL;
ShowMessageOnScreen("~g~Teleported to Location!");
Cam_Zoom = false;
}
}
}
bool Cam_Zoom = false;
Cam TeleportCamera;
int Teleport_Timer = 0;
bool TeleportCamerabool = false;
bool SkyTeleCam = false;

LMAO you can find this in the Leaked Sourece of SilkRoad LOL
Reply
#14
(10-15-2019 - 10:54 PM)FeetForFree Wrote:
(05-04-2019 - 03:12 PM)XBLxPhantom Wrote: Saw another post where they just leaked AFC's cam tele. (It's not bad, but it's quite a lot of code for something that can be so simple) So, here is mine.
Code:
void Tele_Cam(float x, float y, float z) {
Cam_Zoom = true;
if (!CAM::DOES_CAM_EXIST(TeleportCamera)) {
TeleportCamera = CAM::CREATE_CAM("DEFAULT_SCRIPTED_CAMERA", 1);
if (SkyteleCam) {
CAM::SET_CAM_COORD(TeleportCamera, x + 25.0f, y - 25.0f, z + 190.0f);
}
else {
CAM::SET_CAM_COORD(TeleportCamera, x + 7.0f, y, z + 3.3f);
}
CAM::POINT_CAM_AT_COORD(TeleportCamera, x, y, z);
STREAMING::_SET_FOCUS_AREA(x, y, z, 0.0f, 0.0f, 0.0f);
CAM::SET_CAM_ACTIVE(TeleportCamera, true);
CAM::RENDER_SCRIPT_CAMS(1, 1, 4000, 1, 0);
}
}
void ADD_TELE(char *option, int PedHandle, float x, float y, float z, char *info = NULL) {
ADD_OPTION(option, info);
if (CurrentOption == OptionCount) {
if (OptionPress) {
if (TeleportCamerabool) {
GRAPHICS::START_SCREEN_EFFECT("MinigameTransitionIn", 0, 0);
Tele_Cam(x, y, z);
}
uint handle = PedHandle;
if (PED::IS_PED_IN_ANY_VEHICLE(handle, 0))
handle = PED::GET_VEHICLE_PED_IS_IN(handle, 0);
ENTITY::SET_ENTITY_COORDS(handle, x, y, z + 0.5f, 0, 0, 0, 1);
}
}
}
if (Cam_Zoom) {
if (CAM::DOES_CAM_EXIST(TeleportCamera)) {
Teleport_Timer++;
if (Teleport_Timer >= 175) {
GRAPHICS::STOP_SCREEN_EFFECT("MinigameTransitionIn");
GRAPHICS::START_SCREEN_EFFECT("MinigameTransitionOut", 0, 0);
Teleport_Timer = 0;
CAM::STOP_CAM_POINTING(TeleportCamera);
CAM::SET_CAM_ACTIVE(TeleportCamera, false);
CAM::DESTROY_CAM(TeleportCamera, false);
CAM::RENDER_SCRIPT_CAMS(0, 1, 2000, 1, 0);
STREAMING::CLEAR_FOCUS();
TeleportCamera = NULL;
ShowMessageOnScreen("~g~Teleported to Location!");
Cam_Zoom = false;
}
}
}
bool Cam_Zoom = false;
Cam TeleportCamera;
int Teleport_Timer = 0;
bool TeleportCamerabool = false;
bool SkyTeleCam = false;

LMAO you can find this in the Leaked Sourece of SilkRoad LOL

LOL no you can't. and if you can, it's nowhere near as simple.
MD: Trident
the best  FREE GTAV mod menu
Reply
#15
(10-16-2019 - 03:06 PM)XBLxPhantom Wrote:
(10-15-2019 - 10:54 PM)FeetForFree Wrote:
(05-04-2019 - 03:12 PM)XBLxPhantom Wrote: Saw another post where they just leaked AFC's cam tele. (It's not bad, but it's quite a lot of code for something that can be so simple) So, here is mine.
Code:
void Tele_Cam(float x, float y, float z) {
Cam_Zoom = true;
if (!CAM::DOES_CAM_EXIST(TeleportCamera)) {
TeleportCamera = CAM::CREATE_CAM("DEFAULT_SCRIPTED_CAMERA", 1);
if (SkyteleCam) {
CAM::SET_CAM_COORD(TeleportCamera, x + 25.0f, y - 25.0f, z + 190.0f);
}
else {
CAM::SET_CAM_COORD(TeleportCamera, x + 7.0f, y, z + 3.3f);
}
CAM::POINT_CAM_AT_COORD(TeleportCamera, x, y, z);
STREAMING::_SET_FOCUS_AREA(x, y, z, 0.0f, 0.0f, 0.0f);
CAM::SET_CAM_ACTIVE(TeleportCamera, true);
CAM::RENDER_SCRIPT_CAMS(1, 1, 4000, 1, 0);
}
}
void ADD_TELE(char *option, int PedHandle, float x, float y, float z, char *info = NULL) {
ADD_OPTION(option, info);
if (CurrentOption == OptionCount) {
if (OptionPress) {
if (TeleportCamerabool) {
GRAPHICS::START_SCREEN_EFFECT("MinigameTransitionIn", 0, 0);
Tele_Cam(x, y, z);
}
uint handle = PedHandle;
if (PED::IS_PED_IN_ANY_VEHICLE(handle, 0))
handle = PED::GET_VEHICLE_PED_IS_IN(handle, 0);
ENTITY::SET_ENTITY_COORDS(handle, x, y, z + 0.5f, 0, 0, 0, 1);
}
}
}
if (Cam_Zoom) {
if (CAM::DOES_CAM_EXIST(TeleportCamera)) {
Teleport_Timer++;
if (Teleport_Timer >= 175) {
GRAPHICS::STOP_SCREEN_EFFECT("MinigameTransitionIn");
GRAPHICS::START_SCREEN_EFFECT("MinigameTransitionOut", 0, 0);
Teleport_Timer = 0;
CAM::STOP_CAM_POINTING(TeleportCamera);
CAM::SET_CAM_ACTIVE(TeleportCamera, false);
CAM::DESTROY_CAM(TeleportCamera, false);
CAM::RENDER_SCRIPT_CAMS(0, 1, 2000, 1, 0);
STREAMING::CLEAR_FOCUS();
TeleportCamera = NULL;
ShowMessageOnScreen("~g~Teleported to Location!");
Cam_Zoom = false;
}
}
}
bool Cam_Zoom = false;
Cam TeleportCamera;
int Teleport_Timer = 0;
bool TeleportCamerabool = false;
bool SkyTeleCam = false;

LMAO you can find this in the Leaked Sourece of SilkRoad LOL

LOL no you can't. and if you can, it's nowhere near as simple.

It Just a leaked Code Of a Leaked Source
Reply
#16
(10-17-2019 - 05:11 AM)FeetForFree Wrote:
(10-16-2019 - 03:06 PM)XBLxPhantom Wrote:
(10-15-2019 - 10:54 PM)FeetForFree Wrote:
(05-04-2019 - 03:12 PM)XBLxPhantom Wrote: Saw another post where they just leaked AFC's cam tele. (It's not bad, but it's quite a lot of code for something that can be so simple) So, here is mine.
Code:
void Tele_Cam(float x, float y, float z) {
Cam_Zoom = true;
if (!CAM::DOES_CAM_EXIST(TeleportCamera)) {
TeleportCamera = CAM::CREATE_CAM("DEFAULT_SCRIPTED_CAMERA", 1);
if (SkyteleCam) {
CAM::SET_CAM_COORD(TeleportCamera, x + 25.0f, y - 25.0f, z + 190.0f);
}
else {
CAM::SET_CAM_COORD(TeleportCamera, x + 7.0f, y, z + 3.3f);
}
CAM::POINT_CAM_AT_COORD(TeleportCamera, x, y, z);
STREAMING::_SET_FOCUS_AREA(x, y, z, 0.0f, 0.0f, 0.0f);
CAM::SET_CAM_ACTIVE(TeleportCamera, true);
CAM::RENDER_SCRIPT_CAMS(1, 1, 4000, 1, 0);
}
}
void ADD_TELE(char *option, int PedHandle, float x, float y, float z, char *info = NULL) {
ADD_OPTION(option, info);
if (CurrentOption == OptionCount) {
if (OptionPress) {
if (TeleportCamerabool) {
GRAPHICS::START_SCREEN_EFFECT("MinigameTransitionIn", 0, 0);
Tele_Cam(x, y, z);
}
uint handle = PedHandle;
if (PED::IS_PED_IN_ANY_VEHICLE(handle, 0))
handle = PED::GET_VEHICLE_PED_IS_IN(handle, 0);
ENTITY::SET_ENTITY_COORDS(handle, x, y, z + 0.5f, 0, 0, 0, 1);
}
}
}
if (Cam_Zoom) {
if (CAM::DOES_CAM_EXIST(TeleportCamera)) {
Teleport_Timer++;
if (Teleport_Timer >= 175) {
GRAPHICS::STOP_SCREEN_EFFECT("MinigameTransitionIn");
GRAPHICS::START_SCREEN_EFFECT("MinigameTransitionOut", 0, 0);
Teleport_Timer = 0;
CAM::STOP_CAM_POINTING(TeleportCamera);
CAM::SET_CAM_ACTIVE(TeleportCamera, false);
CAM::DESTROY_CAM(TeleportCamera, false);
CAM::RENDER_SCRIPT_CAMS(0, 1, 2000, 1, 0);
STREAMING::CLEAR_FOCUS();
TeleportCamera = NULL;
ShowMessageOnScreen("~g~Teleported to Location!");
Cam_Zoom = false;
}
}
}
bool Cam_Zoom = false;
Cam TeleportCamera;
int Teleport_Timer = 0;
bool TeleportCamerabool = false;
bool SkyTeleCam = false;

LMAO you can find this in the Leaked Sourece of SilkRoad LOL

LOL no you can't. and if you can, it's nowhere near as simple.

It Just a leaked Code Of a Leaked Source

lmfao. Okay bud.
MD: Trident
the best  FREE GTAV mod menu
Reply
#17
Thanks for sharing it
Reply
#18
Looks hella clean yo gj
Reply
#19
Thanks for share it. It works fine.
Reply
#20
thanks for the share
Judge Judy Is Sexy Asf Can We All Agree?  Love
& Lets Stop The Cracking War M8s Devil )
(Make Modding Fun Again 100emoji   )
Reply

Users browsing: 16 Guest(s)