Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //----------------- Never Raise Mental -----------------
- //
- // Just enable NeverRaiseMental Bool cause of checks on natives well just call it every few seconds ( between 5 and 10 sec timeout )
- //-----------------------------------------------------
- #include <stdlib.h> /* srand, rand */
- #include <time.h> /* time */
- NeverRaiseMentalLoop()
- {
- if ( (NeverRaiseMental==true) && (GAMEPLAY::GET_GAME_TIMER() >= Timer) )
- {
- STATS::STAT_SET_FLOAT(GAMEPLAY::GET_HASH_KEY("MP0_PLAYER_MENTAL_STATE"),0.1,1)
- srand (time(NULL));
- Timer = (GAMEPLAY::GET_GAME_TIMER() + rand() % 10000 + 5000) // between 5 or 10 secs timeout
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement