Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //----------------- Rapid Fire -----------------
- // Requires http://pastebin.com/8mjesvm0
- //
- // RapidfireActive Bool used for activation
- // RFBetweenRounds can be changed through menu to change time between rounds
- //
- //------------------------------------------------
- #include <math.h>
- int RFTimeout;
- int RFBetweenRounds = 50;
- RapidFireLoop()
- {
- hash WeaponID;
- if ( (RapidfireActive == true) && (PED::IS_PED_ON_FOOT(PLAYER::PLAYER_PED_ID()) && (PED::IS_PED_SHOOTING(PlayerPed)) && (GAMEPLAY::GET_GAME_TIMER()>=RFTimeout) )
- {
- Vector3 FromCoord = PED::GET_PED_BONE_COORDS(PLAYER::PLAYER_PED_ID(),57005,0,0,0);
- Vector3 ToCoord = GetCoordsInfrontOfCam(75);
- WEAPON::GET_CURRENT_PED_WEAPON(PLAYER::PLAYER_PED_ID(),&WeaponID,0);
- GAMEPLAY::SHOOT_SINGLE_BULLET_BETWEEN_COORDS(FromCoord.x,FromCoord.y,FromCoord.z,ToCoord.x,ToCoord.y,ToCoord.z,250,0,WeaponID,PLAYER::PLAYER_PED_ID(),1,0,1);
- int RFTimeout = GAMEPLAY::GET_GAME_TIMER() + RFBetweenRounds;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement