-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdllmain.cpp
More file actions
40 lines (32 loc) · 800 Bytes
/
Copy pathdllmain.cpp
File metadata and controls
40 lines (32 loc) · 800 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// V Like Screaming by ItsClonkAndre
// Version 1.0
#include "ZHookBase.cpp"
#pragma region Variables
int tickTemp;
Ped playerPed;
#pragma endregion
#pragma region Unused
void scriptLoad() {
}
void scriptUnload() {
}
#pragma endregion
void scriptTick()
{
Player player = Scripting::CONVERT_INT_TO_PLAYERINDEX(Scripting::GET_PLAYER_ID());
GET_PLAYER_CHAR(player, &playerPed);
float heightAboveGround;
GET_CHAR_HEIGHT_ABOVE_GROUND(playerPed, &heightAboveGround);
if (heightAboveGround > 6) {
if (IS_PED_RAGDOLL(playerPed)) {
tickTemp++;
if (tickTemp % 210 == 0) {
HIGH_FALL_SCREAM(playerPed);
tickTemp = 0;
}
}
}
else {
tickTemp = 0;
}
}