This page contains every global function available to a script as of the first main script update. All of these functions fall into one of the Function Categories listed below, and sometimes multiple. Some functions may not be available depending on if you're using derpy's script loader (DSL).
If a LUA or DSL function using the same name as a C function exists, your script will likely not be able to use the C version normally.
Some DSL functions have separate listings for client and server side functions depending on the function.
LUA function sources and occurrences are pulled from Razcoina's and nixkiez' decompiled scripts.
Hit Ctrl + G to open a text box to instantly jump to a function. This page was designed to be rapidly jumped around as needed.
C[?] Hard coded C function from Bully.exe. A list of occurrences and a disassembled version of the function is shown.
DSL[?] From derpy's script loader / derpy's script server. Function availability varies based upon version and settings.
LUA[?] Provided by a script. A list of occurrences and a decompiled version of the function is shown.
STD[?] From Lua's standard library. A lot of these functions are not available unless using DSL / DSS.
At first it may seem daunting to read the ASM shown alongside C functions, but once you learn what to look for it'll get easier. Most functions will call a few LuaParam::Get* functions to read the parameters / arguments, then a few LuaParam::Push* functions to return a few values. You can also look out for the value stored in eax by the end of the function, as this usually indicates the actual amount of return values. If you see xor eax, eax, just know that's the same thing as mov eax, 0. Compilers just use xor instead sometimes to optimize the code.
In other words, you can learn the arguments and return values of a function just by looking at the highlighted ASM. More often than not arguments are read in order, but sometimes you'll have to look slightly above the LuaParam::Get* functions to find the stack index passed using a push instruction (not actually highlighted). This stack index (like 0x1) indicates a zero-based position of the argument being read. For example if you see push 0x1 shortly before LuaParam::GetBoolean, it likely means the 2nd argument is a boolean.
Keep in mind these are just generalizations though. Although you'll usually be able to glance at the highlighted lines to get by, you may not always be able to gather the exact arguments and return results of a function without a fair understanding of x86 ASM.
AddArrestRestartPoint(POINTLIST._KO_SCHOOL_INFIRMOUT, 0, 19, 8, POINTLIST._BOYSDORM_BEDWAKEUP, 14)
AddArrestRestartPoint(POINTLIST._KO_SCHOOL_INFIRMOUT, 0, 8, 19, POINTLIST._ARREST_RESTART_1, 2)
AddArrestRestartPoint(POINTLIST._RESTART_B_PS, 0)
AddArrestRestartPoint(POINTLIST._RESTART_I_PS, 0)
AddArrestRestartPoint(POINTLIST._RESTART_I_PS, 0, 18, 8, POINTLIST._BOYSDORM_BEDWAKEUP, 14)
AddArrestRestartPoint(POINTLIST._RESTART_I_PS, 0, 8, 18)
AddArrestRestartPoint(POINTLIST._RESTART_P_PS, 0)
AddArrestRestartPoint(POINTLIST._RESTART_R_PS, 0)
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x30]
push edi
push 0x1
push esi
call LuaParam::GetInt
xor ebp, ebp
push ebp
push esi
mov dword ptr [esp+0x28], eax
or ebx, 0xFFFFFFFF
mov dword ptr [esp+0x24], 0x18
call LuaParam::GetInt
add esp, 0x10
push eax
mov ecx, 0xBC5E7C
call 0x6D6450
mov edi, eax
mov ecx, edi
call 0x6D59B0
mov ecx, edi
mov dword ptr [esp+0x20], eax
call 0x6D59B0
fld st, dword ptr [eax+0x1C]
fsub st, qword ptr [0x900AB8]
mov eax, dword ptr [0xAE9F68]
mov ecx, dword ptr [0xAE9F6C]
mov edx, dword ptr [0xAE9F70]
fstp dword ptr [esp+0x1C], st
push esi
fldz
mov dword ptr [esp+0x28], eax
fstp dword ptr [esp+0x14], st
mov dword ptr [esp+0x2C], ecx
mov dword ptr [esp+0x30], edx
call 0x73AEA0
add esp, 0x4
cmp eax, 0x4
jz 0x10
push esi
call 0x73AEA0
add esp, 0x4
cmp eax, 0x6
jnz 0x1B
push 0x2
push esi
call LuaParam::GetInt
push 0x3
push esi
mov ebp, eax
call LuaParam::GetInt
add esp, 0x10
mov dword ptr [esp+0x14], eax
push esi
call 0x73AEA0
add esp, 0x4
cmp eax, 0x6
jnz 0x56
push 0x4
push esi
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, 0xBC5E7C
call 0x6D6450
mov edi, eax
mov ecx, edi
call 0x6D59B0
mov ecx, dword ptr [eax]
mov dword ptr [esp+0x24], ecx
mov edx, dword ptr [eax+0x4]
mov dword ptr [esp+0x28], edx
mov eax, dword ptr [eax+0x8]
mov ecx, edi
mov dword ptr [esp+0x2C], eax
call 0x6D59B0
fld st, dword ptr [eax+0x1C]
fsub st, qword ptr [0x900AB8]
push 0x5
push esi
fstp dword ptr [esp+0x18], st
call LuaParam::GetInt
add esp, 0x8
mov ebx, eax
fld st, dword ptr [esp+0x10]
mov edx, dword ptr [esp+0x14]
mov eax, dword ptr [esp+0x18]
push ebx
push ecx
fstp dword ptr [esp], st
lea ecx, ptr [esp+0x2C]
fld st, dword ptr [esp+0x24]
push ecx
push edx
push ebp
push eax
push ecx
mov ecx, dword ptr [esp+0x3C]
fstp dword ptr [esp], st
push ecx
mov ecx, 0xBD1078
call 0x430AD0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret
bikeBlip = AddBlipForCar(bike, 0, 4)
bikeBlip = AddBlipForCar(PedGetLastVehicle(gPlayer) or bike, 0, 4)
car.blip = AddBlipForCar(car.id, 1, 1)
element.blip = AddBlipForCar(element.id, element.radarIcon or tblCarBlipDefault.radarIcon, element.blipStyle, tblCarBlipDefault.blipStyle)
gBikeBlip = AddBlipForCar(gBike, 0, 4)
gBlipBike = AddBlipForCar(idBike.id, 0, 5)
gObjBlip = AddBlipForCar(idBike, 0, 4)
gObjectiveBlip = AddBlipForCar(idMower, 0, 4)
idGirlBikeBlip = AddBlipForCar(idGirlBike, 0, 4)
item.blip = AddBlipForCar(item.bike, 0, 4)
local blip = AddBlipForCar(gHattrickCar, 0, 4)
push ebx
push ebp
push esi
push edi
mov edi, dword ptr [esp+0x14]
push 0x0
push edi
call 0x5DA110
push 0x1
push edi
mov ebp, eax
mov esi, 0x5
call LuaParam::GetInt
push edi
mov ebx, eax
call 0x73AEA0
add esp, 0x14
cmp eax, 0x3
jl 0xF
push 0x2
push edi
call LuaParam::GetInt
add esp, 0x8
mov esi, eax
push ebp
call 0x44CAC0
mov ebp, dword ptr [0xC674CC]
add esp, 0x4
push 0x0
push ebx
push esi
push ecx
mov ecx, esp
push eax
mov byte ptr [ecx], 0x0
mov byte ptr [ecx+0x1], 0x0
mov byte ptr [ecx+0x2], 0x0
mov byte ptr [ecx+0x3], 0x2
push 0x1
mov ecx, ebp
call 0x54A5B0
mov esi, eax
push 0x5
push esi
mov ecx, ebp
call 0x548BF0
push esi
mov ecx, 0xD02850
call 0x5DB940
mov ecx, eax
call 0x5DA7D0
push esi
push edi
call LuaParam::PushInt
add esp, 0x8
pop edi
pop esi
pop ebp
mov eax, 0x1
pop ebx
ret
AddBlipForChar(allyId, gAllyPedType, 2, 1)
AddBlipForChar(bGreaserBoss, 4, 26, 4)
AddBlipForChar(bJockBoss, 2, 26, 4)
AddBlipForChar(bNerdBoss, 1, 2, 4)
AddBlipForChar(bPreppyBoss, 5, 26, 4)
AddBlipForChar(enemy01.id, 3, 2, 1)
AddBlipForChar(enemy02.id, 3, 2, 4)
AddBlipForChar(gAngryJock01, 2, 2, 1)
AddBlipForChar(gAngryJock02, 2, 2, 1)
AddBlipForChar(gBaddie.id, 4, 2, 1)
AddBlipForChar(gBaddie02.id, 4, 2, 1)
AddBlipForChar(gBaddie03.id, 4, 2, 1)
AddBlipForChar(gBaddie04.id, 4, 2, 1)
AddBlipForChar(gBaddie05.id, 4, 2, 1)
AddBlipForChar(gBaddie06.id, 4, 2, 1)
AddBlipForChar(gCannonNerd, 2, 2, 1)
AddBlipForChar(gEnemy01, gEnemyPedType, 2, 1)
AddBlipForChar(gEnemy02, gEnemyPedType, 2, 1)
AddBlipForChar(gEnemy03, gEnemyPedType, 2, 1)
AddBlipForChar(gGary, 0, 27, 1)
AddBlipForChar(gJV_OnBike, 2, 26, 1)
AddBlipForChar(gKeyMaster, 2, 26, 4)
AddBlipForChar(gLackey[20].ped, 2, 2, 1)
AddBlipForChar(gLackey[21].ped, 2, 2, 1)
AddBlipForChar(gord, 12, 0, 2)
AddBlipForChar(gPeter, 2, 2, 1)
AddBlipForChar(greaser1, 2, 1)
AddBlipForChar(gTed, 0, 26, 4)
AddBlipForChar(id2ndMan, 11, 26, 1)
AddBlipForChar(idHitMan, 11, 26, 1)
AddBlipForChar(idPed, 11, 26, 1)
AddBlipForChar(idPed, gEnemyPedType, 2, 1)
AddBlipForChar(idRussell, 11, 0, 4)
AddBlipForChar(idZoe, 1, 27, 1)
AddBlipForChar(johnny, 12, 0, 1)
AddBlipForChar(johnny, 12, 0, 2)
AddBlipForChar(johnny, 12, 0, 4)
AddBlipForChar(lackey1, 1, 2, 4)
AddBlipForChar(lackey1, 2, 26, 4)
AddBlipForChar(lackey1, 4, 26, 4)
AddBlipForChar(lackey1, 5, 26, 4)
AddBlipForChar(lackey2, 1, 2, 4)
AddBlipForChar(lackey2, 2, 26, 4)
AddBlipForChar(lackey2, 4, 26, 4)
AddBlipForChar(lackey2, 5, 26, 4)
AddBlipForChar(lola, 12, 0, 2)
AddBlipForChar(newTagger, 0, 1, 4)
AddBlipForChar(ped, 0, 1, 4)
AddBlipForChar(ped, 0, 26, 4)
AddBlipForChar(ped, 12, 2, 2)
AddBlipForChar(scout2, 2, 2, 1)
AddBlipForChar(shared.gGary, 6, 27, 1)
AddBlipForChar(shared.gPetey, 6, 27, 1)
AddBlipForChar(spud_nerd, 2, 2, 1)
AddBlipForChar(tagger, 0, 1, 4)
AddBlipForChar(tbl.id, 5, tbl.radarIcon, tbl.blipStyle)
AddBlipForChar(tblRats[r + 9], 0, 1, 4)
AddBlipForChar(tblRats[r], 0, 1, 4)
AssistantBlip = AddBlipForChar(assistant, 2, 0, 4)
blip = AddBlipForChar(edna, 12, 0, 4)
blipAlgie = AddBlipForChar(ScenarioPed, 0, 1, 4, 0)
blipCandy = AddBlipForChar(fatty, 12, 0, 4)
blipCandy = AddBlipForChar(fatty, 12, 26, 4)
blipChristy = AddBlipForChar(ScenarioPed, 0, 1, 4, 0)
blipGreaser = AddBlipForChar(pedGreaser01.id, 4, 0, 4, 0)
blipID = AddBlipForChar(idPed, 2, 2, 1)
blipJock = AddBlipForChar(pedJock.id, 2, 0, 4, 0)
blipNorton = AddBlipForChar(idNorton, 12, 26, 4)
blipObjective = AddBlipForChar(beatrice, 12, 17, 4)
blipOldLady = AddBlipForChar(ScenarioPed, 0, 1, 4, 0)
blipPete = AddBlipForChar(idPeter, 0, 27, 1)
CrazyBlip1 = AddBlipForChar(Crazy01, 2, 1, 4)
CrazyBlip1 = AddBlipForChar(Crazy01, 2, 27, 1)
CrazyBlip2 = AddBlipForChar(Crazy02, 2, 1, 4)
CrazyBlip2 = AddBlipForChar(Crazy02, 2, 27, 1)
DirtyCopBlip = AddBlipForChar(DirtyCop, 7, 1, 4)
DogBlip = AddBlipForChar(Dog, 2, 1, 4)
DogBlip = AddBlipForChar(Dog, 2, 27, 1)
DropoutBlip1 = AddBlipForChar(Dropout1, 2, 1, 4)
EdnaBlip = AddBlipForChar(Edna, 12, 0, 4)
element.blip = AddBlipForChar(element.id, 2, element.radarIcon or tblCharBlipDefault.radarIcon, element.blipStyle or tblCharBlipDefault.blipStyle)
EnemyTable[index].blip = AddBlipForChar(EnemyTable[index].handle, 2, 26, 4)
entry.blip = AddBlipForChar(entry.id, 11, 26, 4)
entry.blip = AddBlipForChar(entry.id, 12, 26, 4)
entry.blip_id = AddBlipForChar(entry.id, 2, 26, 1)
gBlipBear = AddBlipForChar(gBully, 6, 1, 4)
gBlipControlRoom = AddBlipForChar(gControlOrderly, 9, 0, 2)
gBlipEunice = AddBlipForChar(idEunice.id, 6, 0, 4)
gBlipEunice = AddBlipForChar(idEunice.id, 6, 17, 4)
gBlipEunice = AddBlipForChar(idEunice.id, 6, 27, 4)
gBlipGord = AddBlipForChar(idGord.id, 6, 0, 4)
gBlipJohnny = AddBlipForChar(gJohnny, 6, 27, 1, 0)
gBlipPetey = AddBlipForChar(idPetey.id, 6, 0, 4)
gBlipRa02 = AddBlipForChar(gRat02, 0, 1, 4)
gBlipRat01 = AddBlipForChar(gRat01, 0, 1, 4)
gBlipThad = AddBlipForChar(gThad, 0, 26)
gBlipThad = AddBlipForChar(gThad, 1, 0, 4)
gBlipThad = AddBlipForChar(gThad, 1, 26, 4)
gBully1Blip = AddBlipForChar(gBully1, 2, 26, 4)
gBully2Blip = AddBlipForChar(gBully2, 2, 26, 4)
gBully3Blip = AddBlipForChar(gBully3, 2, 26, 4)
gCaseyBlip = AddBlipForChar(c, 2, 0, 4)
gCheater01Blip = AddBlipForChar(gCheater01, 0, 1, 4)
gDavisBlip = AddBlipForChar(gDavis, 2, 26, 4)
gEdgarBlip = AddBlipForChar(edgar, 2, 26, 4)
gEnemies[index].blipId = AddBlipForChar(gEnemies[index].id, gEnemyPedType, 0, 4)
gFattyBlip = AddBlipForChar(gFatty, 1, 0, 4)
gFattyBlip = AddBlipForChar(gFatty, 1, 26, 4)
gGaryBlip = AddBlipForChar(gGary, 2, 0, 4)
gGaryBlip = AddBlipForChar(gGary, 6, 2, 1)
gGordBlip = AddBlipForChar(gord, 5, 0, 5)
gJohnnyBlip = AddBlipForChar(gJohnny, 6, 27, 1)
gJohnnyBlip = AddBlipForChar(gJohnny, 6, 27, 4)
gKirbyBlip = AddBlipForChar(a, 2, 0, 4)
gLolaBlip = AddBlipForChar(lola, 4, 0, 5)
gMandyBlip = AddBlipForChar(b, 2, 0, 4)
gMandyBlip = AddBlipForChar(mandy, 2, 17, 4, 0)
gMelvinBlip = AddBlipForChar(gMelvin, 2, 0, 4)
gObjBlip = AddBlipForChar(gHobo, 9, 17, 4)
gObjBlip = AddBlipForChar(idZoe, 3, 0, 1)
gObjectiveBlip = AddBlipForChar(idZoe, 12, 0, 1)
gObjectiveBlip = AddBlipForChar(idZoe, 12, 0, 4)
gObjectiveBlip = AddBlipForChar(point, index, 0, blipEnum)
gObjectiveBlip = AddBlipForChar(shared.gBif, 5, 17, 4)
gObjectiveBlip = AddBlipForChar(shared.gBif, 5, 26, 4)
gPeanutBlip = AddBlipForChar(gPeanut, 4, 26, 4)
gPeteBlip = AddBlipForChar(gPete, 6, 2, 1)
GreaserBlip1 = AddBlipForChar(Greaser1, 4, 1, 4)
GreaserBlip1 = AddBlipForChar(Greaser1, 4, 30, 4)
GreaserBlip2 = AddBlipForChar(Greaser2, 4, 1, 4)
GreaserBlip2 = AddBlipForChar(Greaser2, 4, 30, 4)
gRooftopPedsBlip = AddBlipForChar(gRooftopPeds1[2], 4, 26, 4)
gRussell.blip = AddBlipForChar(gRussell.id, 0, 27, 1)
gRussell.blip = AddBlipForChar(gRussell.id, 0, 27, 4)
gVanceBlip = AddBlipForChar(gVance, 4, 26, 4)
hattrickBlip = AddBlipForChar(gHattrick, 8, 2, 1)
idBlip = AddBlipForChar(idDO, 3, 26, 4)
idBlip = AddBlipForChar(idOmar, 3, 0, 4)
idBuckyBlip = AddBlipForChar(idBucky, 1, 27, 1)
idDarbyBlip = AddBlipForChar(idDarby, 5, 0, 1)
L_PedExec(p_wave1, AddBlipForChar, "id", 2, 2, 1)
L_PedExec(p_wave2, AddBlipForChar, "id", 2, 2, 1)
L_PedExec(p_wave3, AddBlipForChar, "id", 2, 2, 1)
L_PedExec(p_wave4, AddBlipForChar, "id", 2, 2, 1)
L_PedExec(p_wave_scout3, AddBlipForChar, "id", 2, 2, 1)
local blip = AddBlipForChar(gDarby, 5, 0, 4)
local blip = AddBlipForChar(gGary, 2, 0, 4)
local blip = AddBlipForChar(rider, 2, 26, 1)
local BlipID = AddBlipForChar(gRetirementTable.ped1, 0, 2, 3)
local BlipID = AddBlipForChar(gRetirementTable.ped2, 0, 2, 3)
local tempBlip = AddBlipForChar(tempPed, 4, 26, 1)
lolaBlip = AddBlipForChar(idLola, 12, 0, 4)
lVictimBlip[VictimCounter] = AddBlipForChar(lVictim[VictimCounter], 12, 17, 4)
MascotBlip = AddBlipForChar(Mascot, 2, 26, 4)
nemesisBlip = AddBlipForChar(idNemesis, 2, 27, 1)
Objectives[5].blip = AddBlipForChar(CharID, 1, 17, 4)
Objectives[i].blip = AddBlipForChar(CharID, 1, 17, 4)
p_blip = AddBlipForChar(phillips, 8, 17, 4)
ped.blip = AddBlipForChar(ped.id, 2, ped.radarIcon, ped.blipStyle)
pedAlgie.blip = AddBlipForChar(pedAlgie.id, 1, 0, 4)
pedAlgie.blip = AddBlipForChar(pedAlgie.id, 1, 2, 1)
pedAlgie.blip = AddBlipForChar(pedAlgie.id, 1, 27, 1, 0)
pedBulliesLeft01.blip = AddBlipForChar(pedBulliesLeft01.id, 11, 26, 4)
pedBulliesLeft02.blip = AddBlipForChar(pedBulliesLeft02.id, 11, 26, 4)
pedBulliesLeft03.blip = AddBlipForChar(pedBulliesLeft03.id, 11, 26, 4)
pedBulliesRight01.blip = AddBlipForChar(pedBulliesRight01.id, 11, 26, 4)
pedBulliesRight02.blip = AddBlipForChar(pedBulliesRight02.id, 11, 26, 4)
pedBurtonStage3.blip = AddBlipForChar(pedBurtonStage3.id, 8, 0, 4)
pedChad.blip = AddBlipForChar(pedChad.id, 5, 26, 4)
pedConstantine.blip = AddBlipForChar(pedConstantine.id, 11, 0, 4, 0)
pedCornelius.blip = AddBlipForChar(pedCornelius.id, 1, 0, 4)
pedEarnest.blip = AddBlipForChar(pedEarnest.id, 6, 0, 4)
pedEunice.blip = AddBlipForChar(pedEunice.id, 0, 0, 4, 0)
pedEunice.blip = AddBlipForChar(pedEunice.id, 6, 0, 4)
pedFirstBully.blip = AddBlipForChar(pedFirstBully.id, 11, 26, 4)
pedGary.blip = AddBlipForChar(pedGary.id, 0, 0, 4, 0)
pedGord_Blip = AddBlipForChar(pedGord, 2, 26, 4)
pedGreaser01.blip = AddBlipForChar(pedGreaser01.id, 4, 26, 1)
pedGreaser02.blip = AddBlipForChar(pedGreaser02.id, 4, 26, 1)
pedGreaser03.blip = AddBlipForChar(pedGreaser03.id, 11, 26, 1)
pedGreaser04.blip = AddBlipForChar(pedGreaser04.id, 11, 26, 1)
pedGreaser04.blip = AddBlipForChar(pedGreaser04.id, 4, 26, 1)
pedHattrick.blip = AddBlipForChar(pedHattrick.id, 2, 0, 4, 0)
pedJockBathroomFirstFloor01.blip = AddBlipForChar(pedJockBathroomFirstFloor01.id, 11, 26, 1)
pedJockBathroomFirstFloor02.blip = AddBlipForChar(pedJockBathroomFirstFloor02.id, 11, 26, 1)
pedJockBathroomSecondFloor01.blip = AddBlipForChar(pedJockBathroomSecondFloor01.id, 11, 26, 4)
pedJockBathroomSecondFloor02.blip = AddBlipForChar(pedJockBathroomSecondFloor02.id, 11, 26, 4)
pedJohnny.blip = AddBlipForChar(pedJohnny.id, 4, 0, 4)
pedKlepto.blip = AddBlipForChar(pedKlepto.id, 6, 26, 4, 0)
pedMandyBedroom.blip = AddBlipForChar(pedMandyBedroom.id, 2, 0, 4)
pedMandyGym.blip = AddBlipForChar(pedMandyGym.id, 2, 0, 4)
pedMandyShower.blip = AddBlipForChar(pedMandyShower.id, 2, 0, 4)
pedMascot.blip = AddBlipForChar(pedMascot.id, 2, 0, 4, 0)
pedMascot.blip = AddBlipForChar(pedMascot.id, 2, 26, 1, 0)
pedPinky.blip = AddBlipForChar(pedPinky.id, 0, 27, 1)
pedPinky.blip = AddBlipForChar(pedPinky.id, 6, 2, 4)
pedPrep.blip = AddBlipForChar(pedPrep.id, 5, 0, 4, 0)
pedStoreOwner.blip = AddBlipForChar(pedStoreOwner.id, 9, 0, 4, 0)
pedZoe.blip = AddBlipForChar(pedZoe.id, 6, 2, 1, 0)
PeteyBlip = AddBlipForChar(Petey, 6, 1, 4)
prank.blip = AddBlipForChar(prank.id, 6, 1, 4)
PrepBlip1 = AddBlipForChar(Prep1, 5, 1, 4)
PrepBlip2 = AddBlipForChar(Prep2, 5, 1, 4)
racer.blip = AddBlipForChar(racer.id, 2, 2, racer.add_blip and 1 or 0)
racer.blip = AddBlipForChar(racer.id, 2, 2, racer.add_blip and 4 or 0)
racer.blip = AddBlipForChar(racer.id, 2, racer.add_blip and 4 or 0)
racer.blip = AddBlipForChar(racer.id, 2, racer.radarIcon, racer.blipStyle)
rat.blip = AddBlipForChar(rat.id, 9, 1, 4)
Receiver1Blip = AddBlipForChar(gSpazzMan, 9, 1, 4)
Receiver1Blip = AddBlipForChar(Receiver1, 9, 1, 4)
Receiver2Blip = AddBlipForChar(Receiver2, 9, 1, 4)
Receiver3Blip = AddBlipForChar(Receiver3, 9, 1, 4)
RichM01_blip = AddBlipForChar(gRichM01, 12, 17, 4)
RichM02_blip = AddBlipForChar(gRichM02, 12, 17, 4)
RichM03_blip = AddBlipForChar(gRichM03, 12, 17, 4)
RichM04_blip = AddBlipForChar(gRichM04, 12, 17, 4)
RichM05_blip = AddBlipForChar(gRichM05, 12, 17, 4)
RudyBlip = AddBlipForChar(Rudy, 2, 0, 1)
ScenarioBlip = AddBlipForChar(Beatrice, 0, 1, 4)
ScenarioPedBlip = AddBlipForChar(ScenarioPed, 0, 1, 4)
ScenarioPedBlip = AddBlipForChar(ScenarioPed, 6, 1, 1)
ScenarioPedBlip = AddBlipForChar(ScenarioPed, 6, 1, 4)
ScenarioPedBlip = AddBlipForChar(ScenarioPed, 6, 30, 4)
ScenarioPedBlip = AddBlipForChar(ScenarioPed, 9, 1)
ScenarioPedBlip = AddBlipForChar(ScenarioPed, 9, 1, 1)
sheet1GuardBlip = AddBlipForChar(sheet1Guard, 2, 26, 4)
sheet2GuardBlip = AddBlipForChar(sheet2Guard, 2, 26, 4)
sheet3GuardBlip = AddBlipForChar(sheet3Guard, 2, 26, 4)
sheet4GuardBlip = AddBlipForChar(sheet4Guard, 2, 26, 4)
tad_blip = AddBlipForChar(gTad, 2, 0, 1)
tadBlip = AddBlipForChar(pedTad.id, 12, 0)
tadBlip2 = AddBlipForChar(pedTad.id, 12, 0, 4)
tbl.blip = AddBlipForChar(tbl.id, 6, 1, 4)
tblGord.blip = AddBlipForChar(tblGord.id, 5, 0, 2)
tblGord.blip = AddBlipForChar(tblGord.id, 5, 0, 4)
tblGreaser.blip = AddBlipForChar(tblGreaser.id, 4, 2, 1)
tblMsPhillips.blip = AddBlipForChar(tblMsPhillips.id, 8, 17, 4)
tblPrank[2].blip = AddBlipForChar(tblPrank[2].id, 6, 1, 4)
tblPrank[3].blip = AddBlipForChar(tblPrank[3].id, 6, 1, 4)
tblPrank[4].blip = AddBlipForChar(tblPrank[4].id, 6, 1, 4)
tblPrank[5].blip = AddBlipForChar(tblPrank[5].id, 6, 1, 4)
tblPrank[6].blip = AddBlipForChar(tblPrank[6].id, 6, 1, 4)
tblPrank[7].blip = AddBlipForChar(tblPrank[7].id, 6, 1, 4)
tblPrank[8].blip = AddBlipForChar(tblPrank[8].id, 6, 1, 4)
tempBlip = AddBlipForChar(librarian, 0, 2)
sub esp, 0x10
push ebx
push ebp
mov ebp, dword ptr [esp+0x1C]
push esi
push edi
push 0x0
push ebp
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jnz 0x9
push 0xFFFFFFFF
jmp 0x145
push 0x2
push ebp
call LuaParam::GetInt
fldz
fstp dword ptr [esp+0x20], st
push ebp
fld st, dword ptr [0x900BFC]
mov ebx, eax
fstp dword ptr [esp+0x20], st
mov dword ptr [esp+0x1C], 0x5
mov dword ptr [esp+0x28], 0xFFFFFFFF
call LuaParam::GetParamCount
add esp, 0xC
cmp eax, 0x4
jl 0x5F
push 0x3
push ebp
call LuaParam::GetInt
push ebp
mov dword ptr [esp+0x1C], eax
call LuaParam::GetParamCount
add esp, 0xC
cmp eax, 0x5
jl 0x45
push 0x4
push ebp
call LuaParam::GetInt
push ebp
mov dword ptr [esp+0x28], eax
call LuaParam::GetParamCount
add esp, 0xC
cmp eax, 0x6
jl 0x2B
push 0x5
push ebp
call LuaParam::GetFloat
fstp dword ptr [esp+0x20], st
push ebp
call LuaParam::GetParamCount
add esp, 0xC
cmp eax, 0x7
jl 0x11
push 0x6
push ebp
call LuaParam::GetFloat
fstp dword ptr [esp+0x1C], st
add esp, 0x8
mov ecx, dword ptr [0xC0F5F0]
mov eax, esi
sub eax, dword ptr [ecx]
mov edi, dword ptr [0xC674CC]
cdq
idiv dword ptr [ecx+0xC]
mov ecx, dword ptr [ecx+0x4]
movzx esi, byte ptr [ecx+eax*1]
shl eax, 0x8
add esi, eax
push esi
push 0x6
mov ecx, edi
call 0x54A890
push esi
push 0x2
mov ecx, edi
call 0x54A890
push esi
push 0xD
mov ecx, edi
call 0x54A890
cmp ebx, 0x11
push 0x0
jnz 0x10
mov edx, dword ptr [esp+0x14]
push ebx
push edx
push ecx
mov eax, esp
push esi
push 0xD
jmp 0xE
mov eax, dword ptr [esp+0x14]
push ebx
push eax
push ecx
mov eax, esp
push esi
push 0x2
mov byte ptr [eax], 0x0
mov byte ptr [eax+0x1], 0x0
mov byte ptr [eax+0x2], 0x0
mov ecx, edi
mov byte ptr [eax+0x3], 0x0
call 0x54A5B0
mov esi, eax
push 0x5
push esi
mov ecx, edi
call 0x548BF0
fld st, dword ptr [esp+0x14]
mov ecx, dword ptr [esp+0x1C]
sub esp, 0x8
fstp dword ptr [esp+0x4], st
fld st, dword ptr [esp+0x20]
fstp dword ptr [esp], st
push ecx
push esi
mov ecx, 0xD02850
call 0x5DB940
mov ecx, eax
call 0x5D9380
push esi
push ebp
call LuaParam::PushInt
add esp, 0x8
pop edi
pop esi
pop ebp
mov eax, 0x1
pop ebx
add esp, 0x10
ret
AddBlipForPickup(dataSet.id, 0, 4)
AddBlipForPickup(entry.id, 0, 4)
AddBlipForPickup(Trophy, 0, 4)
b_key = AddBlipForPickup(gate_key, 0, 4)
blipPerfume = AddBlipForPickup(perfume, 0, 4)
element.blip = AddBlipForPickup(element.id, element.radarIcon or tblPropBlipDefault.radarIcon, element.blipStyle or tblPropBlipDefault.blipStyle)
tblItem.tblDress.blip = AddBlipForPickup(tblItem.tblDress.id, 0, 4)
tblItem.tblNecklace.blip = AddBlipForPickup(tblItem.tblNecklace.id, 0, 4)
tblItem.tblPerfume.blip = AddBlipForPickup(tblItem.tblPerfume.id, 0, 4)
push ecx
push ebx
push ebp
mov ebp, dword ptr [esp+0x10]
push esi
push edi
push 0x0
push ebp
call LuaParam::GetInt
mov esi, eax
push esi
mov ebx, 0x5
call 0x4438B0
add esp, 0xC
cmp eax, 0xFFFFFFFF
jnz 0x15
push eax
push ebp
call LuaParam::PushInt
lea eax, ptr [ebx-0x4]
add esp, 0x8
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0x1
push ebp
call LuaParam::GetInt
push ebp
mov dword ptr [esp+0x1C], eax
call 0x73AEA0
add esp, 0xC
cmp eax, 0x3
jl 0xF
push 0x2
push ebp
call LuaParam::GetInt
add esp, 0x8
mov ebx, eax
mov eax, dword ptr [esp+0x10]
mov edi, dword ptr [0xC674CC]
push 0x0
push eax
push ebx
push ecx
mov eax, esp
push esi
push 0xB
mov ecx, edi
mov byte ptr [eax], 0x0
mov byte ptr [eax+0x1], 0x0
mov byte ptr [eax+0x2], 0x0
mov byte ptr [eax+0x3], 0x2
call 0x54A5B0
mov esi, eax
push 0x5
push esi
mov ecx, edi
call 0x548BF0
push esi
mov ecx, 0xD02850
call 0x5DB940
mov ecx, eax
call 0x5DA7D0
push esi
push ebp
call LuaParam::PushInt
add esp, 0x8
pop edi
pop esi
pop ebp
mov eax, 0x1
pop ebx
pop ecx
ret
blip = AddBlipForProp(TRIGGER._SCHOOL_TURRET, 0, 4)
element.blip = AddBlipForProp(element.id, element.radarIcon or tblPropBlipDefault.radarIcon, element.blipStyle or tblPropBlipDefault.blipStyle)
gate1Blip = AddBlipForProp(TRIGGER._TRICH_TADGATES, 0, 1)
gate2Blip = AddBlipForProp(TRIGGER._TRICH_TADGATES01, 0, 1)
local blip = AddBlipForProp(TRIGGER._ANIBROOM, 0, 1)
local blip = AddBlipForProp(TRIGGER._JANSWTCH00, 0, 1)
local blip = AddBlipForProp(TRIGGER._JANSWTCH01, 0, 1)
room.window.shutterBlip = AddBlipForProp(room.window.shutter, 0, 1)
push ebx
push ebp
mov ebp, dword ptr [esp+0xC]
push esi
push edi
push 0x0
push ebp
mov ebx, 0x5
call LuaParam::GetInt
add esp, 0x8
test eax, eax
jl 0x1B
mov edx, dword ptr [0x20C7C48]
mov ecx, dword ptr [edx+0x4]
test byte ptr [eax+ecx*1], 0x80
jnz 0xC
mov ecx, dword ptr [edx+0xC]
imul ecx, eax
add ecx, dword ptr [edx]
jnz 0x17
push 0x0
push ebp
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
pop edi
pop esi
pop ebp
pop ebx
ret
push ecx
call 0x4EA3C0
mov edi, eax
add esp, 0x4
test edi, edi
jz 0xFFFFFFDE
push 0x1
push ebp
call LuaParam::GetInt
push ebp
mov esi, eax
call 0x73AEA0
add esp, 0xC
cmp eax, 0x3
jl 0xF
push 0x2
push ebp
call LuaParam::GetInt
add esp, 0x8
mov ebx, eax
push edi
call 0x44CB20
mov edi, dword ptr [0xC674CC]
add esp, 0x4
push 0x0
push esi
push ebx
push ecx
mov ecx, esp
push eax
mov byte ptr [ecx], 0x0
mov byte ptr [ecx+0x1], 0x0
mov byte ptr [ecx+0x2], 0x0
mov byte ptr [ecx+0x3], 0x2
push 0x7
mov ecx, edi
call 0x54A5B0
mov esi, eax
push 0x5
push esi
mov ecx, edi
call 0x548BF0
push esi
mov ecx, 0xD02850
call 0x5DB940
mov ecx, eax
call 0x5DA7D0
push esi
push ebp
call LuaParam::PushInt
add esp, 0x8
pop edi
pop esi
pop ebp
mov eax, 0x1
pop ebx
ret
AddInteriorArrestRestartPoint(2, POINTLIST._ARREST_RESTART_1, 2, 8, 19)
AddInteriorArrestRestartPoint(2, POINTLIST._BOYSDORM_BEDWAKEUP, 14, 19, 8)
AddInteriorArrestRestartPoint(38, POINTLIST._ARREST_ASYLUM, 0)
AddInteriorArrestRestartPoint(lArea, POINTLIST._ARREST_RESTART_1, 2, 8, 19)
AddInteriorArrestRestartPoint(lArea, POINTLIST._BOYSDORM_BEDWAKEUP, 14, 19, 8)
AddInteriorArrestRestartPoint(lArea, POINTLIST._RESTART_B_PS, 0)
AddInteriorArrestRestartPoint(lArea, POINTLIST._RESTART_I_PS, 0)
AddInteriorArrestRestartPoint(lArea, POINTLIST._RESTART_P_PS, 0)
AddInteriorArrestRestartPoint(lArea, POINTLIST._RESTART_R_PS, 0)
sub esp, 0x24
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x34]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x2
push esi
mov dword ptr [esp+0x34], eax
call LuaParam::GetInt
push 0x1
push esi
mov dword ptr [esp+0x30], eax
or ebx, 0xFFFFFFFF
xor ebp, ebp
mov dword ptr [esp+0x2C], 0x18
call LuaParam::GetInt
add esp, 0x18
push eax
mov ecx, 0xBC5E7C
call 0x6D6450
mov edi, eax
mov ecx, edi
call 0x6D59B0
mov ecx, edi
mov dword ptr [esp+0x20], eax
call 0x6D59B0
fld st, dword ptr [eax+0x1C]
fsub st, qword ptr [0x900AB8]
mov eax, dword ptr [0xAE9F68]
mov ecx, dword ptr [0xAE9F6C]
mov edx, dword ptr [0xAE9F70]
fstp dword ptr [esp+0x1C], st
push esi
fldz
mov dword ptr [esp+0x2C], eax
fstp dword ptr [esp+0x14], st
mov dword ptr [esp+0x30], ecx
mov dword ptr [esp+0x34], edx
call 0x73AEA0
add esp, 0x4
cmp eax, 0x5
jz 0x10
push esi
call 0x73AEA0
add esp, 0x4
cmp eax, 0x7
jnz 0x1B
push 0x3
push esi
call LuaParam::GetInt
push 0x4
push esi
mov ebp, eax
call LuaParam::GetInt
add esp, 0x10
mov dword ptr [esp+0x14], eax
push esi
call 0x73AEA0
add esp, 0x4
cmp eax, 0x7
jnz 0x56
push 0x5
push esi
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, 0xBC5E7C
call 0x6D6450
mov edi, eax
mov ecx, edi
call 0x6D59B0
mov ecx, dword ptr [eax]
mov dword ptr [esp+0x28], ecx
mov edx, dword ptr [eax+0x4]
mov dword ptr [esp+0x2C], edx
mov eax, dword ptr [eax+0x8]
mov ecx, edi
mov dword ptr [esp+0x30], eax
call 0x6D59B0
fld st, dword ptr [eax+0x1C]
fsub st, qword ptr [0x900AB8]
push 0x5
push esi
fstp dword ptr [esp+0x18], st
call LuaParam::GetInt
add esp, 0x8
mov ebx, eax
fld st, dword ptr [esp+0x10]
mov edx, dword ptr [esp+0x14]
mov eax, dword ptr [esp+0x18]
push ebx
push ecx
fstp dword ptr [esp], st
lea ecx, ptr [esp+0x30]
fld st, dword ptr [esp+0x24]
push ecx
push edx
mov edx, dword ptr [esp+0x34]
push ebp
push eax
push ecx
mov ecx, dword ptr [esp+0x3C]
fstp dword ptr [esp], st
push ecx
push edx
mov ecx, 0xBD1078
call 0x430E20
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret
AddInteriorAsleepRestartPoint(14, POINTLIST._BOYSDORM_BEDWAKEUP, 14)
AddInteriorAsleepRestartPoint(2, POINTLIST._KO_SCHOOL_INFIRMOUT, 0)
AddInteriorAsleepRestartPoint(30, POINTLIST._WAKE_NERD, 30)
AddInteriorAsleepRestartPoint(57, POINTLIST._WAKE_DROP, 57)
AddInteriorAsleepRestartPoint(59, POINTLIST._WAKE_JOCK, 59)
AddInteriorAsleepRestartPoint(60, POINTLIST._WAKE_PREP, 60)
AddInteriorAsleepRestartPoint(61, POINTLIST._WAKE_GRSR, 61)
AddInteriorAsleepRestartPoint(lArea, POINTLIST._KO_SCHOOL_INFIRMOUT, 0)
AddInteriorAsleepRestartPoint(lArea, POINTLIST._RESTART_B_HS, 0)
AddInteriorAsleepRestartPoint(lArea, POINTLIST._RESTART_I_HS, 0)
AddInteriorAsleepRestartPoint(lArea, POINTLIST._RESTART_P_HS, 0)
AddInteriorAsleepRestartPoint(lArea, POINTLIST._RESTART_R_HS, 0)
AddInteriorAsleepRestartPoint(lArea, POINTLIST._RESTART_RC_HS, 0)
sub esp, 0x24
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x34]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x2
push esi
mov dword ptr [esp+0x34], eax
call LuaParam::GetInt
push 0x1
push esi
mov dword ptr [esp+0x30], eax
or ebx, 0xFFFFFFFF
xor ebp, ebp
mov dword ptr [esp+0x2C], 0x18
call LuaParam::GetInt
add esp, 0x18
push eax
mov ecx, 0xBC5E7C
call 0x6D6450
mov edi, eax
mov ecx, edi
call 0x6D59B0
mov ecx, edi
mov dword ptr [esp+0x20], eax
call 0x6D59B0
fld st, dword ptr [eax+0x1C]
fsub st, qword ptr [0x900AB8]
mov eax, dword ptr [0xAE9F68]
mov ecx, dword ptr [0xAE9F6C]
mov edx, dword ptr [0xAE9F70]
fstp dword ptr [esp+0x1C], st
push esi
fldz
mov dword ptr [esp+0x2C], eax
fstp dword ptr [esp+0x14], st
mov dword ptr [esp+0x30], ecx
mov dword ptr [esp+0x34], edx
call 0x73AEA0
add esp, 0x4
cmp eax, 0x5
jz 0x10
push esi
call 0x73AEA0
add esp, 0x4
cmp eax, 0x7
jnz 0x1B
push 0x3
push esi
call LuaParam::GetInt
push 0x4
push esi
mov ebp, eax
call LuaParam::GetInt
add esp, 0x10
mov dword ptr [esp+0x14], eax
push esi
call 0x73AEA0
add esp, 0x4
cmp eax, 0x7
jnz 0x56
push 0x5
push esi
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, 0xBC5E7C
call 0x6D6450
mov edi, eax
mov ecx, edi
call 0x6D59B0
mov ecx, dword ptr [eax]
mov dword ptr [esp+0x28], ecx
mov edx, dword ptr [eax+0x4]
mov dword ptr [esp+0x2C], edx
mov eax, dword ptr [eax+0x8]
mov ecx, edi
mov dword ptr [esp+0x30], eax
call 0x6D59B0
fld st, dword ptr [eax+0x1C]
fsub st, qword ptr [0x900AB8]
push 0x5
push esi
fstp dword ptr [esp+0x18], st
call LuaParam::GetInt
add esp, 0x8
mov ebx, eax
fld st, dword ptr [esp+0x10]
mov edx, dword ptr [esp+0x14]
mov eax, dword ptr [esp+0x18]
push ebx
push ecx
fstp dword ptr [esp], st
lea ecx, ptr [esp+0x30]
fld st, dword ptr [esp+0x24]
push ecx
push edx
mov edx, dword ptr [esp+0x34]
push ebp
push eax
push ecx
mov ecx, dword ptr [esp+0x3C]
fstp dword ptr [esp], st
push ecx
push edx
mov ecx, 0xBD1078
call 0x431030
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret
AddInteriorKORestartPoint(14, POINTLIST._BOYSDORM_BEDWAKEUP, 14)
AddInteriorKORestartPoint(2, POINTLIST._KO_RESTART_1, 2, 8, 19)
AddInteriorKORestartPoint(2, POINTLIST._KO_SCHOOL_INFIRMOUT, 0, 19, 8)
AddInteriorKORestartPoint(38, POINTLIST._ARREST_ASYLUM, 0)
AddInteriorKORestartPoint(lArea, POINTLIST._KO_SCHOOL_INFIRMOUT, 0)
AddInteriorKORestartPoint(lArea, POINTLIST._RESTART_B_HS, 0)
AddInteriorKORestartPoint(lArea, POINTLIST._RESTART_I_HS, 0)
AddInteriorKORestartPoint(lArea, POINTLIST._RESTART_P_HS, 0)
AddInteriorKORestartPoint(lArea, POINTLIST._RESTART_R_HS, 0)
AddInteriorKORestartPoint(lArea, POINTLIST._RESTART_RC_HS, 0)
sub esp, 0x24
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x34]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x2
push esi
mov dword ptr [esp+0x34], eax
call LuaParam::GetInt
push 0x1
push esi
mov dword ptr [esp+0x30], eax
or ebx, 0xFFFFFFFF
xor ebp, ebp
mov dword ptr [esp+0x2C], 0x18
call LuaParam::GetInt
add esp, 0x18
push eax
mov ecx, 0xBC5E7C
call 0x6D6450
mov edi, eax
mov ecx, edi
call 0x6D59B0
mov ecx, edi
mov dword ptr [esp+0x20], eax
call 0x6D59B0
fld st, dword ptr [eax+0x1C]
fsub st, qword ptr [0x900AB8]
mov eax, dword ptr [0xAE9F68]
mov ecx, dword ptr [0xAE9F6C]
mov edx, dword ptr [0xAE9F70]
fstp dword ptr [esp+0x1C], st
push esi
fldz
mov dword ptr [esp+0x2C], eax
fstp dword ptr [esp+0x14], st
mov dword ptr [esp+0x30], ecx
mov dword ptr [esp+0x34], edx
call 0x73AEA0
add esp, 0x4
cmp eax, 0x5
jz 0x10
push esi
call 0x73AEA0
add esp, 0x4
cmp eax, 0x7
jnz 0x1B
push 0x3
push esi
call LuaParam::GetInt
push 0x4
push esi
mov ebp, eax
call LuaParam::GetInt
add esp, 0x10
mov dword ptr [esp+0x14], eax
push esi
call 0x73AEA0
add esp, 0x4
cmp eax, 0x7
jnz 0x56
push 0x5
push esi
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, 0xBC5E7C
call 0x6D6450
mov edi, eax
mov ecx, edi
call 0x6D59B0
mov ecx, dword ptr [eax]
mov dword ptr [esp+0x28], ecx
mov edx, dword ptr [eax+0x4]
mov dword ptr [esp+0x2C], edx
mov eax, dword ptr [eax+0x8]
mov ecx, edi
mov dword ptr [esp+0x30], eax
call 0x6D59B0
fld st, dword ptr [eax+0x1C]
fsub st, qword ptr [0x900AB8]
push 0x5
push esi
fstp dword ptr [esp+0x18], st
call LuaParam::GetInt
add esp, 0x8
mov ebx, eax
fld st, dword ptr [esp+0x10]
mov edx, dword ptr [esp+0x14]
mov eax, dword ptr [esp+0x18]
push ebx
push ecx
fstp dword ptr [esp], st
lea ecx, ptr [esp+0x30]
fld st, dword ptr [esp+0x24]
push ecx
push edx
mov edx, dword ptr [esp+0x34]
push ebp
push eax
push ecx
mov ecx, dword ptr [esp+0x3C]
fstp dword ptr [esp], st
push ecx
push edx
mov ecx, 0xBD1078
call 0x430920
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret
AddKORestartPoint(POINTLIST._KO_SCHOOL_INFIRMOUT, 0)
AddKORestartPoint(POINTLIST._RESTART_B_HS, 0)
AddKORestartPoint(POINTLIST._RESTART_I_HS, 0)
AddKORestartPoint(POINTLIST._RESTART_P_HS, 0)
AddKORestartPoint(POINTLIST._RESTART_R_HS, 0)
AddKORestartPoint(POINTLIST._RESTART_RC_HS, 0)
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x30]
push edi
push 0x1
push esi
call LuaParam::GetInt
xor ebp, ebp
push ebp
push esi
mov dword ptr [esp+0x28], eax
or ebx, 0xFFFFFFFF
mov dword ptr [esp+0x24], 0x18
call LuaParam::GetInt
add esp, 0x10
push eax
mov ecx, 0xBC5E7C
call 0x6D6450
mov edi, eax
mov ecx, edi
call 0x6D59B0
mov ecx, edi
mov dword ptr [esp+0x20], eax
call 0x6D59B0
fld st, dword ptr [eax+0x1C]
fsub st, qword ptr [0x900AB8]
mov eax, dword ptr [0xAE9F68]
mov ecx, dword ptr [0xAE9F6C]
mov edx, dword ptr [0xAE9F70]
fstp dword ptr [esp+0x1C], st
push esi
fldz
mov dword ptr [esp+0x28], eax
fstp dword ptr [esp+0x14], st
mov dword ptr [esp+0x2C], ecx
mov dword ptr [esp+0x30], edx
call 0x73AEA0
add esp, 0x4
cmp eax, 0x4
jz 0x10
push esi
call 0x73AEA0
add esp, 0x4
cmp eax, 0x6
jnz 0x1B
push 0x2
push esi
call LuaParam::GetInt
push 0x3
push esi
mov ebp, eax
call LuaParam::GetInt
add esp, 0x10
mov dword ptr [esp+0x14], eax
push esi
call 0x73AEA0
add esp, 0x4
cmp eax, 0x6
jnz 0x56
push 0x4
push esi
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, 0xBC5E7C
call 0x6D6450
mov edi, eax
mov ecx, edi
call 0x6D59B0
mov ecx, dword ptr [eax]
mov dword ptr [esp+0x24], ecx
mov edx, dword ptr [eax+0x4]
mov dword ptr [esp+0x28], edx
mov eax, dword ptr [eax+0x8]
mov ecx, edi
mov dword ptr [esp+0x2C], eax
call 0x6D59B0
fld st, dword ptr [eax+0x1C]
fsub st, qword ptr [0x900AB8]
push 0x5
push esi
fstp dword ptr [esp+0x18], st
call LuaParam::GetInt
add esp, 0x8
mov ebx, eax
fld st, dword ptr [esp+0x10]
mov edx, dword ptr [esp+0x14]
mov eax, dword ptr [esp+0x18]
push ebx
push ecx
fstp dword ptr [esp], st
lea ecx, ptr [esp+0x2C]
fld st, dword ptr [esp+0x24]
push ecx
push edx
push ebp
push eax
push ecx
mov ecx, dword ptr [esp+0x3C]
fstp dword ptr [esp], st
push ecx
mov ecx, 0xBD1078
call 0x430840
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret
-- never used
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::IsInt
add esp, 0x8
test al, al
jz 0x3A
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x8
test eax, eax
jl 0x2B
mov edx, dword ptr [0x20C7C48]
mov ecx, dword ptr [edx+0x4]
test byte ptr [eax+ecx*1], 0x80
jnz 0x1C
mov ecx, dword ptr [edx+0xC]
imul ecx, eax
add ecx, dword ptr [edx]
jz 0x12
mov ecx, dword ptr [ecx+0x1C]
test ecx, ecx
jz 0xB
push ecx
call 0x6C3FD0
add esp, 0x4
xor eax, eax
pop esi
ret
CLIENT
Does the same thing as RegisterLocalEventHandler("NativeScriptLoaded", callback) would. Mainly meant for legacy support.
SHARED
Like AllConfigValues, but surrounding quotation marks may be removed if present.
SHARED
Returns an iterator function for all values for a certain config key. Multiple values can be specified in a config file by having multiple lines with the same key.
CLIENT
Returns an iterator function for all running scripts in the game’s list of native scripts.
CLIENT
Returns an iterator function for all objects. All objects are guaranteed to be valid when returned.
AllowAreaTransitions(false)
AllowAreaTransitions(true)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetBool
mov ecx, dword ptr [0x9E4F4C]
mov byte ptr [ecx+0x85C], al
add esp, 0x8
xor eax, eax
ret
SHARED
A script header function that designates this script as being allowed to keep running when connecting to a server.
Mainly meant for things that don't affect gameplay, like an FPS counter for example.
CLIENT
Returns an iterator function for all peds. All peds are guaranteed to be valid when returned.
SERVER
Returns an iterator function for all connected players. If all is given and is true, even players that aren't in the "connected" state will be returned.
SHARED
Returns an iterator for every sync entity. Includes peds and vehicles, as they are still entities. If a dimension is specified, only entities in that dimension are returned.
SHARED
Returns an iterator for every value in the entity's scripted data table. Works similar to pairs, where a key and value is returned for each call.
SHARED
Returns an iterator for every sync ped. If a dimension is specified, only entities in that dimension are returned.
SERVER
Returns an iterator for all players with a sync ped. Keep in mind, all connected players are given a sync ped and will always have one until they're dropped. If a dimension is specified, only players in that dimension are returned.
SHARED
Returns an iterator for every sync vehicle. If a dimension is specified, only entities in that dimension are returned.
CLIENT
Returns an iterator for all vehicles. All vehicles are guaranteed to be valid when returned.
AreaActivatePopulationTrigger(gDepopTrigger)
AreaActivatePopulationTrigger(gTierPopTrigger)
AreaActivatePopulationTrigger(t)
AreaActivatePopulationTrigger(TRIGGER._1_01_SCHOOLTRIG)
AreaActivatePopulationTrigger(TRIGGER._1_02_SCHOOLTRIG)
AreaActivatePopulationTrigger(TRIGGER._1_03_AUTOSHOPAREA)
AreaActivatePopulationTrigger(TRIGGER._1_04_SUPPRESSFIELDPOP)
AreaActivatePopulationTrigger(TRIGGER._1_04_SUPPRESSPARKINGPOP)
AreaActivatePopulationTrigger(TRIGGER._2_S04_AUTOSHOPAREA)
AreaActivatePopulationTrigger(TRIGGER._2_S04_SCHOOLPOP)
AreaActivatePopulationTrigger(TRIGGER._3_08_SCHOOLPOP)
AreaActivatePopulationTrigger(TRIGGER._4_06_LOAD_FIELD)
AreaActivatePopulationTrigger(TRIGGER._5_02_DEPOPULATEDOCKS)
AreaActivatePopulationTrigger(TRIGGER._C5T_POP)
AreaActivatePopulationTrigger(TRIGGER._CAFTRIGGER)
AreaActivatePopulationTrigger(TRIGGER._GDORM_GIRLSONLY)
AreaActivatePopulationTrigger(TRIGGER._GDORM_POPOVERRIDE)
AreaActivatePopulationTrigger(TRIGGER._GREASERS)
AreaActivatePopulationTrigger(TRIGGER._INDUSTRIAL_DOCKS)
AreaActivatePopulationTrigger(TRIGGER._OUTSIDESCHOOL1)
AreaActivatePopulationTrigger(TRIGGER._POPROADS1)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetInt
mov ecx, dword ptr [0xC2C108]
add esp, 0x8
push eax
call 0x49EF60
xor eax, eax
ret
AlarmSpawner = AreaAddAmbientSpawner(10, 1, 0, 200)
BAStoreSpawners = AreaAddAmbientSpawner(23, 1, 100, 5000)
BDormDoorsSpawner = AreaAddAmbientSpawner(10, 3, 0, 1000)
BDormSpawn = AreaAddAmbientSpawner(1, 3, 100, 5000)
BEntranceDoor = AreaAddAmbientSpawner(1, 2, 0, 1000)
BEntranceDoor = AreaAddAmbientSpawner(2, 3, 0, 1000)
ClassSpawners = AreaAddAmbientSpawner(6, 2, 100, 2000)
ExitSpawner = AreaAddAmbientSpawner(5, 2, 100, 2500)
GDormSpawn = AreaAddAmbientSpawner(1, 3, 100, 5000)
gDormSpawner = AreaAddAmbientSpawner(2, 2, 50, 1000)
GymSpawner = AreaAddAmbientSpawner(2, 3, 50, 1000)
HangOutSpawners = AreaAddAmbientSpawner(3, 3, 100, 4000)
HouseSpawners = AreaAddAmbientSpawner(13, 1, 100, 10000)
IHouseSpawners = AreaAddAmbientSpawner(3, 1, 100, 8000)
local DTStoreSpawner = AreaAddAmbientSpawner(1, 1, 2000, 5000)
local FSSpawner = AreaAddAmbientSpawner(2, 1, 2000, 5000)
MovieSpawners = AreaAddAmbientSpawner(2, 1, 100, 5000)
PAhouseSpawners = AreaAddAmbientSpawner(6, 1, 100, 8000)
PAStoreSpawners = AreaAddAmbientSpawner(10, 1, 100, 5000)
RAStoreSpawners = AreaAddAmbientSpawner(7, 1, 100, 5000)
shared.gSchoolSpawner = AreaAddAmbientSpawner(33, 2, 50, 400)
XXXSpawners = AreaAddAmbientSpawner(1, 1, 100, 8000)
sub esp, 0x8
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x18]
push edi
push 0x1
push 0x0
push esi
call LuaParam::GetInt ; optional
push 0x1
push 0x1
push esi
mov edi, eax
call LuaParam::GetInt ; optional
push 0x0
push 0x2
push esi
mov ebx, eax
call LuaParam::GetInt ; optional
push 0x0
push 0x3
push esi
mov ebp, eax
call LuaParam::GetInt ; optional
add esp, 0x30
mov ecx, 0xD02850
mov dword ptr [esp+0x14], eax
call 0x5DB940
push 0x114
mov dword ptr [esp+0x14], eax
call 0x4A21E0
add esp, 0x4
test eax, eax
jz 0x1D
mov ecx, dword ptr [esp+0x10]
mov ecx, dword ptr [ecx+0x44]
mov edx, dword ptr [esp+0x14]
push ecx
push edx
push ebp
push ebx
push edi
mov ecx, eax
call 0x4A1700
mov edi, eax
jmp 0x4
xor edi, edi
mov ecx, dword ptr [0xC2C12C]
push edi
call 0x4A1A60
push edi
push esi
call LuaParam::PushHashID
add esp, 0x8
pop edi
pop esi
pop ebp
mov eax, 0x1
pop ebx
add esp, 0x8
ret
AreaAddAmbientSpawnPeriod(AlarmSpawner, classHour, classMinute, 10)
AreaAddAmbientSpawnPeriod(BAStoreSpawners, 7, 0, 960)
AreaAddAmbientSpawnPeriod(BDormDoorsSpawner, 12, 30, 30)
AreaAddAmbientSpawnPeriod(BDormDoorsSpawner, 16, 0, 300)
AreaAddAmbientSpawnPeriod(BDormDoorsSpawner, 7, 0, 125)
AreaAddAmbientSpawnPeriod(BDormSpawn, 11, 0, 75)
AreaAddAmbientSpawnPeriod(BDormSpawn, 7, 0, 108)
AreaAddAmbientSpawnPeriod(BEntranceDoor, 11, 30, 80)
AreaAddAmbientSpawnPeriod(BEntranceDoor, 12, 0, 45)
AreaAddAmbientSpawnPeriod(BEntranceDoor, 15, 30, 180)
AreaAddAmbientSpawnPeriod(BEntranceDoor, 15, 30, 420)
AreaAddAmbientSpawnPeriod(ClassSpawners, 11, 30, 30)
AreaAddAmbientSpawnPeriod(ClassSpawners, 15, 0, 30)
AreaAddAmbientSpawnPeriod(DTStoreSpawner, 7, 0, 720)
AreaAddAmbientSpawnPeriod(DTStoreSpawner, 7, 20, 720)
AreaAddAmbientSpawnPeriod(ExitSpawner, 11, 30, 90)
AreaAddAmbientSpawnPeriod(ExitSpawner, 7, 0, 120)
AreaAddAmbientSpawnPeriod(FSSpawner, 7, 20, 720)
AreaAddAmbientSpawnPeriod(GDormSpawn, 11, 30, 75)
AreaAddAmbientSpawnPeriod(GDormSpawn, 15, 30, 420)
AreaAddAmbientSpawnPeriod(GDormSpawn, 7, 0, 108)
AreaAddAmbientSpawnPeriod(gDormSpawner, 11, 30, 80)
AreaAddAmbientSpawnPeriod(gDormSpawner, 15, 30, 420)
AreaAddAmbientSpawnPeriod(GymSpawner, 11, 30, 75)
AreaAddAmbientSpawnPeriod(GymSpawner, 15, 30, 420)
AreaAddAmbientSpawnPeriod(GymSpawner, 7, 0, 105)
AreaAddAmbientSpawnPeriod(HangOutSpawners, 11, 30, 75)
AreaAddAmbientSpawnPeriod(HangOutSpawners, 15, 30, 420)
AreaAddAmbientSpawnPeriod(HangOutSpawners, 7, 0, 108)
AreaAddAmbientSpawnPeriod(HouseSpawners, 7, 0, 240)
AreaAddAmbientSpawnPeriod(IHouseSpawners, 7, 0, 1200)
AreaAddAmbientSpawnPeriod(MovieSpawners, 18, 0, 300)
AreaAddAmbientSpawnPeriod(PAhouseSpawners, 7, 0, 240)
AreaAddAmbientSpawnPeriod(PAStoreSpawners, 7, 0, 960)
AreaAddAmbientSpawnPeriod(RAStoreSpawners, 8, 0, 780)
AreaAddAmbientSpawnPeriod(shared.gSchoolSpawner, 11, 30, 30)
AreaAddAmbientSpawnPeriod(shared.gSchoolSpawner, 15, 30, 30)
AreaAddAmbientSpawnPeriod(XXXSpawners, 20, 0, 600)
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x10]
push edi
push 0x0
push esi
call LuaParam::GetUserData
mov ecx, dword ptr [0xC2C12C]
add esp, 0x8
push eax
call 0x4A1A80
push 0x0
push 0x1
push esi
mov ebx, eax
call LuaParam::GetInt ; optional
push 0x0
push 0x2
push esi
mov edi, eax
call LuaParam::GetInt ; optional
push 0x5A0
push 0x3
push esi
mov ebp, eax
call LuaParam::GetInt ; optional
add esp, 0x24
push eax
mov eax, edi
shl eax, 0x4
sub eax, edi
lea ecx, ptr [ebp+eax*4]
push ecx
mov ecx, ebx
call 0x4A17D0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
BAKidDockers = AreaAddDocker(4, 2)
BAStoreDockers = AreaAddDocker(21, 2)
BDormDock = AreaAddDocker(1, 2)
BDormDoorsDocker = AreaAddDocker(10, 2)
BExitDoor = AreaAddDocker(1, 5)
BExitDoor = AreaAddDocker(2, 3)
ClassDockers = AreaAddDocker(6, 2)
Docker1 = AreaAddDocker(2, 1, 2000, 0)
DTStoreDocker = AreaAddDocker(1, 1)
ExitDocker = AreaAddDocker(5, 3)
GDormDock = AreaAddDocker(1, 2)
gDormDocker = AreaAddDocker(2, 3)
GymDocker = AreaAddDocker(2, 3)
HangOutDockers = AreaAddDocker(4, 2)
HouseDockers = AreaAddDocker(13, 1)
IHouseDockers = AreaAddDocker(3, 1)
local FSDocker = AreaAddDocker(2, 1)
MovieDockers = AreaAddDocker(2, 2)
PAhouseDockers = AreaAddDocker(6, 1)
PAStoreDockers = AreaAddDocker(10, 1)
RAStoreDockers = AreaAddDocker(6, 1)
SchoolDocker = AreaAddDocker(33, 2)
XXXDockers = AreaAddDocker(1, 2)
push ebx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x1
push 0x0
push esi
call LuaParam::GetInt ; optional
push 0x1
push 0x1
push esi
mov edi, eax
call LuaParam::GetInt ; optional
add esp, 0x18
mov ecx, 0xD02850
mov ebx, eax
call 0x5DB940
mov ecx, dword ptr [0xC2AB68]
push eax
push ebx
push edi
call 0x46E980
push eax
push esi
call LuaParam::PushHashID
add esp, 0x8
pop edi
pop esi
mov eax, 0x1
pop ebx
ret
AreaAddDockLocation(BAKidDockers, POINTLIST.DT_trich_BikeShopDoor1, TRIGGER.DT_trich_BikeShopDoor)
AreaAddDockLocation(BAKidDockers, POINTLIST.DT_trich_FirewShopDoor1, TRIGGER.DT_trich_FirewShopDoor)
AreaAddDockLocation(BAKidDockers, POINTLIST.tbusines_BikeShopDoor1, TRIGGER.DT_tbusines_BikeShopDoor)
AreaAddDockLocation(BAKidDockers, POINTLIST.tbusines_ComicShopDoor1, TRIGGER.DT_tbusines_ComicShopDoor)
AreaAddDockLocation(BAStoreDockers, BusinessAreaDockers[i].point, BusinessAreaDockers[i].trigger)
AreaAddDockLocation(BDormDock, SchoolGroundsDockers[i].point, SchoolGroundsDockers[i].trigger)
AreaAddDockLocation(BDormDoorsDocker, key.Point, key.Trigger)
AreaAddDockLocation(BExitDoor, POINTLIST._DT_LIBRARYDOCKER, TRIGGER._DT_LIBRARYEXITR)
AreaAddDockLocation(BExitDoor, POINTLIST.DormExitDoorL, TRIGGER.DT_DormExitDoorL)
AreaAddDockLocation(ClassDockers, SchoolGroundsDockers[i].point, SchoolGroundsDockers[i].trigger)
AreaAddDockLocation(DTStoreDocker, gDockingPoint, gDockingDoor)
AreaAddDockLocation(ExitDocker, key.Point, key.Trigger)
AreaAddDockLocation(FSDocker, POINTLIST._FREAKSHOW_ENTRANCE, TRIGGER._DT_FREAKSHOW_ENTRANCE)
AreaAddDockLocation(FSDocker, POINTLIST._FREAKSHOW_EXIT, TRIGGER._DT_FREAKSHOW_EXIT)
AreaAddDockLocation(GDormDock, SchoolGroundsDockers[i].point, SchoolGroundsDockers[i].trigger)
AreaAddDockLocation(gDormDocker, POINTLIST._GDORMDOCK_DOORL, TRIGGER._DT_GDORM_DOORL)
AreaAddDockLocation(gDormDocker, POINTLIST._GDORMDOCK_DOORLEXIT, TRIGGER._DT_GDORM_DOORLEXIT)
AreaAddDockLocation(GymDocker, POINTLIST.DOCKGYM_DOORL, TRIGGER._DT_GYM_DOORL)
AreaAddDockLocation(GymDocker, POINTLIST.DOCKPOOL_DOORL, TRIGGER._DT_POOL_DOORL)
AreaAddDockLocation(HangOutDockers, SchoolGroundsDockers[i].point, SchoolGroundsDockers[i].trigger)
AreaAddDockLocation(HouseDockers, RichAreaDockers[i].point, RichAreaDockers[i].trigger)
AreaAddDockLocation(IHouseDockers, IndustrialDockers[i].point, IndustrialDockers[i].trigger)
AreaAddDockLocation(MovieDockers, BusinessAreaDockers[i].point, BusinessAreaDockers[i].trigger)
AreaAddDockLocation(PAhouseDockers, PoorAreaDockers[i].point, PoorAreaDockers[i].trigger)
AreaAddDockLocation(PAStoreDockers, PoorAreaDockers[i].point, PoorAreaDockers[i].trigger)
AreaAddDockLocation(RAStoreDockers, RichAreaDockers[i].point, RichAreaDockers[i].trigger)
AreaAddDockLocation(SchoolDocker, SchoolSpawnTable[i].Point, SchoolSpawnTable[i].Trigger)
AreaAddDockLocation(XXXDockers, BusinessAreaDockers[i].point, BusinessAreaDockers[i].trigger)
DockP1 = AreaAddDockLocation(Docker1, POINTLIST._SPAWNTEST_SPAWNP1, TRIGGER._SPAWNTEST_DOOR1)
push ebx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetUserData
mov ecx, dword ptr [0xC2AB68]
add esp, 0x8
push eax
call 0x46E9E0
push 0x1
push esi
mov edi, eax
call LuaParam::GetInt
push 0x2
push esi
mov ebx, eax
call LuaParam::GetInt
add esp, 0x10
push eax
push ebx
mov ecx, edi
call 0x46EB20
pop edi
pop esi
xor eax, eax
pop ebx
ret
AreaAddDockPeriod(BAKidDockers, 7, 0, 960)
AreaAddDockPeriod(BAStoreDockers, 7, 0, 960)
AreaAddDockPeriod(BDormDock, 0, 0, 1440)
AreaAddDockPeriod(BDormDoorsDocker, 11, 30, 60)
AreaAddDockPeriod(BDormDoorsDocker, 15, 30, 900)
AreaAddDockPeriod(BExitDoor, 12, 30, 45)
AreaAddDockPeriod(BExitDoor, 12, 45, 30)
AreaAddDockPeriod(BExitDoor, 15, 30, 180)
AreaAddDockPeriod(BExitDoor, 7, 0, 135)
AreaAddDockPeriod(ClassDockers, 12, 45, 30)
AreaAddDockPeriod(ClassDockers, 8, 45, 30)
AreaAddDockPeriod(Docker1, 11, 0, 15)
AreaAddDockPeriod(Docker1, 15, 0, 15)
AreaAddDockPeriod(DTStoreDocker, 7, 0, 720)
AreaAddDockPeriod(DTStoreDocker, 7, 20, 720)
AreaAddDockPeriod(ExitDocker, 11, 30, 30)
AreaAddDockPeriod(ExitDocker, 15, 30, 240)
AreaAddDockPeriod(FSDocker, 7, 20, 720)
AreaAddDockPeriod(GDormDock, 0, 0, 1440)
AreaAddDockPeriod(gDormDocker, 11, 30, 105)
AreaAddDockPeriod(gDormDocker, 15, 0, 420)
AreaAddDockPeriod(gDormDocker, 7, 0, 110)
AreaAddDockPeriod(GymDocker, 11, 30, 100)
AreaAddDockPeriod(GymDocker, 15, 0, 420)
AreaAddDockPeriod(GymDocker, 7, 0, 130)
AreaAddDockPeriod(HangOutDockers, 11, 30, 75)
AreaAddDockPeriod(HangOutDockers, 15, 30, 420)
AreaAddDockPeriod(HouseDockers, 17, 0, 300)
AreaAddDockPeriod(IHouseDockers, 7, 0, 1200)
AreaAddDockPeriod(MovieDockers, 18, 0, 180)
AreaAddDockPeriod(PAhouseDockers, 17, 0, 300)
AreaAddDockPeriod(PAStoreDockers, 7, 0, 960)
AreaAddDockPeriod(RAStoreDockers, 7, 0, 960)
AreaAddDockPeriod(SchoolDocker, 12, 45, 20)
AreaAddDockPeriod(SchoolDocker, 8, 45, 20)
AreaAddDockPeriod(XXXDockers, 20, 0, 600)
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x10]
push edi
push 0x0
push esi
call LuaParam::GetUserData
mov ecx, dword ptr [0xC2AB68]
add esp, 0x8
push eax
call 0x46E9E0
push 0x0
push 0x1
push esi
mov ebx, eax
call LuaParam::GetInt ; optional
push 0x0
push 0x2
push esi
mov edi, eax
call LuaParam::GetInt ; optional
push 0x5A0
push 0x3
push esi
mov ebp, eax
call LuaParam::GetInt ; optional
add esp, 0x24
push eax
mov eax, edi
shl eax, 0x4
sub eax, edi
lea ecx, ptr [ebp+eax*4]
push ecx
mov ecx, ebx
call 0x46E280
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
AreaAddExtraScene(270, -100, true, true, true, 0, 10)
sub esp, 0x28
push ebx
push esi
mov esi, dword ptr [esp+0x34]
push edi
push 0x0
push esi
call LuaParam::GetInt
mov dword ptr [esp+0x1C], eax
fild st, dword ptr [esp+0x1C]
push 0x1
push esi
fstp dword ptr [esp+0x28], st
call LuaParam::GetInt
mov dword ptr [esp+0x24], eax
fild st, dword ptr [esp+0x24]
push 0x2
push esi
fstp dword ptr [esp+0x34], st
call LuaParam::GetBool
mov bl, al
push 0x3
push esi
mov byte ptr [esp+0x34], bl
call LuaParam::GetBool
push 0x4
push esi
mov byte ptr [esp+0x34], al
call LuaParam::GetBool
push 0x5
push esi
mov byte ptr [esp+0x40], al
call LuaParam::GetInt
push 0x6
push esi
mov edi, eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x58], st
add esp, 0x38
cmp byte ptr [esp+0xC], 0x0
jnz 0x9
cmp byte ptr [esp+0x10], 0x0
jz 0x8
mov bl, 0x1
mov byte ptr [esp+0x14], bl
fld st, dword ptr [esp+0x18]
mov eax, dword ptr [esp+0x10]
mov edx, dword ptr [esp+0x14]
fstp dword ptr [esp+0x28], st
fld st, dword ptr [esp+0x1C]
push ecx
mov ecx, dword ptr [esp+0x10]
fstp dword ptr [esp+0x30], st
fldz
fstp dword ptr [esp+0x34], st
fld st, dword ptr [esp+0x24]
fstp dword ptr [esp], st
push edi
push eax
push ecx
mov ecx, dword ptr [esp+0x38]
push edx
mov edx, dword ptr [esp+0x40]
sub esp, 0xC
mov eax, esp
mov dword ptr [eax], ecx
mov ecx, dword ptr [esp+0x50]
mov dword ptr [eax+0x4], edx
mov dword ptr [eax+0x8], ecx
call 0x4298E0
add esp, 0x20
test bl, bl
jz 0x2E
lea edx, ptr [esp+0x28]
push edx
call 0x446900
mov edx, dword ptr [eax]
add esp, 0x4
push 0x0
sub esp, 0xC
mov ecx, esp
mov dword ptr [ecx], edx
mov edx, dword ptr [eax+0x4]
mov eax, dword ptr [eax+0x8]
mov dword ptr [ecx+0x4], edx
mov dword ptr [ecx+0x8], eax
call 0x439CF0
add esp, 0x10
cmp byte ptr [esp+0xC], 0x0
jz 0x26
lea ecx, ptr [esp+0x28]
push ecx
call 0x446900
fld st, dword ptr [eax]
fstp dword ptr [esp+0x24], st
lea edx, ptr [esp+0x24]
fld st, dword ptr [eax+0x4]
push edx
fstp dword ptr [esp+0x2C], st
call 0x56FE00
add esp, 0x8
cmp byte ptr [esp+0x10], 0x0
jz 0x7
call 0x429990
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x28
ret
idSpawner = AreaAddMissionSpawner(gMaxKills, gSimultEnemies, -1, 0, gTimeForSpawns)
idSpawner = AreaAddMissionSpawner(max_rats, 15, -1, 0, 1000)
idSpawner = AreaAddMissionSpawner(noToSpawn, simultEnemies, -1, 2, 0, timeForSpawns)
nerd_spawner1 = AreaAddMissionSpawner(1, 1, -1, 1, random_spawn1, random_delay1)
nerd_spawner2 = AreaAddMissionSpawner(1, 1, -1, 1, random_spawn2, random_delay2)
nerd_spawner3 = AreaAddMissionSpawner(1, 1, -1, 1, random_spawn3, random_delay3)
nerd_spawner5 = AreaAddMissionSpawner(1, 1, -1, 1, random_spawn5, random_delay5)
nerd_spawner6 = AreaAddMissionSpawner(1, 1, -1, 1, random_spawn6, random_delay6)
nerd_spawner7 = AreaAddMissionSpawner(1, 1, -1, 1, random_spawn7, random_delay7)
Spawner1 = AreaAddMissionSpawner(5, 2, TRIGGER._SPAWNTEST_TRIG1, 2, 2000, 2000)
spawnerID = AreaAddMissionSpawner(1, 1, TRIGGER._POORAREA, 5)
tblStore.spawnerid = AreaAddMissionSpawner(1, 1, -1, 1, 0, 0)
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x24]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov ebp, eax
call LuaParam::GetInt
push 0xFFFFFFFF
push 0x2
push esi
mov dword ptr [esp+0x3C], eax
call LuaParam::GetInt ; optional
push 0x1
push 0x3
push esi
mov edi, eax
call LuaParam::GetInt ; optional
push 0x0
push 0x4
push esi
mov dword ptr [esp+0x50], eax
call LuaParam::GetInt ; optional
push 0x0
push 0x5
push esi
mov dword ptr [esp+0x58], eax
call LuaParam::GetInt ; optional
add esp, 0x40
mov ecx, 0xD02850
mov dword ptr [esp+0x14], eax
call 0x5DB940
xor ebx, ebx
cmp edi, 0xFFFFFFFF
mov dword ptr [esp+0x10], eax
jz 0x28
test edi, edi
jnl 0x6
xor eax, eax
jmp 0x1D
mov ecx, dword ptr [0x20C7C48]
mov eax, dword ptr [ecx+0x4]
test byte ptr [edi+eax*1], 0x80
jz 0x6
xor eax, eax
jmp 0xA
mov eax, dword ptr [ecx+0xC]
imul eax, edi
add eax, dword ptr [ecx]
mov ebx, dword ptr [eax+0x2C]
push 0x174
call 0x4A20F0
add esp, 0x4
test eax, eax
jz 0x2B
mov ecx, dword ptr [esp+0x10]
mov edx, dword ptr [ecx+0x44]
mov ecx, dword ptr [esp+0x14]
push ecx
mov ecx, dword ptr [esp+0x1C]
push ecx
mov ecx, dword ptr [esp+0x24]
push ecx
push ebx
push edx
mov edx, dword ptr [esp+0x34]
push edx
push ebp
mov ecx, eax
call 0x4A14C0
mov edi, eax
jmp 0x4
xor edi, edi
mov ecx, dword ptr [0xC2C12C]
push edi
call 0x4A1A30
push edi
push esi
call LuaParam::PushHashID
add esp, 0x8
pop edi
pop esi
pop ebp
mov eax, 0x1
pop ebx
add esp, 0x14
ret
AreaAddPedModelIdToSpawnLocation(idSpawner, gSpawnIds[spawnerUsed], idModel)
AreaAddPedModelIdToSpawnLocation(idSpawner, spawn_loc[i], rat_model)
AreaAddPedModelIdToSpawnLocation(nerd_spawner1, ns_point1, 7)
AreaAddPedModelIdToSpawnLocation(nerd_spawner1, ns_point1, 8)
AreaAddPedModelIdToSpawnLocation(nerd_spawner1, ns_point1, 9)
AreaAddPedModelIdToSpawnLocation(nerd_spawner2, ns_point2, 7)
AreaAddPedModelIdToSpawnLocation(nerd_spawner2, ns_point2, 8)
AreaAddPedModelIdToSpawnLocation(nerd_spawner2, ns_point2, 9)
AreaAddPedModelIdToSpawnLocation(nerd_spawner3, ns_point3, 7)
AreaAddPedModelIdToSpawnLocation(nerd_spawner3, ns_point3, 8)
AreaAddPedModelIdToSpawnLocation(nerd_spawner3, ns_point3, 9)
AreaAddPedModelIdToSpawnLocation(nerd_spawner5, ns_point5, 7)
AreaAddPedModelIdToSpawnLocation(nerd_spawner5, ns_point5, 8)
AreaAddPedModelIdToSpawnLocation(nerd_spawner5, ns_point5, 9)
AreaAddPedModelIdToSpawnLocation(nerd_spawner6, ns_point6, 7)
AreaAddPedModelIdToSpawnLocation(nerd_spawner6, ns_point6, 8)
AreaAddPedModelIdToSpawnLocation(nerd_spawner6, ns_point6, 9)
AreaAddPedModelIdToSpawnLocation(nerd_spawner7, ns_point7, 7)
AreaAddPedModelIdToSpawnLocation(nerd_spawner7, ns_point7, 8)
AreaAddPedModelIdToSpawnLocation(nerd_spawner7, ns_point7, 9)
AreaAddPedModelIdToSpawnLocation(spawnerID, spawnerLoc1ID, 40)
AreaAddPedModelIdToSpawnLocation(tblStore.spawnerid, spawnLoc, tblStore.spawninfo.model)
push ebx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetUserData
mov ecx, dword ptr [0xC2C12C]
add esp, 0x8
push eax
call 0x4A1A00
push 0x1
push esi
mov edi, eax
call LuaParam::GetUserData
add esp, 0x8
test edi, edi
mov ebx, eax
jz 0x15
push 0x2
push esi
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, ebx
call 0x4A1200
pop edi
pop esi
xor eax, eax
pop ebx
ret
AreaAddPedTypeToSpawnLocation(Spawner1, SpawnP1, 2)
AreaAddPedTypeToSpawnLocation(Spawner1, SpawnP2, 2)
push ebx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetUserData
mov ecx, dword ptr [0xC2C12C]
add esp, 0x8
push eax
call 0x4A1A00
push 0x1
push esi
mov edi, eax
call LuaParam::GetUserData
add esp, 0x8
test edi, edi
mov ebx, eax
jz 0x15
push 0x2
push esi
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, ebx
call 0x4A1210
pop edi
pop esi
xor eax, eax
pop ebx
ret
AreaAddSpawnLocation(AlarmSpawner, key.Point, key.Trigger)
AreaAddSpawnLocation(BAStoreSpawners, BusinessAreaSpawners[i].point, BusinessAreaSpawners[i].trigger)
AreaAddSpawnLocation(BDormDoorsSpawner, key.Point, key.Trigger)
AreaAddSpawnLocation(BDormSpawn, SchoolGroundsSpawners[i].point, SchoolGroundsSpawners[i].trigger)
AreaAddSpawnLocation(BEntranceDoor, POINTLIST._DT_LIBRARYSPAWNER, TRIGGER._ESCDOORL)
AreaAddSpawnLocation(BEntranceDoor, POINTLIST.DormExitDoorR, TRIGGER.DormExitDoorR)
AreaAddSpawnLocation(ClassSpawners, SchoolGroundsSpawners[i].point, SchoolGroundsSpawners[i].trigger)
AreaAddSpawnLocation(DTStoreSpawner, gDockingPoint, gDockingDoor)
AreaAddSpawnLocation(ExitSpawner, key.Point, key.Trigger)
AreaAddSpawnLocation(FSSpawner, POINTLIST._FREAKSHOW_ENTRANCE, TRIGGER._DT_FREAKSHOW_ENTRANCE)
AreaAddSpawnLocation(FSSpawner, POINTLIST._FREAKSHOW_EXIT, TRIGGER._DT_FREAKSHOW_EXIT)
AreaAddSpawnLocation(GDormSpawn, SchoolGroundsSpawners[i].point, SchoolGroundsSpawners[i].trigger)
AreaAddSpawnLocation(gDormSpawner, POINTLIST._GDORMSPAWN_DOORL, TRIGGER._DT_GDORM_DOORL)
AreaAddSpawnLocation(gDormSpawner, POINTLIST._GDORMSPAWN_DOORR, TRIGGER._GDORM_DOORR)
AreaAddSpawnLocation(GymSpawner, POINTLIST.SPAWNGYM_DOORR, TRIGGER._GYML_DOORR)
AreaAddSpawnLocation(GymSpawner, POINTLIST.SPAWNPOOL_DOORR, TRIGGER._POOL_DOORR)
AreaAddSpawnLocation(HangOutSpawners, SchoolGroundsSpawners[i].point, SchoolGroundsSpawners[i].trigger)
AreaAddSpawnLocation(HouseSpawners, RichAreaSpawners[i].point, RichAreaSpawners[i].trigger)
AreaAddSpawnLocation(IHouseSpawners, IndustrialSpawners[i].point, IndustrialSpawners[i].trigger)
AreaAddSpawnLocation(MovieSpawners, BusinessAreaSpawners[i].point, BusinessAreaSpawners[i].trigger)
AreaAddSpawnLocation(PAhouseSpawners, PoorAreaSpawners[i].point, PoorAreaSpawners[i].trigger)
AreaAddSpawnLocation(PAStoreSpawners, PoorAreaSpawners[i].point, PoorAreaSpawners[i].trigger)
AreaAddSpawnLocation(RAStoreSpawners, RichAreaSpawners[i].point, RichAreaSpawners[i].trigger)
AreaAddSpawnLocation(shared.gSchoolSpawner, SchoolSpawnTable[i].Point, SchoolSpawnTable[i].Trigger)
AreaAddSpawnLocation(XXXSpawners, BusinessAreaSpawners[i].point, BusinessAreaSpawners[i].trigger)
DockP2 = AreaAddSpawnLocation(Docker1, POINTLIST._SPAWNTEST_SPAWNP2, TRIGGER._SPAWNTEST_DOOR2)
gSpawnIds[i] = AreaAddSpawnLocation(idSpawner, spawnLoc.pointlist, spawnLoc.trigger)
ns_point1 = AreaAddSpawnLocation(nerd_spawner1, POINTLIST._4_02_O_WN1_1, TRIGGER._4_02_O_WN1_1T)
ns_point2 = AreaAddSpawnLocation(nerd_spawner2, POINTLIST._4_02_O_WN2_1, TRIGGER._4_02_O_WN2_1T)
ns_point3 = AreaAddSpawnLocation(nerd_spawner3, POINTLIST._4_02_O_WN3_1, TRIGGER._4_02_O_WN3_1T)
ns_point5 = AreaAddSpawnLocation(nerd_spawner5, POINTLIST._4_02_O_WN4_1, TRIGGER._4_02_O_WN4_1T)
ns_point6 = AreaAddSpawnLocation(nerd_spawner6, POINTLIST._4_02_O_R1_1, TRIGGER._4_02_O_R1_1T)
ns_point7 = AreaAddSpawnLocation(nerd_spawner7, POINTLIST._4_02_O_R2_1, TRIGGER._4_02_O_R2_1T)
spawn_loc[i] = AreaAddSpawnLocation(idSpawner, SpawnPoints[i], SpawnTriggers[i])
spawnerLoc1ID = AreaAddSpawnLocation(spawnerID, POINTLIST._3_02_SPAWNER01, TRIGGER._3_02_SPAWNER01)
spawnLoc = AreaAddSpawnLocation(tblStore.spawnerid, tblStore.spawninfo.point, tblStore.spawninfo.trigger)
SpawnP1 = AreaAddSpawnLocation(Spawner1, POINTLIST._SPAWNTEST_SPAWNP1, TRIGGER._SPAWNTEST_DOOR1)
SpawnP2 = AreaAddSpawnLocation(Spawner1, POINTLIST._SPAWNTEST_SPAWNP2, TRIGGER._SPAWNTEST_DOOR2)
push ebx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetUserData
mov ecx, dword ptr [0xC2C12C]
add esp, 0x8
push eax
call 0x4A1AC0
push 0x1
push esi
mov edi, eax
call LuaParam::GetInt
push 0x2
push esi
mov ebx, eax
call LuaParam::GetInt
mov edx, dword ptr [edi]
add esp, 0x10
push eax
mov eax, dword ptr [edx+0x8]
push ebx
mov ecx, edi
call 0x5B6540
push eax
push esi
call LuaParam::PushHashID
add esp, 0x8
pop edi
pop esi
mov eax, 0x1
pop ebx
ret
AreaCancelStoredTransition()
mov ecx, 0xBCC580
call 0x415D80
xor eax, eax
ret
AreaClearAllExplosions()
call 0x4D2680
xor eax, eax
ret
AreaClearAllPeds()
push ebp
mov ebp, dword ptr [0xC0F5F0]
push edi
mov edi, dword ptr [ebp+0x8]
test edi, edi
jz 0x4A
push esi
mov eax, dword ptr [ebp+0x4]
sub edi, 0x1
test byte ptr [edi+eax*1], 0x80
jnz 0x38
mov esi, dword ptr [ebp+0xC]
imul esi, edi
add esi, dword ptr [ebp]
jz 0x2D
cmp byte ptr [esi+0x1570], 0x2
jz 0x24
cmp dword ptr [esi+0x1310], 0xD
jz 0x1B
push esi
mov ecx, 0xBCD098
call 0x4245E0
test al, al
jnz 0xC
mov edx, dword ptr [esi]
mov eax, dword ptr [edx]
push 0x1
mov ecx, esi
call 0x5B8022
test edi, edi
jnz 0xFFFFFFBC
pop esi
pop edi
xor eax, eax
pop ebp
ret
AreaClearAllProjectiles()
AreaClearAllProjectiles(399)
AreaClearAllProjectiles(403)
push esi
mov esi, dword ptr [esp+0x8]
push esi
call 0x73AEA0
add esp, 0x4
test eax, eax
jle 0x17
push 0x0
push esi
call LuaParam::GetInt
push eax
call 0x4D49F0
add esp, 0xC
xor eax, eax
pop esi
ret
call 0x4D4A90
xor eax, eax
pop esi
ret
AreaClearAllVehicles()
push ecx
push ebp
push edi
mov edi, dword ptr [0xC0F5F4]
mov ebp, dword ptr [edi+0x8]
test ebp, ebp
mov dword ptr [esp+0x8], edi
jz 0x78
push ebx
push esi
mov eax, dword ptr [edi+0x4]
sub ebp, 0x1
test byte ptr [eax+ebp*1], 0x80
jnz 0x64
mov esi, dword ptr [edi+0xC]
imul esi, ebp
add esi, dword ptr [edi]
jz 0x5A
mov ecx, esi
call 0x4CB7F0
test al, al
jz 0x4F
mov ecx, dword ptr [0xC1AEA8]
cmp dword ptr [ecx+0x1554], esi
jz 0x41
xor eax, eax
cmp dword ptr [esi+0x28C], eax
jle 0x2D
lea ebx, ptr [esi+0x1C4]
lea edi, ptr [eax+0x1]
push edi
mov ecx, ebx
call 0x4CE560
test eax, eax
jz 0xA
push eax
mov ecx, ebx
call 0x4CEA60
mov eax, edi
cmp eax, dword ptr [esi+0x28C]
jl 0xFFFFFFE1
mov edi, dword ptr [esp+0x10]
mov edx, dword ptr [esi]
mov eax, dword ptr [edx]
push 0x1
mov ecx, esi
call 0x5B80B4
test ebp, ebp
jnz 0xFFFFFF90
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
pop ecx
ret
AreaClearDockers()
mov ecx, 0xD02850
call 0x5DB940
test eax, eax
mov ecx, dword ptr [0xC2AB68]
jz 0xB
push eax
call 0x46EBC0
xor eax, eax
ret
call 0x46EC30
xor eax, eax
ret
AreaClearPatrolPaths()
mov ecx, 0xD02850
call 0x5DB940
test eax, eax
mov ecx, dword ptr [0xC2B034]
jz 0xB
push eax
call 0x4729D0
xor eax, eax
ret
call 0x472AF0
xor eax, eax
ret
AreaClearSpawners()
mov ecx, 0xD02850
call 0x5DB940
test eax, eax
mov ecx, dword ptr [0xC2C12C]
jz 0xB
push eax
call 0x4A1C00
xor eax, eax
ret
call 0x4A1980
xor eax, eax
ret
AreaDeactivatePopulationTrigger(gDepopTrigger)
AreaDeactivatePopulationTrigger(gTierPopTrigger)
AreaDeactivatePopulationTrigger(t)
AreaDeactivatePopulationTrigger(TRIGGER._1_02_POPULATIONTRIG)
AreaDeactivatePopulationTrigger(TRIGGER._1_03_AUTOSHOPAREA)
AreaDeactivatePopulationTrigger(TRIGGER._1_04_SUPPRESSFIELDPOP)
AreaDeactivatePopulationTrigger(TRIGGER._1_04_SUPPRESSPARKINGPOP)
AreaDeactivatePopulationTrigger(TRIGGER._2_S04_AUTOSHOPAREA)
AreaDeactivatePopulationTrigger(TRIGGER._2_S04_SCHOOLPOP)
AreaDeactivatePopulationTrigger(TRIGGER._3_08_SCHOOLPOP)
AreaDeactivatePopulationTrigger(TRIGGER._4_06_LOAD_FIELD)
AreaDeactivatePopulationTrigger(TRIGGER._5_02_DEPOPRICHAREA)
AreaDeactivatePopulationTrigger(TRIGGER._5_02_DEPOPULATEDOCKS)
AreaDeactivatePopulationTrigger(TRIGGER._CAFTRIGGER)
AreaDeactivatePopulationTrigger(TRIGGER._GDORM_GIRLSONLY)
AreaDeactivatePopulationTrigger(TRIGGER._GDORM_POPOVERRIDE)
AreaDeactivatePopulationTrigger(TRIGGER._GREASERS)
AreaDeactivatePopulationTrigger(TRIGGER._GYMPOOL_POPOVERRIDE)
AreaDeactivatePopulationTrigger(TRIGGER._INDUSTRIAL_DOCKS)
AreaDeactivatePopulationTrigger(TRIGGER._JOCKS)
AreaDeactivatePopulationTrigger(TRIGGER._OUTSIDESCHOOL1)
AreaDeactivatePopulationTrigger(TRIGGER._POPROADS1)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetInt
mov ecx, dword ptr [0xC2C108]
add esp, 0x8
push eax
call 0x49EFA0
xor eax, eax
ret
AreaDeteriorateAttitudeForPopTriggerPedType(TRIGGER._BOXINGTURFTRIGGER, 5)
AreaDeteriorateAttitudeForPopTriggerPedType(TRIGGER._BULLYTURF, 11)
AreaDeteriorateAttitudeForPopTriggerPedType(TRIGGER._DT_COMICSHOP, 1)
AreaDeteriorateAttitudeForPopTriggerPedType(TRIGGER._DT_DROPOUTALLEY, 3)
AreaDeteriorateAttitudeForPopTriggerPedType(TRIGGER._DT_GASSTATION, 4)
AreaDeteriorateAttitudeForPopTriggerPedType(TRIGGER._DT_GREASERALLEY, 4)
AreaDeteriorateAttitudeForPopTriggerPedType(TRIGGER._GREASERS, 4)
AreaDeteriorateAttitudeForPopTriggerPedType(TRIGGER._INDUSTRIALAREA_DROPOUTENCLAVE, 3)
AreaDeteriorateAttitudeForPopTriggerPedType(TRIGGER._INPOOLAREA, 2)
AreaDeteriorateAttitudeForPopTriggerPedType(TRIGGER._JOCKS, 2)
AreaDeteriorateAttitudeForPopTriggerPedType(TRIGGER._JOCKS_FOOTBALLFIELD, 2)
AreaDeteriorateAttitudeForPopTriggerPedType(TRIGGER._NERDS, 1)
AreaDeteriorateAttitudeForPopTriggerPedType(TRIGGER._POOR_DROPTURF1, 3)
AreaDeteriorateAttitudeForPopTriggerPedType(TRIGGER._POORAREA, 4)
AreaDeteriorateAttitudeForPopTriggerPedType(TRIGGER._PREPS, 5)
AreaDeteriorateAttitudeForPopTriggerPedType(TRIGGER._RICH_GREASERALLEY, 4)
AreaDeteriorateAttitudeForPopTriggerPedType(TRIGGER._RICH_GREASERALLEY2, 4)
AreaDeteriorateAttitudeForPopTriggerPedType(TRIGGER._RICHAREA, 5)
push esi
mov esi, dword ptr [esp+0x8]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetInt
mov ecx, dword ptr [0xC2C108]
add esp, 0x10
push eax
push edi
call 0x49EFE0
pop edi
xor eax, eax
pop esi
ret
AreaDisableAllPatrolPaths()
mov ecx, dword ptr [0xC2B034]
call 0x472860
xor eax, eax
ret
AreaDisableCameraControlForTransition(false)
AreaDisableCameraControlForTransition(true)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetBool
mov byte ptr [0xBCCDDF], al
add esp, 0x8
xor eax, eax
ret
AreaDisablePatrolPath(pathID)
while not AreaDisablePatrolPath(PATH._HALLSPATROL_1A) do
while not AreaDisablePatrolPath(PATH._HALLSPATROL_2B) do
while not AreaDisablePatrolPath(PATH._SGD_PREFECT2) do
while not AreaDisablePatrolPath(PATH._SGD_PREFECT3) do
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x8
xor esi, esi
cmp eax, 0xFFFFFFFF
jz 0x20
mov ecx, dword ptr [0xD13CB4]
push eax
call 0x5ED3A0
mov esi, eax
test esi, esi
jz 0x10
mov ecx, dword ptr [0xC2B034]
push esi
call 0x4723A0
test esi, esi
setnz al
push eax
push edi
call LuaParam::PushBool
add esp, 0x8
pop edi
mov eax, 0x1
pop esi
ret
-- never used
mov ecx, 0xBCC580
call 0x415290
xor eax, eax
ret
AreaEnableAllPatrolPaths()
mov ecx, dword ptr [0xC2B034]
call 0x4722F0
xor eax, eax
ret
AreaEnablePatrolPath(PATH._HALLSPATROL_1A)
AreaEnablePatrolPath(PATH._HALLSPATROL_2A)
AreaEnablePatrolPath(pathID)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetInt
mov ecx, dword ptr [0xD13CB4]
add esp, 0x8
push eax
call 0x5ED3A0
test eax, eax
jz 0xE
mov ecx, dword ptr [0xC2B034]
push eax
call 0x4720D0
xor eax, eax
ret
AreaEnsureSpecialEntitiesAreCreated()
mov ecx, 0xBA6C4C
call 0x6AEA10
xor eax, eax
ret
AreaEnsureSpecialEntitiesAreCreatedWithOverride("1_03", 1)
AreaEnsureSpecialEntitiesAreCreatedWithOverride("1_03", 4)
AreaEnsureSpecialEntitiesAreCreatedWithOverride("3_G3", 0)
AreaEnsureSpecialEntitiesAreCreatedWithOverride("4_G4", 4)
AreaEnsureSpecialEntitiesAreCreatedWithOverride("5_01", 0)
AreaEnsureSpecialEntitiesAreCreatedWithOverride("5_05", 1)
AreaEnsureSpecialEntitiesAreCreatedWithOverride("5_05", 2)
AreaEnsureSpecialEntitiesAreCreatedWithOverride("5_05", 4)
push esi
mov esi, dword ptr [esp+0x8]
push 0x1
push esi
call LuaParam::GetInt
add esp, 0x8
push eax
push 0x0
push esi
call LuaParam::GetString
add esp, 0x8
push eax
mov ecx, 0xBA6C4C
call 0x6AE6F0
mov ecx, 0xBA6C4C
call 0x6AEA10
push 0x0
push 0x0
mov ecx, 0xBA6C4C
call 0x6AE6F0
xor eax, eax
pop esi
ret
AreaForceLoadAreaByAreaTransition(false)
AreaForceLoadAreaByAreaTransition(true)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetBool
mov byte ptr [0xBCCDE0], al
add esp, 0x8
xor eax, eax
ret
eX, eY, eZ, eAreacode, eHeading = AreaGetPlayerPositionBeforeStore()
fld st, dword ptr [0xBCCE20]
push esi
mov esi, dword ptr [esp+0x8]
push ecx
fstp dword ptr [esp], st
push esi
call LuaParam::PushFloat
fld st, dword ptr [0xBCCE24]
add esp, 0x4
fstp dword ptr [esp], st
push esi
call LuaParam::PushFloat
fld st, dword ptr [0xBCCE28]
add esp, 0x4
fstp dword ptr [esp], st
push esi
call LuaParam::PushFloat
mov eax, dword ptr [0xBCCE30]
push eax
push esi
call LuaParam::PushInt
fld st, dword ptr [0xBCCE2C]
add esp, 0xC
fstp dword ptr [esp], st
push esi
call LuaParam::PushFloat
add esp, 0x8
mov eax, 0x5
pop esi
ret
elseif DistanceBetweenCoords3d(x1, y1, z1, x2, y2, z2) > AreaGetPopulationCullDistance() == true then
elseif DistanceBetweenCoords3d(x1, y1, z1, x2, y2, z2) > AreaGetPopulationCullDistance() and AreaGetVisible() ~= 2 then
elseif DistanceBetweenCoords3d(x1, y1, z1, x2, y2, z2) > AreaGetPopulationCullDistance() then
if DistanceBetweenCoords3d(x1, y1, z1, x2, y2, z2) > AreaGetPopulationCullDistance() == true then
if DistanceBetweenCoords3d(x1, y1, z1, x2, y2, z2) > AreaGetPopulationCullDistance() or currentArea ~= AreaGetVisible() then
if DistanceBetweenCoords3d(x1, y1, z1, x2, y2, z2) > AreaGetPopulationCullDistance() then
mov eax, dword ptr [0xC2C108]
fld st, dword ptr [eax+0x7828]
push ecx
mov ecx, dword ptr [esp+0x8]
fstp dword ptr [esp], st
push ecx
call LuaParam::PushFloat
add esp, 0x8
mov eax, 0x1
ret
-- never used
mov eax, dword ptr [0xC2C108]
movzx ecx, byte ptr [eax+0x7898]
mov edx, dword ptr [esp+0x4]
shr cl, 0x5
and ecx, 0xFFFFFF01
push ecx
push edx
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
ret
POIPoint = AreaGetScriptedPOIPointToActivate(3)
POIPoint = AreaGetScriptedPOIPointToActivate(nil)
push esi
mov esi, dword ptr [esp+0x8]
push esi
call 0x73AEA0
add esp, 0x4
cmp eax, 0x1
jnz 0x2E
push 0x0
push esi
call LuaParam::IsNil
add esp, 0x8
test al, al
jnz 0x1F
push 0x0
push esi
call LuaParam::IsInt
add esp, 0x8
test al, al
jz 0x10
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x8
push eax
jmp 0xB
push ecx
mov eax, esp
mov dword ptr [eax], 0x10
mov ecx, dword ptr [0xC0F5E4]
call 0x449140
push eax
push esi
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
pop esi
ret
FADE_IN_TIME = AreaGetTransitionTime(1)
FADE_OUT_TIME = AreaGetTransitionTime(0)
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetInt
movsx eax, ax
add esp, 0x8
sub eax, 0x0
jz 0x11
sub eax, 0x1
jnz 0x2A
mov eax, dword ptr [0x20C8910]
fld st, dword ptr [eax+0x1C]
jmp 0xB
mov ecx, dword ptr [0x20C8910]
fld st, dword ptr [ecx+0x18]
fmul st, qword ptr [0x900138]
call 0x85C720
push eax
push esi
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
pop esi
ret
AreaTransitionPoint(AreaGetVisible(), player.start_pos)
currentArea = AreaGetVisible()
elseif AreaGetVisible == 13 then
elseif AreaGetVisible() == 0 and bDressSpawned then
elseif AreaGetVisible() == 0 and bNecklaceSpawned then
elseif AreaGetVisible() == 0 and bPerfumeSpawned then
elseif AreaGetVisible() == 0 and gStageUpdateFunction == F_Stage5 and mandy == nil then
elseif AreaGetVisible() == 0 then
elseif AreaGetVisible() == 13 then
elseif AreaGetVisible() == 14 then
elseif AreaGetVisible() == 2 then
elseif AreaGetVisible() == 22 then
elseif AreaGetVisible() == 26 then
elseif AreaGetVisible() == 31 then
elseif AreaGetVisible() == 35 then
elseif AreaGetVisible() == 62 and bBMXParkDoorOpen then
elseif AreaGetVisible() == 62 and not bBMXParkDoorOpen then
elseif AreaGetVisible() == 62 and not F_PedIsDead(gPlayer) then
elseif AreaGetVisible() == 62 then
elseif AreaGetVisible() ~= 2 then
elseif AreaGetVisible() ~= 50 then
elseif AreaGetVisible() ~= 62 and AreaGetVisible() ~= 14 and AreaGetVisible() ~= 2 and AreaGetVisible() ~= 13 then
elseif bCharactersCreated == true and AreaGetVisible() ~= 0 then
elseif bFountainCutscenePlayed and AreaGetVisible() == 13 then
elseif bGotDress and bDressChasers and AreaGetVisible() == 0 then
elseif bGotNecklace and bNecklaceChasers and AreaGetVisible() == 0 then
elseif bGotPerfume and bPerfumeChasers and AreaGetVisible() == 0 then
elseif classNo == 5 and objBlip and AreaGetVisible() == 55 then
elseif DistanceBetweenCoords3d(x1, y1, z1, x2, y2, z2) > AreaGetPopulationCullDistance() and AreaGetVisible() ~= 2 then
elseif gBeatrice ~= nil and AreaGetVisible() ~= 0 then
elseif gOutsidePool == false and AreaGetVisible() == 0 then
elseif gStatusCheck1 == "INTERIOR" and AreaGetVisible() == 0 then
elseif shared.bBMXGatesInit and AreaGetVisible() ~= 0 then
elseif shared.bBMXWarehouseInit and AreaGetVisible() ~= 62 then
elseif store_blip and AreaGetVisible() == 0 then
elseif VehicleExists(shared.gGoKart) and not PlayerIsInAreaObject(shared.gGoKart, 1, GOKART_KEEP_RADIUS, 0) and AreaGetVisible() == 0 then
gCurrentArea = AreaGetVisible()
gStoredArea = AreaGetVisible()
if 23 <= tempHour and 1 <= tempMinute and AreaGetVisible() ~= 2 then
if AreaGetVisible() == 0 and bBMXParkDoorOpen then
if AreaGetVisible() == 0 and bEnteredShop then
if AreaGetVisible() == 0 and not bBMXParkDoorOpen then
if AreaGetVisible() == 0 and tag.bCheckTag and (not tag.id or not PAnimIsPlaying(tag.id, "/Global/TagSmall/NotUseable/Tagged/VandalTag", false)) then
if AreaGetVisible() == 0 then
if AreaGetVisible() == 13 and mandy == nil then
if AreaGetVisible() == 13 then
if AreaGetVisible() == 14 and PlayerIsInTrigger(TRIGGER._PLAYER_ROOM) then
if AreaGetVisible() == 14 and shared.gBDormFAlarmOn == false then
if AreaGetVisible() == 14 then
if AreaGetVisible() == 19 then
if AreaGetVisible() == 2 and gLackey[8].ped ~= nil then
if AreaGetVisible() == 2 and not bSecretaryCreated then
if AreaGetVisible() == 2 and shared.gSchoolFAlarmOn == false then
if AreaGetVisible() == 2 then
if AreaGetVisible() == 30 then
if AreaGetVisible() == 31 and F_IsButtonPressedWithDelayCheck(15, 1) then
if AreaGetVisible() == 32 and not bDestructibleSetup then
if AreaGetVisible() == 32 then
if AreaGetVisible() == 33 and not bNecklaceSpawned then
if AreaGetVisible() == 34 and not bDressSpawned then
if AreaGetVisible() == 35 and PedIsValid(shared.gdormHeadID) then
if AreaGetVisible() == 35 and shared.gGDormFAlarmOn == false then
if AreaGetVisible() == 36 and 0 < PlayerGetHealth() then
if AreaGetVisible() == 38 then
if AreaGetVisible() == 42 then
if AreaGetVisible() == 46 and not bPerfumeSpawned then
if AreaGetVisible() == 50 then
if AreaGetVisible() == 54 then
if AreaGetVisible() == 62 then
if AreaGetVisible() == 9 then
if AreaGetVisible() == gArea then
if AreaGetVisible() ~= 0 or SystemShouldEndScript() then
if AreaGetVisible() ~= 0 then
if AreaGetVisible() ~= 14 then
if AreaGetVisible() ~= 2 or SystemShouldEndScript() then
if AreaGetVisible() ~= 2 then
if AreaGetVisible() ~= 32 then
if AreaGetVisible() ~= 35 or SystemShouldEndScript() then
if AreaGetVisible() ~= 35 then
if AreaGetVisible() ~= 38 then
if AreaGetVisible() ~= 50 and bPlayerHasBear then
if AreaGetVisible() ~= 54 then
if AreaGetVisible() ~= 62 then
if AreaGetVisible() ~= gArea then
if bActive == false and AreaGetVisible() ~= 14 then
if bActive and not bExit and bGoneIn and AreaGetVisible() == 0 then
if bBlippedInsideStore and AreaGetVisible() == 0 then
if bBustPlayer and AreaGetVisible() == 35 and PedIsValid(shared.gdormHeadID) and (PedCanSeeObject(shared.gdormHeadID, gPlayer, 3) or PedIsHit(shared.gdormHeadID, 2, 500)) then
if bCharactersCreated == false and AreaGetVisible() == 0 then
if bDressChasers and AreaGetVisible() == 0 then
if bGarageOpen and AreaGetVisible() == 0 then
if bGotGroceries and AreaGetVisible() == 0 then
if bGotLingerie and AreaGetVisible() == 0 then
if bLeftGym and shared.gAreaDATFileLoaded[13] == true and AreaGetVisible() == 13 then
if bNecklaceChasers and AreaGetVisible() == 0 then
if bPerfumeChasers and AreaGetVisible() == 0 then
if bTetherJimmyToTown and not AreaIsLoading() and AreaGetVisible() == 0 then
if ClothingIsWearingAnyOutfit() == false and AreaGetVisible() == 0 and not MissionActive() then
if DistanceBetweenCoords3d(x1, y1, z1, x2, y2, z2) > AreaGetPopulationCullDistance() or currentArea ~= AreaGetVisible() then
if F_EggCheck() and AreaGetVisible() == 0 then
if gBeatrice == nil and AreaGetVisible() == 0 then
if gBeatrice == nil and AreaGetVisible() == 35 then
if gExitTimer and not AreaIsLoading() and GetTimer() > gExitTimer and AreaGetVisible() ~= 0 then
if gLackey[35].currentNode == 1 and AreaGetVisible() ~= 0 then
if gOutsidePool == true and shared.gAreaDATFileLoaded[13] == true and AreaGetVisible() == 13 then
if gStatusCheck1 == "WORLD" and AreaGetVisible() ~= 0 then
if not AreaGetVisible() == gArea then
if not bBlippedInsideStore and AreaGetVisible() == 26 then
if not bDormFlaggedForReset and AreaGetVisible() ~= 35 then
if not bFoundDO and AreaGetVisible() ~= 13 then
if not bGotPerfume and AreaGetVisible() == 23 then
if not bMissionPassed and AreaGetVisible() == 0 then
if not bPlayerEnteredDorm and AreaGetVisible() == 35 then
if not bPlayingLowIntensityMusic and AreaGetVisible() == 0 then
if not bRemovedPoolExitBlip and AreaGetVisible() == 0 then
if not bUpdateStage3Objectives and AreaGetVisible() == 0 then
if not gPlayerReset and AreaGetVisible() == 0 then
if not MissionActive() and AreaGetVisible() == 0 and shared.gAreaDATFileLoaded[0] == true then
if not tblIngredientLocations.barber.got and AreaGetVisible() == 39 then
if not tblIngredientLocations.clothing.got and AreaGetVisible() == 34 then
if not tblIngredientLocations.grocery.got and AreaGetVisible() == 26 then
if PedIsValid(ScenarioPed) == true and AreaGetVisible() == 0 and PedGetFlag(ScenarioPed, 110) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedGetFlag(ScenarioPed, 110) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and (AreaGetVisible() == 2 or AreaGetVisible() == 8) and OutOfRange == false and bFailDueToLackOfRoll == false then
if PedIsValid(ScenarioPed) and AreaGetVisible() == 0 then
if PlayerIsInTrigger(TRIGGER._1_03_FAILTRIGGER01) or PlayerIsInTrigger(TRIGGER._1_03_FAILTRIGGER02) or PlayerIsInTrigger(TRIGGER._1_03_FAILTRIGGER04) or AreaGetVisible() ~= 0 then
if PlayerIsInTrigger(TRIGGER._AMB_SCHOOL_AREA) or AreaGetVisible() == 14 or AreaGetVisible() == 9 or AreaGetVisible() == 35 or AreaGetVisible() == 2 or AreaGetVisible() == 13 then
if PlayerIsInTrigger(TRIGGER._BathroomExit) and shared.gAreaDATFileLoaded[13] == true and AreaGetVisible() == 13 and not PAnimIsPlaying(TRIGGER._LCKRGYMM, "/Global/NLockA/Locked1_08", false) then
if POIGender == 0 and AreaGetVisible() == 2 then
if pos == 1 and not race.getOnTimeOut and AreaGetVisible() == 0 then
if RacerDistance > nFailDistance or AreaGetVisible() ~= 0 then
if RacerDistance > nWarningDistance or AreaGetVisible() ~= 0 then
if transitionArea ~= nil and transitionArea ~= AreaGetVisible() then
local Area = AreaGetVisible()
local area = AreaGetVisible()
local current_area = AreaGetVisible()
local gAreaVisible = AreaGetVisible()
local gCurrentArea = AreaGetVisible()
local oldArea = AreaGetVisible()
local visibleArea = AreaGetVisible()
PAnimForceCreate(prop, offx, offy, offz, 0, AreaGetVisible())
PLAYER_AREA = AreaGetVisible()
while 14 == AreaGetVisible() do
while AreaGetVisible() == 0 do
while AreaGetVisible() == 13 or AreaIsLoading() do
while AreaGetVisible() == 18 and not SystemShouldEndScript() do
while AreaGetVisible() == 26 do
while AreaGetVisible() == 32 or AreaIsLoading() do
while AreaGetVisible() == 35 or AreaIsLoading() do
while AreaGetVisible() == 36 do
while AreaGetVisible() == 38 and not SystemShouldEndScript() do
while AreaGetVisible() == 62 and not SystemShouldEndScript() do
while AreaGetVisible() == 9 do
while AreaGetVisible() == 9 or AreaIsLoading() do
while AreaGetVisible() ~= 0 do
while AreaGetVisible() ~= 13 do
while AreaGetVisible() ~= 17 do
while AreaGetVisible() ~= 2 do
while AreaGetVisible() ~= 35 do
while AreaGetVisible() ~= 36 do
while MissionActive() and AreaGetVisible() ~= 2 do
while not (AreaGetVisible() == 0 and shared.gAreaDATFileLoaded[0]) do
while not (AreaGetVisible() ~= 0 or PAnimRequest(trash.trigger)) do
while not (AreaGetVisible() ~= 0 or SystemShouldEndScript()) do
while not (AreaGetVisible() ~= 13 or SystemShouldEndScript()) do
while not (AreaGetVisible() ~= 14 or SystemShouldEndScript()) do
while not (AreaGetVisible() ~= 15 or SystemShouldEndScript()) do
while not (AreaGetVisible() ~= 17 or SystemShouldEndScript()) do
while not (AreaGetVisible() ~= 19 or SystemShouldEndScript()) do
while not (AreaGetVisible() ~= 2 or SystemShouldEndScript()) do
while not (AreaGetVisible() ~= 20 or SystemShouldEndScript()) do
while not (AreaGetVisible() ~= 22 or SystemShouldEndScript()) do
while not (AreaGetVisible() ~= 23 or SystemShouldEndScript()) do
while not (AreaGetVisible() ~= 27 or SystemShouldEndScript()) do
while not (AreaGetVisible() ~= 31 or SystemShouldEndScript()) do
while not (AreaGetVisible() ~= 32 or SystemShouldEndScript()) do
while not (AreaGetVisible() ~= 35 or SystemShouldEndScript()) do
while not (AreaGetVisible() ~= 36 or SystemShouldEndScript()) do
while not (AreaGetVisible() ~= 37 or SystemShouldEndScript()) do
while not (AreaGetVisible() ~= 4 or SystemShouldEndScript()) do
while not (AreaGetVisible() ~= 40 or SystemShouldEndScript()) do
while not (AreaGetVisible() ~= 42 or SystemShouldEndScript()) do
while not (AreaGetVisible() ~= 43 or SystemShouldEndScript()) do
while not (AreaGetVisible() ~= 45 or SystemShouldEndScript()) do
while not (AreaGetVisible() ~= 5 or SystemShouldEndScript()) do
while not (AreaGetVisible() ~= 50 or SystemShouldEndScript()) do
while not (AreaGetVisible() ~= 51 or SystemShouldEndScript()) do
while not (AreaGetVisible() ~= 52 or SystemShouldEndScript()) do
while not (AreaGetVisible() ~= 53 or SystemShouldEndScript()) do
while not (AreaGetVisible() ~= 54 or SystemShouldEndScript()) do
while not (AreaGetVisible() ~= 55 or SystemShouldEndScript()) do
while not (AreaGetVisible() ~= 6 or SystemShouldEndScript()) do
while not (AreaGetVisible() ~= 8 or SystemShouldEndScript()) do
while not (AreaGetVisible() ~= 9 or SystemShouldEndScript()) do
while not (AreaGetVisible() ~= Area or SystemShouldEndScript()) do
while not (AreaGetVisible() ~= currentArea or SystemShouldEndScript()) do
while not (AreaGetVisible() ~= gArea or SystemShouldEndScript()) do
while not (not AreaGetVisible() ~= 2 or shared.gAreaDATFileLoaded[32]) do
while not (not MissionActive() or bFoundJohnny) and AreaGetVisible() == 38 do
while not (not PedIsValid(gMandy) or PedIsPlaying(gMandy, "/Global/HitTree/Standing/Ranged/Bomb/Stink_Trap", false)) and AreaGetVisible() ~= 0 do
while not AreaGetVisible() == 0 do
while not AreaGetVisible() == 2 do
while not AreaGetVisible() == 36 do
while not AreaGetVisible() == areaToWaitFor do
while not bGotPerfume or AreaGetVisible() == 23 do
while not PedIsUsingProp(gMandy) and AreaGetVisible() ~= 0 do
mov eax, dword ptr [0xBD1008]
mov ecx, dword ptr [esp+0x4]
push eax
push ecx
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
ret
AreaInitPatrolPath(PATH._1F_PREFECT01, 2, 0, 1)
AreaInitPatrolPath(PATH._1F_PREFECT02, 2, 0, 1)
AreaInitPatrolPath(PATH._1F_PREFECT03, 2, 0, 1)
AreaInitPatrolPath(PATH._2F_PREFECT01, 2, 0, 1)
AreaInitPatrolPath(PATH._2F_PREFECT02, 2, 0, 1)
AreaInitPatrolPath(PATH._CITYHALLPATROL1, 3, 0, 2, false)
AreaInitPatrolPath(PATH._CITYHALLPATROL2, 0, 3, 2, false)
AreaInitPatrolPath(PATH._HALLSPATROL_1A, 0, 2, 1, false)
AreaInitPatrolPath(PATH._HALLSPATROL_1B, 0, 2, 1, false)
AreaInitPatrolPath(PATH._HALLSPATROL_2A, 0, 2, 1, false)
AreaInitPatrolPath(PATH._HALLSPATROL_2B, 0, 2, 1, false)
AreaInitPatrolPath(PATH._SG_PREFECT01, 3, 0, 2)
AreaInitPatrolPath(PATH._SG_PREFECT02, 3, 0, 2)
AreaInitPatrolPath(PATH._SG_PREFECT03, 3, 0, 2)
AreaInitPatrolPath(PATH._SG_PREFECT04, 3, 0, 1)
AreaInitPatrolPath(PATH._SG_PREFECT05, 3, 0, 2)
AreaInitPatrolPath(PATH._SGD_PREFECT1, 0, 3, 2, false)
AreaInitPatrolPath(PATH._SGD_PREFECT2, 0, 3, 1, false)
AreaInitPatrolPath(PATH._SGD_PREFECT3, 0, 3, 1, false)
sub esp, 0x8
push esi
mov esi, dword ptr [esp+0x10]
push edi
push 0x0
push esi
call LuaParam::GetInt
mov ecx, dword ptr [0xD13CB4]
add esp, 0x8
push eax
call 0x5ED3A0
mov edi, eax
test edi, edi
jz 0x4E
push ebx
push ebp
push 0x3
push esi
call LuaParam::GetInt
push 0x2
push esi
mov ebx, eax
call LuaParam::GetInt
push 0x1
push esi
mov ebp, eax
call LuaParam::GetInt
push 0x1
mov dword ptr [esp+0x2C], eax
mov eax, dword ptr [0xC2B034]
push 0x4
push esi
mov dword ptr [esp+0x38], eax
call LuaParam::GetBool ; optional
mov ecx, dword ptr [esp+0x34]
add esp, 0x24
push eax
push ebx
push ebp
push ecx
mov ecx, dword ptr [esp+0x24]
push edi
call 0x472120
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x8
ret
-- never used
sub esp, 0x10
push esi
mov esi, dword ptr [esp+0x18]
push 0x0
push esi
call LuaParam::GetInt
mov dword ptr [esp+0xC], eax
fild st, dword ptr [esp+0xC]
push 0x1
push esi
fstp dword ptr [esp+0x18], st
call LuaParam::GetInt
mov dword ptr [esp+0x14], eax
fild st, dword ptr [esp+0x14]
lea eax, ptr [esp+0x1C]
push eax
fstp dword ptr [esp+0x18], st
fld st, dword ptr [esp+0x1C]
fstp dword ptr [esp+0x20], st
fld st, dword ptr [esp+0x18]
fstp dword ptr [esp+0x24], st
call 0x5701C0
mov byte ptr [esp+0x1C], al
mov ecx, dword ptr [esp+0x1C]
push ecx
push esi
call LuaParam::PushBool
add esp, 0x1C
mov eax, 0x1
pop esi
add esp, 0x10
ret
if AreaIsDoorLocked("DT_tbusines_BikeShopDoor") then
if AreaIsDoorLocked(TRIGGER._IFUNHOUS_MINEEND) and nMiner1Deactivated == 2 and nMiner2Deactivated == 2 and nMiner3Deactivated == 2 then
if AreaIsDoorLocked(TRIGGER._IFUNHOUS_MZEMINE) then
if not AreaIsDoorLocked(TRIGGER._IFUNHOUS_MINEEND) then
push ecx
push esi
push edi
mov edi, dword ptr [esp+0x10]
push 0x0
push edi
mov byte ptr [esp+0x10], 0x0
call LuaParam::IsString
add esp, 0x8
test al, al
push 0x0
push edi
jz 0x5E
call LuaParam::GetString
add esp, 0x8
push eax
mov ecx, 0x20C7E98
call 0x6D7A10
cmp eax, 0xFFFFFFFF
jz 0x25
mov edx, dword ptr [0x20C7C48]
mov ecx, dword ptr [edx+0x4]
test byte ptr [eax+ecx*1], 0x80
jz 0x6
xor ecx, ecx
jmp 0xA
mov ecx, dword ptr [edx+0xC]
imul ecx, eax
add ecx, dword ptr [edx]
test ecx, ecx
jnz 0xA7
push 0x0
push edi
call LuaParam::GetString
push eax
call 0x576ED0
add esp, 0xC
push eax
mov ecx, 0xC3B808
call 0x4E99A0
jmp 0x8A
call LuaParam::IsHashID
add esp, 0x8
test al, al
push 0x0
push edi
jz 0x48
call LuaParam::GetUserData
add esp, 0x8
mov esi, eax
push esi
mov ecx, 0x20C7E98
call 0x6D79C0
cmp eax, 0xFFFFFFFF
jz 0x21
mov edx, dword ptr [0x20C7C48]
mov ecx, dword ptr [edx+0x4]
test byte ptr [eax+ecx*1], 0x80
jz 0x6
xor ecx, ecx
jmp 0xA
mov ecx, dword ptr [edx+0xC]
imul ecx, eax
add ecx, dword ptr [edx]
test ecx, ecx
jnz 0x3A
push esi
mov ecx, 0xC3B808
call 0x4E99A0
jmp 0x32
call LuaParam::GetInt
add esp, 0x8
test eax, eax
jl 0x2A
mov edx, dword ptr [0x20C7C48]
mov ecx, dword ptr [edx+0x4]
test byte ptr [eax+ecx*1], 0x80
jz 0x6
xor ecx, ecx
jmp 0xA
mov ecx, dword ptr [edx+0xC]
imul ecx, eax
add ecx, dword ptr [edx]
test ecx, ecx
jz 0xB
call 0x6D6550
mov byte ptr [esp+0x8], al
mov edx, dword ptr [esp+0x8]
push edx
push edi
call LuaParam::PushBool
add esp, 0x8
pop edi
mov eax, 0x1
pop esi
pop ecx
ret
if AreaIsDoorLockedToPeds(TRIGGER._IBOXING_ESCDOORL) then
if AreaIsDoorLockedToPeds(TRIGGER._IBOXING_ESCDOORL01) then
push ecx
push esi
push edi
mov edi, dword ptr [esp+0x10]
push 0x0
push edi
mov byte ptr [esp+0x10], 0x0
call LuaParam::IsString
add esp, 0x8
test al, al
push 0x0
push edi
jz 0x5E
call LuaParam::GetString
add esp, 0x8
push eax
mov ecx, 0x20C7E98
call 0x6D7A10
cmp eax, 0xFFFFFFFF
jz 0x25
mov edx, dword ptr [0x20C7C48]
mov ecx, dword ptr [edx+0x4]
test byte ptr [eax+ecx*1], 0x80
jz 0x6
xor ecx, ecx
jmp 0xA
mov ecx, dword ptr [edx+0xC]
imul ecx, eax
add ecx, dword ptr [edx]
test ecx, ecx
jnz 0xA7
push 0x0
push edi
call LuaParam::GetString
push eax
call 0x576ED0
add esp, 0xC
push eax
mov ecx, 0xC3B808
call 0x4E9A70
jmp 0x8A
call LuaParam::IsHashID
add esp, 0x8
test al, al
push 0x0
push edi
jz 0x48
call LuaParam::GetUserData
add esp, 0x8
mov esi, eax
push esi
mov ecx, 0x20C7E98
call 0x6D79C0
cmp eax, 0xFFFFFFFF
jz 0x21
mov edx, dword ptr [0x20C7C48]
mov ecx, dword ptr [edx+0x4]
test byte ptr [eax+ecx*1], 0x80
jz 0x6
xor ecx, ecx
jmp 0xA
mov ecx, dword ptr [edx+0xC]
imul ecx, eax
add ecx, dword ptr [edx]
test ecx, ecx
jnz 0x3A
push esi
mov ecx, 0xC3B808
call 0x4E9A70
jmp 0x32
call LuaParam::GetInt
add esp, 0x8
test eax, eax
jl 0x2A
mov edx, dword ptr [0x20C7C48]
mov ecx, dword ptr [edx+0x4]
test byte ptr [eax+ecx*1], 0x80
jz 0x6
xor ecx, ecx
jmp 0xA
mov ecx, dword ptr [edx+0xC]
imul ecx, eax
add ecx, dword ptr [edx]
test ecx, ecx
jz 0xB
call 0x6D65A0
mov byte ptr [esp+0x8], al
mov edx, dword ptr [esp+0x8]
push edx
push edi
call LuaParam::PushBool
add esp, 0x8
pop edi
mov eax, 0x1
pop esi
pop ecx
ret
doorIsOpen = AreaIsDoorOpen(GateHashID)
elseif AreaIsDoorOpen(TRIGGER._JANDOORS03B) then
if AreaIsDoorOpen(TRIGGER._DT_TSCHOOL_SCHOOLSIDEDOORL) then
if bLock and AreaIsDoorOpen(TRICH_TADGATES01) then
if not AreaIsDoorOpen(TRIGGER._STALDOOR06) then
if not AreaIsDoorOpen(TRIGGER._STALDOOR07) then
if not gZoeLastPath and AreaIsDoorOpen(TRIGGER._TINDUST_BAR_DOOR_01) then
push ecx
push esi
push edi
mov edi, dword ptr [esp+0x10]
push 0x0
push edi
mov byte ptr [esp+0x10], 0x0
call LuaParam::IsString
add esp, 0x8
test al, al
push 0x0
push edi
jz 0x5E
call LuaParam::GetString
add esp, 0x8
push eax
mov ecx, 0x20C7E98
call 0x6D7A10
cmp eax, 0xFFFFFFFF
jz 0x25
mov edx, dword ptr [0x20C7C48]
mov ecx, dword ptr [edx+0x4]
test byte ptr [eax+ecx*1], 0x80
jz 0x6
xor ecx, ecx
jmp 0xA
mov ecx, dword ptr [edx+0xC]
imul ecx, eax
add ecx, dword ptr [edx]
test ecx, ecx
jnz 0xA7
push 0x0
push edi
call LuaParam::GetString
push eax
call 0x576ED0
add esp, 0xC
push eax
mov ecx, 0xC3B808
call 0x4E9B40
jmp 0x8A
call LuaParam::IsHashID
add esp, 0x8
test al, al
push 0x0
push edi
jz 0x48
call LuaParam::GetUserData
add esp, 0x8
mov esi, eax
push esi
mov ecx, 0x20C7E98
call 0x6D79C0
cmp eax, 0xFFFFFFFF
jz 0x21
mov edx, dword ptr [0x20C7C48]
mov ecx, dword ptr [edx+0x4]
test byte ptr [eax+ecx*1], 0x80
jz 0x6
xor ecx, ecx
jmp 0xA
mov ecx, dword ptr [edx+0xC]
imul ecx, eax
add ecx, dword ptr [edx]
test ecx, ecx
jnz 0x3A
push esi
mov ecx, 0xC3B808
call 0x4E9B40
jmp 0x32
call LuaParam::GetInt
add esp, 0x8
test eax, eax
jl 0x2A
mov edx, dword ptr [0x20C7C48]
mov ecx, dword ptr [edx+0x4]
test byte ptr [eax+ecx*1], 0x80
jz 0x6
xor ecx, ecx
jmp 0xA
mov ecx, dword ptr [edx+0xC]
imul ecx, eax
add ecx, dword ptr [edx]
test ecx, ecx
jz 0xB
call 0x6D6620
mov byte ptr [esp+0x8], al
mov edx, dword ptr [esp+0x8]
push edx
push edi
call LuaParam::PushBool
add esp, 0x8
pop edi
mov eax, 0x1
pop esi
pop ecx
ret
if AreaIsLoading() == false then
if AreaIsLoading() or GetCurrentNumOfAmbientBikes() > 4 then
if AreaIsLoading() then
if bTetherJimmyToTown and not AreaIsLoading() and AreaGetVisible() == 0 then
if gExitTimer and not AreaIsLoading() and GetTimer() > gExitTimer and AreaGetVisible() ~= 0 then
if hour == 1 and 55 < minute or hour == 2 or PlayerFellAsleep() or AreaIsLoading() then
if hour == 1 and minute > 55 or hour == 2 or PlayerFellAsleep() or AreaIsLoading() then
while AreaGetVisible() == 13 or AreaIsLoading() do
while AreaGetVisible() == 32 or AreaIsLoading() do
while AreaGetVisible() == 35 or AreaIsLoading() do
while AreaGetVisible() == 9 or AreaIsLoading() do
while AreaIsLoading() and IsStreamingBusy() do
while AreaIsLoading() do
mov ecx, 0xBCC580
call 0x415380
push eax
mov eax, dword ptr [esp+0x8]
push eax
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
ret
-- never used
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
call LuaParam::GetInt
push 0x2
push esi
call LuaParam::GetInt
add esp, 0x18
xor eax, eax
pop esi
ret
AreaLoadCollision(px, py)
AreaLoadCollision(x, y)
sub esp, 0x14
push esi
mov esi, dword ptr [esp+0x1C]
push 0x0
push esi
call LuaParam::GetInt
mov dword ptr [esp+0x10], eax
fild st, dword ptr [esp+0x10]
push 0x1
push esi
fstp dword ptr [esp+0x14], st
call LuaParam::GetInt
mov dword ptr [esp+0x18], eax
fild st, dword ptr [esp+0x18]
lea eax, ptr [esp+0x1C]
push eax
fstp dword ptr [esp+0x1C], st
fld st, dword ptr [esp+0x18]
fstp dword ptr [esp+0x20], st
fld st, dword ptr [esp+0x1C]
fstp dword ptr [esp+0x24], st
call 0x570080
fld st, dword ptr [esp+0x18]
lea ecx, ptr [esp+0x20]
fstp dword ptr [esp+0x20], st
push 0x1
fld st, dword ptr [esp+0x20]
push ecx
fstp dword ptr [esp+0x2C], st
fldz
fstp dword ptr [esp+0x30], st
call 0x439770
add esp, 0x1C
xor eax, eax
pop esi
add esp, 0x14
ret
--print(">>>[RUI]", "AreaLoadSpecialEntities " .. tostring(gSpecialEntities))
AreaLoadSpecialEntities("2s07", false)
AreaLoadSpecialEntities("2s07", true)
AreaLoadSpecialEntities("Christmas", false)
AreaLoadSpecialEntities("Christmas", true)
AreaLoadSpecialEntities("delivery", false)
AreaLoadSpecialEntities("delivery", true)
AreaLoadSpecialEntities("Halloween1", false)
AreaLoadSpecialEntities("Halloween1", true)
AreaLoadSpecialEntities("Halloween2", false)
AreaLoadSpecialEntities("Halloween2", true)
AreaLoadSpecialEntities("Halloween3", false)
AreaLoadSpecialEntities("Halloween3", true)
AreaLoadSpecialEntities("Miracle", false)
AreaLoadSpecialEntities("Miracle", true)
AreaLoadSpecialEntities("nutcracker", false)
AreaLoadSpecialEntities("nutcracker", true)
AreaLoadSpecialEntities("PumpkinPost", false)
AreaLoadSpecialEntities("PumpkinPost", true)
AreaLoadSpecialEntities("RL_rich1", false)
AreaLoadSpecialEntities("RL_rich1", true)
AreaLoadSpecialEntities("Rudy1", false)
AreaLoadSpecialEntities("Rudy1", true)
AreaLoadSpecialEntities("Rudy2", false)
AreaLoadSpecialEntities("Rudy2", true)
AreaLoadSpecialEntities("Rudy3", false)
AreaLoadSpecialEntities("Rudy3", true)
AreaLoadSpecialEntities("TombstonePost", false)
AreaLoadSpecialEntities("TombstonePost", true)
AreaLoadSpecialEntities("vote", false)
AreaLoadSpecialEntities("vote", true)
AreaLoadSpecialEntities(gSpecialEntities, false)
AreaLoadSpecialEntities(gSpecialEntities, true)
AreaLoadSpecialEntities(szSpecialGroupToCleanup, false)
push ebx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetString
push 0x1
push esi
mov edi, eax
call LuaParam::GetBool
push edi
mov bl, al
call 0x576ED0
add esp, 0x14
pop edi
pop esi
test bl, bl
pop ebx
push eax
mov ecx, 0xBA6C4C
jz 0xA
call 0x6AE730
xor eax, eax
ret
call 0x6AE760
xor eax, eax
ret
if AreaMissionSpawnerExhausted(idSpawner) then
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetUserData
mov ecx, dword ptr [0xC2C12C]
add esp, 0x8
push eax
call 0x4A1A00
test eax, eax
jz 0x1F
mov ecx, eax
call 0x4A24F0
test al, al
jnz 0x14
push 0x0
push esi
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
pop esi
ret
push 0x1
push esi
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
pop esi
ret
AreaMissionSpawnerSetActivated(AttackSpawner, true)
AreaMissionSpawnerSetActivated(idSpawner, true)
AreaMissionSpawnerSetActivated(nerd_spawner1, false)
AreaMissionSpawnerSetActivated(nerd_spawner1, true)
AreaMissionSpawnerSetActivated(nerd_spawner2, false)
AreaMissionSpawnerSetActivated(nerd_spawner2, true)
AreaMissionSpawnerSetActivated(nerd_spawner3, false)
AreaMissionSpawnerSetActivated(nerd_spawner3, true)
AreaMissionSpawnerSetActivated(nerd_spawner5, false)
AreaMissionSpawnerSetActivated(nerd_spawner5, true)
AreaMissionSpawnerSetActivated(nerd_spawner6, false)
AreaMissionSpawnerSetActivated(nerd_spawner6, true)
AreaMissionSpawnerSetActivated(nerd_spawner7, false)
AreaMissionSpawnerSetActivated(nerd_spawner7, true)
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetUserData
mov ecx, dword ptr [0xC2C12C]
add esp, 0x8
push eax
call 0x4A1A00
push 0x1
push edi
mov esi, eax
call LuaParam::GetBool
mov cl, byte ptr [esi+0xC8]
xor cl, al
add esp, 0x8
and cl, 0x1
xor byte ptr [esi+0xC8], cl
pop edi
xor eax, eax
pop esi
ret
AreaMissionSpawnerSetAttackTarget(idSpawner, gPlayer, true)
push ecx
push ebx
push esi
mov esi, dword ptr [esp+0x10]
push edi
push 0x0
push esi
call LuaParam::GetUserData
mov ecx, dword ptr [0xC2C12C]
add esp, 0x8
push eax
call 0x4A1A00
push 0x1
push esi
mov ebx, eax
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov edi, eax
add esp, 0x8
test edi, edi
jz 0x20
push 0x0
push 0x2
push esi
call LuaParam::GetBool ; optional
mov byte ptr [esp+0x18], al
mov eax, dword ptr [esp+0x18]
add esp, 0xC
push eax
push edi
mov ecx, ebx
call 0x4A1160
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
AreaMissionSpawnerSetCallback(idSpawner, F_SpawnerCallback)
AreaMissionSpawnerSetCallback(nerd_spawner1, F_SpawnerAttackPlayer1)
AreaMissionSpawnerSetCallback(nerd_spawner2, F_SpawnerAttackPlayer2)
AreaMissionSpawnerSetCallback(nerd_spawner3, F_SpawnerAttackPlayer3)
AreaMissionSpawnerSetCallback(nerd_spawner5, F_SpawnerAttackPlayer5)
AreaMissionSpawnerSetCallback(nerd_spawner6, F_SpawnerAttackPlayer6)
AreaMissionSpawnerSetCallback(nerd_spawner7, F_SpawnerAttackPlayer7)
AreaMissionSpawnerSetCallback(spawnerID, F_PrepAddToSpawnQueue)
AreaMissionSpawnerSetCallback(tblStore.spawnerid, F_GStoreCallback)
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetUserData
mov ecx, dword ptr [0xC2C12C]
add esp, 0x8
push eax
call 0x4A1A00
add eax, 0xCC
push eax
push 0x1
push esi
call 0x5D9FD0
add esp, 0xC
xor eax, eax
pop esi
ret
-- never used
mov eax, dword ptr [esp+0x4]
push esi
push 0x0
push eax
call LuaParam::GetUserData
mov ecx, dword ptr [0xC2C12C]
add esp, 0x8
push eax
call 0x4A1A00
mov esi, eax
test esi, esi
jz 0xF
mov ecx, esi
call 0x4A21B0
mov byte ptr [esi+0xBC], al
xor eax, eax
pop esi
ret
AreaOverridePopulation(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
AreaOverridePopulation(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
AreaOverridePopulation(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0)
AreaOverridePopulation(10, 0, 0, 2, 0, 2, 2, 4, 0, 0, 0, 0, 0)
AreaOverridePopulation(12, 0, 2, 2, 0, 2, 2, 2, 0, 2, 0, 0, 0)
AreaOverridePopulation(14, 0, 3, 3, 0, 3, 3, 0, 0, 0, 0, 0, 0)
AreaOverridePopulation(2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0)
AreaOverridePopulation(2, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0)
AreaOverridePopulation(20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 15, 0, 0)
AreaOverridePopulation(3, 0, 0, 0, 0, 0, 0, 0, 1, 0, 2, 0, 0)
AreaOverridePopulation(3, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0)
AreaOverridePopulation(4, 0, 0, 0, 0, 0, 0, 1, 1, 0, 2, 0, 0)
AreaOverridePopulation(4, 0, 0, 0, 0, 2, 0, 0, 1, 0, 1, 0, 0)
AreaOverridePopulation(5, 0, 0, 1, 0, 1, 1, 2, 0, 0, 0, 0, 0)
AreaOverridePopulation(6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
AreaOverridePopulation(8, 0, 0, 0, 0, 0, 0, 0, 10, 0, 2, 0, 0)
AreaOverridePopulation(8, 0, 0, 0, 0, 4, 4, 0, 0, 0, 0, 0, 0)
AreaOverridePopulation(gPop[1], gPop[2], gPop[3], gPop[4], gPop[5], gPop[6], gPop[7], gPop[8], gPop[9], gPop[10], gPop[11], gPop[12], gPop[13])
sub esp, 0x34
push esi
push edi
mov edi, dword ptr [esp+0x40]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x8
mov dword ptr [esp+0x8], eax
mov esi, 0x1
lea ecx, ptr [ecx]
push 0x0
push esi
push edi
call LuaParam::GetInt ; optional
mov dword ptr [esp+esi*4+0x14], eax
add esi, 0x1
add esp, 0xC
cmp esi, 0xD
jl 0xFFFFFFEA
mov ecx, dword ptr [0xC2C108]
lea eax, ptr [esp+0x8]
push eax
call 0x49C5B0
pop edi
xor eax, eax
pop esi
add esp, 0x34
ret
AreaOverridePopulationPedType(1, 2)
AreaOverridePopulationPedType(11, 0)
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, dword ptr [0xC2C108]
lea eax, ptr [esp+0x10]
push edi
push eax
call 0x446900
add esp, 0x4
push eax
mov ecx, esi
call 0x49EF00
mov ecx, dword ptr [0xC2C108]
mov esi, dword ptr [esp+0x58]
mov edi, dword ptr [ecx+0x76F0]
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov ebp, eax
call LuaParam::GetInt
add esp, 0x10
xor ebx, ebx
test edi, edi
mov dword ptr [esp+0x10], eax
jz 0x4C
xor edx, edx
lea esi, ptr [esp+0x24]
lea eax, ptr [ebx+0xC]
lea ebx, ptr [ebx]
cmp edx, ebp
jnz 0x8
mov ecx, dword ptr [esp+0x10]
jmp 0x10
cmp edx, dword ptr [edi+0x14]
jb 0x6
xor ecx, ecx
jmp 0x7
movzx ecx, byte ptr [edx+edi*1+0x8]
mov dword ptr [esi], ecx
add ebx, ecx
add edx, 0x1
add esi, 0x4
sub eax, 0x1
jnz 0xFFFFFFDB
mov ecx, dword ptr [0xC2C108]
lea edx, ptr [esp+0x20]
push edx
mov dword ptr [esp+0x24], ebx
call 0x49C5B0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret
AreaPatrolPathShowVisionCones(false)
AreaPatrolPathShowVisionCones(true)
mov eax, dword ptr [esp+0x4]
push esi
mov esi, dword ptr [0xC2B034]
push 0x0
push eax
call LuaParam::GetBool
add esp, 0x8
mov ecx, esi
push eax
call 0x471E00
xor eax, eax
pop esi
ret
elseif AreaPOICompareName(info, "F_Biker") then
elseif AreaPOICompareName(info, "F_CarnivalWalker") or AreaPOICompareName(info, "F_Industrial") or AreaPOICompareName(info, "F_DockWorker") or AreaPOICompareName(info, "F_MillWorker") or AreaPOICompareName(info, "F_PrincipalPOI") or AreaPOICompareName(info, "F_DockWorker") or AreaPOICompareName(info, "F_MillWorker") or AreaPOICompareName(info, "F_Fireman") or AreaPOICompareName(info, "F_RandomStudent") or AreaPOICompareName(info, "F_SocialHangout") then
elseif AreaPOICompareName(info, "F_Catch") then
elseif AreaPOICompareName(info, "F_CBarkerGame") or AreaPOICompareName(info, "F_CBarkerGame2") or AreaPOICompareName(info, "F_DunkMidget") or AreaPOICompareName(info, "F_CBarkerHouse") then
elseif AreaPOICompareName(info, "F_ClassSmokers") or AreaPOICompareName(info, "F_SmokingFireman") then
elseif AreaPOICompareName(info, "F_Criminal") then
elseif AreaPOICompareName(info, "F_Crying") then
elseif AreaPOICompareName(info, "F_DogWalker") then
elseif AreaPOICompareName(info, "F_DrunkenBeggar") then
elseif AreaPOICompareName(info, "F_GuardDog") or AreaPOICompareName(info, "F_BullyDogs") then
elseif AreaPOICompareName(info, "F_HCriminal") or AreaPOICompareName(info, "F_HStudent") then
elseif AreaPOICompareName(info, "F_InstantBully") then
elseif AreaPOICompareName(info, "F_LockerStuff") or AreaPOICompareName(info, "F_SocialHumiliation") or AreaPOICompareName(info, "F_TrashStuff") or AreaPOICompareName(info, "F_Swirlie") then
elseif AreaPOICompareName(info, "F_ProjAttack") then
elseif AreaPOICompareName(info, "F_Puker") then
elseif AreaPOICompareName(info, "F_Rats") then
elseif AreaPOICompareName(info, "F_RoofSniper") then
elseif AreaPOICompareName(info, "F_Russell") then
elseif AreaPOICompareName(info, "F_Straggler") then
elseif AreaPOICompareName(info, "F_Truck") then
elseif AreaPOICompareName(info, "F_WorkerHangout") or AreaPOICompareName(info, "F_WorkerSmoking") then
elseif AreaPOICompareName(info, "F_Workout") or AreaPOICompareName(info, "F_Cheerleading") then
elseif AreaPOICompareName(POIInfo, "F_Arrest") then
elseif AreaPOICompareName(POIInfo, "F_BikeCheckout") then
elseif AreaPOICompareName(POIInfo, "F_Biker") then
elseif AreaPOICompareName(POIInfo, "F_Brawl") then
elseif AreaPOICompareName(POIInfo, "F_BullyDogs") then
elseif AreaPOICompareName(POIInfo, "F_CarnivalWalker") then
elseif AreaPOICompareName(POIInfo, "F_Catch") then
elseif AreaPOICompareName(POIInfo, "F_CBarkerGame") then
elseif AreaPOICompareName(POIInfo, "F_CBarkerGame2") then
elseif AreaPOICompareName(POIInfo, "F_CBarkerHouse") then
elseif AreaPOICompareName(POIInfo, "F_Cheerleading") then
elseif AreaPOICompareName(POIInfo, "F_ClassSmokers") then
elseif AreaPOICompareName(POIInfo, "F_CreateMentalPatient") then
elseif AreaPOICompareName(POIInfo, "F_Criminal") then
elseif AreaPOICompareName(POIInfo, "F_Crying") then
elseif AreaPOICompareName(POIInfo, "F_DockWorker") then
elseif AreaPOICompareName(POIInfo, "F_DogWalker") then
elseif AreaPOICompareName(POIInfo, "F_DrunkenBeggar") then
elseif AreaPOICompareName(POIInfo, "F_DunkMidget") then
elseif AreaPOICompareName(POIInfo, "F_Fireman") then
elseif AreaPOICompareName(POIInfo, "F_GuardDog") then
elseif AreaPOICompareName(POIInfo, "F_HCriminal") then
elseif AreaPOICompareName(POIInfo, "F_HStudent") then
elseif AreaPOICompareName(POIInfo, "F_Industrial") then
elseif AreaPOICompareName(POIInfo, "F_InstantBully") then
elseif AreaPOICompareName(POIInfo, "F_LockerStuff") then
elseif AreaPOICompareName(POIInfo, "F_MillWorker") then
elseif AreaPOICompareName(POIInfo, "F_OutsideClass") then
elseif AreaPOICompareName(POIInfo, "F_Pirate") then
elseif AreaPOICompareName(POIInfo, "F_PreppyStraggler") then
elseif AreaPOICompareName(POIInfo, "F_PrincipalPOI") then
elseif AreaPOICompareName(POIInfo, "F_ProjAttack") then
elseif AreaPOICompareName(POIInfo, "F_Puker") then
elseif AreaPOICompareName(POIInfo, "F_RandomStudent") then
elseif AreaPOICompareName(POIInfo, "F_Rats") then
elseif AreaPOICompareName(POIInfo, "F_ReachItHumiliation") then
elseif AreaPOICompareName(POIInfo, "F_RoofSniper") then
elseif AreaPOICompareName(POIInfo, "F_Russell") then
elseif AreaPOICompareName(POIInfo, "F_SmokingFireman") then
elseif AreaPOICompareName(POIInfo, "F_SocialHangout") then
elseif AreaPOICompareName(POIInfo, "F_SocialHumiliation") then
elseif AreaPOICompareName(POIInfo, "F_Straggler") then
elseif AreaPOICompareName(POIInfo, "F_Sweep") then
elseif AreaPOICompareName(POIInfo, "F_Swirlie") then
elseif AreaPOICompareName(POIInfo, "F_TrashStuff") then
elseif AreaPOICompareName(POIInfo, "F_Truck") then
elseif AreaPOICompareName(POIInfo, "F_WallHangout") then
elseif AreaPOICompareName(POIInfo, "F_WallSmoking") then
elseif AreaPOICompareName(POIInfo, "F_WorkerHangout") then
elseif AreaPOICompareName(POIInfo, "F_WorkerSmoking") then
elseif AreaPOICompareName(POIInfo, "F_Workout") then
if AreaPOICompareName(POIInfo, "F_HeldAgainstWall") then
if AreaPOICompareName(POIInfo, scenario.name) then
if shared.gMissionPhoto4 == true and (AreaPOICompareName(info, "F_DrunkenBeggar") or AreaPOICompareName(info, "F_BullyDogs")) then
push ecx
push ebp
push esi
push edi
mov edi, dword ptr [esp+0x14]
push 0x0
push edi
call LuaParam::GetInt
push 0x1
push edi
mov esi, eax
call LuaParam::GetString
mov ecx, dword ptr [0xC0F5E4]
add esp, 0x10
push esi
mov ebp, eax
call 0x448DC0
mov esi, eax
test esi, esi
mov byte ptr [esp+0xC], 0x0
jz 0x23
test ebp, ebp
jz 0x1A
push ebp
call 0x576ED0
add esp, 0x4
cmp dword ptr [esi+0x84], eax
setz al
mov byte ptr [esp+0xC], al
jmp 0x7
mov byte ptr [esp+0xC], 0x0
mov ecx, dword ptr [esp+0xC]
push ecx
push edi
call LuaParam::PushBool
add esp, 0x8
pop edi
pop esi
mov eax, 0x1
pop ebp
pop ecx
ret
-- never used
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetInt
mov ecx, dword ptr [0xC0F5E4]
add esp, 0x8
push eax
call 0x448DC0
xor cl, cl
test eax, eax
jz 0x8
mov cl, byte ptr [eax+0x82]
test cl, cl
setz al
push eax
push esi
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
pop esi
ret
-- never used
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push 0x0
push esi
call LuaParam::GetInt
mov ecx, dword ptr [0xC0F5E4]
add esp, 0x8
push eax
call 0x448DC0
test eax, eax
mov byte ptr [esp+0x4], 0x0
jz 0xC
mov al, byte ptr [eax+0x82]
mov byte ptr [esp+0x4], al
mov ecx, dword ptr [esp+0x4]
push ecx
push esi
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
pop esi
pop ecx
ret
local POIPointFaction = AreaPOIGetFaction(POIInfo)
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetInt
mov ecx, dword ptr [0xC0F5E4]
add esp, 0x8
push eax
call 0x448DC0
test eax, eax
mov ecx, 0xC
jz 0x5
mov ecx, dword ptr [eax+0x78]
push ecx
push esi
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
pop esi
ret
local POIGender = AreaPOIGetGender(POIInfo)
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetInt
mov ecx, dword ptr [0xC0F5E4]
add esp, 0x8
push eax
call 0x448DC0
xor ecx, ecx
test eax, eax
jz 0x5
mov ecx, dword ptr [eax+0x74]
push ecx
push esi
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
pop esi
ret
local POIPointType = AreaPOIGetInterestType(info)
local POIPointType = AreaPOIGetInterestType(POIInfo)
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetInt
mov ecx, dword ptr [0xC0F5E4]
add esp, 0x8
push eax
call 0x448DC0
test eax, eax
mov ecx, 0xF
jz 0x5
mov ecx, dword ptr [eax+0x70]
push ecx
push esi
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
pop esi
ret
local POIPointNum = AreaPOIGetMaxNumber(POIInfo)
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetInt
mov ecx, dword ptr [0xC0F5E4]
add esp, 0x8
push eax
call 0x448DC0
xor ecx, ecx
test eax, eax
jz 0x9
movsx ecx, byte ptr [eax+0x81]
push ecx
push esi
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
pop esi
ret
local x, y, z = AreaPOIGetPosition(POIPoint)
sub esp, 0xC
push esi
mov esi, dword ptr [esp+0x14]
push 0x0
push esi
call LuaParam::GetInt
mov ecx, dword ptr [0xC0F5E4]
add esp, 0x8
push eax
call 0x448DC0
test eax, eax
mov ecx, dword ptr [0xBCC564]
mov edx, dword ptr [0xBCC568]
mov dword ptr [esp+0x4], ecx
mov ecx, dword ptr [0xBCC56C]
mov dword ptr [esp+0x8], edx
mov dword ptr [esp+0xC], ecx
jz 0x25
mov ecx, dword ptr [eax+0x14]
test ecx, ecx
jz 0x7
lea eax, ptr [ecx+0x30]
jmp 0x5
add eax, 0x4
mov edx, dword ptr [eax]
mov dword ptr [esp+0x4], edx
mov ecx, dword ptr [eax+0x4]
mov dword ptr [esp+0x8], ecx
mov edx, dword ptr [eax+0x8]
mov dword ptr [esp+0xC], edx
lea eax, ptr [esp+0x4]
push eax
push esi
call LuaParam::PushVector
add esp, 0x8
mov eax, 0x3
pop esi
add esp, 0xC
ret
AreaPOISetActivation(POIInfo, true)
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetBool
mov ecx, dword ptr [0xC0F5E4]
add esp, 0x10
push edi
mov byte ptr [esp+0xC], al
call 0x448DC0
test eax, eax
pop edi
pop esi
jz 0xD
mov ecx, dword ptr [esp]
push ecx
mov ecx, eax
call 0x4478F0
xor eax, eax
pop ecx
ret
AreaRegisterAnimProps()
call 0x438850
xor eax, eax
ret
AreaRegisterAreaScript(i, element)
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov dword ptr [esp+0x14], eax
call LuaParam::GetString
push eax
lea eax, ptr [esp+0x18]
push eax
call 0x415060
add esp, 0x18
xor eax, eax
pop esi
pop ecx
ret
AreaRemoveExtraScene()
call 0x429940
xor eax, eax
ret
AreaRemoveSpawner(AlarmSpawner)
AreaRemoveSpawner(idSpawner)
AreaRemoveSpawner(spawnerID)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetUserData
mov ecx, dword ptr [0xC2C12C]
add esp, 0x8
push eax
call 0x4A1B20
xor eax, eax
ret
AreaResetPunishmentAlertLevels()
mov ecx, dword ptr [0xC0F78C]
call 0x44E210
xor eax, eax
ret
-- never used
mov ecx, dword ptr [0xC0F78C]
call 0x44E230
xor eax, eax
ret
AreaRevertToDefaultPopulation()
mov ecx, dword ptr [0xC2C108]
call 0x49C6D0
xor eax, eax
ret
-- never used
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetInt
mov ecx, dword ptr [0xD13CB4]
add esp, 0x8
push eax
call 0x5ED3A0
mov esi, eax
test esi, esi
jz 0x2A
push ebx
mov ebx, dword ptr [0xC2B034]
push 0x2
push edi
call LuaParam::GetInt
add esp, 0x8
push eax
push 0x1
push edi
call LuaParam::GetInt
add esp, 0x8
push eax
push esi
mov ecx, ebx
call 0x471F40
pop ebx
pop edi
xor eax, eax
pop esi
ret
AreaSetAmbientSpawnerExclusive(AlarmSpawner, false)
AreaSetAmbientSpawnerExclusive(AlarmSpawner, true)
AreaSetAmbientSpawnerExclusive(BDormDoorsSpawner, false)
AreaSetAmbientSpawnerExclusive(BDormDoorsSpawner, true)
AreaSetAmbientSpawnerExclusive(BEntranceDoor, false)
AreaSetAmbientSpawnerExclusive(BEntranceDoor, true)
AreaSetAmbientSpawnerExclusive(ClassSpawners, false)
AreaSetAmbientSpawnerExclusive(ClassSpawners, true)
AreaSetAmbientSpawnerExclusive(shared.gSchoolSpawner, false)
AreaSetAmbientSpawnerExclusive(shared.gSchoolSpawner, true)
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetUserData
mov ecx, dword ptr [0xC2C12C]
add esp, 0x8
push eax
call 0x4A1A80
push 0x1
push edi
mov esi, eax
call LuaParam::GetBool
mov cl, byte ptr [esi+0xBC]
xor cl, al
add esp, 0x8
and cl, 0x1
xor byte ptr [esi+0xBC], cl
pop edi
xor eax, eax
pop esi
ret
AreaSetDockerChanceToDock(BAKidDockers, 100)
AreaSetDockerChanceToDock(BAKidDockers, 30)
AreaSetDockerChanceToDock(BAStoreDockers, 100)
AreaSetDockerChanceToDock(BAStoreDockers, 30)
AreaSetDockerChanceToDock(BDormDoorsDocker, 10)
AreaSetDockerChanceToDock(ExitDocker, 10)
AreaSetDockerChanceToDock(ExitDocker, 80)
AreaSetDockerChanceToDock(HangOutDockers, 100)
AreaSetDockerChanceToDock(HouseDockers, 10)
AreaSetDockerChanceToDock(HouseDockers, 100)
AreaSetDockerChanceToDock(IHouseDockers, 100)
AreaSetDockerChanceToDock(IHouseDockers, 20)
AreaSetDockerChanceToDock(MovieDockers, 100)
AreaSetDockerChanceToDock(MovieDockers, 20)
AreaSetDockerChanceToDock(PAhouseDockers, 100)
AreaSetDockerChanceToDock(PAhouseDockers, 20)
AreaSetDockerChanceToDock(PAStoreDockers, 100)
AreaSetDockerChanceToDock(PAStoreDockers, 20)
AreaSetDockerChanceToDock(RAStoreDockers, 100)
AreaSetDockerChanceToDock(RAStoreDockers, 20)
AreaSetDockerChanceToDock(XXXDockers, 100)
AreaSetDockerChanceToDock(XXXDockers, 20)
push esi
mov esi, dword ptr [esp+0x8]
push edi
push 0x0
push esi
call LuaParam::GetUserData
mov ecx, dword ptr [0xC2AB68]
add esp, 0x8
push eax
call 0x46E9E0
push 0x1
push esi
mov edi, eax
call LuaParam::GetInt
add esp, 0x8
mov byte ptr [edi+0x100], al
pop edi
xor eax, eax
pop esi
ret
AreaSetDockerKidReception(BAKidDockers, true)
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetUserData
mov ecx, dword ptr [0xC2AB68]
add esp, 0x8
push eax
call 0x46E9E0
push 0x1
push edi
mov esi, eax
call LuaParam::GetBool
shl al, 0x4
xor al, byte ptr [esi+0xFC]
add esp, 0x8
and al, 0x10
xor byte ptr [esi+0xFC], al
pop edi
xor eax, eax
pop esi
ret
-- never used
push esi
mov esi, dword ptr [esp+0x8]
push edi
push 0x0
push esi
call LuaParam::GetUserData
mov ecx, dword ptr [0xC2AB68]
add esp, 0x8
push eax
call 0x46E9E0
push 0x1
push esi
mov edi, eax
call LuaParam::GetInt
add esp, 0x8
mov byte ptr [edi+0xFE], al
pop edi
xor eax, eax
pop esi
ret
AreaSetDockerPatrolPedReception(ClassDockers, false)
AreaSetDockerPatrolPedReception(ClassDockers, true)
AreaSetDockerPatrolPedReception(ExitDocker, false)
AreaSetDockerPatrolPedReception(ExitDocker, true)
AreaSetDockerPatrolPedReception(HangOutDockers, false)
AreaSetDockerPatrolPedReception(HangOutDockers, true)
AreaSetDockerPatrolPedReception(SchoolDocker, false)
AreaSetDockerPatrolPedReception(SchoolDocker, true)
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetUserData
mov ecx, dword ptr [0xC2AB68]
add esp, 0x8
push eax
call 0x46E9E0
push 0x1
push edi
mov esi, eax
call LuaParam::GetBool
add al, al
add al, al
add al, al
xor al, byte ptr [esi+0xFC]
add esp, 0x8
and al, 0x8
xor byte ptr [esi+0xFC], al
pop edi
xor eax, eax
pop esi
ret
AreaSetDockerRunPercentage(BAKidDockers, 0)
AreaSetDockerRunPercentage(BAKidDockers, 100)
AreaSetDockerRunPercentage(BAStoreDockers, 0)
AreaSetDockerRunPercentage(BAStoreDockers, 100)
AreaSetDockerRunPercentage(BDormDock, 0)
AreaSetDockerRunPercentage(BDormDock, 100)
AreaSetDockerRunPercentage(BDormDock, 3)
AreaSetDockerRunPercentage(BDormDoorsDocker, 3)
AreaSetDockerRunPercentage(BExitDoor, 0)
AreaSetDockerRunPercentage(BExitDoor, 100)
AreaSetDockerRunPercentage(BExitDoor, 3)
AreaSetDockerRunPercentage(BExitDoor, 50)
AreaSetDockerRunPercentage(ClassDockers, 100)
AreaSetDockerRunPercentage(ClassDockers, 80)
AreaSetDockerRunPercentage(ExitDocker, 0)
AreaSetDockerRunPercentage(ExitDocker, 100)
AreaSetDockerRunPercentage(ExitDocker, 3)
AreaSetDockerRunPercentage(ExitDocker, 50)
AreaSetDockerRunPercentage(GDormDock, 0)
AreaSetDockerRunPercentage(GDormDock, 100)
AreaSetDockerRunPercentage(GDormDock, 3)
AreaSetDockerRunPercentage(gDormDocker, 0)
AreaSetDockerRunPercentage(gDormDocker, 100)
AreaSetDockerRunPercentage(gDormDocker, 3)
AreaSetDockerRunPercentage(gDormDocker, 50)
AreaSetDockerRunPercentage(HangOutDockers, 0)
AreaSetDockerRunPercentage(HangOutDockers, 100)
AreaSetDockerRunPercentage(HouseDockers, 0)
AreaSetDockerRunPercentage(HouseDockers, 100)
AreaSetDockerRunPercentage(IHouseDockers, 0)
AreaSetDockerRunPercentage(IHouseDockers, 100)
AreaSetDockerRunPercentage(MovieDockers, 0)
AreaSetDockerRunPercentage(MovieDockers, 100)
AreaSetDockerRunPercentage(PAhouseDockers, 0)
AreaSetDockerRunPercentage(PAhouseDockers, 100)
AreaSetDockerRunPercentage(PAStoreDockers, 0)
AreaSetDockerRunPercentage(PAStoreDockers, 100)
AreaSetDockerRunPercentage(RAStoreDockers, 0)
AreaSetDockerRunPercentage(RAStoreDockers, 100)
AreaSetDockerRunPercentage(SchoolDocker, 100)
AreaSetDockerRunPercentage(SchoolDocker, 70)
AreaSetDockerRunPercentage(SchoolDocker, 80)
AreaSetDockerRunPercentage(XXXDockers, 0)
AreaSetDockerRunPercentage(XXXDockers, 100)
push esi
mov esi, dword ptr [esp+0x8]
push edi
push 0x0
push esi
call LuaParam::GetUserData
mov ecx, dword ptr [0xC2AB68]
add esp, 0x8
push eax
call 0x46E9E0
push 0x1
push esi
mov edi, eax
call LuaParam::GetInt
add esp, 0x8
mov byte ptr [edi+0xFF], al
pop edi
xor eax, eax
pop esi
ret
AreaSetDockerSexReception(BDormDock, false, true)
AreaSetDockerSexReception(BDormDoorsDocker, false, true)
AreaSetDockerSexReception(BExitDoor, false, true)
AreaSetDockerSexReception(BExitDoor, true, true)
AreaSetDockerSexReception(GDormDock, true, false)
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetUserData
mov ecx, dword ptr [0xC2AB68]
add esp, 0x8
push eax
call 0x46E9E0
push 0x1
push edi
mov esi, eax
call LuaParam::GetBool
add al, al
add al, al
xor al, byte ptr [esi+0xFC]
push 0x2
and al, 0x4
xor byte ptr [esi+0xFC], al
push edi
call LuaParam::GetBool
add al, al
xor al, byte ptr [esi+0xFC]
add esp, 0x10
and al, 0x2
xor byte ptr [esi+0xFC], al
pop edi
xor eax, eax
pop esi
ret
AreaSetDoorLocked("5_B_CHEM_DOOR", true)
AreaSetDoorLocked("5_B_CHEM_DOOR_2", true)
AreaSetDoorLocked("ASYDOORB", true)
AreaSetDoorLocked("ASYDOORS11", false)
AreaSetDoorLocked("ASYDOORS11", true)
AreaSetDoorLocked("ASYDOORS12", false)
AreaSetDoorLocked("ASYDOORS14", false)
AreaSetDoorLocked("ASYDOORS15", false)
AreaSetDoorLocked("CELLDOOR", true)
AreaSetDoorLocked("CELLDOOR12", true)
AreaSetDoorLocked("CELLDOOR13", true)
AreaSetDoorLocked("CELLDOOR14", true)
AreaSetDoorLocked("CELLDOOR15", true)
AreaSetDoorLocked("CELLDOOR16", true)
AreaSetDoorLocked("CELLDOOR17", true)
AreaSetDoorLocked("CELLDOOR18", true)
AreaSetDoorLocked("CELLDOOR19", false)
AreaSetDoorLocked("CELLDOOR19", true)
AreaSetDoorLocked("CELLDOOR20", true)
AreaSetDoorLocked("CELLDOOR21", true)
AreaSetDoorLocked("DT_ChemPlant_DoorL", true)
AreaSetDoorLocked("DT_CLASSR_DOORL", true)
AreaSetDoorLocked("DT_DormExitDoorL", false)
AreaSetDoorLocked("DT_GDORM_DOORL", false)
AreaSetDoorLocked("DT_GDORM_DOORL", true)
AreaSetDoorLocked("DT_GDORM_DOORLEXIT", false)
AreaSetDoorLocked("DT_GDORM_DOORLEXIT", true)
AreaSetDoorLocked("DT_GYM_DOORL", false)
AreaSetDoorLocked("DT_GYM_DOORL", true)
AreaSetDoorLocked("DT_IBOXING_DOORL", false)
AreaSetDoorLocked("DT_INDOOR_WHOUSEFRONT", false)
AreaSetDoorLocked("DT_INDOOR_WHOUSEFRONT", true)
AreaSetDoorLocked("DT_INDOOR_WHOUSEROOF", false)
AreaSetDoorLocked("DT_INDOOR_WHOUSEROOF", true)
AreaSetDoorLocked("DT_ischool_Art", false)
AreaSetDoorLocked("DT_ischool_Art", true)
AreaSetDoorLocked("DT_ischool_Attic", false)
AreaSetDoorLocked("DT_ischool_Janitor", false)
AreaSetDoorLocked("DT_ischool_Staff", false)
AreaSetDoorLocked("DT_ISCHOOL_STAFF", true)
AreaSetDoorLocked("DT_ischool_Staff", true)
AreaSetDoorLocked("DT_JANITOR_MAINEXIT", false)
AreaSetDoorLocked("DT_JANITOR_MAINEXIT", true)
AreaSetDoorLocked("DT_JANITOR_SCHOOLEXIT", false)
AreaSetDoorLocked("DT_LIBRARYEXITR", false)
AreaSetDoorLocked("DT_LIBRARYEXITR", true)
AreaSetDoorLocked("DT_POOL_DOORL", false)
AreaSetDoorLocked("DT_POOL_DOORL", true)
AreaSetDoorLocked("DT_PREPTOMAIN", false)
AreaSetDoorLocked("DT_PREPTOMAIN", true)
AreaSetDoorLocked("DT_tbusines_BikeShopDoor", bLock)
AreaSetDoorLocked("DT_tbusines_BikeShopDoor", false)
AreaSetDoorLocked("DT_tbusines_BikeShopDoor", true)
AreaSetDoorLocked("DT_tbusines_ClothDoor", bLock)
AreaSetDoorLocked("DT_tbusines_ComicShopDoor", bLock)
AreaSetDoorLocked("DT_tbusines_FirewShopDoor", bLock)
AreaSetDoorLocked("DT_tbusines_GenShop1Door", bLock)
AreaSetDoorLocked("DT_tbusines_GenShop2Door", bLock)
AreaSetDoorLocked("DT_tbusiness_Barber", bLock)
AreaSetDoorLocked("DT_tpoor_Barber", bLock)
AreaSetDoorLocked("DT_trich_BikeShopDoor", bLock)
AreaSetDoorLocked("DT_trich_BoxingDoor01", false)
AreaSetDoorLocked("DT_trich_BoxingDoor01", true)
AreaSetDoorLocked("DT_trich_BoxingDoor02", false)
AreaSetDoorLocked("DT_trich_BoxingDoor02", true)
AreaSetDoorLocked("DT_trich_ClothRichDoor", bLock)
AreaSetDoorLocked("DT_trich_FirewShopDoor", bLock)
AreaSetDoorLocked("DT_trich_GenShopDoor", bLock)
AreaSetDoorLocked("DT_trich_SafePrep", false)
AreaSetDoorLocked("DT_trich_SafePrep", true)
AreaSetDoorLocked("DT_TSCHOOL_BOYSDORML", false)
AreaSetDoorLocked("DT_TSCHOOL_BOYSDORML", true)
AreaSetDoorLocked("DT_tschool_ExtWind", true)
AreaSetDoorLocked("DT_tschool_GirlsDormL", false)
AreaSetDoorLocked("DT_TSCHOOL_GIRLSDORML", false)
AreaSetDoorLocked("DT_TSCHOOL_GIRLSDORML", true)
AreaSetDoorLocked("DT_tschool_GirlsDormL", true)
AreaSetDoorLocked("DT_TSCHOOL_GYML", false)
AreaSetDoorLocked("DT_TSCHOOL_GYML", true)
AreaSetDoorLocked("DT_tschool_HallWind", true)
AreaSetDoorLocked("DT_TSCHOOL_POOLL", false)
AreaSetDoorLocked("DT_TSCHOOL_POOLL", true)
AreaSetDoorLocked("DT_TSCHOOL_PREPPYL", false)
AreaSetDoorLocked("DT_TSCHOOL_PREPPYL", true)
AreaSetDoorLocked("DT_TSCHOOL_SCHOOLFRONTDOORL", false)
AreaSetDoorLocked("DT_TSCHOOL_SCHOOLFRONTDOORL", true)
AreaSetDoorLocked("DT_TSCHOOL_SCHOOLLEFTBACKDOOR", false)
AreaSetDoorLocked("DT_TSCHOOL_SCHOOLLEFTBACKDOOR", true)
AreaSetDoorLocked("DT_TSCHOOL_SCHOOLLEFTFRONTDOOR", false)
AreaSetDoorLocked("DT_TSCHOOL_SCHOOLLEFTFRONTDOOR", true)
AreaSetDoorLocked("DT_TSCHOOL_SCHOOLRIGHTBACKDOOR", false)
AreaSetDoorLocked("DT_TSCHOOL_SCHOOLRIGHTBACKDOOR", true)
AreaSetDoorLocked("DT_TSCHOOL_SCHOOLRIGHTFRONTDOOR", false)
AreaSetDoorLocked("DT_TSCHOOL_SCHOOLRIGHTFRONTDOOR", true)
AreaSetDoorLocked("DT_TSCHOOL_SCHOOLSIDEDOORL", false)
AreaSetDoorLocked("DT_TSCHOOL_SCHOOLSIDEDOORL", true)
AreaSetDoorLocked("DT_whouse_front", false)
AreaSetDoorLocked("DT_whouse_front", true)
AreaSetDoorLocked("DT_whouse_roof", false)
AreaSetDoorLocked("DT_whouse_roof", true)
AreaSetDoorLocked("ESCDOORL", false)
AreaSetDoorLocked("ESCDOORL", true)
AreaSetDoorLocked("FMDoor02", false)
AreaSetDoorLocked("FMDoor02", true)
AreaSetDoorLocked("FMDoor03", false)
AreaSetDoorLocked("FMDoor03", true)
AreaSetDoorLocked("GDORM_DOORR", false)
AreaSetDoorLocked("GDORM_DOORR", true)
AreaSetDoorLocked("GDORM_UPPERDOOR", false)
AreaSetDoorLocked("GDORM_UPPERDOOR", true)
AreaSetDoorLocked("GDORM_UPPERDOORSTORAGE", false)
AreaSetDoorLocked("GDORM_UPPERDOORSTORAGE", true)
AreaSetDoorLocked("GYML_DOORR", false)
AreaSetDoorLocked("GYML_DOORR", true)
AreaSetDoorLocked("IBOXING_ESCDOORL", false)
AreaSetDoorLocked("IBOXING_ESCDOORL01", false)
AreaSetDoorLocked("iboxing_ESCDoorL01", false)
AreaSetDoorLocked("iboxing_ESCDoorL01", true)
AreaSetDoorLocked("IBOXING_ESCDOORR", false)
AreaSetDoorLocked("IBOXING_ESCDOORR01", false)
AreaSetDoorLocked("iboxing_ESCDoorR01", false)
AreaSetDoorLocked("iboxing_ESCDoorR01", true)
AreaSetDoorLocked("POOL_DOORR", false)
AreaSetDoorLocked("POOL_DOORR", true)
AreaSetDoorLocked("SCGATE_OBSERVATORY", false)
AreaSetDoorLocked("TINDUST_REDSTAR_GATE_01", true)
AreaSetDoorLocked("TINDUST_REDSTAR_SECURITY_DOOR", true)
AreaSetDoorLocked("TSCHOOL_GYMR", false)
AreaSetDoorLocked("TSCHOOL_GYMR", true)
AreaSetDoorLocked("TSCHOOL_POOLR", false)
AreaSetDoorLocked("TSCHOOL_POOLR", true)
AreaSetDoorLocked("TSCHOOL_SCHOOLSIDEDOORR", true)
AreaSetDoorLocked(door, true)
AreaSetDoorLocked(doorId, state)
AreaSetDoorLocked(entry, F_BoxingDoorRules(shared.gOverrideBoxingDoors))
AreaSetDoorLocked(GateHashID, lock)
AreaSetDoorLocked(gDoorToLock, false)
AreaSetDoorLocked(gDoorToLock, true)
AreaSetDoorLocked(HATTRICK_GATE, false)
AreaSetDoorLocked(HATTRICK_GATE, true)
AreaSetDoorLocked(tblEntry.idDoor, false)
AreaSetDoorLocked(tblEntry.idDoor, true)
AreaSetDoorLocked(tblEntry.idDoor2, false)
AreaSetDoorLocked(TRICH_TADGATES, bLock)
AreaSetDoorLocked(TRICH_TADGATES, false)
AreaSetDoorLocked(TRICH_TADGATES01, bLock)
AreaSetDoorLocked(TRICH_TADGATES01, false)
AreaSetDoorLocked(TRIGGER._1_07_GATE_T, false)
AreaSetDoorLocked(TRIGGER._5_B_CHEM_DOOR, false)
AreaSetDoorLocked(TRIGGER._5_B_CHEM_DOOR, true)
AreaSetDoorLocked(TRIGGER._5_B_CHEM_DOOR_2, false)
AreaSetDoorLocked(TRIGGER._5_B_CHEM_DOOR_2, true)
AreaSetDoorLocked(TRIGGER._5_B_SECDOOR1, true)
AreaSetDoorLocked(TRIGGER._5_B_SECDOOR2, true)
AreaSetDoorLocked(TRIGGER._ASYDOORB, false)
AreaSetDoorLocked(TRIGGER._ASYDOORS, false)
AreaSetDoorLocked(TRIGGER._ASYDOORS10, false)
AreaSetDoorLocked(TRIGGER._ASYDOORS11, false)
AreaSetDoorLocked(TRIGGER._ASYDOORS12, false)
AreaSetDoorLocked(TRIGGER._ASYDOORS12, true)
AreaSetDoorLocked(TRIGGER._ASYDOORS13, false)
AreaSetDoorLocked(TRIGGER._ASYDOORS14, false)
AreaSetDoorLocked(TRIGGER._ASYDOORS14, true)
AreaSetDoorLocked(TRIGGER._ASYDOORS15, false)
AreaSetDoorLocked(TRIGGER._ASYLUM_FRONT_GATE_DOOR, false)
AreaSetDoorLocked(TRIGGER._ASYLUM_FRONT_GATE_DOOR, true)
AreaSetDoorLocked(TRIGGER._BA_BMXGARAGE, true)
AreaSetDoorLocked(TRIGGER._BMX_GARAGEDOOR, true)
AreaSetDoorLocked(TRIGGER._CARNGATE01, false)
AreaSetDoorLocked(TRIGGER._CARNGATE01, true)
AreaSetDoorLocked(TRIGGER._CARNGATE02, false)
AreaSetDoorLocked(TRIGGER._CARNGATE02, true)
AreaSetDoorLocked(TRIGGER._CARNGATE03, false)
AreaSetDoorLocked(TRIGGER._CARNGATE03, true)
AreaSetDoorLocked(TRIGGER._CARNGATE04, false)
AreaSetDoorLocked(TRIGGER._CARNGATE04, true)
AreaSetDoorLocked(TRIGGER._CELLDOOR, true)
AreaSetDoorLocked(TRIGGER._CELLDOOR12, true)
AreaSetDoorLocked(TRIGGER._CELLDOOR13, false)
AreaSetDoorLocked(TRIGGER._CELLDOOR13, true)
AreaSetDoorLocked(TRIGGER._CELLDOOR14, true)
AreaSetDoorLocked(TRIGGER._CELLDOOR15, true)
AreaSetDoorLocked(TRIGGER._CELLDOOR16, true)
AreaSetDoorLocked(TRIGGER._CELLDOOR17, true)
AreaSetDoorLocked(TRIGGER._CELLDOOR18, true)
AreaSetDoorLocked(TRIGGER._CELLDOOR19, true)
AreaSetDoorLocked(TRIGGER._CELLDOOR20, true)
AreaSetDoorLocked(TRIGGER._CELLDOOR21, true)
AreaSetDoorLocked(TRIGGER._DOOR_PREPHOUSE_FOYER, false)
AreaSetDoorLocked(TRIGGER._DOOR_PREPHOUSE_FOYER, true)
AreaSetDoorLocked(TRIGGER._DOOR_PREPHOUSE_STAIRS, true)
AreaSetDoorLocked(TRIGGER._DT_ASYLUM_BACK_EXIT, true)
AreaSetDoorLocked(TRIGGER._DT_ASYLUM_FRONT_DOOR, false)
AreaSetDoorLocked(TRIGGER._DT_ASYLUM_FRONT_DOOR, true)
AreaSetDoorLocked(TRIGGER._DT_GYM_DOORL, false)
AreaSetDoorLocked(TRIGGER._DT_GYM_DOORL, true)
AreaSetDoorLocked(TRIGGER._DT_IBOXING_DOORL, true)
AreaSetDoorLocked(TRIGGER._DT_IFUNHOUS_FMDOOR, false)
AreaSetDoorLocked(TRIGGER._DT_IFUNHOUS_FMDOOR, true)
AreaSetDoorLocked(TRIGGER._DT_ISCHOOL_JANITOR, false)
AreaSetDoorLocked(TRIGGER._DT_ISCHOOL_JANITOR, true)
AreaSetDoorLocked(TRIGGER._DT_JANITOR_SCHOOLEXIT, false)
AreaSetDoorLocked(TRIGGER._DT_JANITOR_SCHOOLEXIT, true)
AreaSetDoorLocked(TRIGGER._DT_LIBRARYEXITR, false)
AreaSetDoorLocked(TRIGGER._DT_LIBRARYEXITR, true)
AreaSetDoorLocked(TRIGGER._DT_POOL_DOORL, false)
AreaSetDoorLocked(TRIGGER._DT_POOL_DOORL, true)
AreaSetDoorLocked(TRIGGER._DT_TPOOR_BMX, true)
AreaSetDoorLocked(TRIGGER._DT_TPOOR_TENWINDOW, false)
AreaSetDoorLocked(TRIGGER._DT_TPOOR_TENWINDOW, true)
AreaSetDoorLocked(TRIGGER._DT_TSCHOOL_SCHOOLFRONTDOORL, false)
AreaSetDoorLocked(TRIGGER._DT_TSCHOOL_SCHOOLFRONTDOORL, true)
AreaSetDoorLocked(TRIGGER._ESCDOORR, true)
AreaSetDoorLocked(TRIGGER._FMDOOR02, false)
AreaSetDoorLocked(TRIGGER._FMDOOR02, true)
AreaSetDoorLocked(TRIGGER._FMDOOR03, false)
AreaSetDoorLocked(TRIGGER._FMDOOR03, true)
AreaSetDoorLocked(TRIGGER._FMDOORN, false)
AreaSetDoorLocked(TRIGGER._FMDOORN, true)
AreaSetDoorLocked(TRIGGER._FMDOORN01, false)
AreaSetDoorLocked(TRIGGER._FMDOORN01, true)
AreaSetDoorLocked(TRIGGER._FUN_MAZEENTRYDOOR, true)
AreaSetDoorLocked(TRIGGER._FUNTEETH, true)
AreaSetDoorLocked(TRIGGER._HATTRICK_GATE, true)
AreaSetDoorLocked(TRIGGER._HATTRICKDOOR, true)
AreaSetDoorLocked(TRIGGER._IBOXING_ESCDOORL, false)
AreaSetDoorLocked(TRIGGER._IBOXING_ESCDOORL, true)
AreaSetDoorLocked(TRIGGER._IBOXING_ESCDOORL01, false)
AreaSetDoorLocked(TRIGGER._IBOXING_ESCDOORL01, true)
AreaSetDoorLocked(TRIGGER._IBOXING_ESCDOORR, false)
AreaSetDoorLocked(TRIGGER._IBOXING_ESCDOORR, true)
AreaSetDoorLocked(TRIGGER._IBOXING_ESCDOORR01, false)
AreaSetDoorLocked(TRIGGER._IBOXING_ESCDOORR01, true)
AreaSetDoorLocked(TRIGGER._IFUNHOUS_CTRLROOM, false)
AreaSetDoorLocked(TRIGGER._IFUNHOUS_CTRLROOM, true)
AreaSetDoorLocked(TRIGGER._IFUNHOUS_ENDMINE, true)
AreaSetDoorLocked(TRIGGER._IFUNHOUS_MINEEND, false)
AreaSetDoorLocked(TRIGGER._IFUNHOUS_MINEEND, true)
AreaSetDoorLocked(TRIGGER._IFUNHOUS_MINEMZE, true)
AreaSetDoorLocked(TRIGGER._IFUNHOUS_MZEMINE, false)
AreaSetDoorLocked(TRIGGER._IFUNHOUS_MZEMINE, true)
AreaSetDoorLocked(TRIGGER._JANDOORS00, false)
AreaSetDoorLocked(TRIGGER._JANDOORS00, true)
AreaSetDoorLocked(TRIGGER._JANDOORS01, false)
AreaSetDoorLocked(TRIGGER._JANDOORS01, true)
AreaSetDoorLocked(TRIGGER._JANDOORS02, false)
AreaSetDoorLocked(TRIGGER._JANDOORS02, true)
AreaSetDoorLocked(TRIGGER._JANDOORS03B, false)
AreaSetDoorLocked(TRIGGER._JANDOORS03B, true)
AreaSetDoorLocked(TRIGGER._NERDPATH_BRDOOR, false)
AreaSetDoorLocked(TRIGGER._NERDPATH_BRDOOR, true)
AreaSetDoorLocked(TRIGGER._SCGATE_OBSERVATORY, false)
AreaSetDoorLocked(TRIGGER._SCGATE_OBSERVATORY, true)
AreaSetDoorLocked(TRIGGER._STALDOOR01, true)
AreaSetDoorLocked(TRIGGER._STALDOOR02, false)
AreaSetDoorLocked(TRIGGER._STALDOOR02, true)
AreaSetDoorLocked(TRIGGER._TINDUST_REDSTAR_GATE_01, true)
AreaSetDoorLocked(TRIGGER._TINDUST_REDSTAR_SECURITY_DOOR, false)
AreaSetDoorLocked(TRIGGER._TINDUST_SHDOOR_03, true)
AreaSetDoorLocked(TRIGGER._TINDUST_SHDOOR_04, true)
AreaSetDoorLocked(TRIGGER._TSCHOOL_SCHOOLFRONTDOORR, false)
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push 0x1
push esi
call LuaParam::GetBool
push 0x0
push esi
mov byte ptr [esp+0x14], al
call LuaParam::IsString
add esp, 0x10
test al, al
push 0x0
push esi
jz 0x63
call LuaParam::GetString
add esp, 0x8
push eax
mov ecx, 0x20C7E98
call 0x6D7A10
cmp eax, 0xFFFFFFFF
jz 0x25
mov edx, dword ptr [0x20C7C48]
mov ecx, dword ptr [edx+0x4]
test byte ptr [eax+ecx*1], 0x80
jz 0x6
xor ecx, ecx
jmp 0xA
mov ecx, dword ptr [edx+0xC]
imul ecx, eax
add ecx, dword ptr [edx]
test ecx, ecx
jnz 0xB4
push 0x0
push esi
call LuaParam::GetString
push eax
call 0x576ED0
mov edx, dword ptr [esp+0x10]
add esp, 0xC
push edx
push eax
mov ecx, 0xC3B808
call 0x4E99F0
xor eax, eax
pop esi
pop ecx
ret
call LuaParam::IsHashID
add esp, 0x8
test al, al
push 0x0
push esi
jz 0x50
call LuaParam::GetUserData
add esp, 0x8
mov esi, eax
push esi
mov ecx, 0x20C7E98
call 0x6D79C0
cmp eax, 0xFFFFFFFF
jz 0x21
mov edx, dword ptr [0x20C7C48]
mov ecx, dword ptr [edx+0x4]
test byte ptr [eax+ecx*1], 0x80
jz 0x6
xor ecx, ecx
jmp 0xA
mov ecx, dword ptr [edx+0xC]
imul ecx, eax
add ecx, dword ptr [edx]
test ecx, ecx
jnz 0x42
mov edx, dword ptr [esp+0x4]
push edx
push esi
mov ecx, 0xC3B808
call 0x4E99F0
xor eax, eax
pop esi
pop ecx
ret
call LuaParam::GetInt
add esp, 0x8
test eax, eax
jl 0x2B
mov edx, dword ptr [0x20C7C48]
mov ecx, dword ptr [edx+0x4]
test byte ptr [eax+ecx*1], 0x80
jz 0x6
xor ecx, ecx
jmp 0xA
mov ecx, dword ptr [edx+0xC]
imul ecx, eax
add ecx, dword ptr [edx]
test ecx, ecx
jz 0xC
mov edx, dword ptr [esp+0x4]
push edx
call 0x6D6570
xor eax, eax
pop esi
pop ecx
ret
AreaSetDoorLockedToPeds("ASYDOORB", true)
AreaSetDoorLockedToPeds("ASYDOORS11", false)
AreaSetDoorLockedToPeds("ASYDOORS11", true)
AreaSetDoorLockedToPeds("ASYDOORS12", false)
AreaSetDoorLockedToPeds("ASYDOORS12", true)
AreaSetDoorLockedToPeds("AsyDoors13", true)
AreaSetDoorLockedToPeds("ASYDOORS14", false)
AreaSetDoorLockedToPeds("ASYDOORS14", true)
AreaSetDoorLockedToPeds("ASYDOORS15", false)
AreaSetDoorLockedToPeds("CELLDOOR", true)
AreaSetDoorLockedToPeds("CELLDOOR12", true)
AreaSetDoorLockedToPeds("CELLDOOR13", true)
AreaSetDoorLockedToPeds("CELLDOOR14", true)
AreaSetDoorLockedToPeds("CELLDOOR15", true)
AreaSetDoorLockedToPeds("CELLDOOR16", true)
AreaSetDoorLockedToPeds("CELLDOOR17", true)
AreaSetDoorLockedToPeds("CELLDOOR18", true)
AreaSetDoorLockedToPeds("CELLDOOR19", true)
AreaSetDoorLockedToPeds("CELLDOOR20", true)
AreaSetDoorLockedToPeds("CELLDOOR21", true)
AreaSetDoorLockedToPeds("DT_DormExitDoorL", false)
AreaSetDoorLockedToPeds("DT_IBOXING_DOORL", false)
AreaSetDoorLockedToPeds("DT_JANITOR_MAINEXIT", true)
AreaSetDoorLockedToPeds("DT_TSCHOOL_SCHOOLSIDEDOORL", false)
AreaSetDoorLockedToPeds("DT_TSCHOOL_SCHOOLSIDEDOORL", true)
AreaSetDoorLockedToPeds("FMDoor", false)
AreaSetDoorLockedToPeds("FMDOOR07", true)
AreaSetDoorLockedToPeds("FMDOOR08", true)
AreaSetDoorLockedToPeds("SCGATE_OBSERVATORY", false)
AreaSetDoorLockedToPeds("SCGATE_OBSERVATORY", true)
AreaSetDoorLockedToPeds(door, false)
AreaSetDoorLockedToPeds(door.ID, false)
AreaSetDoorLockedToPeds(door.ID, true)
AreaSetDoorLockedToPeds(doorId, state)
AreaSetDoorLockedToPeds(GateHashID, lock)
AreaSetDoorLockedToPeds(gDoorToLock, false)
AreaSetDoorLockedToPeds(gDoorToLock, true)
AreaSetDoorLockedToPeds(HATTRICK_GATE, true)
AreaSetDoorLockedToPeds(tblDoors.Garage2.ID, false)
AreaSetDoorLockedToPeds(tblDoors.Garage2.ID, true)
AreaSetDoorLockedToPeds(tblDoors.Garage3.ID, false)
AreaSetDoorLockedToPeds(tblEntry.idDoor, false)
AreaSetDoorLockedToPeds(tblEntry.idDoor, true)
AreaSetDoorLockedToPeds(tblEntry.idDoor2, false)
AreaSetDoorLockedToPeds(TRICH_TADGATES, bLock)
AreaSetDoorLockedToPeds(TRICH_TADGATES01, bLock)
AreaSetDoorLockedToPeds(TRIGGER._5_B_CHEM_DOOR, false)
AreaSetDoorLockedToPeds(TRIGGER._5_B_CHEM_DOOR_2, false)
AreaSetDoorLockedToPeds(TRIGGER._ASYDOORB, false)
AreaSetDoorLockedToPeds(TRIGGER._ASYDOORS, false)
AreaSetDoorLockedToPeds(TRIGGER._ASYDOORS10, false)
AreaSetDoorLockedToPeds(TRIGGER._ASYDOORS11, false)
AreaSetDoorLockedToPeds(TRIGGER._ASYDOORS12, false)
AreaSetDoorLockedToPeds(TRIGGER._ASYDOORS12, true)
AreaSetDoorLockedToPeds(TRIGGER._ASYDOORS13, false)
AreaSetDoorLockedToPeds(TRIGGER._ASYDOORS14, false)
AreaSetDoorLockedToPeds(TRIGGER._ASYDOORS15, false)
AreaSetDoorLockedToPeds(TRIGGER._ASYLUM_FRONT_GATE_DOOR, false)
AreaSetDoorLockedToPeds(TRIGGER._BA_BMXGARAGE, true)
AreaSetDoorLockedToPeds(TRIGGER._BMX_GARAGEDOOR, true)
AreaSetDoorLockedToPeds(TRIGGER._BUSDOORS, false)
AreaSetDoorLockedToPeds(TRIGGER._CARNGATE01, false)
AreaSetDoorLockedToPeds(TRIGGER._CARNGATE02, false)
AreaSetDoorLockedToPeds(TRIGGER._CARNGATE03, false)
AreaSetDoorLockedToPeds(TRIGGER._CARNGATE04, false)
AreaSetDoorLockedToPeds(TRIGGER._CELLDOOR13, false)
AreaSetDoorLockedToPeds(TRIGGER._DOOR_PREPHOUSE_FOYER, false)
AreaSetDoorLockedToPeds(TRIGGER._DOOR_PREPHOUSE_FOYER, true)
AreaSetDoorLockedToPeds(TRIGGER._DOOR_PREPHOUSE_STAIRS, true)
AreaSetDoorLockedToPeds(TRIGGER._DT_ASYLUM_FRONT_DOOR, false)
AreaSetDoorLockedToPeds(TRIGGER._DT_GYM_DOORL, false)
AreaSetDoorLockedToPeds(TRIGGER._DT_IBOXING_DOORL, true)
AreaSetDoorLockedToPeds(TRIGGER._DT_ISCHOOL_ART, false)
AreaSetDoorLockedToPeds(TRIGGER._DT_ISCHOOL_ART, true)
AreaSetDoorLockedToPeds(TRIGGER._DT_ISCHOOL_JANITOR, true)
AreaSetDoorLockedToPeds(TRIGGER._DT_JANITOR_SCHOOLEXIT, false)
AreaSetDoorLockedToPeds(TRIGGER._DT_JANITOR_SCHOOLEXIT, true)
AreaSetDoorLockedToPeds(TRIGGER._ESCDOORR, true)
AreaSetDoorLockedToPeds(TRIGGER._FMDOOR, true)
AreaSetDoorLockedToPeds(TRIGGER._FUNTEETH, true)
AreaSetDoorLockedToPeds(TRIGGER._HATTRICKDOOR, false)
AreaSetDoorLockedToPeds(TRIGGER._HATTRICKDOOR, true)
AreaSetDoorLockedToPeds(TRIGGER._IBOXING_ESCDOORL, isLocked)
AreaSetDoorLockedToPeds(TRIGGER._IBOXING_ESCDOORL01, isLocked)
AreaSetDoorLockedToPeds(TRIGGER._IBOXING_ESCDOORR, isLocked)
AreaSetDoorLockedToPeds(TRIGGER._IBOXING_ESCDOORR01, isLocked)
AreaSetDoorLockedToPeds(TRIGGER._IFUNHOUS_FMTRAPDR, true)
AreaSetDoorLockedToPeds(TRIGGER._IFUNHOUS_FMTRAPDR01, true)
AreaSetDoorLockedToPeds(TRIGGER._JANDOORS00, false)
AreaSetDoorLockedToPeds(TRIGGER._JANDOORS00, true)
AreaSetDoorLockedToPeds(TRIGGER._JANDOORS01, false)
AreaSetDoorLockedToPeds(TRIGGER._JANDOORS01, true)
AreaSetDoorLockedToPeds(TRIGGER._JANDOORS02, false)
AreaSetDoorLockedToPeds(TRIGGER._JANDOORS02, true)
AreaSetDoorLockedToPeds(TRIGGER._JANDOORS03B, false)
AreaSetDoorLockedToPeds(TRIGGER._JANDOORS03B, true)
AreaSetDoorLockedToPeds(TRIGGER._NERDPATH_BRDOOR, true)
AreaSetDoorLockedToPeds(TRIGGER._RA_PREPDOOR14, false)
AreaSetDoorLockedToPeds(TRIGGER._RA_PREPDOOR14, true)
AreaSetDoorLockedToPeds(TRIGGER._RA_PREPDOOR15, false)
AreaSetDoorLockedToPeds(TRIGGER._RA_PREPDOOR15, true)
AreaSetDoorLockedToPeds(TRIGGER._SCGATE_OBSERVATORY, false)
AreaSetDoorLockedToPeds(TRIGGER._SCGATE_OBSERVATORY, true)
AreaSetDoorLockedToPeds(TRIGGER._SCGRDOOR, true)
AreaSetDoorLockedToPeds(TRIGGER._SCGRDOOR02, false)
AreaSetDoorLockedToPeds(TRIGGER._TINDUST_SHDOOR_03, false)
AreaSetDoorLockedToPeds(TRIGGER._TINDUST_SHDOOR_04, false)
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push 0x1
push esi
call LuaParam::GetBool
push 0x0
push esi
mov byte ptr [esp+0x14], al
call LuaParam::IsString
add esp, 0x10
test al, al
push 0x0
push esi
jz 0x63
call LuaParam::GetString
add esp, 0x8
push eax
mov ecx, 0x20C7E98
call 0x6D7A10
cmp eax, 0xFFFFFFFF
jz 0x25
mov edx, dword ptr [0x20C7C48]
mov ecx, dword ptr [edx+0x4]
test byte ptr [eax+ecx*1], 0x80
jz 0x6
xor ecx, ecx
jmp 0xA
mov ecx, dword ptr [edx+0xC]
imul ecx, eax
add ecx, dword ptr [edx]
test ecx, ecx
jnz 0xB4
push 0x0
push esi
call LuaParam::GetString
push eax
call 0x576ED0
mov edx, dword ptr [esp+0x10]
add esp, 0xC
push edx
push eax
mov ecx, 0xC3B808
call 0x4E9AC0
xor eax, eax
pop esi
pop ecx
ret
call LuaParam::IsHashID
add esp, 0x8
test al, al
push 0x0
push esi
jz 0x50
call LuaParam::GetUserData
add esp, 0x8
mov esi, eax
push esi
mov ecx, 0x20C7E98
call 0x6D79C0
cmp eax, 0xFFFFFFFF
jz 0x21
mov edx, dword ptr [0x20C7C48]
mov ecx, dword ptr [edx+0x4]
test byte ptr [eax+ecx*1], 0x80
jz 0x6
xor ecx, ecx
jmp 0xA
mov ecx, dword ptr [edx+0xC]
imul ecx, eax
add ecx, dword ptr [edx]
test ecx, ecx
jnz 0x42
mov edx, dword ptr [esp+0x4]
push edx
push esi
mov ecx, 0xC3B808
call 0x4E9AC0
xor eax, eax
pop esi
pop ecx
ret
call LuaParam::GetInt
add esp, 0x8
test eax, eax
jl 0x2B
mov edx, dword ptr [0x20C7C48]
mov ecx, dword ptr [edx+0x4]
test byte ptr [eax+ecx*1], 0x80
jz 0x6
xor ecx, ecx
jmp 0xA
mov ecx, dword ptr [edx+0xC]
imul ecx, eax
add ecx, dword ptr [edx]
test ecx, ecx
jz 0xC
mov edx, dword ptr [esp+0x4]
push edx
call 0x6D65D0
xor eax, eax
pop esi
pop ecx
ret
AreaSetDoorOpen("DT_GDORM_DOORL", false)
AreaSetDoorOpen("DT_GDORM_DOORLEXIT", false)
AreaSetDoorOpen("FMDoor", true)
AreaSetDoorOpen("GDORM_DOORR", false)
AreaSetDoorOpen("GDORM_UPPERDOORSTORAGE", false)
AreaSetDoorOpen("GDORM_UPPERDOORSTORAGE", true)
AreaSetDoorOpen(GateHashID, openDoor)
AreaSetDoorOpen(HATTRICK_GATE, true)
AreaSetDoorOpen(TRICH_TADGATES, false)
AreaSetDoorOpen(TRICH_TADGATES01, false)
AreaSetDoorOpen(TRICH_TADGATES01, true)
AreaSetDoorOpen(TRIGGER._ASYLUM_FRONT_GATE_DOOR, true)
AreaSetDoorOpen(TRIGGER._DOOR_PREPHOUSE_FOYER, true)
AreaSetDoorOpen(TRIGGER._TSCHOOL_FRONTGATE, true)
AreaSetDoorOpen(TRIGGER._TSCHOOL_PARKINGGATE, true)
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push 0x1
push esi
call LuaParam::GetBool
push 0x0
push esi
mov byte ptr [esp+0x14], al
call LuaParam::IsString
add esp, 0x10
test al, al
push 0x0
push esi
jz 0x63
call LuaParam::GetString
add esp, 0x8
push eax
mov ecx, 0x20C7E98
call 0x6D7A10
cmp eax, 0xFFFFFFFF
jz 0x25
mov edx, dword ptr [0x20C7C48]
mov ecx, dword ptr [edx+0x4]
test byte ptr [eax+ecx*1], 0x80
jz 0x6
xor ecx, ecx
jmp 0xA
mov ecx, dword ptr [edx+0xC]
imul ecx, eax
add ecx, dword ptr [edx]
test ecx, ecx
jnz 0xB4
push 0x0
push esi
call LuaParam::GetString
push eax
call 0x576ED0
mov edx, dword ptr [esp+0x10]
add esp, 0xC
push edx
push eax
mov ecx, 0xC3B808
call 0x4E9B90
xor eax, eax
pop esi
pop ecx
ret
call LuaParam::IsHashID
add esp, 0x8
test al, al
push 0x0
push esi
jz 0x50
call LuaParam::GetUserData
add esp, 0x8
mov esi, eax
push esi
mov ecx, 0x20C7E98
call 0x6D79C0
cmp eax, 0xFFFFFFFF
jz 0x21
mov edx, dword ptr [0x20C7C48]
mov ecx, dword ptr [edx+0x4]
test byte ptr [eax+ecx*1], 0x80
jz 0x6
xor ecx, ecx
jmp 0xA
mov ecx, dword ptr [edx+0xC]
imul ecx, eax
add ecx, dword ptr [edx]
test ecx, ecx
jnz 0x42
mov edx, dword ptr [esp+0x4]
push edx
push esi
mov ecx, 0xC3B808
call 0x4E9B90
xor eax, eax
pop esi
pop ecx
ret
call LuaParam::GetInt
add esp, 0x8
test eax, eax
jl 0x2B
mov edx, dword ptr [0x20C7C48]
mov ecx, dword ptr [edx+0x4]
test byte ptr [eax+ecx*1], 0x80
jz 0x6
xor ecx, ecx
jmp 0xA
mov ecx, dword ptr [edx+0xC]
imul ecx, eax
add ecx, dword ptr [edx]
test ecx, ecx
jz 0xC
mov edx, dword ptr [esp+0x4]
push edx
call 0x6D6650
xor eax, eax
pop esi
pop ecx
ret
AreaSetDoorPathableToPeds(door, true)
AreaSetDoorPathableToPeds(door.ID, false)
AreaSetDoorPathableToPeds(door.ID, true)
AreaSetDoorPathableToPeds(tblDoors.Garage2.ID, false)
AreaSetDoorPathableToPeds(tblDoors.Garage2.ID, true)
AreaSetDoorPathableToPeds(tblDoors.Garage3.ID, true)
AreaSetDoorPathableToPeds(TRIGGER._1_07_GATE_T, false)
AreaSetDoorPathableToPeds(TRIGGER._1_07_GATE_T, true)
AreaSetDoorPathableToPeds(TRIGGER._ASYBARS, true)
AreaSetDoorPathableToPeds(TRIGGER._ASYBARS01, true)
AreaSetDoorPathableToPeds(TRIGGER._ASYDOORB, true)
AreaSetDoorPathableToPeds(TRIGGER._ASYDOORS13, true)
AreaSetDoorPathableToPeds(TRIGGER._ASYDOORS14, true)
AreaSetDoorPathableToPeds(TRIGGER._BUSDOORS, false)
AreaSetDoorPathableToPeds(TRIGGER._BUSDOORS, true)
AreaSetDoorPathableToPeds(TRIGGER._DOOR_PREPHOUSE_FOYER, false)
AreaSetDoorPathableToPeds(TRIGGER._DOOR_PREPHOUSE_FOYER, true)
AreaSetDoorPathableToPeds(TRIGGER._DOOR_PREPHOUSE_STAIRS, false)
AreaSetDoorPathableToPeds(TRIGGER._DOOR_PREPHOUSE_STAIRS, true)
AreaSetDoorPathableToPeds(TRIGGER._DT_IBOXING_DOORL, false)
AreaSetDoorPathableToPeds(TRIGGER._DT_IBOXING_DOORL, true)
AreaSetDoorPathableToPeds(TRIGGER._DT_JANITOR_SCHOOLEXIT, false)
AreaSetDoorPathableToPeds(TRIGGER._DT_JANITOR_SCHOOLEXIT, true)
AreaSetDoorPathableToPeds(TRIGGER._FMDOOR, true)
AreaSetDoorPathableToPeds(TRIGGER._FMDOOR07, true)
AreaSetDoorPathableToPeds(TRIGGER._FMDOOR08, true)
AreaSetDoorPathableToPeds(TRIGGER._FUNTEETH, false)
AreaSetDoorPathableToPeds(TRIGGER._HATTRICK_GATE, false)
AreaSetDoorPathableToPeds(TRIGGER._HATTRICK_GATE, true)
AreaSetDoorPathableToPeds(TRIGGER._HATTRICKDOOR, false)
AreaSetDoorPathableToPeds(TRIGGER._HATTRICKDOOR, true)
AreaSetDoorPathableToPeds(TRIGGER._IBOXING_ESCDOORL, not isLocked)
AreaSetDoorPathableToPeds(TRIGGER._IBOXING_ESCDOORL01, not isLocked)
AreaSetDoorPathableToPeds(TRIGGER._IBOXING_ESCDOORR, not isLocked)
AreaSetDoorPathableToPeds(TRIGGER._IBOXING_ESCDOORR01, not isLocked)
AreaSetDoorPathableToPeds(TRIGGER._JANDOORS00, false)
AreaSetDoorPathableToPeds(TRIGGER._JANDOORS00, true)
AreaSetDoorPathableToPeds(TRIGGER._JANDOORS01, false)
AreaSetDoorPathableToPeds(TRIGGER._JANDOORS01, true)
AreaSetDoorPathableToPeds(TRIGGER._JANDOORS02, false)
AreaSetDoorPathableToPeds(TRIGGER._JANDOORS02, true)
AreaSetDoorPathableToPeds(TRIGGER._JANDOORS03B, false)
AreaSetDoorPathableToPeds(TRIGGER._JANDOORS03B, true)
AreaSetDoorPathableToPeds(TRIGGER._SCGATE_OBSERVATORY, true)
AreaSetDoorPathableToPeds(TRIGGER._SCGRDOOR, false)
AreaSetDoorPathableToPeds(TRIGGER._SCGRDOOR, true)
AreaSetDoorPathableToPeds(TRIGGER._SCGRDOOR01, false)
AreaSetDoorPathableToPeds(TRIGGER._SCGRDOOR01, true)
AreaSetDoorPathableToPeds(TRIGGER._SCGRDOOR02, false)
AreaSetDoorPathableToPeds(TRIGGER._SCGRDOOR02, true)
push ecx
push esi
push edi
mov edi, dword ptr [esp+0x10]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x8
test eax, eax
jnl 0x6
xor ecx, ecx
jmp 0x1D
mov edx, dword ptr [0x20C7C48]
mov ecx, dword ptr [edx+0x4]
test byte ptr [eax+ecx*1], 0x80
jz 0x6
xor ecx, ecx
jmp 0xA
mov ecx, dword ptr [edx+0xC]
imul ecx, eax
add ecx, dword ptr [edx]
push ecx
call 0x4EA3C0
mov esi, eax
add esp, 0x4
test esi, esi
jz 0x1C
push 0x1
push edi
call LuaParam::GetBool
mov byte ptr [esp+0x10], al
mov edx, dword ptr [esp+0x10]
push edx
push esi
call 0x5EB060
add esp, 0x10
pop edi
xor eax, eax
pop esi
pop ecx
ret
AreaSetNodesSwitchedOffInTrigger(TRIGGER._1_03_AUTOSHOPAREA, false)
AreaSetNodesSwitchedOffInTrigger(TRIGGER._1_03_AUTOSHOPAREA, true)
AreaSetNodesSwitchedOffInTrigger(TRIGGER._2_S02_PATHVOLUME, false)
AreaSetNodesSwitchedOffInTrigger(TRIGGER._2_S02_PATHVOLUME, true)
AreaSetNodesSwitchedOffInTrigger(TRIGGER._COMICPOPTRIG, false)
AreaSetNodesSwitchedOffInTrigger(TRIGGER._COMICPOPTRIG, true)
AreaSetNodesSwitchedOffInTrigger(TRIGGER._DUNKTANKEXCLUDER, false)
AreaSetNodesSwitchedOffInTrigger(TRIGGER._DUNKTANKEXCLUDER, true)
AreaSetNodesSwitchedOffInTrigger(TRIGGER._HIGHSTRIKEREXCLUDER, false)
AreaSetNodesSwitchedOffInTrigger(TRIGGER._HIGHSTRIKEREXCLUDER, true)
AreaSetNodesSwitchedOffInTrigger(TRIGGER._INDUSTRIALBARRICADE, false)
AreaSetNodesSwitchedOffInTrigger(TRIGGER._INDUSTRIALBARRICADE, true)
AreaSetNodesSwitchedOffInTrigger(TRIGGER._PAPERROUTE_EXCLUDER, false)
AreaSetNodesSwitchedOffInTrigger(TRIGGER._PAPERROUTE_EXCLUDER, true)
AreaSetNodesSwitchedOffInTrigger(TRIGGER._POORBARRICADE, false)
AreaSetNodesSwitchedOffInTrigger(TRIGGER._POORBARRICADE, true)
AreaSetNodesSwitchedOffInTrigger(TRIGGER._PR_HILLTOPEXCLUDER, false)
AreaSetNodesSwitchedOffInTrigger(TRIGGER._PR_HILLTOPEXCLUDER, true)
push ecx
push esi
push edi
mov edi, dword ptr [esp+0x10]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x8
test eax, eax
jnl 0x6
xor esi, esi
jmp 0x1F
mov edx, dword ptr [0x20C7C48]
mov ecx, dword ptr [edx+0x4]
test byte ptr [eax+ecx*1], 0x80
jz 0x6
xor ecx, ecx
jmp 0xA
mov ecx, dword ptr [edx+0xC]
imul ecx, eax
add ecx, dword ptr [edx]
mov esi, ecx
push 0x1
push edi
call LuaParam::GetBool
mov byte ptr [esp+0x10], al
mov edx, dword ptr [esp+0x10]
add esp, 0x8
push edx
push esi
mov ecx, 0xBF6228
call 0x442090
pop edi
xor eax, eax
pop esi
pop ecx
ret
AreaSetPathableInRadius(-13.2, -234.8, 6, 10, 10, false)
AreaSetPathableInRadius(-516.618, 133.406, 55.577, 0.15, 0.5, true)
AreaSetPathableInRadius(-516.62, 129.015, 55.575, 0.15, 0.5, false)
AreaSetPathableInRadius(-516.62, 129.015, 55.575, 0.15, 0.5, true)
AreaSetPathableInRadius(-516.622, 137.852, 55.575, 0.15, 0.5, false)
AreaSetPathableInRadius(-516.622, 137.852, 55.575, 0.15, 0.5, true)
AreaSetPathableInRadius(-516.797, 133.414, 55.6463, 0.1, 0.5, false)
AreaSetPathableInRadius(-523.41, 314.656, 31.4, 0.5, 5, false)
AreaSetPathableInRadius(-524.291, 118.2, 50.68, 0.1, 0.5, false)
AreaSetPathableInRadius(-524.295, 118.29, 50.616, 0.152, 0.5, true)
AreaSetPathableInRadius(1.1, -113, 2.1, 0.5, 5, false)
AreaSetPathableInRadius(1.1, -113, 2.1, 0.5, 5, true)
AreaSetPathableInRadius(134.7, 27.6, 6.1, 0.2, 10, false)
AreaSetPathableInRadius(134.7, 27.6, 6.1, 0.2, 10, true)
AreaSetPathableInRadius(164.4, -176.9, 7.8, 0.1, 5, false)
AreaSetPathableInRadius(18.2, -116.7, 3, 0.1, 5, false)
AreaSetPathableInRadius(18.2, -116.7, 3, 0.1, 5, true)
AreaSetPathableInRadius(19, -141.1, 2.8, 0.1, 5, false)
AreaSetPathableInRadius(19, -141.1, 2.8, 0.1, 5, true)
AreaSetPathableInRadius(19.8, -127.1, 2.8, 0.1, 5, false)
AreaSetPathableInRadius(19.8, -127.1, 2.8, 0.1, 5, true)
AreaSetPathableInRadius(226.3478, 5.853811, 5.758574, 0.5, 3, true)
AreaSetPathableInRadius(226.3478, 5.853811, 7, 0.5, 10, false)
AreaSetPathableInRadius(226.3478, 5.853811, 7, 0.5, 10, true)
AreaSetPathableInRadius(239.4, -105.9, 7.3, 0.2, 10, false)
AreaSetPathableInRadius(242.2, 12.4, 6.1, 0.1, 10, false)
AreaSetPathableInRadius(303.1998, -72.23503, 5.583573, 0.5, 3, true)
AreaSetPathableInRadius(303.1998, -72.23503, 7, 0.5, 10, false)
AreaSetPathableInRadius(303.1998, -72.23503, 7, 0.5, 10, true)
AreaSetPathableInRadius(339, 209.681, 4.01, 1, 10, false)
AreaSetPathableInRadius(34.57452, -139.21382, 4, 0.5, 6, false)
AreaSetPathableInRadius(34.57452, -139.21382, 4, 0.5, 6, true)
AreaSetPathableInRadius(382.5, -423.6, 2.7, 0.01, 10, false)
AreaSetPathableInRadius(40.9, -365.1, 0.4, 0.2, 10, false)
AreaSetPathableInRadius(489.428, -115.542, 5.4376, 1, 2, false)
AreaSetPathableInRadius(489.428, -115.542, 5.4376, 1, 2, true)
AreaSetPathableInRadius(502.9, -208.2, 2, 0.2, 10, false)
AreaSetPathableInRadius(590.7, -94, 5.7, 0.5, 5, false)
AreaSetPathableInRadius(591.2, -84.1, 5.7, 0.5, 5, false)
AreaSetPathableInRadius(592, -93.6, 5.7, 0.5, 5, false)
AreaSetPathableInRadius(592.1, -89.2, 5.7, 0.5, 5, false)
AreaSetPathableInRadius(592.2, -84.9, 5.7, 0.5, 5, false)
AreaSetPathableInRadius(597.511, -89.6485, 5.98401, 4, 10, false)
AreaSetPathableInRadius(6.3, -269.9, 2.7, 5, 10, false)
AreaSetPathableInRadius(8.7, -139.7, 2.8, 1, 5, false)
AreaSetPathableInRadius(8.7, -139.7, 2.8, 1, 5, true)
AreaSetPathableInRadius(broken.x, broken.y, broken.z, 0.5, 10, true)
AreaSetPathableInRadius(entry.x, entry.y, entry.z, 0.01, 10, false)
sub esp, 0x18
push esi
mov esi, dword ptr [esp+0x20]
push 0x0
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0xC], st
push 0x1
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x18], st
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x24], st
fld st, dword ptr [esp+0x1C]
push 0x3
fstp dword ptr [esp+0x2C], st
push esi
fld st, dword ptr [esp+0x28]
fstp dword ptr [esp+0x34], st
fld st, dword ptr [esp+0x2C]
fstp dword ptr [esp+0x38], st
call LuaParam::GetFloat
push 0x4
fstp dword ptr [esp+0x28], st
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x30], st
push 0x5
push esi
call LuaParam::GetBool
fld st, dword ptr [esp+0x38]
mov byte ptr [esp+0x3C], al
mov eax, dword ptr [esp+0x3C]
add esp, 0x30
push eax
sub esp, 0x8
fstp dword ptr [esp+0x4], st
lea ecx, ptr [esp+0x1C]
fld st, dword ptr [esp+0x10]
fstp dword ptr [esp], st
push ecx
call 0x5EAB30
add esp, 0x10
xor eax, eax
pop esi
add esp, 0x18
ret
-- never used
mov eax, dword ptr [esp+0x4]
push esi
mov esi, dword ptr [0xC2C108]
push 0x0
push eax
call LuaParam::GetBool
shl al, 0x5
xor al, byte ptr [esi+0x7898]
add esp, 0x8
and al, 0x20
xor byte ptr [esi+0x7898], al
xor eax, eax
pop esi
ret
AreaSetPopulationSexGeneration(false, true)
AreaSetPopulationSexGeneration(true, false)
AreaSetPopulationSexGeneration(true, true)
push ebx
push esi
mov esi, dword ptr [esp+0xC]
push 0x0
push esi
call LuaParam::GetBool
push 0x1
push esi
mov bl, al
call LuaParam::GetBool
mov ecx, dword ptr [0xC2C108]
add bl, bl
add bl, bl
xor bl, byte ptr [ecx+0x7898]
add al, al
and bl, 0x4
xor byte ptr [ecx+0x7898], bl
mov ecx, dword ptr [0xC2C108]
xor al, byte ptr [ecx+0x7898]
add esp, 0x10
and al, 0x2
xor byte ptr [ecx+0x7898], al
pop esi
xor eax, eax
pop ebx
ret
-- never used
sub esp, 0xC
push esi
push edi
mov edi, dword ptr [esp+0x18]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x8
mov dword ptr [esp+0x8], eax
xor esi, esi
lea ebx, ptr [ebx]
push esi
push edi
call LuaParam::GetInt
mov dword ptr [esp+esi*4+0x10], eax
add esi, 0x1
add esp, 0x8
cmp esi, 0x3
jl 0xFFFFFFEC
mov ecx, dword ptr [0xC0F78C]
lea eax, ptr [esp+0x8]
push eax
call 0x44E1E0
pop edi
xor eax, eax
pop esi
add esp, 0xC
ret
-- never used
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetInt
push 0x1
push edi
mov esi, eax
call LuaParam::GetInt
add esp, 0x10
cmp esi, 0x3F
jnbe 0x14
cmp eax, 0xE
jnbe 0xF
mov ecx, dword ptr [0xC0F78C]
push eax
push esi
call 0x44E200
pop edi
xor eax, eax
pop esi
ret
AreaSetSavePointLocation(ObjectNameToHashID("SAVEBOOKBOYSDORM"), -491.6, 310.3, 31.4, 76.2, 14, -494.703, 312.915, 33.918)
AreaSetSavePointLocation(ObjectNameToHashID("SAVEBOOKDROPOUTS"), -655, 248, 15.2, 82.4, 57, -658.078, 251.332, 17.823)
AreaSetSavePointLocation(ObjectNameToHashID("SAVEBOOKGREASERS"), -696.8, 352.6, 3.3, -176.7, 61, -697.463, 348.687, 4.366)
AreaSetSavePointLocation(ObjectNameToHashID("SAVEBOOKJOCKS"), -742.3, 348.3, 3.5, 70.1, 59, -746.004, 347.044, 5.191)
AreaSetSavePointLocation(ObjectNameToHashID("SAVEBOOKNERDS"), -733.8, 36.2, -2.3, -82.5, 30, -730.373, 34.04, 0.277)
AreaSetSavePointLocation(ObjectNameToHashID("SAVEBOOKPREPS"), -778, 357.6, 6.4, -160.3, 60, -775.002, 355.134, 8.7)
AreaSetSavePointLocation(ObjectNameToHashID("SAVEBOOKSCHOOL"), -634.1, -289.3, 5.5, -170.9, 2, -636.276, -292.447, 7.498)
sub esp, 0x28
push esi
mov esi, dword ptr [esp+0x30]
push edi
push 0x0
push esi
call LuaParam::GetUserData
mov edi, eax
push edi
call 0x737DD0
add esp, 0xC
test al, al
jnz 0xC1
push ebx
push 0x1
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x14], st
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x20], st
push 0x3
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x2C], st
fld st, dword ptr [esp+0x24]
push 0x4
fstp dword ptr [esp+0x44], st
push esi
fld st, dword ptr [esp+0x30]
fstp dword ptr [esp+0x4C], st
fld st, dword ptr [esp+0x34]
fstp dword ptr [esp+0x50], st
call LuaParam::GetFloat
fmul st, qword ptr [0x900160]
push 0x5
push esi
fdiv st, qword ptr [0x900158]
fstp dword ptr [esp+0x40], st
call LuaParam::GetInt
push 0x6
push esi
mov ebx, eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x44], st
push 0x7
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x48], st
push 0x8
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x4C], st
fld st, dword ptr [esp+0x54]
add esp, 0x40
fstp dword ptr [esp+0x1C], st
lea eax, ptr [esp+0x1C]
fld st, dword ptr [esp+0x10]
push eax
fstp dword ptr [esp+0x24], st
push ebx
fld st, dword ptr [esp+0x14]
push ecx
fstp dword ptr [esp+0x30], st
lea ecx, ptr [esp+0x34]
fld st, dword ptr [esp+0x24]
fstp dword ptr [esp], st
push ecx
push edi
call 0x737F30
add esp, 0x14
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x28
ret
AreaSetTriggerMonitoringRules(TRIGGER._AMBIENTEVENT1, true)
AreaSetTriggerMonitoringRules(TRIGGER._AMBIENTEVENT2, true)
AreaSetTriggerMonitoringRules(TRIGGER._LUNCHLADYTRIGGER, true)
AreaSetTriggerMonitoringRules(TRIGGER._PSECRETARY, true)
push edi
mov edi, dword ptr [esp+0x8]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x8
test eax, eax
jl 0x38
mov ecx, dword ptr [0x20C7C48]
mov edx, dword ptr [ecx+0x4]
test byte ptr [eax+edx*1], 0x80
jnz 0x29
push esi
mov esi, dword ptr [ecx+0xC]
imul esi, eax
add esi, dword ptr [ecx]
jz 0x19
push 0x1
push edi
call LuaParam::GetBool
add al, al
add al, al
xor al, byte ptr [esi+0x3F]
add esp, 0x8
and al, 0x4
xor byte ptr [esi+0x3F], al
pop esi
xor eax, eax
pop edi
ret
AreaSetVisible(62)
AreaSetVisible(gStoredArea)
xor eax, eax
ret
AreaSignalAreaTransitionReadyToLoad()
mov byte ptr [0xBCCDF0], 0x1
xor eax, eax
ret
AreaSpawnerSetSexGeneration(AlarmSpawner, false, true)
AreaSpawnerSetSexGeneration(BDormDoorsSpawner, false, true)
AreaSpawnerSetSexGeneration(BDormSpawn, false, true)
AreaSpawnerSetSexGeneration(BEntranceDoor, false, true)
AreaSpawnerSetSexGeneration(BEntranceDoor, true, true)
AreaSpawnerSetSexGeneration(GDormSpawn, true, false)
AreaSpawnerSetSexGeneration(gDormSpawner, true, false)
push ebx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetUserData
mov ecx, dword ptr [0xC2C12C]
add esp, 0x8
push eax
call 0x4A1AC0
push 0x1
push esi
mov edi, eax
call LuaParam::GetBool
push 0x2
push esi
mov bl, al
call LuaParam::GetBool
mov cl, byte ptr [edi+0x14]
and al, 0x1
add al, al
and cl, 0xFC
or al, cl
and bl, 0x1
or al, bl
add esp, 0x10
mov byte ptr [edi+0x14], al
pop edi
pop esi
xor eax, eax
pop ebx
ret
local area = AreaTransitionDestination()
local currentArea = AreaTransitionDestination()
local gArea = AreaTransitionDestination()
mov eax, dword ptr [0xBCCE08]
mov ecx, dword ptr [esp+0x4]
push eax
push ecx
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
ret
AreaTransitionPoint(0, gPlayerStart, 1, false)
AreaTransitionPoint(0, gPlayerStart, nil, true)
AreaTransitionPoint(0, gStartPoint, 1)
AreaTransitionPoint(0, Objectives[5].loc, 3, true)
AreaTransitionPoint(0, player, 1, true)
AreaTransitionPoint(0, POINTLIST._1_01_PLAYER_START)
AreaTransitionPoint(0, POINTLIST._1_04_PLAYERSTART, 1, true)
AreaTransitionPoint(0, POINTLIST._1_05_SPAWNPLAYER, 1, true)
AreaTransitionPoint(0, POINTLIST._1_06BEGIN, 2)
AreaTransitionPoint(0, POINTLIST._1_06BEGIN, 5)
AreaTransitionPoint(0, POINTLIST._1_07_PEND, 1)
AreaTransitionPoint(0, POINTLIST._1_07_PSTART, 1, true)
AreaTransitionPoint(0, POINTLIST._1_10_PSTART_MM)
AreaTransitionPoint(0, POINTLIST._1_11X2_CUTPLAYER, 1, false)
AreaTransitionPoint(0, POINTLIST._1_11XP_PLAYERSTART, 1, false)
AreaTransitionPoint(0, POINTLIST._1_G1_PLAYERSTART, 1, false)
AreaTransitionPoint(0, POINTLIST._2_02_PLAYER)
AreaTransitionPoint(0, POINTLIST._2_02_PLAYER, nil, false)
AreaTransitionPoint(0, POINTLIST._2_03_PLAYERSTART_NEW, 1, true)
AreaTransitionPoint(0, POINTLIST._2_04_PLAYER)
AreaTransitionPoint(0, POINTLIST._2_04_RESTARTPLAYER)
AreaTransitionPoint(0, POINTLIST._2_06_CORONA, 1, true)
AreaTransitionPoint(0, POINTLIST._2_07_PLAYER_START, 1, true)
AreaTransitionPoint(0, POINTLIST._2_09_PLAYERSTART)
AreaTransitionPoint(0, POINTLIST._2_G2_CORONA)
AreaTransitionPoint(0, POINTLIST._2_G2_CUTBEARSPAWNJIMMY)
AreaTransitionPoint(0, POINTLIST._2_G2_SPAWNPLAYER, 1, false)
AreaTransitionPoint(0, POINTLIST._2_G2_STAGE3DEBUG)
AreaTransitionPoint(0, POINTLIST._2_R04_PSTART)
AreaTransitionPoint(0, POINTLIST._2_S05_DINCLIMBPOINT)
AreaTransitionPoint(0, POINTLIST._2_S05_EDNA2)
AreaTransitionPoint(0, POINTLIST._2_S06_EJECTPLAYER)
AreaTransitionPoint(0, POINTLIST._2_S06_SPAWNPLAYER, nil, false)
AreaTransitionPoint(0, POINTLIST._3_01_GOTOBLIP, 1, true)
AreaTransitionPoint(0, POINTLIST._3_01D_PSTART)
AreaTransitionPoint(0, POINTLIST._3_02_JOHNNY, 1, true)
AreaTransitionPoint(0, POINTLIST._3_02_PARKSPAWN, 1, false)
AreaTransitionPoint(0, POINTLIST._3_04_DEBUGSTAGE2, nil, true)
AreaTransitionPoint(0, POINTLIST._3_04_SPAWNPLAYER, nil, true)
AreaTransitionPoint(0, POINTLIST._3_04_SPAWNPLAYERSTG3)
AreaTransitionPoint(0, POINTLIST._3_04_STG4_SPAWNPLAYER)
AreaTransitionPoint(0, POINTLIST._3_05_CINESTART)
AreaTransitionPoint(0, POINTLIST._3_05_TENWINDOW)
AreaTransitionPoint(0, POINTLIST._3_07_PLAYERPOOR, 1, true)
AreaTransitionPoint(0, POINTLIST._3_10_PLAYERSCENE01)
AreaTransitionPoint(0, POINTLIST._3_G3_ECS_PLAYER)
AreaTransitionPoint(0, POINTLIST._3_R06_CS_PLAYER)
AreaTransitionPoint(0, POINTLIST._3_R09_BOXINGOUTSIDE, nil, true)
AreaTransitionPoint(0, POINTLIST._3_R09_COMICSHOP, nil, true)
AreaTransitionPoint(0, POINTLIST._3_R09_ENDAFTERGAME, 1, true)
AreaTransitionPoint(0, POINTLIST._3_R09_ENDSEQUENCE, 1, true)
AreaTransitionPoint(0, POINTLIST._3_S03_DEBUGSPAWNPLAYERSTAGE3)
AreaTransitionPoint(0, POINTLIST._3_S03_DEBUGSPAWNPLAYERSTAGE4)
AreaTransitionPoint(0, POINTLIST._3_S03_SPAWNPLAYER)
AreaTransitionPoint(0, POINTLIST._3_S08_BIKESTART)
AreaTransitionPoint(0, POINTLIST._3_S08_SCENEEDGER)
AreaTransitionPoint(0, POINTLIST._3_S09_RAULTEST_PLAYERSTART)
AreaTransitionPoint(0, POINTLIST._3_S11_CORONA)
AreaTransitionPoint(0, POINTLIST._3_S11_KICKEDOUT)
AreaTransitionPoint(0, POINTLIST._3_S11_KICKEDOUT, 2, true)
AreaTransitionPoint(0, POINTLIST._3_S11_OUTRONIS_WALK, 2, true)
AreaTransitionPoint(0, POINTLIST._3_S11_PLAYERSTART, 1, true)
AreaTransitionPoint(0, POINTLIST._3_XM_PLAYERSCENE, 1, false)
AreaTransitionPoint(0, POINTLIST._4_01_DEBUGSPAWNPLAYERSTAGE3)
AreaTransitionPoint(0, POINTLIST._4_01_PLAYERBOOTED)
AreaTransitionPoint(0, POINTLIST._4_01_SPAWNPLAYER)
AreaTransitionPoint(0, POINTLIST._4_02_PLAYERSTART, nil, true)
AreaTransitionPoint(0, POINTLIST._4_02_TEMP_START_TEST)
AreaTransitionPoint(0, POINTLIST._4_03_PLAYER_START, nil, true)
AreaTransitionPoint(0, POINTLIST._4_04_FAILEXIT, 1)
AreaTransitionPoint(0, POINTLIST._4_04_PLAYEREND, 1, false)
AreaTransitionPoint(0, POINTLIST._4_05_DEBUGSTAGE2PLAYER)
AreaTransitionPoint(0, POINTLIST._4_05_SPAWNPLAYER)
AreaTransitionPoint(0, POINTLIST._4_05CUT_ENDPLAYER)
AreaTransitionPoint(0, POINTLIST._4_06_OPAOUTSIDE)
AreaTransitionPoint(0, POINTLIST._4_06_PLAYER_START, nil, true)
AreaTransitionPoint(0, POINTLIST._4_B1_PLAYER_END, 1, true)
AreaTransitionPoint(0, POINTLIST._4_G4_PLAYERSTART)
AreaTransitionPoint(0, POINTLIST._4_S12_PLAYERSTART, 1, true)
AreaTransitionPoint(0, POINTLIST._5_03_CORONA)
AreaTransitionPoint(0, POINTLIST._5_03_FAILURE)
AreaTransitionPoint(0, POINTLIST._5_03_FAILURE, 1, true)
AreaTransitionPoint(0, POINTLIST._5_03_PLAYER_END, nil, true)
AreaTransitionPoint(0, POINTLIST._5_03_PLAYERSTART1, 1, true)
AreaTransitionPoint(0, POINTLIST._5_04_BURTON, nil, true)
AreaTransitionPoint(0, POINTLIST._5_04_PSTART_TEST)
AreaTransitionPoint(0, POINTLIST._5_06_PLAYERSTART, nil, true)
AreaTransitionPoint(0, POINTLIST._5_06_RUSSELLNIS, 2, true)
AreaTransitionPoint(0, POINTLIST._5_07_PSTART, nil, true)
AreaTransitionPoint(0, POINTLIST._5_09_PLAYER_START)
AreaTransitionPoint(0, POINTLIST._5_B_END, 1, true)
AreaTransitionPoint(0, POINTLIST._5_G5_PLAYERBOOTED)
AreaTransitionPoint(0, POINTLIST._5_G5_START, nil, true)
AreaTransitionPoint(0, POINTLIST._5_T1_PLAYERSTART, 1, false)
AreaTransitionPoint(0, POINTLIST._6_02G_SPAWNPLAYER)
AreaTransitionPoint(0, POINTLIST._6_B_PLAYERSTART, 1, true)
AreaTransitionPoint(0, POINTLIST._ALIGNMENTPOINT)
AreaTransitionPoint(0, POINTLIST._ALIGNMENTPOINT, nil, true)
AreaTransitionPoint(0, POINTLIST._BASEBALLTOSS_MINIGAME_EXIT, nil, true)
AreaTransitionPoint(0, POINTLIST._BEATRICECUTSCENE, 3, true)
AreaTransitionPoint(0, POINTLIST._BEGGINING, 3, true)
AreaTransitionPoint(0, POINTLIST._BIKE_START)
AreaTransitionPoint(0, POINTLIST._BMXPARKOUTSIDE, 1, true)
AreaTransitionPoint(0, POINTLIST._BOXING_END_2_09, nil, true)
AreaTransitionPoint(0, POINTLIST._BUS_POLICEDROPPLAYER, 1, true)
AreaTransitionPoint(0, POINTLIST._C5T_PLYR, 1, false)
AreaTransitionPoint(0, POINTLIST._C6_EXITLOC)
AreaTransitionPoint(0, POINTLIST._CARNSTOREEXIT)
AreaTransitionPoint(0, POINTLIST._CHAPT1TRANSPLYR, 1, true)
AreaTransitionPoint(0, POINTLIST._CHAPT3TRANSPED, 1, true)
AreaTransitionPoint(0, POINTLIST._CHAPT4TRANS, 1)
AreaTransitionPoint(0, POINTLIST._CHAPT4TRANS_FOOTBALL, 1, true)
AreaTransitionPoint(0, POINTLIST._CORYCAR_PLAYER_START)
AreaTransitionPoint(0, POINTLIST._CST_PLAYEREND, 1, false)
AreaTransitionPoint(0, POINTLIST._HS_PLAYER)
AreaTransitionPoint(0, POINTLIST._INDUS_POINTS, 12, true)
AreaTransitionPoint(0, POINTLIST._MGDUNK_PLAYERSTART)
AreaTransitionPoint(0, POINTLIST._NEW_PLAYERSTART)
AreaTransitionPoint(0, POINTLIST._PLAYER_START)
AreaTransitionPoint(0, POINTLIST._PLAYERSTART, 1)
AreaTransitionPoint(0, POINTLIST._PLAYERSTART, nil, true)
AreaTransitionPoint(0, POINTLIST._PLAYERWITHFATTY, 4)
AreaTransitionPoint(0, POINTLIST._PNSH_DOWNTOWNGARBAGEPICKUP)
AreaTransitionPoint(0, POINTLIST._ROOFTESTPLAYERSTART)
AreaTransitionPoint(0, POINTLIST._SPAWNPLAYER)
AreaTransitionPoint(0, POINTLIST._STARTINGPOINT, 1)
AreaTransitionPoint(0, POINTLIST._SWIMRACE_PLAYERSTART)
AreaTransitionPoint(0, POINTLIST._TB_SCHOOLGROUNDS)
AreaTransitionPoint(0, POINTLIST._TEST_PROPHOUSEENTRANCE)
AreaTransitionPoint(0, POINTLIST._TESTPEDTRANPLAYERMAIN)
AreaTransitionPoint(0, POINTLIST._TJS_EXT_PSTART)
AreaTransitionPoint(0, POINTLIST._TPHOTO_PSTARTG)
AreaTransitionPoint(0, POINTLIST._TProjAI_Player_Start)
AreaTransitionPoint(0, POINTLIST.BASEBALLTOSS_MINIGAME_ENTRY)
AreaTransitionPoint(0, POINTLIST.BASEBALLTOSS_MINIGAME_EXIT)
AreaTransitionPoint(0, POINTLIST.OUTSIDE, 1)
AreaTransitionPoint(0, startPoint, 1, false)
AreaTransitionPoint(13, POINTLIST._3_S03_DEBUGSPAWNPLAYERSTAGE2)
AreaTransitionPoint(13, POINTLIST._4_01_DEBUGSPAWNPLAYERSTAGE1)
AreaTransitionPoint(13, POINTLIST._4_05_SPAWNPLAYERPOOL, nil, true)
AreaTransitionPoint(13, POINTLIST._5_04_COP_END, 3, true)
AreaTransitionPoint(13, POINTLIST._C3_PLAYERINIT, nil, true)
AreaTransitionPoint(13, POINTLIST._DBALL_PLAYER, nil, true)
AreaTransitionPoint(14, POINTLIST._1_11X1_SPAWNPLAYERDOWNSTAIRS)
AreaTransitionPoint(14, POINTLIST._3_07_PLAYER_SPAWN, 1)
AreaTransitionPoint(14, POINTLIST._6_01_BDORM, 1, false)
AreaTransitionPoint(14, POINTLIST._AREATRANSITIONBOYS, 1)
AreaTransitionPoint(14, POINTLIST._BOYSDORM_BEDWAKEUP)
AreaTransitionPoint(14, POINTLIST._BOYSDORM_BEDWAKEUP, 1, true)
AreaTransitionPoint(14, POINTLIST._CHAPT2TRANS, 1)
AreaTransitionPoint(14, POINTLIST._TB_PLAYERSTART)
AreaTransitionPoint(14, POINTLIST._TESTPEDTRANPLAYERDORM)
AreaTransitionPoint(15, POINTLIST._C7_PSTART, nil, true)
AreaTransitionPoint(15, POINTLIST._C9_PSTART, nil, true)
AreaTransitionPoint(15, POINTLIST._CM_JIMMYSTART, nil, true)
AreaTransitionPoint(15, POINTLIST._SV_SCHOOLENGLISH)
AreaTransitionPoint(15, POINTLIST._SV_SCHOOLENGLISH, 1)
AreaTransitionPoint(17, POINTLIST._C2_PLAYER, nil, true)
AreaTransitionPoint(17, POINTLIST._C5_ENDINGPOINTS, 2, true)
AreaTransitionPoint(17, POINTLIST._C5_PLAYERSTART)
AreaTransitionPoint(17, POINTLIST._C5_PLAYERSTART, nil, true)
AreaTransitionPoint(18, POINTLIST._C6_PLAYER_FRONT_DOOR, nil, true)
AreaTransitionPoint(19, POINTLIST._1_09_AUDTRIG, nil, true)
AreaTransitionPoint(19, POINTLIST._1_09_ENDC1, nil, true)
AreaTransitionPoint(19, POINTLIST._1_09_PSTART)
AreaTransitionPoint(19, POINTLIST._3_01C_PLAYERSTART, nil, true)
AreaTransitionPoint(2, POINTLIST._1_02B_OBJSCHOOL, nil, true)
AreaTransitionPoint(2, POINTLIST._1_02C_SPAWNPLAYER, nil, false)
AreaTransitionPoint(2, POINTLIST._1_05B_NIS_LOCKER)
AreaTransitionPoint(2, POINTLIST._1_09_ENDTRANS)
AreaTransitionPoint(2, POINTLIST._1_09_ENDTRANS, nil, true)
AreaTransitionPoint(2, POINTLIST._1_11X2_DEBUGSPAWNPLAYER)
AreaTransitionPoint(2, POINTLIST._1_S01_PLAYER_START, nil, true)
AreaTransitionPoint(2, POINTLIST._2_01_CINENDINGSTART)
AreaTransitionPoint(2, POINTLIST._2_01_PLAYERSTART)
AreaTransitionPoint(2, POINTLIST._2_01_PLAYERSTART, nil, true)
AreaTransitionPoint(2, POINTLIST._2_08_BIOLOGYROOM, 1, true)
AreaTransitionPoint(2, POINTLIST._2_S05_PLAYERSTART)
AreaTransitionPoint(2, POINTLIST._3_01C_PLAYEREND)
AreaTransitionPoint(2, POINTLIST._3_01C_PLAYEREND, nil, true)
AreaTransitionPoint(2, POINTLIST._3_09_PLAYSTART)
AreaTransitionPoint(2, POINTLIST._6_03_ENDNIS, 1, false)
AreaTransitionPoint(2, POINTLIST._C2_EXITCLASS)
AreaTransitionPoint(2, POINTLIST._C2_EXITCLASS, nil, true)
AreaTransitionPoint(2, POINTLIST._C4_EXIT)
AreaTransitionPoint(2, POINTLIST._C4_EXIT, nil, true)
AreaTransitionPoint(2, POINTLIST._C5_EXITPOINT)
AreaTransitionPoint(2, POINTLIST._C5_EXITPOINT, nil, true)
AreaTransitionPoint(2, POINTLIST._C7_GEO_PEND)
AreaTransitionPoint(2, POINTLIST._C7_GEO_PEND, nil, true)
AreaTransitionPoint(2, POINTLIST._C7_PEND)
AreaTransitionPoint(2, POINTLIST._C7_PEND, nil, true)
AreaTransitionPoint(2, POINTLIST._C8_PEND)
AreaTransitionPoint(2, POINTLIST._C8_PEND, nil, true)
AreaTransitionPoint(2, POINTLIST._C9_PEND)
AreaTransitionPoint(2, POINTLIST._C9_PEND, nil, true)
AreaTransitionPoint(2, POINTLIST._CAFRESTARTPOINT, 1)
AreaTransitionPoint(2, POINTLIST._CHAPT1TRANS, 1)
AreaTransitionPoint(2, POINTLIST._CM_JIMMYEND)
AreaTransitionPoint(2, POINTLIST._PRINCIPALROOM, 1)
AreaTransitionPoint(2, POINTLIST._PRIOFF_OUTSIDE, 1, true)
AreaTransitionPoint(2, POINTLIST._SHOTS_PLAYERSTART)
AreaTransitionPoint(2, POINTLIST._TB_SCHOOLHALLWAYS)
AreaTransitionPoint(2, POINTLIST._TJS_INT_PSTART)
AreaTransitionPoint(20, POINTLIST._5_B_START, nil, true)
AreaTransitionPoint(22, POINTLIST._4324_PLAYERSTART, 1)
AreaTransitionPoint(22, POINTLIST._KISSYKISSY, 1)
AreaTransitionPoint(22, POINTLIST._PLAYER, 1)
AreaTransitionPoint(22, POINTLIST._PP_PSTART)
AreaTransitionPoint(22, POINTLIST._REMEMBERSETUP, 4)
AreaTransitionPoint(22, POINTLIST._REMEMBERSETUP, 5)
AreaTransitionPoint(22, POINTLIST._SPAWNTEST_SPAWNSTART)
AreaTransitionPoint(22, POINTLIST._ST_PLAYER)
AreaTransitionPoint(22, POINTLIST._TBUH_PLAYER)
AreaTransitionPoint(22, POINTLIST._TESTSPUDCANNON_PLAYER)
AreaTransitionPoint(22, POINTLIST._TF02_PLAYERSTART)
AreaTransitionPoint(22, POINTLIST._TFIGHT01_C)
AreaTransitionPoint(22, POINTLIST._TPHOTO_PSTART)
AreaTransitionPoint(26, POINTLIST._2_01_PLAYERSTORE)
AreaTransitionPoint(27, POINTLIST._2_09_CUTSCENE1, 1, true)
AreaTransitionPoint(27, POINTLIST._2_B_PSTART, nil, true)
AreaTransitionPoint(27, POINTLIST._3_R09_POSTERVIEWING, 1, true)
AreaTransitionPoint(27, POINTLIST._BOXING_PLAYERSTART, 1, true)
AreaTransitionPoint(31, POINTLIST._CARTEST_PLAYERSTART)
AreaTransitionPoint(31, POINTLIST._ENTERCAR_PLAYER)
AreaTransitionPoint(31, POINTLIST._PICKUP_TEST_START)
AreaTransitionPoint(31, POINTLIST._PLAYER)
AreaTransitionPoint(31, POINTLIST._PLAYERTEST, 1)
AreaTransitionPoint(31, POINTLIST._SITTINGDOWN, 1)
AreaTransitionPoint(31, POINTLIST._TESTAVOIDPLAYER, 1)
AreaTransitionPoint(31, POINTLIST._TESTSAFECUT_SPAWNPLAYER)
AreaTransitionPoint(34, POINTLIST._2_01_CINCLOTHSTART)
AreaTransitionPoint(35, POINTLIST._2_S06B_PANTIES)
AreaTransitionPoint(35, POINTLIST._4_01_DEBUGSPAWNPLAYERSTAGE2)
AreaTransitionPoint(35, POINTLIST._TESTSTUDSPAWNPLAYER)
AreaTransitionPoint(36, POINTLIST._TENFIRES_ENTERANCE)
AreaTransitionPoint(36, POINTLIST._TFIGHT01_NORTONTEN)
AreaTransitionPoint(37, POINTLIST._4_04_FINALROOMPLYR, 1, false)
AreaTransitionPoint(37, POINTLIST._4_04_GRAVESTARTDBG, 1, false)
AreaTransitionPoint(37, POINTLIST._4_04_MAZESTART, 1, false)
AreaTransitionPoint(37, POINTLIST._4_04_MINESTARTPOS, 1, false)
AreaTransitionPoint(37, POINTLIST._PSTART)
AreaTransitionPoint(38, POINTLIST._5_03_JOHNNY_GOTO1, 1, true)
AreaTransitionPoint(38, POINTLIST._FRAFFY, 1)
AreaTransitionPoint(39, POINTLIST._2_01_CINBARBERSTART)
AreaTransitionPoint(4, POINTLIST._C4_P_DOOR, nil, true)
AreaTransitionPoint(40, POINTLIST._4_B1_PLAYER_STAGE01, 1, true)
AreaTransitionPoint(43, POINTLIST._3_B_STAGE3_PLAYER_START)
AreaTransitionPoint(43, POINTLIST._PLAYER_FIRSTSTART, 1, true)
AreaTransitionPoint(5, POINTLIST._PRIOFF_SPAWN, 1, true)
AreaTransitionPoint(5, POINTLIST.SPAWN, 1)
AreaTransitionPoint(54, POINTLIST._5_G5_PLAYER_WH, nil, true)
AreaTransitionPoint(59, POINTLIST._3_R09_SPAWN02, nil, true)
AreaTransitionPoint(6, POINTLIST._C8_PSTART, nil, true)
AreaTransitionPoint(60, POINTLIST._3_R09_PLAYER, nil, true)
AreaTransitionPoint(62, POINTLIST._3_02_WHPLAYER, 1, true)
AreaTransitionPoint(62, POINTLIST._BMX_PLAYERSTART, 1)
AreaTransitionPoint(62, POINTLIST._BMXPARKINSIDE, 2, true)
AreaTransitionPoint(62, POINTLIST._PLAYER)
AreaTransitionPoint(62, POINTLIST._TP_PLAYERSPAWN)
AreaTransitionPoint(8, POINTLIST._1_B_PLAYER, 1, true)
AreaTransitionPoint(9, POINTLIST._5_01_MOVETO, nil, true)
AreaTransitionPoint(area, player.start_pos, 1, true)
AreaTransitionPoint(AreaGetVisible(), player.start_pos)
AreaTransitionPoint(areaID, point)
AreaTransitionPoint(gExitArea, gExitPoint)
AreaTransitionPoint(gExitArea, gExitPoint, 1, true)
AreaTransitionPoint(gExitArea, gExitPoint, 2, true)
AreaTransitionPoint(gInitialArea, POINTLIST._3_R09_PLAYER, nil, true)
AreaTransitionPoint(map, point)
AreaTransitionPoint(paths[pathNumber].area, paths[pathNumber].point)
AreaTransitionPoint(player.area_code, player.start_pos, nil, true)
AreaTransitionPoint(tblScenario[currentScen][4], tblScenario[currentScen][8])
AreaTransitionPoint(transitionArea, startPosition, 0, true)
AreaTransitionPoint(visibleArea, startPoint)
AreaTransitionPoint(VISIBLEAREA_CAF_KITCHEN, POINTLIST._TEST_HEADING_PLAYER)
function AreaTransitionPoint(idArea, idPoint, numPoint, disableCameraControl)
if disableCameraControl then
AreaDisableCameraControlForTransition(true)
end
if numPoint == nil then
PlayerSetPosPointArea(idArea, idPoint)
else
PlayerSetPosPointArea(idArea, idPoint, numPoint)
end
Wait(5)
while AreaIsLoading() do
Wait(0)
end
if disableCameraControl then
AreaDisableCameraControlForTransition(false)
end
Wait(100)
end
AreaTransitionXYZ(0, 177.77, 4.513, 5.475)
AreaTransitionXYZ(0, 272.68, -73.1309, 6.96913, true)
AreaTransitionXYZ(0, schoolx, schooly, 10)
AreaTransitionXYZ(0, setX, setY, setZ)
AreaTransitionXYZ(0, x, y, z)
AreaTransitionXYZ(22, g_PosX, g_PosY + Offset, g_PosZ)
AreaTransitionXYZ(22, g_PosX, g_PosY, g_PosZ)
AreaTransitionXYZ(22, setX, setY, setZ)
AreaTransitionXYZ(22, x, y, z)
AreaTransitionXYZ(31, x, y, z)
AreaTransitionXYZ(32, x, y, z + 1)
AreaTransitionXYZ(area, x, y, z)
AreaTransitionXYZ(cutsceneTable[CutSceneIndex].area, cutsceneTable[CutSceneIndex].x, cutsceneTable[CutSceneIndex].y, 10)
AreaTransitionXYZ(moveAreaCode, moveX, moveY, moveZ, true)
AreaTransitionXYZ(myAreaTable[area].zone, myAreaTable[area].x, myAreaTable[area].y, myAreaTable[area].z, true)
AreaTransitionXYZ(oldArea, x, y, z)
AreaTransitionXYZ(shared.areaTable[area].zone, shared.areaTable[area].x, shared.areaTable[area].y, shared.areaTable[area].z)
AreaTransitionXYZ(tp[1], tp[2], tp[3], tp[4])
function AreaTransitionXYZ(idArea, x, y, z, disableCameraControl)
if disableCameraControl then
AreaDisableCameraControlForTransition(true)
end
PlayerSetPosXYZArea(x, y, z, idArea)
Wait(5)
local count = 0
while AreaIsLoading() do
if count == 0 then
end
count = count + 1
Wait(0)
end
if disableCameraControl then
AreaDisableCameraControlForTransition(false)
end
Wait(100)
end
if AreaTriggerIsValid(trash.trigger) then
if AreaTriggerIsValid(TRIGGER._JANELECTRICPROXY) then
if AreaTriggerIsValid(TRIGGER._JANSTEAMPROXY) then
if not AreaTriggerIsValid(trash.trigger) then
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::IsString
add esp, 0x8
test al, al
push 0x0
push esi
jz 0x1E
call LuaParam::GetString
add esp, 0x8
push eax
mov ecx, 0x20C7E98
call 0x6D7A10
cmp eax, 0xFFFFFFFF
jnz 0x36
xor ecx, ecx
jmp 0x49
call LuaParam::IsHashID
add esp, 0x8
test al, al
push 0x0
push esi
jz 0x17
call LuaParam::GetUserData
add esp, 0x8
push eax
mov ecx, 0x20C7E98
call 0x6D79C0
jmp 0xFFFFFFD5
call LuaParam::GetInt
add esp, 0x8
test eax, eax
jl 0xFFFFFFCE
mov edx, dword ptr [0x20C7C48]
mov ecx, dword ptr [edx+0x4]
test byte ptr [eax+ecx*1], 0x80
jnz 0xFFFFFFBF
mov ecx, dword ptr [edx+0xC]
imul ecx, eax
add ecx, dword ptr [edx]
test ecx, ecx
setnz dl
push edx
push esi
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
pop esi
ret
SHARED
Raises an error in a way similar to luaL_argerror in Lua's C API. Useful for validating arguments in custom functions.
A standard Lua 5.0 function documented on lua.org.
AwardAchievement("THE_CHAMPION")
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetString
add esp, 0x8
xor eax, eax
ret
BarberShopAdd(nGroupID, "B_Bald", 500)
BarberShopAdd(nGroupID, "B_Buzz", 500)
BarberShopAdd(nGroupID, "B_Caesar_01", 800)
BarberShopAdd(nGroupID, "B_Caesar_02", 1200)
BarberShopAdd(nGroupID, "B_Caesar_03", 1200)
BarberShopAdd(nGroupID, "B_Caesar_04", 1200)
BarberShopAdd(nGroupID, "B_CrewCut_01", 600)
BarberShopAdd(nGroupID, "B_CrewCut_02", 900)
BarberShopAdd(nGroupID, "B_CrewCut_03", 900)
BarberShopAdd(nGroupID, "B_CrewCut_04", 900)
BarberShopAdd(nGroupID, "B_FlatTop_01", 600)
BarberShopAdd(nGroupID, "B_FlatTop_02", 900)
BarberShopAdd(nGroupID, "B_FlatTop_03", 900)
BarberShopAdd(nGroupID, "B_MFade_01", 600)
BarberShopAdd(nGroupID, "B_MFade_02", 900)
BarberShopAdd(nGroupID, "B_MFade_03", 900)
BarberShopAdd(nGroupID, "B_MFade_04", 900)
BarberShopAdd(nGroupID, "P_Details1_01", 1000)
BarberShopAdd(nGroupID, "P_Details1_02", 1200)
BarberShopAdd(nGroupID, "P_Details1_03", 1200)
BarberShopAdd(nGroupID, "P_Details1_04", 1200)
BarberShopAdd(nGroupID, "P_Details2_01", 1000)
BarberShopAdd(nGroupID, "P_Details2_02", 1200)
BarberShopAdd(nGroupID, "P_Details2_03", 1200)
BarberShopAdd(nGroupID, "P_Details2_04", 1200)
BarberShopAdd(nGroupID, "P_Fauhawk_01", 1000)
BarberShopAdd(nGroupID, "P_Fauhawk_02", 1200)
BarberShopAdd(nGroupID, "P_Fauhawk_03", 1200)
BarberShopAdd(nGroupID, "P_Fauhawk_04", 1200)
BarberShopAdd(nGroupID, "P_Mh_Flat_01", 1000)
BarberShopAdd(nGroupID, "P_Mh_Flat_02", 1200)
BarberShopAdd(nGroupID, "P_Mh_Flat_03", 1200)
BarberShopAdd(nGroupID, "P_Mh_Flat_04", 1200)
BarberShopAdd(nGroupID, "P_Mh_Spike_01", 1000)
BarberShopAdd(nGroupID, "P_Mh_Spike_02", 1200)
BarberShopAdd(nGroupID, "P_Mh_Spike_03", 1200)
BarberShopAdd(nGroupID, "P_Mh_Spike_04", 1200)
BarberShopAdd(nGroupID, "P_Spiky_01", 1000)
BarberShopAdd(nGroupID, "P_Spiky_02", 1200)
BarberShopAdd(nGroupID, "P_Spiky_03", 1200)
BarberShopAdd(nGroupID, "P_Spiky_04", 1200)
BarberShopAdd(nGroupID, "P_Taper_01", 1200)
BarberShopAdd(nGroupID, "P_Taper_02", 1500)
BarberShopAdd(nGroupID, "P_Taper_03", 1500)
BarberShopAdd(nGroupID, "P_Taper_04", 1500)
BarberShopAdd(nGroupID, "R_GoodBoy_01", 1200)
BarberShopAdd(nGroupID, "R_GoodBoy_02", 1500)
BarberShopAdd(nGroupID, "R_GoodBoy_03", 1500)
BarberShopAdd(nGroupID, "R_GoodBoy_04", 1500)
BarberShopAdd(nGroupID, "R_HThrob_01", 1200)
BarberShopAdd(nGroupID, "R_HThrob_02", 1500)
BarberShopAdd(nGroupID, "R_HThrob_03", 1500)
BarberShopAdd(nGroupID, "R_HThrob_04", 1500)
BarberShopAdd(nGroupID, "R_Hwood_01", 1200)
BarberShopAdd(nGroupID, "R_Hwood_02", 1500)
BarberShopAdd(nGroupID, "R_Hwood_03", 1500)
BarberShopAdd(nGroupID, "R_Hwood_04", 1500)
BarberShopAdd(nGroupID, "R_ILeague_01", 1500)
BarberShopAdd(nGroupID, "R_ILeague_02", 1800)
BarberShopAdd(nGroupID, "R_ILeague_03", 1800)
BarberShopAdd(nGroupID, "R_ILeague_04", 1800)
BarberShopAdd(nGroupID, "R_SShag_01", 1200)
BarberShopAdd(nGroupID, "R_SShag_02", 1500)
BarberShopAdd(nGroupID, "R_SShag_03", 1500)
BarberShopAdd(nGroupID, "R_SShag_04", 1500)
BarberShopAdd(nGroupID, "R_SSmart_01", 1200)
BarberShopAdd(nGroupID, "R_SSmart_02", 1500)
BarberShopAdd(nGroupID, "R_SSmart_03", 1500)
BarberShopAdd(nGroupID, "R_SSmart_04", 1500)
push ebx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetString
push 0x2
push esi
mov ebx, eax
call LuaParam::GetInt
push ebx
mov esi, eax
call 0x576ED0
add esp, 0x1C
push esi
push eax
push edi
call 0x53A530
mov ecx, eax
call 0x6CD0B0
pop edi
pop esi
xor eax, eax
pop ebx
ret
BarberShopSetGroupName(nGroupID, "B_Bald")
BarberShopSetGroupName(nGroupID, "B_Buzz")
BarberShopSetGroupName(nGroupID, "B_Caesar")
BarberShopSetGroupName(nGroupID, "B_CrewCut")
BarberShopSetGroupName(nGroupID, "B_FlatTop")
BarberShopSetGroupName(nGroupID, "B_MFade")
BarberShopSetGroupName(nGroupID, "P_Details1")
BarberShopSetGroupName(nGroupID, "P_Details2")
BarberShopSetGroupName(nGroupID, "P_Fauhawk")
BarberShopSetGroupName(nGroupID, "P_Mh_Flat")
BarberShopSetGroupName(nGroupID, "P_Mh_Spike")
BarberShopSetGroupName(nGroupID, "P_Spiky")
BarberShopSetGroupName(nGroupID, "P_Taper")
BarberShopSetGroupName(nGroupID, "R_GoodBoy")
BarberShopSetGroupName(nGroupID, "R_HThrob")
BarberShopSetGroupName(nGroupID, "R_Hwood")
BarberShopSetGroupName(nGroupID, "R_ILeague")
BarberShopSetGroupName(nGroupID, "R_SShag")
BarberShopSetGroupName(nGroupID, "R_SSmart")
push esi
mov esi, dword ptr [esp+0x8]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetString
push eax
call 0x576ED0
add esp, 0x14
push eax
push edi
call 0x53A530
mov ecx, eax
call 0x6CCF10
pop edi
xor eax, eax
pop esi
ret
-- never used
call 0x53A530
push eax
mov eax, dword ptr [esp+0x8]
push 0x0
push eax
call 0x5DA060
add esp, 0xC
xor eax, eax
ret
-- never used
push esi
mov esi, dword ptr [esp+0x8]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
call LuaParam::GetInt
push 0x234
movzx edi, ax
call 0x5EEAA0
add esp, 0x14
test eax, eax
jz 0xD
mov ecx, eax
call 0x464EF0
mov esi, eax
jmp 0x4
xor esi, esi
push edi
mov ecx, esi
call 0x465010
test esi, esi
jz 0xC
mov eax, dword ptr [esi]
mov edx, dword ptr [eax]
push 0x1
mov ecx, esi
call 0x5D6CFD
pop edi
xor eax, eax
pop esi
ret
BikeJump(vehicleBikeChad.id, 0.75)
BikeJump(vehicleBikeChad.id, 1)
push ecx
push ebx
push esi
mov esi, dword ptr [esp+0x10]
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov ebx, eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x18], st
mov edx, dword ptr [0xC0F5F4]
mov ecx, dword ptr [edx+0x4]
add esp, 0x10
mov eax, ebx
sar eax, 0x8
cmp byte ptr [eax+ecx*1], bl
pop esi
pop ebx
jnz 0xC
mov ecx, dword ptr [edx+0xC]
imul ecx, eax
add ecx, dword ptr [edx]
jmp 0x4
xor ecx, ecx
fld st, dword ptr [esp]
push ecx
fmul st, qword ptr [0x912D60]
fstp dword ptr [esp+0x4], st
fld st, dword ptr [esp+0x4]
fstp dword ptr [esp], st
call 0x4B9C20
xor eax, eax
pop ecx
ret
-- never used
push ebx
mov ebx, dword ptr [esp+0x8]
push esi
push edi
mov edi, dword ptr [0xC0F5F4]
push 0x0
push ebx
call LuaParam::GetInt
mov edx, dword ptr [edi+0x4]
mov ecx, eax
sar ecx, 0x8
add esp, 0x8
cmp byte ptr [ecx+edx*1], al
jnz 0xC
mov esi, dword ptr [edi+0xC]
imul esi, ecx
add esi, dword ptr [edi]
jmp 0x4
xor esi, esi
push 0x1
push ebx
call LuaParam::GetBool
add al, al
add al, al
add al, al
xor al, byte ptr [esi+0x6B8]
add esp, 0x8
and al, 0x8
xor byte ptr [esi+0x6B8], al
pop edi
pop esi
xor eax, eax
pop ebx
ret
-- never used
sub esp, 0x2C
push esi
mov esi, dword ptr [esp+0x34]
push 0x0
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0xC], st
push 0x1
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x18], st
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x24], st
push 0x3
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x34], st
push 0x4
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x38], st
fld st, dword ptr [esp+0x2C]
add esp, 0x28
push 0x5
fstp dword ptr [esp+0x28], st
fld st, dword ptr [esp+0xC]
push 0x1
push 0x0
fstp dword ptr [esp+0x34], st
fld st, dword ptr [esp+0x18]
push 0xBC
fstp dword ptr [esp+0x3C], st
push 0x72
fldz
push 0x0
fst dword ptr [esp+0x30], st
push 0xFFFFFFFF
fstp dword ptr [esp+0x38], st
lea eax, ptr [esp+0x34]
fld st, dword ptr [esp+0x2C]
push eax
push ecx
fstp dword ptr [esp+0x44], st
fld st, dword ptr [esp+0x38]
lea ecx, ptr [esp+0x48]
fstp dword ptr [esp], st
push ecx
push 0x0
push 0xFFFFFFFF
push 0x2
call 0x52A600
add esp, 0x34
xor eax, eax
pop esi
add esp, 0x2C
ret
-- never used
push ecx
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x14]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov ebx, eax
mov edi, 0x5
call LuaParam::GetInt
push 0x2
push esi
call LuaParam::GetInt
push esi
mov dword ptr [esp+0x2C], eax
call 0x73AEA0
add esp, 0x1C
cmp eax, 0x4
jl 0xF
push 0x3
push esi
call LuaParam::GetInt
add esp, 0x8
mov edi, eax
mov eax, dword ptr [esp+0x10]
mov ebp, dword ptr [0xC674CC]
push 0x0
push eax
push edi
push ecx
mov eax, esp
push ebx
push 0x3
mov ecx, ebp
mov byte ptr [eax], 0x0
mov byte ptr [eax+0x1], 0x0
mov byte ptr [eax+0x2], 0x0
mov byte ptr [eax+0x3], 0x0
call 0x54A5B0
mov edi, eax
push 0x5
push edi
mov ecx, ebp
call 0x548BF0
push edi
mov ecx, 0xD02850
call 0x5DB940
mov ecx, eax
call 0x5DA7D0
push edi
push esi
call LuaParam::PushInt
add esp, 0x8
pop edi
pop esi
pop ebp
mov eax, 0x1
pop ebx
pop ecx
ret
b_rec_room = BlipAddPoint(POINTLIST._5_03_FAKE_EXIT, 0)
bath_bottle_blip = BlipAddPoint(POINTLIST._1_S01_BATHROOM_BLIP, 0)
bBlipControlRoom = BlipAddPoint(POINTLIST._5_03_CONTROLSWITCH, 0, 4)
Benches[i].blip = BlipAddPoint(Benches[i].loc, 0, i, 1, 7, 0, 0.5)
blip = BlipAddPoint(POINTLIST._4_04_MINEJOCKS, 0, 1, 1),
blip = BlipAddPoint(POINTLIST._4_04_MINEJOCKS, 0, 2, 1),
blip = BlipAddPoint(POINTLIST._4_04_MINEJOCKS, 0, 3, 1),
blipBackDoor = BlipAddPoint(POINTLIST._5_G5_WHBACKDOOR, 0, 1, 0, 7, 0)
blipBalcony = BlipAddPoint(POINTLIST._BLIPBALCONY, 0)
blipBathroomSecondFloor = BlipAddPoint(POINTLIST._1_05B_BLIPBATHROOMSECONDFLOOR, 0)
blipBooth = BlipAddPoint(POINTLIST._2_G2_BLIPTENTENTER, 0)
blipCarnival = BlipAddPoint(POINTLIST._2_G2_PINKYARRIVED, 0)
blipCutStart = BlipAddPoint(POINTLIST._TESTSAFECUT_STARTCUT, 0, 1, 4, 9)
blipDrugs = BlipAddPoint(POINTLIST._2_S05_DRUGCANS, 0)
blipFrontDoor = BlipAddPoint(POINTLIST._5_G5_WHFRONTDOOR, 0, 1, 1, 7, 0)
blipGarbageBin = BlipAddPoint(POINTLIST._1_02B_BLIPGARBAGE, 0, 1, 4, 0)
blipGdormAttic = BlipAddPoint(POINTLIST._4_01_BLIPGDORMATTIC, 0, 1, 1, 0)
blipGetSpray = BlipAddPoint(POINTLIST._5_09_GETSPRAY, 0)
blipGreaserObjective = BlipAddPoint(POINTLIST._3_S03_OBJECTIVEGREASER, 29, 1, 1, 7)
blipJockObjective = BlipAddPoint(POINTLIST._3_S03_OBJECTIVEJOCK, 0, 1, 1, 7)
blipLastPotty = BlipAddPoint(POINTLIST._5_05_PPFINAL, 0)
blipLattice = BlipAddPoint(POINTLIST._2_S06_TOPLATTICE, 0)
blipLocker = BlipAddPoint(POINTLIST._1_02B_OBJLOCKER, 0, 1, 1, 7)
blipLocker = BlipAddPoint(POINTLIST._1_05B_BLIPALGIELOCKER, 0, 1, 1, 7)
blipLola = BlipAddPoint(POINTLIST._SPAWNLOLAALLEY, 0)
blipMainSchool = BlipAddPoint(POINTLIST._3_04_STG4_OBJECTIVE, 0, 1)
blipMotor01 = BlipAddPoint(POINTLIST._4_B1_BLIPS1M1, 26, 1, 2, 0)
blipMotor02 = BlipAddPoint(POINTLIST._4_B1_BLIPS1M2, 26, 1, 2, 0)
blipMotor03 = BlipAddPoint(POINTLIST._4_B1_BLIPS2M1, 26, 1, 2, 0)
blipMotor04 = BlipAddPoint(POINTLIST._4_B1_BLIPS2M2, 26, 1, 2, 0)
blipMotor05 = BlipAddPoint(POINTLIST._4_B1_BLIPS3M1, 26, 1, 2, 0)
blipMotor06 = BlipAddPoint(POINTLIST._4_B1_BLIPS3M2, 26, 1, 2, 0)
blipObjective = BlipAddPoint(blipObjectivePoint, 0)
blipObjective02 = BlipAddPoint(POINTLIST._1_11X1_BLIPEXIT, 0, 1, 1, 0)
blipObjective02 = BlipAddPoint(POINTLIST._1_11X2_BLIPLOUNGE, 0, 1, 1, 7)
blipPanties_B = BlipAddPoint(POINTLIST._2_S06B_PANTIES, 0, 1)
blipPanties_C = BlipAddPoint(POINTLIST._2_S06B_PANTIES, 0, 2)
blipPanties_D = BlipAddPoint(POINTLIST._2_S06B_PANTIES, 0, 3)
blipPanties_E = BlipAddPoint(POINTLIST._2_S06B_PANTIES, 0, 4)
blipPanties_F = BlipAddPoint(POINTLIST._2_S06B_PANTIES, 0, 5)
blipPoolExit = BlipAddPoint(POINTLIST._3_S03_BLIPPOOLEXIT, 0, 1, 1)
blipSchool = BlipAddPoint(POINTLIST._1_05_BLIPSCHOOL, 0)
blipTextExit = BlipAddPoint(POINTLIST._2_G2_BLIPTENTEXIT, 0)
bTalkZone = BlipAddPoint(POINTLIST._5_03_CR_ORDERLY_1, 0, 2, 1, 7)
cafe_bottle_blip = BlipAddPoint(POINTLIST._1_S01_CAFE_BLIP, 0)
dataSet.blip = BlipAddPoint(dataSet.point, 0, 1, 4)
door_blip = BlipAddPoint(POINTLIST._4_02_SECDOORBLIP, 0)
DropoutContact.blip = BlipAddPoint(DropoutContact.point, 0)
EdnaBlip = BlipAddPoint(POINTLIST._2_01_busstoppoint, 0, 1, 2, 0)
eggsBlip = BlipAddPoint(POINTLIST._2_05_LIFTSPOT, 0, 1)
EscapeBlip = BlipAddPoint(POINTLIST._3_05_PSTART, 0)
ExitBlip = BlipAddPoint(POINTLIST._4_06_DOSSIER_A, 0, 1)
FieldBlip = BlipAddPoint(POINTLIST._4_06_OBJECTIVE_E, 0, 1)
fieldBlip01 = BlipAddPoint(POINTLIST._4_06_FIELDBLIPS, 0, 1, 1, 7)
fieldBlip02 = BlipAddPoint(POINTLIST._4_06_FIELDBLIPS, 0, 2, 1, 7)
fieldBlip03 = BlipAddPoint(POINTLIST._4_06_FIELDBLIPS, 0, 3, 1, 7)
FieldPt = BlipAddPoint(POINTLIST._1_04_FIELD, 0, 1, 1, 0)
GameBallblip = BlipAddPoint(POINTLIST._4_06_OBJECTIVE_C, 0, 1)
gArcCorona = BlipAddPoint(POINTLIST._3_R09_ARCADEMACH, 0, 1, 1, 7)
gardenBlip = BlipAddPoint(POINTLIST._NEW_GARDENCENTRE, 0)
gAsylumBlip = BlipAddPoint(POINTLIST._3_S11_CRUMBS, 0, 6)
gAsylumBlip = BlipAddPoint(POINTLIST._3_S11_SECRETPASSAGE, 0)
gAsylumBlip = BlipAddPoint(POINTLIST._3_S11_UNDERTHEBRIDGE, 0)
gAsylumBlip = BlipAddPoint(POINTLIST._3_S11_UNDERTHEBRIDGE, 0, 1, 1, 7)
gBlip = BlipAddPoint(POINTLIST._3_R09_BLIPP1, 0)
gBlip = BlipAddPoint(POINTLIST._3_R09_BLIPP2, 0)
gBlipAsylum = BlipAddPoint(POINTLIST._5_03_ASYLUM_BLIP, 0)
gBlipAsylum = BlipAddPoint(POINTLIST._5_03_TREEBLIP, 0)
gBlipAsylumDoor = BlipAddPoint(POINTLIST._3_S11_FDOOR_BLIP, 0)
gBlipCannon = BlipAddPoint(POINTLIST._4_02_SPUD_NERD01, 0)
gBlipCrumb = BlipAddPoint(POINTLIST._3_S11_CRUMBS, 0, gCrumb)
gBlipExit = BlipAddPoint(POINTLIST._5_03_EXIT_BLIP, 0, 1)
gBlipJohnny = BlipAddPoint(POINTLIST._5_03_JOHNNY_START, 0, 2, 1, 7)
gBlipObs = BlipAddPoint(POINTLIST._4_02_OBSERVATORY, 0)
gBlipObsDoor = BlipAddPoint(POINTLIST._4_02_OBSDOORBLIP, 0)
gBlipStore = BlipAddPoint(POINTLIST._2_06_YUMYUM, 0, 1)
gBlipStore = BlipAddPoint(POINTLIST._2_06_YUMYUM, 0, 2)
gBlipTheater = BlipAddPoint(POINTLIST._2_06_THEATER, 0, 1, 0)
gBlipTheater = BlipAddPoint(POINTLIST._2_06_THEATER, 0, 1, 1)
gBlipTransformer = BlipAddPoint(POINTLIST._4_02_FUSE_POINT, 26, 0, 4)
gCarnivalEntranceCorona = BlipAddPoint(POINTLIST._CARNIEENTRANCECORONA, 0, 1, 0, 8)
gChem_blip = BlipAddPoint(POINTLIST.CLASS_CHEM, 0, 1, 1, 7)
gCoronaBlip = BlipAddPoint(POINTLIST._STAIRCORONA, 0, 1, 1, 7)
gCurrentBlip = BlipAddPoint(gCurrentBlipPoint, 0)
gCurrentBlip = BlipAddPoint(gCurrentBlipPoint, 0, 1, 1, 1)
gCurrentBlip = BlipAddPoint(POINTLIST._5_09_CITYHALL_GROUNDS, 0)
gCurrentBlip = BlipAddPoint(POINTLIST._5_09_CITYHALL_TAG, 0)
gCurrentBlip = BlipAddPoint(POINTLIST._5_09_LADDER_CITYHALL_CHEAT, 0, 1, 1, 1)
gEndBlip = BlipAddPoint(POINTLIST._1_01_ENDPOINT, 0)
gLroomBlip = BlipAddPoint(POINTLIST._5_03_LAUNDRY_RM_BLIP, 0)
gMandyBlip = BlipAddPoint(POINTLIST._4G4_MANDYEND, 0, 4)
gMarblesBlip = BlipAddPoint(POINTLIST._4_06_DOSSIER_D, 0)
gMelvinBlip = BlipAddPoint(POINTLIST._2_S04_MELVIN, 0)
gMidgetBlip = BlipAddPoint(POINTLIST._FRS_MIDGETCHOOSE, 2, 1, 0, 7)
gMidgetBlip = BlipAddPoint(POINTLIST._FRS_MIDGETCHOOSE, 2, 2, 0, 7)
gObjBlip = BlipAddPoint(POINTLIST._1_06BEGIN, 0, 2, 1)
gObjBlip = BlipAddPoint(POINTLIST._5_06_RUSSELL, 0)
gObjBlip = BlipAddPoint(POINTLIST._TRANSMITTERBLIP, 0, 2, 1)
gObjBlipHigh = BlipAddPoint(POINTLIST._TRANSMITTERBLIP, 29, 2, 1)
gObjectiveBlip = BlipAddPoint(POINTLIST._2_R03_HILLTOP, 0, 1, 1, 7)
gObjectiveBlip = BlipAddPoint(POINTLIST._3_S10_MARKET, 0)
gObjectiveBlip = BlipAddPoint(POINTLIST._3_S10_POORAREABLIP, 0)
gObjectiveBlip = BlipAddPoint(POINTLIST._3_S10_TUTBLIP, 0, 1, 1, 7)
gObjectiveBlip = BlipAddPoint(POINTLIST._5_05_BOLTCUTTERS, 0, 1, 4)
gObjectiveBlips.gGreasers = BlipAddPoint(POINTLIST._OBJECTIVELOCS, 0, 1)
gObjectiveBlips.gJocks = BlipAddPoint(POINTLIST._OBJECTIVELOCS, 0, 2)
gObjectiveBlips.gNerds = BlipAddPoint(POINTLIST._OBJECTIVELOCS, 0, 4)
gObjectiveBlips.gPreppies = BlipAddPoint(POINTLIST._OBJECTIVELOCS, 0, 3)
gotoBlip = BlipAddPoint(POINTLIST._3_01_GOTOBLIP, 0)
gPeanutBlip = BlipAddPoint(POINTLIST._3_06_GREASERS, 0, 4, 4)
gSprayBlip = BlipAddPoint(POINTLIST._4G4_YUMYUM, 0, 1, 1)
gTreeBlip = BlipAddPoint(POINTLIST._3_S11_TREEBLIP, 0, 1, 1, 7)
gWatcherBlip = BlipAddPoint(POINTLIST._3_S11_WATCHERBOX, 0, 1, 4)
idBuckyBlip = BlipAddPoint(POINTLIST._1_07_BUCKY, 0, 1)
local blip = BlipAddPoint(POINTLIST._1_10_HOLEBILIP, 0, 1, 1, 7, 0)
local blip = BlipAddPoint(POINTLIST._1_10JANDOORBLIP, 0)
local blip = BlipAddPoint(POINTLIST._2_05_GATECORONA, 0, 2)
local blip = BlipAddPoint(POINTLIST._2_S02_HATTRICK_CAR, 0, 1, 1, 0)
local blip = BlipAddPoint(POINTLIST._2_S02_HATTRICKYARDBLIP, 0, 1, 1)
local blip = BlipAddPoint(POINTLIST._4_03_BLIPCANNONFIRST, 0, 1, 1)
local blip = BlipAddPoint(POINTLIST._5_02_GREASERBLIP, 0, 1, 1, 0)
local blip = BlipAddPoint(POINTLIST._5_02_PORTBLIP, 0)
local blip = BlipAddPoint(POINTLIST._5_02_WAREHOUSEBLIP, 0, 1, 1, 0)
local blip1, blip2 = BlipAddPoint(POINTLIST._2_S05_FATTY, 0), BlipAddPoint(POINTLIST._2_S05_DRUGCANS, 0)
local blipLattice = BlipAddPoint(POINTLIST._1_G1_LATTICE, 29, 1, 0, 1)
local blipPerfume = BlipAddPoint(POINTLIST._2_S05_PERFUME, 0)
local blipPhoto = BlipAddPoint(POINTLIST._5_09_PHOTOPOINT, 0)
local vantageBlip = BlipAddPoint(POINTLIST._2_S05_DINCLIMBPOINT, 0, 1)
local vantageCorona = BlipAddPoint(POINTLIST._2_S05_DINCLIMBPOINT, 0, 1, 0, 7)
Mailbox_blip = BlipAddPoint(POINTLIST._3_S08_MAILBOXES, 0, 1, 1, 7)
Mission_blip = BlipAddPoint(tblMissionParams[CurrentMissionIndex][2], 0, 1, 1, 7)
Mission_blip = BlipAddPoint(tblMissionParams[CurrentMissionIndex][4], 0, 1, 1, 7)
ob_blip2 = BlipAddPoint(POINTLIST._4_02_OBSERVATORY, 0)
objBlip = BlipAddPoint(POINTLIST._C5_CORONA, 0, 1, 1, 7)
objBlip = BlipAddPoint(POINTLIST._C5_EXITPOINT, 0)
objBlip = BlipAddPoint(POINTLIST._C5_FREAKHOUSE, 0)
Paint.blip = BlipAddPoint(Paint.point, 0)
ParkingBlip = BlipAddPoint(POINTLIST._1_04_NEMESISPARKING, 0, 1, 1, 0)
pedGalloway.blip = BlipAddPoint(POINTLIST._3_S03_SPAWNGALLOWAY, 0, 1, 1, 7)
PlayersRoom.blip = BlipAddPoint(POINTLIST._5_09_PLAYERS_ROOM, 0)
prank.blip = BlipAddPoint(prank.point, 1)
return BlipAddPoint(nextBlipPoint, 0), nextBlipPoint
Scoreboard.blip = BlipAddPoint(Scoreboard.point, 0, 1)
sheet1GuardBlip = BlipAddPoint(POINTLIST._2_S04_SHEET1, 0)
sheet2GuardBlip = BlipAddPoint(POINTLIST._2_S04_SHEET2, 0)
sheet3GuardBlip = BlipAddPoint(POINTLIST._2_S04_SHEET3, 0)
sheet4GuardBlip = BlipAddPoint(POINTLIST._2_S04_SHEET4, 0)
SportsDrink.blip = BlipAddPoint(POINTLIST._4_06_OBJECTIVE_A, 0)
spudcannon_blip = BlipAddPoint(POINTLIST._4_02_SPUD_NERD01, 0)
store_blip = BlipAddPoint(POINTLIST._2_03_EGGSTOREBLIP, 0)
tblItem.tblDress.blip = BlipAddPoint(tblItem.tblDress.blippoint, 0, 1)
tblItem.tblNecklace.blip = BlipAddPoint(tblItem.tblNecklace.blippoint, 0, 1)
tblItem.tblPerfume.blip = BlipAddPoint(tblItem.tblPerfume.blippoint, 0, 1)
tblMsPhillips.blip = BlipAddPoint(tblMsPhillips.point, 0, 1)
Tree1Blip = BlipAddPoint(POINTLIST._1_04_TREE1, 0, 1, 1, 7)
trophy_bottle_blip = BlipAddPoint(POINTLIST._1_S01_BOTTLE3_BLIP, 0)
windowBlip = BlipAddPoint(POINTLIST._1_G1_WINDOWENTRY, 29)
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, dword ptr [esp+0x2C]
push 0x0
push edi
xor bl, bl
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, 0xBC5E7C
call 0x6D6450
mov esi, eax
push 0x1
push edi
mov dword ptr [esp+0x28], esi
call LuaParam::GetInt
fldz
fstp dword ptr [esp+0x20], st
or ebp, 0xFFFFFFFF
fld st, dword ptr [0x900BFC]
push edi
fstp dword ptr [esp+0x20], st
mov dword ptr [esp+0x30], eax
mov dword ptr [esp+0x1C], 0x1
mov dword ptr [esp+0x28], ebp
call 0x73AEA0
add esp, 0xC
cmp eax, 0x3
jl 0x11
push 0x2
push edi
call LuaParam::GetInt
add esp, 0x8
mov ebp, eax
mov bl, 0x1
push edi
call 0x73AEA0
add esp, 0x4
cmp eax, 0x4
jl 0x11
push 0x3
push edi
call LuaParam::GetInt
add esp, 0x8
mov dword ptr [esp+0x10], eax
push edi
call 0x73AEA0
add esp, 0x4
cmp eax, 0x5
jl 0x11
push 0x4
push edi
call LuaParam::GetInt
add esp, 0x8
mov dword ptr [esp+0x1C], eax
push edi
call 0x73AEA0
add esp, 0x4
cmp eax, 0x6
jl 0x11
push 0x5
push edi
call LuaParam::GetFloat
fstp dword ptr [esp+0x20], st
add esp, 0x8
push edi
call 0x73AEA0
add esp, 0x4
cmp eax, 0x7
jl 0x11
push 0x6
push edi
call LuaParam::GetFloat
fstp dword ptr [esp+0x1C], st
add esp, 0x8
mov ecx, esi
call 0x6D59B0
test bl, bl
mov esi, eax
jz 0x26
mov ebx, 0x1
cmp ebp, ebx
jle 0x1D
jmp 0x5
lea ecx, ptr [ecx]
mov ecx, dword ptr [esp+0x20]
call 0x6D59F0
test eax, eax
jz 0xB
add ebx, 0x1
cmp ebx, ebp
mov esi, eax
jl 0xFFFFFFEC
mov ecx, dword ptr [esi]
mov edx, dword ptr [esi+0x4]
mov esi, dword ptr [esi+0x8]
mov eax, dword ptr [esp+0x24]
mov ebx, dword ptr [0xC674CC]
push 0x0
push eax
mov eax, dword ptr [esp+0x18]
push eax
push ecx
mov eax, esp
mov dword ptr [0xBF4508], ecx
mov byte ptr [0xBF4520], 0x1
mov dword ptr [0xBF450C], edx
mov dword ptr [0xBF4510], esi
sub esp, 0xC
mov byte ptr [eax], 0x0
mov byte ptr [eax+0x1], 0x7F
mov byte ptr [eax+0x2], 0x0
mov byte ptr [eax+0x3], 0xFF
mov eax, esp
mov dword ptr [eax], ecx
mov dword ptr [eax+0x4], edx
push 0x4
mov ecx, ebx
mov dword ptr [eax+0x8], esi
call 0x54A410
mov esi, eax
push 0x5
push esi
mov ecx, ebx
call 0x548BF0
fld st, dword ptr [esp+0x14]
mov ecx, dword ptr [esp+0x1C]
sub esp, 0x8
fstp dword ptr [esp+0x4], st
fld st, dword ptr [esp+0x20]
fstp dword ptr [esp], st
push ecx
push esi
mov ecx, 0xD02850
call 0x5DB940
mov ecx, eax
call 0x5D9380
push esi
push edi
call LuaParam::PushInt
add esp, 0x8
pop edi
pop esi
pop ebp
mov eax, 0x1
pop ebx
add esp, 0x18
ret
BlipAddSave(-653.805, 247.713, 16.223)
BlipAddSave(-697.063, 353.672, 4.499)
BlipAddSave(-734.541, 36.0908, -1.27256)
BlipAddSave(-740.92, 348.823, 4.4936)
BlipAddSave(-778.246, 359.016, 7.586)
gBoysDormSaveBlipID = BlipAddSave(x, y, z)
gSchoolSaveBlip = BlipAddSave(-633.252, -291.458, 5.52505)
sub esp, 0x18
push ebx
push esi
mov esi, dword ptr [esp+0x24]
push edi
push 0x0
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x14], st
push 0x1
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x20], st
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x2C], st
mov ebx, dword ptr [0xC674CC]
fld st, dword ptr [esp+0x24]
add esp, 0x18
fstp dword ptr [esp+0x18], st
fld st, dword ptr [esp+0x10]
push 0x0
push 0x8
fstp dword ptr [esp+0x24], st
fld st, dword ptr [esp+0x1C]
mov edx, dword ptr [esp+0x24]
push 0x1
fstp dword ptr [esp+0x2C], st
push ecx
mov ecx, dword ptr [esp+0x28]
mov eax, esp
sub esp, 0xC
mov byte ptr [eax], 0x0
mov byte ptr [eax+0x1], 0x7F
mov byte ptr [eax+0x2], 0x0
mov byte ptr [eax+0x3], 0xFF
mov eax, esp
mov dword ptr [eax], ecx
mov ecx, dword ptr [esp+0x3C]
mov dword ptr [eax+0x4], edx
mov dword ptr [eax+0x8], ecx
push 0xA
mov ecx, ebx
call 0x54A410
mov edi, eax
push 0x5
push edi
mov ecx, ebx
call 0x548BF0
push edi
mov ecx, 0xD02850
call 0x5DB940
mov ecx, eax
call 0x5DA7D0
push edi
push esi
call LuaParam::PushInt
add esp, 0x8
pop edi
pop esi
mov eax, 0x1
pop ebx
add esp, 0x18
ret
bath_bottle_arrow = BlipAddXYZ(b2x, b2y, b2z, 0, 2)
bikeParkBlipID = BlipAddXYZ(x, y, z, 0, 1, 7)
blipAlarm = BlipAddXYZ(alarmX, alarmY, alarmZ + 1, 0, 4)
blipBarber = BlipAddXYZ(x, y, z, 0, 4)
blipBoysDorm = BlipAddXYZ(dormX, dormY, dormZ, 1, 1, 0)
blipChocolates = BlipAddXYZ(tempX, tempY, tempZ, 0, 4)
blipCloth = BlipAddXYZ(x, y, z, 0, 4)
blipComic = BlipAddXYZ(tempX, tempY, tempZ, 0, 4, 0)
blipFireAlarm = BlipAddXYZ(fireX, fireY, fireZ, 1, 4)
blipGirlsDorm = BlipAddXYZ(dormX, dormY, dormZ, 1, 1, 0)
blipGrocery = BlipAddXYZ(x, y, z + 0.1, 0, 4)
blipId = BlipAddXYZ(x2, y2, 8.6, 0, 1),
blipID = BlipAddXYZ(xx, yy, zz, 0)
blipToilet = BlipAddXYZ(toiletX, toiletY, toiletZ, 1, 4, 0)
blipVantage = BlipAddXYZ(x, y, z, 0)
boxingringBlip = BlipAddXYZ(397.421, 144.495, 5.27711, 0)
busBlip.id = BlipAddXYZ(busBlip[1], busBlip[2], busBlip[3], 28)
businessBlipID = BlipAddXYZ(x, y, z, 0)
cafe_bottle_arrow = BlipAddXYZ(b3x, b3y, b3z, 0, 2)
CargoBlip = BlipAddXYZ(Cx, Cy, Cz, 1, 1)
crab.blip = BlipAddXYZ(crab.x_coord, crab.y_coord, crab.z_coord, 1, 1)
CrazyBlip1 = BlipAddXYZ(c1x, c1y, c1z, 1)
CrazyBlip2 = BlipAddXYZ(c2x, c2y, c2z, 1)
currentBlip = BlipAddXYZ(x, y, z, 0, 1)
currentBlip = BlipAddXYZ(x, y, z, 0, 1, 7)
DirtyCopBlip = BlipAddXYZ(dirtyCop_x, dirtyCop_y, dirtyCop_z, 1)
element.blip = BlipAddXYZ(element.x, element.y, element.z, element.radarIcon or tblXYZBlipDefault.radarIcon, element.blipStyle or tblXYZBlipDefault.blipStyle)
entry.blip = BlipAddXYZ(entry.x, entry.y, entry.z, 0)
entry.blip = BlipAddXYZ(entry.x, entry.y, entry.z, 1)
fire.blip = BlipAddXYZ(x, y, z, 1, 4)
gate_key_blip = BlipAddXYZ(tx, ty, tz, 0, 4)
gBlipBear = BlipAddXYZ(x, y, z, 1, 4)
gBlipBouy = BlipAddXYZ(bouyX, bouyY, bouyZ, 1, 4, 7)
gBlipDock = BlipAddXYZ(dockX, dockY, dockZ, 1, 4, 7)
gBlipGirlsDorm = BlipAddXYZ(px, py, pz, 1)
gBlipKissZone = BlipAddXYZ(kissX, kissY, kissZ, 0, 1, 7)
gBlipShip = BlipAddXYZ(shipX, shipY, shipZ, 1, 1)
gBlipSpazz = BlipAddXYZ(delX, delY, delZ, 1)
gBlipTap = BlipAddXYZ(tapX, tapY, tapZ, 30, 2)
gBlipTap = BlipAddXYZ(tapX, tapY, tapZ, 30, 4)
gCheater01Blip = BlipAddXYZ(cheater01_x, cheater01_y, cheater01_z, 1)
gClothingManagerBlip = BlipAddXYZ(x, y, z + 0.1, 0, 1)
gEdgarBlip = BlipAddXYZ(x, y, z, 26, 1)
gExtinguishBlip = BlipAddXYZ(-630.103, -62.6126, 59.7198, 0)
gExtinguishBlip = BlipAddXYZ(xx, xy, xz, 0)
gGallowayBlip = BlipAddXYZ(x, y, z, 0, 1, 7)
gGarbageCanBlip = BlipAddXYZ(x, y, z + ARROW_OFFSET_Z, -1, 2)
gHoopCorona = BlipAddXYZ(-617.361, -45.9852, 59.6611, 0, 0, 7)
gMagnetBlip = BlipAddXYZ(x, y, z + 0.3, -1, 2)
gNISBlip = BlipAddXYZ(bx, by, bz, 0, 2)
gObjBlip = BlipAddXYZ(49.926, -564.06, 32.6076, 0, 1, 7)
gObjBlip = BlipAddXYZ(x, y, z, 0, 1)
gObjectiveBlip = BlipAddXYZ(x, y, z + 0.1, 0)
gObjectiveBlip = BlipAddXYZ(x, y, z + 0.1, 0, blipEnum)
gObjectiveBlip = BlipAddXYZ(x, y, z, 0, 1)
gObjectiveBlip = BlipAddXYZ(x, y, z, 0, 4)
gObjectiveBlip = BlipAddXYZ(xObj, yObj, zObj + 0.1, 0, blipEnum)
gPhotoTargets[i].blipId = BlipAddXYZ(target.x, target.y, target.z, 1, 4)
GraveBlip = BlipAddXYZ(grave_x, grave_y, grave_z, 1, 4)
gWallCorona = BlipAddXYZ(-615.174, -65.5818, 59.6611, 0, 0, 7)
gWindowBlip = BlipAddXYZ(windowX, windowY, windowZ, 1)
HouseBlip = BlipAddXYZ(x, y, z, 1)
idBikeBlip = BlipAddXYZ(xv, yv, zv + 0.5, 0, 2)
idBlip = BlipAddXYZ(x, y, z, 0)
idFireBlip = BlipAddXYZ(x, y, z, 1, RADARICON_FIRE)
idPowerBlip01 = BlipAddXYZ(x, y, z, 0, 1)
idPowerBlip02 = BlipAddXYZ(x, y, z, 0, 1)
item.blip = BlipAddXYZ(item.x - 0.5, item.y, item.z + 0.5, 0, 1)
item.blip = BlipAddXYZ(item.x, item.y, item.z + 0.5, 0, 4)
item.blip = BlipAddXYZ(item.x, item.y, item.z + 1.5, 0, 4)
item.blip = BlipAddXYZ(item.x, item.y, item.z + 1.75, 0, 4)
item.blip = BlipAddXYZ(item.x, item.y, item.z + 2, 0, 4)
item.blip = BlipAddXYZ(item.x, item.y, item.z + 2.5, 0, 4)
Jacketblip = BlipAddXYZ(x, y, z, 30)
libraryBlip = BlipAddXYZ(186.9, -154.7, 8.2, 1, 1, 0)
local b1 = BlipAddXYZ(153.704, -14.1309, 6.25, 9)
local b2 = BlipAddXYZ(475.653, -74.7202, 5.53, 9)
local b3 = BlipAddXYZ(343.649, 275.255, 6.368, 9)
local b4 = BlipAddXYZ(458.54, -453.336, 2.89, 9)
local b5 = BlipAddXYZ(-779.257, 726.342, 20.6265, 9)
local blip = BlipAddXYZ(-100, 56, 26, 0, 1)
local blip = BlipAddXYZ(bx, by, bz, 0, 1)
local blip = BlipAddXYZ(gRatCrate.x, gRatCrate.y, gRatCrate.z, 0)
local blip = BlipAddXYZ(gTrophyPile.x, gTrophyPile.y, gTrophyPile.z, 0, 4)
local blip = BlipAddXYZ(x, y, z, 0)
local blip = BlipAddXYZ(x, y, z, 0, 1)
local blip = BlipAddXYZ(x3, y3, z3, 0, 4)
local hallblip = BlipAddXYZ(x1, y1, z1, 0)
LockerBlip = BlipAddXYZ(Locker_x, Locker_y, Locker_z, 1, 1)
mailbox.blip = BlipAddXYZ(bx, by, bz, 0, 4)
objBlip = BlipAddXYZ(x, y, z, 0)
oBlip = BlipAddXYZ(x, y, z, 0)
package.blip = BlipAddXYZ(package.x, package.y, package.z, 1, 4)
PeteyBlip = BlipAddXYZ(PeX, PeY, PeZ, 1)
photo.corona = BlipAddXYZ(photo.px, photo.py, photo.pz, 0, 1, 7)
pipeBlips[i] = BlipAddXYZ(bx, by, bz, 0, 2)
ScenarioBlip = BlipAddXYZ(BeX, BeY, BeZ, 1)
ScenarioBlip = BlipAddXYZ(oX, oY, oZ, 1, 1)
ScenarioBlip = BlipAddXYZ(x, y, z, 1, 1, 7)
shieldBlips[i] = BlipAddXYZ(bx, by, bz, 0, 2)
snow.blip = BlipAddXYZ(x, y, z + 0.6, 0, 1)
SportsDrink.blip = BlipAddXYZ(x1, y1, z1, 0, 1, 7)
tag.blip = BlipAddXYZ(bx, by, bz, 0, 1)
tag.blip = BlipAddXYZ(bx, by, bz, 29, 1)
tag.blip = BlipAddXYZ(x, y, z, 0, 1)
tag.idBlip = BlipAddXYZ(x, y, z, 0)
TESTblip = BlipAddXYZ(bx, by, bz, 0)
TPBlip = BlipAddXYZ(TPx, TPy, TPz, 1, 1)
trashCan.blip = BlipAddXYZ(x, y, z, 1, 1)
sub esp, 0x30
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x40]
push edi
push 0x0
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x1C], st
push 0x1
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x20], st
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x30], st
fld st, dword ptr [esp+0x2C]
push 0x3
fstp dword ptr [esp+0x50], st
push esi
fld st, dword ptr [esp+0x30]
fstp dword ptr [esp+0x58], st
fld st, dword ptr [esp+0x38]
fstp dword ptr [esp+0x5C], st
call LuaParam::GetInt
fldz
push esi
fstp dword ptr [esp+0x38], st
mov dword ptr [esp+0x48], eax
fld st, dword ptr [0x900BFC]
mov edi, 0x1
fstp dword ptr [esp+0x34], st
or ebp, 0xFFFFFFFF
call 0x73AEA0
add esp, 0x24
cmp eax, 0x5
jl 0xF
push 0x4
push esi
call LuaParam::GetInt
add esp, 0x8
mov edi, eax
push esi
call 0x73AEA0
add esp, 0x4
cmp eax, 0x6
jl 0xF
push 0x5
push esi
call LuaParam::GetInt
add esp, 0x8
mov ebp, eax
push esi
call 0x73AEA0
add esp, 0x4
cmp eax, 0x7
jl 0x11
push 0x6
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x1C], st
add esp, 0x8
push esi
call 0x73AEA0
add esp, 0x4
cmp eax, 0x8
jl 0x11
push 0x7
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x18], st
add esp, 0x8
push 0x0
push esi
mov byte ptr [0xBF4520], 0x1
call LuaParam::GetFloat
fstp dword ptr [esp+0x20], st
push 0x1
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x2C], st
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x38], st
fld st, dword ptr [esp+0x30]
mov ebx, dword ptr [0xC674CC]
fstp dword ptr [esp+0x40], st
mov eax, dword ptr [esp+0x40]
fld st, dword ptr [esp+0x34]
add esp, 0x18
mov dword ptr [0xBF4508], eax
fstp dword ptr [esp+0x2C], st
mov eax, dword ptr [esp+0x24]
fld st, dword ptr [esp+0x20]
mov ecx, dword ptr [esp+0x2C]
fstp dword ptr [esp+0x30], st
mov edx, dword ptr [esp+0x30]
push 0x0
push eax
push edi
push ecx
mov eax, esp
mov dword ptr [0xBF450C], ecx
mov ecx, dword ptr [esp+0x44]
mov dword ptr [0xBF4510], edx
mov edx, dword ptr [esp+0x48]
sub esp, 0xC
mov byte ptr [eax], 0x0
mov byte ptr [eax+0x1], 0x7F
mov byte ptr [eax+0x2], 0x0
mov byte ptr [eax+0x3], 0xFF
mov eax, esp
mov dword ptr [eax], ecx
mov ecx, dword ptr [esp+0x58]
mov dword ptr [eax+0x4], edx
mov dword ptr [eax+0x8], ecx
push 0x4
mov ecx, ebx
call 0x54A410
mov edi, eax
push 0x5
push edi
mov ecx, ebx
call 0x548BF0
fld st, dword ptr [esp+0x10]
sub esp, 0x8
fstp dword ptr [esp+0x4], st
mov ecx, 0xD02850
fld st, dword ptr [esp+0x1C]
fstp dword ptr [esp], st
push ebp
push edi
call 0x5DB940
mov ecx, eax
call 0x5D9380
push edi
push esi
call LuaParam::PushInt
add esp, 0x8
pop edi
pop esi
pop ebp
mov eax, 0x1
pop ebx
add esp, 0x30
ret
-- never used
push esi
mov esi, dword ptr [0xC674CC]
push edi
mov edi, dword ptr [esp+0xC]
push 0x1
push edi
call LuaParam::GetInt
add esp, 0x8
push eax
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, esi
call 0x548C80
pop edi
xor eax, eax
pop esi
ret
BlipRemove(AssistantBlip)
BlipRemove(b_rec_room)
BlipRemove(bath_bottle_arrow)
BlipRemove(bath_bottle_blip)
BlipRemove(bBlipControlRoom)
BlipRemove(Benches[i].blip)
BlipRemove(bikeBlip)
BlipRemove(bikeParkBlipID)
BlipRemove(blip)
BlipRemove(blip1)
BlipRemove(blip2)
BlipRemove(blipAlarm)
BlipRemove(blipAlgie)
BlipRemove(blipBackDoor)
BlipRemove(blipBalcony)
BlipRemove(blipBarber)
BlipRemove(blipBathroomSecondFloor)
BlipRemove(blipBooth)
BlipRemove(blipBoysDorm)
BlipRemove(blipCandy)
BlipRemove(blipCarnival)
BlipRemove(blipChristy)
BlipRemove(blipCloth)
BlipRemove(blipComic)
BlipRemove(blipCutStart)
BlipRemove(blipDrugs)
BlipRemove(blipExit)
BlipRemove(blipFireAlarm)
BlipRemove(blipFrontDoor)
BlipRemove(blipGarbageBin)
BlipRemove(blipGdormAttic)
BlipRemove(blipGetSpray)
BlipRemove(blipGirlsDorm)
BlipRemove(blipGreaser)
BlipRemove(blipGreaserObjective)
BlipRemove(blipGreaserSpotter)
BlipRemove(blipGrocery)
BlipRemove(blipID)
BlipRemove(BlipID)
BlipRemove(blipJock)
BlipRemove(blipJockObjective)
BlipRemove(blipLastPotty)
BlipRemove(blipLattice)
BlipRemove(blipLibrary)
BlipRemove(blipLocker)
BlipRemove(blipLola)
BlipRemove(blipMotor01)
BlipRemove(blipMotor02)
BlipRemove(blipMotor03)
BlipRemove(blipMotor04)
BlipRemove(blipMotor05)
BlipRemove(blipMotor06)
BlipRemove(blipNorton)
BlipRemove(blipObjective)
BlipRemove(blipObjective01)
BlipRemove(blipObjective02)
BlipRemove(blipOldLady)
BlipRemove(blipPanties_B)
BlipRemove(blipPanties_C)
BlipRemove(blipPanties_D)
BlipRemove(blipPanties_E)
BlipRemove(blipPanties_F)
BlipRemove(blipPerfume)
BlipRemove(blipPete)
BlipRemove(blipPhoto)
BlipRemove(blipPoolExit)
BlipRemove(blipRealExit)
BlipRemove(blipSchool)
BlipRemove(blipTextExit)
BlipRemove(blipToilet)
BlipRemove(blipVantage)
BlipRemove(boxingringBlip)
BlipRemove(bTalkZone)
BlipRemove(businessBlipID)
BlipRemove(cafe_bottle_arrow)
BlipRemove(cafe_bottle_blip)
BlipRemove(car.blip)
BlipRemove(CargoBlip)
BlipRemove(classBlip)
BlipRemove(crab.blip)
BlipRemove(CrazyBlip1)
BlipRemove(CrazyBlip2)
BlipRemove(currentBlip)
BlipRemove(dataSet.blip)
BlipRemove(diaryBlip)
BlipRemove(DirtyCopBlip)
BlipRemove(DogBlip)
BlipRemove(door_blip)
BlipRemove(DropoutBlip1)
BlipRemove(dude_blip)
BlipRemove(EdnaBlip)
BlipRemove(eggsBlip)
BlipRemove(element.blip)
BlipRemove(EnemyTable[i].blip)
BlipRemove(entry.blip)
BlipRemove(EscapeBlip)
BlipRemove(ExitBlip)
BlipRemove(FieldBlip)
BlipRemove(fieldBlip01)
BlipRemove(fieldBlip02)
BlipRemove(fieldBlip03)
BlipRemove(FieldPt)
BlipRemove(fire.blip)
BlipRemove(FlowersBlip)
BlipRemove(GameBallblip)
BlipRemove(gardenBlip)
BlipRemove(gAsylumBlip)
BlipRemove(gate_key_blip)
BlipRemove(gBlip)
BlipRemove(gBlipAlgie)
BlipRemove(gBlipAsylum)
BlipRemove(gBlipAsylumDoor)
BlipRemove(gBlipBear)
BlipRemove(gBlipBike)
BlipRemove(gBlipBouy)
BlipRemove(gBlipCannon)
BlipRemove(gBlipControlRoom)
BlipRemove(gBlipCrumb)
BlipRemove(gBlipDock)
BlipRemove(gBlipEunice)
BlipRemove(gBlipExit)
BlipRemove(gBlipGirlsDorm)
BlipRemove(gBlipGord)
BlipRemove(gBlipJohnny)
BlipRemove(gBlipKissZone)
BlipRemove(gBlipNerds01)
BlipRemove(gBlipObs)
BlipRemove(gBlipObs2)
BlipRemove(gBlipObsDoor)
BlipRemove(gBlipRat01)
BlipRemove(gBlipRat02)
BlipRemove(gBlipShip)
BlipRemove(gBlipSpazz)
BlipRemove(gBlipStore)
BlipRemove(gBlipTap)
BlipRemove(gBlipTheater)
BlipRemove(gBlipTransformer)
BlipRemove(gCarnivalEntranceCorona)
BlipRemove(gCaseyBlip)
BlipRemove(gCheater01Blip)
BlipRemove(gChem_blip)
BlipRemove(gClothingManagerBlip)
BlipRemove(gCoronaBlip)
BlipRemove(gCurrentBlip)
BlipRemove(gEdgarBlip)
BlipRemove(gEndBlip)
BlipRemove(gExitBlip)
BlipRemove(gExtinguishBlip)
BlipRemove(gGallowayBlip)
BlipRemove(gGaryBlip)
BlipRemove(gGordBlip)
BlipRemove(gHoopCorona)
BlipRemove(gJohnnyBlip)
BlipRemove(gKirbyBlip)
BlipRemove(gLockerCorona)
BlipRemove(gLolaBlip)
BlipRemove(gLroomBlip)
BlipRemove(gMagnetBlip)
BlipRemove(gMandyBlip)
BlipRemove(gMarblesBlip)
BlipRemove(gMidgetBlip)
BlipRemove(gMineBlips[1].blip)
BlipRemove(gMineBlips[2].blip)
BlipRemove(gMineBlips[3].blip)
BlipRemove(gObjBlip)
BlipRemove(gObjBlipHigh)
BlipRemove(gObjectiveBlip)
BlipRemove(gObjectiveBlips.gGreasers)
BlipRemove(gObjectiveBlips.gJocks)
BlipRemove(gObjectiveBlips.gNerds)
BlipRemove(gObjectiveBlips.gPreppies)
BlipRemove(gotoBlip)
BlipRemove(gPeanutBlip)
BlipRemove(gPeteBlip)
BlipRemove(gPhotoTargets[pLoc].corona)
BlipRemove(gPrefectBlip)
BlipRemove(GraveBlip)
BlipRemove(GreaserBlip1)
BlipRemove(GreaserBlip2)
BlipRemove(gRooftopPedsBlip)
BlipRemove(gRussell.blip)
BlipRemove(gSchoolSaveBlip)
BlipRemove(gSprayBlip)
BlipRemove(gTreeBlip)
BlipRemove(guy.blip_id)
BlipRemove(gVanceBlip)
BlipRemove(gWallCorona)
BlipRemove(gWatcherBlip)
BlipRemove(gWindowBlip)
BlipRemove(hallblip)
BlipRemove(hattrickBlip)
BlipRemove(HouseBlip)
BlipRemove(idBikeBlip)
BlipRemove(idBlip)
BlipRemove(idBuckyBlip)
BlipRemove(idDarbyBlip)
BlipRemove(idEndBlip)
BlipRemove(idFireBlip)
BlipRemove(idGenStoreBlip)
BlipRemove(idGirlBikeBlip)
BlipRemove(idPinky.blip)
BlipRemove(idPowerBlip01)
BlipRemove(idPowerBlip02)
BlipRemove(idPowerBlip03)
BlipRemove(item.blip)
BlipRemove(Jacketblip)
BlipRemove(LibraryBlip)
BlipRemove(libraryBlip)
BlipRemove(LockerBlip)
BlipRemove(lolaBlip)
BlipRemove(lVictimBlip[vIndex])
BlipRemove(Mailbox_blip)
BlipRemove(MascotBlip)
BlipRemove(Mission_blip)
BlipRemove(nemesisBlip)
BlipRemove(ob_blip)
BlipRemove(ob_blip2)
BlipRemove(objBlip)
BlipRemove(Objectives[5].blip)
BlipRemove(Objectives[i].blip)
BlipRemove(oBlip)
BlipRemove(package.blip)
BlipRemove(Paint.blip)
BlipRemove(ParkingBlip)
BlipRemove(pedAlgie.blip)
BlipRemove(pedBurtonStage3.blip)
BlipRemove(pedChad.blip)
BlipRemove(pedCornelius.blip)
BlipRemove(pedGalloway.blip)
BlipRemove(pedJockBathroomSecondFloor01.blip)
BlipRemove(pedJockBathroomSecondFloor02.blip)
BlipRemove(pedMandyBedroom.blip)
BlipRemove(pedPinky.blip)
BlipRemove(pedPrep.blip)
BlipRemove(PeteyBlip)
BlipRemove(photo.corona)
BlipRemove(pipeBlips[i])
BlipRemove(PlayersRoom.blip)
BlipRemove(pointBlip)
BlipRemove(prank.blip)
BlipRemove(PrepBlip1)
BlipRemove(PrepBlip2)
BlipRemove(racer.blip)
BlipRemove(rat.blip)
BlipRemove(ratped.blip)
BlipRemove(Receiver1Blip)
BlipRemove(Receiver2Blip)
BlipRemove(Receiver3Blip)
BlipRemove(RudyBlip)
BlipRemove(ScenarioBlip)
BlipRemove(ScenarioPedBlip)
BlipRemove(Scoreboard.blip)
BlipRemove(shared.gHallowPrankBlip01)
BlipRemove(shared.gHallowPrankBlip02)
BlipRemove(shared.gHallowPrankBlip03)
BlipRemove(shared.gHallowPrankBlip04)
BlipRemove(shared.gHallowPrankBlip05)
BlipRemove(shared.gHallowPrankBlip06)
BlipRemove(shared.gHallowPrankBlip07)
BlipRemove(shared.gHallowPrankBlip08)
BlipRemove(sheet1Blip)
BlipRemove(sheet2Blip)
BlipRemove(sheet3Blip)
BlipRemove(sheet4Blip)
BlipRemove(shieldBlips[i])
BlipRemove(snow.blip)
BlipRemove(SportsDrink.blip)
BlipRemove(spudcannon_blip)
BlipRemove(store_blip)
BlipRemove(tableBikerBlips[tableMarkForDelete[i]])
BlipRemove(tad_blip)
BlipRemove(tadBlip)
BlipRemove(tadBlip2)
BlipRemove(tag.blip)
BlipRemove(tag.idBlip)
BlipRemove(target.blipId)
BlipRemove(tbl.blip)
BlipRemove(tblGord.blip)
BlipRemove(tblItem.tblDress.blip)
BlipRemove(tblItem.tblNecklace.blip)
BlipRemove(tblItem.tblPerfume.blip)
BlipRemove(tblMsPhillips.blip)
BlipRemove(tblPrank[2].blip)
BlipRemove(tblPrank[3].blip)
BlipRemove(tblPrank[4].blip)
BlipRemove(tblPrank[5].blip)
BlipRemove(tblPrank[6].blip)
BlipRemove(tblPrank[7].blip)
BlipRemove(tblPrank[8].blip)
BlipRemove(tblTag.idBlip)
BlipRemove(tempBlip)
BlipRemove(TESTblip)
BlipRemove(TPBlip)
BlipRemove(trashCan.blip)
BlipRemove(Tree1Blip)
BlipRemove(trophy_bottle_blip)
BlipRemove(vantageBlip)
BlipRemove(vantageCorona)
BlipRemove(windowBlip)
gate1Blip = BlipRemove(gate1Blip)
gate2Blip = BlipRemove(gate2Blip)
Mission_blip = BlipRemove(Mission_blip)
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::IsInt
add esp, 0x8
test al, al
jz 0x20
push 0x0
push esi
call LuaParam::GetInt
mov ecx, dword ptr [0xC674CC]
add esp, 0x8
push eax
mov byte ptr [0xBF4520], 0x0
call 0x54A940
xor eax, eax
pop esi
ret
BlipRemoveFromChar(bully.id)
BlipRemoveFromChar(cop)
BlipRemoveFromChar(DirtyCop)
BlipRemoveFromChar(Dropout1)
BlipRemoveFromChar(edna)
BlipRemoveFromChar(gCheater01)
BlipRemoveFromChar(gCheater02)
BlipRemoveFromChar(gEdna)
BlipRemoveFromChar(gFatty)
BlipRemoveFromChar(gGalloway)
BlipRemoveFromChar(gHattrick)
BlipRemoveFromChar(gThad)
BlipRemoveFromChar(hattrick)
BlipRemoveFromChar(MotelOwner)
BlipRemoveFromChar(ped)
BlipRemoveFromChar(pedEarnest.id)
BlipRemoveFromChar(pedID)
BlipRemoveFromChar(pedKlepto.id)
BlipRemoveFromChar(pedMandyBedroom.id)
BlipRemoveFromChar(pedMandyGym.id)
BlipRemoveFromChar(pedMandyShower.id)
BlipRemoveFromChar(rat)
BlipRemoveFromChar(ScenarioPed)
BlipRemoveFromChar(ScenarioPedBlip)
BlipRemoveFromChar(tagger)
BlipRemoveFromChar(tbl.id)
BlipRemoveFromChar(watts)
mov eax, dword ptr [esp+0x4]
push esi
push edi
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
jz 0x3E
mov ecx, dword ptr [0xC0F5F0]
sub eax, dword ptr [ecx]
mov edi, dword ptr [0xC674CC]
cdq
idiv dword ptr [ecx+0xC]
mov ecx, dword ptr [ecx+0x4]
movzx esi, byte ptr [ecx+eax*1]
shl eax, 0x8
add esi, eax
push esi
push 0x6
mov ecx, edi
call 0x54A890
push esi
push 0x2
mov ecx, edi
call 0x54A890
push esi
push 0xD
mov ecx, edi
call 0x54A890
pop edi
xor eax, eax
pop esi
ret
BlipSetFlashing(CrazyBlip1)
BlipSetFlashing(CrazyBlip2)
BlipSetFlashing(DropoutBlip1)
BlipSetFlashing(gBlipBear)
BlipSetFlashing(GreaserBlip1)
BlipSetFlashing(GreaserBlip2)
BlipSetFlashing(LockerBlip)
BlipSetFlashing(PrepBlip1)
BlipSetFlashing(PrepBlip2)
mov eax, dword ptr [esp+0x4]
push esi
mov esi, dword ptr [0xC674CC]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, esi
call 0x54ABB0
xor eax, eax
pop esi
ret
-- never used
push esi
mov esi, dword ptr [0xC674CC]
push edi
mov edi, dword ptr [esp+0xC]
push 0x1
push edi
call LuaParam::GetFloat
fstp dword ptr [esp+0x4], st
add esp, 0x4
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, esi
call 0x548BB0
pop edi
xor eax, eax
pop esi
ret
BlipSetShortRanged(b1, true)
BlipSetShortRanged(b2, true)
BlipSetShortRanged(b3, true)
BlipSetShortRanged(b4, true)
BlipSetShortRanged(b5, true)
BlipSetShortRanged(mailbox.blip, true)
BlipSetShortRanged(tag.blip, true)
push esi
mov esi, dword ptr [0xC674CC]
push edi
mov edi, dword ptr [esp+0xC]
push 0x1
push edi
call LuaParam::GetBool
add esp, 0x8
push eax
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, esi
call 0x548C30
pop edi
xor eax, eax
pop esi
ret
-- never used
push esi
mov esi, dword ptr [0xC674CC]
push edi
mov edi, dword ptr [esp+0xC]
push 0x1
push edi
call LuaParam::GetInt
add esp, 0x8
push eax
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, esi
call 0x548BF0
pop edi
xor eax, eax
pop esi
ret
-- never used
push esi
mov esi, dword ptr [0xC674CC]
push edi
mov edi, dword ptr [esp+0xC]
push 0x1
push edi
call LuaParam::GetBool
add esp, 0x8
push eax
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, esi
call 0x548B10
pop edi
xor eax, eax
pop esi
ret
-- never used
push esi
mov esi, dword ptr [0xC674CC]
push edi
mov edi, dword ptr [esp+0xC]
push 0x1
push edi
call LuaParam::GetBool
add esp, 0x8
push eax
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, esi
call 0x548B60
pop edi
xor eax, eax
pop esi
ret
bsDumpMemUsage()
push 0x2C
call 0x5EF0A0
add esp, 0x4
call 0x5EF100
xor eax, eax
ret
bsDumpRunTimeMetrics()
push 0x2C
call 0x5EF0A0
add esp, 0x4
call 0x5EF100
xor eax, eax
ret
BulletinSetupMessage("1_02B", "BB_03")
BulletinSetupMessage("1_04", "BB_02")
BulletinSetupMessage("1_05", "BB_04")
BulletinSetupMessage("1_07", "BB_05")
BulletinSetupMessage("1_08", "BB_06")
BulletinSetupMessage("1_09", "BB_07")
BulletinSetupMessage("1_11x2", "BB_08")
BulletinSetupMessage("1_B", "BB_10")
BulletinSetupMessage("1_G1", "BB_09")
BulletinSetupMessage("2_01", "BB_11")
BulletinSetupMessage("2_07", "BB_14")
BulletinSetupMessage("2_08", "BB_15")
BulletinSetupMessage("2_B", "BB_17")
BulletinSetupMessage("2_G2", "BB_13")
BulletinSetupMessage("2_S06", "BB_16")
BulletinSetupMessage("3_01", "BB_18")
BulletinSetupMessage("3_05", "BB_20")
BulletinSetupMessage("3_B", "BB_21")
BulletinSetupMessage("3_R09_N", "BB_12")
BulletinSetupMessage("3_S10", "BB_19")
BulletinSetupMessage("3_S11", "BB_24")
BulletinSetupMessage("4_05", "BB_23")
BulletinSetupMessage("4_B1", "BB_22")
BulletinSetupMessage("4_B2", "BB_25")
BulletinSetupMessage("5_05", "BB_26")
BulletinSetupMessage("6_B", "BB_27")
BulletinSetupMessage("C_ART_1", "BB_28")
BulletinSetupMessage("C_ENGLISH_1", "BB_29")
BulletinSetupMessage("NONE", "BB_00")
BulletinSetupMessage("NONE", "BB_01")
push esi
mov esi, dword ptr [esp+0x8]
push edi
push 0x0
push esi
call LuaParam::GetString
push 0x1
push esi
mov edi, eax
call LuaParam::GetString
add esp, 0x10
push eax
push edi
mov ecx, 0xBCCE80
call 0x418950
push eax
push esi
call LuaParam::PushInt
add esp, 0x8
pop edi
mov eax, 0x1
pop esi
ret
BulletinSetupTexture("BulletinChapter1_1")
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetString
add esp, 0x8
push eax
mov ecx, 0xBCCE80
call 0x4186E0
xor eax, eax
ret
-- never used
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push esi
mov byte ptr [esp+0xC], 0x0
call 0x73AEA0
add esp, 0x4
cmp eax, 0x2
jle 0x11
push 0x2
push esi
call LuaParam::GetBool
add esp, 0x8
mov byte ptr [esp+0x8], al
mov eax, dword ptr [esp+0x8]
mov edi, dword ptr [0xC674F4]
push eax
push 0x1
push esi
call LuaParam::GetInt
add esp, 0x8
push eax
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, edi
call 0x53B330
pop edi
xor eax, eax
pop esi
pop ecx
ret
-- never used
mov eax, dword ptr [esp+0x4]
push esi
mov esi, dword ptr [0xC674F4]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x8
add eax, 0xFFFFFFFF
push eax
mov ecx, esi
call 0x53AF10
xor eax, eax
pop esi
ret
ButtonHistoryAddSequence(8, false)
ButtonHistoryAddSequence(9, false)
ButtonHistoryAddSequence(action[1], action[2])
ButtonHistoryAddSequence(buttonTbl[1], buttonTbl[2], buttonTbl[3], buttonTbl[4])
ButtonHistoryAddSequence(value[1], value[2])
sub esp, 0x8
push ebp
push esi
push edi
mov edi, dword ptr [esp+0x18]
push edi
call 0x73AEA0
mov ebp, eax
mov eax, dword ptr [0xC674F4]
add esp, 0x4
xor esi, esi
test ebp, ebp
mov dword ptr [esp+0x10], eax
jle 0x3D
push ebx
push esi
push edi
call LuaParam::GetInt
lea ecx, ptr [esi+0x1]
push ecx
push edi
mov ebx, eax
call LuaParam::GetBool
mov ecx, dword ptr [esp+0x24]
add esp, 0x10
push 0xFFFFFFFF
push 0xFFFFFFFF
mov byte ptr [esp+0x18], al
mov edx, dword ptr [esp+0x18]
push 0x2EE
push edx
push ebx
call 0x53AEA0
add esi, 0x2
cmp esi, ebp
jl 0xFFFFFFC9
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x8
ret
ButtonHistoryAddSequenceLocalText("1_06_GRAPPLE")
ButtonHistoryAddSequenceLocalText("C3_Grapple")
ButtonHistoryAddSequenceLocalText("C3_Move06")
ButtonHistoryAddSequenceLocalText(captioning)
ButtonHistoryAddSequenceLocalText(gActions.moveName[gCurrentMove])
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetString
mov ecx, dword ptr [0xC674F4]
add esp, 0x8
push eax
call 0x53AE70
xor eax, eax
ret
ButtonHistoryAddSequenceTimeInterval(action[1], action[2], action[3])
ButtonHistoryAddSequenceTimeInterval(buttonTbl[1], buttonTbl[2], 1000000)
ButtonHistoryAddSequenceTimeInterval(buttonTbl[1], buttonTbl[2], 30, buttonTbl[3], buttonTbl[4], 30, buttonTbl[5], buttonTbl[6], 30)
ButtonHistoryAddSequenceTimeInterval(value[1], value[2], value[3])
sub esp, 0xC
push esi
push edi
mov edi, dword ptr [esp+0x18]
push edi
call 0x73AEA0
mov ecx, dword ptr [0xC674F4]
add esp, 0x4
xor esi, esi
test eax, eax
mov dword ptr [esp+0x10], eax
mov dword ptr [esp+0xC], ecx
jle 0x52
push ebx
push ebp
push esi
push edi
call LuaParam::GetInt
lea ebx, ptr [esi+0x2]
lea edx, ptr [ebx-0x1]
push edx
push edi
mov ebp, eax
call LuaParam::GetBool
push ebx
push edi
mov byte ptr [esp+0x28], al
call LuaParam::GetFloat
fmul st, qword ptr [0x900138]
add esp, 0x18
call 0x85C720
mov ecx, dword ptr [esp+0x14]
push 0xFFFFFFFF
push 0xFFFFFFFF
push eax
mov eax, dword ptr [esp+0x1C]
push eax
push ebp
call 0x53AEA0
add esi, 0x3
cmp esi, dword ptr [esp+0x18]
jl 0xFFFFFFB6
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0xC
ret
-- never used
sub esp, 0xC
push edi
mov edi, dword ptr [esp+0x14]
push edi
call 0x73AEA0
mov ecx, dword ptr [0xC674F4]
add esp, 0x4
test eax, eax
mov dword ptr [esp+0xC], eax
mov dword ptr [esp+0x8], ecx
jle 0x82
push ebx
push ebp
push esi
mov esi, 0x2
nop
lea edx, ptr [esi-0x2]
push edx
push edi
call LuaParam::GetInt
mov ebx, eax
lea eax, ptr [esi-0x1]
push eax
push edi
call LuaParam::GetFloat
fmul st, qword ptr [0x900138]
call 0x85C720
push esi
push edi
mov ebp, eax
call LuaParam::GetFloat
fmul st, qword ptr [0x900138]
call 0x85C720
lea ecx, ptr [esi+0x1]
push ecx
push edi
mov dword ptr [esp+0x30], eax
call LuaParam::GetFloat
fmul st, qword ptr [0x900138]
add esp, 0x20
call 0x85C720
mov edx, dword ptr [esp+0x10]
mov ecx, dword ptr [esp+0x14]
push eax
push edx
push ebp
push 0x0
push ebx
call 0x53AEA0
add esi, 0x4
lea eax, ptr [esi-0x2]
cmp eax, dword ptr [esp+0x18]
jl 0xFFFFFF92
pop esi
pop ebp
pop ebx
xor eax, eax
pop edi
add esp, 0xC
ret
-- never used
mov eax, dword ptr [esp+0x4]
push esi
mov esi, dword ptr [0xC674F4]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, esi
call 0x53AC70
xor eax, eax
pop esi
ret
ButtonHistoryClearSequence()
mov ecx, dword ptr [0xC674F4]
call 0x53AD00
xor eax, eax
ret
ButtonHistoryEnableActionTreeInput(false)
ButtonHistoryEnableActionTreeInput(true)
push ecx
mov eax, dword ptr [esp+0x8]
push esi
mov esi, dword ptr [0xC674F4]
push 0x0
push eax
call LuaParam::GetBool
mov byte ptr [esp+0xC], al
mov ecx, dword ptr [esp+0xC]
add esp, 0x8
push ecx
mov ecx, esi
call 0x53B0E0
xor eax, eax
pop esi
pop ecx
ret
-- never used
sub esp, 0x8
push esi
mov esi, dword ptr [esp+0x10]
push edi
mov edi, dword ptr [0xC674F4]
lea eax, ptr [esp+0xC]
push eax
lea ecx, ptr [esp+0xC]
push ecx
push 0x1
push esi
call LuaParam::GetInt
add esp, 0x8
push eax
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, edi
call 0x53ACC0
mov edx, dword ptr [esp+0x8]
push edx
push esi
call LuaParam::PushInt
mov eax, dword ptr [esp+0x14]
push eax
push esi
call LuaParam::PushBool
add esp, 0x10
pop edi
mov eax, 0x2
pop esi
add esp, 0x8
ret
ButtonHistoryIgnoreController(false)
ButtonHistoryIgnoreController(true)
push ecx
mov eax, dword ptr [esp+0x8]
push esi
mov esi, dword ptr [0xC674F4]
push 0x0
push eax
call LuaParam::GetBool
mov byte ptr [esp+0xC], al
mov ecx, dword ptr [esp+0xC]
add esp, 0x8
push ecx
mov ecx, esi
call 0x53B430
xor eax, eax
pop esi
pop ecx
ret
ButtonHistoryIgnoreSequence(16, 17, 10)
ButtonHistoryIgnoreSequence(16, 17, 18, 19, 10, 11, 14, 12, 13, 15, 7, 9, 8)
ButtonHistoryIgnoreSequence(16, 17, 20, 21, 10, 11, 12, 13, 8, 7, 14)
ButtonHistoryIgnoreSequence(16, 17, 20, 21, 11, 12, 13, 8, 7, 14)
push ebx
mov ebx, dword ptr [esp+0x8]
push ebp
push esi
push edi
push ebx
call 0x73AEA0
mov ebp, dword ptr [0xC674F4]
mov edi, eax
add esp, 0x4
xor esi, esi
test edi, edi
jle 0x1C
nop
push esi
push ebx
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, ebp
call 0x53AF30
add esi, 0x1
cmp esi, edi
jl 0xFFFFFFE9
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
ButtonHistorySetCallbackCorrectButton(F_CorrectButtonPressed)
mov ecx, dword ptr [0xC674F4]
call 0x53AE00
push eax
mov eax, dword ptr [esp+0x8]
push 0x0
push eax
call 0x5DA060
add esp, 0xC
xor eax, eax
ret
ButtonHistorySetCallbackFailed(F_FailedCallback)
mov ecx, dword ptr [0xC674F4]
call 0x53ADF0
push eax
mov eax, dword ptr [esp+0x8]
push 0x0
push eax
call 0x5DA060
add esp, 0xC
xor eax, eax
ret
ButtonHistorySetCallbackPassed(F_PassedCallback)
mov ecx, dword ptr [0xC674F4]
call 0x8B5470
push eax
mov eax, dword ptr [esp+0x8]
push 0x0
push eax
call 0x5DA060
add esp, 0xC
xor eax, eax
ret
-- never used
push esi
mov esi, dword ptr [0xC674F4]
push edi
mov edi, dword ptr [esp+0xC]
push 0x1
push edi
call LuaParam::GetInt
add esp, 0x8
push eax
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, esi
call 0x53ABD0
pop edi
xor eax, eax
pop esi
ret
ButtonHistorySetSequenceTime(10)
ButtonHistorySetSequenceTime(5000)
mov eax, dword ptr [esp+0x4]
push esi
mov esi, dword ptr [0xC674F4]
push 0x0
push eax
call LuaParam::GetFloat
fmul st, qword ptr [0x900138]
add esp, 0x8
call 0x85C720
push eax
mov ecx, esi
call 0x53ADC0
xor eax, eax
pop esi
ret
-- never used
push esi
mov esi, dword ptr [0xC674F4]
push edi
mov edi, dword ptr [esp+0xC]
push 0x1
push edi
call LuaParam::GetFloat
fstp dword ptr [esp+0x4], st
add esp, 0x4
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, esi
call 0x53ABB0
pop edi
xor eax, eax
pop esi
ret
CLIENT
Calls a function from the context of another script. The script can be a DSL script object, the name of a running script (like "main.lua"), or nil for no script.
Returns all results from the function.
CameraAllowChange(false)
CameraAllowChange(true)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetBool
movzx ecx, al
add esp, 0x8
mov dword ptr [0xC3CE0C], ecx
mov dword ptr [0xC3CED8], 0x0
xor eax, eax
ret
CameraAllowScriptedChange(false)
CameraAllowScriptedChange(true)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetBool
add esp, 0x8
test al, al
setnz cl
mov byte ptr [0xC3CE10], cl
mov dword ptr [0xC3CED8], 0x0
xor eax, eax
ret
CameraClearRotationLimit()
mov eax, dword ptr [0xC3CE90]
test eax, eax
mov byte ptr [0xC3CE8C], 0x0
jz 0x1A
push 0xC3CE90
push eax
call 0x4657E0
add esp, 0x8
mov dword ptr [0xC3CE90], 0x0
xor eax, eax
ret
elseif not CameraDebugActive() then
if CameraDebugActive() then
if F_IsButtonPressedWithDelayCheck(10, 1) and not CameraDebugActive() then
cmp dword ptr [0xC3CF00], 0x0
mov ecx, dword ptr [esp+0x4]
setnz al
push eax
push ecx
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
ret
CameraDefaultFOV()
mov ecx, 0xC3CC68
mov byte ptr [0xC3CF82], 0x0
call 0x4F1660
mov eax, 0x1
ret
CameraFade(-1, 0)
CameraFade(-1, 1)
CameraFade(0, 0)
CameraFade(0, 1)
CameraFade(0, 2000)
CameraFade(0, 250)
CameraFade(1, 0)
CameraFade(1, 1000)
CameraFade(1, 2000)
CameraFade(1, 500)
CameraFade(10, 0)
CameraFade(100, 0)
CameraFade(1000, 0)
CameraFade(1000, 1)
CameraFade(125, 0)
CameraFade(125, 1)
CameraFade(1500, 0)
CameraFade(200, 1)
CameraFade(2000, 0)
CameraFade(250, 0)
CameraFade(250, 1)
CameraFade(3000, 0)
CameraFade(400, 0)
CameraFade(50, 0)
CameraFade(500, 0)
CameraFade(500, 1)
CameraFade(501, 1)
CameraFade(600, 0)
CameraFade(600, 1)
CameraFade(700, 0)
CameraFade(700, 1)
CameraFade(800, 0)
CameraFade(900, 1)
CameraFade(FADE_IN_TIME, 1)
CameraFade(FADE_OUT_TIME, 0)
CameraFade(fadeInTime, 1)
CameraFade(fadeOutTime, 0)
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push 0x0
push esi
call LuaParam::GetFloat
fdiv st, qword ptr [0x900138]
push 0x1
push esi
fstp dword ptr [esp+0x14], st
call LuaParam::GetInt
movsx eax, ax
add esp, 0x10
sub eax, 0x0
pop esi
jz 0x24
sub eax, 0x1
jnz 0x4D
fldz
fcomp st, dword ptr [esp]
fnstsw ax
test ah, 0x41
jnz 0xD
mov eax, dword ptr [0x20C8910]
fld st, dword ptr [eax+0x1C]
fstp dword ptr [esp], st
push 0x0
push 0x0
jmp 0x1E
fldz
fcomp st, dword ptr [esp]
fnstsw ax
test ah, 0x41
jnz 0xE
mov ecx, dword ptr [0x20C8910]
fld st, dword ptr [ecx+0x18]
fstp dword ptr [esp], st
push 0x0
push 0x1
fld st, dword ptr [esp+0x8]
push ecx
mov ecx, 0xC3CC68
fstp dword ptr [esp], st
call 0x4F1AD0
xor eax, eax
pop ecx
ret
-- never used
call 0x43AD50
xor al, al
mov byte ptr [0xC3CD2C], al
mov byte ptr [0xC3CD2D], al
mov byte ptr [0xC3CD2E], al
mov byte ptr [0xC3CD2F], 0xFF
xor eax, eax
ret
-- never used
cmp byte ptr [0xC1870E], 0x0
jz 0x12
push 0x9244E8
call 0x43BEE0
add esp, 0x4
xor eax, eax
ret
push 0x9244E0
call 0x43BEE0
add esp, 0x4
xor eax, eax
ret
-- never used
mov al, 0x2
mov byte ptr [0xC3CD2C], al
mov byte ptr [0xC3CD2D], al
mov byte ptr [0xC3CD2E], al
mov byte ptr [0xC3CD2F], 0xFF
xor eax, eax
ret
-- never used
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x8
push 0x1
push 0x1
push ecx
mov ecx, esp
push eax
mov dword ptr [ecx], 0x0
call 0x5C28D0
add esp, 0x10
test eax, eax
jz 0x17
push eax
mov ecx, 0xC3CC68
call 0x4F3680
mov ecx, 0xC3CC68
call 0x4F2B60
xor eax, eax
ret
CameraFollowPed(gPlayer)
CameraFollowPed(shared.gControllerPed)
CameraFollowPed(shared.PedLineupTable[shared.g_currentCreatedPed].handle)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
jz 0x17
push eax
mov ecx, 0xC3CC68
call 0x4F3680
mov ecx, 0xC3CC68
call 0x4F2B60
xor eax, eax
ret
elseif not gInWidescreen and CameraGet169Mode() and gHudComponent == 14 then
elseif not gInWidescreen and CameraGet169Mode() then
if CameraGet169Mode() and gHudComponent == 14 then
if CameraGet169Mode() then
if gInWidescreen and not CameraGet169Mode() then
movzx eax, byte ptr [0xC1870E]
mov ecx, dword ptr [esp+0x4]
push eax
push ecx
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
ret
if CameraGetActive() == 2 then
if CameraGetActive() ~= 4 and CameraGetActive() ~= 1 then
if CameraGetActive() ~= 4 then
mov eax, dword ptr [0xC3CCF8]
mov ecx, dword ptr [esp+0x4]
push eax
push ecx
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
ret
default_FOV = CameraGetFOV()
local oldFOV = CameraGetFOV()
push ecx
cmp dword ptr [0xC3CDD4], 0x0
jnz 0xA
fld st, dword ptr [0xC3CD04]
jmp 0x8
fld st, dword ptr [0xC3CDD0]
mov eax, dword ptr [esp+0x8]
fstp dword ptr [esp], st
fld st, dword ptr [esp]
push ecx
fstp dword ptr [esp], st
push eax
call LuaParam::PushFloat
mov eax, 0x1
add esp, 0xC
ret
CLIENT
Returns the rotation of the camera in radians. May take an optional rotation order.
CLIENT
Returns the position of the camera, and a position in front of the camera. The distance argument defines how far in front the second position is, and it will default to 1.
CameraHoldFadeout(false)
CameraHoldFadeout(true)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetBool
mov byte ptr [0xC3CE11], al
add esp, 0x8
xor eax, eax
ret
-- never used
sub esp, 0x4C
push esi
mov esi, dword ptr [esp+0x54]
push 0x1
push esi
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, 0xBC5E7C
call 0x6D6450
mov ecx, eax
call 0x6D59B0
mov ecx, dword ptr [eax]
mov edx, dword ptr [eax+0x4]
mov eax, dword ptr [eax+0x8]
mov dword ptr [esp+0x8], ecx
fld st, dword ptr [esp+0x8]
fstp dword ptr [esp+0x18], st
mov dword ptr [esp+0xC], edx
fld st, dword ptr [esp+0xC]
mov dword ptr [esp+0x10], eax
fstp dword ptr [esp+0x1C], st
push ecx
fld st, dword ptr [esp+0x14]
lea ecx, ptr [esp+0x1C]
fstp dword ptr [esp+0x24], st
fld st, dword ptr [0x900BFC]
fstp dword ptr [esp], st
push ecx
mov ecx, 0xC3CC68
call 0x4F13D0
test eax, eax
jz 0xF2
mov edx, dword ptr [0xC3CCF4]
push edx
call 0x6C82F0
push eax
call 0x6C9A90
fld st, dword ptr [eax+0x24]
add eax, 0x24
fstp dword ptr [esp+0x10], st
fld st, dword ptr [eax+0x4]
push 0x0
fstp dword ptr [esp+0x18], st
push 0x0
fld st, dword ptr [eax+0x8]
push 0x1
fstp dword ptr [esp+0x24], st
lea eax, ptr [esp+0x18]
fldz
push eax
fst dword ptr [esp+0x40], st
lea ecx, ptr [esp+0x40]
fst dword ptr [esp+0x44], st
push ecx
fst dword ptr [esp+0x4C], st
lea edx, ptr [esp+0x24]
fst dword ptr [esp+0x54], st
push edx
fst dword ptr [esp+0x5C], st
lea eax, ptr [esp+0x38]
fstp dword ptr [esp+0x60], st
push eax
fld st, dword ptr [0x9009B8]
mov dword ptr [esp+0x58], 0x0
fstp dword ptr [esp+0x70], st
call 0x461EA0
add esp, 0x24
test al, al
jz 0x4D
push 0x1
push esi
call LuaParam::PushBool
mov eax, dword ptr [esp+0x3C]
add esp, 0x8
test eax, eax
jz 0x6A
cmp eax, dword ptr [0xC2A8E8]
jnz 0x1A
lea ecx, ptr [esp+0x34]
push ecx
push eax
call 0x4657E0
add esp, 0x8
mov eax, 0x1
pop esi
add esp, 0x4C
ret
lea edx, ptr [esp+0x34]
push edx
push eax
call 0x4657E0
add esp, 0x8
mov eax, 0x1
pop esi
add esp, 0x4C
ret
CLIENT
Returns true if the game is in widescreen / cinematic mode. Useful when wanting to check if CameraSetWidescreen was used.
CameraLookAtObject(algie, 2, true, 1.4)
CameraLookAtObject(boxer, 2, true)
CameraLookAtObject(cop1, 2, true)
CameraLookAtObject(Edna, 2, true, 0.6)
CameraLookAtObject(EnemyTable[1].handle, 2, true)
CameraLookAtObject(frMidget01, 2, false)
CameraLookAtObject(frMidget02, 2, false)
CameraLookAtObject(gCannonNerd, 2, true)
CameraLookAtObject(gCrazy01, 2, false)
CameraLookAtObject(gDavis, 2, true)
CameraLookAtObject(girlfriend, 2, true)
CameraLookAtObject(gPlayer, 2, false)
CameraLookAtObject(gPlayer, 2, true)
CameraLookAtObject(gPlayer, 2, true, 1)
CameraLookAtObject(gPlayer, 3, false, 0.5)
CameraLookAtObject(gPlayer, 3, false, 1.5)
CameraLookAtObject(gPlayer, 3, true)
CameraLookAtObject(gPlayer, 3, true, 0.5)
CameraLookAtObject(gPlayer, 3, true, 0.75)
CameraLookAtObject(gPlayer, 3, true, 0.85)
CameraLookAtObject(gPlayer, 3, true, 1)
CameraLookAtObject(gPlayer, 3, true, 1.5)
CameraLookAtObject(idBurton, 2, true, 1)
CameraLookAtObject(idCop, 2, false)
CameraLookAtObject(idRussell, 2, true)
CameraLookAtObject(iGreaser01, 2, false)
CameraLookAtObject(L_PedGetIDByIndex("gymjocks", 1), 2, true)
CameraLookAtObject(manager, 2, false)
CameraLookAtObject(pedChad.id, 2, true, 0.3)
CameraLookAtObject(pedCutThad.id, 2, false, 1)
CameraLookAtObject(pedEunice.id, 2, true, 0.5)
CameraLookAtObject(pedGord, 2, true)
CameraLookAtObject(pedJohnny.id, 2, false, 1)
CameraLookAtObject(pedRussell.id, 2, false, 0.7)
CameraLookAtObject(shopkeep, 2, false, 0.5)
CameraLookAtObject(spud_nerd, 2, true)
CameraLookAtObject(tblCinematicScript[nCurrentStage][index].targetParam, 2, tblCinematicScript[nCurrentStage][index].snap)
CameraLookAtObject(tblCutscenePed.lola.id, 2, true)
CameraLookAtObject(teacher, 2, false)
CameraLookAtObject(teacher, 2, true)
push ecx
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x14]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetInt
push 0x2
push esi
mov ebx, eax
call LuaParam::GetBool
fldz
push esi
fstp dword ptr [esp+0x2C], st
movzx ebp, al
call 0x73AEA0
add esp, 0x1C
cmp eax, 0x4
jnz 0x11
push 0x3
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x18], st
add esp, 0x8
fld st, dword ptr [esp+0x10]
push ecx
fstp dword ptr [esp], st
push ebp
push ebx
push edi
push ecx
mov eax, esp
mov ecx, 0xC3CC68
mov dword ptr [eax], 0x4
call 0x4F3590
mov ecx, eax
call 0x507750
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
CameraLookAtPath(PATH._1_02_1CAM_LOOKAT, true)
CameraLookAtPath(PATH._1_02_2CAM_LOOKAT, true)
CameraLookAtPath(PATH._1_02_3CAM_LOOKAT, true)
CameraLookAtPath(PATH._1_09_NISINTROCAM2_LOOK, true)
CameraLookAtPath(PATH._1_09_NISINTROCAM_LOOK, true)
CameraLookAtPath(PATH._1_09_NISWIDE, true)
CameraLookAtPath(PATH._2_S05_CINDIN2, true)
CameraLookAtPath(PATH._3_05_NORTONNISCAMLOOKAT, true)
CameraLookAtPath(PATH._4_02_NIS_CAM_LOOK, true)
CameraLookAtPath(PATH._5_05_CINPOTTYTARGET, true)
CameraLookAtPath(PATH._5_09_AFTERTAGLOOK, true)
CameraLookAtPath(PATH._5_09_TowerCamLook, false)
CameraLookAtPath(PATH._5_09_TowerCamLook, true)
CameraLookAtPath(PATH._6_03_CAM_GDORMLOOK, true)
CameraLookAtPath(PATH._6_03_CAM_GYMLOOK, true)
CameraLookAtPath(PATH._6_03_CAM_HARRLOOK, true)
CameraLookAtPath(PATH._6_03_CAM_LIBLOOK, true)
CameraLookAtPath(PATH._C3_CAMERALOOKAT, true)
CameraLookAtPath(PATH._C3_CAMERALOOKAT2, true)
CameraLookAtPath(PATH._C3T_LOOKAT, true)
CameraLookAtPath(PATH._C4_CAMLOOKAT, true)
CameraLookAtPath(PATH._C5_INTROLOOKAT, true)
CameraLookAtPath(PATH._C5_INTROLOOKATC02, true)
CameraLookAtPath(PATH._C6_CAMERAFOCUS, true)
CameraLookAtPath(PATH._CHAPT4TRANS_CAMERALOOKAT, true)
CameraLookAtPath(PATH._HACKY_INTROCAMLOOKAT, true)
CameraLookAtPath(PATH._HACKY_JOCKPLAYLOOKAT, true)
CameraLookAtPath(PATH._INTROLOOKAT, true)
CameraLookAtPath(PATH._SCO_INTROLOOKPATH, true)
CameraLookAtPath(pathlook, true)
CameraLookAtPath(tblCinematicScript[nCurrentStage][index].targetParam, tblCinematicScript[nCurrentStage][index].snap)
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetInt
mov ecx, dword ptr [0xD13CB4]
add esp, 0x8
push eax
call 0x5ED3A0
mov esi, eax
test esi, esi
jz 0x2C
push 0x1
push edi
call LuaParam::GetBool
movzx eax, al
add esp, 0x8
push eax
push esi
push ecx
mov eax, esp
mov ecx, 0xC3CC68
mov dword ptr [eax], 0x4
call 0x4F3590
mov ecx, eax
call 0x507790
pop edi
xor eax, eax
pop esi
ret
CameraLookAtPathSetSpeed(0.01, 0, 0)
CameraLookAtPathSetSpeed(1, 0, 2)
CameraLookAtPathSetSpeed(1, 1, 1)
CameraLookAtPathSetSpeed(1.5, 1.5, 1.5)
CameraLookAtPathSetSpeed(1.8, 1.8, 1.8)
CameraLookAtPathSetSpeed(13, 13, 13)
CameraLookAtPathSetSpeed(15, 15, 15)
CameraLookAtPathSetSpeed(2, 2, 2)
CameraLookAtPathSetSpeed(2.3, 2.3, 0.75)
CameraLookAtPathSetSpeed(2.8, 2.8, 2.8)
CameraLookAtPathSetSpeed(20, 20, 20)
CameraLookAtPathSetSpeed(22, 13, 19)
CameraLookAtPathSetSpeed(5, 5, 5)
CameraLookAtPathSetSpeed(8, 8, 8)
CameraLookAtPathSetSpeed(tblCinematicScript[nCurrentStage][index].speedMax, tblCinematicScript[nCurrentStage][index].speedEaseIn, tblCinematicScript[nCurrentStage][index].speedEaseOut)
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x4], st
mov eax, esp
mov ecx, 0xC3CC68
mov dword ptr [eax], 0x4
call 0x4F3590
mov ecx, eax
call 0x5077C0
push 0x1
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x4], st
mov eax, esp
mov ecx, 0xC3CC68
mov dword ptr [eax], 0x4
call 0x4F3590
mov ecx, eax
call 0x5077E0
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x4], st
mov eax, esp
mov ecx, 0xC3CC68
mov dword ptr [eax], 0x4
call 0x4F3590
mov ecx, eax
call 0x507800
xor eax, eax
pop esi
ret
CameraLookAtPlayer(false, 1)
CameraLookAtPlayer(true)
CameraLookAtPlayer(true, 0.41999966)
CameraLookAtPlayer(true, 0.5)
CameraLookAtPlayer(true, 1)
CameraLookAtPlayer(true, gGameCams[camNo].offset)
push ecx
fldz
push esi
mov esi, dword ptr [esp+0xC]
fstp dword ptr [esp+0x4], st
push esi
call 0x73AEA0
add esp, 0x4
cmp eax, 0x2
jnz 0x11
push 0x1
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0xC], st
add esp, 0x8
fld st, dword ptr [esp+0x4]
push ecx
fstp dword ptr [esp], st
push 0x0
push esi
call LuaParam::GetBool
movzx eax, al
add esp, 0x8
push eax
push ecx
mov eax, esp
push 0x0
push ecx
mov dword ptr [eax], 0x3
mov eax, esp
mov ecx, 0xC3CC68
mov dword ptr [eax], 0x4
call 0x4F3590
mov ecx, eax
call 0x507750
xor eax, eax
pop esi
pop ecx
ret
CameraLookAtXYZ(-19.009794, -50.68135, 2.857111, true)
CameraLookAtXYZ(-3.6803718, -107.32619, 2.251011, true)
CameraLookAtXYZ(-3.8834343, -107.21885, 2.15487, true)
CameraLookAtXYZ(-419.34927, 366.21942, 82.54457, true)
CameraLookAtXYZ(-422.43277, 364.42984, 82.48458, true)
CameraLookAtXYZ(-426.56998, 368.598, 82.284615, true)
CameraLookAtXYZ(-463.79413, -44.985256, 11.479783, true)
CameraLookAtXYZ(-52.7216, -73.6623, 6.2646, false)
CameraLookAtXYZ(-528.04224, 385.786, 15.449584, true)
CameraLookAtXYZ(-531.1897, 375.2763, 15.069274, true)
CameraLookAtXYZ(-536.29114, 394.74268, 15.509263, true)
CameraLookAtXYZ(-537.4361, 395.07306, 15.68962, true)
CameraLookAtXYZ(-574.80206, 391.85327, 1.5672069, true)
CameraLookAtXYZ(-595.66345, 325.33215, 35.663586, true)
CameraLookAtXYZ(-610.51184, -60.444046, 60.750626, true)
CameraLookAtXYZ(-617.73016, -60.631695, 60.147766, true)
CameraLookAtXYZ(-618.43317, -60.148853, 60.6069, true)
CameraLookAtXYZ(-618.5461, -59.794083, 60.806877, true)
CameraLookAtXYZ(-619.46704, -60.716175, 60.486973, true)
CameraLookAtXYZ(-620.81586, -62.866936, 60.866943, true)
CameraLookAtXYZ(-647.591, -60.377666, 56.458607, true)
CameraLookAtXYZ(-649.44366, 258.90173, 2.4264703, false)
CameraLookAtXYZ(-650.4531, 260.8984, 2.4264703, false)
CameraLookAtXYZ(-652.78815, 128.9068, 4.489501, false)
CameraLookAtXYZ(-654.28815, 128.9068, 3.989501, true)
CameraLookAtXYZ(-654.78815, 128.9068, 4.489501, false)
CameraLookAtXYZ(-656.0724, 82.43323, 1.4116743, false)
CameraLookAtXYZ(-656.2133, 82.9023, 1.4116743, false)
CameraLookAtXYZ(-697.56714, 373.25122, 295.77036, true)
CameraLookAtXYZ(-712.10333, 377.20825, 296.33905, true)
CameraLookAtXYZ(-726.3282, 18.083551, 1.435173, true)
CameraLookAtXYZ(-730.2934, 36.06182, -1.3129523, true)
CameraLookAtXYZ(-760.4742, 78.22133, 1.4042269, true)
CameraLookAtXYZ(-769.623, 81.1636, 7.4702454, true)
CameraLookAtXYZ(-792.30035, 68.92447, 10.46345, true)
CameraLookAtXYZ(113.09775, -513.05524, 4.421984, true)
CameraLookAtXYZ(157.27258, 21.92584, 7.0297775, true)
CameraLookAtXYZ(157.36598, 21.6731, 7.4697948, true)
CameraLookAtXYZ(162.297, 438.813, 17.4426, true)
CameraLookAtXYZ(215.9877, -31.088358, 7.5356026, true)
CameraLookAtXYZ(249.25732, -72.784676, 9.223299, true)
CameraLookAtXYZ(289.518, -72.9983, 7.98641, true)
CameraLookAtXYZ(45.29586, -567.0649, 33.356407, true)
CameraLookAtXYZ(501.63803, -290.18976, 3.1430483, true)
CameraLookAtXYZ(527.70044, -69.73396, 5.2370296, true)
CameraLookAtXYZ(568.883, -112.568, 6, false)
CameraLookAtXYZ(69.05131, -89.33579, 6.0425286, true)
CameraLookAtXYZ(72.62771, -544.7004, 4.3949227, true)
CameraLookAtXYZ(bx, by, bz, true)
CameraLookAtXYZ(camEntry.x, camEntry.y, camEntry.z, true)
CameraLookAtXYZ(camerasTable[1].x, camerasTable[1].y, camerasTable[1].z, true)
CameraLookAtXYZ(camerasTable[5].x, camerasTable[5].y, camerasTable[5].z, true)
CameraLookAtXYZ(camerasTable[6].x, camerasTable[6].y, camerasTable[6].z, true)
CameraLookAtXYZ(cx, cy, cz, true)
CameraLookAtXYZ(dx, dy, dz, false)
CameraLookAtXYZ(fx, fy, fz + 1, true)
CameraLookAtXYZ(fx, fy, fz, false)
CameraLookAtXYZ(fx, fy, fz, true)
CameraLookAtXYZ(lookX, lookY, lookZ + tblCinematicScript[nCurrentStage][index].offset, tblCinematicScript[nCurrentStage][index].snap)
CameraLookAtXYZ(lookX, lookY, lookZ, tblCinematicScript[nCurrentStage][index].snap)
CameraLookAtXYZ(lx, ly, lz, true)
CameraLookAtXYZ(mx, my, mz, true)
CameraLookAtXYZ(tblEntry.idx, tblEntry.idy, tblEntry.idz, true)
CameraLookAtXYZ(tx, ty, tz, true)
CameraLookAtXYZ(x, y, z - 3, true)
CameraLookAtXYZ(x, y, z, false)
CameraLookAtXYZ(x, y, z, true)
sub esp, 0x18
push esi
mov esi, dword ptr [esp+0x20]
push 0x0
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0xC], st
push 0x1
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x18], st
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x24], st
fld st, dword ptr [esp+0x1C]
push 0x3
fstp dword ptr [esp+0x2C], st
push esi
fld st, dword ptr [esp+0x28]
fstp dword ptr [esp+0x34], st
fld st, dword ptr [esp+0x2C]
fstp dword ptr [esp+0x38], st
call LuaParam::GetBool
movzx eax, al
add esp, 0x20
push eax
lea ecx, ptr [esp+0x14]
push ecx
push ecx
mov eax, esp
mov ecx, 0xC3CC68
mov dword ptr [eax], 0x4
call 0x4F3590
mov ecx, eax
call 0x507700
xor eax, eax
pop esi
add esp, 0x18
ret
-- never used
mov ecx, 0xC3CC68
call 0x4F3900
xor eax, eax
ret
CameraReset()
mov ecx, 0xC3CC68
call 0x4F2B60
xor eax, eax
ret
CameraResetToPosition(137.13, 477.81, 9.44, false)
sub esp, 0x10
push esi
mov esi, dword ptr [esp+0x18]
push 0x0
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x10], st
push 0x1
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x1C], st
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x28], st
push 0x3
push esi
call LuaParam::GetBool
mov ecx, dword ptr [esp+0x28]
mov edx, dword ptr [esp+0x2C]
mov byte ptr [esp+0x24], al
mov eax, dword ptr [esp+0x24]
add esp, 0x20
push eax
sub esp, 0xC
mov eax, esp
mov dword ptr [eax], ecx
mov ecx, dword ptr [esp+0x20]
mov dword ptr [eax+0x4], edx
mov dword ptr [eax+0x8], ecx
mov ecx, 0xC3CC68
call 0x4F2BD0
xor eax, eax
pop esi
add esp, 0x10
ret
-- never used
sub esp, 0x18
mov eax, dword ptr [esp+0x1C]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, 0xBC5E7C
call 0x6D6450
mov ecx, eax
call 0x6D59B0
mov ecx, dword ptr [eax]
mov dword ptr [esp], ecx
mov edx, dword ptr [eax+0x4]
mov dword ptr [esp+0x4], edx
mov eax, dword ptr [eax+0x8]
mov dword ptr [esp+0x8], eax
mov eax, dword ptr [0xC3CE14]
test eax, eax
jz 0x41
mov ecx, dword ptr [eax+0x14]
test ecx, ecx
jz 0x7
lea eax, ptr [ecx+0x30]
jmp 0x5
add eax, 0x4
push eax
lea ecx, ptr [esp+0x4]
push ecx
lea edx, ptr [esp+0x14]
push edx
call 0x414B70
mov ecx, dword ptr [esp+0x18]
mov edx, dword ptr [esp+0x1C]
mov eax, esp
mov dword ptr [eax], ecx
mov ecx, dword ptr [esp+0x20]
mov dword ptr [eax+0x4], edx
mov dword ptr [eax+0x8], ecx
mov ecx, 0xC3CC68
call 0x4F2B90
xor eax, eax
add esp, 0x18
ret
-- never used
sub esp, 0xC
push esi
mov esi, dword ptr [esp+0x14]
push 0x0
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0xC], st
push 0x1
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x18], st
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x24], st
mov ecx, dword ptr [esp+0x1C]
mov edx, dword ptr [esp+0x20]
add esp, 0xC
mov eax, esp
mov dword ptr [eax], ecx
mov ecx, dword ptr [esp+0x18]
mov dword ptr [eax+0x4], edx
mov dword ptr [eax+0x8], ecx
mov ecx, 0xC3CC68
call 0x4F2B90
xor eax, eax
pop esi
add esp, 0xC
ret
CameraReturnToPlayer()
CameraReturnToPlayer(false)
CameraReturnToPlayer(false, false, px + 2, py + 2, pz + 1.5)
CameraReturnToPlayer(true)
CameraReturnToPlayer(true, true)
sub esp, 0x1C
fldz
push ebx
push esi
fst dword ptr [esp+0xC], st
mov esi, dword ptr [esp+0x28]
fst dword ptr [esp+0x10], st
push edi
fstp dword ptr [esp+0x18], st
push esi
mov edi, 0x1
mov byte ptr [esp+0x13], 0x0
xor bl, bl
call 0x73AEA0
add esp, 0x4
cmp eax, edi
jl 0x1E
push 0x0
push esi
call LuaParam::GetBool
push 0x0
push 0x1
push esi
movzx edi, al
call LuaParam::GetBool ; optional
add esp, 0x14
mov byte ptr [esp+0xF], al
push esi
call 0x73AEA0
add esp, 0x4
cmp eax, 0x5
jnz 0x2D
push 0xBCC564
push 0x2
lea eax, ptr [esp+0x24]
push esi
push eax
mov bl, 0x1
call LuaParam::GetVector ; optional
mov ecx, dword ptr [eax]
mov edx, dword ptr [eax+0x4]
mov eax, dword ptr [eax+0x8]
add esp, 0x10
mov dword ptr [esp+0x10], ecx
mov dword ptr [esp+0x14], edx
mov dword ptr [esp+0x18], eax
cmp byte ptr [esp+0xF], 0x0
jz 0xA1
push 0xBCC564
push 0xBD0FEC
call 0x4305F0
add esp, 0x8
test al, al
jz 0x87
push 0xAE96C8
push 0xBD0FEC
call 0x4305F0
add esp, 0x8
test al, al
jz 0x6D
push 0x0
mov ecx, 0xC3CC68
call 0x4F3490
test edi, edi
setnz cl
push 0x0
push 0x0
push ecx
push 0x0
push ecx
mov eax, esp
mov ecx, 0xC3CC68
mov dword ptr [eax], 0x1
call 0x4F2C20
push 0x0
mov ecx, 0xC3CC68
call 0x4F3490
mov edx, dword ptr [0xBD0FEC]
mov ecx, dword ptr [0xBD0FF0]
push 0x0
sub esp, 0xC
mov eax, esp
mov dword ptr [eax], edx
mov edx, dword ptr [0xBD0FF4]
mov dword ptr [eax+0x4], ecx
mov ecx, 0xC3CC68
mov dword ptr [eax+0x8], edx
call 0x4F2BD0
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x1C
ret
test bl, bl
jz 0x7D
lea eax, ptr [esp+0x10]
push 0xBCC564
push eax
call 0x4305F0
add esp, 0x8
test al, al
jz 0x67
push 0x0
mov ecx, 0xC3CC68
call 0x4F3490
test edi, edi
setnz cl
push 0x0
push 0x0
push ecx
push 0x0
push ecx
mov eax, esp
mov ecx, 0xC3CC68
mov dword ptr [eax], 0x1
call 0x4F2C20
push 0x0
mov ecx, 0xC3CC68
call 0x4F3490
mov edx, dword ptr [esp+0x10]
mov ecx, dword ptr [esp+0x14]
push 0x0
sub esp, 0xC
mov eax, esp
mov dword ptr [eax], edx
mov edx, dword ptr [esp+0x28]
mov dword ptr [eax+0x4], ecx
mov ecx, 0xC3CC68
mov dword ptr [eax+0x8], edx
call 0x4F2BD0
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x1C
ret
test edi, edi
jz 0xF
cmp dword ptr [0xC3CCF8], 0x1
jnz 0x6
mov bl, 0x1
jmp 0x4
xor bl, bl
push 0x0
mov ecx, 0xC3CC68
call 0x4F3490
test edi, edi
setnz al
push 0x0
push 0x0
push eax
push 0x0
push ecx
mov eax, esp
mov ecx, 0xC3CC68
mov dword ptr [eax], 0x1
call 0x4F2C20
push 0x0
mov ecx, 0xC3CC68
call 0x4F3490
test bl, bl
jz 0xC
mov ecx, 0xC3CC68
call 0x4F2B60
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1C
ret
CameraSetActive(1)
CameraSetActive(1, 0)
CameraSetActive(1, 0.5, false)
CameraSetActive(1, 100, false)
CameraSetActive(13)
CameraSetActive(13, 0.5, false)
CameraSetActive(14, 0, false)
CameraSetActive(2)
sub esp, 0x8
push esi
mov esi, dword ptr [esp+0x10]
push edi
push 0x0
push esi
call LuaParam::GetInt
fldz
push esi
fstp dword ptr [esp+0x18], st
mov edi, eax
mov byte ptr [esp+0x14], 0x1
call 0x73AEA0
add esp, 0xC
cmp eax, 0x1
jle 0x11
push 0x1
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x14], st
add esp, 0x8
push esi
call 0x73AEA0
add esp, 0x4
cmp eax, 0x2
jle 0x11
push 0x2
push esi
call LuaParam::GetBool
add esp, 0x8
mov byte ptr [esp+0x8], al
mov eax, dword ptr [esp+0x8]
fld st, dword ptr [esp+0xC]
push 0x0
push 0x0
push eax
call 0x85C720
push eax
push edi
mov ecx, 0xC3CC68
call 0x4F2C20
pop edi
xor eax, eax
pop esi
add esp, 0x8
ret
-- never used
sub esp, 0x18
push esi
lea ecx, ptr [esp+0x4]
call 0x4F4DE0
mov eax, dword ptr [0xC1AEA8]
mov esi, dword ptr [esp+0x20]
push 0x0
push esi
mov dword ptr [esp+0x10], eax
mov dword ptr [esp+0xC], eax
call LuaParam::GetString
add esp, 0x8
test eax, eax
jz 0x17
push 0x0
push esi
call LuaParam::GetString
push eax
call 0x684000
add esp, 0xC
mov dword ptr [esp+0x14], eax
push esi
call 0x73AEA0
add esp, 0x4
cmp eax, 0x1
jle 0x11
push 0x1
push esi
call LuaParam::GetInt
add esp, 0x8
mov dword ptr [esp+0xC], eax
push esi
call 0x73AEA0
add esp, 0x4
cmp eax, 0x2
jle 0x26
push 0x2
push esi
call LuaParam::GetInt
add esp, 0x8
test eax, eax
jz 0x17
push 0x2
push esi
call LuaParam::GetString
push eax
call 0x4F56B0
add esp, 0xC
mov dword ptr [esp+0x18], eax
push esi
call 0x73AEA0
add esp, 0x4
cmp eax, 0x3
jle 0x32
push 0x3
push esi
call LuaParam::GetInt
add esp, 0x8
test eax, eax
jz 0x23
push ecx
mov eax, esp
push 0x3
push esi
mov dword ptr [eax], 0x2
call LuaParam::GetInt
add esp, 0x8
push eax
call 0x5C7380
add esp, 0x8
mov dword ptr [esp+0x4], eax
push esi
call 0x73AEA0
add esp, 0x4
cmp eax, 0x4
jle 0x32
push 0x4
push esi
call LuaParam::GetInt
add esp, 0x8
test eax, eax
jz 0x23
push ecx
mov eax, esp
push 0x4
push esi
mov dword ptr [eax], 0x2
call LuaParam::GetInt
add esp, 0x8
push eax
call 0x5C7380
add esp, 0x8
mov dword ptr [esp+0x8], eax
push esi
call 0x73AEA0
add esp, 0x4
cmp eax, 0x5
jle 0x16
push 0x5
push esi
call LuaParam::GetInt
add esp, 0x8
test eax, eax
setnz al
mov byte ptr [esp+0x10], al
push esi
call 0x73AEA0
add esp, 0x4
cmp eax, 0x6
jle 0x16
push 0x6
push esi
call LuaParam::GetInt
add esp, 0x8
test eax, eax
setnz cl
mov byte ptr [esp+0x11], cl
mov ecx, dword ptr [0xC3CFC0]
push 0x0
push 0x1
push 0x1
lea edx, ptr [esp+0x10]
push edx
call 0x4F6D40
xor eax, eax
pop esi
add esp, 0x18
ret
-- never used
xor eax, eax
ret
CameraSetFOV(20)
CameraSetFOV(25)
CameraSetFOV(30)
CameraSetFOV(35)
CameraSetFOV(40)
CameraSetFOV(50)
CameraSetFOV(60)
CameraSetFOV(65)
CameraSetFOV(70)
CameraSetFOV(75)
CameraSetFOV(80)
CameraSetFOV(90)
CameraSetFOV(default_FOV)
CameraSetFOV(race.FOV)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetFloat
fstp dword ptr [0xC3CD04], st
mov eax, 0x1
add esp, 0x8
mov dword ptr [0xC3CDD4], 0x0
mov byte ptr [0xC3CF82], al
ret
CameraSetHeading(180)
xor eax, eax
ret
-- never used
push ecx
mov eax, dword ptr [esp+0x8]
push 0x0
push eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x8], st
fld st, dword ptr [esp+0x8]
mov ecx, dword ptr [0xC3CCF4]
add esp, 0x4
fstp dword ptr [esp], st
push ecx
call 0x6C8820
xor eax, eax
add esp, 0xC
ret
CameraSetPath(camEntry.cameraPath, true)
CameraSetPath(camerasTable[1].cameraPath, true)
CameraSetPath(camerasTable[5].cameraPath, true)
CameraSetPath(camerasTable[6].cameraPath, true)
CameraSetPath(cameraStart, true)
CameraSetPath(entry.cameraName, entry.snap)
CameraSetPath(gCameraPath, true)
CameraSetPath(gCameraTransitions[gSize].path, false)
CameraSetPath(gCameraTransitions[gSize].path, true)
CameraSetPath(gCameraTransitions[index].path, false)
CameraSetPath(gCameraTransitions[size].path, false)
CameraSetPath(gCameraTransitions[size].path, true)
CameraSetPath(gCameraTransitions[sizeZO].path, false)
CameraSetPath(gGameCams[camNo].path, true)
CameraSetPath(path, true)
CameraSetPath(PATH._1_02_1CAM_LOGO, true)
CameraSetPath(PATH._1_02_2CAM_CAF, true)
CameraSetPath(PATH._1_02_3CAM_HALL, true)
CameraSetPath(PATH._1_09_CUT2, true)
CameraSetPath(PATH._1_09_CUT3, true)
CameraSetPath(PATH._1_09_NISINTROCAM, true)
CameraSetPath(PATH._1_09_NISINTROCAM2, true)
CameraSetPath(PATH._2_01_CAMENDING, true)
CameraSetPath(PATH._2_05_INTRO, true)
CameraSetPath(PATH._2_R03_INTROCAM, true)
CameraSetPath(PATH._2_S05_CINDIN1, true)
CameraSetPath(PATH._3_01C_CAMPATH01, false)
CameraSetPath(PATH._3_01C_CAMPATH02, false)
CameraSetPath(PATH._3_04_CAMBIKE03, true)
CameraSetPath(PATH._3_05_NORTONNISCAM, true)
CameraSetPath(PATH._3_R09_BookPath, true)
CameraSetPath(PATH._3_R09_CAMERAPATH, true)
CameraSetPath(PATH._3_R09_FAILCAM, true)
CameraSetPath(PATH._3_R09_UNLOCKPATH, true)
CameraSetPath(PATH._3_S09_CAM1, true)
CameraSetPath(PATH._3_S09_CAM2, true)
CameraSetPath(PATH._4_02_CANNON_PATH, true)
CameraSetPath(PATH._4_02_NIS_CAM, true)
CameraSetPath(PATH._4_06_SCOREBOARD_PATH, false)
CameraSetPath(PATH._5_04_JOCK_CAM, true)
CameraSetPath(PATH._5_05_BURTONCINPOTTY, true)
CameraSetPath(PATH._5_05_CINPOTTY, true)
CameraSetPath(PATH._5_06_BARRICADECAM, true)
CameraSetPath(PATH._5_07_END_CAM, true)
CameraSetPath(PATH._5_09_AFTERTAGCAM, true)
CameraSetPath(PATH._5_09_TowerCam, false)
CameraSetPath(PATH._5_09_TowerCam, true)
CameraSetPath(PATH._6_03_CAM_GDORM, true)
CameraSetPath(PATH._6_03_CAM_GYM, true)
CameraSetPath(PATH._6_03_CAM_HARR, true)
CameraSetPath(PATH._6_03_CAM_LIB, true)
CameraSetPath(PATH._6_B_FINAL_CAM1, true)
CameraSetPath(PATH._6_B_FINAL_CAM2, false)
CameraSetPath(PATH._6_B_FINAL_CAM3, false)
CameraSetPath(PATH._6_B_LADDERSETUP1, false)
CameraSetPath(PATH._6_B_LADDERSETUP2, false)
CameraSetPath(PATH._ARC1_CAM_POS, true)
CameraSetPath(PATH._ARC2_CAMERA_POS, true)
CameraSetPath(PATH._ARC3_CAM_POS, true)
CameraSetPath(PATH._BOXING_INTROCAM, true)
CameraSetPath(PATH._C2_CAMERA, true)
CameraSetPath(PATH._C3_CAMERAPATH, true)
CameraSetPath(PATH._C3_CAMERAPATH02, false)
CameraSetPath(PATH._C3T_TOWN, true)
CameraSetPath(PATH._C4_CAMPATH, true)
CameraSetPath(PATH._C4_UNLOCKPATH, true)
CameraSetPath(PATH._C5_CAMERAPATH, true)
CameraSetPath(PATH._C5_INTROCAM, true)
CameraSetPath(PATH._C5_INTROCAMC02, true)
CameraSetPath(PATH._C6_INTROCAM, true)
CameraSetPath(PATH._C6_UNLOCKPATH, true)
CameraSetPath(PATH._CHAPT3TRANS_CAM, true)
CameraSetPath(PATH._CHAPT4TRANS_CAMERA, true)
CameraSetPath(PATH._CHAPTTRANS_FOLLOW, true)
CameraSetPath(PATH._CM_CAMPATH01, false)
CameraSetPath(PATH._CM_CAMPATH02, false)
CameraSetPath(PATH._CM_CAMTEACHER, true)
CameraSetPath(PATH._CM_CAMTEACHER02, true)
CameraSetPath(PATH._DBALL_NONCLASSCAM, true)
CameraSetPath(PATH._FIGHTCUT, true)
CameraSetPath(PATH._GOKARTCAMPATH, true)
CameraSetPath(PATH._HACKY_CAMSHOT00, true)
CameraSetPath(PATH._HACKY_INTROCAM, true)
CameraSetPath(PATH._HACKY_JOCKPLAY, true)
CameraSetPath(PATH._INTROCAM, true)
CameraSetPath(PATH._SCO_INTROCAMPATH, true)
CameraSetPath(PATH._SOC_CAMPATH, true)
CameraSetPath(PATH._TATTOO_CAMERA_01, false)
CameraSetPath(PATH._TATTOO_CAMERA_02, false)
CameraSetPath(PATH._TESTPEDTRANCAM, true)
CameraSetPath(PATH._TINDUST_ROUNDHOUSE_CAM, true)
CameraSetPath(PATH._TPHOTO_CAMPATH, true)
CameraSetPath(PATH.PRINCIPALCAMERA, true)
CameraSetPath(tblEntry.idCamPath, true)
CameraSetPath(tblEntry.idCamPath2, true)
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetInt
mov ecx, dword ptr [0xD13CB4]
add esp, 0x8
push eax
call 0x5ED3A0
mov esi, eax
test esi, esi
jz 0x2C
push 0x1
push edi
call LuaParam::GetBool
movzx eax, al
add esp, 0x8
push eax
push esi
push ecx
mov eax, esp
mov ecx, 0xC3CC68
mov dword ptr [eax], 0x4
call 0x4F3590
mov ecx, eax
call 0x507970
pop edi
xor eax, eax
pop esi
ret
-- never used
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetInt
mov ecx, dword ptr [0xD13CB4]
add esp, 0x8
push eax
call 0x5ED3A0
mov edi, eax
test edi, edi
jz 0x75
mov ecx, dword ptr [0xC1AEA8]
mov eax, dword ptr [ecx+0x14]
test eax, eax
jz 0x7
add eax, 0x30
jmp 0x5
lea eax, ptr [ecx+0x4]
mov ecx, dword ptr [eax]
mov dword ptr [0xCFB2DC], ecx
mov edx, dword ptr [eax+0x4]
mov dword ptr [0xCFB2E0], edx
mov eax, dword ptr [eax+0x8]
push 0x1
push esi
mov dword ptr [0xCFB2E4], eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x10], st
push 0x2
push esi
call LuaParam::GetBool
fld st, dword ptr [esp+0x18]
add esp, 0x10
movzx ecx, al
push 0x0
push ecx
push ecx
fstp dword ptr [esp], st
push 0xCFB2DC
push edi
push ecx
mov eax, esp
mov ecx, 0xC3CC68
mov dword ptr [eax], 0x4
call 0x4F3590
mov ecx, eax
call 0x507A80
pop edi
xor eax, eax
pop esi
pop ecx
ret
CLIENT
Sets the position of the camera. This will usually appear to do nothing unless used in a CameraUpdated event.
Usually you should use CameraSetXYZ instead (or as well, if needed).
CameraSetRelativePath(PATH._GRAVE_RELATIVE_CAM, POINTLIST._GRAVE_RELATIVE, 350, true)
CameraSetRelativePath(PATH._TENEMENTS_CAM_PATH2, POINTLIST._TENEMENTS_CAM_POINT_01, 0, true)
sub esp, 0x8
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x18]
push edi
push 0x0
push esi
call LuaParam::GetInt
mov ecx, dword ptr [0xD13CB4]
add esp, 0x8
push eax
call 0x5ED3A0
mov ebp, eax
test ebp, ebp
jz 0x8A
push 0x1
push esi
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, 0xBC5E7C
call 0x6D6450
mov ecx, eax
call 0x6D59B0
push 0x2
push esi
mov edi, eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x1C], st
push 0x3
push esi
call LuaParam::GetBool
push esi
mov bl, al
mov byte ptr [esp+0x24], 0x0
call 0x73AEA0
add esp, 0x14
cmp eax, 0x5
jnz 0x11
push 0x4
push esi
call LuaParam::GetBool
add esp, 0x8
mov byte ptr [esp+0x10], al
mov eax, dword ptr [esp+0x10]
fld st, dword ptr [esp+0x14]
push eax
movzx ecx, bl
push ecx
push ecx
fstp dword ptr [esp], st
push edi
push ebp
push ecx
mov eax, esp
mov ecx, 0xC3CC68
mov dword ptr [eax], 0x4
call 0x4F3590
mov ecx, eax
call 0x507A80
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x8
ret
CLIENT
Sets the rotation of the camera in radians. May take an optional rotation order. This will usually appear to do nothing unless used in a CameraUpdated event.
Usually you should also use CameraSetXYZ in a game thread to help ensure proper rendering. Otherwise, the game may not render things it thinks are out of view.
CameraSetRotationLimit(0, 0, -1, 1, 0)
CameraSetRotationLimit(10, 30, 1, 0, 0)
CameraSetRotationLimit(10, 40, 0, -1, 0)
CameraSetRotationLimit(20, 40, 0, 1, 0)
sub esp, 0x28
push esi
mov esi, dword ptr [esp+0x30]
push 0x0
push esi
call LuaParam::GetInt
mov dword ptr [esp+0xC], eax
fild st, dword ptr [esp+0xC]
push 0x1
push esi
fmul st, qword ptr [0x900160]
fdiv st, qword ptr [0x900158]
fstp dword ptr [esp+0x18], st
call LuaParam::GetInt
mov dword ptr [esp+0x14], eax
fild st, dword ptr [esp+0x14]
push 0x2
push esi
fmul st, qword ptr [0x900160]
fdiv st, qword ptr [0x900158]
fstp dword ptr [esp+0x24], st
call LuaParam::GetInt
mov dword ptr [esp+0x1C], eax
fild st, dword ptr [esp+0x1C]
push 0x3
push esi
fstp dword ptr [esp+0x30], st
call LuaParam::GetInt
mov dword ptr [esp+0x24], eax
fild st, dword ptr [esp+0x24]
push 0x4
push esi
fstp dword ptr [esp+0x3C], st
call LuaParam::GetInt
mov dword ptr [esp+0x2C], eax
fild st, dword ptr [esp+0x2C]
add esp, 0x28
fstp dword ptr [esp+0x18], st
fld st, dword ptr [esp+0x14]
fld st, dword ptr [esp+0x10]
fld st, dword ptr [esp+0x18]
fld st, st(1)
fmulp st(2), st
fld st, st(2)
fmulp st(3), st
fxch st, st(1)
faddp st(2), st
fmul st(0), st
faddp st(1), st
fstp dword ptr [esp+0x4], st
fld st, dword ptr [esp+0x4]
fabs
fstp dword ptr [esp+0x4], st
fld st, dword ptr [esp+0x4]
call 0x85C500
fstp dword ptr [esp+0x4], st
fld st, dword ptr [esp+0x4]
pop esi
fcomp st, dword ptr [0x900C04]
fnstsw ax
test ah, 0x5
jp 0x51
mov eax, dword ptr [0xC3CCF4]
push eax
call 0x6C82F0
push eax
call 0x6C9A90
fld st, dword ptr [eax+0x8]
fstp dword ptr [esp+0x14], st
add esp, 0x8
fld st, dword ptr [eax+0x14]
fstp dword ptr [esp+0x10], st
fld st, dword ptr [eax+0x20]
fstp dword ptr [esp+0x14], st
fld st, dword ptr [esp+0xC]
fstp dword ptr [esp+0x18], st
mov edx, dword ptr [esp+0x18]
fld st, dword ptr [esp+0x10]
fstp dword ptr [esp+0x1C], st
mov ecx, dword ptr [esp+0x1C]
fld st, dword ptr [esp+0x14]
fstp dword ptr [esp+0x20], st
mov eax, dword ptr [esp+0x20]
jmp 0xE
mov eax, dword ptr [esp+0x14]
mov ecx, dword ptr [esp+0x10]
mov edx, dword ptr [esp+0xC]
fld st, dword ptr [esp+0x4]
mov dword ptr [0xC3CE78], eax
fld st, st(0)
mov byte ptr [0xC3CE8C], 0x1
fchs
mov dword ptr [0xC3CE70], edx
fstp dword ptr [0xC3CE84], st
mov dword ptr [0xC3CE74], ecx
fld st, dword ptr [esp+0x8]
xor eax, eax
fld st, st(0)
fchs
fstp dword ptr [0xC3CE88], st
fxch st, st(1)
fstp dword ptr [0xC3CE7C], st
fstp dword ptr [0xC3CE80], st
add esp, 0x28
ret
CameraSetRotationLimitRel(45, 1, 0, -1, 0, vehicleBikeChad.id, 1)
CameraSetRotationLimitRel(45, 55, 0, -1, 0, vehicleBikeChad.id, 1)
CameraSetRotationLimitRel(45, 90, 0, -1, 0, vehicleBikeChad.id, 1)
sub esp, 0x28
push esi
mov esi, dword ptr [esp+0x30]
push edi
push 0x5
push esi
call LuaParam::GetInt
push 0x6
push esi
mov edi, eax
call LuaParam::GetInt
push 0x0
push 0x0
push eax
push edi
call 0x5C28D0
push 0x0
push esi
mov edi, eax
call LuaParam::GetInt
mov dword ptr [esp+0x30], eax
fild st, dword ptr [esp+0x30]
push 0x1
push esi
fmul st, qword ptr [0x900160]
fdiv st, qword ptr [0x900158]
fstp dword ptr [esp+0x3C], st
call LuaParam::GetInt
mov dword ptr [esp+0x38], eax
fild st, dword ptr [esp+0x38]
push 0x2
push esi
fmul st, qword ptr [0x900160]
fdiv st, qword ptr [0x900158]
fstp dword ptr [esp+0x48], st
call LuaParam::GetInt
mov dword ptr [esp+0x40], eax
fild st, dword ptr [esp+0x40]
push 0x3
push esi
fstp dword ptr [esp+0x54], st
call LuaParam::GetInt
mov dword ptr [esp+0x48], eax
fild st, dword ptr [esp+0x48]
add esp, 0x40
push 0x4
push esi
fstp dword ptr [esp+0x20], st
call LuaParam::GetInt
mov dword ptr [esp+0x10], eax
fild st, dword ptr [esp+0x10]
add esp, 0x8
fstp dword ptr [esp+0x1C], st
fld st, dword ptr [esp+0x18]
fld st, dword ptr [esp+0x14]
fld st, dword ptr [esp+0x1C]
fld st, st(1)
fmulp st(2), st
fld st, st(2)
fmulp st(3), st
fxch st, st(1)
faddp st(2), st
fmul st(0), st
faddp st(1), st
fstp dword ptr [esp+0x8], st
fld st, dword ptr [esp+0x8]
fabs
fstp dword ptr [esp+0x8], st
fld st, dword ptr [esp+0x8]
call 0x85C500
fstp dword ptr [esp+0x8], st
fld st, dword ptr [esp+0x8]
fcomp st, dword ptr [0x900C04]
fnstsw ax
test ah, 0x5
jp 0x51
mov eax, dword ptr [0xC3CCF4]
push eax
call 0x6C82F0
push eax
call 0x6C9A90
fld st, dword ptr [eax+0x8]
fstp dword ptr [esp+0x1C], st
add esp, 0x8
fld st, dword ptr [eax+0x14]
fstp dword ptr [esp+0x18], st
fld st, dword ptr [eax+0x20]
fstp dword ptr [esp+0x1C], st
fld st, dword ptr [esp+0x14]
fstp dword ptr [esp+0x20], st
mov edx, dword ptr [esp+0x20]
fld st, dword ptr [esp+0x18]
fstp dword ptr [esp+0x24], st
mov ecx, dword ptr [esp+0x24]
fld st, dword ptr [esp+0x1C]
fstp dword ptr [esp+0x28], st
mov eax, dword ptr [esp+0x28]
jmp 0xE
mov eax, dword ptr [esp+0x1C]
mov ecx, dword ptr [esp+0x18]
mov edx, dword ptr [esp+0x14]
fld st, dword ptr [esp+0xC]
mov dword ptr [0xC3CE78], eax
mov eax, dword ptr [0xC3CE90]
fld st, st(0)
cmp edi, eax
fchs
fstp dword ptr [0xC3CE84], st
mov byte ptr [0xC3CE8C], 0x1
fld st, dword ptr [esp+0x10]
mov dword ptr [0xC3CE70], edx
fld st, st(0)
mov dword ptr [0xC3CE74], ecx
fchs
fstp dword ptr [0xC3CE88], st
fxch st, st(1)
fstp dword ptr [0xC3CE7C], st
fstp dword ptr [0xC3CE80], st
jz 0x2C
test eax, eax
jz 0x10
push 0xC3CE90
push eax
call 0x4657E0
add esp, 0x8
test edi, edi
mov dword ptr [0xC3CE90], edi
jz 0x10
push 0xC3CE90
push edi
call 0x4657D0
add esp, 0x8
pop edi
xor eax, eax
pop esi
add esp, 0x28
ret
-- never used
push ecx
mov eax, dword ptr [esp+0x8]
push 0x0
push eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x8], st
fld st, dword ptr [esp+0x8]
mov eax, esp
mov ecx, 0xC3CC68
fstp dword ptr [esp+0x4], st
mov dword ptr [eax], 0x4
call 0x4F3590
mov ecx, eax
call 0x507820
xor eax, eax
pop ecx
ret
CameraSetSecondTarget(gTed)
CameraSetSecondTarget(pedCamera.id)
CameraSetSecondTarget(russell)
mov eax, dword ptr [esp+0x4]
push esi
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x8
cmp eax, 0xFFFFFFFF
jnz 0x27
mov eax, dword ptr [0xC3CE18]
test eax, eax
jz 0x65
push 0xC3CE18
push eax
call 0x4657E0
add esp, 0x8
mov dword ptr [0xC3CE18], 0x0
xor eax, eax
pop esi
ret
push ecx
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
mov eax, dword ptr [0xC3CE18]
add esp, 0x8
cmp esi, eax
jz 0x2C
test eax, eax
jz 0x10
push 0xC3CE18
push eax
call 0x4657E0
add esp, 0x8
test esi, esi
mov dword ptr [0xC3CE18], esi
jz 0x10
push 0xC3CE18
push esi
call 0x4657D0
add esp, 0x8
xor eax, eax
pop esi
ret
CameraSetShot(1, "1_B_X", false)
CameraSetShot(1, "1_B_X", true)
CameraSetShot(1, "4B1", true)
CameraSetShot(1, "4B2", false)
CameraSetShot(1, "4B2", true)
CameraSetShot(1, "WaterPuzzleCam", true)
CameraSetShot(2, "ShootingGallery", true)
CameraSetShot(2, 0)
CameraSetShot(8, "PaperRoute", false)
CameraSetShot(8, "Regular", false)
CameraSetShot(9, "4B1", true)
CameraSetShot(9, "BoxingCam", false)
CameraSetShot(9, "BoxingCam", true)
CameraSetShot(9, "Wrestling", false)
push ecx
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x14]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov ebp, eax
call LuaParam::IsInt
add esp, 0x10
test al, al
jz 0x6
xor edi, edi
jmp 0xF
push 0x1
push esi
call LuaParam::GetString
add esp, 0x8
mov edi, eax
xor bl, bl
push esi
mov byte ptr [esp+0x14], bl
call 0x73AEA0
add esp, 0x4
cmp eax, 0x3
jnz 0x13
push 0x2
push esi
call LuaParam::GetBool
mov bl, al
add esp, 0x8
mov byte ptr [esp+0x10], bl
cmp dword ptr [0xC3CCF8], ebp
mov ecx, 0xC3CC68
jz 0x26
mov eax, dword ptr [esp+0x10]
push 0x0
push 0x0
push eax
push 0x0
push ebp
call 0x4F2C20
push edi
mov ecx, 0xC3CC68
call 0x4F3490
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
push edi
call 0x4F3490
test bl, bl
jz 0xC
mov ecx, 0xC3CC68
call 0x4F2B60
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
-- never used
push esi
mov esi, dword ptr [esp+0x8]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetString
add esp, 0x10
push eax
push edi
mov ecx, 0xC3CC68
call 0x4F12C0
pop edi
xor eax, eax
pop esi
ret
CameraSetSpeed(0.01, 0, 0)
CameraSetSpeed(0.01, 0.01, 0.01)
CameraSetSpeed(0.2, 0.2, 0.2)
CameraSetSpeed(0.3, 0.3, 0.3)
CameraSetSpeed(0.3, 0.4, 0.3)
CameraSetSpeed(0.5, 0, 0)
CameraSetSpeed(0.5, 0.5, 0.5)
CameraSetSpeed(0.5, 1, 0.5)
CameraSetSpeed(0.8, 0.2, 0.2)
CameraSetSpeed(1, 0, 0)
CameraSetSpeed(1, 0, 2)
CameraSetSpeed(1, 1, 1)
CameraSetSpeed(1.2, 1.2, 1.2)
CameraSetSpeed(1.4, 3.4, 1.4)
CameraSetSpeed(1.5, 1.5, 1.5)
CameraSetSpeed(1.5, 2, 2)
CameraSetSpeed(1.8, 1.8, 1.8)
CameraSetSpeed(10, 10, 10)
CameraSetSpeed(12, 12, 12)
CameraSetSpeed(12.7, 12.7, 12.7)
CameraSetSpeed(13, 13, 13)
CameraSetSpeed(15, 15, 15)
CameraSetSpeed(15, 5, 30)
CameraSetSpeed(2, 0, 0)
CameraSetSpeed(2, 2, 2)
CameraSetSpeed(2.2, 2.2, 2.2)
CameraSetSpeed(2.3, 2.3, 0.75)
CameraSetSpeed(20, 20, 20)
CameraSetSpeed(20, 20, 40)
CameraSetSpeed(3, 2, 2)
CameraSetSpeed(30, 5, 5)
CameraSetSpeed(4, 4, 4)
CameraSetSpeed(4.2, 4.2, 4.2)
CameraSetSpeed(4.8, 4.4, 5.4)
CameraSetSpeed(400, 400, 0)
CameraSetSpeed(5, 5, 5)
CameraSetSpeed(6, 6, 6)
CameraSetSpeed(8, 8, 8)
CameraSetSpeed(camEntry.speed, camEntry.speed, camEntry.speed)
CameraSetSpeed(camerasTable[1].speed, camerasTable[1].speed, camerasTable[1].speed)
CameraSetSpeed(camerasTable[5].speed, camerasTable[5].speed, camerasTable[5].speed)
CameraSetSpeed(camerasTable[6].speed, camerasTable[6].speed, camerasTable[6].speed)
CameraSetSpeed(entry.speedMax, entry.speedEaseIn, entry.speedEaseOut)
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x4], st
mov eax, esp
mov ecx, 0xC3CC68
mov dword ptr [eax], 0x4
call 0x4F3590
mov ecx, eax
call 0x507830
push 0x1
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x4], st
mov eax, esp
mov ecx, 0xC3CC68
mov dword ptr [eax], 0x4
call 0x4F3590
mov ecx, eax
call 0x507850
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x4], st
mov eax, esp
mov ecx, 0xC3CC68
mov dword ptr [eax], 0x4
call 0x4F3590
mov ecx, eax
call 0x507870
xor eax, eax
pop esi
ret
CameraSetWidescreen(false)
CameraSetWidescreen(true)
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetBool
fldz
movzx eax, al
fstp dword ptr [0xC3CD14], st
push esi
mov dword ptr [0xC3CD0C], eax
call LuaParam::GetParamCount
add esp, 0xC
cmp eax, 0x2
jnz 0x1D
push 0x1
push esi
call LuaParam::GetBool
add esp, 0x8
test al, al
jnz 0xE
mov ecx, dword ptr [0xC3CD0C]
mov dword ptr [0xC3CD10], ecx
xor eax, eax
pop esi
ret
CameraSetXYZ(-1.030677, -70.94023, 4.475965, -1.887038, -71.23644, 4.053127)
CameraSetXYZ(-1.137063, -77.27278, 5.913183, -1.937864, -76.72564, 5.669632)
CameraSetXYZ(-108.25994, -340.04675, 5.278171, -108.25006, -340.94998, 5.706887)
CameraSetXYZ(-11.253895, -65.6897, 1.666455, -10.703083, -64.871445, 1.828651)
CameraSetXYZ(-143.52403, -376.5427, 5.991587, -142.5776, -376.2205, 5.974825)
CameraSetXYZ(-16.510925, -57.829197, 2.410211, -16.898472, -56.90985, 2.34741)
CameraSetXYZ(-17.72731, -24.05262, 5.156742, -18.000452, -24.998327, 4.980834)
CameraSetXYZ(-17.777225, -23.27374, 4.316599, -18.680893, -23.363947, 3.898098)
CameraSetXYZ(-18.473286, -51.920918, 1.534011, -18.980827, -51.05963, 1.555421)
CameraSetXYZ(-19.07855, -20.086308, 4.401656, -19.557585, -20.927404, 4.151165)
CameraSetXYZ(-19.169231, -25.89341, 2.92458, -19.795395, -25.11858, 3.009784)
CameraSetXYZ(-19.67809, -25.873928, 4.134796, -20.392143, -25.27204, 3.777333)
CameraSetXYZ(-21.520882, -72.65287, 1.166132, -22.4455, -72.928215, 1.428625)
CameraSetXYZ(-22.24371, -72.63743, 2.353733, -21.25111, -72.619514, 2.470597)
CameraSetXYZ(-25.981438, -106.347115, 3.519231, -26.608736, -105.58522, 3.358158)
CameraSetXYZ(-26.82692, -67.17024, 1.988937, -27.018621, -68.151535, 1.986971)
CameraSetXYZ(-27.107243, -82.0929, 1.560844, -27.50147, -83.00643, 1.659717)
CameraSetXYZ(-34.66981, -98.39723, 3.770149, -33.902256, -98.98998, 3.526339)
CameraSetXYZ(-39.08377, -53.393654, 1.364971, -38.456585, -52.61921, 1.447281)
CameraSetXYZ(-39.57438, -309.2853, 5.253273, -40.549435, -309.07697, 5.193034)
CameraSetXYZ(-4.781454, -61.58442, 1.891966, -5.492266, -62.282463, 1.977515)
CameraSetXYZ(-40.395813, -59.555893, 9.653583, -39.973267, -58.66006, 9.516783)
CameraSetXYZ(-40.877243, -298.30627, 10.449337, -41.500557, -299.02374, 10.140832)
CameraSetXYZ(-41.48274, -306.28537, 5.473546, -42.333817, -306.80527, 5.41899)
CameraSetXYZ(-415.19568, 304.4951, -1.265636, -414.42007, 303.89496, -1.070755)
CameraSetXYZ(-416.2549, 300.66162, -1.100896, -416.73825, 301.53687, -1.087145)
CameraSetXYZ(-423.3968, 368.01886, 82.16489, -422.43277, 364.42984, 82.48458)
CameraSetXYZ(-423.55948, 303.97916, -0.162787, -424.46786, 303.89954, -0.573111)
CameraSetXYZ(-425.36288, 369.16025, 82.56482, -426.56998, 368.598, 82.284615)
CameraSetXYZ(-427.5277, 322.27975, -0.379881, -427.18954, 321.34195, -0.457095)
CameraSetXYZ(-428.15848, 307.2929, -0.870865, -428.40262, 306.33188, -1.000271)
CameraSetXYZ(-428.81247, 301.20825, -1.147998, -428.39355, 300.30655, -1.04191)
CameraSetXYZ(-43.135685, -309.65784, 5.63587, -43.62665, -308.78952, 5.566609)
CameraSetXYZ(-433.60767, 302.2722, -1.009889, -432.98334, 303.05325, -1.010671)
CameraSetXYZ(-434.75098, 300.51764, -0.607479, -434.40085, 301.4465, -0.727287)
CameraSetXYZ(-437.08615, 321.37802, -0.761353, -436.73032, 320.44827, -0.854267)
CameraSetXYZ(-437.95193, 313.57703, -5.994447, -438.2697, 314.51898, -6.101623)
CameraSetXYZ(-445.0503, 321.92926, -0.639116, -445.0488, 320.9335, -0.729048)
CameraSetXYZ(-446.59872, 298.48163, 0.678324, -446.94153, 299.3774, 0.39566)
CameraSetXYZ(-447.16583, 309.03235, -1.584784, -448.12115, 309.32724, -1.601944)
CameraSetXYZ(-447.61053, 310.91913, -6.696242, -448.47675, 310.42462, -6.626305)
CameraSetXYZ(-448.54468, 310.62537, -1.656643, -447.6013, 310.95612, -1.634508)
CameraSetXYZ(-451.57382, 311.19818, -6.86422, -450.57474, 311.1691, -6.842947)
CameraSetXYZ(-455.10358, 307.92566, -1.245505, -455.94086, 308.46814, -1.313119)
CameraSetXYZ(-464.02594, -43.781612, 12.019781, -463.79413, -44.985256, 11.479783)
CameraSetXYZ(-483.5392, 310.9543, 39.141697, -482.76212, 310.40588, 38.833183)
CameraSetXYZ(-496.31378, 312.60037, 32.44427, -495.61215, 311.88794, 32.432938)
CameraSetXYZ(-496.71188, 317.6883, 33.327457, -497.6915, 317.80115, 33.161316)
CameraSetXYZ(-5.4131722, -105.07023, 1.1148763, -3.8834343, -107.21885, 2.15487)
CameraSetXYZ(-5.791627, -105.093414, 2.5703156, -3.3076508, -107.48812, 1.8705637)
CameraSetXYZ(-51.77619, -308.2334, 9.321401, -52.60806, -308.75537, 9.133162)
CameraSetXYZ(-510.8904, 317.7711, 33.16423, -511.8485, 318.01633, 33.01734)
CameraSetXYZ(-523.9464, -42.22376, 41.157673, -524.90686, -41.977615, 41.287514)
CameraSetXYZ(-528.74255, -42.006508, 41.88461, -529.6353, -41.55634, 41.890232)
CameraSetXYZ(-529.73364, 384.83725, 15.349741, -528.04224, 385.786, 15.449584)
CameraSetXYZ(-531.16907, 137.61205, 57.597054, -530.2804, 137.16061, 57.516857)
CameraSetXYZ(-533.05096, -42.58636, 41.97315, -532.1645, -42.126842, 41.92266)
CameraSetXYZ(-533.64526, 319.03046, -0.56863, -533.6358, 318.03464, -0.659398)
CameraSetXYZ(-534.034, 378.7261, 15.394567, -534.6163, 377.91824, 15.30445)
CameraSetXYZ(-534.2069, 319.03763, 0.650509, -535.13385, 318.75516, 0.403447)
CameraSetXYZ(-534.2692, 394.0767, 15.329271, -536.29114, 394.74268, 15.509263)
CameraSetXYZ(-534.4892, 318.94156, -0.448955, -533.937, 318.11575, -0.563465)
CameraSetXYZ(-535.05505, 393.89645, 15.029265, -537.4361, 395.07306, 15.68962)
CameraSetXYZ(-535.2138, 134.00621, 47.483803, -534.3774, 133.46892, 47.590523)
CameraSetXYZ(-535.5674, 377.4347, 15.39489, -536.53723, 377.19128, 15.395476)
CameraSetXYZ(-537.1888, 133.6532, 47.362743, -538.14264, 133.36417, 47.442993)
CameraSetXYZ(-538.58215, 376.68225, 16.649103, -531.1897, 375.2763, 15.069274)
CameraSetXYZ(-543.90265, 136.8605, 59.50786, -544.7172, 136.30087, 59.35554)
CameraSetXYZ(-545.4811, 135.23799, 47.860825, -544.5277, 134.94911, 47.774487)
CameraSetXYZ(-560.21686, 320.88766, -0.310778, -560.04767, 319.90237, -0.288369)
CameraSetXYZ(-560.63806, 321.6818, -1.018964, -560.3866, 322.64926, -0.993759)
CameraSetXYZ(-561.0058, 321.40848, -0.828353, -560.6053, 322.3187, -0.724545)
CameraSetXYZ(-562.5938, 323.06516, -0.722657, -562.10114, 322.19528, -0.698963)
CameraSetXYZ(-562.8464, 317.35223, -0.673942, -563.56836, 316.66055, -0.686741)
CameraSetXYZ(-571.7021, 392.68326, 2.0672066, -574.80206, 391.85327, 1.5672069)
CameraSetXYZ(-58.75064, -314.0649, 5.572534, -59.61119, -314.57394, 5.583769)
CameraSetXYZ(-58.950195, -307.74258, 5.764244, -59.948635, -307.6889, 5.769963)
CameraSetXYZ(-582.79126, -594.27374, 8.513312, -583.26483, -595.07214, 8.141765)
CameraSetXYZ(-585.0719, -622.286, 7.183745, -585.29443, -621.3288, 6.998803)
CameraSetXYZ(-592.772, -165.6973, 7.879876, -591.96857, -166.28809, 7.806678)
CameraSetXYZ(-594.813, -294.81302, 1.376248, -593.8194, -294.92416, 1.356479)
CameraSetXYZ(-595.4686, 324.35153, 35.64855, -595.66345, 325.33215, 35.663586)
CameraSetXYZ(-597.1507, 325.1509, 35.73755, -597.65344, 326.0126, 35.67)
CameraSetXYZ(-6.345839, -64.1826, 1.362268, -7.031287, -63.48373, 1.565413)
CameraSetXYZ(-60.571716, -316.59418, 5.414894, -61.47991, -316.9889, 5.553716)
CameraSetXYZ(-601.7148, -297.37604, 1.490144, -600.95184, -296.7314, 1.44164)
CameraSetXYZ(-604.6959, -302.1921, 1.726116, -604.7079, -303.1871, 1.628526)
CameraSetXYZ(-605.7907, -311.2778, 1.540111, -605.70233, -310.28296, 1.491012)
CameraSetXYZ(-608.1808, -162.01682, 1.253873, -608.85065, -161.28893, 1.397656)
CameraSetXYZ(-608.1951, -295.0979, 1.758579, -607.55145, -295.83392, 1.549697)
CameraSetXYZ(-608.95917, -319.6243, 0.908202, -609.3722, -318.7236, 1.042619)
CameraSetXYZ(-609.12976, -321.81824, 4.363642, -608.84955, -320.89392, 4.105217)
CameraSetXYZ(-609.70465, -160.07443, 1.402566, -610.62445, -160.44948, 1.516572)
CameraSetXYZ(-610.0809, -160.12903, 1.616041, -609.2096, -160.61493, 1.684267)
CameraSetXYZ(-613.52075, -59.238907, 61.594936, -610.51184, -60.444046, 60.750626)
CameraSetXYZ(-615.8843, -55.617973, 61.187515, -619.46704, -60.716175, 60.486973)
CameraSetXYZ(-616.3086, -58.824932, 61.106567, -618.43317, -60.148853, 60.6069)
CameraSetXYZ(-618.38586, -58.026012, 61.302357, -618.8778, -58.89509, 61.25317)
CameraSetXYZ(-618.74493, -67.910095, 61.402576, -619.56915, -68.45039, 61.23326)
CameraSetXYZ(-618.8813, -60.227734, 60.907146, -620.81586, -62.866936, 60.866943)
CameraSetXYZ(-619.71204, -60.446346, 60.86252, -619.4415, -61.40244, 60.973927)
CameraSetXYZ(-619.96576, -297.0955, 6.551377, -619.3802, -296.2915, 6.654239)
CameraSetXYZ(-62.13924, -304.61145, 5.414496, -62.076637, -305.60486, 5.510118)
CameraSetXYZ(-620.5806, -314.26575, 1.316027, -621.5791, -314.29663, 1.276388)
CameraSetXYZ(-621.41943, -56.90906, 60.160484, -620.9529, -57.78902, 60.248596)
CameraSetXYZ(-622.16016, -56.709454, 62.056435, -621.8153, -57.587994, 61.726772)
CameraSetXYZ(-622.76666, -59.71638, 60.706867, -618.5461, -59.794083, 60.806877)
CameraSetXYZ(-623.0122, -59.272133, 60.80008, -622.0705, -59.59584, 60.88535)
CameraSetXYZ(-623.36285, -60.276676, 60.594265, -623.20233, -61.262047, 60.60873)
CameraSetXYZ(-623.86444, -303.73737, 2.039076, -624.4549, -304.53897, 1.946003)
CameraSetXYZ(-625.1142, -314.43323, 0.56602, -624.40936, -315.0099, 0.979045)
CameraSetXYZ(-625.28986, -308.62173, 1.843411, -625.7746, -309.48752, 1.719774)
CameraSetXYZ(-625.7554, -61.391476, 61.22005, -625.411, -62.326435, 61.144203)
CameraSetXYZ(-626.2766, -66.11127, 60.93996, -625.3649, -65.700676, 60.92569)
CameraSetXYZ(-626.34326, -68.70289, 61.321487, -625.3926, -68.97655, 61.17689)
CameraSetXYZ(-626.3904, -70.10445, 61.129646, -625.9414, -69.215706, 61.048626)
CameraSetXYZ(-626.6524, -316.94232, 1.619864, -627.1652, -316.0904, 1.516163)
CameraSetXYZ(-626.73755, -309.03946, 2.145183, -627.05145, -309.96512, 1.936732)
CameraSetXYZ(-626.9549, -74.064255, 60.868847, -627.17303, -73.08873, 60.868923)
CameraSetXYZ(-626.96924, -74.67165, 60.975555, -626.9247, -73.67498, 60.910103)
CameraSetXYZ(-627.0591, -317.09448, 1.785446, -627.46313, -316.1909, 1.643565)
CameraSetXYZ(-627.471, -315.071, 1.911162, -628.01794, -314.28592, 1.620989)
CameraSetXYZ(-627.838, -73.04977, 60.829853, -626.97156, -73.53872, 60.92742)
CameraSetXYZ(-627.9048, -69.9778, 62.765903, -627.2915, -69.26165, 62.434746)
CameraSetXYZ(-628.40564, -66.91058, 60.33899, -627.48016, -66.535164, 60.388054)
CameraSetXYZ(-628.45233, -58.27194, 62.403015, -628.0733, -59.176186, 62.206657)
CameraSetXYZ(-628.848, -308.4398, 0.96035, -629.1296, -309.39328, 0.853643)
CameraSetXYZ(-628.9045, -303.9589, 2.522108, -628.808, -302.9773, 2.685092)
CameraSetXYZ(-628.92804, -313.7767, 1.268898, -628.2281, -314.48843, 1.326908)
CameraSetXYZ(-628.93585, -73.33503, 60.9616, -627.9413, -73.279175, 60.875393)
CameraSetXYZ(-629.55334, -285.77777, 6.459279, -629.8084, -284.84933, 6.728446)
CameraSetXYZ(-630.0023, -283.6264, 6.978099, -630.286, -284.57684, 6.852377)
CameraSetXYZ(-630.33594, -322.91156, 0.898735, -630.2008, -321.9209, 0.91337)
CameraSetXYZ(-630.6381, -290.56006, 7.530675, -631.4325, -290.01364, 7.265559)
CameraSetXYZ(-631.27814, -310.23486, 0.264245, -630.7142, -311.0525, 0.374735)
CameraSetXYZ(-631.3006, -297.3262, 7.366553, -631.9573, -296.5855, 7.224535)
CameraSetXYZ(-632.56635, -284.8601, 7.57797, -632.9278, -285.75604, 7.320108)
CameraSetXYZ(-632.5693, -315.48975, 0.752947, -632.1101, -314.60782, 0.859204)
CameraSetXYZ(-632.6774, -286.57837, 7.323637, -633.0524, -287.4846, 7.128572)
CameraSetXYZ(-632.7018, -291.1923, 7.309863, -633.0144, -290.25113, 7.181806)
CameraSetXYZ(-634.7213, -303.7864, 12.334122, -634.3309, -304.42026, 11.667567)
CameraSetXYZ(-635.5, -299.65, 0.8, -635.95, -298.8, 0.9)
CameraSetXYZ(-638.11536, -276.94833, -0.385751, -638.47485, -277.88113, -0.407544)
CameraSetXYZ(-638.61383, -271.38647, -0.082731, -638.43994, -270.4136, -0.235106)
CameraSetXYZ(-638.68317, -270.42636, -0.356995, -638.3997, -269.47043, -0.281169)
CameraSetXYZ(-639.10657, -275.2649, -0.462724, -639.0882, -274.2652, -0.452183)
CameraSetXYZ(-639.59235, -57.310722, 55.428665, -640.5626, -57.525276, 55.540195)
CameraSetXYZ(-64.0647, -317.29175, 5.873033, -63.09818, -317.03598, 5.855651)
CameraSetXYZ(-640.07544, -295.173, 1.401847, -639.48755, -295.97488, 1.297521)
CameraSetXYZ(-645.1992, 221.4531, 1.163621, -645.90344, 222.15561, 1.064427)
CameraSetXYZ(-645.44366, 259.90173, 2.9264703, -649.44366, 258.90173, 2.4264703)
CameraSetXYZ(-645.588, -57.811245, 56.65822, -647.591, -60.377666, 56.458607)
CameraSetXYZ(-647.9221, -296.62323, 2.100897, -648.82574, -296.44977, 1.709499)
CameraSetXYZ(-647.9261, -59.289787, 56.57997, -648.6833, -58.6377, 56.54336)
CameraSetXYZ(-648.7729, -292.54712, 2.157269, -648.8505, -293.49347, 1.843951)
CameraSetXYZ(-648.85376, -297.31168, 1.102631, -649.339, -296.43933, 1.04434)
CameraSetXYZ(-650.1485, -298.40274, 1.099456, -650.15735, -297.40286, 1.093695)
CameraSetXYZ(-651.0539, -293.17877, 1.53899, -650.8692, -294.1503, 1.3909)
CameraSetXYZ(-651.68164, -293.61465, 1.767969, -651.2293, -294.47018, 1.516313)
CameraSetXYZ(-651.83435, -296.39398, 1.519369, -650.8957, -296.09137, 1.35474)
CameraSetXYZ(-652.17017, -294.01434, 1.674368, -651.4868, -294.70288, 1.431949)
CameraSetXYZ(-652.2736, -49.908024, 56.77357, -653.24994, -49.747387, 56.62903)
CameraSetXYZ(-654.11884, -295.7761, 6.852561, -654.76294, -296.53342, 6.745663)
CameraSetXYZ(-654.908, 81.575, 1.99168, -656.0724, 82.43323, 1.4116743)
CameraSetXYZ(-656.28815, 131.4068, 4.989501, -654.28815, 128.9068, 3.989501)
CameraSetXYZ(-656.5098, 253.56673, 16.314045, -657.2159, 254.27415, 16.343697)
CameraSetXYZ(-656.91284, 247.70456, 16.407793, -656.6116, 246.75157, 16.437649)
CameraSetXYZ(-657.2502, 248.99585, 16.144533, -656.9541, 248.04109, 16.118336)
CameraSetXYZ(-657.82135, 253.53845, 16.39159, -657.30396, 254.39395, 16.40358)
CameraSetXYZ(-658.6594, 257.1186, 16.250246, -658.36487, 256.16312, 16.265566)
CameraSetXYZ(-659.11426, 250.01138, 15.68246, -658.7884, 250.94919, 15.801522)
CameraSetXYZ(-66.05141, -315.28906, 5.942597, -65.06237, -315.19977, 5.825277)
CameraSetXYZ(-665.8043, -162.53493, 1.153426, -666.5188, -161.83614, 1.151459)
CameraSetXYZ(-666.88885, -161.46582, 1.218866, -667.7805, -161.0165, 1.265604)
CameraSetXYZ(-668.3964, -325.4147, 6.420433, -668.85815, -326.30154, 6.405958)
CameraSetXYZ(-668.60754, -296.3059, 6.783578, -669.5556, -295.98804, 6.790044)
CameraSetXYZ(-668.70953, -295.54913, 6.614568, -669.6473, -295.2023, 6.617522)
CameraSetXYZ(-668.8145, -318.77008, 1.499427, -669.49384, -319.49207, 1.368598)
CameraSetXYZ(-669.4946, -162.1607, 1.338242, -668.6671, -161.60136, 1.290168)
CameraSetXYZ(-67.12342, -327.37344, 6.833858, -67.045265, -326.3864, 6.693817)
CameraSetXYZ(-670.4946, -293.46982, 7.089344, -670.37573, -294.45618, 6.976038)
CameraSetXYZ(-670.87067, -317.12982, 1.713793, -670.9902, -318.11157, 1.565998)
CameraSetXYZ(-671.4948, -162.91353, 1.316186, -670.57166, -162.53107, 1.279742)
CameraSetXYZ(-671.5806, -319.33948, 1.392932, -671.7506, -320.32483, 1.398956)
CameraSetXYZ(-672.4763, -54.21211, 56.213284, -672.89014, -55.114582, 56.332005)
CameraSetXYZ(-672.54285, -72.07847, 61.49709, -672.4946, -73.066826, 61.355545)
CameraSetXYZ(-673.1245, -59.698437, 55.635456, -673.6623, -60.501358, 55.892105)
CameraSetXYZ(-673.4522, -77.59752, 60.815228, -673.08075, -76.67007, 60.845833)
CameraSetXYZ(-673.86255, -75.12937, 60.326168, -674.47034, -74.338486, 60.39655)
CameraSetXYZ(-674.7147, -65.22737, 55.77168, -675.0499, -64.290924, 55.87489)
CameraSetXYZ(-674.83936, -77.543335, 62.474476, -674.96344, -76.61372, 62.127563)
CameraSetXYZ(-691.9329, 348.16818, 4.521013, -691.9836, 347.16995, 4.549005)
CameraSetXYZ(-691.96014, 349.5128, 4.48351, -691.9753, 348.51712, 4.392413)
CameraSetXYZ(-692.68134, 356.5676, 4.829493, -692.6271, 355.5767, 4.706552)
CameraSetXYZ(-694.1731, 352.00827, 4.491082, -693.5983, 352.82617, 4.467034)
CameraSetXYZ(-695.7887, 355.47, 5.277423, -694.8476, 355.3273, 4.971286)
CameraSetXYZ(-696.9778, 80.348434, 23.647238, -697.8573, 80.00399, 23.975384)
CameraSetXYZ(-697.33417, 481.94528, 3.97798, -697.0906, 481.03473, 3.644237)
CameraSetXYZ(-698.947, 202.12222, 32.280045, -699.7298, 202.72948, 32.415512)
CameraSetXYZ(-698.9878, 372.7426, 295.27097, -697.56714, 373.25122, 295.77036)
CameraSetXYZ(-699.4192, 203.85728, 32.82823, -700.37585, 204.13902, 32.895573)
CameraSetXYZ(-699.88855, 78.72663, 26.249279, -699.1361, 79.36582, 26.406363)
CameraSetXYZ(-7.649837, -76.80565, 3.61713, -7.890822, -75.8444, 3.485427)
CameraSetXYZ(-700.4642, 201.46802, 32.831036, -700.9804, 202.3243, 32.819817)
CameraSetXYZ(-701.7605, 370.26483, 295.00967, -702.388, 371.0432, 295.02457)
CameraSetXYZ(-702.5636, 73.67932, 24.113953, -702.0189, 74.47134, 24.387157)
CameraSetXYZ(-705.6322, 204.21594, 33.77, -704.7316, 204.54642, 33.487885)
CameraSetXYZ(-705.68225, 203.56009, 33.12385, -704.8029, 204.02673, 33.030518)
CameraSetXYZ(-707.1513, 370.5077, 294.99432, -706.37, 371.13174, 294.99826)
CameraSetXYZ(-707.40424, 314.81995, 35.785667, -708.06854, 314.11295, 35.543507)
CameraSetXYZ(-707.43854, 316.45575, 34.958454, -707.70355, 317.4143, 34.854702)
CameraSetXYZ(-707.5762, 316.5639, 34.836285, -707.7704, 317.5434, 34.783672)
CameraSetXYZ(-707.60547, 318.99103, 35.46547, -707.33887, 318.0342, 35.349823)
CameraSetXYZ(-708.1398, 373.82175, 295.69522, -708.85803, 374.51727, 295.70963)
CameraSetXYZ(-708.2253, 317.97073, 35.870102, -707.9722, 317.01312, 35.732483)
CameraSetXYZ(-710.29865, 378.75714, 296.04504, -712.10333, 377.20825, 296.33905)
CameraSetXYZ(-715.23865, 369.97644, 297.38385, -714.30035, 370.23477, 297.15408)
CameraSetXYZ(-715.7916, 381.57556, 295.49298, -715.0454, 380.90988, 295.49408)
CameraSetXYZ(-721.45654, 36.84287, -0.622337, -722.3205, 36.399994, -0.861693)
CameraSetXYZ(-721.7357, 38.77579, 0.659548, -721.9925, 37.96601, 0.132051)
CameraSetXYZ(-724.0699, 41.775166, -0.346846, -723.6151, 40.94008, -0.656254)
CameraSetXYZ(-724.6291, 35.413933, -1.046123, -724.4542, 34.429577, -1.059661)
CameraSetXYZ(-725.599, 33.70943, -0.831467, -724.7561, 34.216095, -1.012014)
CameraSetXYZ(-727.0536, 35.568577, -0.435671, -726.1668, 36.00349, -0.591144)
CameraSetXYZ(-727.4454, 36.311512, -1.212951, -730.2934, 36.06182, -1.3129523)
CameraSetXYZ(-727.5154, 17.209179, 1.233189, -726.9101, 16.413967, 1.238974)
CameraSetXYZ(-727.8272, 14.952086, 1.25812, -727.293, 15.797104, 1.234105)
CameraSetXYZ(-728.49286, 20.001883, 1.861192, -727.94073, 19.207907, 1.608468)
CameraSetXYZ(-728.88135, 386.52426, 299.40536, -729.7396, 387.03674, 299.4135)
CameraSetXYZ(-729.0317, 385.36002, 299.5287, -729.7147, 386.08142, 299.41556)
CameraSetXYZ(-731.6686, -630.00653, 6.095325, -730.84235, -629.4809, 6.297467)
CameraSetXYZ(-733.4917, 485.34534, 3.120918, -732.5328, 485.61057, 3.21997)
CameraSetXYZ(-733.6162, 370.13602, 299.5328, -734.5477, 369.7767, 299.4793)
CameraSetXYZ(-734.07837, 478.5458, 3.351803, -734.2828, 477.56732, 3.363241)
CameraSetXYZ(-734.67053, 422.53967, 2.5537, -733.9672, 423.22797, 2.73075)
CameraSetXYZ(-734.7173, 388.7518, 299.47632, -733.7308, 388.5906, 299.47113)
CameraSetXYZ(-738.05365, 483.88562, 3.625614, -738.93335, 484.3598, 3.590502)
CameraSetXYZ(-738.8009, 484.96503, 2.589849, -737.88794, 485.32837, 2.774806)
CameraSetXYZ(-741.10443, -79.66768, 8.970539, -742.0783, -79.45642, 9.052053)
CameraSetXYZ(-742.13306, -428.61383, 13.310422, -743.02075, -428.15454, 13.340721)
CameraSetXYZ(-742.4181, -394.3436, 16.10469, -742.1123, -395.10538, 15.533704)
CameraSetXYZ(-743.5867, -69.363495, 9.932215, -742.69934, -69.823555, 9.959297)
CameraSetXYZ(-744.9688, -51.954773, 10.44758, -745.50476, -52.79608, 10.516687)
CameraSetXYZ(-744.9813, -532.78, 8.323483, -745.1747, -533.7269, 8.578918)
CameraSetXYZ(-745.0174, -626.3674, 6.700609, -744.0291, -626.30493, 6.562034)
CameraSetXYZ(-745.9005, -625.6178, 4.381477, -746.1365, -624.6878, 4.662223)
CameraSetXYZ(-746.4159, -537.977, 26.178759, -752.092, -537.977, 26.178759)
CameraSetXYZ(-746.4159, y2, 26.178759, -752.092, y, 26.178759)
CameraSetXYZ(-746.4159, y2, 26.178759, x, y, 26.178759)
CameraSetXYZ(-746.4159, y2, z2, x, y, z)
CameraSetXYZ(-747.0648, 77.41318, 23.738522, -747.3322, 77.96439, 22.948328)
CameraSetXYZ(-749.1673, -536.1852, 12.608851, -749.6231, -536.949, 12.151998)
CameraSetXYZ(-751.4025, -537.356, 8.282816, -750.4518, -537.1463, 8.510356)
CameraSetXYZ(-753.387, 636.1529, 30.08654, -754.3299, 636.4834, 30.124773)
CameraSetXYZ(-754.04944, -76.997116, 10.207438, -754.346, -76.04292, 10.174994)
CameraSetXYZ(-754.5251, 86.886566, 29.066439, -753.9485, 86.495895, 28.349194)
CameraSetXYZ(-754.8379, 635.2183, 30.780767, -753.9233, 635.555, 31.003124)
CameraSetXYZ(-755.16815, 632.4347, 30.815426, -755.8021, 633.20026, 30.706554)
CameraSetXYZ(-756.3472, 636.40454, 30.011787, -757.19745, 636.9134, 30.146175)
CameraSetXYZ(-756.5916, -65.32355, 9.873087, -757.0953, -64.46868, 9.997118)
CameraSetXYZ(-757.7275, -445, 15.919205, -758.56744, -444.46576, 16.013308)
CameraSetXYZ(-761.0721, 635.9963, 30.517975, -760.0867, 635.83264, 30.472534)
CameraSetXYZ(-761.265, 304.796, 78.6007, -761.92865, 305.54236, 78.544655)
CameraSetXYZ(-762.7651, 634.8076, 30.484234, -761.8078, 635.0941, 30.522736)
CameraSetXYZ(-763.0238, 72.357956, 8.178526, -763.2157, 73.30806, 7.932799)
CameraSetXYZ(-763.4773, 306.53128, 78.49783, -763.7385, 307.49515, 78.55007)
CameraSetXYZ(-764.6866, 78.42735, 1.9094418, -760.4742, 78.22133, 1.4042269)
CameraSetXYZ(-768.02185, 204.71379, 90.55249, -769.01086, 204.56741, 90.56719)
CameraSetXYZ(-769.9688, 308.01367, 78.294075, -769.6935, 308.93536, 78.56688)
CameraSetXYZ(-770.22723, 307.27567, 78.10176, -769.9627, 308.2095, 78.33977)
CameraSetXYZ(-770.6998, 202.60297, 91.63631, -771.6537, 202.90048, 91.59966)
CameraSetXYZ(-771.9085, 191.86423, 91.44863, -772.4205, 192.723, 91.43143)
CameraSetXYZ(-772.4813, 82.236694, 8.010293, -769.623, 81.1636, 7.4702454)
CameraSetXYZ(-772.8252, 192.53395, 91.43997, -773.26776, 193.43034, 91.4346)
CameraSetXYZ(-773.0398, 354.38376, 7.76424, -773.6949, 355.13223, 7.662468)
CameraSetXYZ(-773.52386, 195.38268, 91.5359, -773.37354, 194.3946, 91.50741)
CameraSetXYZ(-773.88855, 354.4307, 7.510019, -773.88544, 353.45074, 7.708982)
CameraSetXYZ(-774.0905, 356.01126, 7.425745, -774.8027, 356.70676, 7.518255)
CameraSetXYZ(-774.10675, 201.86986, 91.276726, -773.4385, 202.6095, 91.35538)
CameraSetXYZ(-775.92236, 627.81165, 32.217068, -774.97766, 628.1374, 32.18397)
CameraSetXYZ(-776.0425, 359.52112, 8.240999, -775.92285, 358.56363, 7.979183)
CameraSetXYZ(-776.6641, 202.39737, 91.45094, -775.70514, 202.67747, 91.411514)
CameraSetXYZ(-792.7507, 75.741035, 11.883444, -792.30035, 68.92447, 10.46345)
CameraSetXYZ(-8.095899, -63.381435, 9.425729, -8.595063, -62.571785, 9.117247)
CameraSetXYZ(-8.544561, -110.093994, 3.8510067, -3.6803718, -107.32619, 2.251011)
CameraSetXYZ(-9.571856, -73.33005, 2.453491, -8.75781, -73.91009, 2.481419)
CameraSetXYZ(102.7899, -58.00623, 7.478976, 103.739136, -57.718952, 7.351126)
CameraSetXYZ(103.56771, -125.023994, 7.458748, 103.49873, -126.01162, 7.599507)
CameraSetXYZ(106.75926, -118.264915, 7.836123, 106.303665, -117.37477, 7.831728)
CameraSetXYZ(107.458435, -118.89011, 6.98363, 106.95887, -118.042274, 7.161223)
CameraSetXYZ(111.42491, -513.4068, 4.782094, 113.09775, -513.05524, 4.421984)
CameraSetXYZ(114.337456, -122.97675, 12.307152, 115.11542, -123.36214, 11.811224)
CameraSetXYZ(114.8016, -3.185778, 7.536414, 115.24289, -2.292768, 7.4498)
CameraSetXYZ(115.739494, 1.333625, 7.967975, 116.65231, 1.705655, 7.800253)
CameraSetXYZ(119.42189, 3.565211, 7.872099, 118.644585, 2.942935, 7.786284)
CameraSetXYZ(119.74129, -387.15884, 5.153429, 120.4866, -387.7998, 4.970528)
CameraSetXYZ(120.09238, -395.6573, 4.364055, 121.05116, -395.41248, 4.220038)
CameraSetXYZ(121.32155, -126.91157, 10.738907, 122.236, -126.9786, 10.339844)
CameraSetXYZ(122.56052, 451.18747, 7.548725, 123.529434, 450.94116, 7.538793)
CameraSetXYZ(124.542755, -128.21509, 9.618655, 123.738754, -127.76074, 9.235094)
CameraSetXYZ(124.66725, -394.8919, 3.525755, 123.68189, -394.97818, 3.672737)
CameraSetXYZ(124.67825, -124.934784, 9.618258, 123.72747, -125.08598, 9.347862)
CameraSetXYZ(125.54463, -391.90854, 2.874992, 125.86193, -392.84317, 3.035046)
CameraSetXYZ(127.331924, 11.508741, 7.602786, 126.3382, 11.605961, 7.548733)
CameraSetXYZ(127.90819, 24.97325, 7.055124, 128.21823, 25.78979, 7.541829)
CameraSetXYZ(128.40541, 24.343134, 6.822272, 129.01411, 25.118198, 6.99084)
CameraSetXYZ(128.72765, 24.309237, 7.239811, 129.0967, 25.229708, 7.368386)
CameraSetXYZ(129.82951, -402.33475, 3.904367, 129.37022, -401.44717, 3.872292)
CameraSetXYZ(13.125735, -144.02072, 13.466585, 14.076521, -143.74162, 13.332967)
CameraSetXYZ(130.26767, -508.5833, 4.385609, 130.9741, -509.24243, 4.643035)
CameraSetXYZ(132.54547, -131.91151, 10.314656, 133.31483, -132.09818, 9.703887)
CameraSetXYZ(136.47432, -132.6544, 7.835443, 136.13542, -133.56049, 8.088558)
CameraSetXYZ(138.13452, -132.61316, 7.045309, 137.16325, -132.61761, 7.282878)
CameraSetXYZ(140.32545, -480.91217, 9.82513, 141.23207, -480.5761, 9.570581)
CameraSetXYZ(140.74724, -481.16742, 3.697289, 141.36084, -481.95502, 3.64295)
CameraSetXYZ(140.95631, -486.0027, 2.837482, 141.90042, -485.81522, 3.108214)
CameraSetXYZ(141.089, 478.2689, 8.900843, 140.42162, 479.0092, 8.825794)
CameraSetXYZ(141.5715, -486.1115, 3.936998, 142.46953, -485.6812, 3.846547)
CameraSetXYZ(144.53893, -482.29083, 3.760373, 144.33101, -483.26828, 3.725718)
CameraSetXYZ(145.07, -482.23526, 3.708673, 144.68994, -483.15945, 3.744788)
CameraSetXYZ(149.1169, -484.5159, 6.325603, 149.53304, -483.67908, 5.969962)
CameraSetXYZ(151.55801, 432.1491, 8.194367, 152.30055, 431.48544, 8.104391)
CameraSetXYZ(153.20938, -449.5874, 3.360861, 152.92625, -450.5431, 3.439104)
CameraSetXYZ(154.24036, 22.27509, 8.48136, 157.36598, 21.6731, 7.4697948)
CameraSetXYZ(154.55426, -473.3268, 3.962846, 154.18558, -474.2389, 4.14174)
CameraSetXYZ(155.06241, -475.2318, 3.450526, 154.53073, -476.02295, 3.75262)
CameraSetXYZ(155.2142, 4.66866, 7.610484, 156.08488, 5.150542, 7.707921)
CameraSetXYZ(155.65022, 432.3259, 7.174262, 155.87215, 431.36752, 7.353779)
CameraSetXYZ(157.34682, -474.98764, 3.13711, 156.72914, -475.728, 3.402073)
CameraSetXYZ(157.37164, 2.227986, 7.2235, 156.39996, 1.993942, 7.198375)
CameraSetXYZ(160.10028, 7.250284, 7.124797, 159.12938, 7.059014, 7.268433)
CameraSetXYZ(160.97711, -165.2791, 9.864191, 161.4937, -164.4234, 9.834362)
CameraSetXYZ(161.50214, -161.16605, 8.283806, 162.4786, -160.96713, 8.364085)
CameraSetXYZ(162.3, 440.1, dz, dx, dy, dz)
CameraSetXYZ(163.12056, -159.45274, 8.842199, 164.06009, -159.77383, 8.960558)
CameraSetXYZ(163.33458, 454.72284, 9.482884, 163.7845, 455.61584, 9.487644)
CameraSetXYZ(164.00285, -163.56578, 9.202619, 164.43384, -162.67166, 9.08219)
CameraSetXYZ(164.07652, 437.95673, 6.260658, 163.50488, 438.7185, 6.56444)
CameraSetXYZ(164.18665, 10.706492, 9.229423, 163.35844, 10.172656, 9.058949)
CameraSetXYZ(165.70955, -8.52017, 7.402529, 166.57417, -8.022421, 7.335853)
CameraSetXYZ(166.31854, -163.23898, 9.004641, 166.13483, -162.2562, 9.020187)
CameraSetXYZ(169.10414, -3.296641, 7.142729, 169.20985, -4.289656, 7.188948)
CameraSetXYZ(169.54396, -2.814726, 6.951551, 169.49521, -3.811324, 7.015233)
CameraSetXYZ(171.04077, -8.875181, 7.503707, 170.47609, -8.051736, 7.449919)
CameraSetXYZ(171.33061, -9.167021, 7.287096, 170.71982, -8.375427, 7.298646)
CameraSetXYZ(171.65514, -9.538472, 7.243635, 171.08614, -8.716345, 7.255291)
CameraSetXYZ(171.68631, -5.171072, 6.315695, 170.90573, -5.758317, 6.528976)
CameraSetXYZ(171.75958, -8.031951, 7.249989, 171.08676, -7.292189, 7.25409)
CameraSetXYZ(171.95653, 15.019173, 7.10359, 171.17491, 15.608242, 7.306226)
CameraSetXYZ(172.49997, -73.60599, 42, 173.49889, -73.59898, 41.95471)
CameraSetXYZ(173.48853, -69.161736, 23.542883, 174.1904, -69.72885, 23.973589)
CameraSetXYZ(179.7372, 3.151522, 6.393147, 179.32288, 4.061574, 6.403118)
CameraSetXYZ(179.95161, 434.85175, 7.635641, 180.7026, 435.50375, 7.532141)
CameraSetXYZ(181.48259, 6.016747, 9.577523, 180.8901, 6.738142, 9.219236)
CameraSetXYZ(182.78473, -14.867686, 8.745096, 183.37775, -15.562892, 8.338923)
CameraSetXYZ(184.13364, 436.1515, 6.715083, 183.17294, 436.16342, 6.992436)
CameraSetXYZ(184.13647, -21.066463, 8.240224, 184.58311, -20.210419, 7.980383)
CameraSetXYZ(184.81725, -456.4249, 3.527322, 185.7978, -456.2375, 3.584658)
CameraSetXYZ(185.33562, -37.604313, 8.824678, 185.6637, -36.713486, 8.510473)
CameraSetXYZ(188.14597, -144.61464, 9.608352, 187.8405, -143.67563, 9.45051)
CameraSetXYZ(190.01863, -136.44211, 9.200684, 189.60976, -137.33684, 9.021392)
CameraSetXYZ(192.3034, -28.031298, 6.735517, 191.66278, -28.770185, 6.943917)
CameraSetXYZ(194.2338, 467.338, 9.207143, 195.01477, 467.8911, 8.917427)
CameraSetXYZ(196.70465, -36.070084, 8.80645, 196.97766, -35.125908, 8.622165)
CameraSetXYZ(198.85011, -34.776733, 10.538029, 198.20328, -34.15361, 10.09888)
CameraSetXYZ(205.89542, 424.03558, 5.607414, 206.86961, 424.25504, 5.659357)
CameraSetXYZ(209.6018, 423.38013, 4.852606, 208.98424, 424.1485, 5.019646)
CameraSetXYZ(209.83421, 459.3279, 6.052409, 210.54645, 459.99463, 6.271826)
CameraSetXYZ(210.5629, 422.19632, 4.557801, 210.01942, 423.00427, 4.785322)
CameraSetXYZ(215.46382, -73.07923, 9.913595, 216.46341, -73.08206, 9.886928)
CameraSetXYZ(216.30237, -73.20678, 10.896948, 217.27576, -73.207855, 10.672375)
CameraSetXYZ(218.36806, -74.2167, 9.846148, 219.08235, -73.52165, 9.927397)
CameraSetXYZ(221.72185, -36.276695, 6.4954324, 215.9877, -31.088358, 7.5356026)
CameraSetXYZ(224.12473, -73.190994, 8.785095, 223.18439, -73.1228, 9.118213)
CameraSetXYZ(225.26263, 6.327565, 6.599787, 226.20638, 6.022959, 6.727721)
CameraSetXYZ(226.7518, -74.58378, 7.517513, 227.74557, -74.48604, 7.542999)
CameraSetXYZ(23.864506, -137.62936, 3.821961, 24.769567, -137.21213, 3.90397)
CameraSetXYZ(231.01746, 8.849008, 7.747287, 231.31964, 7.91919, 7.537743)
CameraSetXYZ(234.62921, 6.093278, 7.087561, 233.65298, 5.897002, 7.178473)
CameraSetXYZ(235.07718, 6.766103, 6.505191, 234.1353, 6.554569, 6.765789)
CameraSetXYZ(238.97276, -132.04884, 8.799355, 239.24603, -131.1322, 8.507829)
CameraSetXYZ(239.43936, -118.954414, 7.672601, 239.63142, -119.92838, 7.5527)
CameraSetXYZ(24.4817, -352.843, 2.81197, 29.9067, -357.025, 3.121985)
CameraSetXYZ(240.49532, -131.45654, 7.289726, 241.23705, -130.78592, 7.290389)
CameraSetXYZ(240.885, -248.691, 37.14, 242.195, -254.391, 35.901)
CameraSetXYZ(242.38644, -25.24383, 7.048032, 243.09528, -24.552046, 7.185382)
CameraSetXYZ(250.81638, 315.11426, 7.10624, 250.24348, 315.9081, 7.309675)
CameraSetXYZ(262.03876, -107.05659, 7.649979, 262.90775, -107.54619, 7.580511)
CameraSetXYZ(268.70038, -117.49149, 8.010346, 269.24255, -116.65308, 7.955737)
CameraSetXYZ(269.5932, -102.982864, 7.619021, 270.05994, -103.86416, 7.545108)
CameraSetXYZ(269.75888, -114.511444, 7.713468, 269.93295, -113.52723, 7.682266)
CameraSetXYZ(271.4686, -107.84492, 7.986414, 271.4614, -106.85376, 7.856282)
CameraSetXYZ(272.01678, -103.932014, 7.784328, 271.86807, -104.918785, 7.722927)
CameraSetXYZ(280.07404, -75.32707, 7.504412, 280.9235, -74.80684, 7.418878)
CameraSetXYZ(282.76654, -73.90239, 6.329092, 281.8066, -73.70586, 6.528721)
CameraSetXYZ(283.34317, -460.46704, 5.451378, 284.2813, -460.8025, 5.366951)
CameraSetXYZ(286.70712, -74.012, 7.28272, 285.7094, -73.94914, 7.259933)
CameraSetXYZ(288.3408, -461.30362, 6.196917, 287.37122, -461.3564, 5.959265)
CameraSetXYZ(29.671312, -135.59628, 8.640634, 30.552816, -135.13303, 8.731487)
CameraSetXYZ(296.0974, -427.41077, 5.95378, 296.9142, -426.89893, 5.687579)
CameraSetXYZ(298.85968, -73.13537, 9.273766, 297.86002, -73.110916, 9.280636)
CameraSetXYZ(314.30627, 242.54433, 4.923222, 313.72803, 241.77351, 5.190253)
CameraSetXYZ(319.469, -81.274, 7.435, 312.42, -78.77, 6.33)
CameraSetXYZ(324.55823, 269.22955, 7.751029, 325.4314, 269.66974, 7.960064)
CameraSetXYZ(329.16235, 228.57582, 6.054848, 329.86694, 227.86958, 5.986094)
CameraSetXYZ(329.23877, 277.04636, 7.521709, 329.7032, 276.16272, 7.467021)
CameraSetXYZ(337.77795, 224.96237, 6.407122, 338.51523, 224.28859, 6.359848)
CameraSetXYZ(339.1834, 219.69032, 6.469275, 339.5291, 220.626, 6.401867)
CameraSetXYZ(341.7389, 222.5517, 6.215684, 340.77945, 222.27452, 6.265081)
CameraSetXYZ(344.96176, 217.97504, 6.145543, 345.2788, 218.92291, 6.174417)
CameraSetXYZ(356.68954, -234.01938, 5.834777, 356.21167, -234.84372, 5.531477)
CameraSetXYZ(36.18411, -132.22598, 3.949842, 35.242622, -132.5613, 3.982883)
CameraSetXYZ(385.51437, 280.40115, 9.351956, 386.4697, 280.26627, 9.614847)
CameraSetXYZ(391.0158, 144.11938, 6.232622, 392.003, 144.24667, 6.328549)
CameraSetXYZ(397.5877, -109.68237, 7.372814, 396.6171, -109.44856, 7.316334)
CameraSetXYZ(404.6507, 500.78845, 22.782606, 404.2575, 501.70367, 22.869776)
CameraSetXYZ(409.28677, 244.62155, 10.363867, 409.75677, 243.74342, 10.451683)
CameraSetXYZ(409.88898, 242.38374, 10.378567, 410.62692, 241.71104, 10.424344)
CameraSetXYZ(410.25504, 238.29808, 10.296689, 410.8849, 239.06924, 10.381994)
CameraSetXYZ(43.559174, -140.24785, 3.387123, 43.75394, -139.2694, 3.454439)
CameraSetXYZ(43.568047, -133.70268, 3.926415, 44.52883, -133.90245, 4.118478)
CameraSetXYZ(430.55447, -260.60406, 3.296017, 430.58533, -261.58606, 3.482)
CameraSetXYZ(431.07797, -217.62842, 4.784076, 430.89832, -218.61191, 4.765756)
CameraSetXYZ(444.482, 197.447, 10.132, 450.301, 197.406, 9.732)
CameraSetXYZ(445.4474, 488.47275, 24.408869, 444.75018, 487.75723, 24.36852)
CameraSetXYZ(447.92715, -452.50043, 3.676833, 448.8808, -452.2007, 3.654106)
CameraSetXYZ(448.2099, -454.3673, 4.281082, 448.99185, -453.7759, 4.084187)
CameraSetXYZ(448.43118, -453.8729, 3.481086, 449.27124, -453.35522, 3.643245)
CameraSetXYZ(449.7887, -450.4285, 3.799799, 450.55457, -451.05997, 3.918999)
CameraSetXYZ(450.29413, -452.8266, 4.581086, 449.91525, -452.0024, 3.660151)
CameraSetXYZ(450.80664, -453.09134, 5.081076, 451.1208, -452.2524, 4.636652)
CameraSetXYZ(451.51382, -455.31387, 3.881687, 451.39505, -454.32098, 3.889789)
CameraSetXYZ(475.806, 309.8449, 23.792383, 476.62854, 309.35764, 23.499746)
CameraSetXYZ(476.1362, 391.63004, 17.436625, 476.62936, 390.76035, 17.417648)
CameraSetXYZ(479.0536, 351.00787, 19.511131, 478.19217, 351.5156, 19.51383)
CameraSetXYZ(481.197, 313.973, 23.942, 482.883, 309.266, 21.942)
CameraSetXYZ(482.6726, 269.51935, 22.598248, 483.3498, 270.1553, 22.228931)
CameraSetXYZ(483.14313, 277.39093, 20.41725, 482.1863, 277.19214, 20.629347)
CameraSetXYZ(483.9019, 348.02325, 19.313461, 483.08096, 348.59363, 19.29178)
CameraSetXYZ(484.4746, 306.08594, 21.861517, 483.70734, 306.72186, 21.778996)
CameraSetXYZ(484.6608, 272.67795, 20.88983, 484.3478, 271.73123, 20.965149)
CameraSetXYZ(486.25983, -423.79657, 5.521533, 487.11237, -424.3081, 5.415774)
CameraSetXYZ(487.0662, 345.84702, 19.144901, 486.40204, 346.59164, 19.209312)
CameraSetXYZ(488.47, 275.47244, 21.59046, 487.88367, 274.6648, 21.529163)
CameraSetXYZ(488.61404, -413.486, 3.125624, 489.45847, -412.96896, 3.265319)
CameraSetXYZ(489.37964, -439.3354, 3.433573, 489.5797, -438.35577, 3.451386)
CameraSetXYZ(489.68997, 274.44092, 23.409494, 488.9158, 274.0159, 22.940704)
CameraSetXYZ(492.5634, -117.63233, 6.968617, 491.74142, -117.06345, 6.941158)
CameraSetXYZ(492.9539, -409.0517, 3.508395, 492.92245, -410.05103, 3.492468)
CameraSetXYZ(493.0894, -429.39145, 3.763034, 492.2085, -428.9226, 3.827792)
CameraSetXYZ(499.01096, -432.5321, 5.459406, 500.00626, -432.59723, 5.391693)
CameraSetXYZ(5.177861, -57.770424, 2.518823, 5.51866, -56.837563, 2.40243)
CameraSetXYZ(50.305546, -148.113, 5.382324, 49.789753, -147.26782, 5.242621)
CameraSetXYZ(500.71524, -293.56427, 3.7230544, 501.63803, -290.18976, 3.1430483)
CameraSetXYZ(505.89886, -435.94614, 6.95325, 505.1477, -435.36276, 6.644832)
CameraSetXYZ(506.60873, -211.98091, 3.225362, 507.3514, -211.31346, 3.276938)
CameraSetXYZ(506.6459, -114.755394, 6.531527, 507.4622, -114.19067, 6.412071)
CameraSetXYZ(508.3472, -434.92203, 5.988695, 507.47607, -434.45657, 5.834953)
CameraSetXYZ(508.40573, -435.79477, 6.044368, 507.49744, -435.4033, 5.897112)
CameraSetXYZ(508.45724, -398.3562, 3.449038, 507.57617, -397.88782, 3.513284)
CameraSetXYZ(512.32794, -64.18165, 6.174207, 513.1554, -63.620415, 6.186368)
CameraSetXYZ(514.2725, -190.18013, 7.101344, 513.6727, -190.94771, 6.876837)
CameraSetXYZ(517.10706, -58.569523, 7.816613, 517.7849, -57.87431, 7.577494)
CameraSetXYZ(525.06335, -79.94685, 6.5370464, 527.70044, -69.73396, 5.2370296)
CameraSetXYZ(532.92816, 300.7724, 16.99246, 533.3162, 301.69092, 17.067421)
CameraSetXYZ(539.6545, -476.9065, 6.816537, 538.6742, -477.0885, 6.740471)
CameraSetXYZ(540.877, -109.256, 12.798, 545.193, -104.917, 10.1)
CameraSetXYZ(543.55676, -470.79813, 5.353992, 543.4832, -469.80347, 5.424284)
CameraSetXYZ(543.8899, -480.82288, 5.095084, 543.1719, -481.42267, 5.448016)
CameraSetXYZ(547.71875, -464.30264, 8.510677, 547.0781, -464.96863, 8.129441)
CameraSetXYZ(55.750095, -97.229095, 9.53612, 55.246677, -96.42208, 9.227898)
CameraSetXYZ(558.3849, 468.91272, 21.828033, 559.0781, 469.56958, 21.532858)
CameraSetXYZ(565.5701, 465.58386, 20.345194, 565.1159, 466.4571, 20.169064)
CameraSetXYZ(566.294, 468.706, 22.3773, 566.27, 473.702, 20.3773)
CameraSetXYZ(569.60297, -290.15594, 4.964992, 570.0377, -291.03503, 5.159698)
CameraSetXYZ(60.0062, -69.80368, 10.261972, 59.549133, -70.686714, 10.155866)
CameraSetXYZ(66.456825, -89.91024, 5.9025617, 69.05131, -89.33579, 6.0425286)
CameraSetXYZ(67.58179, -107.81211, 8.252475, 68.45856, -108.29146, 8.242161)
CameraSetXYZ(70.242256, -111.081474, 8.784476, 71.234665, -111.14678, 8.680552)
CameraSetXYZ(77.49009, -541.1016, 4.8550286, 72.62771, -544.7004, 4.3949227)
CameraSetXYZ(95.19139, -68.4279, 9.770363, 96.179184, -68.54063, 9.873886)
CameraSetXYZ(95.59912, -72.31499, 8.497162, 96.34237, -72.977295, 8.402911)
CameraSetXYZ(97.18688, -72.70781, 8.466475, 97.57633, -73.62578, 8.540709)
CameraSetXYZ(98.855415, -70.865875, 8.390983, 98.488884, -71.79569, 8.360713)
CameraSetXYZ(camx, camy, camz, px, py, pz + 0.5)
CameraSetXYZ(camx, camy, camz, px, py, pz + 1)
CameraSetXYZ(camx, camy, camz, tarx, tary, tarz)
CameraSetXYZ(spotX, spotY, spotZ + czOff, bustX, bustY, bustZ + bzOff)
CameraSetXYZ(spotX, spotY, spotZ, bustX, bustY, bustZ + 1.65)
CameraSetXYZ(x, y, z, cx, cy, cz - 0.1)
CameraSetXYZ(x, y, z, fx, fy, fz)
CameraSetXYZ(x, y, z, px, py, pz + 1.5)
CameraSetXYZ(x1, y1, z1, x2, y2, z2)
CameraSetXYZ(Xc, Yc, z + race.cam_offset_z, Xs, Ys, z)
sub esp, 0x24
push esi
mov esi, dword ptr [esp+0x2C]
push esi
mov byte ptr [esp+0x8], 0x0
call 0x73AEA0
add esp, 0x4
cmp eax, 0x7
jl 0x11
push 0x6
push esi
call LuaParam::GetBool
add esp, 0x8
mov byte ptr [esp+0x4], al
cmp dword ptr [0xC3CCF8], 0x4
jz 0x1D
push 0x0
push 0x0
push 0x1
push 0x0
push ecx
mov eax, esp
mov ecx, 0xC3CC68
mov dword ptr [eax], 0x4
call 0x4F2C20
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x14], st
push 0x1
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x18], st
push 0x0
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x34], st
fld st, dword ptr [esp+0x20]
push 0x5
fstp dword ptr [esp+0x3C], st
push esi
fld st, dword ptr [esp+0x2C]
fstp dword ptr [esp+0x44], st
call LuaParam::GetFloat
push 0x4
fstp dword ptr [esp+0x2C], st
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x34], st
push 0x3
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x40], st
fld st, dword ptr [esp+0x3C]
add esp, 0x2C
fstp dword ptr [esp+0x18], st
mov eax, esp
fld st, dword ptr [esp+0xC]
mov ecx, 0xC3CC68
fstp dword ptr [esp+0x1C], st
mov dword ptr [eax], 0x4
call 0x4F3590
mov ecx, dword ptr [esp+0x4]
push ecx
mov ecx, dword ptr [esp+0x14]
push 0x1
sub esp, 0xC
mov edx, esp
mov dword ptr [edx], ecx
mov ecx, dword ptr [esp+0x28]
mov dword ptr [edx+0x4], ecx
mov ecx, dword ptr [esp+0x2C]
mov dword ptr [edx+0x8], ecx
mov ecx, dword ptr [esp+0x30]
sub esp, 0xC
mov edx, esp
mov dword ptr [edx], ecx
mov ecx, dword ptr [esp+0x40]
mov dword ptr [edx+0x4], ecx
mov ecx, dword ptr [esp+0x44]
mov dword ptr [edx+0x8], ecx
mov ecx, eax
call 0x507C60
xor eax, eax
pop esi
add esp, 0x24
ret
local CanCreateNearXYZ = CanCreateVehicleNearXYZ(x, y, z)
sub esp, 0x18
push esi
mov esi, dword ptr [esp+0x20]
push 0x0
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0xC], st
push 0x1
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x18], st
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x24], st
fld st, dword ptr [esp+0x1C]
mov ecx, dword ptr [0xBCD080]
fstp dword ptr [esp+0x28], st
add esp, 0x18
fld st, dword ptr [esp+0x8]
lea eax, ptr [esp+0x10]
fstp dword ptr [esp+0x14], st
push eax
fld st, dword ptr [esp+0x10]
fstp dword ptr [esp+0x1C], st
call 0x41FF20
push eax
push esi
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
pop esi
add esp, 0x18
ret
SHARED
Returns true if file writing is allowed. It is not allowed after connecting to a server, or if the current script is zipped.
--print(">>>[RUI]", "car.is: " .. car.id, "car.oldHealth: " .. car.oldHealth, "car.newDamage: " .. car.newDamage, "CarGetDamageNumber:" .. tostring(CarGetDamageNumber(car.id)))
gNewDamageState = CarGetDamageNumber(gHattrickCar)
gOldDamageState = CarGetDamageNumber(gHattrickCar)
if CarGetDamageNumber(car) == 1 and not c_damage01 then
if CarGetDamageNumber(car) == 10 and not c_damage10 then
if CarGetDamageNumber(car) == 11 and not c_damage11 then
if CarGetDamageNumber(car) == 12 and not c_damage12 then
if CarGetDamageNumber(car) == 13 and not c_damage13 then
if CarGetDamageNumber(car) == 14 and not c_damage14 then
if CarGetDamageNumber(car) == 15 and not c_damage15 then
if CarGetDamageNumber(car) == 2 and not c_damage02 then
if CarGetDamageNumber(car) == 3 and not c_damage03 then
if CarGetDamageNumber(car) == 4 and not c_damage04 then
if CarGetDamageNumber(car) == 5 and not c_damage05 then
if CarGetDamageNumber(car) == 6 and not c_damage06 then
if CarGetDamageNumber(car) == 7 and not c_damage07 then
if CarGetDamageNumber(car) == 8 and not c_damage08 then
if CarGetDamageNumber(car) == 9 and not c_damage09 then
if CarGetDamageNumber(car) >= 2 then
push esi
mov esi, dword ptr [0xC0F5F4]
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetInt
mov ecx, dword ptr [esi+0x4]
mov edx, eax
sar edx, 0x8
add esp, 0x8
cmp byte ptr [edx+ecx*1], al
jnz 0xC
mov ecx, dword ptr [esi+0xC]
imul ecx, edx
add ecx, dword ptr [esi]
jmp 0x4
xor ecx, ecx
call 0x4A8990
push eax
push edi
call LuaParam::PushInt
add esp, 0x8
pop edi
mov eax, 0x1
pop esi
ret
CarnivalBallTossDecCount()
mov ecx, dword ptr [0x20C8704]
mov eax, dword ptr [ecx+0xC4]
test eax, eax
jz 0xB
add eax, 0xFFFFFFFF
mov dword ptr [ecx+0xC4], eax
xor eax, eax
ret
gCurrentBallCount = CarnivalBallTossGetCount()
mov eax, dword ptr [0x20C8704]
mov ecx, dword ptr [eax+0xC4]
mov edx, dword ptr [esp+0x4]
push ecx
push edx
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
ret
-- never used
mov eax, dword ptr [0x20C8704]
add dword ptr [eax+0xC4], 0x1
xor eax, eax
ret
CarnivalBallTossSetCount(0)
CarnivalBallTossSetCount(maxC)
mov eax, dword ptr [esp+0x4]
push esi
mov esi, dword ptr [0x20C8704]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x8
test eax, eax
jl 0x8
mov dword ptr [esi+0xC4], eax
xor eax, eax
pop esi
ret
CarnivalDunkTankDecCount()
mov ecx, dword ptr [0x20C8704]
mov eax, dword ptr [ecx+0xE4]
test eax, eax
jz 0xB
add eax, 0xFFFFFFFF
mov dword ptr [ecx+0xE4], eax
xor eax, eax
ret
gCurrentBallCount = CarnivalDunkTankGetCount()
mov eax, dword ptr [0x20C8704]
mov ecx, dword ptr [eax+0xE4]
mov edx, dword ptr [esp+0x4]
push ecx
push edx
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
ret
tx, ty = CarnivalDunkTankGetTargetPos()
mov ecx, dword ptr [0x20C8704]
sub esp, 0xC
push esi
lea eax, ptr [esp+0x4]
push eax
call 0x6D7FF0
fld st, dword ptr [esp+0x4]
mov esi, dword ptr [esp+0x14]
push ecx
fstp dword ptr [esp], st
push esi
call LuaParam::PushFloat
fld st, dword ptr [esp+0x10]
add esp, 0x4
fstp dword ptr [esp], st
push esi
call LuaParam::PushFloat
fld st, dword ptr [esp+0x14]
add esp, 0x4
fstp dword ptr [esp], st
push esi
call LuaParam::PushFloat
add esp, 0x8
mov eax, 0x3
pop esi
add esp, 0xC
ret
-- never used
mov eax, dword ptr [0x20C8704]
add dword ptr [eax+0xE4], 0x1
xor eax, eax
ret
CarnivalDunkTankSetCount(maxC)
mov eax, dword ptr [esp+0x4]
push esi
mov esi, dword ptr [0x20C8704]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x8
test eax, eax
jl 0x8
mov dword ptr [esi+0xE4], eax
xor eax, eax
pop esi
ret
CarnivalDunkTankStartAiming()
mov ecx, dword ptr [0x20C8704]
call 0x6D8290
xor eax, eax
ret
CarnivalShootAddNumber(gHitScore, sx, sy, sz + 0.6)
sub esp, 0xC
push esi
mov esi, dword ptr [esp+0x14]
push edi
push 0x1
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x10], st
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x1C], st
push 0x3
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x28], st
mov ecx, dword ptr [esp+0x20]
mov edx, dword ptr [esp+0x24]
mov edi, dword ptr [0x20C8704]
add esp, 0xC
mov eax, esp
mov dword ptr [eax], ecx
mov ecx, dword ptr [esp+0x1C]
push 0x0
mov dword ptr [eax+0x4], edx
push esi
mov dword ptr [eax+0x8], ecx
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, edi
call 0x6D8880
pop edi
xor eax, eax
pop esi
add esp, 0xC
ret
power = CarnivalStrikerMeterGetLevel()
push ecx
mov eax, dword ptr [0x20C8704]
fld st, dword ptr [eax+0xC8]
push ecx
fmul st, qword ptr [0x900130]
mov byte ptr [eax+0xC4], 0x1
mov eax, dword ptr [esp+0xC]
fstp dword ptr [esp+0x4], st
fld st, dword ptr [esp+0x4]
fstp dword ptr [esp], st
push eax
call LuaParam::PushFloat
mov eax, 0x1
add esp, 0xC
ret
-- never used
push ecx
mov eax, dword ptr [0x20C8704]
xor ecx, ecx
cmp byte ptr [eax+0xC4], cl
jnz 0xE
cmp byte ptr [eax+0x4], cl
mov dword ptr [esp], 0x1
jnz 0x5
mov dword ptr [esp], ecx
fild st, dword ptr [esp]
mov byte ptr [esp], 0x1
fcomp st, dword ptr [0x8FF1F0]
fnstsw ax
test ah, 0x44
jp 0x5
mov byte ptr [esp], cl
mov eax, dword ptr [esp]
mov ecx, dword ptr [esp+0x8]
push eax
push ecx
call LuaParam::PushBool
mov eax, 0x1
add esp, 0xC
ret
CarnivalStrikerMeterSetParams(1.8, 9, 0.08, 2, 0.01)
push esi
mov esi, dword ptr [esp+0x8]
push edi
mov edi, dword ptr [0x20C8704]
push 0x0
push esi
call LuaParam::GetFloat
fstp dword ptr [edi+0xCC], st
mov edi, dword ptr [0x20C8704]
push 0x1
push esi
call LuaParam::GetFloat
fstp dword ptr [edi+0xD0], st
mov edi, dword ptr [0x20C8704]
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [edi+0xDC], st
push esi
call LuaParam::GetParamCount
add esp, 0x1C
cmp eax, 0x3
jle 0x3B
mov edi, dword ptr [0x20C8704]
push 0x3
push esi
call LuaParam::GetFloat
fstp dword ptr [edi+0xD8], st
push esi
call LuaParam::GetParamCount
add esp, 0xC
cmp eax, 0x4
jle 0x19
mov edi, dword ptr [0x20C8704]
push 0x4
push esi
call LuaParam::GetFloat
fstp dword ptr [edi+0xD4], st
add esp, 0x8
pop edi
xor eax, eax
pop esi
ret
CarnivalStrikerMeterStart()
mov eax, dword ptr [0x20C8704]
fldz
fst dword ptr [eax+0xE4], st
mov byte ptr [eax+0xC4], 0x0
fstp dword ptr [eax+0xC8], st
xor eax, eax
ret
elseif ChapterGet() == 2 then
if 1 >= ChapterGet() then
if ChapterGet() < 2 then
if ChapterGet() < 4 then
if ChapterGet() <= 2 then
if ChapterGet() <= 3 then
if ChapterGet() <= 4 then
if ChapterGet() == 0 then
if ChapterGet() == 2 and savedData == 1 then
if ChapterGet() == 2 then
if ChapterGet() ~= 2 and savedData == 1 then
if ChapterGet() ~= 2 then
if RainFlag == false and (WeatherGet() == 2 or WeatherGet() == 5) and ChapterGet() ~= 3 then
isNotChapterOne = ChapterGet() ~= 0 or 0 < GetMissionAttemptCount("2_01")
local CurrentChapter = ChapterGet()
movzx eax, byte ptr [0xA147E0]
mov ecx, dword ptr [esp+0x4]
push eax
push ecx
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
ret
ChapterSet(1)
ChapterSet(2)
ChapterSet(3)
ChapterSet(4)
ChapterSet(5)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, 0xA147E0
call 0x4545C0
mov ecx, dword ptr [0xC674CC]
test ecx, ecx
jz 0x7
call 0x54AD80
xor eax, eax
ret
-- never used
sub esp, 0xC
mov ecx, dword ptr [0x20C8704]
call 0x824EC0
mov ecx, dword ptr [0x20C8704]
mov dword ptr [esp], eax
fild st, dword ptr [esp]
fstp dword ptr [esp], st
fld st, dword ptr [esp]
fstp qword ptr [esp+0x4], st
call 0x6F2E70
mov dword ptr [esp], eax
fild st, dword ptr [esp]
mov eax, dword ptr [esp+0x10]
push ecx
fdivr st, qword ptr [esp+0x8]
fmul st, qword ptr [0x900130]
fstp dword ptr [esp+0x4], st
fld st, dword ptr [esp+0x4]
fstp dword ptr [esp], st
push eax
call LuaParam::PushFloat
mov eax, 0x1
add esp, 0x14
ret
-- never used
push ecx
mov ecx, dword ptr [0x20C8704]
call 0x6E40D0
mov ecx, dword ptr [esp+0x8]
mov byte ptr [esp], al
mov eax, dword ptr [esp]
push eax
push ecx
call LuaParam::PushBool
mov eax, 0x1
add esp, 0xC
ret
if ClassBiologyIsBadMove() then
mov eax, dword ptr [0x20C8704]
movzx ecx, byte ptr [eax+0x119]
mov edx, dword ptr [esp+0x4]
push ecx
push edx
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
ret
if ClassBiologyIsGrossOut() then
mov eax, dword ptr [0x20C8704]
movzx ecx, byte ptr [eax+0x11B]
mov edx, dword ptr [esp+0x4]
push ecx
push edx
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
ret
ClassBiologyResetBadMove()
mov eax, dword ptr [0x20C8704]
mov byte ptr [eax+0x119], 0x0
xor eax, eax
ret
ClassBiologyResetGrossOut()
mov eax, dword ptr [0x20C8704]
mov byte ptr [eax+0x11B], 0x0
xor eax, eax
ret
ClassBiologySetAnimal(nCurrentClass - 1)
mov eax, dword ptr [esp+0x4]
push esi
mov esi, dword ptr [0x20C8704]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, esi
call 0x6E4080
xor eax, eax
pop esi
ret
-- never used
mov eax, dword ptr [esp+0x4]
push esi
mov esi, dword ptr [0x20C8704]
push 0x0
push eax
call LuaParam::GetInt
sub eax, 0x1
add esp, 0x8
mov dword ptr [esi+0x40], eax
xor eax, eax
pop esi
ret
ClassBiologySetScorePercentage(tblClasses[nCurrentClass].percent)
push ecx
mov eax, dword ptr [esp+0x8]
push 0x0
push eax
call LuaParam::GetInt
mov ecx, dword ptr [0x20C8704]
mov dword ptr [esp+0x8], eax
fild st, dword ptr [esp+0x8]
xor eax, eax
fmul st, qword ptr [0x900D30]
fstp dword ptr [esp+0x8], st
fld st, dword ptr [esp+0x8]
fstp dword ptr [ecx+0x100], st
add esp, 0xC
ret
ClassBiologySetTimer(tblClasses[nCurrentClass].timer, 0)
ClassBiologySetTimer(tblClasses[nCurrentClass].timer, tblClasses[nCurrentClass].taxicab)
sub esp, 0x8
push esi
mov esi, dword ptr [esp+0x10]
push esi
call LuaParam::GetParamCount
push 0x0
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x14], st
fldz
push esi
fstp dword ptr [esp+0x14], st
call LuaParam::GetParamCount
add esp, 0x10
cmp eax, 0x2
jl 0x11
push 0x1
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0xC], st
add esp, 0x8
fld st, dword ptr [esp+0x4]
mov ecx, dword ptr [0x20C8704]
sub esp, 0x8
fstp dword ptr [esp+0x4], st
fld st, dword ptr [esp+0x10]
fstp dword ptr [esp], st
call 0x6E40F0
xor eax, eax
pop esi
add esp, 0x8
ret
ClassBiologySetTrigFunc(15, F_ChangeMusic)
push esi
mov esi, dword ptr [0x20C8704]
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetFloat
fstp dword ptr [esi+0x2C], st
mov eax, dword ptr [0x20C8704]
add eax, 0xF4
push eax
push 0x1
push edi
call 0x5D9FD0
add esp, 0x14
pop edi
xor eax, eax
pop esi
ret
-- never used
mov eax, dword ptr [esp+0x4]
push esi
mov esi, dword ptr [0x20C8704]
push 0x0
push eax
call LuaParam::GetFloat
fstp dword ptr [esi+0x24], st
add esp, 0x8
xor eax, eax
pop esi
ret
-- never used
mov eax, dword ptr [esp+0x4]
push esi
mov esi, dword ptr [0x20C8704]
push 0x0
push eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x4], st
add esp, 0x4
mov ecx, esi
call 0x6E4110
xor eax, eax
pop esi
ret
-- never used
mov ecx, dword ptr [0x20C8704]
call 0x705790
xor eax, eax
ret
-- never used
push ecx
mov ecx, dword ptr [0x20C8704]
call 0x6E40B0
mov ecx, dword ptr [esp+0x8]
mov byte ptr [esp], al
mov eax, dword ptr [esp]
push eax
push ecx
call LuaParam::PushBool
mov eax, 0x1
add esp, 0xC
ret
ClassChemAddAction(0, value, 1, 0.5)
ClassChemAddAction(0, value, 1.1, 0.5)
ClassChemAddAction(0, value.act, value.waitTime + 2, value.window)
ClassChemAddAction(0, value.act, value.waitTime, 1)
ClassChemAddAction(0, value.act, value.waitTime, value.window)
ClassChemAddAction(seq1, ActAnimTable[1].act, myWaitTime + 2, ActAnimTable[1].window)
ClassChemAddAction(seq1, ActAnimTable[i].act, wait_time, ActAnimTable[i].window)
sub esp, 0x8
push ebx
push esi
mov esi, dword ptr [esp+0x14]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetInt
push 0x2
push esi
mov ebx, eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x28], st
push 0x3
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x2C], st
fldz
mov ecx, dword ptr [0x20C8704]
add esp, 0x10
fst dword ptr [esp+0xC], st
fstp dword ptr [esp+0x8], st
fld st, dword ptr [esp+0x1C]
fstp dword ptr [esp+0x4], st
fld st, dword ptr [esp+0x20]
fstp dword ptr [esp], st
push ebx
push edi
call 0x6EB350
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x8
ret
elseif ClassChemGetActionJustFailed(tblMoves[MIndex]) then
if ClassChemGetActionJustFailed(AAtable[curr].act) then
if ClassChemGetActionJustFailed(AnimSeq[L5_2].act) then
if ClassChemGetActionJustFailed(AnimSeq[L7_2].act) then
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push 0x0
push esi
call LuaParam::GetInt
mov ecx, dword ptr [0x20C8704]
add esp, 0x8
push eax
call 0x6EB3F0
mov byte ptr [esp+0x4], al
mov eax, dword ptr [esp+0x4]
push eax
push esi
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
pop esi
pop ecx
ret
if ClassChemGetActionJustFinished(AAtable[curr].act) then
if ClassChemGetActionJustFinished(AnimSeq[L5_2].act) then
if ClassChemGetActionJustFinished(AnimSeq[L7_2].act) then
if ClassChemGetActionJustFinished(tblMoves[MIndex]) then
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push 0x0
push esi
call LuaParam::GetInt
mov edx, dword ptr [0x20C8704]
mov ecx, dword ptr [edx+0xC94]
add esp, 0x8
test ecx, ecx
jl 0x34
push edi
mov edi, ecx
shl edi, 0x4
sub edi, ecx
mov ecx, dword ptr [edx+0xC98]
lea ecx, ptr [ecx+edi*2+0xA]
lea ecx, ptr [ecx+ecx*4]
cmp dword ptr [edx+ecx*4], eax
pop edi
jnz 0x19
cmp byte ptr [edx+0xCA5], 0x0
jz 0x10
mov byte ptr [edx+0xCA5], 0x0
mov byte ptr [esp+0x4], 0x1
jmp 0x7
mov byte ptr [esp+0x4], 0x0
mov edx, dword ptr [esp+0x4]
push edx
push esi
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
pop esi
pop ecx
ret
-- never used
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push 0x0
push esi
call LuaParam::GetInt
mov edx, dword ptr [0x20C8704]
mov ecx, dword ptr [edx+0xC94]
add esp, 0x8
test ecx, ecx
jl 0x34
push edi
mov edi, ecx
shl edi, 0x4
sub edi, ecx
mov ecx, dword ptr [edx+0xC98]
lea ecx, ptr [ecx+edi*2+0xA]
lea ecx, ptr [ecx+ecx*4]
cmp dword ptr [edx+ecx*4], eax
pop edi
jnz 0x19
cmp byte ptr [edx+0xC9D], 0x0
jz 0x10
mov byte ptr [edx+0xC9D], 0x0
mov byte ptr [esp+0x4], 0x1
jmp 0x7
mov byte ptr [esp+0x4], 0x0
mov edx, dword ptr [esp+0x4]
push edx
push esi
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
pop esi
pop ecx
ret
-- never used
mov ecx, dword ptr [0x20C8704]
call 0x6EB460
push eax
mov eax, dword ptr [esp+0x8]
push eax
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
ret
--DebugPrint("end: performance: " .. ClassChemGetPerformance())
mov eax, dword ptr [0x20C8704]
fld st, dword ptr [eax+0xCB0]
push ecx
mov ecx, dword ptr [esp+0x8]
fstp dword ptr [esp], st
push ecx
call LuaParam::PushFloat
add esp, 0x8
mov eax, 0x1
ret
ClassChemSetActiveActions(1)
ClassChemSetActiveActions(5)
ClassChemSetActiveActions(restrictActions)
mov eax, dword ptr [esp+0x4]
push esi
mov esi, dword ptr [0x20C8704]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, esi
call 0x6E8130
xor eax, eax
pop esi
ret
ClassChemSetGameType("CHEM")
ClassChemSetGameType("OTHER")
ClassChemSetGameType("SHOP")
mov eax, dword ptr [esp+0x4]
push esi
push edi
mov edi, dword ptr [0x20C8704]
push 0x0
push eax
call LuaParam::GetString
mov esi, eax
push 0x920C88
push esi
call 0x85F5DF
add esp, 0x10
test eax, eax
jnz 0xF
mov dword ptr [edi+0xC4], 0x1
pop edi
pop esi
ret
push 0x92BEB4
push esi
call 0x85F5DF
add esp, 0x8
neg eax
sbb eax, eax
and eax, 0xFFFFFFFE
add eax, 0x2
mov dword ptr [edi+0xC4], eax
pop edi
xor eax, eax
pop esi
ret
-- never used
mov eax, dword ptr [esp+0x4]
push esi
mov esi, dword ptr [0x20C8704]
push 0x0
push eax
call LuaParam::GetFloat
fstp dword ptr [esi+0xCD8], st
add esp, 0x8
xor eax, eax
pop esi
ret
ClassChemSetScrollyOnly(true)
mov eax, dword ptr [esp+0x4]
push esi
mov esi, dword ptr [0x20C8704]
push 0x0
push eax
call LuaParam::GetBool
add esp, 0x8
test al, al
mov byte ptr [esi+0xCD1], al
jz 0x9
mov byte ptr [esi+0xCD0], 0x1
xor eax, eax
pop esi
ret
ClassChemSetScrollyVisible(false)
mov eax, dword ptr [esp+0x4]
push esi
mov esi, dword ptr [0x20C8704]
push 0x0
push eax
call LuaParam::GetBool
add esp, 0x8
mov byte ptr [esi+0xCD0], al
xor eax, eax
pop esi
ret
-- never used
mov eax, dword ptr [esp+0x4]
push esi
mov esi, dword ptr [0x20C8704]
push 0x0
push eax
call LuaParam::GetFloat
fstp dword ptr [esi+0xCD4], st
add esp, 0x8
xor eax, eax
pop esi
ret
ClassChemStartSeq(0)
ClassChemStartSeq(seq)
mov eax, dword ptr [esp+0x4]
push ebx
push esi
xor ebx, ebx
push ebx
push eax
call LuaParam::GetInt
add esp, 0x8
mov esi, eax
call 0x42E430
test al, al
jz 0xFFFFFFF9
mov eax, dword ptr [0x20C8704]
fldz
fst dword ptr [eax+0xCA8], st
mov dword ptr [eax+0xC94], esi
fst dword ptr [eax+0xCAC], st
mov dword ptr [eax+0xC98], ebx
fst dword ptr [eax+0xCB0], st
mov byte ptr [eax+0xC9C], bl
mov byte ptr [eax+0xC9D], bl
fstp dword ptr [eax+0xCA0], st
mov byte ptr [eax+0xC9E], bl
pop esi
xor eax, eax
pop ebx
ret
--print("WORD LENGTH = " .. ClassEnglishGetLastSubmittedWord())
mov eax, dword ptr [0x20C8704]
add eax, 0x4DE
lea edx, ptr [esp-0x20]
sub esp, 0x20
sub edx, eax
mov cl, byte ptr [eax]
mov byte ptr [edx+eax*1], cl
add eax, 0x1
test cl, cl
jnz 0xFFFFFFF6
mov ecx, dword ptr [esp+0x24]
lea eax, ptr [esp]
push eax
push ecx
call LuaParam::PushString
mov eax, 0x1
add esp, 0x28
ret
-- never used
mov eax, dword ptr [0x20C8704]
add eax, 0x4DE
lea edx, ptr [eax+0x1]
lea ecx, ptr [ecx]
mov cl, byte ptr [eax]
add eax, 0x1
test cl, cl
jnz 0xFFFFFFF9
sub eax, edx
push eax
mov eax, dword ptr [esp+0x8]
push eax
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
ret
-- never used
sub esp, 0xC
mov ecx, dword ptr [0x20C8704]
call 0x6EC2D0
mov ecx, dword ptr [0x20C8704]
mov dword ptr [esp], eax
fild st, dword ptr [esp]
fstp dword ptr [esp], st
fld st, dword ptr [esp]
fstp qword ptr [esp+0x4], st
call 0x6EC320
mov dword ptr [esp], eax
fild st, dword ptr [esp]
mov eax, dword ptr [esp+0x10]
push ecx
fdivr st, qword ptr [esp+0x8]
fmul st, qword ptr [0x900130]
fstp dword ptr [esp+0x4], st
fld st, dword ptr [esp+0x4]
fstp dword ptr [esp], st
push eax
call LuaParam::PushFloat
mov eax, 0x1
add esp, 0x14
ret
ClassEnglishSetLevel(nCurrentClass)
mov eax, dword ptr [esp+0x4]
push esi
mov esi, dword ptr [0x20C8704]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x8
sub eax, 0x1
jns 0xC
xor eax, eax
mov dword ptr [esi+0xC4], eax
pop esi
ret
cmp eax, 0x5
jl 0x7
mov eax, 0x4
mov dword ptr [esi+0xC4], eax
xor eax, eax
pop esi
ret
-- never used
mov eax, dword ptr [esp+0x4]
push esi
mov esi, dword ptr [0x20C8704]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, esi
call 0x6EC380
xor eax, eax
pop esi
ret
-- never used
mov eax, dword ptr [esp+0x4]
push esi
mov esi, dword ptr [0x20C8704]
push 0x0
push eax
call LuaParam::GetFloat
fstp dword ptr [esi+0x4C0], st
add esp, 0x8
xor eax, eax
pop esi
ret
ClassEnglishSetScoreMsg(100, "MGCE_SCMSG3")
ClassEnglishSetScoreMsg(tblClasses1[nCurrentClass].percent + dif, "MGCE_SCMSG2")
ClassEnglishSetScoreMsg(tblClasses1[nCurrentClass].percent, "MGCE_SCMSG1")
ClassEnglishSetScoreMsg(tblClasses[nCurrentClass].percent + dif, "MGCE_SCMSG2")
ClassEnglishSetScoreMsg(tblClasses[nCurrentClass].percent, "MGCE_SCMSG1")
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push 0x0
push esi
call LuaParam::GetInt
mov dword ptr [esp+0xC], eax
fild st, dword ptr [esp+0xC]
push 0x1
push esi
fstp dword ptr [esp+0x14], st
call LuaParam::GetString
fld st, dword ptr [esp+0x14]
add esp, 0x10
push eax
push ecx
mov ecx, dword ptr [0x20C8704]
fstp dword ptr [esp], st
call 0x6FA280
xor eax, eax
pop esi
pop ecx
ret
ClassEnglishSetScorePercentage(tblClasses1[nCurrentClass].percent)
ClassEnglishSetScorePercentage(tblClasses[nCurrentClass].percent)
push ecx
mov eax, dword ptr [esp+0x8]
push 0x0
push eax
call LuaParam::GetInt
mov ecx, dword ptr [0x20C8704]
mov dword ptr [esp+0x8], eax
fild st, dword ptr [esp+0x8]
xor eax, eax
fmul st, qword ptr [0x900D30]
fstp dword ptr [esp+0x8], st
fld st, dword ptr [esp+0x8]
fstp dword ptr [ecx+0x4E8], st
add esp, 0xC
ret
ClassEnglishSetTimer(tblClasses1[nCurrentClass].timer, 0)
ClassEnglishSetTimer(tblClasses1[nCurrentClass].timer, tblClasses1[nCurrentClass].taxicab)
ClassEnglishSetTimer(tblClasses[nCurrentClass].timer, 0)
ClassEnglishSetTimer(tblClasses[nCurrentClass].timer, tblClasses[nCurrentClass].taxicab)
sub esp, 0x8
push esi
mov esi, dword ptr [esp+0x10]
push esi
call LuaParam::GetParamCount
push 0x0
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x14], st
fldz
push esi
fstp dword ptr [esp+0x14], st
call LuaParam::GetParamCount
add esp, 0x10
cmp eax, 0x2
jl 0x11
push 0x1
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0xC], st
add esp, 0x8
fld st, dword ptr [esp+0x4]
mov ecx, dword ptr [0x20C8704]
sub esp, 0x8
fstp dword ptr [esp+0x4], st
fld st, dword ptr [esp+0x10]
fstp dword ptr [esp], st
call 0x6EC360
xor eax, eax
pop esi
add esp, 0x8
ret
ClassEnglishSetTrigFunc(15, F_ChangeMusic)
push esi
mov esi, dword ptr [0x20C8704]
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetFloat
fstp dword ptr [esi+0x4B8], st
mov eax, dword ptr [0x20C8704]
add eax, 0x4BC
push eax
push 0x1
push edi
call 0x5D9FD0
add esp, 0x14
pop edi
xor eax, eax
pop esi
ret
-- never used
mov eax, dword ptr [esp+0x4]
push esi
mov esi, dword ptr [0x20C8704]
push 0x0
push eax
call LuaParam::GetFloat
fstp dword ptr [esi+0x4B4], st
add esp, 0x8
xor eax, eax
pop esi
ret
if ClassEnglishWordWasValid() and not ClassEnglishWordWasDuplicate() then
push ecx
mov eax, dword ptr [0x20C8704]
mov cl, byte ptr [eax+0x4DB]
mov byte ptr [esp], cl
mov edx, dword ptr [esp]
mov byte ptr [eax+0x4DB], 0x0
mov eax, dword ptr [esp+0x8]
push edx
push eax
call LuaParam::PushBool
mov eax, 0x1
add esp, 0xC
ret
elseif ClassEnglishWordWasNaughty() then
push ecx
mov eax, dword ptr [0x20C8704]
mov cl, byte ptr [eax+0x4DC]
mov byte ptr [esp], cl
mov edx, dword ptr [esp]
mov byte ptr [eax+0x4DC], 0x0
mov eax, dword ptr [esp+0x8]
push edx
push eax
call LuaParam::PushBool
mov eax, 0x1
add esp, 0xC
ret
elseif ClassEnglishWordWasNotValid() then
push ecx
mov eax, dword ptr [0x20C8704]
mov cl, byte ptr [eax+0x4DA]
mov byte ptr [esp], cl
mov edx, dword ptr [esp]
mov byte ptr [eax+0x4DA], 0x0
mov eax, dword ptr [esp+0x8]
push edx
push eax
call LuaParam::PushBool
mov eax, 0x1
add esp, 0xC
ret
elseif ClassEnglishWordWasTooShort() then
push ecx
mov eax, dword ptr [0x20C8704]
mov cl, byte ptr [eax+0x4DD]
mov byte ptr [esp], cl
mov edx, dword ptr [esp]
mov byte ptr [eax+0x4DD], 0x0
mov eax, dword ptr [esp+0x8]
push edx
push eax
call LuaParam::PushBool
mov eax, 0x1
add esp, 0xC
ret
if ClassEnglishWordWasValid() and not ClassEnglishWordWasDuplicate() then
push ecx
mov eax, dword ptr [0x20C8704]
mov cl, byte ptr [eax+0x4D9]
mov byte ptr [esp], cl
mov edx, dword ptr [esp]
mov byte ptr [eax+0x4D9], 0x0
mov eax, dword ptr [esp+0x8]
push edx
push eax
call LuaParam::PushBool
mov eax, 0x1
add esp, 0xC
ret
-- never used
sub esp, 0xC
mov ecx, dword ptr [0x20C8704]
call 0x6F2E60
fstp dword ptr [esp], st
fld st, dword ptr [esp]
mov ecx, dword ptr [0x20C8704]
fstp qword ptr [esp+0x4], st
call 0x6F2E70
mov dword ptr [esp], eax
fild st, dword ptr [esp]
mov eax, dword ptr [esp+0x10]
push ecx
fdivr st, qword ptr [esp+0x8]
fmul st, qword ptr [0x900130]
fstp dword ptr [esp+0x4], st
fld st, dword ptr [esp+0x4]
fstp dword ptr [esp], st
push eax
call LuaParam::PushFloat
mov eax, 0x1
add esp, 0x14
ret
if ClassGeographyInvalidOperation() then
push ecx
mov ecx, dword ptr [0x20C8704]
call 0x6F2E40
mov ecx, dword ptr [esp+0x8]
mov byte ptr [esp], al
mov eax, dword ptr [esp]
push eax
push ecx
call LuaParam::PushBool
mov eax, 0x1
add esp, 0xC
ret
-- never used
xor eax, eax
ret
ClassGeographySetLevel(nCurrentClass)
mov eax, dword ptr [esp+0x4]
push esi
mov esi, dword ptr [0x20C8704]
push 0x0
push eax
call LuaParam::GetInt
sub eax, 0x1
add esp, 0x8
mov dword ptr [esi+0xC4], eax
xor eax, eax
pop esi
ret
-- never used
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push 0x0
push esi
call LuaParam::GetInt
mov dword ptr [esp+0xC], eax
fild st, dword ptr [esp+0xC]
push 0x1
push esi
fstp dword ptr [esp+0x14], st
call LuaParam::GetString
fld st, dword ptr [esp+0x14]
add esp, 0x10
push eax
push ecx
mov ecx, dword ptr [0x20C8704]
fstp dword ptr [esp], st
call 0x6F71B0
xor eax, eax
pop esi
pop ecx
ret
ClassGeographySetScorePercentage(tblClasses[nCurrentClass].percent)
push ecx
mov eax, dword ptr [esp+0x8]
push 0x0
push eax
call LuaParam::GetInt
mov ecx, dword ptr [0x20C8704]
mov dword ptr [esp+0x8], eax
fild st, dword ptr [esp+0x8]
xor eax, eax
fmul st, qword ptr [0x900D30]
fstp dword ptr [esp+0x8], st
fld st, dword ptr [esp+0x8]
fmul st, qword ptr [0x900130]
fstp dword ptr [ecx+0x388], st
add esp, 0xC
ret
ClassGeographySetTimer(tblClasses[nCurrentClass].timer, 0)
ClassGeographySetTimer(tblClasses[nCurrentClass].timer, tblClasses[nCurrentClass].taxicab)
sub esp, 0x8
push esi
mov esi, dword ptr [esp+0x10]
push esi
call LuaParam::GetParamCount
push 0x0
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x14], st
fldz
push esi
fstp dword ptr [esp+0x14], st
call LuaParam::GetParamCount
add esp, 0x10
cmp eax, 0x2
jl 0x11
push 0x1
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0xC], st
add esp, 0x8
fld st, dword ptr [esp+0x4]
mov ecx, dword ptr [0x20C8704]
sub esp, 0x8
fstp dword ptr [esp+0x4], st
fld st, dword ptr [esp+0x10]
fstp dword ptr [esp], st
call 0x6F2E80
xor eax, eax
pop esi
add esp, 0x8
ret
-- never used
push esi
mov esi, dword ptr [0x20C8704]
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetFloat
fstp dword ptr [esi+0x2C], st
mov eax, dword ptr [0x20C8704]
add eax, 0x37C
push eax
push 0x1
push edi
call 0x5D9FD0
add esp, 0x14
pop edi
xor eax, eax
pop esi
ret
-- never used
mov eax, dword ptr [esp+0x4]
push esi
mov esi, dword ptr [0x20C8704]
push 0x0
push eax
call LuaParam::GetFloat
fstp dword ptr [esi+0x24], st
add esp, 0x8
xor eax, eax
pop esi
ret
-- never used
mov eax, dword ptr [esp+0x4]
push esi
mov esi, dword ptr [0x20C8704]
push 0x0
push eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x4], st
add esp, 0x4
mov ecx, esi
call 0x6E4110
xor eax, eax
pop esi
ret
-- never used
mov ecx, dword ptr [0x20C8704]
call 0x705790
xor eax, eax
ret
-- never used
push ecx
mov ecx, dword ptr [0x20C8704]
call 0x6F2E20
mov ecx, dword ptr [esp+0x8]
mov byte ptr [esp], al
mov eax, dword ptr [esp]
push eax
push ecx
call LuaParam::PushBool
mov eax, 0x1
add esp, 0xC
ret
if ClassMathAnswerGiven() == true then
push ecx
mov ecx, dword ptr [0x20C8704]
call 0x6F8CB0
mov ecx, dword ptr [esp+0x8]
mov byte ptr [esp], al
mov eax, dword ptr [esp]
push eax
push ecx
call LuaParam::PushBool
mov eax, 0x1
add esp, 0xC
ret
-- never used
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
ret
ClassMathFinished()
mov ecx, dword ptr [0x20C8704]
call 0x700DE0
xor eax, eax
ret
-- never used
push ecx
mov ecx, dword ptr [0x20C8704]
call 0x6F8D20
mov dword ptr [esp], eax
fild st, dword ptr [esp]
fstp dword ptr [esp], st
fld st, dword ptr [esp]
call 0x85C720
push eax
mov eax, dword ptr [esp+0xC]
push eax
call LuaParam::PushInt
mov eax, 0x1
add esp, 0xC
ret
if ClassMathGetScorePercentage() >= tblClasses[nCurrentClass].passPercent then
push ecx
mov ecx, dword ptr [0x20C8704]
call 0x6F8D30
mov dword ptr [esp], eax
fild st, dword ptr [esp]
fstp dword ptr [esp], st
fld st, dword ptr [esp]
call 0x85C720
push eax
mov eax, dword ptr [esp+0xC]
push eax
call LuaParam::PushInt
mov eax, 0x1
add esp, 0xC
ret
elseif ClassMathInvalidAnswer() == true then
push ecx
mov ecx, dword ptr [0x20C8704]
call 0x6F8CF0
mov ecx, dword ptr [esp+0x8]
mov byte ptr [esp], al
mov eax, dword ptr [esp]
push eax
push ecx
call LuaParam::PushBool
mov eax, 0x1
add esp, 0xC
ret
ClassMathSetCircles(question.numItems, question.numSelections, question.correctSelect, question.selections[1], question.selections[2], question.selections[3], question.selections[4], question.selections[5])
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, dword ptr [esp+0x2C]
push 0x0
push edi
call LuaParam::GetInt
push 0x1
push edi
mov dword ptr [esp+0x20], eax
call LuaParam::GetInt
push 0x2
push edi
mov ebx, eax
call LuaParam::GetInt
mov ebp, eax
add esp, 0x18
sub ebp, 0x1
xor esi, esi
test ebx, ebx
jle 0x1A
lea eax, ptr [esi+0x3]
push eax
push edi
call LuaParam::GetString
mov dword ptr [esp+esi*4+0x1C], eax
add esi, 0x1
add esp, 0x8
cmp esi, ebx
jl 0xFFFFFFEA
mov edx, dword ptr [esp+0x10]
lea ecx, ptr [esp+0x14]
push ecx
mov ecx, dword ptr [0x20C8704]
push ebp
push ebx
push edx
call 0x6F8BC0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
ClassMathSetDifference(question.numSelections, question.correctSelect, question.selections[1], question.selections[2])
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x10]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov ebx, eax
call LuaParam::GetInt
mov edi, eax
push 0x2
push esi
sub edi, 0x1
call LuaParam::GetInt
push 0x3
push esi
mov ebp, eax
call LuaParam::GetInt
mov ecx, dword ptr [0x20C8704]
add esp, 0x20
push eax
push ebp
push edi
push ebx
call 0x6F84A0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
ClassMathSetEquation(question.title, question.numSelections, question.correctSelect, question.selections[1], question.selections[2], question.selections[3], question.selections[4], question.selections[5])
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, dword ptr [esp+0x2C]
push 0x1
push edi
call LuaParam::GetInt
push 0x0
push edi
mov ebx, eax
call LuaParam::GetString
push 0x2
push edi
mov dword ptr [esp+0x28], eax
call LuaParam::GetInt
mov ebp, eax
add esp, 0x18
sub ebp, 0x1
xor esi, esi
test ebx, ebx
jle 0x1A
lea eax, ptr [esi+0x3]
push eax
push edi
call LuaParam::GetString
mov dword ptr [esp+esi*4+0x1C], eax
add esi, 0x1
add esp, 0x8
cmp esi, ebx
jl 0xFFFFFFEA
mov edx, dword ptr [esp+0x10]
lea ecx, ptr [esp+0x14]
push ecx
mov ecx, dword ptr [0x20C8704]
push ebp
push ebx
push edx
call 0x6F8280
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
ClassMathSetFastest(question.numSelections, question.correctSelect, question.selections[1], question.selections[2], question.selections[3], question.selections[4], question.selections[5])
sub esp, 0x14
push ebx
mov ebx, dword ptr [esp+0x1C]
push ebp
push esi
push edi
push 0x0
push ebx
call LuaParam::GetInt
push 0x1
push ebx
mov edi, eax
call LuaParam::GetInt
mov ebp, eax
add esp, 0x10
sub ebp, 0x1
xor esi, esi
test edi, edi
jle 0x1F
jmp 0x5
lea ecx, ptr [ecx]
lea eax, ptr [esi+0x2]
push eax
push ebx
call LuaParam::GetInt
mov dword ptr [esp+esi*4+0x18], eax
add esi, 0x1
add esp, 0x8
cmp esi, edi
jl 0xFFFFFFEA
lea ecx, ptr [esp+0x10]
push ecx
mov ecx, dword ptr [0x20C8704]
push ebp
push edi
call 0x6F87D0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
ClassMathSetFattest(question.numSelections, question.correctSelect, question.selections[1], question.selections[2], question.selections[3], question.selections[4], question.selections[5])
sub esp, 0x14
push ebx
mov ebx, dword ptr [esp+0x1C]
push ebp
push esi
push edi
push 0x0
push ebx
call LuaParam::GetInt
push 0x1
push ebx
mov edi, eax
call LuaParam::GetInt
mov ebp, eax
add esp, 0x10
sub ebp, 0x1
xor esi, esi
test edi, edi
jle 0x1F
jmp 0x5
lea ecx, ptr [ecx]
lea eax, ptr [esi+0x2]
push eax
push ebx
call LuaParam::GetInt
mov dword ptr [esp+esi*4+0x18], eax
add esi, 0x1
add esp, 0x8
cmp esi, edi
jl 0xFFFFFFEA
lea ecx, ptr [esp+0x10]
push ecx
mov ecx, dword ptr [0x20C8704]
push ebp
push edi
call 0x6F8950
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
-- never used
mov eax, dword ptr [esp+0x4]
push esi
mov esi, dword ptr [0x20C8704]
push 0x0
push eax
call LuaParam::GetInt
sub eax, 0x1
add esp, 0x8
mov dword ptr [esi+0x40], eax
xor eax, eax
pop esi
ret
ClassMathSetHighest(question.numSelections, question.correctSelect, question.selections[1], question.selections[2], question.selections[3], question.selections[4], question.selections[5])
sub esp, 0x14
push ebx
mov ebx, dword ptr [esp+0x1C]
push ebp
push esi
push edi
push 0x0
push ebx
call LuaParam::GetInt
push 0x1
push ebx
mov edi, eax
call LuaParam::GetInt
mov ebp, eax
add esp, 0x10
sub ebp, 0x1
xor esi, esi
test edi, edi
jle 0x1F
jmp 0x5
lea ecx, ptr [ecx]
lea eax, ptr [esi+0x2]
push eax
push ebx
call LuaParam::GetString
mov dword ptr [esp+esi*4+0x18], eax
add esi, 0x1
add esp, 0x8
cmp esi, edi
jl 0xFFFFFFEA
lea ecx, ptr [esp+0x10]
push ecx
mov ecx, dword ptr [0x20C8704]
push ebp
push edi
call 0x6F8300
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
-- never used
mov eax, dword ptr [esp+0x4]
push esi
mov esi, dword ptr [0x20C8704]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x8
sub eax, 0x1
jns 0xC
xor eax, eax
mov dword ptr [esi+0xC4], eax
pop esi
ret
cmp eax, 0x5
jl 0x7
mov eax, 0x4
mov dword ptr [esi+0xC4], eax
xor eax, eax
pop esi
ret
ClassMathSetLowest(question.numSelections, question.correctSelect, question.selections[1], question.selections[2], question.selections[3], question.selections[4], question.selections[5])
sub esp, 0x14
push ebx
mov ebx, dword ptr [esp+0x1C]
push ebp
push esi
push edi
push 0x0
push ebx
call LuaParam::GetInt
push 0x1
push ebx
mov edi, eax
call LuaParam::GetInt
mov ebp, eax
add esp, 0x10
sub ebp, 0x1
xor esi, esi
test edi, edi
jle 0x1F
jmp 0x5
lea ecx, ptr [ecx]
lea eax, ptr [esi+0x2]
push eax
push ebx
call LuaParam::GetString
mov dword ptr [esp+esi*4+0x18], eax
add esi, 0x1
add esp, 0x8
cmp esi, edi
jl 0xFFFFFFEA
lea ecx, ptr [esp+0x10]
push ecx
mov ecx, dword ptr [0x20C8704]
push ebp
push edi
call 0x6F83D0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
ClassMathSetNumQuestions(getTableSize(tblClasses[nCurrentClass].questionTable))
mov eax, dword ptr [esp+0x4]
push esi
mov esi, dword ptr [0x20C8704]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, esi
call 0x6F8D10
xor eax, eax
pop esi
ret
ClassMathSetScoreMsg(100, "MGMA_SCMSG3")
ClassMathSetScoreMsg(tblClasses[nCurrentClass].passPercent + dif, "MGMA_SCMSG2")
ClassMathSetScoreMsg(tblClasses[nCurrentClass].passPercent, "MGMA_SCMSG1")
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push 0x0
push esi
call LuaParam::GetInt
mov dword ptr [esp+0xC], eax
fild st, dword ptr [esp+0xC]
push 0x1
push esi
fstp dword ptr [esp+0x14], st
call LuaParam::GetString
fld st, dword ptr [esp+0x14]
add esp, 0x10
push eax
push ecx
mov ecx, dword ptr [0x20C8704]
fstp dword ptr [esp], st
call 0x6FA280
xor eax, eax
pop esi
pop ecx
ret
ClassMathSetScorePercentage(tblClasses[nCurrentClass].passPercent)
push ecx
mov eax, dword ptr [esp+0x8]
push 0x0
push eax
call LuaParam::GetInt
mov dword ptr [esp+0x8], eax
fild st, dword ptr [esp+0x8]
fstp dword ptr [esp+0x8], st
fld st, dword ptr [esp+0x8]
call 0x85C720
mov ecx, dword ptr [0x20C8704]
mov dword ptr [ecx+0x38C], eax
xor eax, eax
add esp, 0xC
ret
ClassMathSetShortest(question.numSelections, question.correctSelect, question.selections[1], question.selections[2], question.selections[3], question.selections[4], question.selections[5])
sub esp, 0x14
push ebx
mov ebx, dword ptr [esp+0x1C]
push ebp
push esi
push edi
push 0x0
push ebx
call LuaParam::GetInt
push 0x1
push ebx
mov edi, eax
call LuaParam::GetInt
mov ebp, eax
add esp, 0x10
sub ebp, 0x1
xor esi, esi
test edi, edi
jle 0x1F
jmp 0x5
lea ecx, ptr [ecx]
lea eax, ptr [esi+0x2]
push eax
push ebx
call LuaParam::GetInt
mov dword ptr [esp+esi*4+0x18], eax
add esi, 0x1
add esp, 0x8
cmp esi, edi
jl 0xFFFFFFEA
lea ecx, ptr [esp+0x10]
push ecx
mov ecx, dword ptr [0x20C8704]
push ebp
push edi
call 0x6F8710
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
ClassMathSetSlowest(question.numSelections, question.correctSelect, question.selections[1], question.selections[2], question.selections[3], question.selections[4], question.selections[5])
sub esp, 0x14
push ebx
mov ebx, dword ptr [esp+0x1C]
push ebp
push esi
push edi
push 0x0
push ebx
call LuaParam::GetInt
push 0x1
push ebx
mov edi, eax
call LuaParam::GetInt
mov ebp, eax
add esp, 0x10
sub ebp, 0x1
xor esi, esi
test edi, edi
jle 0x1F
jmp 0x5
lea ecx, ptr [ecx]
lea eax, ptr [esi+0x2]
push eax
push ebx
call LuaParam::GetInt
mov dword ptr [esp+esi*4+0x18], eax
add esi, 0x1
add esp, 0x8
cmp esi, edi
jl 0xFFFFFFEA
lea ecx, ptr [esp+0x10]
push ecx
mov ecx, dword ptr [0x20C8704]
push ebp
push edi
call 0x6F8890
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
ClassMathSetSquares(question.numItems, question.numSelections, question.correctSelect, question.selections[1], question.selections[2], question.selections[3], question.selections[4], question.selections[5])
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, dword ptr [esp+0x2C]
push 0x0
push edi
call LuaParam::GetInt
push 0x1
push edi
mov dword ptr [esp+0x20], eax
call LuaParam::GetInt
push 0x2
push edi
mov ebx, eax
call LuaParam::GetInt
mov ebp, eax
add esp, 0x18
sub ebp, 0x1
xor esi, esi
test ebx, ebx
jle 0x1A
lea eax, ptr [esi+0x3]
push eax
push edi
call LuaParam::GetString
mov dword ptr [esp+esi*4+0x1C], eax
add esi, 0x1
add esp, 0x8
cmp esi, ebx
jl 0xFFFFFFEA
mov edx, dword ptr [esp+0x10]
lea ecx, ptr [esp+0x14]
push ecx
mov ecx, dword ptr [0x20C8704]
push ebp
push ebx
push edx
call 0x6F8AD0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
ClassMathSetTallest(question.numSelections, question.correctSelect, question.selections[1], question.selections[2], question.selections[3], question.selections[4], question.selections[5])
sub esp, 0x14
push ebx
mov ebx, dword ptr [esp+0x1C]
push ebp
push esi
push edi
push 0x0
push ebx
call LuaParam::GetInt
push 0x1
push ebx
mov edi, eax
call LuaParam::GetInt
mov ebp, eax
add esp, 0x10
sub ebp, 0x1
xor esi, esi
test edi, edi
jle 0x1F
jmp 0x5
lea ecx, ptr [ecx]
lea eax, ptr [esi+0x2]
push eax
push ebx
call LuaParam::GetInt
mov dword ptr [esp+esi*4+0x18], eax
add esi, 0x1
add esp, 0x8
cmp esi, edi
jl 0xFFFFFFEA
lea ecx, ptr [esp+0x10]
push ecx
mov ecx, dword ptr [0x20C8704]
push ebp
push edi
call 0x6F8650
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
ClassMathSetThinnest(question.numSelections, question.correctSelect, question.selections[1], question.selections[2], question.selections[3], question.selections[4], question.selections[5])
sub esp, 0x14
push ebx
mov ebx, dword ptr [esp+0x1C]
push ebp
push esi
push edi
push 0x0
push ebx
call LuaParam::GetInt
push 0x1
push ebx
mov edi, eax
call LuaParam::GetInt
mov ebp, eax
add esp, 0x10
sub ebp, 0x1
xor esi, esi
test edi, edi
jle 0x1F
jmp 0x5
lea ecx, ptr [ecx]
lea eax, ptr [esi+0x2]
push eax
push ebx
call LuaParam::GetInt
mov dword ptr [esp+esi*4+0x18], eax
add esi, 0x1
add esp, 0x8
cmp esi, edi
jl 0xFFFFFFEA
lea ecx, ptr [esp+0x10]
push ecx
mov ecx, dword ptr [0x20C8704]
push ebp
push edi
call 0x6F8A10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
ClassMathSetTimer(tblClasses[nCurrentClass].timer, 0)
ClassMathSetTimer(tblClasses[nCurrentClass].timer, tblClasses[nCurrentClass].timeIncr)
sub esp, 0x8
push esi
mov esi, dword ptr [esp+0x10]
push esi
call LuaParam::GetParamCount
push 0x0
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x14], st
fldz
push esi
fstp dword ptr [esp+0x14], st
call LuaParam::GetParamCount
add esp, 0x10
cmp eax, 0x2
jl 0x11
push 0x1
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0xC], st
add esp, 0x8
fld st, dword ptr [esp+0x4]
mov ecx, dword ptr [0x20C8704]
sub esp, 0x8
fstp dword ptr [esp+0x4], st
fld st, dword ptr [esp+0x10]
fstp dword ptr [esp], st
call 0x6F8D50
xor eax, eax
pop esi
add esp, 0x8
ret
ClassMathSetTriangles(question.texture, question.numSelections, question.correctSelect, question.selections[1], question.selections[2], question.selections[3], question.selections[4], question.selections[5])
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, dword ptr [esp+0x2C]
push 0x0
push edi
call LuaParam::GetInt
push 0x1
push edi
mov dword ptr [esp+0x20], eax
call LuaParam::GetInt
push 0x2
push edi
mov ebx, eax
call LuaParam::GetInt
mov ebp, eax
add esp, 0x18
sub ebp, 0x1
xor esi, esi
test ebx, ebx
jle 0x1A
lea eax, ptr [esi+0x3]
push eax
push edi
call LuaParam::GetString
mov dword ptr [esp+esi*4+0x1C], eax
add esi, 0x1
add esp, 0x8
cmp esi, ebx
jl 0xFFFFFFEA
mov edx, dword ptr [esp+0x10]
lea ecx, ptr [esp+0x14]
push ecx
mov ecx, dword ptr [0x20C8704]
push ebp
push ebx
push edx
call 0x6F8570
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
ClassMathSetTrigFunc(15, F_ChangeMusic)
push esi
mov esi, dword ptr [0x20C8704]
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetFloat
fstp dword ptr [esi+0x2C], st
mov eax, dword ptr [0x20C8704]
add eax, 0x380
push eax
push 0x1
push edi
call 0x5D9FD0
add esp, 0x14
pop edi
xor eax, eax
pop esi
ret
-- never used
mov eax, dword ptr [esp+0x4]
push esi
mov esi, dword ptr [0x20C8704]
push 0x0
push eax
call LuaParam::GetFloat
fstp dword ptr [esi+0x24], st
add esp, 0x8
xor eax, eax
pop esi
ret
ClassMathSubtractTime(tblClasses[nCurrentClass].timeDecr)
mov eax, dword ptr [esp+0x4]
push esi
mov esi, dword ptr [0x20C8704]
push 0x0
push eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x4], st
add esp, 0x4
mov ecx, esi
call 0x6E4110
xor eax, eax
pop esi
ret
if ClassMathValidAnswer() == true then
push ecx
mov ecx, dword ptr [0x20C8704]
call 0x6F8CD0
mov ecx, dword ptr [esp+0x8]
mov byte ptr [esp], al
mov eax, dword ptr [esp]
push eax
push ecx
call LuaParam::PushBool
mov eax, 0x1
add esp, 0xC
ret
ClassMusicFeedbackCallback(F_ActionsCallback)
mov eax, dword ptr [0x20C8704]
mov ecx, dword ptr [esp+0x4]
add eax, 0xC4
push eax
push 0x0
push ecx
call 0x5DA060
add esp, 0xC
xor eax, eax
ret
local iWinner, iScore = ClassMusicGetWinner()
mov ecx, dword ptr [0x20C8704]
push esi
push edi
call 0x6FAD70
mov ecx, dword ptr [0x20C8704]
mov esi, eax
push esi
call 0x6FAD80
push esi
mov esi, dword ptr [esp+0x10]
push esi
mov edi, eax
call LuaParam::PushInt
push edi
push esi
call LuaParam::PushInt
add esp, 0x10
pop edi
mov eax, 0x2
pop esi
ret
ClassMusicInstrument(1, tCowbells[nSongIndex])
ClassMusicInstrument(1, tMaracas[nSongIndex])
ClassMusicInstrument(1, tSnares[nSongIndex])
ClassMusicInstrument(1, tTimpanis[nSongIndex])
ClassMusicInstrument(1, tXylophones[nSongIndex])
ClassMusicInstrument(PlayerIndex + 1, tCowbells[SongIndex])
ClassMusicInstrument(PlayerIndex + 1, tMaracas[SongIndex])
ClassMusicInstrument(PlayerIndex + 1, tSnares[SongIndex])
ClassMusicInstrument(PlayerIndex + 1, tTimpanis[SongIndex])
ClassMusicInstrument(PlayerIndex + 1, tXylophones[SongIndex])
push esi
mov esi, dword ptr [esp+0x8]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetString
mov ecx, dword ptr [0x20C8704]
add esp, 0x10
push eax
add edi, 0xFFFFFFFF
push edi
call 0x6FB440
pop edi
xor eax, eax
pop esi
ret
ClassMusicSetPlayers(1)
ClassMusicSetPlayers(3)
mov eax, dword ptr [esp+0x4]
push esi
mov esi, dword ptr [0x20C8704]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, esi
call 0x6FB1A0
xor eax, eax
pop esi
ret
ClassMusicSetSong(SongTable[nSongIndex], 1)
ClassMusicSetSong(SongTable[SongIndex], 1)
push ecx
push ebx
push esi
mov esi, dword ptr [esp+0x10]
push edi
push 0x0
push esi
call LuaParam::GetString
push 0x1
push esi
mov edi, eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x1C], st
push 0x1F4
push 0x2
push esi
call LuaParam::GetInt ; optional
push 0x3E8
push 0x3
push esi
mov ebx, eax
call LuaParam::GetInt ; optional
fld st, dword ptr [esp+0x34]
add esp, 0x28
push eax
push ebx
push 0x6
push 0x0
push ecx
fstp dword ptr [esp], st
push edi
mov ecx, 0xCF42D4
call 0x591380
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
ClassMusicStartSeq(3)
ClassMusicStartSeq(nCurrentClass)
mov eax, dword ptr [esp+0x4]
push esi
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x8
mov esi, eax
call 0x42E430
test al, al
jz 0xFFFFFFF9
mov ecx, dword ptr [0x20C8704]
push esi
call 0x6FB2F0
xor eax, eax
pop esi
ret
SHARED
Unregisters a scripted command that may have been registered using SetCommand.
CLIENT
Instantly clears the display, making it black. Should only be used in drawing threads.
ClearTextQueue()
function ClearTextQueue()
gTextQueue = {}
end
classHour, classMinute = ClockGet()
ClockHour, ClockMinute = ClockGet()
currentHour = ClockGet()
exphour, expminute = ClockGet()
gClockHour, gClockMin = ClockGet()
gCurrentHour, gCurrentMinute = ClockGet()
gHr, gMin = ClockGet()
hour, minute = ClockGet()
if IsMissionAvailable("2_06") and not MissionActive() and ClockGet() >= 8 and ClockGet() < 20 and not shared.b2_06Failed and not shared.bMovieTicketLine and PlayerIsInAreaXYZ(346.873, 218.43, 4.95147, 50, 0) then
if not MissionActive() and not IsMissionCompleated("1_E01") and not PlayerIsInTrigger(TRIGGER._PLAYER_ROOM) and not bLaunchErrandTut and IsMissionCompleated("1_05") and ClockGet() >= 8 and ClockGet() <= 18 then
if shared.bMovieTicketLine and ClockGet() >= 20 then
local classHour, classMinute = ClockGet()
local exphour, expminute = ClockGet()
local h, m = ClockGet()
local hallHour, hallMinute = ClockGet()
local halloweenHour, halloweenMin = ClockGet()
local hour, minute = ClockGet()
local hour, minutes = ClockGet()
local nCurrentTimeH, _ = ClockGet()
local nHour, nMinute = ClockGet()
local timeHour = ClockGet()
local TimeHours, TimeMinutes = ClockGet()
sHour, sMin = ClockGet()
StartHour, StartMinute = ClockGet()
tempHour, tempMinute = ClockGet()
timeHour, timeMin = ClockGet()
movzx eax, byte ptr [0xBCEB4B]
push esi
mov esi, dword ptr [esp+0x8]
push eax
push esi
call LuaParam::PushInt
movzx ecx, byte ptr [0xBCEB4A]
push ecx
push esi
call LuaParam::PushInt
add esp, 0x10
mov eax, 0x2
pop esi
ret
bClockPaused = ClockIsPaused()
if ClockIsPaused() then
if IsMissionCompleated("1_02C") and not MissionActive() and not ClockIsPaused() then
if not MissionActive() and not ClockIsPaused() and not IsMissionAvailable("3_08") and not IsMissionAvailable("6_01") then
if not MissionActive() and not ClockIsPaused() then
movzx eax, byte ptr [0xBCEB42]
mov ecx, dword ptr [esp+0x4]
push eax
push ecx
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
ret
ClockSet(12, 0)
ClockSet(12, 30)
ClockSet(18, 30)
ClockSet(18, 45)
ClockSet(19, 0)
ClockSet(19, 30)
ClockSet(21, 30)
ClockSet(22, 0)
ClockSet(22, 1)
ClockSet(7, 0)
ClockSet(8, 0)
ClockSet(8, 1)
ClockSet(8, 30)
ClockSet(8, 59)
ClockSet(9, 0)
ClockSet(gGameStartHour, gGameStartMinute)
ClockSet(gHr, gMin)
ClockSet(hour, minute)
ClockSet(StartHour, StartMinute)
ClockSet(tblScenario[currentScen][3], 0)
ClockSet(tblScenario[currentScen][6], 0)
ClockSet(tblScenario[number][3], 0)
push esi
mov esi, dword ptr [esp+0x8]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetInt
push eax
push edi
call 0x426070
add esp, 0x18
pop edi
xor eax, eax
pop esi
ret
ClockSetEnableMission("1_02B")
push ecx
mov eax, dword ptr [esp+0x8]
push 0x0
push eax
call LuaParam::GetString
add esp, 0x8
push eax
lea ecx, ptr [esp+0x4]
call 0x5FA910
lea ecx, ptr [esp]
push ecx
mov ecx, 0x20C3CA0
call 0x6A9FD0
lea ecx, ptr [esp]
mov dword ptr [0x9E51A0], eax
call 0x49A650
xor eax, eax
pop ecx
ret
ClockSetTickRate(0.006)
ClockSetTickRate(60, 30)
sub esp, 0x10
push esi
mov esi, dword ptr [esp+0x18]
push 0x0
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0xC], st
fld st, dword ptr [esp+0xC]
push esi
fstp dword ptr [esp+0x14], st
call LuaParam::GetParamCount
add esp, 0xC
cmp eax, 0x2
jl 0x11
push 0x1
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x10], st
add esp, 0x8
fld st, dword ptr [esp+0x4]
pop esi
fld st, qword ptr [0x924600]
fnstcw word ptr [esp]
movzx eax, word ptr [esp]
fld st, st(0)
or eax, 0xC00
fdivrp st(2), st
mov dword ptr [esp+0x8], eax
fldcw word ptr [esp+0x8]
fxch st, st(1)
fistp qword ptr [esp+0x8], st
mov ecx, dword ptr [esp+0x8]
mov dword ptr [0x9E51AC], ecx
mov dword ptr [0x9E51A4], ecx
fldcw word ptr [esp]
fdiv st, dword ptr [esp+0x4]
fnstcw word ptr [esp]
movzx eax, word ptr [esp]
or eax, 0xC00
mov dword ptr [esp+0x8], eax
fldcw word ptr [esp+0x8]
fistp qword ptr [esp+0x8], st
mov eax, dword ptr [esp+0x8]
test eax, eax
mov dword ptr [0x9E51A8], eax
fldcw word ptr [esp]
jnz 0x8
mov dword ptr [0x9E51A8], ecx
xor eax, eax
add esp, 0x10
ret
ClothingBackup()
push 0xCFB2E8
mov ecx, 0x20C5F70
call 0x6CAE80
xor eax, eax
ret
ClothingBuildPlayer()
push ebx
call 0x6CA7C0
test eax, eax
setnz bl
test bl, bl
jnz 0x7
call 0x6CB550
mov eax, dword ptr [0xC1AEA8]
push eax
call 0x6CA7C0
mov ecx, eax
call 0x6CC7C0
test bl, bl
pop ebx
jnz 0x7
call 0x6CB620
xor eax, eax
ret
ClothingDefineOutfit("80 Rocker", "CLT_80Rocker", "SP_80Rocker_H", "SP_80Rocker_T", "none", "SP_80Bracer", "SP_80Rocker_L", "SP_80Rocker_FT", SHORTSLEEVE, ONE_PIECE)
ClothingDefineOutfit("Alien", "CLT_Alien", "SP_Alien_H", "SP_Alien_T", "none", "none", "SP_Alien_L", "P_Boots4", LONGSLEEVE, MULTI_PIECE)
ClothingDefineOutfit("BMX Champion", "CLT_BMX", "SP_BikeHelmet", "SP_BikeJersey", "none", "none", "B_Pants2", "P_Boots2", LONGSLEEVE, MULTI_PIECE)
ClothingDefineOutfit("Boxing NG", "CLT_BOX_NG", "Hair", "SP_BOXING_T", "none", "none", "SP_BOXING_L", "SP_BOXING_ft", SHORTSLEEVE, ONE_PIECE)
ClothingDefineOutfit("Boxing", "CLT_BOX_OUTFIT", "Hair", "SP_BOXING_T", "SP_Boxing_G_L", "SP_Boxing_G_R", "SP_BOXING_L", "SP_BOXING_ft", SHORTSLEEVE, ONE_PIECE)
ClothingDefineOutfit("Columbus", "CLT_Columbus", "SP_Colum_H", "SP_Colum_T", "none", "none", "SP_Colum_L", "SP_Colum_FT", LONGSLEEVE, ONE_PIECE)
ClothingDefineOutfit("Elf", "CLT_Elf", "SP_Elf_H", "SP_Elf_T", "none", "none", "SP_Elf_L", "SP_Elf_FT", LONGSLEEVE, ONE_PIECE)
ClothingDefineOutfit("Fast Food", "CLT_Fastfood", "SP_Fries_H", "SP_Fries_T", "none", "none", "SP_Fries_L", "P_Boots2", LONGSLEEVE, MULTI_PIECE)
ClothingDefineOutfit("Gnome", "CLT_Gnome", "SP_Gnome_H", "SP_Gnome_T", "none", "none", "SP_Gnome_L", "SP_Gnome_ft", LONGSLEEVE, ONE_PIECE)
ClothingDefineOutfit("Gold Suit", "CLT_Rocker", "SP_Goldsuit_H", "SP_Goldsuit_T", "none", "none", "SP_Goldsuit_L", "SP_Goldsuit_ft", LONGSLEEVE, ONE_PIECE)
ClothingDefineOutfit("Grotto Master", "CLT_DM", "SP_DM_H", "SP_DM_T", "none", "none", "B_Pants2", "P_Boots2", SHORTSLEEVE, MULTI_PIECE)
ClothingDefineOutfit("Gym Strip", "CLT_gym", "Hair", "S_SSleeves4", "S_Wristband4", "S_Wristband3", "S_Shorts1", "P_Sneakers1", SHORTSLEEVE, MULTI_PIECE)
ClothingDefineOutfit("Halloween", "CLT_HALLOW", "SP_Ween_H", "SP_Ween_T", "none", "none", "SP_Ween_L", "B_Boots1", LONGSLEEVE, MULTI_PIECE)
ClothingDefineOutfit("Marching Band", "CLT_MBand", "SP_MBand_H", "SP_MBand_T", "none", "none", "SP_MBand_L", "SP_MBand_FT", LONGSLEEVE, ONE_PIECE)
ClothingDefineOutfit("Mascot", "CLT_MASCOT", "SP_Mascot_H", "none", "none", "none", "none", "SP_Mascot_B", LONGSLEEVE, ONE_PIECE)
ClothingDefineOutfit("MascotNoHead", "CLT_MASCOT", "Hair", "none", "none", "none", "none", "SP_Mascot_B", LONGSLEEVE, ONE_PIECE)
ClothingDefineOutfit("Nascar", "CLT_Nascar", "SP_Nascar_H", "SP_Nascar_T", "none", "none", "SP_Nascar_L", "SP_Nascar_FT", LONGSLEEVE, ONE_PIECE)
ClothingDefineOutfit("NerdJimmy", "CLT_Nerd", "SP_Nerd_H", "SP_Nerd_T", "none", "SP_NerdWatch", "SP_Nerd_L", "SP_Nerd_FT", SHORTSLEEVE, ONE_PIECE)
ClothingDefineOutfit("Ninja_BLK", "CLT_NinjaBLK", "SP_Ninja_H", "SP_Ninja_T", "none", "none", "SP_Ninja_L", "SP_Ninja_Ft", LONGSLEEVE, MULTI_PIECE)
ClothingDefineOutfit("Ninja_RED", "CLT_NinjaRED", "SP_NinjaR_H", "SP_NinjaR_T", "none", "none", "SP_NinjaR_L", "SP_NinjaR_Ft", LONGSLEEVE, MULTI_PIECE)
ClothingDefineOutfit("Ninja_WHT", "CLT_NinjaWHT", "SP_NinjaW_H", "SP_NinjaW_T", "none", "none", "SP_NinjaW_L", "SP_NinjaW_Ft", LONGSLEEVE, MULTI_PIECE)
ClothingDefineOutfit("Nutcracker", "CLT_Nutcracker", "SP_Nutcrack_H", "SP_Nutcrack_T", "none", "none", "SP_Nutcrack_L", "SP_Nutcrack_FT", LONGSLEEVE, ONE_PIECE)
ClothingDefineOutfit("Orderly", "CLT_OLY_OUTFIT", "Hair", "SP_Orderly_T", "none", "none", "SP_Orderly_P", "SP_Orderly_B", LONGSLEEVE, ONE_PIECE)
ClothingDefineOutfit("Panda", "CLT_Panda", "SP_Panda_H", "none", "none", "none", "none", "SP_Panda_B", LONGSLEEVE, ONE_PIECE)
ClothingDefineOutfit("PJ", "CLT_PJ", "Hair", "SP_PJ_T", "none", "none", "SP_PJ_L", "SP_Socks", SHORTSLEEVE, MULTI_PIECE)
ClothingDefineOutfit("Prison", "CLT_Prison", "Hair", "SP_Prison_T", "none", "none", "SP_Prison_L", "P_Boots2", SHORTSLEEVE, ONE_PIECE)
ClothingDefineOutfit("Starting", "CLT_Start", "Hair", "B_Jacket6", "none", "none", "B_Pants2", "P_Sneakers2", LONGSLEEVE, MULTI_PIECE)
ClothingDefineOutfit("Underwear", "CLT_Undies", "Hair", "P_SSleeves11", "none", "none", "SP_Briefs", "SP_Socks", SHORTSLEEVE, MULTI_PIECE)
ClothingDefineOutfit("Uniform", "CLT_Uniform", "Hair", "S_Sweater5", "none", "none", "S_Pants1", "P_Sneakers2", SHORTSLEEVE, MULTI_PIECE)
ClothingDefineOutfit("Wrestling", "CLT_WRS_OUTFIT", "SP_Wrestling_H", "SP_Wrestling_T", "none", "none", "SP_Wrestling_L", "SP_Wrestling_ft", SHORTSLEEVE, ONE_PIECE)
sub esp, 0x1C
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x2C]
push edi
push 0x0
push esi
call LuaParam::GetString
push 0x1
push esi
mov edi, eax
call LuaParam::GetString
push 0x2
push esi
mov ebx, eax
call LuaParam::GetString
push 0x3
push esi
mov ebp, eax
call LuaParam::GetString
push 0x4
push esi
mov dword ptr [esp+0x50], eax
call LuaParam::GetString
push 0x5
push esi
mov dword ptr [esp+0x54], eax
call LuaParam::GetString
push 0x6
push esi
mov dword ptr [esp+0x58], eax
call LuaParam::GetString
push 0x7
push esi
mov dword ptr [esp+0x5C], eax
call LuaParam::GetString
add esp, 0x40
push 0x8
push esi
mov dword ptr [esp+0x20], eax
call LuaParam::GetBool
push 0x9
push esi
mov byte ptr [esp+0x24], al
call LuaParam::GetBool
mov ecx, dword ptr [esp+0x24]
mov edx, dword ptr [esp+0x28]
add esp, 0x10
mov byte ptr [esp+0x10], al
mov eax, dword ptr [esp+0x10]
push eax
mov eax, dword ptr [esp+0x20]
push ecx
mov ecx, dword ptr [esp+0x28]
push edx
mov edx, dword ptr [esp+0x30]
push eax
mov eax, dword ptr [esp+0x38]
push ecx
push edx
push eax
push ebp
push ebx
push edi
mov ecx, 0x20C5F70
call 0x6CC0D0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1C
ret
ClothingExitButton(false)
ClothingExitButton(true)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetBool
mov byte ptr [0x20C7B9E], al
add esp, 0x8
xor eax, eax
ret
if ClothingGetPlayer(1) == ObjectNameToHashID("S_Sweater5") then
if ClothingGetPlayer(1) == ObjectNameToHashID(shared.gUniformTorso) and not shared.PlayerInClothingManager then
if ClothingGetPlayer(1) == ObjectNameToHashID(shared.gUniformTorso) then
if ClothingGetPlayer(4) == ObjectNameToHashID("S_Pants1") then
local chestMdl = ClothingGetPlayer(1)
local index, id = ClothingGetPlayer(0)
local playerShirtMI = ClothingGetPlayer(1)
PlayerClothes = ClothingGetPlayer(0)
push esi
mov esi, dword ptr [esp+0x8]
push edi
push 0x0
push esi
call LuaParam::GetInt
lea edi, ptr [eax+eax*2]
mov eax, dword ptr [edi*4+0x20C5F70]
lea edi, ptr [edi*4+0x20C5F70]
push eax
push esi
call LuaParam::PushHashID
mov ecx, dword ptr [edi]
push 0xFFFFFFFF
push ecx
call 0x5F2450
push eax
push esi
call LuaParam::PushInt
add esp, 0x20
pop edi
mov eax, 0x2
pop esi
ret
-- never used
mov eax, dword ptr [0x20C76FC]
cmp eax, 0xFFFFFFFF
jnz 0x6
xor eax, eax
jmp 0xA
imul eax, eax, 0x54
add eax, 0x20C6B80
xor ecx, ecx
test eax, eax
jz 0x4
mov ecx, dword ptr [eax]
mov eax, dword ptr [esp+0x4]
push ecx
push eax
call LuaParam::PushHashID
add esp, 0x8
mov eax, 0x1
ret
local hairMdl = ClothingGetPlayersHair()
sub esp, 0xC
mov eax, dword ptr [0x20C6B78]
mov ecx, dword ptr [0x20C6B7C]
push esi
mov esi, dword ptr [0x20C6B74]
push edi
push 0xFFFFFFFF
push esi
mov dword ptr [esp+0x14], eax
mov dword ptr [esp+0x18], ecx
call 0x5F2450
push esi
mov esi, dword ptr [esp+0x24]
push esi
mov edi, eax
call LuaParam::PushHashID
push edi
push esi
call LuaParam::PushInt
add esp, 0x18
pop edi
mov eax, 0x2
pop esi
add esp, 0xC
ret
ClothingGivePlayer("C_AngelHalo", 0)
ClothingGivePlayer("C_BBracelets", 3)
ClothingGivePlayer("C_CanadaHat", 0)
ClothingGivePlayer("C_ClownPants", 4)
ClothingGivePlayer("C_ClownShoes", 5)
ClothingGivePlayer("C_ClownWig", 0)
ClothingGivePlayer("C_DevilHorns", 0)
ClothingGivePlayer("C_PinkWatch", 2)
ClothingGivePlayer("C_StpdShrt", 1)
ClothingGivePlayer("C_StrangeHat", 0)
ClothingGivePlayer("R_Sweater1", 1, false)
ClothingGivePlayer("S_Bhat1", 0)
ClothingGivePlayer("SP_Antlers", 0)
ClothingGivePlayer("SP_Bandshirt", 1)
ClothingGivePlayer("SP_Basshat", 0)
ClothingGivePlayer("SP_BikeHelmet", 0)
ClothingGivePlayer("SP_BikeJersey", 1)
ClothingGivePlayer("SP_BikeShorts", 4)
ClothingGivePlayer("SP_BMXHelmet", 0)
ClothingGivePlayer("SP_Cowboyhat", 0, true)
ClothingGivePlayer("SP_Duncehat", 0)
ClothingGivePlayer("SP_EdnaMask", 0)
ClothingGivePlayer("SP_EiffelHat", 0)
ClothingGivePlayer("SP_Einstein", 0)
ClothingGivePlayer("SP_Firehat", 0)
ClothingGivePlayer("SP_GK_Helmet", 0)
ClothingGivePlayer("SP_GymDisguise", 0, true)
ClothingGivePlayer("SP_Hazmat", 0)
ClothingGivePlayer("SP_HipShirt", 1)
ClothingGivePlayer("SP_MathShirt", 1)
ClothingGivePlayer("SP_MortarBhat", 0)
ClothingGivePlayer("SP_MuscleShirt", 1)
ClothingGivePlayer("SP_MusicPJ_L", 4)
ClothingGivePlayer("SP_MusicPJ_T", 1)
ClothingGivePlayer("SP_MusicShirt", 1)
ClothingGivePlayer("SP_Nascar_H", 0)
ClothingGivePlayer("SP_Panda_H", 0)
ClothingGivePlayer("SP_PieShirt", 1)
ClothingGivePlayer("SP_Pigmask", 0)
ClothingGivePlayer("SP_PirateHat", 0)
ClothingGivePlayer("SP_PithHelmet", 0)
ClothingGivePlayer("SP_Pophat", 0)
ClothingGivePlayer("SP_Pumpkin_head", 0)
ClothingGivePlayer("SP_Shorts", 4)
ClothingGivePlayer("SP_Swimsuit", 4)
ClothingGivePlayer("SP_VHelmet", 0)
ClothingGivePlayer("SP_XmsSweater", 1)
sub esp, 0xC
push ebx
push esi
mov esi, dword ptr [esp+0x18]
push edi
push 0x0
push esi
call LuaParam::GetString
push 0x1
push esi
mov edi, eax
call LuaParam::GetInt
push esi
mov ebx, eax
mov byte ptr [esp+0x20], 0x1
call 0x73AEA0
add esp, 0x14
cmp eax, 0x3
jl 0x11
push 0x2
push esi
call LuaParam::GetBool
add esp, 0x8
mov byte ptr [esp+0xC], al
push ebx
push edi
lea ecx, ptr [esp+0x18]
call 0x6CB2F0
mov eax, dword ptr [esp+0xC]
push eax
lea ecx, ptr [esp+0x14]
push ecx
mov ecx, 0x20C5F70
call 0x6CB6C0
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xC
ret
ClothingGivePlayerOutfit("80 Rocker")
ClothingGivePlayerOutfit("Alien", true, true)
ClothingGivePlayerOutfit("BMX Champion")
ClothingGivePlayerOutfit("Boxing NG")
ClothingGivePlayerOutfit("Columbus", true, true)
ClothingGivePlayerOutfit("Elf")
ClothingGivePlayerOutfit("Fast Food", true, true)
ClothingGivePlayerOutfit("Gnome")
ClothingGivePlayerOutfit("Gold Suit")
ClothingGivePlayerOutfit("Grotto Master")
ClothingGivePlayerOutfit("Halloween")
ClothingGivePlayerOutfit("Marching Band")
ClothingGivePlayerOutfit("Mascot")
ClothingGivePlayerOutfit("NerdJimmy")
ClothingGivePlayerOutfit("Ninja_BLK")
ClothingGivePlayerOutfit("Ninja_RED")
ClothingGivePlayerOutfit("Ninja_WHT")
ClothingGivePlayerOutfit("Nutcracker")
ClothingGivePlayerOutfit("Orderly")
ClothingGivePlayerOutfit("PJ")
ClothingGivePlayerOutfit("Prison")
ClothingGivePlayerOutfit("Starting", false)
ClothingGivePlayerOutfit("Underwear", false)
ClothingGivePlayerOutfit("Uniform")
ClothingGivePlayerOutfit("Wrestling")
push ecx
push ebx
push esi
mov esi, dword ptr [esp+0x10]
push edi
push 0x0
push esi
call LuaParam::IsHashID
add esp, 0x8
test al, al
push 0x0
push esi
jz 0xC
call LuaParam::GetUserData
add esp, 0x8
jmp 0x10
call LuaParam::GetString
push eax
call 0x576ED0
add esp, 0xC
push esi
mov edi, eax
mov bl, 0x1
call 0x73AEA0
add esp, 0x4
cmp eax, 0x2
jl 0xF
push 0x1
push esi
call LuaParam::GetBool
add esp, 0x8
mov bl, al
push esi
mov byte ptr [esp+0x10], 0x0
call 0x73AEA0
add esp, 0x4
cmp eax, 0x3
jl 0x11
push 0x2
push esi
call LuaParam::GetBool
add esp, 0x8
mov byte ptr [esp+0xC], al
push edi
mov ecx, 0x20C5F70
call 0x6CAA90
test eax, eax
jz 0x1A
test bl, bl
jz 0x6
or byte ptr [eax+0x50], 0x8
mov ecx, dword ptr [esp+0xC]
push ecx
push eax
mov ecx, 0x20C5F70
call 0x6CB7E0
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
if ClothingIsWearingAnyOutfit() == false and AreaGetVisible() == 0 and not MissionActive() then
if ClothingIsWearingAnyOutfit() then
mov eax, dword ptr [0x20C76FC]
cmp eax, 0xFFFFFFFF
jnz 0x6
xor eax, eax
jmp 0xA
imul eax, eax, 0x54
add eax, 0x20C6B80
mov ecx, dword ptr [esp+0x4]
test eax, eax
setnz al
push eax
push ecx
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
ret
elseif ClothingIsWearingOutfit("Gym Strip") then
if bKeepWeapon and not WeaponEquipped() and F_ObjectIsValid(shared.gWeaponBeforeCut) and shared.gWeaponBeforeCut ~= 437 and shared.gWeaponBeforeCut ~= 363 and (not ClothingIsWearingOutfit("Mascot") or ClothingIsWearingOutfit("Mascot") and not bHadProjectileWeapon) then
if ClothingIsWearingOutfit("Halloween") then
if ClothingIsWearingOutfit("Mascot") then
if ClothingIsWearingOutfit("Wrestling") then
if not ClothingIsWearingOutfit("Fast Food") then
if not ClothingIsWearingOutfit("Gym Strip") then
if not ClothingIsWearingOutfit("Orderly") then
if not ClothingIsWearingOutfit("Wrestling") then
if not MissionActive() and shared.gCurrentAmbientScenario == nil and not ClothingIsWearingOutfit("Mascot") then
if not shared.bBustedClassLaunched and not ClothingIsWearingOutfit("Gym Strip") then
if not shared.bBustedClassLaunched and not ClothingIsWearingOutfit("Wrestling") then
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push 0x0
push esi
call LuaParam::GetString
push eax
call 0x576ED0
add esp, 0xC
push eax
mov ecx, 0x20C5F70
call 0x6CA9F0
mov byte ptr [esp+0x4], al
mov eax, dword ptr [esp+0x4]
push eax
push esi
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
pop esi
pop ecx
ret
ClothingLock("FEET", false)
ClothingLock("FEET", true)
ClothingLock("HEAD", false)
ClothingLock("HEAD", true)
ClothingLock("LEFT_WRIST", false)
ClothingLock("LEFT_WRIST", true)
ClothingLock("LEGS", false)
ClothingLock("LEGS", true)
ClothingLock("OUTFIT", false)
ClothingLock("OUTFIT", true)
ClothingLock("RIGHT_WRIST", false)
ClothingLock("RIGHT_WRIST", true)
ClothingLock("TORSO", false)
ClothingLock("TORSO", true)
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x10]
push edi
push 0x0
push esi
call LuaParam::GetString
push 0x1
push esi
mov ebp, eax
call LuaParam::GetBool
add esp, 0x10
mov bl, al
mov edi, 0x924870
mov esi, ebp
mov ecx, 0x7
xor eax, eax
rep cmpsb byte ptr [esi], byte ptr [edi]
jnz 0xD
pop edi
pop esi
pop ebp
mov byte ptr [0x20C7B96], bl
pop ebx
ret
push ebp
call 0x6CA4D0
add esp, 0x4
pop edi
pop esi
mov byte ptr [eax+0x20C7B90], bl
pop ebp
xor eax, eax
pop ebx
ret
ClothingOverlay(false)
ClothingOverlay(true)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetBool
add esp, 0x8
test al, al
jz 0xA
call 0x6CB550
xor eax, eax
ret
call 0x6CB620
xor eax, eax
ret
ClothingPlayerOwns("SP_XmsSweater", 1)
if not ClothingPlayerOwns("C_AngelHalo", 0) then
if not ClothingPlayerOwns("C_BBracelets", 3) then
if not ClothingPlayerOwns("C_CanadaHat", 0) then
if not ClothingPlayerOwns("C_ClownPants", 4) then
if not ClothingPlayerOwns("C_ClownShoes", 5) then
if not ClothingPlayerOwns("C_ClownWig", 0) then
if not ClothingPlayerOwns("C_DevilHorns", 0) then
if not ClothingPlayerOwns("C_PinkWatch", 2) then
if not ClothingPlayerOwns("C_StpdShrt", 1) then
if not ClothingPlayerOwns("C_StrangeHat", 0) then
if not ClothingPlayerOwns("R_Sweater1", 1) then
if not ClothingPlayerOwns("SP_BikeHelmet", 0) then
if not ClothingPlayerOwns("SP_BMXHelmet", 0) then
sub esp, 0xC
push esi
mov esi, dword ptr [esp+0x14]
push edi
push 0x0
push esi
call LuaParam::GetString
push 0x1
push esi
mov edi, eax
call LuaParam::GetInt
movsx eax, al
add esp, 0x10
push eax
push edi
lea ecx, ptr [esp+0x14]
call 0x6CB2F0
lea eax, ptr [esp+0xC]
push eax
mov ecx, 0x20C5F70
call 0x6CA850
mov byte ptr [esp+0x8], al
mov ecx, dword ptr [esp+0x8]
push ecx
push esi
call LuaParam::PushBool
add esp, 0x8
pop edi
mov eax, 0x1
pop esi
add esp, 0xC
ret
ClothingRemovePlayer("S_Bhat1", 0)
sub esp, 0x8
push esi
mov esi, dword ptr [esp+0x10]
push edi
push 0x0
push esi
call LuaParam::GetString
push 0x1
push esi
mov edi, eax
call LuaParam::GetInt
add esp, 0x10
push eax
push edi
lea ecx, ptr [esp+0x10]
call 0x6CB2F0
lea eax, ptr [esp+0x8]
push eax
mov ecx, 0x20C5F70
call 0x6CA7E0
pop edi
xor eax, eax
pop esi
add esp, 0x8
ret
ClothingRestore()
push 0xCFB2E8
mov ecx, 0x20C5F70
call 0x6CB9B0
xor eax, eax
ret
ClothingSetPlayer(0, "SP_GK_Helmet")
ClothingSetPlayer(1, "B_Jacket6")
ClothingSetPlayer(1, "P_SSleeves11")
ClothingSetPlayer(1, "SP_XmsSweater")
ClothingSetPlayer(4, "B_Pants2")
ClothingSetPlayer(5, "SP_Socks")
sub esp, 0x8
push ebx
push esi
mov esi, dword ptr [esp+0x14]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::IsString
add esp, 0x10
test al, al
push 0x1
push esi
jz 0x12
call LuaParam::GetString
push eax
call 0x576ED0
add esp, 0xC
jmp 0xA
call LuaParam::GetUserData
add esp, 0x8
mov esi, eax
call 0x6CA7C0
test eax, eax
setnz bl
test bl, bl
jnz 0x7
call 0x6CB550
push edi
push esi
lea ecx, ptr [esp+0x14]
call 0x6CA4F0
lea eax, ptr [esp+0xC]
push eax
mov ecx, 0x20C5F70
call 0x6CB670
pop edi
pop esi
test bl, bl
pop ebx
jnz 0x7
call 0x6CB620
xor eax, eax
add esp, 0x8
ret
ClothingSetPlayerOutfit("Boxing NG")
ClothingSetPlayerOutfit("Boxing")
ClothingSetPlayerOutfit("Fast Food")
ClothingSetPlayerOutfit("Gym Strip")
ClothingSetPlayerOutfit("Halloween")
ClothingSetPlayerOutfit("Mascot")
ClothingSetPlayerOutfit("MascotNoHead")
ClothingSetPlayerOutfit("Nutcracker")
ClothingSetPlayerOutfit("Orderly")
ClothingSetPlayerOutfit("Starting")
ClothingSetPlayerOutfit("Starting", true)
ClothingSetPlayerOutfit("Underwear")
ClothingSetPlayerOutfit("Uniform")
ClothingSetPlayerOutfit("Wrestling")
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::IsHashID
add esp, 0x8
test al, al
push 0x0
push esi
jz 0xC
call LuaParam::GetUserData
add esp, 0x8
jmp 0x10
call LuaParam::GetString
push eax
call 0x576ED0
add esp, 0xC
push esi
mov edi, eax
mov byte ptr [esp+0xC], 0x0
call 0x73AEA0
add esp, 0x4
cmp eax, 0x2
jl 0x11
push 0x1
push esi
call LuaParam::GetBool
add esp, 0x8
mov byte ptr [esp+0x8], al
mov eax, dword ptr [esp+0x8]
push eax
push edi
mov ecx, 0x20C5F70
call 0x6CB720
pop edi
xor eax, eax
pop esi
pop ecx
ret
ClothingSetPlayersHair(shared.gDefaultHead)
mov eax, dword ptr [esp+0x4]
push ebx
push esi
push 0x0
push eax
call LuaParam::GetString
add esp, 0x8
mov esi, eax
call 0x6CA7C0
test eax, eax
setnz bl
test bl, bl
jnz 0x7
call 0x6CB550
push esi
call 0x576ED0
add esp, 0x4
push eax
mov ecx, 0x20C5F70
call 0x6CA900
pop esi
test bl, bl
pop ebx
jnz 0x7
call 0x6CB620
xor eax, eax
ret
ClothingStoreAdd(0, "B_BHat1", 600)
ClothingStoreAdd(0, "B_BHat2", 600)
ClothingStoreAdd(0, "B_BHat3", 600)
ClothingStoreAdd(0, "B_BHat4", 600)
ClothingStoreAdd(0, "B_BHat5", 600)
ClothingStoreAdd(0, "B_BHat6", 600)
ClothingStoreAdd(0, "B_Bucket1", 850)
ClothingStoreAdd(0, "B_Bucket2", 850)
ClothingStoreAdd(0, "B_Hunter1", 850)
ClothingStoreAdd(0, "B_Hunter2", 1000)
ClothingStoreAdd(0, "B_Hunter3", 1000)
ClothingStoreAdd(0, "B_Toque1", 750)
ClothingStoreAdd(0, "B_Toque2", 750)
ClothingStoreAdd(0, "B_Various1", 1000)
ClothingStoreAdd(0, "B_Various2", 850)
ClothingStoreAdd(0, "B_Various3", 750)
ClothingStoreAdd(0, "B_Various4", 750)
ClothingStoreAdd(0, "B_Various5", 1400)
ClothingStoreAdd(0, "P_Army1", 500)
ClothingStoreAdd(0, "P_Army2", 500)
ClothingStoreAdd(0, "P_Army3", 500)
ClothingStoreAdd(0, "P_Bandana1", 350)
ClothingStoreAdd(0, "P_Bandana2", 350)
ClothingStoreAdd(0, "P_Bandana3", 350)
ClothingStoreAdd(0, "P_Bhat1", 500)
ClothingStoreAdd(0, "P_Bhat2", 500)
ClothingStoreAdd(0, "P_Bhat3", 500)
ClothingStoreAdd(0, "P_Bhat4", 500)
ClothingStoreAdd(0, "P_Bhat5", 500)
ClothingStoreAdd(0, "P_Bhat6", 500)
ClothingStoreAdd(0, "P_Toque1", 500)
ClothingStoreAdd(0, "P_Toque2", 500)
ClothingStoreAdd(0, "P_Toque3", 500)
ClothingStoreAdd(0, "R_Hat1", 1400)
ClothingStoreAdd(0, "R_Hat2", 1400)
ClothingStoreAdd(0, "R_Hat3", 1400)
ClothingStoreAdd(0, "R_Hat4", 2500)
ClothingStoreAdd(0, "R_Hat5", 2500)
ClothingStoreAdd(0, "R_Hat6", 5500)
ClothingStoreAdd(0, "S_Bhat2", 350)
ClothingStoreAdd(0, "S_Bhat3", 350)
ClothingStoreAdd(0, "S_Sunvisor1", 350)
ClothingStoreAdd(0, "S_Sunvisor2", 350)
ClothingStoreAdd(0, "S_Sunvisor3", 350)
ClothingStoreAdd(1, "B_Jacket1", 1200)
ClothingStoreAdd(1, "B_Jacket2", 1200)
ClothingStoreAdd(1, "B_Jacket3", 1200)
ClothingStoreAdd(1, "B_Jersey1", 700)
ClothingStoreAdd(1, "B_Jersey10", 700)
ClothingStoreAdd(1, "B_Jersey3", 700)
ClothingStoreAdd(1, "B_Jersey4", 700)
ClothingStoreAdd(1, "B_Jersey5", 700)
ClothingStoreAdd(1, "B_Jersey6", 700)
ClothingStoreAdd(1, "B_Jersey7", 700)
ClothingStoreAdd(1, "B_Jersey8", 700)
ClothingStoreAdd(1, "B_Jersey9", 700)
ClothingStoreAdd(1, "B_LSleeves2", 900)
ClothingStoreAdd(1, "B_LSleeves3", 900)
ClothingStoreAdd(1, "B_LSleeves4", 900)
ClothingStoreAdd(1, "B_SSleeves1", 700)
ClothingStoreAdd(1, "B_SSleeves2", 900)
ClothingStoreAdd(1, "B_SSleeves3", 900)
ClothingStoreAdd(1, "B_Sweater2", 1000)
ClothingStoreAdd(1, "B_Sweater3", 1000)
ClothingStoreAdd(1, "B_Sweater4", 1000)
ClothingStoreAdd(1, "P_Jacket1", 1300)
ClothingStoreAdd(1, "P_Jacket2", 3000)
ClothingStoreAdd(1, "P_Jacket3", 2250)
ClothingStoreAdd(1, "P_Jacket4", 1300)
ClothingStoreAdd(1, "P_Jacket5", 1300)
ClothingStoreAdd(1, "P_Jacket6", 1300)
ClothingStoreAdd(1, "P_LSleeves1", 900)
ClothingStoreAdd(1, "P_LSleeves10", 900)
ClothingStoreAdd(1, "P_LSleeves2", 900)
ClothingStoreAdd(1, "P_LSleeves3", 900)
ClothingStoreAdd(1, "P_LSleeves4", 900)
ClothingStoreAdd(1, "P_LSleeves5", 900)
ClothingStoreAdd(1, "P_LSleeves6", 900)
ClothingStoreAdd(1, "P_LSleeves7", 900)
ClothingStoreAdd(1, "P_LSleeves8", 900)
ClothingStoreAdd(1, "P_LSleeves9", 900)
ClothingStoreAdd(1, "P_SSleeves1", 900)
ClothingStoreAdd(1, "P_SSleeves10", 500)
ClothingStoreAdd(1, "P_SSleeves12", 300)
ClothingStoreAdd(1, "P_SSleeves13", 300)
ClothingStoreAdd(1, "P_SSleeves14", 300)
ClothingStoreAdd(1, "P_SSleeves2", 900)
ClothingStoreAdd(1, "P_SSleeves3", 500)
ClothingStoreAdd(1, "P_SSleeves4", 500)
ClothingStoreAdd(1, "P_SSleeves5", 900)
ClothingStoreAdd(1, "P_SSleeves6", 500)
ClothingStoreAdd(1, "P_SSleeves7", 500)
ClothingStoreAdd(1, "P_SSleeves8", 500)
ClothingStoreAdd(1, "P_SSleeves9", 500)
ClothingStoreAdd(1, "P_Sweater1", 1100)
ClothingStoreAdd(1, "P_Sweater2", 1100)
ClothingStoreAdd(1, "P_Sweater3", 1100)
ClothingStoreAdd(1, "P_Sweater4", 900)
ClothingStoreAdd(1, "P_Sweater5", 900)
ClothingStoreAdd(1, "P_Sweater6", 900)
ClothingStoreAdd(1, "P_Sweater7", 700)
ClothingStoreAdd(1, "P_Sweater8", 900)
ClothingStoreAdd(1, "R_Jacket1", 10000)
ClothingStoreAdd(1, "R_Jacket2", 5000)
ClothingStoreAdd(1, "R_Jacket5", 2800)
ClothingStoreAdd(1, "R_LSleeves1", 1750)
ClothingStoreAdd(1, "R_LSleeves2", 1750)
ClothingStoreAdd(1, "R_LSleeves3", 1750)
ClothingStoreAdd(1, "R_LSleeves4", 1750)
ClothingStoreAdd(1, "R_LSleeves5", 1750)
ClothingStoreAdd(1, "R_SSleeves1", 1250)
ClothingStoreAdd(1, "R_SSleeves2", 1250)
ClothingStoreAdd(1, "R_SSleeves4", 1400)
ClothingStoreAdd(1, "R_SSleeves5", 1400)
ClothingStoreAdd(1, "R_SSleeves6", 1400)
ClothingStoreAdd(1, "R_Sweater1", 1750)
ClothingStoreAdd(1, "R_Sweater2", 2800)
ClothingStoreAdd(1, "R_Sweater3", 2800)
ClothingStoreAdd(1, "R_Sweater4", 2800)
ClothingStoreAdd(1, "R_Sweater5", 1750)
ClothingStoreAdd(1, "S_Jacket3", 1100)
ClothingStoreAdd(1, "S_Jacket4", 1100)
ClothingStoreAdd(1, "S_LSleeves1", 600)
ClothingStoreAdd(1, "S_LSleeves2", 600)
ClothingStoreAdd(1, "S_LSleeves3", 800)
ClothingStoreAdd(1, "S_LSleeves4", 800)
ClothingStoreAdd(1, "S_SSleeves1", 350)
ClothingStoreAdd(1, "S_SSleeves2", 350)
ClothingStoreAdd(1, "S_SSleeves3", 350)
ClothingStoreAdd(1, "S_SSleeves4", 350)
ClothingStoreAdd(1, "S_SSleeves5", 350)
ClothingStoreAdd(1, "S_SSleeves6", 350)
ClothingStoreAdd(1, "S_SSleeves7", 350)
ClothingStoreAdd(1, "S_SSleeves8", 350)
ClothingStoreAdd(1, "S_Sweater1", 700)
ClothingStoreAdd(1, "S_Sweater2", 700)
ClothingStoreAdd(2, "B_Watch1", 1300)
ClothingStoreAdd(2, "B_Watch2", 1300)
ClothingStoreAdd(2, "B_Watch3", 1300)
ClothingStoreAdd(2, "B_Watch4", 1300)
ClothingStoreAdd(2, "B_Watch5", 1300)
ClothingStoreAdd(2, "P_Watch1", 900)
ClothingStoreAdd(2, "R_Watch1", 3500)
ClothingStoreAdd(2, "R_Watch2", 2500)
ClothingStoreAdd(2, "R_Watch3", 3000)
ClothingStoreAdd(2, "R_Watch4", 3500)
ClothingStoreAdd(2, "S_Wristband1", 200)
ClothingStoreAdd(2, "S_Wristband4", 200)
ClothingStoreAdd(2, "S_Wristband6", 200)
ClothingStoreAdd(3, "B_Wristband1", 650)
ClothingStoreAdd(3, "B_Wristband2", 1100)
ClothingStoreAdd(3, "B_Wristband3", 1100)
ClothingStoreAdd(3, "B_Wristband4", 1000)
ClothingStoreAdd(3, "B_Wristband5", 1000)
ClothingStoreAdd(3, "P_Wristband1", 300)
ClothingStoreAdd(3, "P_Wristband2", 700)
ClothingStoreAdd(3, "P_Wristband3", 700)
ClothingStoreAdd(3, "P_Wristband4", 900)
ClothingStoreAdd(3, "P_Wristband5", 900)
ClothingStoreAdd(3, "P_Wristband6", 1100)
ClothingStoreAdd(3, "P_Wristband7", 1300)
ClothingStoreAdd(3, "P_Wristband8", 1200)
ClothingStoreAdd(3, "R_Wristband1", 3500)
ClothingStoreAdd(3, "R_Wristband2", 3000)
ClothingStoreAdd(3, "R_Wristband3", 2500)
ClothingStoreAdd(3, "R_Wristband4", 2500)
ClothingStoreAdd(3, "S_Wristband2", 200)
ClothingStoreAdd(3, "S_Wristband3", 200)
ClothingStoreAdd(3, "S_Wristband5", 200)
ClothingStoreAdd(4, "B_Pants1", 1200)
ClothingStoreAdd(4, "B_Pants3", 1400)
ClothingStoreAdd(4, "B_Pants4", 1400)
ClothingStoreAdd(4, "B_Pants6", 1000)
ClothingStoreAdd(4, "B_Pants7", 1000)
ClothingStoreAdd(4, "B_Pants8", 1200)
ClothingStoreAdd(4, "B_Shorts1", 900)
ClothingStoreAdd(4, "B_Shorts2", 1100)
ClothingStoreAdd(4, "B_Shorts3", 1100)
ClothingStoreAdd(4, "B_Shorts4", 900)
ClothingStoreAdd(4, "B_Shorts5", 900)
ClothingStoreAdd(4, "B_Shorts6", 1100)
ClothingStoreAdd(4, "B_Shorts7", 1100)
ClothingStoreAdd(4, "P_Pants1", 1500)
ClothingStoreAdd(4, "P_Pants2", 1250)
ClothingStoreAdd(4, "P_Pants3", 1000)
ClothingStoreAdd(4, "P_Pants4", 2000)
ClothingStoreAdd(4, "P_Pants5", 1000)
ClothingStoreAdd(4, "P_Pants6", 800)
ClothingStoreAdd(4, "P_Pants7", 600)
ClothingStoreAdd(4, "P_Shorts1", 600)
ClothingStoreAdd(4, "P_Shorts2", 600)
ClothingStoreAdd(4, "P_Shorts3", 800)
ClothingStoreAdd(4, "P_Shorts4", 800)
ClothingStoreAdd(4, "R_Pants1", 7000)
ClothingStoreAdd(4, "R_Pants2", 2000)
ClothingStoreAdd(4, "R_Pants3", 2000)
ClothingStoreAdd(4, "R_Pants4", 2800)
ClothingStoreAdd(4, "R_Pants5", 2800)
ClothingStoreAdd(4, "R_Shorts1", 1400)
ClothingStoreAdd(4, "R_Shorts2", 1400)
ClothingStoreAdd(4, "R_Shorts3", 1400)
ClothingStoreAdd(4, "R_Shorts4", 1400)
ClothingStoreAdd(4, "R_Shorts5", 1400)
ClothingStoreAdd(4, "S_Pants3", 700)
ClothingStoreAdd(4, "S_Shorts1", 500)
ClothingStoreAdd(4, "S_Shorts4", 500)
ClothingStoreAdd(4, "S_Shorts5", 500)
ClothingStoreAdd(4, "S_Shorts6", 500)
ClothingStoreAdd(5, "B_Boots2", 2250)
ClothingStoreAdd(5, "B_Boots3", 1250)
ClothingStoreAdd(5, "B_Boots4", 1250)
ClothingStoreAdd(5, "B_Boots5", 1000)
ClothingStoreAdd(5, "B_Sneakers1", 900)
ClothingStoreAdd(5, "B_Sneakers10", 700)
ClothingStoreAdd(5, "B_Sneakers11", 700)
ClothingStoreAdd(5, "B_Sneakers12", 700)
ClothingStoreAdd(5, "B_Sneakers13", 700)
ClothingStoreAdd(5, "B_Sneakers2", 2000)
ClothingStoreAdd(5, "B_Sneakers3", 1700)
ClothingStoreAdd(5, "B_Sneakers4", 900)
ClothingStoreAdd(5, "B_Sneakers5", 900)
ClothingStoreAdd(5, "B_Sneakers6", 700)
ClothingStoreAdd(5, "B_Sneakers8", 700)
ClothingStoreAdd(5, "B_Sneakers9", 700)
ClothingStoreAdd(5, "P_Boots1", 1200)
ClothingStoreAdd(5, "P_Boots3", 2000)
ClothingStoreAdd(5, "P_Boots4", 1200)
ClothingStoreAdd(5, "P_Sneakers1", 1300)
ClothingStoreAdd(5, "P_Sneakers10", 1200)
ClothingStoreAdd(5, "P_Sneakers11", 900)
ClothingStoreAdd(5, "P_Sneakers12", 900)
ClothingStoreAdd(5, "P_Sneakers13", 900)
ClothingStoreAdd(5, "P_Sneakers14", 1200)
ClothingStoreAdd(5, "P_Sneakers15", 1200)
ClothingStoreAdd(5, "P_Sneakers16", 1000)
ClothingStoreAdd(5, "P_Sneakers17", 1200)
ClothingStoreAdd(5, "P_Sneakers18", 1000)
ClothingStoreAdd(5, "P_Sneakers19", 900)
ClothingStoreAdd(5, "P_Sneakers3", 600)
ClothingStoreAdd(5, "P_Sneakers4", 600)
ClothingStoreAdd(5, "P_Sneakers5", 600)
ClothingStoreAdd(5, "P_Sneakers6", 600)
ClothingStoreAdd(5, "P_Sneakers7", 600)
ClothingStoreAdd(5, "P_Sneakers8", 1600)
ClothingStoreAdd(5, "P_Sneakers9", 1200)
ClothingStoreAdd(5, "R_Boots2", 2500)
ClothingStoreAdd(5, "R_Boots3", 2500)
ClothingStoreAdd(5, "R_Sneakers1", 3500)
ClothingStoreAdd(5, "R_Sneakers2", 1800)
ClothingStoreAdd(5, "R_Sneakers3", 1800)
ClothingStoreAdd(5, "R_Sneakers4", 2250)
ClothingStoreAdd(5, "R_Sneakers5", 1800)
ClothingStoreAdd(5, "S_Sneakers1", 600)
ClothingStoreAdd(5, "S_Sneakers2", 1000)
sub esp, 0x8
push ebx
push esi
mov esi, dword ptr [esp+0x14]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetString
push 0x2
push esi
mov ebx, eax
call LuaParam::GetInt
add esp, 0x18
push edi
push ebx
lea ecx, ptr [esp+0x14]
mov esi, eax
call 0x6CB2F0
lea eax, ptr [esp+0xC]
push esi
push eax
call 0x53CC70
mov ecx, eax
call 0x6CE5A0
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x8
ret
-- never used
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x10]
push edi
push 0x0
push esi
call LuaParam::GetString
push 0x1
push esi
mov ebp, eax
call LuaParam::GetBool
add esp, 0x10
mov bl, al
mov edi, 0x924870
mov esi, ebp
mov ecx, 0x7
xor eax, eax
rep cmpsb byte ptr [esi], byte ptr [edi]
jnz 0xD
pop edi
pop esi
pop ebp
mov byte ptr [0x20C7B9D], bl
pop ebx
ret
push ebp
call 0x6CA4D0
add esp, 0x4
pop edi
pop esi
mov byte ptr [eax+0x20C7B97], bl
pop ebp
xor eax, eax
pop ebx
ret
ClothingStoreRegisterFeedbackCallback(FeedbackCallback)
call 0x53CC70
push eax
mov eax, dword ptr [esp+0x8]
push 0x0
push eax
call 0x5DA060
add esp, 0xC
xor eax, eax
ret
A standard Lua 5.0 function documented on lua.org.
CollectibleOnMapEnable(0, false)
CollectibleOnMapEnable(0, true)
CollectibleOnMapEnable(1, false)
CollectibleOnMapEnable(1, true)
CollectibleOnMapEnable(2, false)
CollectibleOnMapEnable(2, true)
CollectibleOnMapEnable(3, false)
CollectibleOnMapEnable(3, true)
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetBool
mov byte ptr [esp+0x18], al
mov eax, dword ptr [esp+0x18]
add esp, 0x10
push eax
push edi
mov ecx, 0xBCEB50
call 0x428B70
pop edi
xor eax, eax
pop esi
pop ecx
ret
if not MiniObjectiveGetIsComplete(13) and CollectiblesGetNumCollectable(3) == CollectiblesGetNumCollected(3) and CollectiblesGetNumCollectable(0) == CollectiblesGetNumCollected(0) and CollectiblesGetNumCollectable(2) == CollectiblesGetNumCollected(2) and CollectiblesGetNumCollectable(5) == CollectiblesGetNumCollected(5) and CollectiblesGetNumCollectable(4) == CollectiblesGetNumCollected(4) and CollectiblesGetNumCollectable(1) == CollectiblesGetNumCollected(1) then
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, 0xBCEB50
call 0x426430
movsx eax, ax
push eax
push esi
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
pop esi
ret
if not MiniObjectiveGetIsComplete(13) and CollectiblesGetNumCollectable(3) == CollectiblesGetNumCollected(3) and CollectiblesGetNumCollectable(0) == CollectiblesGetNumCollected(0) and CollectiblesGetNumCollectable(2) == CollectiblesGetNumCollected(2) and CollectiblesGetNumCollectable(5) == CollectiblesGetNumCollected(5) and CollectiblesGetNumCollectable(4) == CollectiblesGetNumCollected(4) and CollectiblesGetNumCollectable(1) == CollectiblesGetNumCollected(1) then
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, 0xBCEB50
call 0x426440
movsx eax, ax
push eax
push esi
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
pop esi
ret
CollectiblesOnCollectedCallback(CB_CollectibleCollected)
mov eax, dword ptr [esp+0x4]
push 0xBD09DC
push 0x0
push eax
call 0x5DA060
add esp, 0xC
xor eax, eax
ret
CollectiblesSetAllAsCollected(1, false)
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetInt
push esi
mov edi, eax
mov byte ptr [esp+0x14], 0x1
call 0x73AEA0
add esp, 0xC
cmp eax, 0x2
jl 0x11
push 0x1
push esi
call LuaParam::GetBool
add esp, 0x8
mov byte ptr [esp+0x8], al
mov eax, dword ptr [esp+0x8]
push eax
push edi
mov ecx, 0xBCEB50
call 0x428CF0
pop edi
xor eax, eax
pop esi
pop ecx
ret
CollectiblesSetTypeAvailable(0)
CollectiblesSetTypeAvailable(0, true)
CollectiblesSetTypeAvailable(1, false)
CollectiblesSetTypeAvailable(1, true)
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push esi
mov byte ptr [esp+0x8], 0x1
call 0x73AEA0
add esp, 0x4
cmp eax, 0x2
jl 0x11
push 0x1
push esi
call LuaParam::GetBool
add esp, 0x8
mov byte ptr [esp+0x4], al
push 0x0
push esi
call LuaParam::GetInt
mov ecx, dword ptr [esp+0xC]
add esp, 0x8
push ecx
push eax
mov ecx, 0xBCEB50
call 0x426490
xor eax, eax
pop esi
pop ecx
ret
if CompareHashIDs(hashId, entry.id) then
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push esi
call 0x73AEA0
push 0x0
push esi
call LuaParam::GetUserData
push 0x1
push esi
mov edi, eax
call LuaParam::GetUserData
cmp edi, eax
setz al
mov byte ptr [esp+0x1C], al
mov ecx, dword ptr [esp+0x1C]
push ecx
push esi
call LuaParam::PushBool
add esp, 0x1C
pop edi
mov eax, 0x1
pop esi
pop ecx
ret
ConversationMovePeds(false)
ConversationMovePeds(true)
push ecx
mov eax, dword ptr [esp+0x8]
push 0x0
push eax
call LuaParam::GetBool
mov byte ptr [esp+0x8], al
mov ecx, dword ptr [esp+0x8]
add esp, 0x8
push ecx
mov ecx, 0xB9DAB8
call 0x683EB0
xor eax, eax
pop ecx
ret
CLIENT
Returns a texture object that is a copy of the texture passed. The format is optional, and only a few are supported. By default, the texture will be compatible with DumpTexture.
A standard Lua 5.0 function documented on lua.org.
A standard Lua 5.0 function documented on lua.org.
A standard Lua 5.0 function documented on lua.org.
A standard Lua 5.0 function documented on lua.org.
A standard Lua 5.0 function documented on lua.org.
CounterClearIcon()
mov ecx, dword ptr [0xC674C0]
call 0x53F270
xor eax, eax
ret
CounterClearText()
mov eax, dword ptr [0xC674C0]
fldz
fst dword ptr [eax+0xA4], st
mov byte ptr [eax+0x63], 0x0
fstp dword ptr [eax+0xA8], st
xor eax, eax
ret
CounterEnableRoll(true, "ROLL_JIMMY_COUNTER", "ROLL_ZOE_COUNTER", 25)
push esi
mov esi, dword ptr [esp+0x8]
push edi
mov edi, dword ptr [0xC674C0]
push 0x3
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x4], st
add esp, 0x4
push 0x0
push 0x2
push esi
call LuaParam::GetString ; optional
add esp, 0xC
push eax
push 0x1
push esi
call LuaParam::GetString
add esp, 0x8
push eax
push 0x0
push esi
call LuaParam::GetBool
add esp, 0x8
mov ecx, edi
push eax
call 0x53F140
pop edi
xor eax, eax
pop esi
ret
--DebugPrint("num_kicked and CounterGetCurrent() are in disagreement!!!!!")
--DebugPrint("num_kicked: " .. num_kicked .. " counter says: " .. CounterGetCurrent())
--print("[JASON] =====> Barber Collected" .. CounterGetCurrent())
--print("[JASON] =====> Clothing Collected" .. CounterGetCurrent())
--print("[JASON] =====> Grocery Collected" .. CounterGetCurrent())
--print("Number of posters tagged: ", CounterGetCurrent())
CounterSetCurrent(CounterGetCurrent() + 1)
elseif nMissionPhase == 1 and CounterGetCurrent() == gSchoolTagCount then
if 0 < table.getn(tblDatalogue) and CounterGetCurrent() < CounterGetMax() and not SoundSpeechPlaying(edna) and not SoundSpeechPlaying(watts) and bDinnerStatus ~= DINNER_FAIL then
if 3 > CounterGetCurrent() then
if CounterGetCurrent() < CounterGetMax() then
if CounterGetCurrent() <= 2 then
if CounterGetCurrent() == 3 and PlayerIsInAreaObject(johnny, 2, 4, 0) then
if CounterGetCurrent() == CounterGetMax() - 1 and ItemGetCurrentNum(312) == 1 then
if CounterGetCurrent() == CounterGetMax() - 1 then
if CounterGetCurrent() == CounterGetMax() then
if CounterGetCurrent() == MAX_ROOMS then
if CounterGetCurrent() == MAX_SHEETS then
if CounterGetCurrent() == TAG_MIN then
if CounterGetCurrent() > gTicketsRequired then
if CounterGetCurrent() >= 12 and not bMascotNeutral then
if CounterGetCurrent() >= 24 and not bMascotPissed then
if CounterGetCurrent() >= 36 and not PedIsPlaying(pedMascot.id, "/Global/Actions/Grapples", true) then
if CounterGetCurrent() >= CounterGetMax() then
if CounterGetCurrent() >= MAX_TAGS then
if CounterGetCurrent() >= MAX_TARGET_TAGS then
if not bReturnToJohnnyMessage and CounterGetCurrent() == 3 then
if not PlayerIsInTrigger(TRIGGER._2_05_TADSYARD) and CounterGetCurrent() ~= CounterGetMax() then
if not PlayerIsInTrigger(TRIGGER._3_01_MISSIONBLOCK) and 3 > CounterGetCurrent() then
if num_kicked ~= CounterGetCurrent() then
if tblEvent.reinforce and CounterGetCurrent() < CounterGetMax() then
MissionObjectiveUpdateParam(objId, 1, CounterGetMax() - CounterGetCurrent())
TextAddParamNum(CounterGetMax() - CounterGetCurrent())
while CounterGetCurrent() < CounterGetMax() and bDinnerStatus ~= DINNER_PASS do
while CounterGetCurrent() == 0 and gMissionState == MISSION_RUNNING do
while CounterGetCurrent() ~= CounterGetMax() do
mov eax, dword ptr [0xC674C0]
mov ecx, dword ptr [eax+0x50]
mov edx, dword ptr [esp+0x4]
push ecx
push edx
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
ret
CounterSetMax(CounterGetMax() + 1)
if 0 < table.getn(tblDatalogue) and CounterGetCurrent() < CounterGetMax() and not SoundSpeechPlaying(edna) and not SoundSpeechPlaying(watts) and bDinnerStatus ~= DINNER_FAIL then
if CounterGetCurrent() < CounterGetMax() then
if CounterGetCurrent() == CounterGetMax() - 1 and ItemGetCurrentNum(312) == 1 then
if CounterGetCurrent() == CounterGetMax() - 1 then
if CounterGetCurrent() == CounterGetMax() then
if CounterGetCurrent() >= CounterGetMax() then
if not PlayerIsInTrigger(TRIGGER._2_05_TADSYARD) and CounterGetCurrent() ~= CounterGetMax() then
if tblEvent.reinforce and CounterGetCurrent() < CounterGetMax() then
MissionObjectiveUpdateParam(objId, 1, CounterGetMax() - CounterGetCurrent())
TextAddParamNum(CounterGetMax() - CounterGetCurrent())
while CounterGetCurrent() < CounterGetMax() and bDinnerStatus ~= DINNER_PASS do
while CounterGetCurrent() ~= CounterGetMax() do
mov eax, dword ptr [0xC674C0]
mov ecx, dword ptr [eax+0x4C]
mov edx, dword ptr [esp+0x4]
push ecx
push edx
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
ret
CounterIncrementCurrent(-1)
CounterIncrementCurrent(1)
CounterIncrementCurrent(totalTargets)
mov eax, dword ptr [esp+0x4]
push esi
mov esi, dword ptr [0xC674C0]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, esi
call 0x53F1C0
xor eax, eax
pop esi
ret
CounterMakeHUDVisible(false)
CounterMakeHUDVisible(false, false)
CounterMakeHUDVisible(true)
CounterMakeHUDVisible(true, F_GetDefault(counter.displayMax, tblCounterDefault.displayMax))
CounterMakeHUDVisible(true, false)
CounterMakeHUDVisible(true, true)
print(">>>[RUI]", "CounterMakeHUDVisible")
push ebx
mov ebx, dword ptr [esp+0x8]
push esi
push edi
mov edi, dword ptr [0xC674C0]
mov esi, dword ptr [edi]
push 0x0
push ebx
add esi, 0x14
call LuaParam::GetBool
add esp, 0x8
mov ecx, edi
push eax
mov eax, dword ptr [esi]
call 0x5BC4A4
mov esi, dword ptr [0xC674C0]
push ebx
call 0x73AEA0
add esp, 0x4
cmp eax, 0x2
jnz 0x10
push 0x1
push ebx
call LuaParam::GetBool
add esp, 0x8
mov byte ptr [esi+0x60], al
pop edi
pop esi
xor eax, eax
pop ebx
ret
CounterSetCurrent(0)
CounterSetCurrent(1)
CounterSetCurrent(2)
CounterSetCurrent(3)
CounterSetCurrent(cannedCurrentCount)
CounterSetCurrent(counter.start or tblCounterDefault.start)
CounterSetCurrent(CounterGetCurrent() + 1)
CounterSetCurrent(deadcount)
CounterSetCurrent(gItemsCollected)
CounterSetCurrent(gTicketsRequired)
CounterSetCurrent(ItemGetCurrentNum(495))
CounterSetCurrent(L1_2)
CounterSetCurrent(Max)
CounterSetCurrent(nPhotos)
CounterSetCurrent(nPickedUp)
CounterSetCurrent(numBikes)
CounterSetCurrent(NumBreakablesBroken)
CounterSetCurrent(NumBreakablesBrokenEvent)
CounterSetCurrent(playerTotal)
CounterSetCurrent(prankCount)
CounterSetCurrent(score)
mov eax, dword ptr [esp+0x4]
push esi
mov esi, dword ptr [0xC674C0]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, esi
call 0x53F1F0
xor eax, eax
pop esi
ret
CounterSetIcon("bagged_bottle", "bagged_bottle_x")
CounterSetIcon("Bull_happy", "Bull_happy_x")
CounterSetIcon("Bull_neutral", "Bull_neutral_x")
CounterSetIcon("Bull_piss", "Bull_piss_x")
CounterSetIcon("caflady", "caflady_x")
CounterSetIcon("CarnTicket", "CarnTicket_x")
CounterSetIcon("catcher", "catcher_x")
CounterSetIcon("charasheet", "charasheet_x")
CounterSetIcon("HUDIcon_photos", "HUDIcon_photos_x")
CounterSetIcon("HUDIcon_snowoff", "HUDIcon_snowoff_x")
CounterSetIcon("HUDIcon_undies", "HUDIcon_undies_x")
CounterSetIcon("lola", "lola_x")
CounterSetIcon("mailbox", "mailbox_x")
CounterSetIcon("mailboxb", "mailboxb_x")
CounterSetIcon("MandPost", "MandPost_x")
CounterSetIcon("MsPhillips", "MsPhillips_x")
CounterSetIcon("package", "package_x")
CounterSetIcon("Rat", "Rat_x")
CounterSetIcon("rudy", "rudy_x")
CounterSetIcon("snowface", "snowface_x")
CounterSetIcon("spraycan", "spraycan_x")
CounterSetIcon("Switch", "Switch_x")
CounterSetIcon("Window", "Window_x")
CounterSetIcon("WindowEgg", "WindowEgg_x")
CounterSetIcon(counter.icon, counter.icon .. "_x")
push esi
mov esi, dword ptr [0xC674C0]
push edi
mov edi, dword ptr [esp+0xC]
push 0x1
push edi
call LuaParam::GetString
add esp, 0x8
push eax
push 0x0
push edi
call LuaParam::GetString
add esp, 0x8
push eax
mov ecx, esi
call 0x53F200
pop edi
xor eax, eax
pop esi
ret
CounterSetMax(0)
CounterSetMax(2)
CounterSetMax(3)
CounterSetMax(36)
CounterSetMax(4)
CounterSetMax(5)
CounterSetMax(cMax)
CounterSetMax(cMaxMailBoxes)
CounterSetMax(counter.max or tblCounterDefault.max)
CounterSetMax(CounterGetMax() + 1)
CounterSetMax(countMax)
CounterSetMax(DESTRUCTO_METER_MAX)
CounterSetMax(gTicketsRequired)
CounterSetMax(gTotalPics)
CounterSetMax(Max)
CounterSetMax(max_num_kicks_allowed)
CounterSetMax(max_rats)
CounterSetMax(MAX_SHEETS)
CounterSetMax(maxBikes)
CounterSetMax(maxPapers)
CounterSetMax(nAnnoyMax)
CounterSetMax(NUM_ORNAMENTS)
CounterSetMax(NUM_PHOTOS)
CounterSetMax(tmax)
CounterSetMax(zoeTotal)
mov eax, dword ptr [esp+0x4]
push esi
mov esi, dword ptr [0xC674C0]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, esi
call 0x53F1E0
xor eax, eax
pop esi
ret
CounterSetText("1_11_XP_COUNTER")
CounterSetText("2_S05_EDNA_ITEMS")
CounterSetText("MGSG_31")
CounterSetText("P_GRAF_COUNT")
CounterSetText("P_SNOW_COUNT")
mov eax, dword ptr [esp+0x4]
push esi
mov esi, dword ptr [0xC674C0]
push 0x0
push eax
call LuaParam::GetString
push 0x40
push eax
add esi, 0x63
push esi
call 0x85C7D0
add esp, 0x14
xor eax, eax
pop esi
ret
-- never used
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push 0x3
push esi
call LuaParam::GetInt
add esp, 0x8
push eax
push 0x2
push esi
call LuaParam::GetInt
add esp, 0x8
push eax
push 0x1
push esi
call LuaParam::GetInt
add esp, 0x8
push eax
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x8
push eax
lea ecx, ptr [esp+0x14]
call 0x510DE0
mov ecx, dword ptr [esp+0x4]
mov eax, dword ptr [0xC674C0]
add eax, 0x5C
mov edx, ecx
shr edx, 0x8
mov byte ptr [eax+0x1], dl
mov edx, ecx
mov byte ptr [eax], cl
shr edx, 0x10
shr ecx, 0x18
mov byte ptr [eax+0x2], dl
mov byte ptr [eax+0x3], cl
xor eax, eax
pop esi
pop ecx
ret
CounterSetTextXYOffset(0, 0)
sub esp, 0x8
push esi
mov esi, dword ptr [0xC674C0]
push edi
mov edi, dword ptr [esp+0x14]
push 0x0
push edi
call LuaParam::GetFloat
fstp dword ptr [esp+0x14], st
push 0x1
push edi
call LuaParam::GetFloat
fstp dword ptr [esp+0x18], st
fld st, dword ptr [esp+0x18]
add esp, 0x8
fstp dword ptr [esp+0x4], st
mov ecx, esi
fld st, dword ptr [esp+0x14]
fstp dword ptr [esp], st
call 0x53F120
pop edi
xor eax, eax
pop esi
add esp, 0x8
ret
CounterUseMeter(false)
CounterUseMeter(true)
mov eax, dword ptr [esp+0x4]
push esi
mov esi, dword ptr [0xC674C0]
push 0x0
push eax
call LuaParam::GetBool
add esp, 0x8
mov byte ptr [esi+0x61], al
xor eax, eax
pop esi
ret
SHARED
Creates and returns a new thread using the function. Some thread types can only be created using this function.
SHARED
Creates and returns a bitfield object. If copy is given, it is another bitfield to copy from. Otherwise each bit is zero (off) by default.
This bitfield can be indexed like a table using a zero-based index in the range [0, 32).
Can be used to save space in functions like SaveTable, PackTable, PackData, or SendNetworkEvent.
CLIENT
Creates and returns a new thread using the function. Drawing threads are run right before the game presents the frame.
CLIENT
Returns a font object by taking a name of a system font. Usually not useful, and only exists because there used to be plans to add custom font support.
SHARED
Returns a matrix object. Takes 2 values for the dimensions (row and column count), or a table of rows where each row is another table of numbers (for each column).
function CreateNameSpace(filename)
local nst = {}
--assert(not _nspaces[filename], "Namespace exists")
_nspaces[filename] = nst
nst.file = filename
local func_env = {}
nst.func_env = func_env
setmetatable(func_env, { __index = _GG })
function func_env.ImportScript(impfile)
local scr = _Import(impfile)
setfenv(scr, func_env)
scr()
end
function func_env._Thread(funcstr)
local func
if funcstr and type(funcstr) == "function" then
func = funcstr
else
func = func_env[funcstr]
--assert(func and type(func) == "function", "Bad thread function " .. tostring(funcstr))
end
local function wrapped()
func()
end
setfenv(wrapped, func_env)
return coroutine.create(wrapped)
end
function func_env._Call(func, err, arg1, arg2, arg3, arg4, arg5, arg6)
local func = func_env[func]
if func or err then
--assert(func and type(func) == "function", "A function is being called that doesnt exist or not type function: " .. tostring(func))
return func(arg1, arg2, arg3, arg4, arg5, arg6)
end
return 0
end
local function namespace(file)
--assert(func_env and type(func_env) == "table")
setfenv(1, func_env)
local scr = _Import(filename)
setfenv(scr, func_env)
scr()
coroutine.yield()
end
--assert(_scope1 == nil)
local co = coroutine.create(namespace)
local res = coroutine.resume(co, filename)
return co
end
boardBad01, boardBad02 = CreatePersistentEntity("SC_JocksLEDbad", -53.1448, -73.6493, 6.34204, 0, 0)
boardGood01, boardGood02 = CreatePersistentEntity("SC_JocksLEDgood", -53.1448, -73.6493, 6.34204, 0, 0)
BrokenGateId, BrokenGateObject = CreatePersistentEntity("BarrGate", 150.232, -483.16, 2.05389, 125, 0)
coolerIndex, coolerEntity = CreatePersistentEntity("PCaf_GatCooler", -642.028, -57.5198, 55.515, 0, 13)
dGI, dGO = CreatePersistentEntity("DodgeballGate", -620.11, -55.437, 59.185, 0, 13)
entity.poolIndex, entity.type = CreatePersistentEntity(entity.id, entity.x, entity.y, entity.z, entity.heading, entity.visibleArea)
entry.poolIndex, entry.type = CreatePersistentEntity(entry.poster .. "a", entry.x, entry.y, entry.z + entry.o, 0, 0)
entry.poolIndex, entry.type = CreatePersistentEntity(entry.poster, entry.x, entry.y, entry.z, 0, 0)
finalPottyIndex, finalPottyType = CreatePersistentEntity("rc2d_PortaPoo_A", 473.144, 260.006, 13.0302, 1.00179E-5, 0)
Gate102PoolIndex, Gate102Entity = CreatePersistentEntity("1_02Gate", Gate102Pos[1], Gate102Pos[2], Gate102Pos[3], Gate102Pos[4], 0)
gateIndex, gateObject = CreatePersistentEntity("SCStoreGte_Closed", -611.652, -313.9, 2.00164, 0, 2)
gBagInd, gBagModel = CreatePersistentEntity("SC_PooBag", -589.35, -295.331, 0.116788, 0, 2)
gBikeIndex, gBikeObject = CreatePersistentEntity("DPE_RussBike", 146.556, -488.208, 2.421, 0, 0)
gButtonIndex, gCraneButton = CreatePersistentEntity("DPE_buttonOFF", -753.797, -606.439, 7.7574, -113.707, 43)
gCraneIndex, gCraneLights = CreatePersistentEntity("JY1d_animlight", -749.922, -608.287, 8.51702, 0, 43)
gRatCrate.index, gRatCrate.simpleObject = CreatePersistentEntity("RatCrateWH", gRatCrate.x, gRatCrate.y, gRatCrate.z, 1.0017, 54)
gSktModl, gSktGeo = CreatePersistentEntity("SC_SK8Board", 154.684, 1.29007, 6.77178, 0, 0)
gStatueLight, gStatueLightObject = CreatePersistentEntity("AS_statueLights", -108.125, -346.711, 10.0478, 0, 0)
gTrophyPile.index, gTrophyPile.simpleObject = CreatePersistentEntity("5_02_inTrophyPile", gTrophyPile.x, gTrophyPile.y, gTrophyPile.z, 0, 0)
gWatcherBox, gWatcherBoxObject = CreatePersistentEntity("SC_ObservTrans", -106.378, -344.652, 5.68995, -180, 0)
holeGateCloseIndex, holeGateCloseGeometry = CreatePersistentEntity("FightPit_DoorClose", -771.439, -127.039, 8.801, 0, 8)
idObj1, bObj1 = CreatePersistentEntity("tschl_uvCrowd", 1.82043, -72.9178, 3.7707, 0, 0)
idObj2, bObj2 = CreatePersistentEntity("scBoss_wall", -27.5637, -73.6518, -8.30141, 0, 0)
idObj3, bObj3 = CreatePersistentEntity("SC_GatCooler", -7.70793, -63.9239, 1.64374, 0, 0)
idObject, bObjectPool = CreatePersistentEntity("BDorm_GnomeA", -499.407, 310.001, 34.1184, 0, 14)
idObject, bObjectPool = CreatePersistentEntity("Mission_BMX", -496.17, 307.446, 32.707, 0, 14)
idObject, bObjectPool = CreatePersistentEntity("Mission_CarnTckt01", -493.556, 307.619, 33.0466, 0, 14)
idObject, bObjectPool = CreatePersistentEntity("Mission_CarnTckt02", -495.479, 315.723, 33.1577, 1.00179E-5, 14)
idObject, bObjectPool = CreatePersistentEntity("Mission_PR", -496.203, 315.721, 32.7491, 0, 14)
idObject, bObjectPool = CreatePersistentEntity("Mission_Pumpkin", -498.236, 307.863, 33.8526, 0.23926, 14)
idObject, bObjectPool = CreatePersistentEntity("Mission_Tomb", -497.552, 307.855, 31.8739, 0, 14)
index, simpleObject = CreatePersistentEntity("3_06CarBarr03", 525.512, -321.417, 4.40922, 1.00179E-5, 0)
index, simpleObject = CreatePersistentEntity("BX_DTrophyA", -736.658, 382.011, 299.746, 0, 27)
index, simpleObject = CreatePersistentEntity("BX_DTrophyB", -736.925, 382.163, 299.82, 0, 27)
index, simpleObject = CreatePersistentEntity("BX_DTrophyC", -736.648, 382.334, 299.664, 0, 27)
index, simpleObject = CreatePersistentEntity("BX_DTrophyD", -736.928, 382.498, 299.84, 0, 27)
index, simpleObject = CreatePersistentEntity("BX_DTrophyE", -736.861, 381.925, 299.231, 0, 27)
index, simpleObject = CreatePersistentEntity("BX_DTrophyF", -736.718, 382.151, 299.279, 0, 27)
index, simpleObject = CreatePersistentEntity("BX_DTrophyG", -736.981, 382.524, 299.269, 0, 27)
index, simpleObject = CreatePersistentEntity("BX_DTrophyH", -736.792, 383.093, 299.589, 0, 27)
index, simpleObject = CreatePersistentEntity("BX_DTrophyI", -736.758, 383.799, 299.305, 0, 27)
index, simpleObject = CreatePersistentEntity("BX_DTrophyJ", -736.816, 384.296, 299.742, 0, 27)
index, simpleObject = CreatePersistentEntity("BX_DTrophyK", -736.79, 384.601, 299.836, 0, 27)
index, simpleObject = CreatePersistentEntity("BX_DTrophyL", -736.783, 384.912, 299.742, 0, 27)
index, simpleObject = CreatePersistentEntity("BX_DTrophyM", -736.864, 384.377, 299.283, 0, 27)
index, simpleObject = CreatePersistentEntity("BX_DTrophyN", -736.986, 384.699, 299.273, 0, 27)
index, simpleObject = CreatePersistentEntity("BX_DTrophyO", -736.856, 384.974, 299.246, 0, 27)
index, simpleObject = CreatePersistentEntity("BX_DTrophyP", -736.784, 385.537, 299.786, 0, 27)
index, simpleObject = CreatePersistentEntity("DPE_FlowersA", 485.146, 308.294, 20.3203, -67.6008, 0)
index, simpleObject = CreatePersistentEntity("DPE_FlowersA", 485.889, 295.716, 20.6437, -94.4164, 0)
index, simpleObject = CreatePersistentEntity("DPE_FlowersA", 487.408, 308.882, 20.3203, -83.3395, 0)
index, simpleObject = CreatePersistentEntity("DPE_FlowersA", 488.294, 295.74, 20.923, 87.4664, 0)
index, simpleObject = CreatePersistentEntity("DPE_FlowersA", 490.002, 309.004, 20.293, -82.8627, 0)
index, simpleObject = CreatePersistentEntity("DPE_FlowersA", 490.093, 296.687, 20.8798, -62.0728, 0)
index, simpleObject = CreatePersistentEntity("DPE_FlowersA", 492.683, 308.799, 20.2311, -97.4194, 0)
index, simpleObject = CreatePersistentEntity("DPE_FlowersA", 493.951, 297.271, 20.7765, 87.2991, 0)
index, simpleObject = CreatePersistentEntity("DPE_FlowersA", 494.023, 280.297, 20.4237, 19.3388, 0)
index, simpleObject = CreatePersistentEntity("DPE_FlowersA", 494.091, 291.93, 20.7425, 3.53308, 0)
index, simpleObject = CreatePersistentEntity("DPE_FlowersA", 495.141, 307.937, 20.1985, -96.9899, 0)
index, simpleObject = CreatePersistentEntity("DPE_FlowersA", 495.386, 296.305, 20.7425, 8.30528, 0)
index, simpleObject = CreatePersistentEntity("DPE_FlowersA", 495.618, 277.327, 20.0646, 32.3669, 0)
index, simpleObject = CreatePersistentEntity("DPE_FlowersA", 496.977, 274.852, 20.0646, 8.28537, 0)
index, simpleObject = CreatePersistentEntity("DPE_FlowersA", 497.536, 306.67, 20.2044, -126.119, 0)
index, simpleObject = CreatePersistentEntity("DPE_FlowersA", 499.581, 305.309, 20.2381, -125.981, 0)
index, simpleObject = CreatePersistentEntity("DPE_FlowersA", 501.392, 303.32, 20.191, -140.793, 0)
index, simpleObject = CreatePersistentEntity("DPE_FlowersA", 502.467, 279.397, 20.0778, 164.261, 0)
index, simpleObject = CreatePersistentEntity("DPE_FlowersA", 502.568, 301.027, 20.2052, -149.43, 0)
index, simpleObject = CreatePersistentEntity("DPE_FlowersA", 503.34, 298.956, 20.2003, -146.56, 0)
index, simpleObject = CreatePersistentEntity("DPE_FlowersA", 503.527, 281.605, 20.1003, 162.873, 0)
index, simpleObject = CreatePersistentEntity("DPE_FlowersA", 504.179, 296.862, 20.1857, -161.381, 0)
index, simpleObject = CreatePersistentEntity("DPE_FlowersA", 504.44, 284.319, 20.1089, 177.484, 0)
index, simpleObject = CreatePersistentEntity("DPE_FlowersA", 504.659, 286.557, 20.2026, -177.356, 0)
index, simpleObject = CreatePersistentEntity("DPE_FlowersA", 504.755, 294.187, 20.1541, -165.637, 0)
index, simpleObject = CreatePersistentEntity("DPE_FlowersA", 504.969, 288.986, 20.2349, -178.76, 0)
index, simpleObject = CreatePersistentEntity("DPE_FlowersA", 504.982, 291.85, 20.3054, -164.229, 0)
index, simpleObject = CreatePersistentEntity("DPE_FlowersA", 559.626, 479.648, 18.4131, -179.722, 0)
index, simpleObject = CreatePersistentEntity("DPE_FlowersA", 559.942, 474.807, 18.3199, -179.971, 0)
index, simpleObject = CreatePersistentEntity("DPE_FlowersA", 560.078, 482.709, 18.5517, -179.722, 0)
index, simpleObject = CreatePersistentEntity("DPE_FlowersA", 561.091, 487.589, 18.8332, 171.4, 0)
index, simpleObject = CreatePersistentEntity("DPE_FlowersA", 582.422, 487.947, 19.0275, -179.72, 0)
index, simpleObject = CreatePersistentEntity("DPE_FlowersA", 582.737, 483.105, 18.868, -179.996, 0)
index, simpleObject = CreatePersistentEntity("DPE_FlowersB", 559.716, 477.266, 18.3398, 179.986, 0)
index, simpleObject = CreatePersistentEntity("DPE_FlowersB", 560.571, 485.606, 18.7352, 175.239, 0)
index, simpleObject = CreatePersistentEntity("DPE_FlowersB", 582.511, 485.564, 18.9891, 179.988, 0)
index, simpleObject = CreatePersistentEntity("DPE_HatSVase", 561.412, 472.861, 18.4118, -0.00270598, 0)
index, simpleObject = CreatePersistentEntity("DPE_HatSVase", 561.923, 467.216, 18.4417, -0.00270598, 0)
index, simpleObject = CreatePersistentEntity("DPE_HatSVase", 566.29, 467.524, 18.574, -0.00270598, 0)
index, simpleObject = CreatePersistentEntity("DPE_HatSVase", 568.242, 473.247, 18.6681, -0.00270598, 0)
index, simpleObject = CreatePersistentEntity("DPE_HatSVase", 574.039, 473.685, 18.7429, -0.00270598, 0)
index, simpleObject = CreatePersistentEntity("DPE_HatSVase", 579.798, 467.658, 18.6253, -0.00270598, 0)
index, simpleObject = CreatePersistentEntity("DPE_HatSVase", 580.106, 474.117, 18.6995, -0.00270598, 0)
index, simpleObject = CreatePersistentEntity("DPE_RCMail", 310.277, 437.765, 21.6598, -135, 0)
index, simpleObject = CreatePersistentEntity("DPE_RCMail", 348.49, 419.003, 21.5763, -32.5048, 0)
index, simpleObject = CreatePersistentEntity("DPE_RCMail", 376.662, 437.819, 21.7101, -135, 0)
index, simpleObject = CreatePersistentEntity("DPE_RCMail", 398.211, 513.465, 22.3977, -135, 0)
index, simpleObject = CreatePersistentEntity("DPE_RCMail", 437.434, 514.196, 22.144, 5.46415, 0)
index, simpleObject = CreatePersistentEntity("DPE_RCMail", 445.055, 527.075, 22.0537, -180, 0)
index, simpleObject = CreatePersistentEntity("DPE_RCMail", 486.719, 371.387, 17.0019, -90, 0)
index, simpleObject = CreatePersistentEntity("DPE_RCMail", 491.158, 516.609, 19.6608, 37.0387, 0)
index, simpleObject = CreatePersistentEntity("DPE_RCMail", 515.632, 340.645, 16.8396, -1.00179, 0)
index, simpleObject = CreatePersistentEntity("DPE_RCMail", 517.474, 546.729, 24.1603, -180, 0)
index, simpleObject = CreatePersistentEntity("DPE_RCMail", 532.071, 168.005, 15.6071, -90, 0)
index, simpleObject = CreatePersistentEntity("DPE_RCMail", 532.236, 272.267, 16.826, -90, 0)
index, simpleObject = CreatePersistentEntity("DPE_RCMail", 536.571, 354.229, 16.6482, 180, 0)
index, simpleObject = CreatePersistentEntity("DPE_RCMail", 546.659, 197.626, 16.8088, 90, 0)
index, simpleObject = CreatePersistentEntity("DPE_RCMail", 546.79, 334.237, 17.0143, 90, 0)
index, simpleObject = CreatePersistentEntity("DPE_RCMail", 547, 443.638, 17.3933, -90, 0)
index, simpleObject = CreatePersistentEntity("DPE_RCMail", 547.044, 249.465, 16.7161, 90, 0)
index, simpleObject = CreatePersistentEntity("DPE_RCMail", 547.113, 305.33, 17.1062, 90, 0)
index, simpleObject = CreatePersistentEntity("DPE_RCMail", 552.537, 531.091, 23.893, 135, 0)
index, simpleObject = CreatePersistentEntity("DPE_RCMail", 554.955, 479.848, 18.3663, 90.0001, 0)
index, simpleObject = CreatePersistentEntity("DPE_RCMail", 596.986, 352.055, 15.8196, 45, 0)
index, simpleObject = CreatePersistentEntity("DPE_RCMail", 598.178, 394.361, 16.5065, 90, 0)
index, simpleObject = CreatePersistentEntity("DPE_RCMail", 624.461, 219.376, 17.1449, -39.8904, 0)
index, simpleObject = CreatePersistentEntity("DPI_TrophyGlsA", -736.527, 382.294, 299.311, 90, 27)
index, simpleObject = CreatePersistentEntity("DPI_TrophyGlsA", -736.527, 384.586, 299.311, 90, 27)
index, simpleObject = CreatePersistentEntity("DPI_TrophyGlsB", -736.53, 382.295, 299.932, 90, 27)
index, simpleObject = CreatePersistentEntity("DPI_TrophyGlsB", -736.53, 384.584, 299.932, 90, 27)
index, simpleObject = CreatePersistentEntity("DPI_TrophyGlsC", -736.527, 383.079, 299.725, 90, 27)
index, simpleObject = CreatePersistentEntity("DPI_TrophyGlsC", -736.527, 383.798, 299.725, 90, 27)
index, simpleObject = CreatePersistentEntity("hydroSup", 516.191, -301.681, 7.78087, 180, 0)
index, simpleObject = CreatePersistentEntity("in_DO_Barricade01", 150.232, -483.16, 5.34952, 0, 0)
index, simpleObject = CreatePersistentEntity("TrainCarA", 466.871, -247.614, 1.96113, -1.00179E-5, 0)
index_A, simpleObject_A = CreatePersistentEntity("ASY_AlarmLightA_OFF", -735.365, 433.852, 4.92833, 0, 38)
index_A2, simpleObject_A2 = CreatePersistentEntity("ASY_AlarmLightA_ON", -735.365, 433.852, 4.92833, 0, 38)
index_B, simpleObject_B = CreatePersistentEntity("ASY_AlarmLightB_OFF", -735.359, 451.473, 4.92833, 0, 38)
index_B2, simpleObject_B2 = CreatePersistentEntity("ASY_AlarmLightB_ON", -735.359, 451.473, 4.92833, 0, 38)
index_BlkFade, entity_BlkFade = CreatePersistentEntity("BX_BlkFade", -712.038, 377.699, 299.063, 0, 27)
index_C, simpleObject_C = CreatePersistentEntity("ASY_AlarmLightC_OFF", -735.367, 476.785, 4.92833, 0, 38)
index_C2, simpleObject_C2 = CreatePersistentEntity("ASY_AlarmLightC_ON", -735.367, 476.785, 4.92833, 0, 38)
index_D, simpleObject_D = CreatePersistentEntity("ASY_AlarmLightD_OFF", -707.27, 487.116, 4.92833, 0, 38)
index_D2, simpleObject_D2 = CreatePersistentEntity("ASY_AlarmLightD_ON", -707.27, 487.116, 4.92833, 0, 38)
index_E, simpleObject_E = CreatePersistentEntity("ASY_AlarmLightE_OFF", -763.422, 487.116, 4.92833, 0, 38)
index_E2, simpleObject_E2 = CreatePersistentEntity("ASY_AlarmLightE_ON", -763.422, 487.116, 4.92833, 0, 38)
index_glow, simpleObject_glow = CreatePersistentEntity("FlrGlowTOP", -619.198, -59.7191, 59.6611, 0, 13)
index_mat, simpleObject_mat = CreatePersistentEntity("Wrestling_mat05", -619.16, -59.6952, 59.5695, 0, 13)
indexNorthB, simpleObjectNorthB = CreatePersistentEntity("NorthPla_BROKEN", -696.467, 83.7462, 24.3831, 0, 40)
indexOfGate, simpleObjectOfGate = CreatePersistentEntity("in_DO_Barricade02", 147.78, -484.506, 5.0257, 0, 0)
indexSouthB, simpleObjectSouthB = CreatePersistentEntity("SouthPla_BROKEN", -696.178, 66.762, 24.4715, 0, 40)
indexWestB, simpleObjectWestB = CreatePersistentEntity("WestPla_BROKEN", -705.123, 74.9948, 24.3831, 0, 40)
local caseI, caseObject = CreatePersistentEntity("BX_loungeBWB", -736.801, 382.395, 300.476, 0, 27)
local geoObj, geoId = CreatePersistentEntity("fun_coffinExit", -751.251, -502.285, 26.7172, 0, 37)
local index, simpleObject = CreatePersistentEntity("3_06BinBarr02", 525.404, -355.873, 5.53122, 0, 0)
local index, simpleObject = CreatePersistentEntity("BX_loungeBWG", -736.784, 382.395, 300.476, 0, 27)
local index, simpleObject = CreatePersistentEntity("DPE_Dumpster", 79.0067, -418.112, 0.710667, -169.314, 0)
local index, simpleObject = CreatePersistentEntity("DPE_RCMail", 526.272, 241.001, 16.4327, -1.00179, 0)
local index, simpleObject = CreatePersistentEntity("PortaPoo", 483.007, 267.632, 19.8585, 126.511, 0)
local index, simpleObject = CreatePersistentEntity("rc2d_PortaPoo_A", 473.144, 260.006, 13.0302, 1.00179E-5, 0)
local index, simpleObject = CreatePersistentEntity("RI1d_railChunk1", 482.443, 266.737, 20.6787, 0, 0)
local objID, objPool = CreatePersistentEntity("ScGate01Closed", 301.439, -72.5059, 8.04657, 0, 0)
local objID, objPool = CreatePersistentEntity("ScGate01Opened", 299.988, -72.5031, 8.04657, 0, 0)
local objID, objPool = CreatePersistentEntity(idSignObject, -499.849, 309.211, 33.0609, -180, 14)
local objID, objPool = CreatePersistentEntity(idSignObject, -616.471, -314.335, 1.64721, 180, 2)
NoGoElectricLI, NoGoElectricSO = CreatePersistentEntity("NOGO_ElecRoomOP", -762.044, -74.6036, 10.8326, 0, 8)
NoGoSteamLI, NoGoSteamSO = CreatePersistentEntity("NOGO_SteamOP", -761.193, -62.6332, 10.8326, 0, 8)
object.id, object.pool = CreatePersistentEntity(object.name, object.x, object.y, object.z, object.h, 42)
objId, objInd = CreatePersistentEntity("Ladder_3M", -725.666, -400.03, 9.59487, 0, 37)
objId, objInd = CreatePersistentEntity("Ladder_3M", -761.738, -449.879, 15.109, 90, 37)
objID, objPool = CreatePersistentEntity("SC_FieldBarracade", -57.1224, -79.093, 3.52962, 0, 0)
objID, objPool = CreatePersistentEntity("ScGate02Closed", 225.928, 5.79816, 8.39471, 0, 0)
objID, objPool = CreatePersistentEntity("ScGate02Opened", 224.477, 5.8009, 8.39471, 0, 0)
objID, objPool = CreatePersistentEntity("TGK_BarricadeA", -421.161, 501.303, 1.38397, 0, 42)
objID, objPool = CreatePersistentEntity("TGK_BarricadeB", -293.032, 500.71, 1.53315, 0, 42)
objID, objPool = CreatePersistentEntity("TGK_BarricadeC", -196.4, 490.514, 1.53315, 0, 42)
objID, objPool = CreatePersistentEntity("TGK_BarricadeD", -284.025, 521.332, 1.53315, 0, 42)
objID, objPool = CreatePersistentEntity("TGK_BarricadeE", -281.942, 557.986, 1.44717, 0, 42)
objID, objPool = CreatePersistentEntity("TGK_BarricadeF", -302.775, 556.328, 1.54701, 0, 42)
objID, objPool = CreatePersistentEntity("TGK_BarricadeG", -311.967, 566.321, 1.50497, 0, 42)
objID, objPool = CreatePersistentEntity("TGK_BarricadeH", -323.693, 559.983, 1.50571, 0, 42)
objID, objPool = CreatePersistentEntity("TGK_BarricadeI", -357.647, 558.93, 1.53315, 0, 42)
objID, objPool = CreatePersistentEntity("TGK_BarricadeJ", -364.255, 565.378, 1.53315, 0, 42)
objID, objPool = CreatePersistentEntity("TGK_BarricadeK", -203.552, 493.473, 1.54701, 0, 42)
objID, objPool = CreatePersistentEntity("TGK_StartGo", -350.963, 493.747, 4.48503, 0, 42)
objID, objPool = CreatePersistentEntity("TGK_StartR1", -350.705, 492.403, 4.48503, 0, 42)
objID, objPool = CreatePersistentEntity("TGK_StartR2", -350.791, 492.855, 4.48503, 0, 42)
objID, objPool = CreatePersistentEntity("TGK_StartR3", -350.878, 493.308, 4.48503, 0, 42)
objID, objPool = CreatePersistentEntity(idSignObject, -495.223, 325.33, 33.0609, -180, 14)
objID, objPool = CreatePersistentEntity(idSignObject, -585.709, -305.701, 7.14888, -90, 2)
objID, objPool = CreatePersistentEntity(idSignObject, -667.379, -292.602, 1.64721, -90, 2)
peeIndex, peeEntity = CreatePersistentEntity("PCafGat_piss", -641.912, -57.7193, 55.4563, 0, 13)
PottyPoolIndex, PottyPoolType = CreatePersistentEntity("PortaPoo", 483.007, 267.632, 19.8585, 126.511, 0)
pxCrappyIndex, _ = CreatePersistentEntity("pxCrappy", 481.582, 268.893, 19.9743, -52.0531, 0)
pxRailIndex, pxRailType = CreatePersistentEntity("RI1d_railChunk1", 482.443, 266.737, 20.6787, 0, 0)
shared.gHoleGateOpenIndex, shared.gHoleGateOpenGeometry = CreatePersistentEntity("FightPit_DoorOpen", -770.009, -127.039, 8.801, 0, 8)
shared.gSchoolBusDoorIndex, shared.gSchoolBusDoorGeometry = CreatePersistentEntity("scBusDr_Open", 176.103, 13.236, 7.00958, 0, 0)
shared.hoboGateIndex, shared.hoboGateObject = CreatePersistentEntity("1_06_GateClosed", 165.967, 18.8144, 7.31457, 0, 0)
signal.id, signal.pool = CreatePersistentEntity(signal.name, signal.x, signal.y, signal.z, signal.h, 42)
t, i = CreatePersistentEntity("BX_PosterHI", -696.933, 373.405, 296.084, 0, 27)
tagIndex, tagObject = CreatePersistentEntity("DL_BU1d_bWless", 650.224, -90.3781, 34.5168, 0, 0)
tennPipes, tennPipesType = CreatePersistentEntity("TennBRkPipes01", -529.151, -40.751, 41.2078, 0, 36)
ThePipeIndex, ThePipeType = CreatePersistentEntity(418, -745.667, -611.574, 3.99679, 0, 43, 90)
sub esp, 0x60
push ebx
mov ebx, dword ptr [esp+0x68]
push edi
push 0x0
push ebx
call LuaParam::IsInt
add esp, 0x8
test al, al
push 0x0
push ebx
jz 0xC
call LuaParam::GetInt
add esp, 0x8
jmp 0x10
call LuaParam::GetString
push eax
call 0x51C330
add esp, 0xC
push 0x1
push ebx
mov edi, eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x1C], st
push 0x2
push ebx
call LuaParam::GetFloat
fstp dword ptr [esp+0x20], st
push 0x3
push ebx
call LuaParam::GetFloat
fstp dword ptr [esp+0x24], st
push 0x4
push ebx
call LuaParam::GetFloat
fmul st, qword ptr [0x900160]
push 0x5
push ebx
fdiv st, qword ptr [0x900158]
fstp dword ptr [esp+0x30], st
call LuaParam::GetFloat
call 0x85C720
fldz
push ebx
fstp dword ptr [esp+0x48], st
mov dword ptr [esp+0x44], eax
call LuaParam::GetParamCount
add esp, 0x2C
cmp eax, 0x7
jnz 0x11
push 0x6
push ebx
call LuaParam::GetFloat
fstp dword ptr [esp+0x24], st
add esp, 0x8
cmp edi, 0xFFFFFFFF
jnz 0x1C
push edi
push ebx
call LuaParam::PushInt
push edi
push ebx
call LuaParam::PushInt
add esp, 0x10
lea eax, ptr [edi+0x3]
pop edi
pop ebx
add esp, 0x60
ret
push ebp
mov ebp, dword ptr [edi*4+0xC67738]
test ebp, ebp
push esi
mov dword ptr [esp+0x28], ebp
jz 0x289
cmp byte ptr [ebp+0x8], 0xA
jnz 0x75
fld1
push 0x0
fstp dword ptr [esp+0x70], st
lea eax, ptr [esp+0x30]
fld st, dword ptr [esp+0x20]
push eax
fstp dword ptr [esp+0x34], st
lea ecx, ptr [esp+0x44]
fld st, dword ptr [esp+0x20]
push ecx
fstp dword ptr [esp+0x3C], st
fld st, dword ptr [esp+0x20]
fstp dword ptr [esp+0x40], st
call 0x415F50
fldz
mov eax, dword ptr [esp+0x2C]
add esp, 0xC
push 0x0
push 0x0
push 0x0
push ecx
fstp dword ptr [esp], st
lea edx, ptr [esp+0x4C]
push edx
push eax
push edi
call 0x44CE70
mov esi, eax
mov ecx, dword ptr [esi+0x14]
add esp, 0x1C
test ecx, ecx
jz 0xF
fld st, dword ptr [esp+0x10]
push ecx
fstp dword ptr [esp], st
call 0x412C20
fld st, dword ptr [esp+0x10]
fstp dword ptr [esi+0x10], st
jmp 0x1C0
cmp word ptr [ebp+0x12], 0xFFFF
jz 0x6B
push 0x128
call 0x4653A0
add esp, 0x4
test eax, eax
jz 0xD
mov ecx, eax
call 0x4CF200
mov ebp, eax
jmp 0x4
xor ebp, ebp
mov edx, dword ptr [ebp]
mov eax, dword ptr [edx+0x24]
push edi
mov ecx, ebp
call 0x5BD372
push 0x22C
call 0x4CFCD0
add esp, 0x4
test eax, eax
jz 0xE
push ebp
mov ecx, eax
call 0x4D05E0
mov esi, eax
jmp 0x4
xor esi, esi
push ebp
mov byte ptr [esi+0x208], 0x2
call 0x45DD70
mov edx, dword ptr [ebp]
mov eax, dword ptr [edx]
add esp, 0x4
push 0x1
mov ecx, ebp
call 0x5BD3AC
mov ebp, dword ptr [esp+0x28]
jmp 0x2A
push 0x120
call 0x4CED70
add esp, 0x4
test eax, eax
jz 0xD
mov ecx, eax
call 0x4CECB0
mov esi, eax
jmp 0x4
xor esi, esi
mov edx, dword ptr [esi]
mov eax, dword ptr [edx+0x24]
push edi
mov ecx, esi
call 0x5BD3DA
mov ecx, dword ptr [esi+0x14]
test ecx, ecx
jz 0xF
fld st, dword ptr [esp+0x10]
push ecx
fstp dword ptr [esp], st
call 0x412C20
fld st, dword ptr [esp+0x10]
sub esp, 0xC
fstp dword ptr [esi+0x10], st
mov ecx, esi
fld st, dword ptr [esp+0x20]
fstp dword ptr [esp+0x8], st
fld st, dword ptr [esp+0x24]
fstp dword ptr [esp+0x4], st
fld st, dword ptr [esp+0x28]
fstp dword ptr [esp], st
call 0x41C4E0
fldz
mov cl, byte ptr [esp+0x20]
fstp dword ptr [esi+0x11C], st
mov byte ptr [esi+0x111], cl
cmp byte ptr [ebp+0x8], 0x4
jnz 0xF
mov edx, dword ptr [esi]
mov eax, dword ptr [edx+0x28]
push 0x1
push 0x1
mov ecx, esi
call 0x5BD43B
cmp word ptr [ebp+0x12], 0xFFFF
jz 0x49
cmp dword ptr [ebp+0xC], 0x0
jnz 0x12
mov ecx, dword ptr [0xCF3120]
push 0x0
push ecx
mov ecx, ebp
call 0x50EB30
push esi
call 0x51AF50
movzx edi, word ptr [eax+0x30]
mov edx, dword ptr [esi]
mov edx, dword ptr [edx+0x2C]
add esp, 0x4
lea eax, ptr [esp+0x2C]
push eax
mov ecx, esi
call 0x5BD473
push eax
movzx eax, di
push eax
call 0x56F0F0
add esp, 0x4
mov ecx, eax
call 0x414410
jmp 0x76
cmp dword ptr [ebp+0xC], 0x0
jnz 0x12
mov ecx, dword ptr [0xCF3120]
push 0x0
push ecx
mov ecx, ebp
call 0x50EB30
movsx edx, word ptr [esi+0x10E]
push edx
call 0x43F3A0
add esp, 0x4
test al, al
jz 0xC
mov dword ptr [esi+0xC8], 0x1
mov al, byte ptr [ebp+0x8]
cmp al, 0x1
jz 0x6
cmp al, 0x3
jnz 0x30
test dword ptr [ebp+0x28], 0x800
jz 0xC
mov dword ptr [esi+0xA0], 0x1
mov ecx, ebp
call 0x527420
fcomp st, dword ptr [0x900BFC]
fnstsw ax
test ah, 0x5
jp 0x9
mov dword ptr [esi+0x48], 0x0
mov ecx, esi
call 0x466260
fldz
fld st, dword ptr [esp+0x24]
fucom st, st(1)
fnstsw ax
fstp st(1), st
test ah, 0x44
jnp 0x33
fmul st, qword ptr [0x900160]
push ecx
mov ecx, esi
fdiv st, qword ptr [0x900158]
fstp dword ptr [esp+0x2C], st
fld st, dword ptr [esp+0x2C]
fstp dword ptr [esp], st
call 0x8B6120
mov ecx, eax
call 0x413020
push esi
call 0x45D6B0
add esp, 0x4
jmp 0x13
push esi
fstp st(0), st
call 0x45D6B0
add esp, 0x4
jmp 0x6
mov esi, dword ptr [esp+0x28]
mov al, byte ptr [esi+0x108]
or ecx, 0xFFFFFFFF
and al, 0x7
or edi, ecx
cmp al, 0x1
jnz 0xF
mov ecx, dword ptr [0xC0F5F8]
mov edi, 0x4
jmp 0x33
cmp al, 0x4
jnz 0x20
mov ecx, dword ptr [0xC0F614]
mov eax, esi
sub eax, dword ptr [ecx]
cdq
idiv dword ptr [ecx+0xC]
mov edx, dword ptr [ecx+0x4]
movzx ecx, byte ptr [edx+eax*1]
shl eax, 0x8
add ecx, eax
xor edi, edi
jmp 0x25
cmp al, 0x6
jnz 0x21
mov ecx, dword ptr [0xC0F608]
mov edi, 0x5
mov eax, esi
sub eax, dword ptr [ecx]
cdq
idiv dword ptr [ecx+0xC]
mov ecx, dword ptr [ecx+0x4]
movzx ecx, byte ptr [ecx+eax*1]
shl eax, 0x8
add ecx, eax
push ecx
push ebx
call LuaParam::PushInt
push edi
push ebx
call LuaParam::PushInt
add esp, 0x10
pop esi
pop ebp
pop edi
mov eax, 0x2
pop ebx
add esp, 0x60
ret
proj = CreateProjectile(329, gPlayerStartX + 3, gPlayerStartY, gPlayerStartZ, 0, 0, 0)
proj1 = CreateProjectile(329, ax + 0.5, ay, az + 0.2, 0, 0, 0)
proj1 = CreateProjectile(329, x + 2, y, z + 0.5, 0, 0, 0)
proj2 = CreateProjectile(318, x + 3, y, z + 0.5, 0, 0, 0)
proj3 = CreateProjectile(331, x + 4, y, z + 0.5, 0, 0, 0)
proj4 = CreateProjectile(335, x + 5, y, z + 0.5, 0, 0, 0)
sub esp, 0x3C
push esi
push edi
mov edi, dword ptr [esp+0x48]
push 0x0
push edi
call LuaParam::GetInt
push 0x1
push edi
mov esi, eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x18], st
push 0x2
push edi
call LuaParam::GetFloat
fstp dword ptr [esp+0x24], st
push 0x3
push edi
call LuaParam::GetFloat
fstp dword ptr [esp+0x30], st
push 0x4
push edi
call LuaParam::GetFloat
fstp dword ptr [esp+0x60], st
push 0x5
push edi
call LuaParam::GetFloat
fstp dword ptr [esp+0x6C], st
push 0x6
push edi
call LuaParam::GetFloat
fstp dword ptr [esp+0x78], st
fldz
add esp, 0x38
push 0x0
fst dword ptr [esp+0x18], st
mov ecx, dword ptr [esp+0x18]
fst dword ptr [esp+0x1C], st
mov edx, dword ptr [esp+0x1C]
fst dword ptr [esp+0x20], st
push 0x0
fst dword ptr [esp+0x28], st
sub esp, 0xC
fst dword ptr [esp+0x38], st
mov eax, esp
fst dword ptr [esp+0x3C], st
mov dword ptr [eax], ecx
fst dword ptr [esp+0x40], st
mov ecx, dword ptr [esp+0x30]
fst dword ptr [esp+0x44], st
fld1
mov dword ptr [eax+0x4], edx
mov edx, dword ptr [esp+0x34]
fstp dword ptr [esp+0x48], st
mov dword ptr [eax+0x8], ecx
mov ecx, dword ptr [esp+0x38]
sub esp, 0xC
mov eax, esp
push 0x0
mov dword ptr [eax], edx
mov edx, dword ptr [esp+0x4C]
push 0x0
push 0x0
mov dword ptr [eax+0x4], ecx
sub esp, 0x8
mov dword ptr [eax+0x8], edx
fstp dword ptr [esp+0x4], st
fld st, dword ptr [0x90054C]
fstp dword ptr [esp], st
push 0x7
push edi
call LuaParam::GetFloat ; optional
fstp dword ptr [esp+0x8], st
mov ecx, dword ptr [esp+0x68]
mov edx, dword ptr [esp+0x6C]
add esp, 0x8
push 0x0
sub esp, 0xC
mov eax, esp
mov dword ptr [eax], ecx
mov ecx, dword ptr [esp+0x78]
mov dword ptr [eax+0x4], edx
mov edx, dword ptr [esp+0x4C]
mov dword ptr [eax+0x8], ecx
mov ecx, dword ptr [esp+0x50]
sub esp, 0xC
mov eax, esp
mov dword ptr [eax], edx
mov edx, dword ptr [esp+0x60]
push esi
mov dword ptr [eax+0x4], ecx
push 0x0
mov dword ptr [eax+0x8], edx
call 0x4D4D90
fld st, dword ptr [esp+0x68]
fstp dword ptr [esp+0x54], st
add esp, 0x54
fld st, dword ptr [esp+0x10]
sub esp, 0x8
fstp dword ptr [esp+0x4], st
mov esi, eax
fld st, dword ptr [esp+0x14]
mov ecx, esi
fstp dword ptr [esp], st
call 0x41C4E0
fldz
mov eax, dword ptr [esp+0x38]
mov ecx, dword ptr [esp+0x3C]
fst dword ptr [esp+0x38], st
mov edx, dword ptr [esp+0x40]
fst dword ptr [esp+0x3C], st
mov dword ptr [esi+0x124], eax
fstp dword ptr [esp+0x40], st
mov eax, dword ptr [esp+0x38]
mov dword ptr [esi+0x128], ecx
mov ecx, dword ptr [esp+0x3C]
mov dword ptr [esi+0x130], eax
mov dword ptr [esi+0x12C], edx
mov edx, dword ptr [esp+0x40]
mov dword ptr [esi+0x134], ecx
mov ecx, esi
mov dword ptr [esi+0x138], edx
call 0x443AA0
mov ecx, esi
call 0x465760
mov eax, dword ptr [esi]
mov edx, dword ptr [eax+0xC]
mov ecx, esi
call 0x5C1F14
mov eax, dword ptr [esi]
mov edx, dword ptr [eax+0x8]
mov ecx, esi
call 0x5C1F1D
mov eax, dword ptr [esi+0x238]
push eax
push edi
call LuaParam::PushInt
add esp, 0x8
pop edi
mov eax, 0x1
pop esi
add esp, 0x3C
ret
CLIENT
Returns a texture object that can be drawn onto using DrawBackBufferOntoTarget.
SERVER
Creates and returns a new sync dimension. The name is optional, and is primarily only meant for debug purposes. Use SetSyncActiveDimension to activate the dimension.
SERVER
Creates and returns a new generic sync entity. This type of entity will not "do" anything on the client by default, so it can be used to script custom sync.
The entity is created in the active dimension, which can be set using SetSyncActiveDimension.
SERVER
Creates and returns a new sync ped. Sync peds are still considered sync entities.
The entity is created in the active dimension, which can be set using SetSyncActiveDimension.
SERVER
Creates and returns a new sync vehicle. Sync vehicles are still considered sync entities.
The entity is created in the active dimension, which can be set using SetSyncActiveDimension.
CLIENT
Creates and returns a new thread using the function. System threads are run before nearly everything else in the frame.
CLIENT
Returns a texture object by loading a PNG file given a name. No other formats are supported. The file path is relative to the currently running mod (so the file should be in your mod’s folder).
CLIENT
Like CreateTexture, but instead of a file name the data is given from a string. The string is still limited to PNG, and is treated just like the data came from a file.
AutoLose = CreateThread("AutoLoseThread")
CreateThread("AnimQueueThread")
CreateThread("AutoLoseThread")
CreateThread("CheckInCarThread")
CreateThread("CountdownStopRaceThread")
CreateThread("F_AlarmThread")
CreateThread("F_AnimateSanta")
CreateThread("F_BackOnMySide")
CreateThread("F_BDormAlarm")
CreateThread("F_BDormAlarmOn")
CreateThread("F_BoundaryIn")
CreateThread("F_Boxers")
CreateThread("F_BusTransition")
CreateThread("F_CarSelect")
CreateThread("F_Check_Health")
CreateThread("F_CheckFailure")
CreateThread("F_CheckGarage")
CreateThread("F_CheckInArea")
CreateThread("F_CheckMascot")
CreateThread("F_CheckMissionSuccess")
CreateThread("F_CheckPOI")
CreateThread("F_CheckSantaQueue")
CreateThread("F_CheckStores")
CreateThread("F_CheckThread")
CreateThread("F_CheckTriggersThread")
CreateThread("F_CheckVicims")
CreateThread("F_CherryBombEffect")
CreateThread("F_ClintFacePlayer")
CreateThread("F_ClintGotBikeSpeech")
CreateThread("F_ClintNoBikeSpeech")
CreateThread("F_ControlEnemies")
CreateThread("F_Damon")
CreateThread("F_Damon_Health")
CreateThread("F_Dan")
CreateThread("F_Dan_Health")
CreateThread("F_DanceCowDance")
CreateThread("F_DebugNorton")
CreateThread("F_DoMovementTutorial")
CreateThread("F_EarnestSpeech")
CreateThread("F_East_Boundary")
CreateThread("F_East_Boundary_Exit")
CreateThread("F_Enemy_Warning1")
CreateThread("F_EnemyTimer")
CreateThread("F_FightStarter")
CreateThread("F_GDormAlarm")
CreateThread("F_GetPerfume")
CreateThread("F_HitCheck")
CreateThread("F_JockTaunt")
CreateThread("F_Kirby")
CreateThread("F_Kirby_Health")
CreateThread("F_Melvin")
CreateThread("F_Melvin_Health")
CreateThread("F_MissionFail")
CreateThread("F_MonitorAlpha")
CreateThread("F_MonitorDarby")
CreateThread("F_MonitorDO")
CreateThread("F_MonitorFirstBully")
CreateThread("F_MonitorFirstPreps")
CreateThread("F_MonitorSpawnedPreppies")
CreateThread("F_PickupSpawn")
CreateThread("F_Player_Killed")
CreateThread("F_ProcessAttackers")
CreateThread("F_PunchBagPrep")
CreateThread("F_RunStartDialog")
CreateThread("F_SchoolAlarm")
CreateThread("F_SchoolAlarmOn")
CreateThread("F_SeeSanta")
CreateThread("F_SetupBeforeMissionThread")
CreateThread("F_SetupBoysDormBullies")
CreateThread("F_Snowballs")
CreateThread("F_SprinklerThread")
CreateThread("F_Thad")
CreateThread("F_Thad_Health")
CreateThread("F_tPickupMaintenance")
CreateThread("F_UpdateElves")
CreateThread("F_UpdateSanta")
CreateThread("F_UpdateSantaBar")
CreateThread("F_UpdateSpawnersAndSpeech")
CreateThread("F_West_Boundary")
CreateThread("F_West_Boundary_Exit")
CreateThread("L_MonitorTags")
CreateThread("L_MonitorTargets")
CreateThread("L_MonitorTriggers")
CreateThread("L_ObjectMonitor")
CreateThread("L_PropMonitor")
CreateThread("MonitorPerverts")
CreateThread("MudKickingPattern")
CreateThread("NerdGivesHealth")
CreateThread("PlayCutSceneForCheatThread")
CreateThread("RollCredits")
CreateThread("T0_GreaserRunOffGetBusted")
CreateThread("T1_CopChaseCarCam")
CreateThread("T1_HattrickCarGovernor")
CreateThread("T2_PeterLogic")
CreateThread("T2_WatchForDeadGuys")
CreateThread("T3_PerimeterGreasesTaunt")
CreateThread("T_Activate")
CreateThread("T_AlgieTagCleanup")
CreateThread("T_AngryHit")
CreateThread("T_AnnoyanceMonitor")
CreateThread("T_AutoLoseThread")
CreateThread("T_BarrelTutorial")
CreateThread("T_BathroomMonitor")
CreateThread("T_BifCrowdCheer")
CreateThread("T_BikeMountTut")
CreateThread("T_BonfireStarter")
CreateThread("T_BossBattleTutorial")
CreateThread("T_Breaker_Box")
CreateThread("T_CameraShots")
CreateThread("T_CarHazardsMonitor")
CreateThread("T_ChangeBeachPositions")
CreateThread("T_Chase2_MeetPeter")
CreateThread("T_ChasePartTwo")
CreateThread("T_ChaserThreat")
CreateThread("T_CheckIfPlayerHasPoop")
CreateThread("T_CheckInCarThread")
CreateThread("T_CheckPlayerHealth")
CreateThread("T_CheckToAttack")
CreateThread("T_ChristmasdLogic")
CreateThread("T_CleanupMelvinInLibrary")
CreateThread("T_ClothingManager")
CreateThread("T_CollisionApply")
CreateThread("T_ConSocLoop")
CreateThread("T_Cop1Monitor")
CreateThread("T_Cop1Thread")
CreateThread("T_CornScream")
CreateThread("T_CountdownStopRaceThread")
CreateThread("T_CreateGary")
CreateThread("T_CrowdCheering")
CreateThread("T_Cutscene01")
CreateThread("T_Cutscene02")
CreateThread("T_CutsceneBikeEscape")
CreateThread("T_CutsceneCornelius")
CreateThread("T_CutsceneMascotAngry")
CreateThread("T_CutsceneNerdAmbush")
CreateThread("T_Delete_Wave3_2")
CreateThread("T_DeletePeds")
CreateThread("T_DestructoTutorial")
CreateThread("T_Dialogue")
CreateThread("T_DialogueSpeech")
CreateThread("T_DidPlayerHitGord")
CreateThread("T_DinnerFail")
CreateThread("T_DogHazardsMonitor")
CreateThread("T_Door_Health")
CreateThread("T_DoorChecker")
CreateThread("T_DoorMonitor")
CreateThread("T_EarnestStage2")
CreateThread("T_EarnestStage3")
CreateThread("T_ElectricityBackOn")
CreateThread("T_ElevatorControl")
CreateThread("T_EuniceChat")
CreateThread("T_ExpelledLogic")
CreateThread("T_ExtinguisherCheck")
CreateThread("T_F1_O1_To_Look")
CreateThread("T_FailCond")
CreateThread("T_FailureConditions")
CreateThread("T_FattyScared")
CreateThread("T_FieldOps")
CreateThread("T_FlashHud")
CreateThread("T_ForcePlayerGrapple")
CreateThread("T_GaryBlahBlah")
CreateThread("T_GarySpeech")
CreateThread("T_GaryThrowActions")
CreateThread("T_GaryTurnOffElectric")
CreateThread("T_GaryUpdater")
CreateThread("T_GetBackOnBikeCheck")
CreateThread("T_GetSpray")
CreateThread("T_HACKPUNISHMENTLEVEL")
CreateThread("T_HammerwallHints")
CreateThread("T_HandleGalloway")
CreateThread("T_HandleTutorial")
CreateThread("T_HattrickConversation")
CreateThread("T_HattrickEntersHouse")
CreateThread("T_HattrickSpeech")
CreateThread("T_JoggerHazardSpawn")
CreateThread("T_Johnny_Yelling")
CreateThread("T_JumpingJacks")
CreateThread("T_LaunchAlleyPrep")
CreateThread("T_LaunchJumpers")
CreateThread("T_LeaveingFail")
CreateThread("T_LeaveMowerInstructions")
CreateThread("T_LibraryInteriorExitWait")
CreateThread("T_LockDoors")
CreateThread("T_LockedAndLoaded")
CreateThread("T_LockerLoop")
CreateThread("T_Lost")
CreateThread("T_MagnetVibrate")
CreateThread("T_MailManHazardsMonitor")
CreateThread("T_MakeRussellAlly")
CreateThread("T_ManageDoors")
CreateThread("T_ManAimLoop")
CreateThread("T_MandyMonitor")
CreateThread("T_MiscHandler")
CreateThread("T_MissionFail")
CreateThread("T_MissionStatus")
CreateThread("T_MissionTutorial")
CreateThread("T_MonitorAttackedPervs")
CreateThread("T_MonitorBarriers")
CreateThread("T_MonitorBullies")
CreateThread("T_MonitorCheerleaders")
CreateThread("T_MonitorController")
CreateThread("T_MonitorCornBullies")
CreateThread("T_MonitorEggCount")
CreateThread("T_MonitorFirstFloor")
CreateThread("T_MonitorGarysHealth")
CreateThread("T_MonitorGreasers")
CreateThread("T_MonitorHoboHealth")
CreateThread("T_MonitorKlepto")
CreateThread("T_MonitorLocker")
CreateThread("T_MonitorLoop")
CreateThread("T_MonitorPeds")
CreateThread("T_MonitorPlayerFirstLadder")
CreateThread("T_MonitorPlayerHealth")
CreateThread("T_MonitorPlayerLocation")
CreateThread("T_MonitorPlayerSecondLadder")
CreateThread("T_MonitorPrefect")
CreateThread("T_MonitorSecondFloor")
CreateThread("T_MonitorTags")
CreateThread("T_MonitorThirdFloor")
CreateThread("T_MonitorTimer")
CreateThread("T_MonitorWeedDestroy")
CreateThread("T_MoveTheFuckersOutside")
CreateThread("T_NemBleach")
CreateThread("T_O2_To_Look")
CreateThread("T_ObjectiveMonitor")
CreateThread("T_OldLadyHazardSpawn")
CreateThread("T_ParkOut")
CreateThread("T_PedCreation")
CreateThread("T_PedFunction")
CreateThread("T_PedMonitor")
CreateThread("T_PeteText")
CreateThread("T_Petey")
CreateThread("T_Photography")
CreateThread("T_PhotographyStimulus")
CreateThread("T_PipeBlips")
CreateThread("T_PlayerAsks")
CreateThread("T_PlayerInTreeCheck")
CreateThread("T_PlayerLeavesRichArea")
CreateThread("T_PlayerLeftDorm")
CreateThread("T_PoisonCount")
CreateThread("T_PottyBlipManager")
CreateThread("T_PrepsLikePlayer")
CreateThread("T_RatPackersDialog")
CreateThread("T_Regular_Cam")
CreateThread("T_RemindForObj")
CreateThread("T_RemoveCounter")
CreateThread("T_ResetEggsForInfiniteEggers")
CreateThread("T_ResetGirlsDorm")
CreateThread("T_RestoreHealth")
CreateThread("T_RoofCheck")
CreateThread("T_RunFights")
CreateThread("T_RussellBikeMonitor")
CreateThread("T_RussellTalks")
CreateThread("T_ScaffoldBreak")
CreateThread("T_Sheet1GuardsBuggerOff")
CreateThread("T_ShieldBlips")
CreateThread("T_ShowBikeCombatTutorial")
CreateThread("T_ShowerScream")
CreateThread("T_SleepingOrderly")
CreateThread("T_SLUDGECHECK")
CreateThread("T_Spawn_Window")
CreateThread("T_SpawnCopWave01_Go")
CreateThread("T_SpawnCopWave02_Go")
CreateThread("T_SpawnFinalGuys")
CreateThread("T_SpeechChristyAngie")
CreateThread("T_SpeechChristyDorm")
CreateThread("T_SpeechJimmyBike")
CreateThread("T_SpeechPinkyLip")
CreateThread("T_StartFightTut")
CreateThread("T_StartLostEmDialogue")
CreateThread("T_StayInYard")
CreateThread("T_StopSpineTracking")
CreateThread("T_Sweater_Check")
CreateThread("T_TadBehaviorMonitor")
CreateThread("T_TagBlipper")
CreateThread("T_TagCleanTutorial")
CreateThread("T_TagIt")
CreateThread("T_TagLoader")
CreateThread("T_Taunt")
CreateThread("T_TedGetBalls")
CreateThread("T_TextCarnyTutorial")
CreateThread("T_TextChadLeave")
CreateThread("T_TextGirlsOutFront")
CreateThread("T_Timer")
CreateThread("T_TowerCam")
CreateThread("T_TransForFight1")
CreateThread("T_Treed")
CreateThread("T_TriggerMonitor")
CreateThread("T_Tutorials")
CreateThread("T_WaitForPedKO")
CreateThread("T_WatchForGaryDeath")
CreateThread("T_Water_Cam")
CreateThread("T_WaveMonitor")
CreateThread("T_WindowBlip")
CreateThread("T_WitchMonitor")
CreateThread("T_ZoeText01")
CreateThread("TextQueueThread")
CreateThread("ThadReturnsToHelp")
CreateThread(L_PropMonitor)
CreateThread(T_AllBaddiesDead)
CreateThread(T_ChooseAttackSequence)
CreateThread(T_Player_OutOfBounds)
CreateThread(T_PlayerBikeCheck)
CreateThread(threadName)
CrouchHint1 = CreateThread("F_CrouchHint1")
CrouchHint2 = CreateThread("F_CrouchHint2")
CrouchHint3 = CreateThread("F_CrouchHint3")
CrouchHint4 = CreateThread("F_CrouchHint4")
gGreaserThread = CreateThread("T_MonitorGreaserBoss")
gJockThread = CreateThread("T_MonitorJockBoss")
gMonitorThread = CreateThread("T_MonitorGreasers")
gNerdThread = CreateThread("T_MonitorNerdBoss")
gPreppyThread = CreateThread("T_MonitorPreppyBoss")
id = CreateThread(threadName)
local johnnyAttacksHandle = CreateThread("T2_JohnnyAttacks")
local johnnyUpdatesHandle = CreateThread("T2_JohnnyUpdates")
local monThreadID = CreateThread("T_DeliveryMonitor")
local objThreadID = CreateThread("T_ObjectiveMonitor")
thread_T_Egg_Hint = CreateThread("T_Egg_Hint")
threadBathroomAntics = CreateThread("T_BathroomAntics")
threadMissionTextQueue = CreateThread("T_MissionTextQueue")
threadMonitorAlgie = CreateThread("T_MonitorAlgie")
threadMonitorAlgiePee = CreateThread("T_MonitorAlgiePee")
threadMonitorBikers = CreateThread("T_MonitorBikers")
threadMonitorFieldTriggers = CreateThread("T_MonitorFieldTriggers")
threadMonitorGreaser02 = CreateThread("T_MonitorGreaser02")
threadMonitorMascotField = CreateThread("T_MonitorMascotField")
threadMonitorMascotForHits = CreateThread("T_MonitorMascotForHits")
threadMonitorMascotPool = CreateThread("T_MonitorMascotPool")
threadMonitorMiniGames = CreateThread("T_MonitorMiniGames")
threadMonitorNorton = CreateThread("T_MonitorNorton")
threadMonitorPanties = CreateThread("T_MonitorPanties")
threadMonitorPinky = CreateThread("T_MonitorPinky")
threadMonitorPlayerLocation = CreateThread("T_MonitorPlayerLocation")
threadMonitorPreppies = CreateThread("T_MonitorSpawnedPreppies")
threadMonitorStage2Girls = CreateThread("T_MonitorStage2Girls")
threadMonitorStage2Triggers = CreateThread("T_MonitorStage2Triggers")
threadMonitorTad = CreateThread("T_MonitorTad")
threadMonitorWaves = CreateThread("T_MonitorWaves")
threadPreppySpawner = CreateThread("T_PrepSpawner")
threadShowerTalk = CreateThread("T_ShowerTalk")
threadStage1Objectives = CreateThread("T_Stage1_Objectives")
threadStage2_Locates = CreateThread("T_Stage2_Locates")
threadUnlockStage2 = CreateThread("F_UnlockStage2")
x = CreateThread("F_FootballFieldThread")
push esi
mov esi, dword ptr [esp+0x8]
push 0x1
push esi
call 0x73B2B0
add esp, 0x8
push eax
mov ecx, 0xD02850
call 0x5DB940
mov ecx, eax
call 0x5D9E80
mov byte ptr [eax+0x14], 0x1
mov eax, dword ptr [eax+0x20]
push eax
push esi
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
pop esi
ret
SHARED
Creates and returns a new thread using the function. This thread is considered a game thread, running right after native game scripts.
SHARED
Returns a matrix object with 1 column and as many rows as there are arguments (up to 4).
if Credit.TitleName == false and CreditFindText(nameString) then
if not CreditFindText(title) then
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetString
push eax
call 0x43A860
push eax
push esi
call LuaParam::PushBool
add esp, 0x14
mov eax, 0x1
pop esi
ret
NamesToPrint = CreditGetInteger(title .. "_NUMNAMES")
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push 0x0
push esi
call LuaParam::GetString
lea ecx, ptr [esp+0xC]
push ecx
push eax
mov dword ptr [esp+0x14], 0x0
call 0x43A890
mov edx, dword ptr [esp+0x14]
push edx
push esi
call LuaParam::PushInt
add esp, 0x18
mov eax, 0x1
pop esi
pop ecx
ret
CreditLoadDB()
mov ecx, 0x20C2FA4
mov dword ptr [0xBF381C], 0x0
call 0x68FA70
push eax
mov eax, dword ptr [esp+0x8]
push eax
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
ret
CreditPrintText(Credit.x, Credit.y, false, nameString)
CreditPrintText(Credit.x, Credit.y, false, title)
sub esp, 0xC
push esi
mov esi, dword ptr [esp+0x14]
push 0x0
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x14], st
push 0x1
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x18], st
push 0x2
push esi
call LuaParam::GetBool
push 0x3
push esi
mov byte ptr [esp+0x24], al
call LuaParam::GetString
fld st, dword ptr [esp+0x28]
mov ecx, dword ptr [esp+0x24]
add esp, 0x20
push ecx
push eax
sub esp, 0x8
fstp dword ptr [esp+0x4], st
fld st, dword ptr [esp+0x1C]
fstp dword ptr [esp], st
call 0x43A810
add esp, 0x10
xor eax, eax
pop esi
add esp, 0xC
ret
CreditReset()
mov dword ptr [0xBF381C], 0x0
xor eax, eax
ret
CreditSetup(NAME_COL[1], NAME_COL[2], NAME_COL[3], NAME_COL[4], NAME_SCALE, Credit.Justification)
CreditSetup(TITLE_COL[1], TITLE_COL[2], TITLE_COL[3], TITLE_COL[4], TITLE_SCALE, Credit.Justification)
sub esp, 0x8
push esi
mov esi, dword ptr [esp+0x10]
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov byte ptr [esp+0x14], al
call LuaParam::GetInt
push 0x2
push esi
mov byte ptr [esp+0x1D], al
call LuaParam::GetInt
push 0x3
push esi
mov byte ptr [esp+0x26], al
call LuaParam::GetInt
push 0x4
push esi
mov byte ptr [esp+0x2F], al
call LuaParam::GetFloat
fstp dword ptr [esp+0x30], st
push 0x5
push esi
call LuaParam::GetInt
fld st, dword ptr [esp+0x38]
add esp, 0x30
push eax
mov eax, dword ptr [esp+0x8]
push ecx
fstp dword ptr [esp], st
push eax
call 0x43A7C0
add esp, 0xC
xor eax, eax
pop esi
add esp, 0x8
ret
CreditUnLoadDB()
mov ecx, 0x20C2FA4
mov dword ptr [0xBF381C], 0x0
call 0x68FA40
xor eax, eax
ret
CutsceneFadeWithCamera(false)
CutsceneFadeWithCamera(true)
push ecx
mov eax, dword ptr [esp+0x8]
push 0x1
push 0x0
push eax
call LuaParam::GetBool ; optional
mov byte ptr [esp+0xC], al
mov ecx, dword ptr [esp+0xC]
push ecx
push 0x0
call 0x59E5E0
xor eax, eax
add esp, 0x18
ret
CutSceneSetActionNode(cutsceneTable[CutSceneIndex].name)
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push 0x0
push esi
call LuaParam::GetString
push 0x0
push eax
call 0x6C3F00
mov byte ptr [esp+0x14], al
mov eax, dword ptr [esp+0x14]
push eax
push esi
call LuaParam::PushBool
add esp, 0x18
mov eax, 0x1
pop esi
pop ecx
ret
CutSetCutsceneName(cutsceneTable[csindex].name)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetString
push eax
call 0x425430
add esp, 0xC
xor eax, eax
ret
CutSetCutsceneTableSize(cutsceneTable.size)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetInt
push eax
call 0x425450
add esp, 0xC
xor eax, eax
ret
DATInit()
mov ecx, 0x20C7C48
call 0x6D2350
xor eax, eax
ret
DATLoad("1_01.DAT", 2)
DATLoad("1_02.DAT", 2)
DATLoad("1_02A.DAT", 2)
DATLoad("1_02B.DAT", 2)
DATLoad("1_02C.DAT", 2)
DATLoad("1_03.DAT", 2)
DATLoad("1_04.DAT", 2)
DATLoad("1_05.DAT", 2)
DATLoad("1_05b.DAT", 2)
DATLoad("1_06.DAT", 2)
DATLoad("1_07.DAT", 2)
DATLoad("1_08.DAT", 2)
DATLoad("1_09.DAT", 2)
DATLoad("1_10.DAT", 2)
DATLoad("1_11X1.DAT", 2)
DATLoad("1_11X2.DAT", 2)
DATLoad("1_11XP.DAT", 2)
DATLoad("1_B.DAT", 2)
DATLoad("1_G1_new.DAT", 2)
DATLoad("1_S01.DAT", 2)
DATLoad("2_01.DAT", 2)
DATLoad("2_02.DAT", 2)
DATLoad("2_03.DAT", 2)
DATLoad("2_04.DAT", 2)
DATLoad("2_05_new.DAT", 2)
DATLoad("2_06.DAT", 2)
DATLoad("2_07_BEACHA.DAT", 2)
DATLoad("2_08.DAT", 2)
DATLoad("2_09.DAT", 2)
DATLoad("2_B.DAT", 2)
DATLoad("2_G2.DAT", 2)
DATLoad("2_R04.DAT", 2)
DATLoad("2_S02.DAT", 2)
DATLoad("2_S04.DAT", 2)
DATLoad("2_S05.DAT", 2)
DATLoad("2_S06.DAT", 2)
DATLoad("2_S06b.DAT", 2)
DATLoad("2_S07.DAT", 2)
DATLoad("3_01.DAT", 2)
DATLoad("3_01A.DAT", 2)
DATLoad("3_01C.DAT", 2)
DATLoad("3_01D.DAT", 2)
DATLoad("3_02.DAT", 2)
DATLoad("3_02_BMX.DAT", 2)
DATLoad("3_03.DAT", 2)
DATLoad("3_04.DAT", 2)
DATLoad("3_05.DAT", 2)
DATLoad("3_06New.DAT", 2)
DATLoad("3_07.DAT", 2)
DATLoad("3_08.DAT", 2)
DATLoad("3_09.DAT", 2)
DATLoad("3_B.DAT", 2)
DATLoad("3_B_BIKE_STUFF.DAT", 2)
DATLoad("3_B_EXTRA.DAT", 2)
DATLoad("3_G3.DAT", 2)
DATLoad("3_R06_A.DAT", 2)
DATLoad("3_R07.DAT", 2)
DATLoad("3_R08_business.DAT", 2)
DATLoad("3_R08_BusShortA.DAT", 2)
DATLoad("3_R08_BusShortB.DAT", 2)
DATLoad("3_R08_BusShortC.DAT", 2)
DATLoad("3_R08_poor.DAT", 2)
DATLoad("3_R08_PoorShortA.DAT", 2)
DATLoad("3_R08_rich.DAT", 2)
DATLoad("3_R08_richShortA.DAT", 2)
DATLoad("3_R08_richShortAM.DAT", 2)
DATLoad("3_R08_richShortB.DAT", 2)
DATLoad("3_R08_richShortC.DAT", 2)
DATLoad("3_R08_RichShortD.DAT", 2)
DATLoad("3_R08_school.DAT", 2)
DATLoad("3_S03.DAT", 2)
DATLoad("3_S08.DAT", 2)
DATLoad("3_S09.DAT", 2)
DATLoad("3_S10.DAT", 2)
DATLoad("3_S11.DAT", 2)
DATLoad("3_XM.DAT", 2)
DATLoad("4_01.DAT", 2)
DATLoad("4_02.DAT", 2)
DATLoad("4_03.DAT", 2)
DATLoad("4_04.DAT", 2)
DATLoad("4_05.DAT", 2)
DATLoad("4_05cut.DAT", 2)
DATLoad("4_06.DAT", 2)
DATLoad("4_B1.DAT", 2)
DATLoad("4_B2.DAT", 2)
DATLoad("4_G4.DAT", 2)
DATLoad("4_S12.DAT", 2)
DATLoad("5_01.DAT", 2)
DATLoad("5_02.DAT", 2)
DATLoad("5_03.DAT", 2)
DATLoad("5_04.DAT", 2)
DATLoad("5_05.DAT", 2)
DATLoad("5_06.DAT", 2)
DATLoad("5_07.DAT", 2)
DATLoad("5_09.DAT", 2)
DATLoad("5_Ba.DAT", 2)
DATLoad("5_G5.DAT", 2)
DATLoad("6_01.DAT", 2)
DATLoad("6_02.DAT", 2)
DATLoad("6_02GDORM.DAT", 2)
DATLoad("6_B.DAT", 2)
DATLoad("6_Ba.DAT", 2)
DATLoad("ArcadeRace.DAT", 2)
DATLoad("ArcadeRace2.DAT", 2)
DATLoad("ArcadeRace3.DAT", 2)
DATLoad("AreaTran.DAT", 1)
DATLoad("AS_SCEN.DAT", 2)
DATLoad("Barricade_Triggers.DAT", 0)
DATLoad("BDorm_Doors.DAT", 0)
DATLoad("BDorm_Eggs.DAT", 0)
DATLoad("BDorm_RLauncher.DAT", 0)
DATLoad("BDorm_Spud.DAT", 0)
DATLoad("BMX_Rumble.DAT", 2)
DATLoad("BMXBikes.DAT", 0)
DATLoad("Boxing.DAT", 2)
DATLoad("BoysDorm.DAT", 0)
DATLoad("BuildTest.DAT", 2)
DATLoad("C2.DAT", 2)
DATLoad("C3.DAT", 2)
DATLoad("C4.DAT", 2)
DATLoad("C5.DAT", 2)
DATLoad("C6.DAT", 2)
DATLoad("C7.DAT", 2)
DATLoad("C8.DAT", 2)
DATLoad("C9.DAT", 2)
DATLoad("CarnivalRides.DAT", 2)
DATLoad("CarnStore.DAT", 0)
DATLoad("CarnStrik.DAT", 2)
DATLoad("CARTEST.DAT", 2)
DATLoad("Chapt1Trans.DAT", 2)
DATLoad("Chapt2Trans.DAT", 2)
DATLoad("Chapt3Trans.DAT", 2)
DATLoad("Chapt4Trans.dat", 2)
DATLoad("Chapt5Trans.DAT", 2)
DATLoad("ClassLoc.DAT", 2)
DATLoad("CLASSLOC.DAT", 2)
DATLoad("ClassMusic.DAT", 2)
DATLoad("CORYCAR.DAT", 2)
DATLoad("DBall.DAT", 2)
DATLoad("DBallCam.DAT", 2)
DATLoad("DFAlarm.DAT", 0)
DATLoad("EasyDrugs.DAT", 0)
DATLoad("Effect.DAT", 1)
DATLoad("ENTERCAR.DAT", 2)
DATLoad("eventsAsylum.DAT", 0)
DATLoad("eventsAuditorium.DAT", 0)
DATLoad("eventsAutoShop.DAT", 1)
DATLoad("eventsBDorm.DAT", 0)
DATLoad("eventsBoxing.DAT", 0)
DATLoad("eventsCafeteria.DAT", 0)
DATLoad("eventsClassroom.DAT", 1)
DATLoad("eventsGDorm.DAT", 0)
DATLoad("eventsGymAndPool.DAT", 0)
DATLoad("eventsLibrary.DAT", 0)
DATLoad("eventsObservatory.DAT", 0)
DATLoad("eventsPoorHair.DAT", 0)
DATLoad("eventsSchoolHalls.DAT", 0)
DATLoad("eventsStaffRoom.DAT", 1)
DATLoad("Football_Paths.DAT", 0)
DATLoad("FraffyMachine.DAT", 0)
DATLoad("FreakShow.DAT", 0)
DATLoad("funhouse.DAT", 0)
DATLoad("Garages.DAT", 1)
DATLoad("Gdorm.DAT", 0)
DATLoad("Global.DAT", 1)
DATLoad("GoKart.DAT", 2)
DATLoad("GoKart_Outdoor.DAT", 2)
DATLoad("GraffitiPunishment.DAT", 2)
DATLoad("GraffitiTest.DAT", 2)
DATLoad("GuardDog.DAT", 2)
DATLoad("HangTest.DAT", 2)
DATLoad("Hcrim.DAT", 0)
DATLoad("HighStrikerProps.DAT", 2)
DATLoad("iasylum.DAT", 0)
DATLoad("ibarber.DAT", 0)
DATLoad("iboxing.DAT", 0)
DATLoad("iChemPlant.DAT", 0)
DATLoad("icloth_p.DAT", 0)
DATLoad("icloth_r.DAT", 0)
DATLoad("ifunhous.DAT", 0)
DATLoad("iSaveZones.DAT", 0)
DATLoad("isc_dorm.DAT", 0)
DATLoad("isc_lib.DAT", 0)
DATLoad("isc_pool.DAT", 0)
DATLoad("ischool_doors.DAT", 0)
DATLoad("ischool_lockers.DAT", 0)
DATLoad("ischool_sitting.DAT", 0)
DATLoad("iwarehouse.DAT", 0)
DATLoad("janitors.DAT", 0)
DATLoad("KissyKissyRefCount.DAT", 2)
DATLoad("LawnMowing.DAT", 2)
DATLoad("lib_regular.DAT", 0)
DATLoad("Mailboxes_Rich.DAT", 2)
DATLoad("mainmap_bricks.DAT", 1)
DATLoad("MainMap_bus.DAT", 0)
DATLoad("MainMapZones.DAT", 1)
DATLoad("MGBaseballToss.DAT", 2)
DATLoad("MGDunkTank.DAT", 2)
DATLoad("MGHackySack.DAT", 2)
DATLoad("MGShooting.DAT", 2)
DATLoad("MiniGameTrigger.DAT", 1)
DATLoad("MisTrig.DAT", 1)
DATLoad("mlee_pickups.DAT", 2)
DATLoad("mm_retirement.DAT", 0)
DATLoad("MOVETEST.DAT", 2)
DATLoad("NEW.DAT", 2)
DATLoad("P_SNOW1.DAT", 2)
DATLoad("P_SNOW2.DAT", 2)
DATLoad("P_SNOW3.DAT", 2)
DATLoad("P_SNOW4.DAT", 2)
DATLoad("P_SNOW5.DAT", 2)
DATLoad("P_SNOW6.DAT", 2)
DATLoad("P_SNOWCOMMON.DAT", 2)
DATLoad("PAn_Main.DAT", 5)
DATLoad("PAn_Prep.DAT", 0)
DATLoad("PAn_Rich.DAT", 5)
DATLoad("PaperRoute.DAT", 2)
DATLoad("Patrol_School.DAT", 0)
DATLoad("Patrol_SchoolGrounds.DAT", 0)
DATLoad("PedTest.DAT", 1)
DATLoad("PedUseLocker.DAT", 2)
DATLoad("Pickups.DAT", 1)
DATLoad("Population.DAT", 1)
DATLoad("PrefectsMainBuilding.DAT", 0)
DATLoad("PrefectsSchoolGround.DAT", 0)
DATLoad("PrincipalCutscene.DAT", 2)
DATLoad("PriOffice.DAT", 0)
DATLoad("PriOffice.DAT", 2)
DATLoad("RaulTest.DAT", 2)
DATLoad("SaveLocs.dat", 0)
DATLoad("School_Exterior.DAT", 1)
DATLoad("SecTrig.DAT", 0)
DATLoad("SFAlarm.DAT", 0)
DATLoad("SHOTS.DAT", 2)
DATLoad("SndBnkLoad.DAT", 1)
DATLoad("sndpnt.DAT", 1)
DATLoad("SoccerGoal.DAT", 2)
DATLoad("SocialAuthority.DAT", 2)
DATLoad("SoundBankTriggers.DAT", 1)
DATLoad("SoundTriggers.DAT", 1)
DATLoad("SP_Art_Room.DAT", 0)
DATLoad("SP_Asylum.DAT", 0)
DATLoad("SP_Auditorium.DAT", 0)
DATLoad("SP_Auto_Shop.DAT", 0)
DATLoad("SP_Barber.DAT", 0)
DATLoad("SP_Bike_Shop.DAT", 0)
DATLoad("SP_Bio_Lab.DAT", 0)
DATLoad("SP_BMXTrack.DAT", 0)
DATLoad("SP_BoxingRing.DAT", 0)
DATLoad("SP_BoysDorm.DAT", 0)
DATLoad("SP_BoysDorm.DAT", 2)
DATLoad("SP_Chem_Lab.DAT", 0)
DATLoad("SP_Chem_Plant.DAT", 0)
DATLoad("SP_ClassRoom.DAT", 0)
DATLoad("SP_Comic_Shop_Rich.dat", 0)
DATLoad("SP_FreakShow.DAT", 0)
DATLoad("SP_Girls_Dorm.DAT", 0)
DATLoad("SP_GroceryStore.dat", 0)
DATLoad("SP_Hair_Salon.DAT", 0)
DATLoad("SP_HouseOfMirrors.DAT", 0)
DATLoad("SP_iDropS.DAT", 0)
DATLoad("SP_iGrsrS.DAT", 0)
DATLoad("SP_iJockS.DAT", 0)
DATLoad("SP_ImgRaceA.DAT", 0)
DATLoad("SP_ImgRaceB.DAT", 0)
DATLoad("SP_ImgRaceC.DAT", 0)
DATLoad("SP_iPrepS.DAT", 0)
DATLoad("SP_Janitors_Room.DAT", 0)
DATLoad("SP_JunkYard.DAT", 0)
DATLoad("SP_Library.DAT", 0)
DATLoad("SP_MainMap.DAT", 0)
DATLoad("SP_Midway.DAT", 0)
DATLoad("SP_Observatory.DAT", 0)
DATLoad("SP_Pool.DAT", 0)
DATLoad("SP_Poor_Cloth.DAT", 0)
DATLoad("SP_Poor_Hair.DAT", 0)
DATLoad("SP_Prep_House.DAT", 0)
DATLoad("SP_Rich_Cloth.DAT", 0)
DATLoad("SP_School_Hallways.DAT", 0)
DATLoad("SP_Souvenir.DAT", 0)
DATLoad("SP_Staff_Room.DAT", 0)
DATLoad("SP_Tenement.DAT", 0)
DATLoad("SP_Test_Area.DAT", 0)
DATLoad("SP_TGOKart.DAT", 0)
DATLoad("SP_Trailer.dat", 0)
DATLoad("SP_Warehouse.DAT", 0)
DATLoad("SpawnTest.DAT", 0)
DATLoad("SpawnTest.DAT", 2)
DATLoad("Store.DAT", 0)
DATLoad("Store.DAT", 1)
DATLoad("SWIMRACE.DAT", 2)
DATLoad("tags.DAT", 2)
DATLoad("tags.DAT", 5)
DATLoad("tags_dorm.DAT", 0)
DATLoad("tags_hallways.DAT", 0)
DATLoad("Tattoos.dat", 0)
DATLoad("tbarrels.DAT", 2)
DATLoad("tBMX.DAT", 0)
DATLoad("tbusines_doors.DAT", 5)
DATLoad("tcarni.DAT", 5)
DATLoad("tenements.DAT", 0)
DATLoad("TenErrands.DAT", 2)
DATLoad("Test_4_02.DAT", 2)
DATLoad("test_path.DAT", 2)
DATLoad("TestAvoidance.DAT", 2)
DATLoad("TestBikeObjectives.DAT", 2)
DATLoad("TestBMXTrack.DAT", 2)
DATLoad("TestCarLineup.DAT", 2)
DATLoad("TestCarPath.DAT", 2)
DATLoad("TestCharIdles.DAT", 2)
DATLoad("TestClimbLadder.DAT", 2)
DATLoad("TestConversation.DAT", 2)
DATLoad("TestJenSchool.DAT", 2)
DATLoad("TestPath.DAT", 2)
DATLoad("TestPedPickup.DAT", 2)
DATLoad("TestPedTran.DAT", 2)
DATLoad("TestPlatform.DAT", 2)
DATLoad("TestProjDetection.DAT", 2)
DATLoad("TestPropEvents.DAT", 2)
DATLoad("TestRemember.DAT", 2)
DATLoad("TestRumbleRanged.DAT", 2)
DATLoad("TESTSAFECUT.DAT", 2)
DATLoad("TESTSPUDCANNON.DAT", 2)
DATLoad("TestStoolSit.DAT", 2)
DATLoad("TESTSTUD.DAT", 2)
DATLoad("TestWalkableMesh.DAT", 2)
DATLoad("TFight01.DAT", 0)
DATLoad("TFIGHT01.DAT", 2)
DATLoad("TFIGHT01POI.DAT", 2)
DATLoad("tindustrial.DAT", 1)
DATLoad("tindustrial_doors.DAT", 5)
DATLoad("tphoto.DAT", 2)
DATLoad("tphotoglass.DAT", 2)
DATLoad("TProjAI.DAT", 2)
DATLoad("trich.DAT", 5)
DATLoad("trich_doors.DAT", 5)
DATLoad("tschool_doors.DAT", 5)
DATLoad("tschool_garagedoors.DAT", 2)
DATLoad("tschool_hangouts.DAT", 1)
DATLoad("tschool_maindoors.dat", 1)
DATLoad("ttest.DAT", 0)
DATLoad("world_brocket.DAT", 1)
DATLoad("world_spray_cans.DAT", 1)
DATLoad("world_spudgun.DAT", 1)
DATLoad(datId, 2)
push esi
push edi
mov edi, dword ptr [esp+0xC]
push edi
mov esi, 0x2
call 0x73AEA0
add esp, 0x4
cmp eax, esi
jnz 0xF
push 0x1
push edi
call LuaParam::GetInt
add esp, 0x8
mov esi, eax
push 0x0
push 0x0
push 0x925FA4
call 0x43C4F0
add esp, 0xC
push esi
push 0x0
push edi
call LuaParam::GetString
add esp, 0x8
push eax
mov ecx, 0x20C7C48
call 0x6D3C70
pop edi
xor eax, eax
pop esi
ret
DATUnload(0)
DATUnload(2)
DATUnload(5)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, 0x20C7C48
call 0x6D2210
xor eax, eax
ret
dbg_print(2, "Creating RETIREMENT PEDS")
dbg_print(2, "RETIREMENT PED=" .. gRetirementTable.ped1)
dbg_print(2, "RETIREMENT PED=" .. gRetirementTable.ped2)
dbg_print(2, "RETIREMENT PED=" .. gRetirementTable.ped3)
dbg_print(2, "RETIREMENT PED=" .. gRetirementTable.ped4)
function dbg_print(dbg_level, string)
if dbg_level <= report_level then
--print(string)
end
end
A standard Lua 5.0 function documented on lua.org.
A standard Lua 5.0 function documented on lua.org.
A standard Lua 5.0 function documented on lua.org.
A standard Lua 5.0 function documented on lua.org.
A standard Lua 5.0 function documented on lua.org.
A standard Lua 5.0 function documented on lua.org.
A standard Lua 5.0 function documented on lua.org.
A standard Lua 5.0 function documented on lua.org.
A standard Lua 5.0 function documented on lua.org.
-- never used
call 0x51AB30
xor eax, eax
ret
-- never used
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetString
add esp, 0x8
mov ecx, 0xD14170
call 0x5EEF90
push 0x0
push esi
call LuaParam::GetString
add esp, 0x8
xor eax, eax
pop esi
ret
DebugMenuAddItem(f_myPage, pedName, function()
DebugMenuAddItem(f_myPage, propModelName, function()
DebugMenuAddItem(myPage, "Set " .. FactionTable[faction].FString, function()
DebugMenuAddItem(myPage, "Set Emotion " .. EmotionTable[emotion].EString, function()
myItem = DebugMenuAddItem(myPage, GetModelName(bikeTable[bike]), function()
myItem = DebugMenuAddItem(myPage, pickupTable[pickup].name, function()
myItem = DebugMenuAddItem(myPage, shared.areaTable[location].name, function()
myItem = DebugMenuAddItem(myPage, tblScenario[scenario][2], function()
myItem = DebugMenuAddItem(myPage, weaponTable[weapon].name, function()
mov eax, 0x1
ret
f_myPage = DebugMenuAddPage("Spawn Character")
f_myPage = DebugMenuAddPage("Spawn Props")
myPage = DebugMenuAddPage("Ambient Scenarios")
myPage = DebugMenuAddPage("Area Jump")
myPage = DebugMenuAddPage("Give Weapon")
myPage = DebugMenuAddPage("Set Character Emotion/Faction")
myPage = DebugMenuAddPage("Spawn Bike")
myPage = DebugMenuAddPage("Spawn Pickup")
myPage = DebugMenuAddPage("Spawn Weapon")
mov eax, 0x1
ret
--DebugPrint(" fail_anim: " .. ActAnimTable[1].fail_anim)
--DebugPrint(" fail_anim: " .. ActAnimTable[i].fail_anim)
--DebugPrint(" adding action: " .. dm.name .. " " .. dm.act)
--DebugPrint(" ************************* Vic Counter = " .. VictimCounter)
--DebugPrint(" **************************** Song Index == " .. nCurrentClass)
--DebugPrint(" Hit Teacher Speak ************************************** ")
--DebugPrint(" I got a sound F" .. sNote)
--DebugPrint(" Missed Hit Teacher Speak ************************************** ")
--DebugPrint("*************** Teacher Index Sad ****************** " .. TeacherFaceIndex)
--DebugPrint("******************* 1 Removed blip: " .. ratped.blip)
--DebugPrint("******************** bIsOpen = " .. tostring(tblProp.bIsOpen))
--DebugPrint("********************** called F_DiablePA for jimmy announce")
--DebugPrint("********************** called F_EnablePA for jimmy announce")
--DebugPrint("********************** calling the function")
--DebugPrint("********************** Current State " .. gCurrentState)
--DebugPrint("********************** DONE")
--DebugPrint("****************************** calling OnActivate")
--DebugPrint("****************************** calling OnDeactivate")
--DebugPrint("****************************** Prop is no longer playing the node")
--DebugPrint("****************************** Prop is now playing node, and wasn't before.")
--DebugPrint("******************************* " .. tostring(MissionGetCurrentName()) .. " completed")
--DebugPrint("******************************* " .. tostring(MissionGetCurrentName()) .. " failed")
--DebugPrint("*********************************************** island_3 - main() End")
--DebugPrint("*********************************************** island_3 - main() Start")
--DebugPrint("*********************************************** testarea - main() end")
--DebugPrint("*********************************************** testarea - main() start")
--DebugPrint("************************************************ move peds called w/ speed = " .. tostring(idSpeed))
--DebugPrint("************************************************ peds moving, telling to stop")
--DebugPrint("************************************************ peds stopped, telling to walk.")
--DebugPrint("************************************************ returning to start called.")
--DebugPrint("************************************************ returning to start point.")
--DebugPrint("************************************************ stop peds called.")
--DebugPrint("************************************************ telling peds to run.")
--DebugPrint("************************************************ telling peds to sprint.")
--DebugPrint("************************************************ x pressed.")
--DebugPrint("*************************************************** strChosen1 = " .. tostring(strChosenRegion))
--DebugPrint("**************************************************** doing the area transition")
--DebugPrint("**************************************************** done with MissionSetup")
--DebugPrint("**************************************************** going to send you to boys dorm")
--DebugPrint("**************************************************** going to send you to fight area")
--DebugPrint("**************************************************** going to send you to main map")
--DebugPrint("**************************************************** going to send you to test area")
--DebugPrint("**************************************************** main called")
--DebugPrint("**************************************************** mission cleanup called")
--DebugPrint("**************************************************** mission setup called")
--DebugPrint("******************************************************** strChosen = " .. tostring(strChosenRegion))
--DebugPrint("************************************************************** tblProp is NIL in barricade door open")
--DebugPrint("************************************************************** tblProp is NIL")
--DebugPrint("***************Teacher Index Happy****************** " .. TeacherFaceIndex)
--DebugPrint("************WMW - CALLING THE FADE HERE***************************")
--DebugPrint("************WMW - F_ResetPeds()***************************")
--DebugPrint("************WMW - FADE AND WAIT ARE DONE***************************")
--DebugPrint("************WMW - timeOutDelay is: " .. timeOutDelay)
--DebugPrint("************WMW - timeOutDelay is: " .. timeOutDelay) --Now it's always 1000000
--DebugPrint("************WMW - timeOutDelay is: " .. timeOutDelay) --Now it's always 30
--DebugPrint("----------- xUNIQUE == " .. tostring(-1))
--DebugPrint("-----------------------")
--DebugPrint("2_06supplemental.lua main() end")
--DebugPrint("2_06supplemental.lua main() start")
--DebugPrint("=+=+=+=+=+= T_NemBleach() end")
--DebugPrint("=+=+=+=+=+= T_NemBleach() start")
--DebugPrint("[RAUL] - F_SpawnerCallback() for " .. idPed .. " which is number: " .. spawncount .. " with blipID: " .. blipID)
--DebugPrint("ActAnimTableSize = " .. ActAnimTableSize)
--DebugPrint("ALARM OFF: " .. AlarmTime - GameTime)
--DebugPrint("ALARM TIME: " .. AlarmTime - GameTime)
--DebugPrint("call MissionFail()")
--DebugPrint("call MissionSucceed()")
--DebugPrint("Difficulty tier: " .. nCurrentClass)
--DebugPrint("difficulty: easy")
--DebugPrint("DodgeballPause test3 eof")
--DebugPrint("DodgeballPause test3")
--DebugPrint("enable HUD done!")
--DebugPrint("enable HUD!")
--DebugPrint("end: performance: " .. ClassChemGetPerformance())
--DebugPrint("enter main()")
--DebugPrint("enter MissionCleanup()")
--DebugPrint("enter MissionSetup()")
--DebugPrint("ENTERNODE: PedID(" .. pedId .. ") pathId(" .. pathId .. ") pathNode(" .. pathNode .. ")")
--DebugPrint("ERROR! difficulty not set!")
--DebugPrint("EXITNODE: PedID(" .. pedId .. ") pathId(" .. pathId .. ") pathNode(" .. pathNode .. ")")
--DebugPrint("F_ActionsCallback == false!")
--DebugPrint("F_ActionsCallback(): pass:" .. tostring(bPass) .. " " .. tostring(cAction) .. " " .. tostring(CurIndex))
--DebugPrint("F_ActionsCallback(): pass:" .. tostring(bPassed))
--DebugPrint("F_AmOnMission1() finish")
--DebugPrint("F_AmOnMission1() start")
--DebugPrint("F_AmOnMission1(): false, returning 1")
--DebugPrint("F_AmOnMission1(): true, returning 0")
--DebugPrint("F_AmOnMission2() finish")
--DebugPrint("F_AmOnMission2() start")
--DebugPrint("F_AmOnMission2(): false, returning 1")
--DebugPrint("F_AmOnMission2(): true, returning 0")
--DebugPrint("F_AmOnMission3() finish")
--DebugPrint("F_AmOnMission3() start")
--DebugPrint("F_AmOnMission3(): false, returning 1")
--DebugPrint("F_AmOnMission3(): true, returning 0")
--DebugPrint("F_AmOnMission4() finish")
--DebugPrint("F_AmOnMission4() start")
--DebugPrint("F_AmOnMission4(): false, returning 1")
--DebugPrint("F_AmOnMission4(): true, returning 0")
--DebugPrint("F_AttendedClass eof")
--DebugPrint("F_AttendedClass")
--DebugPrint("F_AttendedCurfew eof")
--DebugPrint("F_AttendedCurfew")
--DebugPrint("F_Clamp() final j: " .. j)
--DebugPrint("F_Clamp() j: " .. j .. " total: " .. total)
--DebugPrint("F_CreateSpawner() end")
--DebugPrint("F_CreateSpawner() start")
--DebugPrint("F_EndAfternoon + eof")
--DebugPrint("F_EndClass eof")
--DebugPrint("F_EndClass")
--DebugPrint("F_EndCurfew_TooTired eof")
--DebugPrint("F_EndCurfew_TooTired")
--DebugPrint("F_EndEvening + eof")
--DebugPrint("F_EndLunch + eof")
--DebugPrint("F_EndMorning + eof")
--DebugPrint("F_EndTired eof")
--DebugPrint("F_EndTired")
--DebugPrint("F_FinalCutscene()")
--DebugPrint("F_MissedClass eof")
--DebugPrint("F_MissedClass")
--DebugPrint("F_MissedCurfew eof")
--DebugPrint("F_MissedCurfew")
--DebugPrint("F_NIS_Parking1 end")
--DebugPrint("F_NIS_Parking1 start")
--DebugPrint("F_Nothing")
--DebugPrint("F_OnGaryDeath start")
--DebugPrint("F_PedsFromPointList(): created model " .. temp_model .. " at x:" .. x1 .. " y:" .. y1 .. " z:" .. z1),
--DebugPrint("F_PedsFromPointList(): number" .. i .. " of " .. pointlistSize)
--DebugPrint("F_RingSchoolBell eof")
--DebugPrint("F_RingSchoolBell")
--DebugPrint("F_RunNIS - NIS: " .. gNIS)
--DebugPrint("F_SetMission(" .. subq .. ") start")
--DebugPrint("F_SetMission() finish")
--DebugPrint("F_SetupPedForAfterMissionFail(pedid) end")
--DebugPrint("F_SetupPedForAfterMissionFail(pedid) not dead")
--DebugPrint("F_SetupPedForAfterMissionFail(pedid): " .. pedid)
--DebugPrint("F_StageOneGetToBus() - going to F_IntroObjectiveMainMap")
--DebugPrint("F_StartAfternoon + eof")
--DebugPrint("F_StartClass eof")
--DebugPrint("F_StartClass")
--DebugPrint("F_StartCurfew_MoreTired eof")
--DebugPrint("F_StartCurfew_MoreTired")
--DebugPrint("F_StartCurfew_SlightlyTired eof")
--DebugPrint("F_StartCurfew_SlightlyTired")
--DebugPrint("F_StartCurfew_Tired eof")
--DebugPrint("F_StartCurfew_Tired")
--DebugPrint("F_StartCurfew_TooTired eof")
--DebugPrint("F_StartCurfew_TooTired")
--DebugPrint("F_StartEvening + eof")
--DebugPrint("F_StartLunch eof")
--DebugPrint("F_StartLunch")
--DebugPrint("F_StartMorning + eof")
--DebugPrint("group " .. group .. " not found")
--DebugPrint("hour: " .. hour .. " min: " .. minute)
--DebugPrint("L_PedDeadCount() -- " .. deadCount)
--DebugPrint("L_PropMonitor() stopping.")
--DebugPrint("L_TagIsFaction: called with invalid TagType of " .. tostring(idTagType))
--DebugPrint("L_TagIsFaction: called with nil TagType ENUM")
--DebugPrint("L_TagIsFaction: called with nil trigger id")
--DebugPrint("L_TagSet: called with nil trigger id")
--DebugPrint("leave main()")
--DebugPrint("leave MissionCleanup()")
--DebugPrint("leave MissionSetup()")
--DebugPrint("LibPhotography: L_MonitorTargets() ended.")
--DebugPrint("loop over!")
--DebugPrint("lQTE_Create(game): game = " .. game)
--DebugPrint("lQTE_InitSequences() fin")
--DebugPrint("lQTE_InitSequences() start. difficultyReq =" .. difficultyReq)
--DebugPrint("max_num_kicks_allowed " .. max_num_kicks_allowed)
--DebugPrint("mission fail!")
--DebugPrint("mission success!")
--DebugPrint("MissionCleanup() start")
--DebugPrint("no funcRef")
--DebugPrint("now playing step: " .. curr)
--DebugPrint("num_kicked and CounterGetCurrent() are in disagreement!!!!!")
--DebugPrint("num_kicked: " .. num_kicked .. " counter says: " .. CounterGetCurrent())
--DebugPrint("num_kicked: " .. num_kicked .. " greater than or equal to max: " .. max_num_kicks_allowed .. " stopping now")
--DebugPrint("Number of guys dead is " .. deadCount .. "")
--DebugPrint("OnBuyCB: Model: " .. modelID)
--DebugPrint("PATHPOINTACTION: PedID(" .. pedId .. ") pathId(" .. pathId .. ") pathNode(" .. pathNode .. ") pathPointAction(" .. pathPointAction .. ")")
--DebugPrint("Ped Told to Leave Combat Zone")
--DebugPrint("PickRandom tbl.size=0")
--DebugPrint("PickRandom tbl~=table")
--DebugPrint("removing from queue: mText: " .. tostring(event.mText) .. " mTime: " .. tostring(event.mTime) .. " mStyle: " .. tostring(event.mStyle) .. " at time: " .. GetTimer())
--DebugPrint("removing from queue: mSpeechPed: " .. tostring(event.mSpeechPed) .. " mSpeechEvent: " .. tostring(event.mSpeechEvent) .. " mParam: " .. tostring(event.mParam) .. " at time: " .. GetTimer())
--DebugPrint("retfrom MissionFail()")
--DebugPrint("retfrom MissionSucceed()")
--DebugPrint("sequence: " .. seq)
--DebugPrint("Setting Up Before Mission For Mission: " .. missionId)
--DebugPrint("Setting Up Mission Requirements For Mission: " .. missionId)
--DebugPrint("simple prop " .. prop.id .. " created.")
--DebugPrint("SoundPlayScriptedSpeechEvent had error: " .. soundret)
--DebugPrint("SoundPlayScriptedSpeechEventWrapper() ped: " .. id .. " bank: " .. bank .. " speechid: " .. speechid .. " voltable: " .. tostring(voltable))
--DebugPrint("start a sequence!")
--DebugPrint("starting over")
--DebugPrint("startPoint: " .. startPoint .. " visibleArea: " .. visibleArea)
--DebugPrint("STimeCycle.lua main")
--DebugPrint("Successfully Joined Combat Zone")
--DebugPrint("T_BottleTrigger end")
--DebugPrint("T_BottleTrigger start")
--DebugPrint("T_DieCamera() end")
--DebugPrint("T_DieCamera() start")
--DebugPrint("T_LibraryInteriorInit start")
--DebugPrint("test is 0")
--DebugPrint("test is 1")
--DebugPrint("test is 2")
--DebugPrint("The Following Ped Hears The Player: PedID(" .. pedId .. ")")
--DebugPrint("The Following Ped Sees The Player: PedID(" .. pedId .. ")")
--DebugPrint("Time is now: " .. GetTimer())
--DebugPrint("X is pressed!!!")
--DebugPrint([[
xor eax, eax
ret
-- never used
mov ecx, 0xD02850
call 0x5DB940
test eax, eax
jz 0x9
mov ecx, eax
call 0x5D9750
xor eax, eax
ret
DeletePersistentEntity(BikeIndex, BikeType)
DeletePersistentEntity(boardBad01, boardBad02)
DeletePersistentEntity(boardGood01, boardGood02)
DeletePersistentEntity(BrokenGateId, BrokenGateObject)
DeletePersistentEntity(coolerIndex, coolerEntity)
DeletePersistentEntity(dGI, dGO)
DeletePersistentEntity(element.ind, element.obj)
DeletePersistentEntity(entity.poolIndex, entity.type)
DeletePersistentEntity(entity[2], entity[3])
DeletePersistentEntity(Entry.id, Entry.bPool)
DeletePersistentEntity(Entry.id, Entry.pool)
DeletePersistentEntity(entry.poolIndex, entry.type)
DeletePersistentEntity(finalPottyIndex, finalPottyType)
DeletePersistentEntity(gate.id, gate.bPool)
DeletePersistentEntity(Gate102PoolIndex, Gate102Entity)
DeletePersistentEntity(gBagInd, gBagModel)
DeletePersistentEntity(gBikeIndex, gBikeObject)
DeletePersistentEntity(gButtonIndex, gCraneButton)
DeletePersistentEntity(gCraneIndex, gCraneLights)
DeletePersistentEntity(geo.id, geo.bPool)
DeletePersistentEntity(geo.id, geo.index)
DeletePersistentEntity(geoIndex, geoEntityType)
DeletePersistentEntity(gGeoInfo[1].obj, gGeoInfo[1].id)
DeletePersistentEntity(gRatCrate.index, gRatCrate.simpleObject)
DeletePersistentEntity(gSktModl, gSktGeo)
DeletePersistentEntity(gStatueLight, gStatueLightObject)
DeletePersistentEntity(gTrophyPile.index, gTrophyPile.simpleObject)
DeletePersistentEntity(gWatcherBox, gWatcherBoxObject)
DeletePersistentEntity(holeGateCloseIndex, holeGateCloseGeometry)
DeletePersistentEntity(idObj1, bObj1)
DeletePersistentEntity(idObj2, bObj2)
DeletePersistentEntity(idObj3, bObj3)
DeletePersistentEntity(iDoor, oDoor)
DeletePersistentEntity(index_A, simpleObject_A)
DeletePersistentEntity(index_A2, simpleObject_A2)
DeletePersistentEntity(index_B, simpleObject_B)
DeletePersistentEntity(index_B2, simpleObject_B2)
DeletePersistentEntity(index_BlkFade, entity_BlkFade)
DeletePersistentEntity(index_C, simpleObject_C)
DeletePersistentEntity(index_C2, simpleObject_C2)
DeletePersistentEntity(index_D, simpleObject_D)
DeletePersistentEntity(index_D2, simpleObject_D2)
DeletePersistentEntity(index_E, simpleObject_E)
DeletePersistentEntity(index_E2, simpleObject_E2)
DeletePersistentEntity(index_glow, simpleObject_glow)
DeletePersistentEntity(index_mat, simpleObject_mat)
DeletePersistentEntity(indexNorthB, simpleObjectNorthB)
DeletePersistentEntity(indexSouthB, simpleObjectSouthB)
DeletePersistentEntity(indexWestB, simpleObjectWestB)
DeletePersistentEntity(mbox.id, mbox.object)
DeletePersistentEntity(NoGoElectricLI, NoGoElectricSO)
DeletePersistentEntity(NoGoSteamLI, NoGoSteamSO)
DeletePersistentEntity(peeIndex, peeEntity)
DeletePersistentEntity(plant.id, plant.object)
DeletePersistentEntity(PottyPoolIndex, 5)
DeletePersistentEntity(pxCrappyIndex, 5)
DeletePersistentEntity(pxRailIndex, pxRailType)
DeletePersistentEntity(shared.gHoleGateOpenIndex, shared.gHoleGateOpenGeometry)
DeletePersistentEntity(shared.gSchoolBusDoorIndex, shared.gSchoolBusDoorGeometry)
DeletePersistentEntity(shared.hoboGateIndex, shared.hoboGateObject)
DeletePersistentEntity(t, i)
DeletePersistentEntity(tagIndex, tagObject)
DeletePersistentEntity(tennPipes, tennPipesType)
DeletePersistentEntity(ThePipeIndex, ThePipeType)
DeletePersistentEntity(thing.id, thing.object)
push esi
mov esi, dword ptr [esp+0x8]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetInt
push eax
push edi
call 0x44A660
mov esi, eax
add esp, 0x18
test esi, esi
jz 0x1B
push esi
call 0x45DD70
push esi
call 0x45E690
mov eax, dword ptr [esi]
mov edx, dword ptr [eax]
add esp, 0x8
push 0x1
mov ecx, esi
call 0x5BCBF1
pop edi
xor eax, eax
pop esi
ret
SERVER
Deletes a sync dimension. If it was active, the main dimension is activated.
-- never used
mov eax, dword ptr [esp+0x4]
push 0xFFFFFFFF
push eax
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
ret
DemoBuildReturnToMain()
mov byte ptr [0x20C32EC], 0x1
call 0x458450
call 0x4593F0
xor eax, eax
ret
DestroyProjectile(proj)
DestroyProjectile(proj1)
DestroyProjectile(proj2)
DestroyProjectile(proj3)
DestroyProjectile(proj4)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetInt
push 0x0
push eax
call 0x4D3F10
add esp, 0x10
xor eax, eax
ret
DetentionMeterSetVisibility(true)
push ecx
mov eax, dword ptr [esp+0x8]
push 0x0
push eax
call LuaParam::GetBool
mov ecx, dword ptr [0xC674A0]
mov edx, dword ptr [ecx]
mov edx, dword ptr [edx+0x14]
mov byte ptr [esp+0x8], al
mov eax, dword ptr [esp+0x8]
add esp, 0x8
push eax
call 0x5D1EA6
xor eax, eax
pop ecx
ret
-- never used
sub esp, 0x10
push esi
mov esi, dword ptr [esp+0x18]
push edi
push 0x0
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x14], st
push 0x1
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x20], st
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x2C], st
push 0x3
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x28], st
push 0x4
push esi
call LuaParam::GetFloat
call 0x85C720
push 0x5
push esi
mov edi, eax
call LuaParam::GetFloat
add esp, 0x30
call 0x85C720
cmp eax, 0xFFFFFFFF
jnz 0x6
xor eax, eax
jmp 0x19
mov edx, eax
neg edx
push ecx
sbb edx, edx
mov ecx, esp
add edx, 0x3
push eax
mov dword ptr [ecx], edx
call 0x5C7380
add esp, 0x8
fld st, dword ptr [esp+0x8]
mov ecx, dword ptr [esp+0xC]
mov edx, dword ptr [esp+0x10]
push eax
push edi
sub esp, 0x10
mov eax, esp
fstp dword ptr [esp+0xC], st
mov dword ptr [eax], ecx
mov ecx, dword ptr [esp+0x2C]
mov dword ptr [eax+0x4], edx
mov dword ptr [eax+0x8], ecx
call 0x4D4500
add esp, 0x18
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret
DisablePOI()
DisablePOI(false, false)
DisablePOI(false, true)
DisablePOI(true, true)
function DisablePOI(bScriptedPOIs, bHangOutSpots)
if bScriptedPOIs == nil or bScriptedPOIs == true then
POISetSystemEnabled(false)
end
if bHangOutSpots == nil or bHangOutSpots == true then
POIGroupsEnabled(false)
end
end
--print(">>>[RUI]", "DisablePunishmentSystem(false)")
DisablePunishmentSystem(false)
DisablePunishmentSystem(true)
mov eax, dword ptr [esp+0x4]
push esi
mov esi, dword ptr [0xC0F78C]
push 0x0
push eax
call LuaParam::GetBool
add esp, 0x8
mov byte ptr [esi], al
mov byte ptr [esi+0x1], al
xor eax, eax
pop esi
ret
CLIENT
Discards the active text formatting. See DrawText for details on text formatting functions.
distance = DistanceBetweenCoords2d(plx, ply, rsx, rsy)
elseif DistanceBetweenCoords2d(x, y, -740.763, -615.859) < 8 then
elseif not SoundSpeechPlaying(idNemesis) and DistanceBetweenCoords2d(X1, Y1, X2, Y2) <= 6.9 then
foundDistance = DistanceBetweenCoords2d(x1, y1, x2, y2)
gDistanceBetween = DistanceBetweenCoords2d(gPlayerX, gPlayerY, gKleptoX, gKleptoY)
gMusicDistance = DistanceBetweenCoords2d(gMusicPlayerX, gMusicPlayerY, gMusicKleptoX, gMusicKleptoY)
if DistanceBetweenCoords2d(px, py, cx, cy) >= 70 then
if DistanceBetweenCoords2d(Px, Py, Gx, Gy) >= 15 and not PedCanSeeObject(gPlayer, idNemesis, 2) then
if DistanceBetweenCoords2d(x, y, px, pz) >= 30 then
if nDistance >= DistanceBetweenCoords2d(nemx, nemy, playx, playy) then
if not SoundSpeechPlaying(idNemesis) and DistanceBetweenCoords2d(X1, Y1, X2, Y2) >= 7 then
local dist = DistanceBetweenCoords2d(px, py, cx, cy)
local dX = distance * (x2 - x1) / DistanceBetweenCoords2d(x1, y1, x2, y2)
local dX = distance * (y2 - y1) / DistanceBetweenCoords2d(x1, y1, x2, y2)
local dY = distance * (x2 - x1) / DistanceBetweenCoords2d(x1, y1, x2, y2)
local dY = distance * (y2 - y1) / DistanceBetweenCoords2d(x1, y1, x2, y2)
local nDistance = DistanceBetweenCoords2d(x1, y1, x2, y2)
return DistanceBetweenCoords2d(x1, y1, x2, y2)
return DistanceBetweenCoords2d(X1, Y1, X2, Y2)
spookRatio = (DistanceBetweenCoords2d(x1, y1, x2, y2) - spookMin) / spookDif * 100
tempdistance = DistanceBetweenCoords2d(x1, y1, x, y)
sub esp, 0x18
push esi
mov esi, dword ptr [esp+0x20]
push 0x0
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0xC], st
push 0x1
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x20], st
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x20], st
push 0x3
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x38], st
fld st, dword ptr [esp+0x24]
add esp, 0x20
fsub st, dword ptr [esp+0x8]
fstp dword ptr [esp+0x8], st
fld st, dword ptr [esp+0x10]
fsub st, dword ptr [esp+0x18]
fstp dword ptr [esp+0xC], st
fld st, dword ptr [esp+0xC]
fld st, dword ptr [esp+0x8]
fmul st(0), st
fld st, st(1)
fmulp st(2), st
faddp st(1), st
fstp dword ptr [esp+0x10], st
fld st, dword ptr [esp+0x10]
fabs
fstp dword ptr [esp+0x10], st
fld st, dword ptr [esp+0x10]
call 0x85C500
fstp dword ptr [esp+0x10], st
fld st, dword ptr [esp+0x10]
push ecx
fstp dword ptr [esp], st
push esi
call LuaParam::PushFloat
add esp, 0x8
mov eax, 0x1
pop esi
add esp, 0x18
ret
distance = DistanceBetweenCoords3d(x, y, z, x2, y2, z2)
elseif DistanceBetweenCoords3d(x1, y1, z1, x2, y2, z2) > AreaGetPopulationCullDistance() == true then
elseif DistanceBetweenCoords3d(x1, y1, z1, x2, y2, z2) > AreaGetPopulationCullDistance() and AreaGetVisible() ~= 2 then
elseif DistanceBetweenCoords3d(x1, y1, z1, x2, y2, z2) > AreaGetPopulationCullDistance() then
elseif DistanceBetweenCoords3d(x1, y1, z1, x2, y2, z2) > GARAGE_OPEN_RADIUS and bGarageDoorOpen == true then
if 1 > DistanceBetweenCoords3d(x, y, z, x2, y2, z2) then
if DistanceBetweenCoords3d(tbx, tby, tbz, hx, hy, hz) <= 10 and gHattrick and gPrincipal then
if DistanceBetweenCoords3d(x, y, z, 274.305, -70.6824, 5.98641) < 5 then
if DistanceBetweenCoords3d(x, y, z, Locker_x, Locker_y, Locker_z) < 1 then
if DistanceBetweenCoords3d(x1, y1, z1, x2, y2, z2) < 0.5 then
if DistanceBetweenCoords3d(x1, y1, z1, x2, y2, z2) < GARAGE_OPEN_RADIUS and bGarageDoorOpen == false then
if DistanceBetweenCoords3d(x1, y1, z1, x2, y2, z2) > 5 then
if DistanceBetweenCoords3d(x1, y1, z1, x2, y2, z2) > AreaGetPopulationCullDistance() == true then
if DistanceBetweenCoords3d(x1, y1, z1, x2, y2, z2) > AreaGetPopulationCullDistance() or currentArea ~= AreaGetVisible() then
if DistanceBetweenCoords3d(x1, y1, z1, x2, y2, z2) > AreaGetPopulationCullDistance() then
if DistanceBetweenCoords3d(x1, y1, z1, x2, y2, z2) > MAX_DIST_FROM_SANTA then
local distanceToPrev = DistanceBetweenCoords3d(x, y, z, shared.gLastLockPickLocation.x1, shared.gLastLockPickLocation.y1, shared.gLastLockPickLocation.z1)
return DistanceBetweenCoords3d(x1, y1, z1, x2, y2, z2)
while DistanceBetweenCoords3d(x1, y1, z1, x2, y2, z2) > GET_TO_SQUARE_DISTANCE do
sub esp, 0x48
fldz
push esi
mov esi, dword ptr [esp+0x50]
fst dword ptr [esp+0x28], st
fst dword ptr [esp+0x2C], st
push 0x0
fst dword ptr [esp+0x34], st
push esi
fst dword ptr [esp+0x24], st
fst dword ptr [esp+0x28], st
fstp dword ptr [esp+0x2C], st
call LuaParam::GetFloat
fstp dword ptr [esp+0xC], st
push 0x1
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x18], st
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x24], st
push 0x3
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x30], st
push 0x4
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x3C], st
push 0x5
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x48], st
fld st, dword ptr [esp+0x34]
fstp dword ptr [esp+0x64], st
mov eax, dword ptr [esp+0x64]
fld st, dword ptr [esp+0x38]
mov dword ptr [esp+0x58], eax
fstp dword ptr [esp+0x68], st
mov ecx, dword ptr [esp+0x68]
fld st, dword ptr [esp+0x3C]
mov dword ptr [esp+0x5C], ecx
fstp dword ptr [esp+0x6C], st
mov edx, dword ptr [esp+0x6C]
fld st, dword ptr [esp+0x40]
mov dword ptr [esp+0x60], edx
fstp dword ptr [esp+0x64], st
mov eax, dword ptr [esp+0x64]
fld st, dword ptr [esp+0x44]
mov dword ptr [esp+0x4C], eax
fstp dword ptr [esp+0x68], st
mov ecx, dword ptr [esp+0x68]
fld st, dword ptr [esp+0x48]
lea eax, ptr [esp+0x4C]
fstp dword ptr [esp+0x6C], st
mov edx, dword ptr [esp+0x6C]
mov dword ptr [esp+0x50], ecx
push eax
lea ecx, ptr [esp+0x5C]
mov dword ptr [esp+0x58], edx
push ecx
lea edx, ptr [esp+0x78]
push edx
call 0x414B70
mov edx, dword ptr [eax+0x4]
mov ecx, dword ptr [eax]
mov eax, dword ptr [eax+0x8]
mov dword ptr [esp+0x74], edx
fld st, dword ptr [esp+0x74]
mov dword ptr [esp+0x70], ecx
fld st, dword ptr [esp+0x70]
mov dword ptr [esp+0x78], eax
fld st, dword ptr [esp+0x78]
fld st, st(1)
add esp, 0x3C
fmulp st(2), st
fld st, st(2)
fmulp st(3), st
fxch st, st(1)
faddp st(2), st
fmul st(0), st
faddp st(1), st
fstp dword ptr [esp+0x18], st
fld st, dword ptr [esp+0x18]
fabs
fstp dword ptr [esp+0x18], st
fld st, dword ptr [esp+0x18]
call 0x85C500
fstp dword ptr [esp+0x18], st
fld st, dword ptr [esp+0x18]
push ecx
fstp dword ptr [esp], st
push esi
call LuaParam::PushFloat
add esp, 0x8
mov eax, 0x1
pop esi
add esp, 0x48
ret
--assert(ped1_id ~= nil and 0 <= ped1_id, "DistanceBetweenPeds2D Error: Invalid ped id for ped1_id")
--assert(ped2_id ~= nil and 0 <= ped2_id, "DistanceBetweenPeds2D Error: Invalid ped id for ped2_id")
distance = DistanceBetweenPeds2D(gPlayer, defender)
elseif not PedIsDead(idDO) and DistanceBetweenPeds2D(gPlayer, idDO) > 55 then
elseif not PedIsDead(idDO) and DistanceBetweenPeds2D(gPlayer, idDO) > 75 then
if 1 >= DistanceBetweenPeds2D(gPlayer, edgar) and PedIsPlaying(edgar, "/Global/DO_Edgar/Default_KEY/CustomLoco", true) and (not PedIsPlaying(gPlayer, "/Global/HitTree/Standing/PostHit", true) or PedIsPlaying(gPlayer, "/Global/WProps/PropInteract/PropInteractLoco", true)) then
if DistanceBetweenPeds2D(gPlayer, idDO) <= 50 then
if DistanceBetweenPeds2D(gPlayer, idDO) > 50 then
if DistanceBetweenPeds2D(gPlayer, idDO) > 65 then
if GARY_ANGRY and DistanceBetweenPeds2D(gPlayer, gGary) <= 1 and (PedIsPlaying(gGary, "/Global/Nemesis/Default_KEY/Locomotion", true) or PedIsPlaying(gGary, "/Global/HitTree/Standing/PostHit", true)) and not PedIsPlaying(gPlayer, "/Global/HitTree/Standing/PostHit", true) then
if not gPauseThread and DistanceBetweenPeds2D(gPlayer, gTed) <= 6 then
if not gPauseThread and gTedCanAttack and (gInitialTime or GetTimer() - gTedStartTime > 2000 and DistanceBetweenPeds2D(gPlayer, gTed) > 6) then
if not JohnnyPrepAttack and not F_PedIsDead(gJV_OnBike) and DistanceBetweenPeds2D(gPlayer, gJV_OnBike) <= 2.3 and PedIsInVehicle(gJV_OnBike, gJV_Bike) and PedIsInAnyVehicle(gJV_OnBike) then
if PedIsValid(defender) and not F_IsDead(defender) and distance > DistanceBetweenPeds2D(gPlayer, defender) then
function DistanceBetweenPeds2D(ped1_id, ped2_id)
--assert(ped1_id ~= nil and 0 <= ped1_id, "DistanceBetweenPeds2D Error: Invalid ped id for ped1_id")
--assert(ped2_id ~= nil and 0 <= ped2_id, "DistanceBetweenPeds2D Error: Invalid ped id for ped2_id")
local x1, y1, z1 = PedGetPosXYZ(ped1_id)
local x2, y2, z2 = PedGetPosXYZ(ped2_id)
return DistanceBetweenCoords2d(x1, y1, x2, y2)
end
--assert(ped1_id ~= nil and 0 <= ped1_id, "DistanceBetweenPeds3D Error: Invalid ped id for ped1_id")
--assert(ped2_id ~= nil and 0 <= ped2_id, "DistanceBetweenPeds3D Error: Invalid ped id for ped2_id")
bFail = DistanceBetweenPeds3D(gPlayer, gDavis) > MAX_FAIL_DISTANCE_LIMIT
if closestElf1 == nil or distance < DistanceBetweenPeds3D(closestElf1, gPlayer) then
if closestElfIndex == -1 or distance < DistanceBetweenPeds3D(tblElvesList[closestElfIndex].elf, santa) then
if DistanceBetweenPeds3D(clint, gPlayer) < 10 and bClintSpeechRunning == false then
if DistanceBetweenPeds3D(clint, gPlayer) < 3 and bClintSpeechRunning == false then
if DistanceBetweenPeds3D(gPlayer, gHattrick) >= MAX_HATTRICK_DISTANCE then
if DistanceBetweenPeds3D(gPlayer, gRussell.id) >= MAX_RUSSELL_DISTANCE then
if PedIsValid(santaKid) and DistanceBetweenPeds3D(santa, santaKid) < 3 then
if PedIsValid(santaKid) and DistanceBetweenPeds3D(santa, santaKid) < 4 then
local distance = DistanceBetweenPeds3D(item.elf, gPlayer)
local distance = DistanceBetweenPeds3D(item.elf, santa)
while DistanceBetweenPeds3D(gPlayer, pedGary.id) >= 5 do
function DistanceBetweenPeds3D(ped1_id, ped2_id)
--assert(ped1_id ~= nil and 0 <= ped1_id, "DistanceBetweenPeds3D Error: Invalid ped id for ped1_id")
--assert(ped2_id ~= nil and 0 <= ped2_id, "DistanceBetweenPeds3D Error: Invalid ped id for ped2_id")
local x1, y1, z1 = PedGetPosXYZ(ped1_id)
local x2, y2, z2 = PedGetPosXYZ(ped2_id)
return DistanceBetweenCoords3d(x1, y1, z1, x2, y2, z2)
end
DockerClearOverrideActiveSetting(BAKidDockers)
DockerClearOverrideActiveSetting(BAStoreDockers)
DockerClearOverrideActiveSetting(BDormDock)
DockerClearOverrideActiveSetting(BExitDoor)
DockerClearOverrideActiveSetting(ClassDockers)
DockerClearOverrideActiveSetting(ExitDocker)
DockerClearOverrideActiveSetting(GDormDock)
DockerClearOverrideActiveSetting(gDormDocker)
DockerClearOverrideActiveSetting(HangOutDockers)
DockerClearOverrideActiveSetting(HouseDockers)
DockerClearOverrideActiveSetting(MovieDockers)
DockerClearOverrideActiveSetting(PAhouseDockers)
DockerClearOverrideActiveSetting(PAStoreDockers)
DockerClearOverrideActiveSetting(RAStoreDockers)
DockerClearOverrideActiveSetting(SchoolDocker)
DockerClearOverrideActiveSetting(XXXDockers)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetUserData
mov ecx, dword ptr [0xC2AB68]
add esp, 0x8
push eax
call 0x46E9E0
and byte ptr [eax+0xFD], 0xFE
xor eax, eax
ret
DockerSetMaximumRange(BAKidDockers, 25)
DockerSetMaximumRange(BAStoreDockers, 25)
DockerSetMaximumRange(BDormDock, 15)
DockerSetMaximumRange(BDormDock, 30)
DockerSetMaximumRange(BDormDoorsDocker, 0)
DockerSetMaximumRange(BDormDoorsDocker, 10)
DockerSetMaximumRange(BExitDoor, 10)
DockerSetMaximumRange(BExitDoor, 12)
DockerSetMaximumRange(BExitDoor, 200)
DockerSetMaximumRange(BExitDoor, 3)
DockerSetMaximumRange(BExitDoor, 30)
DockerSetMaximumRange(ClassDockers, 100)
DockerSetMaximumRange(DTStoreDocker, 10)
DockerSetMaximumRange(ExitDocker, 100)
DockerSetMaximumRange(ExitDocker, 15)
DockerSetMaximumRange(ExitDocker, 200)
DockerSetMaximumRange(ExitDocker, 30)
DockerSetMaximumRange(FSDocker, 10)
DockerSetMaximumRange(GDormDock, 15)
DockerSetMaximumRange(gDormDocker, 100)
DockerSetMaximumRange(gDormDocker, 12)
DockerSetMaximumRange(gDormDocker, 30)
DockerSetMaximumRange(gDormDocker, 8)
DockerSetMaximumRange(GymDocker, 8)
DockerSetMaximumRange(HangOutDockers, 10)
DockerSetMaximumRange(HangOutDockers, 100)
DockerSetMaximumRange(HouseDockers, 12)
DockerSetMaximumRange(IHouseDockers, 25)
DockerSetMaximumRange(MovieDockers, 20)
DockerSetMaximumRange(PAhouseDockers, 20)
DockerSetMaximumRange(PAStoreDockers, 20)
DockerSetMaximumRange(RAStoreDockers, 15)
DockerSetMaximumRange(SchoolDocker, 100)
DockerSetMaximumRange(SchoolDocker, 30)
DockerSetMaximumRange(XXXDockers, 20)
push esi
mov esi, dword ptr [esp+0x8]
push edi
push 0x0
push esi
call LuaParam::GetUserData
mov ecx, dword ptr [0xC2AB68]
add esp, 0x8
push eax
call 0x46E9E0
push 0x1
push esi
mov edi, eax
call LuaParam::GetFloat
fstp dword ptr [edi+0x108], st
add esp, 0x8
pop edi
xor eax, eax
pop esi
ret
DockerSetMinimumRange(BAKidDockers, 4)
DockerSetMinimumRange(BAStoreDockers, 4)
DockerSetMinimumRange(BDormDock, 3)
DockerSetMinimumRange(BDormDoorsDocker, 0)
DockerSetMinimumRange(BDormDoorsDocker, 3)
DockerSetMinimumRange(BExitDoor, 0)
DockerSetMinimumRange(BExitDoor, 3)
DockerSetMinimumRange(ClassDockers, 0)
DockerSetMinimumRange(DTStoreDocker, 1)
DockerSetMinimumRange(ExitDocker, 0)
DockerSetMinimumRange(ExitDocker, 10)
DockerSetMinimumRange(FSDocker, 1)
DockerSetMinimumRange(GDormDock, 3)
DockerSetMinimumRange(gDormDocker, 0)
DockerSetMinimumRange(gDormDocker, 3)
DockerSetMinimumRange(GymDocker, 3)
DockerSetMinimumRange(HangOutDockers, 3)
DockerSetMinimumRange(HouseDockers, 2)
DockerSetMinimumRange(IHouseDockers, 2)
DockerSetMinimumRange(MovieDockers, 5)
DockerSetMinimumRange(PAhouseDockers, 5)
DockerSetMinimumRange(PAStoreDockers, 5)
DockerSetMinimumRange(RAStoreDockers, 5)
DockerSetMinimumRange(SchoolDocker, 0)
DockerSetMinimumRange(XXXDockers, 5)
push esi
mov esi, dword ptr [esp+0x8]
push edi
push 0x0
push esi
call LuaParam::GetUserData
mov ecx, dword ptr [0xC2AB68]
add esp, 0x8
push eax
call 0x46E9E0
push 0x1
push esi
mov edi, eax
call LuaParam::GetFloat
fstp dword ptr [edi+0x104], st
add esp, 0x8
pop edi
xor eax, eax
pop esi
ret
DockerSetOverrideActiveSetting(BAKidDockers, true)
DockerSetOverrideActiveSetting(BAStoreDockers, true)
DockerSetOverrideActiveSetting(BDormDock, false)
DockerSetOverrideActiveSetting(BDormDock, true)
DockerSetOverrideActiveSetting(BExitDoor, true)
DockerSetOverrideActiveSetting(ClassDockers, false)
DockerSetOverrideActiveSetting(ClassDockers, true)
DockerSetOverrideActiveSetting(ExitDocker, true)
DockerSetOverrideActiveSetting(GDormDock, true)
DockerSetOverrideActiveSetting(gDormDocker, true)
DockerSetOverrideActiveSetting(HangOutDockers, false)
DockerSetOverrideActiveSetting(HangOutDockers, true)
DockerSetOverrideActiveSetting(HouseDockers, true)
DockerSetOverrideActiveSetting(IHouseDockers, true)
DockerSetOverrideActiveSetting(MovieDockers, true)
DockerSetOverrideActiveSetting(PAhouseDockers, true)
DockerSetOverrideActiveSetting(PAStoreDockers, true)
DockerSetOverrideActiveSetting(RAStoreDockers, true)
DockerSetOverrideActiveSetting(SchoolDocker, false)
DockerSetOverrideActiveSetting(SchoolDocker, true)
DockerSetOverrideActiveSetting(XXXDockers, true)
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetUserData
mov ecx, dword ptr [0xC2AB68]
add esp, 0x8
push eax
call 0x46E9E0
push 0x1
push edi
mov esi, eax
call LuaParam::GetBool
add al, al
xor al, byte ptr [esi+0xFD]
add esp, 0x8
and al, 0x2
xor al, byte ptr [esi+0xFD]
pop edi
or al, 0x1
mov byte ptr [esi+0xFD], al
xor eax, eax
pop esi
ret
DockerSetUseFacingCheck(BAKidDockers, true)
DockerSetUseFacingCheck(BAStoreDockers, true)
DockerSetUseFacingCheck(BDormDock, false)
DockerSetUseFacingCheck(BDormDock, true)
DockerSetUseFacingCheck(BExitDoor, false)
DockerSetUseFacingCheck(BExitDoor, true)
DockerSetUseFacingCheck(ClassDockers, false)
DockerSetUseFacingCheck(DTStoreDocker, false)
DockerSetUseFacingCheck(ExitDocker, false)
DockerSetUseFacingCheck(ExitDocker, true)
DockerSetUseFacingCheck(FSDocker, true)
DockerSetUseFacingCheck(GDormDock, true)
DockerSetUseFacingCheck(gDormDocker, false)
DockerSetUseFacingCheck(gDormDocker, true)
DockerSetUseFacingCheck(GymDocker, true)
DockerSetUseFacingCheck(HangOutDockers, false)
DockerSetUseFacingCheck(HouseDockers, true)
DockerSetUseFacingCheck(IHouseDockers, true)
DockerSetUseFacingCheck(MovieDockers, true)
DockerSetUseFacingCheck(PAhouseDockers, true)
DockerSetUseFacingCheck(PAStoreDockers, true)
DockerSetUseFacingCheck(RAStoreDockers, true)
DockerSetUseFacingCheck(SchoolDocker, false)
DockerSetUseFacingCheck(XXXDockers, true)
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetUserData
mov ecx, dword ptr [0xC2AB68]
add esp, 0x8
push eax
call 0x46E9E0
push 0x1
push edi
mov esi, eax
call LuaParam::GetBool
mov cl, byte ptr [esi+0xFC]
shl al, 0x7
add esp, 0x8
and cl, 0x7F
or cl, al
pop edi
mov byte ptr [esi+0xFC], cl
xor eax, eax
pop esi
ret
DockerSetUseHeightCheck(BExitDoor, false)
DockerSetUseHeightCheck(BExitDoor, true)
DockerSetUseHeightCheck(ExitDocker, false)
DockerSetUseHeightCheck(ExitDocker, true)
DockerSetUseHeightCheck(gDormDocker, false)
DockerSetUseHeightCheck(gDormDocker, true)
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetUserData
mov ecx, dword ptr [0xC2AB68]
add esp, 0x8
push eax
call 0x46E9E0
push 0x1
push edi
mov esi, eax
call LuaParam::GetBool
shl al, 0x6
xor al, byte ptr [esi+0xFC]
add esp, 0x8
and al, 0x40
xor byte ptr [esi+0xFC], al
pop edi
xor eax, eax
pop esi
ret
DodgeballEnableCamera(false)
DodgeballEnableCamera(true)
push ecx
mov eax, dword ptr [esp+0x8]
push 0x0
push eax
call LuaParam::GetBool
mov byte ptr [esp+0x8], al
mov ecx, dword ptr [esp+0x8]
push ecx
call 0x683AD0
xor eax, eax
add esp, 0x10
ret
DodgeballEnableHud(true)
push ecx
mov eax, dword ptr [esp+0x8]
push 0x0
push eax
call LuaParam::GetBool
mov byte ptr [esp+0x8], al
mov ecx, dword ptr [esp+0x8]
push ecx
call 0x683AA0
xor eax, eax
add esp, 0x10
ret
-- never used
call 0x683B90
xor eax, eax
ret
if DodgeballGetWinner() == 0 then
while DodgeballGetWinner() == -1 do
call 0x683A60
push eax
mov eax, dword ptr [esp+0x8]
push eax
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
ret
DodgeballHelpMsg(false)
DodgeballHelpMsg(true)
push ecx
mov eax, dword ptr [esp+0x8]
push 0x0
push eax
call LuaParam::GetBool
mov ecx, dword ptr [0x1B89150]
add esp, 0x8
test ecx, ecx
mov byte ptr [esp], al
jz 0xB
mov edx, dword ptr [esp]
push edx
call 0x67B620
xor eax, eax
pop ecx
ret
DodgeballInit()
call 0x683A70
xor eax, eax
ret
while DodgeballIsActive() do
push ecx
call 0x683A30
mov ecx, dword ptr [esp+0x8]
mov byte ptr [esp], al
mov eax, dword ptr [esp]
push eax
push ecx
call LuaParam::PushBool
mov eax, 0x1
add esp, 0xC
ret
--DebugPrint("DodgeballPause test3 eof")
--DebugPrint("DodgeballPause test3")
DodgeballPause(false)
push ecx
mov eax, dword ptr [esp+0x8]
push 0x0
push eax
call LuaParam::GetBool
mov byte ptr [esp+0x8], al
mov ecx, dword ptr [esp+0x8]
push ecx
call 0x683B20
xor eax, eax
add esp, 0x10
ret
DodgeballSetPed(0, 0, 0, "DB_Ped.act", "DB_Ped", "DB_Hit.act", "DBHit", "Default", "1", "C2_idPlayer")
DodgeballSetPed(0, 1, red1, "DB_Ped.act", "DB_Ped", "DB_Hit.act", "DBHit", "Default", "1", "C2_Algie")
DodgeballSetPed(0, 2, red2, "DB_Ped.act", "DB_Ped", "DB_Hit.act", "DBHit", "Default", "1", "C2_Thad")
DodgeballSetPed(0, 3, red3, "DB_Ped.act", "DB_Ped", "DB_Hit.act", "DBHit", "Default", "1", "C2_Bucky")
DodgeballSetPed(1, 0, blue1, teamTable[nCurrentStage].script1, teamTable[nCurrentStage].node1, teamTable[nCurrentStage].aiscript1, teamTable[nCurrentStage].ainode1, teamTable[nCurrentStage].p1AI, teamTable[nCurrentStage].difficulty, teamTable[nCurrentStage].name1)
DodgeballSetPed(1, 1, blue2, teamTable[nCurrentStage].script2, teamTable[nCurrentStage].node2, teamTable[nCurrentStage].aiscript2, teamTable[nCurrentStage].ainode2, teamTable[nCurrentStage].p2AI, teamTable[nCurrentStage].difficulty, teamTable[nCurrentStage].name2)
DodgeballSetPed(1, 2, blue3, teamTable[nCurrentStage].script3, teamTable[nCurrentStage].node3, teamTable[nCurrentStage].aiscript3, teamTable[nCurrentStage].ainode3, teamTable[nCurrentStage].p3AI, teamTable[nCurrentStage].difficulty, teamTable[nCurrentStage].name3)
DodgeballSetPed(1, 3, blue4, teamTable[nCurrentStage].script4, teamTable[nCurrentStage].node4, teamTable[nCurrentStage].aiscript4, teamTable[nCurrentStage].ainode4, teamTable[nCurrentStage].p4AI, teamTable[nCurrentStage].difficulty, teamTable[nCurrentStage].name4)
DodgeballSetPed(2, 0, referee, "DB_Ped.act", "DB_Ped", "DB_Hit.act", "DBHit", "Default", "1", "C2_Bucky")
sub esp, 0x30
push esi
mov esi, dword ptr [esp+0x38]
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov dword ptr [esp+0x14], eax
call LuaParam::GetInt
push 0x3
push esi
mov dword ptr [esp+0x20], eax
call LuaParam::GetString
push 0x4
push esi
mov dword ptr [esp+0x30], eax
call LuaParam::GetString
push 0x5
push esi
mov dword ptr [esp+0x3C], eax
mov dword ptr [esp+0x40], 0x93E96C
mov dword ptr [esp+0x44], 0x93E964
call LuaParam::GetString
push 0x6
push esi
mov dword ptr [esp+0x50], eax
call LuaParam::GetString
push 0x7
push esi
mov dword ptr [esp+0x5C], eax
call LuaParam::GetString
push 0x8
push esi
mov dword ptr [esp+0x68], eax
call LuaParam::GetString
add esp, 0x40
push 0x9
push esi
mov dword ptr [esp+0x34], eax
call LuaParam::GetString
push 0x2
push esi
mov dword ptr [esp+0x40], eax
call LuaParam::GetInt
add esp, 0x10
test eax, eax
jz 0x16
push ecx
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
jmp 0x7
mov eax, dword ptr [0xC1AEA8]
lea ecx, ptr [esp+0x4]
push ecx
mov dword ptr [esp+0x10], eax
call 0x683A10
add esp, 0x4
xor eax, eax
pop esi
add esp, 0x30
ret
DodgeballStartGame("TEST_GAME", true)
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetString
push 0x1
push esi
mov edi, eax
call LuaParam::GetBool
mov byte ptr [esp+0x18], al
mov eax, dword ptr [esp+0x18]
push eax
push edi
call 0x6839F0
add esp, 0x18
pop edi
xor eax, eax
pop esi
pop ecx
ret
DodgeballTerm()
call 0x683C00
xor eax, eax
ret
SERVER
Returns true if an account exists with the given case-insensitive name.
SERVER
Returns true if the player has the role. Always returns true if the role is "admin" and the player's ip is "127.0.0.1".
SHARED
A custom version of Lua 5.0.2's dofile function that provides enhanced security.
A standard Lua 5.0 function documented on lua.org.
SHARED
A script header function that will instantly quit the script if it was started using the initial script auto start.
DoSocialErrands(false)
DoSocialErrands(false, "AS_AE_OBJECTIVE")
DoSocialErrands(false, "AS_AG_OBJECTIVE")
DoSocialErrands(false, "AS_AT_OBJECTIVE")
DoSocialErrands(false, "AS_BG_OBJECTIVE")
DoSocialErrands(false, "AS_BR_OBJECTIVE")
DoSocialErrands(false, "AS_CF_OBJECTIVE")
DoSocialErrands(false, "AS_CG_OBJECTIVE")
DoSocialErrands(false, "AS_CH_ACTION")
DoSocialErrands(false, "AS_CH_OBJECTIVE")
DoSocialErrands(false, "AS_CN_OBJECTIVE", cannedGoal)
DoSocialErrands(false, "AS_CP_OBJECTIVE")
DoSocialErrands(false, "AS_CT_OBJECTIVE")
DoSocialErrands(false, "AS_DT_OBJECTIVE")
DoSocialErrands(false, "AS_EB_OBJECTIVE")
DoSocialErrands(false, "AS_ED_OBJECTIVE")
DoSocialErrands(false, "AS_EG_OBJECTIVE")
DoSocialErrands(false, "AS_EH_OBJECTIVE")
DoSocialErrands(false, "AS_EI_OBJECTIVE")
DoSocialErrands(false, "AS_EM_OBJECTIVE")
DoSocialErrands(false, "AS_ES_OBJECTIVE")
DoSocialErrands(false, "AS_F4_OBJECTIVE")
DoSocialErrands(false, "AS_FA_OBJECTIVE")
DoSocialErrands(false, "AS_FC_OBJECTIVE")
DoSocialErrands(false, "AS_FF_OBJECTIVE")
DoSocialErrands(false, "AS_GE_OBJECTIVE")
DoSocialErrands(false, "AS_HH_OBJECTIVE")
DoSocialErrands(false, "AS_IP_OBJECTIVE")
DoSocialErrands(false, "AS_JM_OBJECTIVE")
DoSocialErrands(false, "AS_KP_OBJECTIVE")
DoSocialErrands(false, "AS_LB_OBJECTIVE")
DoSocialErrands(false, "AS_LC_OBJECTIVE")
DoSocialErrands(false, "AS_LD_OBJECTIVE")
DoSocialErrands(false, "AS_LK_OBJECTIVE", lockeredGoal)
DoSocialErrands(false, "AS_MA_OBJECTIVE")
DoSocialErrands(false, "AS_MM_OBJECTIVE")
DoSocialErrands(false, "AS_PB_OBJECTIVE")
DoSocialErrands(false, "AS_PETEY_OBJECTIVE")
DoSocialErrands(false, "AS_PI_OBJECTIVE", pickItGoal)
DoSocialErrands(false, "AS_PT_OBJECTIVE")
DoSocialErrands(false, "AS_RA_OBJCOUNT1", 1)
DoSocialErrands(false, "AS_RK_OBJECTIVE")
DoSocialErrands(false, "AS_RO_OBJECTIVE")
DoSocialErrands(false, "AS_SA2_OBJECTIVE")
DoSocialErrands(false, "AS_SA_OBJECTIVE")
DoSocialErrands(false, "AS_SB_OBJECTIVE")
DoSocialErrands(false, "AS_SC_OBJECTIVE")
DoSocialErrands(false, "AS_SD_OBJECTIVE")
DoSocialErrands(false, "AS_SF_OBJECTIVE")
DoSocialErrands(false, "AS_SH_OBJECTIVE")
DoSocialErrands(false, "AS_SI_OBJECTIVE")
DoSocialErrands(false, "AS_SK_OBJECTIVE")
DoSocialErrands(false, "AS_SR_OBJECTIVE")
DoSocialErrands(false, "AS_TC_OBJECTIVE")
DoSocialErrands(false, "AS_TF_OBJECTIVE")
DoSocialErrands(false, "AS_TH_OBJECTIVE")
DoSocialErrands(false, "AS_TP_OBJECTIVE")
DoSocialErrands(false, "AS_TR_OBJECTIVE")
DoSocialErrands(false, "AS_TW_OBJECTIVE")
DoSocialErrands(true, "AD_FF_OBJCOUNT1", deliveryTotal)
DoSocialErrands(true, "AS_AE_LOST")
DoSocialErrands(true, "AS_AE_OBJECTIVE")
DoSocialErrands(true, "AS_AE_WAIT")
DoSocialErrands(true, "AS_AG_OBJECTIVE")
DoSocialErrands(true, "AS_AG_RETURN")
DoSocialErrands(true, "AS_AT_OBJECTIVE")
DoSocialErrands(true, "AS_BG_ACTION")
DoSocialErrands(true, "AS_BG_OBJECTIVE")
DoSocialErrands(true, "AS_BG_OFFBIKE")
DoSocialErrands(true, "AS_BR_ACTION")
DoSocialErrands(true, "AS_BR_HINT")
DoSocialErrands(true, "AS_BR_OBJECTIVE")
DoSocialErrands(true, "AS_BR_PICKUP")
DoSocialErrands(true, "AS_CF_ACTION")
DoSocialErrands(true, "AS_CF_OBJECTIVE")
DoSocialErrands(true, "AS_CF_OTHER")
DoSocialErrands(true, "AS_CF_RETURN")
DoSocialErrands(true, "AS_CG_OBJCOUNT", dishes)
DoSocialErrands(true, "AS_CG_OBJCOUNT1", dishes)
DoSocialErrands(true, "AS_CH_OBJECTIVE")
DoSocialErrands(true, "AS_CN_OBJCOUNT1", downCount)
DoSocialErrands(true, "AS_CN_OBJECTIVE", cannedGoal)
DoSocialErrands(true, "AS_CN_OBJECTIVE", downCount)
DoSocialErrands(true, "AS_CN_REPEAT")
DoSocialErrands(true, "AS_CP_OBJCOUNT", picsTaken)
DoSocialErrands(true, "AS_CP_RETURN")
DoSocialErrands(true, "AS_CT_OBJCOUNT", 6)
DoSocialErrands(true, "AS_CT_OBJCOUNT", somecrabs)
DoSocialErrands(true, "AS_CT_OBJCOUNT1", somecrabs)
DoSocialErrands(true, "AS_CT_RETURN")
DoSocialErrands(true, "AS_DT_OBJECTIVE")
DoSocialErrands(true, "AS_DT_RETURN")
DoSocialErrands(true, "AS_EB_COUNTER", eggTotal)
DoSocialErrands(true, "AS_EB_OBJ_01")
DoSocialErrands(true, "AS_EB_OBJCOUNT", eggTotal)
DoSocialErrands(true, "AS_ED_OBJECTIVE")
DoSocialErrands(true, "AS_ED_RETURN")
DoSocialErrands(true, "AS_EG_OBJ_01")
DoSocialErrands(true, "AS_EG_OBJCOUNT", eggTotal)
DoSocialErrands(true, "AS_EI_OBJECTIVE")
DoSocialErrands(true, "AS_EM_AMMO")
DoSocialErrands(true, "AS_EM_OBJCOUNT", peopleEgged)
DoSocialErrands(true, "AS_EM_OBJCOUNT1", peopleEgged)
DoSocialErrands(true, "AS_EM_OBJECTIVE")
DoSocialErrands(true, "AS_ENTER_TENS")
DoSocialErrands(true, "AS_ES_BACK")
DoSocialErrands(true, "AS_ES_OBJECTIVE")
DoSocialErrands(true, "AS_F4_AMMO")
DoSocialErrands(true, "AS_F4_OBJECTIVE")
DoSocialErrands(true, "AS_FA_OBJECTIVE")
DoSocialErrands(true, "AS_FC_AMMO")
DoSocialErrands(true, "AS_FC_OBJCOUNT", crackerHit)
DoSocialErrands(true, "AS_FC_OBJCOUNT1", crackerHit)
DoSocialErrands(true, "AS_FF_OBJCOUNT", deliveryTotal)
DoSocialErrands(true, "AS_GE_OBJECTIVE")
DoSocialErrands(true, "AS_HH_OBJECTIVE")
DoSocialErrands(true, "AS_HH_TOFAR")
DoSocialErrands(true, "AS_IP_AMMO")
DoSocialErrands(true, "AS_IP_OBJCOUNT", peopleItched)
DoSocialErrands(true, "AS_IP_OBJCOUNT1", peopleItched)
DoSocialErrands(true, "AS_JM_OBJECTIVE")
DoSocialErrands(true, "AS_KM_AMMO")
DoSocialErrands(true, "AS_KP_OBJECTIVE")
DoSocialErrands(true, "AS_LB_OBJECTIVE")
DoSocialErrands(true, "AS_LB_RETURN")
DoSocialErrands(true, "AS_LC_OBJECTIVE")
DoSocialErrands(true, "AS_LC_RETURN")
DoSocialErrands(true, "AS_LD_ACTION")
DoSocialErrands(true, "AS_LD_OBJECTIVE")
DoSocialErrands(true, "AS_LK_OBJCOUNT1", downCount)
DoSocialErrands(true, "AS_LK_OBJECTIVE", downCount)
DoSocialErrands(true, "AS_LK_OBJECTIVE", lockeredGoal)
DoSocialErrands(true, "AS_LK_REPEAT")
DoSocialErrands(true, "AS_MA_AMMO")
DoSocialErrands(true, "AS_MA_OBJCOUNT", peopleMarbled)
DoSocialErrands(true, "AS_MA_OBJCOUNT1", peopleMarbled)
DoSocialErrands(true, "AS_MM_OBJCOUNT", CurrentPackage)
DoSocialErrands(true, "AS_MM_OBJECTIVE")
DoSocialErrands(true, "AS_MM_RETURN")
DoSocialErrands(true, "AS_PB_ACTION")
DoSocialErrands(true, "AS_PB_OBJCOUNT", downCount)
DoSocialErrands(true, "AS_PB_OBJCOUNT", hitGoal)
DoSocialErrands(true, "AS_PB_OBJCOUNT1", downCount)
DoSocialErrands(true, "AS_PETEY_OBJECTIVE")
DoSocialErrands(true, "AS_PI_OBJCOUNT1", downCount)
DoSocialErrands(true, "AS_PI_OBJECTIVE", downCount)
DoSocialErrands(true, "AS_PI_OBJECTIVE", pickItGoal)
DoSocialErrands(true, "AS_PT_OBJECTIVE")
DoSocialErrands(true, "AS_PT_RETURN")
DoSocialErrands(true, "AS_RA_OBJCOUNT", girlsHit)
DoSocialErrands(true, "AS_RA_OBJCOUNT1", girlsHit)
DoSocialErrands(true, "AS_RK_OBJCOUNT", 5)
DoSocialErrands(true, "AS_RK_OBJCOUNT", downCount)
DoSocialErrands(true, "AS_RK_OBJCOUNT1", downCount)
DoSocialErrands(true, "AS_RO_OBJCOUNT", dead)
DoSocialErrands(true, "AS_RO_OBJECTIVE")
DoSocialErrands(true, "AS_SA2_OBJECTIVE")
DoSocialErrands(true, "AS_SA_OBJECTIVE")
DoSocialErrands(true, "AS_SB_AMMO")
DoSocialErrands(true, "AS_SB_OBJCOUNT", peopleStunk)
DoSocialErrands(true, "AS_SB_OBJCOUNT1", peopleStunk)
DoSocialErrands(true, "AS_SC_OBJCOUNT", damagePoint)
DoSocialErrands(true, "AS_SC_OBJECTIVE")
DoSocialErrands(true, "AS_SD_OBJECTIVE")
DoSocialErrands(true, "AS_SF_ACTION")
DoSocialErrands(true, "AS_SF_OBJECTIVE")
DoSocialErrands(true, "AS_SH_OBJECTIVE")
DoSocialErrands(true, "AS_SI_OBJECTIVE")
DoSocialErrands(true, "AS_SI_RETURN")
DoSocialErrands(true, "AS_SK_OBJECTIVE")
DoSocialErrands(true, "AS_SR_ACTION")
DoSocialErrands(true, "AS_SR_OBJECTIVE")
DoSocialErrands(true, "AS_TC_OBJECTIVE")
DoSocialErrands(true, "AS_TC_RETURN")
DoSocialErrands(true, "AS_TF_OBJCOUNT", firecounter)
DoSocialErrands(true, "AS_TH_LOST")
DoSocialErrands(true, "AS_TH_OBJECTIVE")
DoSocialErrands(true, "AS_TH_WAIT")
DoSocialErrands(true, "AS_TP_OBJCOUNT", downCount)
DoSocialErrands(true, "AS_TP_OBJCOUNT1", downCount)
DoSocialErrands(true, "AS_TR_OBJCOUNT", downCount)
DoSocialErrands(true, "AS_TR_OBJCOUNT1", downCount)
DoSocialErrands(true, "AS_TW_ACTION")
DoSocialErrands(true, "AS_TW_DROP")
DoSocialErrands(true, "AS_TW_GRAVE")
DoSocialErrands(true, "AS_TW_OBJCOUNT", gFlowersLeft)
DoSocialErrands(true, "AS_TW_OBJCOUNT1", gFlowersLeft)
sub esp, 0xC
push esi
mov esi, dword ptr [esp+0x14]
push edi
push 0x0
push 0x0
push esi
call LuaParam::GetBool ; optional
push 0x0
push 0x1
push esi
mov byte ptr [esp+0x28], al
call LuaParam::GetString ; optional
fldz
add esp, 0x14
fstp dword ptr [esp], st
push 0x2
push esi
mov edi, eax
call LuaParam::GetFloat ; optional
fstp dword ptr [esp+0x18], st
push esi
mov byte ptr [esp+0x18], 0x0
call 0x73AEA0
add esp, 0x10
cmp eax, 0x3
jnz 0x7
mov byte ptr [esp+0x8], 0x1
mov esi, dword ptr [0xC67558]
mov eax, dword ptr [esi]
mov edx, dword ptr [eax+0x14]
push 0x1
mov ecx, esi
call 0x5BE010
fld st, dword ptr [esp+0xC]
mov eax, dword ptr [esp+0x8]
push ecx
mov ecx, dword ptr [esp+0x14]
fstp dword ptr [esp], st
push eax
push edi
push ecx
mov ecx, esi
call 0x556C30
pop edi
xor eax, eax
pop esi
add esp, 0xC
ret
DoublePedShadowDistance(false)
DoublePedShadowDistance(true)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetBool
mov byte ptr [0xC93768], al
add esp, 0x8
mov eax, 0x1
ret
CLIENT
Draws the back buffer onto the render target texture. Should only be used in drawing threads.
CLIENT
Draws a rectangle onto the screen. Any un-specified color defaults to 255. If this function is not called from a drawing thread it will be cached and drawn later, see SetDrawLayer for details.
CLIENT
Draws the text using the active text formatting options. Text formatting can be set up using functions that start with SetText. After drawing, the text formatting is reset.
If multiple arguments are given, the string.format function is used to format the string. Returns the width and height of the draw, just like MeasureText would have returned. If this function is not called from a drawing thread it will be cached and drawn later, see SetDrawLayer.
CLIENT
Draws text in a single call rather than using text formatting options. Returns the width and height of the draw. If this function is not called from a drawing thread it will be cached and drawn later, see SetDrawLayer for details.
The optional width argument should be a number if used, and specifies how wide the text can be before it wraps around. If not specified, the text will not wrap.
The required text argument must be a string. The text may contain any combination of inline format specifiers. Any specifiers that require additional arguments go after the text argument in the order they're specified.
The optional duration argument is how long the text should be drawn in milliseconds. Use 0 to only draw for one frame, or use -1 to only draw for one frame but also not use the reservation system (and instead draw it directly). By default, 0 is assumed.
The optional style argument specifies how to style the text and which reservation slot to use. It can be a number in the range [1, 6] or a text formatting table. By default, 1 is assumed.
Only one text can be drawn for any given style argument. Calling the function again with the same style but different text will override the previously reserved text. However this system is not used if duration is -1, the ~xy~ specifier is used, or if called directly from a drawing thread.
The following inline format specifiers can be put in the text argument. Multiple specifiers can be combined using + to be more compact (like ~font+color~ instead of ~font~~color~).
names | description | arguments
~a~, ~alpha~ | set alpha channel | number
~b~, ~bold~ | make bold |
~blue~ | make blue |
~c~, ~cyan~ | make cyan |
~f~, ~font~ | set font | string or font object
~g~, ~green~ | make green |
~height~ | set height directly | number
~i~, ~italic~ | make italic |
~m~, ~magenta~ | make magenta |
~n~, ~normal~ | make not bold or italic |
~o~, ~objective~ | make objective colored |
~r~, ~red~ | make red |
~rgb~, | set color | number, number, number
~s~, ~subtitle~ | make subtitle colored |
~scale~ | set height indirectly | number
~t~, ~texture~ | draw texture here | texture object
~w~, ~white~ | make white |
~xy~ | set position | number, number
~y~, ~yellow~ | make yellow |
CLIENT
Draws a texture onto the screen. If any color channel is not specified, it will default to 255.
If this function is not called from a drawing thread it will be cached and drawn later, see SetDrawLayer for details.
CLIENT
Like DrawTexture, but the position is treated as the center of the draw rather than the top level corner. The texture can also be rotated.
If this function is not called from a drawing thread it will be cached and drawn later, see SetDrawLayer for details.
CLIENT
Like DrawTexture, but onto a render target texture rather than onto the main back buffer.
If this function is not called from a drawing thread it will be cached and drawn later, see SetDrawLayer for details.
-- never used
call 0x49A650
call 0x49A650
xor eax, eax
ret
CLIENT
Dumps a texture to a PNG file. An optional compression level may be passed in the range [0, 9]. Will fail if CanWriteFiles wouldn't have returned true. The optional alpha argument can be set to true to set every pixel to have a full alpha channel before dumping. If you want the default compression level but also want to use the alpha argument, use -1 for compression. Returns a status (boolean) and an error message if the status is false.
CLIENT
Dumps a texture to a string. An optional compression level may be passed in the range [0, 9]. Will fail if CanWriteFiles wouldn't have returned true. The optional alpha argument can be set to true to set every pixel to have a full alpha channel before dumping. If you want the default compression level but also want to use the alpha argument, use -1 for compression. Returns the string if successful, otherwise nil and an error message is returned.
E3DodgeballHackCleanObjects()
call 0x444BB0
call 0x4D4A90
xor eax, eax
ret
EffectAddLeavesInArea(POINTLIST._LEAVESBUSINESS, 0)
EffectAddLeavesInArea(POINTLIST._LEAVESMAIN, 0)
EffectAddLeavesInArea(POINTLIST._LEAVESRICHAREA, 0)
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x10]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetInt
add esp, 0x10
push edi
mov ecx, 0xBC5E7C
mov ebp, eax
call 0x6D6450
mov ebx, eax
mov ecx, ebx
call 0x6D59B0
mov edi, eax
test edi, edi
jz 0x24
lea esp, ptr [esp]
mov ecx, ebx
call 0x6D59F0
push ebp
push edi
mov ecx, 0xBD5C90
mov esi, eax
call 0x439F00
test esi, esi
mov edi, esi
jnz 0xFFFFFFE7
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
EffectAddWindowGlowInArea(13, -613.926, -48.108, 67.704, -614.34, -48.108, 67.704, -614.34, -48.463, 67.704, -613.926, -48.463, 67.704, 6, 7.75, 0, false, false, 1)
EffectAddWindowGlowInArea(13, -613.926, -55.798, 67.704, -614.34, -55.798, 67.704, -614.34, -56.153, 67.704, -613.926, -56.153, 67.704, 6, 7.75, 0, false, false, 1)
EffectAddWindowGlowInArea(13, -613.926, -63.132, 67.704, -614.34, -63.132, 67.704, -614.34, -63.487, 67.704, -613.926, -63.487, 67.704, 6, 7.75, 0, false, false, 1)
EffectAddWindowGlowInArea(13, -613.926, -70.843, 67.704, -614.34, -70.843, 67.704, -614.34, -71.199, 67.704, -613.926, -71.199, 67.704, 6, 7.75, 0, false, false, 1)
EffectAddWindowGlowInArea(13, -618.965, -70.843, 67.704, -619.379, -70.843, 67.704, -619.379, -71.199, 67.704, -618.965, -71.199, 67.704, 6, 7.75, 0, false, false, 1)
EffectAddWindowGlowInArea(13, -618.969, -55.798, 67.704, -619.383, -55.798, 67.704, -619.383, -56.153, 67.704, -618.969, -56.153, 67.704, 6, 7.75, 0, false, false, 1)
EffectAddWindowGlowInArea(13, -618.972, -48.108, 67.704, -619.387, -48.108, 67.704, -619.387, -48.463, 67.704, -618.972, -48.463, 67.704, 6, 7.75, 0, false, false, 1)
EffectAddWindowGlowInArea(13, -618.976, -63.132, 67.704, -619.39, -63.132, 67.704, -619.39, -63.487, 67.704, -618.976, -63.487, 67.704, 6, 7.75, 0, false, false, 1)
EffectAddWindowGlowInArea(13, -624.113, -48.108, 67.704, -624.528, -48.108, 67.704, -624.528, -48.463, 67.704, -624.113, -48.463, 67.704, 6, 7.75, 0, false, false, 1)
EffectAddWindowGlowInArea(13, -624.114, -70.843, 67.704, -624.528, -70.843, 67.704, -624.528, -71.199, 67.704, -624.114, -71.199, 67.704, 6, 7.75, 0, false, false, 1)
EffectAddWindowGlowInArea(13, -624.119, -55.798, 67.704, -624.533, -55.798, 67.704, -624.533, -56.153, 67.704, -624.119, -56.153, 67.704, 6, 7.75, 0, false, false, 1)
EffectAddWindowGlowInArea(13, -624.127, -63.132, 67.704, -624.541, -63.132, 67.704, -624.541, -63.487, 67.704, -624.127, -63.487, 67.704, 6, 7.75, 0, false, false, 1)
EffectAddWindowGlowInArea(13, -637.682, -48.748, 68.48, -637.682, -47.597, 68.48, -637.682, -47.597, 67.259, -637.682, -48.748, 67.259, 12, 2.25, 35.65, true, true, 0)
EffectAddWindowGlowInArea(13, -637.682, -53.24, 68.48, -637.682, -52.089, 68.48, -637.682, -52.089, 67.259, -637.682, -53.24, 67.259, 12, 2.25, 35.65, true, true, 0)
EffectAddWindowGlowInArea(13, -637.682, -57.829, 68.48, -637.682, -56.678, 68.48, -637.682, -56.678, 67.259, -637.682, -57.829, 67.259, 12, 2.25, 35.65, true, true, 0)
EffectAddWindowGlowInArea(13, -637.682, -62.582, 68.48, -637.682, -61.43, 68.48, -637.682, -61.43, 67.259, -637.682, -62.582, 67.259, 12, 2.25, 35.65, true, true, 0)
EffectAddWindowGlowInArea(13, -637.682, -67.074, 68.48, -637.682, -65.923, 68.48, -637.682, -65.923, 67.259, -637.682, -67.074, 67.259, 12, 2.25, 35.65, true, true, 0)
EffectAddWindowGlowInArea(13, -637.682, -71.662, 68.48, -637.682, -70.511, 68.48, -637.682, -70.511, 67.259, -637.682, -71.662, 67.259, 12, 2.25, 35.65, true, true, 0)
EffectAddWindowGlowInArea(13, -654.308, -53.669, 68.235, -654.308, -54.82, 68.235, -654.308, -54.82, 67.014, -654.308, -53.669, 67.014, 0, 2, 45.65, true, true, 0)
EffectAddWindowGlowInArea(13, -654.308, -57.387, 68.235, -654.308, -58.538, 68.235, -654.308, -58.538, 67.014, -654.308, -57.387, 67.014, 0, 2, 45.65, true, true, 0)
EffectAddWindowGlowInArea(13, -654.308, -60.651, 68.235, -654.308, -61.803, 68.235, -654.308, -61.803, 67.014, -654.308, -60.651, 67.014, 0, 2, 45.65, true, true, 0)
EffectAddWindowGlowInArea(13, -654.308, -64.421, 68.235, -654.308, -65.572, 68.235, -654.308, -65.572, 67.014, -654.308, -64.421, 67.014, 0, 2, 45.65, true, true, 0)
EffectAddWindowGlowInArea(13, -654.383, -57.387, 62.517, -654.383, -58.538, 62.517, -654.383, -58.538, 61.296, -654.383, -57.387, 61.296, 0, 2, 45.65, true, true, 0)
EffectAddWindowGlowInArea(13, -654.383, -60.651, 62.517, -654.383, -61.802, 62.517, -654.383, -61.802, 61.296, -654.383, -60.651, 61.296, 0, 2, 45.65, true, true, 0)
EffectAddWindowGlowInArea(13, -683.994, -46.497, 65.903, -683.994, -44.531, 65.903, -683.994, -44.531, 62.27, -683.994, -46.497, 62.27, 10, 2.5, 45.65, true, true, 0)
EffectAddWindowGlowInArea(13, -683.994, -53.399, 65.903, -683.994, -51.433, 65.903, -683.994, -51.433, 62.27, -683.994, -53.399, 62.27, 10, 2.5, 45.65, true, true, 0)
EffectAddWindowGlowInArea(13, -683.994, -60.606, 65.903, -683.994, -58.64, 65.903, -683.994, -58.64, 62.27, -683.994, -60.606, 62.27, 10, 2.5, 45.65, true, true, 0)
EffectAddWindowGlowInArea(13, -683.994, -67.865, 65.903, -683.994, -65.899, 65.903, -683.994, -65.899, 62.27, -683.994, -67.865, 62.27, 10, 2.5, 45.65, true, true, 0)
EffectAddWindowGlowInArea(13, -683.994, -74.739, 65.903, -683.994, -72.773, 65.903, -683.994, -72.773, 62.27, -683.994, -74.739, 62.27, 10, 2.5, 45.65, true, true, 0)
EffectAddWindowGlowInArea(14, -491.555, 307.391, 34.326, -492.937, 307.391, 34.326, -492.937, 307.391, 32.364, -491.555, 307.391, 32.364, 4, 3, 25.65, true, true, 0)
EffectAddWindowGlowInArea(14, -495.967, 307.373, 34.326, -497.349, 307.373, 34.326, -497.349, 307.373, 32.364, -495.967, 307.373, 32.364, 4, 3, 25.65, true, true, 0)
EffectAddWindowGlowInArea(14, -497.422, 330.525, 34.356, -496.012, 330.525, 34.356, -496.012, 330.525, 32.355, -497.422, 330.525, 32.355, 4, 2, 45.65, true, true, 0)
EffectAddWindowGlowInArea(14, -503.439, 330.525, 34.356, -502.044, 330.525, 34.356, -502.044, 330.525, 32.355, -503.439, 330.525, 32.355, 4, 2, 45.65, true, true, 0)
EffectAddWindowGlowInArea(14, -508.673, 330.525, 34.356, -507.278, 330.525, 34.356, -507.278, 330.525, 32.355, -508.673, 330.525, 32.355, 4, 2, 45.65, true, true, 0)
EffectAddWindowGlowInArea(15, -554.97, 317.06, 1.27, -554.97, 315.75, 1.27, -554.97, 315.75, -0.91, -554.97, 317.06, -0.91, 3, 1.5, 60.65, true, true, 0)
EffectAddWindowGlowInArea(15, -554.97, 318.37, 1.27, -554.97, 317.12, 1.27, -554.97, 317.12, -0.91, -554.97, 318.37, -0.91, 3, 1.5, 60.65, true, true, 0)
EffectAddWindowGlowInArea(15, -554.97, 319.7, 1.27, -554.97, 318.44, 1.27, -554.97, 318.44, -0.91, -554.97, 319.7, -0.91, 3, 1.5, 60.65, true, true, 0)
EffectAddWindowGlowInArea(15, -554.97, 326.09, 1.27, -554.97, 324.79, 1.27, -554.97, 324.79, -0.91, -554.97, 326.09, -0.91, 3, 1.5, 60.65, true, true, 0)
EffectAddWindowGlowInArea(15, -554.97, 327.48, 1.27, -554.97, 326.14, 1.27, -554.97, 326.14, -0.91, -554.97, 327.48, -0.91, 3, 1.5, 60.65, true, true, 0)
EffectAddWindowGlowInArea(15, -554.97, 328.73, 1.27, -554.97, 327.54, 1.27, -554.97, 327.54, -0.91, -554.97, 328.73, -0.91, 3, 1.5, 60.65, true, true, 0)
EffectAddWindowGlowInArea(17, -526.281, 389.28, 17.715, -525.054, 389.28, 17.715, -525.054, 389.28, 15.458, -526.281, 389.28, 15.458, 3, 2, 65.65, true, true, 0)
EffectAddWindowGlowInArea(17, -527.413, 391.748, 17.715, -527.413, 390.521, 17.715, -527.413, 390.521, 15.458, -527.413, 391.748, 15.458, 3, 2, 65.65, true, true, 0)
EffectAddWindowGlowInArea(17, -527.413, 395.26, 17.715, -527.413, 394.032, 17.715, -527.413, 394.032, 15.458, -527.413, 395.26, 15.458, 3, 2, 65.65, true, true, 0)
EffectAddWindowGlowInArea(18, -414.636, 367.447, 86.509, -414.636, 365.413, 86.509, -414.636, 365.413, 85.253, -414.636, 367.447, 85.253, 4, 2, 65.65, true, true, 0)
EffectAddWindowGlowInArea(18, -414.636, 369.77, 86.509, -414.636, 367.683, 86.509, -414.636, 367.683, 85.253, -414.636, 369.77, 85.253, 4, 2, 65.65, true, true, 0)
EffectAddWindowGlowInArea(18, -414.636, 376.609, 86.509, -414.636, 374.548, 86.509, -414.636, 374.548, 85.253, -414.636, 376.609, 85.253, 4, 2, 65.65, true, true, 0)
EffectAddWindowGlowInArea(18, -414.636, 378.864, 86.509, -414.636, 376.765, 86.509, -414.636, 376.765, 85.253, -414.636, 378.864, 85.253, 4, 2, 65.65, true, true, 0)
EffectAddWindowGlowInArea(18, -418.488, 365.631, 84.569, -418.185, 365.729, 84.569, -418.256, 365.949, 84.569, -418.559, 365.851, 84.569, 3.5, 12, 0, false, false, 1)
EffectAddWindowGlowInArea(18, -418.488, 377.566, 84.569, -418.185, 377.665, 84.569, -418.256, 377.885, 84.569, -418.559, 377.787, 84.569, 3.5, 12, 0, false, false, 1)
EffectAddWindowGlowInArea(18, -425.352, 377.621, 84.569, -425.033, 377.621, 84.569, -425.033, 377.852, 84.569, -425.352, 377.852, 84.569, 3.5, 12, 0, false, false, 1)
EffectAddWindowGlowInArea(18, -425.691, 365.583, 84.569, -425.504, 365.84, 84.569, -425.691, 365.976, 84.569, -425.879, 365.719, 84.569, 3.5, 12, 0, false, false, 1)
EffectAddWindowGlowInArea(18, -425.751, 371.977, 84.569, -425.448, 372.076, 84.569, -425.519, 372.296, 84.569, -425.822, 372.197, 84.569, 3.5, 12, 0, false, false, 1)
EffectAddWindowGlowInArea(18, -429.159, 365.413, 86.507, -429.159, 367.447, 86.507, -429.159, 367.447, 85.249, -429.159, 365.413, 85.249, 4, 2, 65.65, true, true, 0)
EffectAddWindowGlowInArea(18, -429.159, 367.683, 86.507, -429.159, 369.77, 86.507, -429.159, 369.77, 85.249, -429.159, 367.683, 85.249, 4, 2, 65.65, true, true, 0)
EffectAddWindowGlowInArea(18, -429.159, 374.548, 86.507, -429.159, 376.609, 86.507, -429.159, 376.609, 85.249, -429.159, 374.548, 85.249, 4, 2, 65.65, true, true, 0)
EffectAddWindowGlowInArea(18, -429.159, 376.765, 86.507, -429.159, 378.864, 86.507, -429.159, 378.864, 85.249, -429.159, 376.765, 85.249, 4, 2, 65.65, true, true, 0)
EffectAddWindowGlowInArea(2, -581.768, -308.137, 9.44, -581.768, -309.098, 9.44, -581.768, -309.098, 6.57, -581.768, -308.137, 6.57, 0, 2, 60.65, true, true, 0)
EffectAddWindowGlowInArea(2, -581.77, -319.198, 9.44, -581.77, -320.159, 9.44, -581.77, -320.159, 6.57, -581.77, -319.198, 6.57, 0, 2, 60.65, true, true, 0)
EffectAddWindowGlowInArea(2, -582.468, -306.961, 3.479, -582.468, -307.919, 3.479, -582.468, -307.919, 1.073, -582.468, -306.961, 1.073, 0, 2, 60.65, true, true, 0)
EffectAddWindowGlowInArea(2, -582.469, -319.343, 3.479, -582.469, -320.301, 3.479, -582.469, -320.301, 1.073, -582.469, -319.343, 1.073, 0, 2, 60.65, true, true, 0)
EffectAddWindowGlowInArea(2, -584.458, -313.046, 10.453, -585.451, -313.046, 10.453, -585.451, -313.269, 10.453, -584.458, -313.269, 10.453, 2.75, 1.75, 0, false, false, 1)
EffectAddWindowGlowInArea(2, -585.416, -312.458, 4.959, -586.408, -312.458, 4.959, -586.408, -312.681, 4.959, -585.416, -312.681, 4.959, 2.75, 1.75, 0, false, false, 1)
EffectAddWindowGlowInArea(2, -588.723, -308.359, 10.453, -588.723, -309.351, 10.453, -588.5, -309.351, 10.453, -588.5, -308.359, 10.453, 2.75, 1.75, 0, false, false, 1)
EffectAddWindowGlowInArea(2, -589.921, -319.398, 4.959, -589.921, -320.39, 4.959, -589.697, -320.39, 4.959, -589.697, -319.398, 4.959, 2.75, 1.75, 0, false, false, 1)
EffectAddWindowGlowInArea(2, -591.324, -304.412, 4.738, -592.242, -304.034, 4.738, -592.323, -304.232, 4.799, -591.406, -304.61, 4.799, 2.75, 1.75, 0, false, false, 1)
EffectAddWindowGlowInArea(2, -591.565, -301.243, 10.453, -592.558, -301.243, 10.453, -592.558, -301.467, 10.453, -591.565, -301.467, 10.453, 2.75, 1.75, 0, false, false, 1)
EffectAddWindowGlowInArea(2, -593.801, -319.206, 10.453, -593.801, -320.198, 10.453, -593.578, -320.198, 10.453, -593.578, -319.206, 10.453, 2.75, 1.75, 0, false, false, 1)
EffectAddWindowGlowInArea(2, -597.908, -328.005, 4.959, -598.9, -328.005, 4.959, -598.9, -328.228, 4.959, -597.908, -328.228, 4.959, 2.75, 1.75, 0, false, false, 1)
EffectAddWindowGlowInArea(2, -598.874, -319.398, 4.959, -598.874, -320.39, 4.959, -598.651, -320.39, 4.959, -598.651, -319.398, 4.959, 2.75, 1.75, 0, false, false, 1)
EffectAddWindowGlowInArea(2, -599.906, -294.859, 4.959, -599.906, -295.851, 4.959, -599.683, -295.851, 4.959, -599.683, -294.859, 4.959, 2.75, 1.75, 0, false, false, 1)
EffectAddWindowGlowInArea(2, -601.515, -294.345, 10.453, -601.515, -295.337, 10.453, -601.292, -295.337, 10.453, -601.292, -294.345, 10.453, 2.75, 1.75, 0, false, false, 1)
EffectAddWindowGlowInArea(2, -602.32, -319.206, 10.453, -602.32, -320.198, 10.453, -602.097, -320.198, 10.453, -602.097, -319.206, 10.453, 2.75, 1.75, 0, false, false, 1)
EffectAddWindowGlowInArea(2, -605.054, -294.859, 4.959, -605.054, -295.851, 4.959, -604.831, -295.851, 4.959, -604.831, -294.859, 4.959, 2.75, 1.75, 0, false, false, 1)
EffectAddWindowGlowInArea(2, -606.894, -319.398, 4.959, -606.894, -320.39, 4.959, -606.671, -320.39, 4.959, -606.671, -319.398, 4.959, 2.75, 1.75, 0, false, false, 1)
EffectAddWindowGlowInArea(2, -607.378, -303.931, 4.959, -606.386, -303.931, 4.959, -606.386, -303.708, 4.959, -607.378, -303.708, 4.959, 2.75, 1.75, 0, false, false, 1)
EffectAddWindowGlowInArea(2, -607.378, -310.809, 4.959, -606.386, -310.809, 4.959, -606.386, -310.586, 4.959, -607.378, -310.586, 4.959, 2.75, 1.75, 0, false, false, 1)
EffectAddWindowGlowInArea(2, -607.49, -301.837, 10.453, -606.497, -301.837, 10.453, -606.497, -301.614, 10.453, -607.49, -301.614, 10.453, 2.75, 1.75, 0, false, false, 1)
EffectAddWindowGlowInArea(2, -607.49, -310.931, 10.453, -606.497, -310.931, 10.453, -606.497, -310.708, 10.453, -607.49, -310.708, 10.453, 2.75, 1.75, 0, false, false, 1)
EffectAddWindowGlowInArea(2, -613.329, -301.229, 10.453, -613.329, -302.221, 10.453, -613.105, -302.221, 10.453, -613.105, -301.229, 10.453, 2.75, 1.75, 0, false, false, 1)
EffectAddWindowGlowInArea(2, -613.594, -319.398, 4.959, -613.594, -320.39, 4.959, -613.37, -320.39, 4.959, -613.37, -319.398, 4.959, 2.75, 1.75, 0, false, false, 1)
EffectAddWindowGlowInArea(2, -617.62, -324.74, 3.78, -618.59, -324.74, 3.78, -618.59, -324.74, 0.91, -617.62, -324.74, 0.91, 3, 2, 45.65, true, true, 0)
EffectAddWindowGlowInArea(2, -617.63, -324.74, 8.82, -618.59, -324.74, 8.82, -618.59, -324.74, 6.42, -617.63, -324.74, 6.42, 3, 2, 45.65, true, true, 0)
EffectAddWindowGlowInArea(2, -617.66, -324.74, 14.32, -618.61, -324.74, 14.32, -618.61, -324.74, 11.92, -617.66, -324.74, 11.92, 3, 2, 45.65, true, true, 0)
EffectAddWindowGlowInArea(2, -622.153, -270.662, 3.509, -622.153, -271.734, 3.509, -622.153, -271.734, 0.982, -622.153, -270.662, 0.982, 6, 2, 60.65, true, true, 0)
EffectAddWindowGlowInArea(2, -622.153, -272.784, 3.509, -622.153, -273.856, 3.509, -622.153, -273.856, 0.982, -622.153, -272.784, 0.982, 6, 2, 60.65, true, true, 0)
EffectAddWindowGlowInArea(2, -622.153, -282.197, 3.509, -622.153, -283.27, 3.509, -622.153, -283.27, 0.982, -622.153, -282.197, 0.982, 6, 2, 60.65, true, true, 0)
EffectAddWindowGlowInArea(2, -622.153, -284.191, 3.509, -622.153, -285.263, 3.509, -622.153, -285.263, 0.982, -622.153, -284.191, 0.982, 6, 2, 60.65, true, true, 0)
EffectAddWindowGlowInArea(2, -623.3, -293.01, 17.59, -621.31, -293.01, 17.59, -621.31, -293.01, 12.25, -623.3, -293.01, 12.25, 5, 0.75, 60.65, true, true, 0)
EffectAddWindowGlowInArea(2, -624.97, -324.7, 16.04, -627.06, -324.7, 16.04, -627.09, -324.7, 8.25, -624.97, -324.7, 8.25, 20, 2, 45.65, true, true, 0)
EffectAddWindowGlowInArea(2, -626.46, -293.01, 17.59, -624.48, -293.01, 17.59, -624.48, -293.01, 12.25, -626.46, -293.01, 12.25, 5, 0.75, 60.65, true, true, 0)
EffectAddWindowGlowInArea(2, -627.094, -328.332, 4.346, -627.905, -328.332, 4.346, -627.905, -328.332, 3.169, -627.094, -328.332, 3.169, 6, 2, 60.65, true, true, 0)
EffectAddWindowGlowInArea(2, -627.59, -324.7, 17.18, -629.69, -324.7, 17.18, -629.69, -324.7, 8.25, -627.59, -324.7, 8.25, 20, 2, 45.65, true, true, 0)
EffectAddWindowGlowInArea(2, -628.087, -328.332, 5.371, -629.187, -328.332, 5.371, -629.187, -328.332, 3.169, -628.087, -328.332, 3.169, 6, 2, 60.65, true, true, 0)
EffectAddWindowGlowInArea(2, -629.389, -328.332, 4.347, -630.2, -328.332, 4.347, -630.2, -328.332, 3.169, -629.389, -328.332, 3.169, 6, 2, 60.65, true, true, 0)
EffectAddWindowGlowInArea(2, -629.63, -293.01, 17.59, -627.65, -293.01, 17.59, -627.65, -293.01, 12.25, -629.63, -293.01, 12.25, 5, 0.75, 60.65, true, true, 0)
EffectAddWindowGlowInArea(2, -630.22, -324.7, 16.04, -632.32, -324.7, 16.04, -632.31, -324.7, 8.25, -630.2, -324.7, 8.25, 20, 2, 45.65, true, true, 0)
EffectAddWindowGlowInArea(2, -632.8, -293.01, 17.59, -630.82, -293.01, 17.59, -630.82, -293.01, 12.25, -632.8, -293.01, 12.25, 5, 0.75, 60.65, true, true, 0)
EffectAddWindowGlowInArea(2, -635.97, -293.01, 17.59, -633.99, -293.01, 17.59, -633.99, -293.01, 12.25, -635.97, -293.01, 12.25, 5, 0.75, 60.65, true, true, 0)
EffectAddWindowGlowInArea(2, -638.7, -324.74, 3.78, -639.66, -324.74, 3.78, -639.66, -324.74, 0.91, -638.7, -324.74, 0.91, 3, 2, 45.65, true, true, 0)
EffectAddWindowGlowInArea(2, -638.7, -324.74, 8.82, -639.66, -324.74, 8.82, -639.66, -324.74, 6.42, -638.7, -324.74, 6.42, 3, 2, 45.65, true, true, 0)
EffectAddWindowGlowInArea(2, -638.73, -324.74, 14.32, -639.68, -324.74, 14.32, -639.68, -324.74, 11.92, -638.73, -324.74, 11.92, 3, 2, 45.65, true, true, 0)
EffectAddWindowGlowInArea(2, -643.475, -320.39, 4.959, -643.475, -319.398, 4.959, -643.698, -319.398, 4.959, -643.698, -320.39, 4.959, 2.75, 1.75, 0, false, false, 1)
EffectAddWindowGlowInArea(2, -643.808, -301.228, 10.429, -643.808, -302.22, 10.429, -643.585, -302.22, 10.429, -643.585, -301.228, 10.429, 2.75, 1.75, 0, false, false, 1)
EffectAddWindowGlowInArea(2, -650.717, -300.368, 4.959, -649.725, -300.368, 4.959, -649.725, -300.145, 4.959, -650.717, -300.145, 4.959, 2.75, 1.75, 0, false, false, 1)
EffectAddWindowGlowInArea(2, -650.717, -307.917, 4.959, -649.725, -307.917, 4.959, -649.725, -307.693, 4.959, -650.717, -307.693, 4.959, 2.75, 1.75, 0, false, false, 1)
EffectAddWindowGlowInArea(2, -650.717, -315.001, 4.959, -649.725, -315.001, 4.959, -649.725, -314.777, 4.959, -650.717, -314.777, 4.959, 2.75, 1.75, 0, false, false, 1)
EffectAddWindowGlowInArea(2, -650.872, -301.76, 10.453, -649.88, -301.76, 10.453, -649.88, -301.537, 10.453, -650.872, -301.537, 10.453, 2.75, 1.75, 0, false, false, 1)
EffectAddWindowGlowInArea(2, -650.872, -313.503, 10.453, -649.88, -313.503, 10.453, -649.88, -313.279, 10.453, -650.872, -313.279, 10.453, 2.75, 1.75, 0, false, false, 1)
EffectAddWindowGlowInArea(2, -655.147, -320.39, 4.959, -655.147, -319.398, 4.959, -655.37, -319.398, 4.959, -655.37, -320.39, 4.959, 2.75, 1.75, 0, false, false, 1)
EffectAddWindowGlowInArea(2, -659.602, -308.155, 4.959, -659.602, -307.163, 4.959, -659.825, -307.163, 4.959, -659.825, -308.155, 4.959, 2.75, 1.75, 0, false, false, 1)
EffectAddWindowGlowInArea(2, -659.654, -296.071, 4.959, -659.654, -295.079, 4.959, -659.877, -295.079, 4.959, -659.877, -296.071, 4.959, 2.75, 1.75, 0, false, false, 1)
EffectAddWindowGlowInArea(2, -659.877, -295.079, 10.453, -659.877, -296.071, 10.453, -659.654, -296.071, 10.453, -659.654, -295.079, 10.453, 2.75, 1.75, 0, false, false, 1)
EffectAddWindowGlowInArea(2, -659.877, -307.075, 10.453, -659.877, -308.068, 10.453, -659.654, -308.068, 10.453, -659.654, -307.075, 10.453, 2.75, 1.75, 0, false, false, 1)
EffectAddWindowGlowInArea(2, -659.877, -319.167, 10.453, -659.877, -320.16, 10.453, -659.654, -320.16, 10.453, -659.654, -319.167, 10.453, 2.75, 1.75, 0, false, false, 1)
EffectAddWindowGlowInArea(2, -661.077, -320.39, 4.959, -661.077, -319.398, 4.959, -661.3, -319.398, 4.959, -661.3, -320.39, 4.959, 2.75, 1.75, 0, false, false, 1)
EffectAddWindowGlowInArea(2, -671.236, -299.917, 4.959, -670.244, -299.917, 4.959, -670.244, -299.694, 4.959, -671.236, -299.694, 4.959, 2.75, 1.75, 0, false, false, 1)
EffectAddWindowGlowInArea(2, -671.236, -307.77, 4.959, -670.244, -307.77, 4.959, -670.244, -307.547, 4.959, -671.236, -307.547, 4.959, 2.75, 1.75, 0, false, false, 1)
EffectAddWindowGlowInArea(2, -671.236, -316.112, 4.959, -670.244, -316.112, 4.959, -670.244, -315.889, 4.959, -671.236, -315.889, 4.959, 2.75, 1.75, 0, false, false, 1)
EffectAddWindowGlowInArea(2, -671.273, -299.73, 10.453, -670.281, -299.73, 10.453, -670.281, -299.506, 10.453, -671.273, -299.506, 10.453, 2.75, 1.75, 0, false, false, 1)
EffectAddWindowGlowInArea(2, -671.273, -307.683, 10.453, -670.281, -307.683, 10.453, -670.281, -307.46, 10.453, -671.273, -307.46, 10.453, 2.75, 1.75, 0, false, false, 1)
EffectAddWindowGlowInArea(2, -671.273, -315.617, 10.453, -670.281, -315.617, 10.453, -670.281, -315.394, 10.453, -671.273, -315.394, 10.453, 2.75, 1.75, 0, false, false, 1)
EffectAddWindowGlowInArea(2, -674.738, -306.265, 3.49, -674.738, -305.307, 3.49, -674.738, -305.307, 1.084, -674.738, -306.265, 1.084, 0, 2, 60.65, true, true, 0)
EffectAddWindowGlowInArea(2, -674.806, -306.263, 9.445, -674.806, -305.302, 9.445, -674.806, -305.302, 6.57, -674.806, -306.263, 6.57, 0, 2, 60.65, true, true, 0)
EffectAddWindowGlowInArea(2, -674.81, -310.039, 9.445, -674.81, -309.078, 9.445, -674.81, -309.078, 6.57, -674.81, -310.039, 6.57, 0, 2, 60.65, true, true, 0)
EffectAddWindowGlowInArea(2, -674.814, -310.079, 3.49, -674.814, -309.122, 3.49, -674.814, -309.122, 1.084, -674.814, -310.079, 1.084, 0, 2, 60.65, true, true, 0)
EffectAddWindowGlowInArea(23, -642.66, 220.35, 2.41, -644.06, 220.35, 2.41, -644.06, 220.35, 0.43, -642.66, 220.35, 0.43, 3.75, 2, 45.65, true, true, 0)
EffectAddWindowGlowInArea(23, -645.8, 220.35, 2.41, -647.19, 220.35, 2.41, -647.19, 220.35, 0.43, -645.8, 220.35, 0.43, 3.75, 2, 45.65, true, true, 0)
EffectAddWindowGlowInArea(23, -651.51, 220.35, 2.41, -652.9, 220.35, 2.41, -652.9, 220.35, 0.43, -651.51, 220.35, 0.43, 3.75, 2, 45.65, true, true, 0)
EffectAddWindowGlowInArea(23, -654.64, 220.35, 2.41, -656.03, 220.35, 2.41, -656.03, 220.35, 0.43, -654.64, 220.35, 0.43, 3.75, 2, 45.65, true, true, 0)
EffectAddWindowGlowInArea(26, -572.021, 402.293, 3.325, -572.021, 401.762, 3.325, -571.636, 401.762, 3.325, -571.636, 402.293, 3.325, 2, 4.25, 0, false, false, 1)
EffectAddWindowGlowInArea(26, -572.094, 397.214, 3.325, -572.094, 396.828, 3.325, -571.563, 396.828, 3.325, -571.563, 397.214, 3.325, 2, 4.25, 0, false, false, 1)
EffectAddWindowGlowInArea(26, -576.018, 402.22, 3.325, -576.018, 401.834, 3.325, -575.487, 401.834, 3.325, -575.487, 402.22, 3.325, 2, 4.25, 0, false, false, 1)
EffectAddWindowGlowInArea(26, -576.028, 397.242, 3.325, -576.008, 396.856, 3.325, -575.477, 396.884, 3.325, -575.498, 397.269, 3.325, 2, 4.25, 0, false, false, 1)
EffectAddWindowGlowInArea(27, -699.447, 377.927, 300.45, -698.813, 377.927, 300.45, -698.813, 378.387, 300.45, -699.447, 378.387, 300.45, 4, 7, 0, false, false, 1)
EffectAddWindowGlowInArea(27, -699.447, 383.324, 301.843, -698.813, 383.324, 301.843, -698.813, 383.785, 301.843, -699.447, 383.785, 301.843, 4, 7, 0, false, false, 1)
EffectAddWindowGlowInArea(27, -699.447, 389.286, 302.835, -698.813, 389.286, 302.835, -698.813, 389.746, 302.835, -699.447, 389.746, 302.835, 4, 7, 0, false, false, 1)
EffectAddWindowGlowInArea(27, -701.141, 367.219, 297.691, -703.506, 367.219, 297.691, -703.506, 367.219, 295.755, -701.141, 367.219, 295.755, 5.75, 1.3, 60.65, true, true, 0)
EffectAddWindowGlowInArea(27, -701.141, 367.219, 301.971, -703.506, 367.219, 301.971, -703.506, 367.219, 299.951, -701.141, 367.219, 299.951, 6.75, 1.3, 60.65, true, true, 0)
EffectAddWindowGlowInArea(27, -703.572, 367.219, 297.691, -705.925, 367.219, 297.691, -705.925, 367.219, 295.755, -703.572, 367.219, 295.755, 5.75, 1.3, 60.65, true, true, 0)
EffectAddWindowGlowInArea(27, -703.572, 367.219, 301.971, -705.925, 367.219, 301.971, -705.925, 367.219, 299.951, -703.572, 367.219, 299.951, 6.75, 1.3, 60.65, true, true, 0)
EffectAddWindowGlowInArea(27, -705.987, 367.219, 297.691, -708.38, 367.219, 297.691, -708.381, 367.219, 295.755, -705.987, 367.219, 295.755, 5.75, 1.3, 60.65, true, true, 0)
EffectAddWindowGlowInArea(27, -705.987, 367.219, 301.971, -708.38, 367.219, 301.971, -708.381, 367.219, 299.951, -705.987, 367.219, 299.951, 6.75, 1.3, 60.65, true, true, 0)
EffectAddWindowGlowInArea(27, -707.228, 389.286, 302.835, -706.595, 389.286, 302.835, -706.595, 389.746, 302.835, -707.228, 389.746, 302.835, 4, 7, 0, false, false, 1)
EffectAddWindowGlowInArea(27, -709.235, 377.5, 300.106, -708.769, 377.5, 300.106, -708.769, 377.839, 300.106, -709.235, 377.839, 300.106, 4.75, 7.5, 0, false, false, 1)
EffectAddWindowGlowInArea(27, -709.828, 367.219, 297.691, -712.2, 367.219, 297.691, -712.2, 367.219, 295.755, -709.828, 367.219, 295.755, 5.75, 1.3, 60.65, true, true, 0)
EffectAddWindowGlowInArea(27, -709.828, 367.219, 301.971, -712.2, 367.219, 301.971, -712.2, 367.219, 299.951, -709.828, 367.219, 299.951, 6.75, 1.3, 60.65, true, true, 0)
EffectAddWindowGlowInArea(27, -712.229, 374.643, 300.106, -711.681, 374.643, 300.106, -711.785, 374.965, 300.106, -712.124, 374.965, 300.106, 4.75, 7.5, 0, false, false, 1)
EffectAddWindowGlowInArea(27, -712.229, 380.433, 300.106, -711.681, 380.433, 300.106, -711.785, 380.755, 300.106, -712.229, 380.611, 300.106, 4.75, 7.5, 0, false, false, 1)
EffectAddWindowGlowInArea(27, -712.262, 367.219, 297.691, -714.61, 367.219, 297.691, -714.61, 367.219, 295.755, -712.262, 367.219, 295.755, 5.75, 1.3, 60.65, true, true, 0)
EffectAddWindowGlowInArea(27, -712.262, 367.219, 301.971, -714.61, 367.219, 301.971, -714.61, 367.219, 299.951, -712.262, 367.219, 299.951, 6.75, 1.3, 60.65, true, true, 0)
EffectAddWindowGlowInArea(27, -714.517, 389.286, 302.835, -713.883, 389.286, 302.835, -713.883, 389.746, 302.835, -714.517, 389.746, 302.835, 4, 7, 0, false, false, 1)
EffectAddWindowGlowInArea(27, -714.675, 367.219, 297.691, -717.068, 367.219, 297.691, -717.068, 367.219, 295.755, -714.675, 367.219, 295.755, 5.75, 1.3, 60.65, true, true, 0)
EffectAddWindowGlowInArea(27, -714.675, 367.219, 301.971, -717.068, 367.219, 301.971, -717.068, 367.219, 299.951, -714.675, 367.219, 299.951, 6.75, 1.3, 60.65, true, true, 0)
EffectAddWindowGlowInArea(27, -715.08, 377.669, 300.106, -714.559, 377.5, 300.106, -714.559, 377.839, 300.106, -715.025, 377.839, 300.106, 4.75, 7.5, 0, false, false, 1)
EffectAddWindowGlowInArea(27, -717.943, 389.286, 297.159, -717.31, 389.286, 297.159, -717.31, 389.746, 297.159, -717.943, 389.746, 297.159, 2.5, 7, 0, false, false, 1)
EffectAddWindowGlowInArea(27, -721.069, 389.286, 302.835, -720.448, 389.286, 302.835, -720.435, 389.746, 302.835, -721.069, 389.746, 302.835, 4, 7, 0, false, false, 1)
EffectAddWindowGlowInArea(27, -722.981, 389.286, 297.159, -722.347, 389.286, 297.159, -722.347, 389.746, 297.159, -722.981, 389.746, 297.159, 2.5, 7, 0, false, false, 1)
EffectAddWindowGlowInArea(27, -724.973, 370.011, 298.525, -724.339, 370.011, 298.525, -724.339, 370.472, 298.525, -724.973, 370.472, 298.525, 4, 7, 0, false, false, 1)
EffectAddWindowGlowInArea(27, -725.734, 382.424, 297.159, -725.1, 382.424, 297.159, -725.1, 382.884, 297.159, -725.734, 382.884, 297.159, 2.5, 7, 0, false, false, 1)
EffectAddWindowGlowInArea(27, -729.35, 367.216, 301.971, -731.868, 367.216, 301.971, -731.868, 367.216, 299.951, -729.35, 367.216, 299.951, 5.75, 1.3, 60.65, true, true, 0)
EffectAddWindowGlowInArea(27, -731.934, 367.216, 301.971, -734.494, 367.216, 301.971, -734.494, 367.216, 299.951, -731.934, 367.216, 299.951, 5.75, 1.3, 60.65, true, true, 0)
EffectAddWindowGlowInArea(27, -734.859, 389.286, 302.835, -734.225, 389.286, 302.835, -734.225, 389.746, 302.835, -734.859, 389.746, 302.835, 4, 7, 0, false, false, 1)
EffectAddWindowGlowInArea(27, -735.095, 370.011, 303.706, -734.461, 370.011, 303.706, -734.461, 370.472, 303.706, -735.095, 370.472, 303.706, 4, 7, 0, false, false, 1)
EffectAddWindowGlowInArea(29, -784.099, 377.124, 3.496, -784.099, 376.61, 3.496, -782.131, 376.61, 3.496, -782.131, 377.124, 3.496, 2.5, 2, 0, false, false, 1)
EffectAddWindowGlowInArea(29, -784.099, 381.65, 3.496, -784.099, 381.137, 3.496, -782.131, 381.137, 3.496, -782.131, 381.65, 3.496, 2.5, 2, 0, false, false, 1)
EffectAddWindowGlowInArea(29, -784.099, 386.512, 3.496, -784.099, 385.998, 3.496, -782.131, 385.998, 3.496, -782.131, 386.512, 3.496, 2.5, 2, 0, false, false, 1)
EffectAddWindowGlowInArea(29, -785.015, 389.907, 3.496, -785.015, 389.394, 3.496, -783.047, 389.394, 3.496, -783.047, 389.907, 3.496, 2.5, 2, 0, false, false, 1)
EffectAddWindowGlowInArea(29, -788.35, 389.907, 3.496, -788.35, 389.394, 3.496, -786.382, 389.394, 3.496, -786.382, 389.907, 3.496, 2.5, 2, 0, false, false, 1)
EffectAddWindowGlowInArea(29, -789.074, 377.124, 3.496, -789.074, 376.61, 3.496, -787.106, 376.61, 3.496, -787.106, 377.124, 3.496, 2.5, 2, 0, false, false, 1)
EffectAddWindowGlowInArea(29, -789.074, 381.65, 3.496, -789.074, 381.137, 3.496, -787.106, 381.137, 3.496, -787.106, 381.65, 3.496, 2.5, 2, 0, false, false, 1)
EffectAddWindowGlowInArea(29, -789.074, 386.512, 3.496, -789.074, 385.998, 3.496, -787.106, 385.998, 3.496, -787.106, 386.512, 3.496, 2.5, 2, 0, false, false, 1)
EffectAddWindowGlowInArea(32, -540.703, 128.873, 62.982, -544.069, 128.873, 62.982, -544.069, 128.71, 61.367, -540.703, 128.707, 61.367, 0, 2, 45.65, true, true, 0)
EffectAddWindowGlowInArea(32, -540.703, 130.437, 65.33, -544.069, 130.437, 65.33, -544.069, 128.953, 63.288, -540.703, 128.953, 63.288, 0, 2, 45.65, true, true, 0)
EffectAddWindowGlowInArea(32, -544.069, 136.292, 65.33, -540.703, 136.292, 65.33, -540.703, 137.776, 63.288, -544.069, 137.776, 63.288, 0, 2, 45.65, true, true, 0)
EffectAddWindowGlowInArea(32, -544.069, 137.847, 62.982, -540.703, 137.847, 62.982, -540.703, 138.014, 61.374, -544.069, 138.016, 61.374, 0, 2, 45.65, true, true, 0)
EffectAddWindowGlowInArea(32, -544.369, 128.873, 62.982, -547.843, 128.873, 62.982, -547.838, 128.71, 61.367, -544.369, 128.707, 61.367, 0, 2, 45.65, true, true, 0)
EffectAddWindowGlowInArea(32, -544.369, 130.437, 65.33, -547.843, 130.437, 65.33, -547.843, 128.953, 63.288, -544.369, 128.953, 63.288, 0, 2, 45.65, true, true, 0)
EffectAddWindowGlowInArea(32, -547.843, 136.292, 65.33, -544.369, 136.292, 65.33, -544.369, 137.776, 63.288, -547.843, 137.776, 63.288, 0, 2, 45.65, true, true, 0)
EffectAddWindowGlowInArea(32, -547.843, 137.847, 62.982, -544.369, 137.847, 62.982, -544.369, 138.014, 61.374, -547.843, 138.016, 61.374, 0, 2, 45.65, true, true, 0)
EffectAddWindowGlowInArea(32, -548.178, 128.89, 61.024, -550.473, 129.629, 61.018, -550.473, 129.629, 55.874, -548.178, 128.89, 55.874, 0, 2, 45.65, true, true, 0)
EffectAddWindowGlowInArea(32, -548.19, 128.919, 62.982, -550.468, 129.66, 62.982, -550.566, 129.525, 61.374, -548.185, 128.759, 61.374, 5, 2, 45.65, true, true, 0)
EffectAddWindowGlowInArea(32, -548.193, 130.482, 65.328, -549.534, 130.918, 65.328, -550.404, 129.72, 63.29, -548.193, 129.001, 63.29, 5, 2, 45.65, true, true, 0)
EffectAddWindowGlowInArea(32, -549.51, 135.811, 65.328, -548.169, 136.247, 65.328, -548.169, 137.727, 63.29, -550.381, 137.009, 63.29, 5, 2, 45.65, true, true, 0)
EffectAddWindowGlowInArea(32, -549.835, 131.207, 65.328, -550.664, 132.348, 65.328, -552.072, 131.891, 63.29, -550.705, 130.009, 63.29, 5, 2, 45.65, true, true, 0)
EffectAddWindowGlowInArea(32, -550.445, 137.06, 62.982, -548.166, 137.8, 62.982, -548.161, 137.969, 61.367, -550.542, 137.194, 61.367, 5, 2, 45.65, true, true, 0)
EffectAddWindowGlowInArea(32, -550.473, 137.102, 61.018, -548.178, 137.85, 61.018, -548.178, 137.85, 55.879, -550.473, 137.102, 55.879, 0, 2, 45.65, true, true, 0)
EffectAddWindowGlowInArea(32, -550.664, 134.402, 65.328, -549.835, 135.543, 65.328, -550.705, 136.741, 63.29, -552.072, 134.86, 63.29, 5, 2, 45.65, true, true, 0)
EffectAddWindowGlowInArea(32, -550.753, 132.66, 65.328, -550.753, 134.07, 65.328, -552.162, 134.528, 63.29, -552.162, 132.202, 63.29, 13, 3, 5.65, true, true, 0)
EffectAddWindowGlowInArea(32, -550.765, 129.923, 62.982, -552.173, 131.86, 62.982, -552.331, 131.809, 61.367, -550.863, 129.789, 61.367, 7, 2, 45.65, true, true, 0)
EffectAddWindowGlowInArea(32, -550.78, 129.852, 61.018, -552.195, 131.8, 61.018, -552.195, 131.8, 55.879, -550.78, 129.852, 55.879, 0, 2, 45.65, true, true, 0)
EffectAddWindowGlowInArea(32, -552.173, 134.89, 62.982, -550.765, 136.828, 62.982, -550.863, 136.962, 61.367, -552.331, 134.941, 61.367, 7, 2, 45.65, true, true, 0)
EffectAddWindowGlowInArea(32, -552.195, 134.931, 61.018, -550.78, 136.878, 61.018, -550.78, 136.878, 55.879, -552.195, 134.931, 55.879, 0, 2, 45.65, true, true, 0)
EffectAddWindowGlowInArea(32, -552.261, 132.168, 62.982, -552.261, 134.563, 62.982, -552.419, 134.614, 61.367, -552.419, 132.116, 61.367, 7, 3, 80.65, true, true, 0)
EffectAddWindowGlowInArea(32, -552.313, 132.132, 61.018, -552.313, 134.551, 61.018, -552.313, 134.569, 55.879, -552.313, 132.107, 55.879, 0, 2, 45.65, true, true, 0)
EffectAddWindowGlowInArea(32, -559.904, 129.922, 55.05, -561.53, 130.49, 55.044, -561.53, 130.49, 51.421, -559.904, 129.922, 51.421, 0, 2, 45.65, true, true, 0)
EffectAddWindowGlowInArea(32, -561.53, 136.243, 55.044, -559.904, 136.819, 55.044, -559.904, 136.819, 51.426, -561.53, 136.243, 51.426, 0, 2, 45.65, true, true, 0)
EffectAddWindowGlowInArea(32, -561.748, 130.662, 55.044, -562.75, 132.161, 55.044, -562.75, 132.161, 51.427, -561.748, 130.662, 51.427, 0, 2, 45.65, true, true, 0)
EffectAddWindowGlowInArea(32, -562.75, 134.571, 55.044, -561.748, 136.071, 55.044, -561.748, 136.071, 51.427, -562.75, 134.571, 51.427, 0, 2, 45.65, true, true, 0)
EffectAddWindowGlowInArea(32, -562.834, 132.44, 55.044, -562.834, 134.293, 55.044, -562.834, 134.293, 51.427, -562.834, 132.44, 51.427, 15, 1.65, 25.65, true, true, 0)
EffectAddWindowGlowInArea(35, -406.997, 311.113, 5.662, -406.993, 308.967, 5.664, -406.997, 308.969, 3.344, -407.001, 311.113, 3.344, 0, 1.5, 60.65, true, true, 0)
EffectAddWindowGlowInArea(35, -411.596, 311.755, 0.702, -411.596, 310.373, 0.702, -411.596, 310.373, -1.28, -411.596, 311.755, -1.28, 0, 1.5, 35.65, true, false, 0)
EffectAddWindowGlowInArea(35, -412.068, 294.72, 5.7, -414.214, 294.725, 5.698, -414.214, 294.728, 3.379, -412.069, 294.725, 3.379, 5, 1.5, 45.65, true, true, 0)
EffectAddWindowGlowInArea(35, -413.894, 299.036, 0.458, -415.276, 299.036, 0.458, -415.276, 299.036, -1.539, -413.894, 299.036, -1.539, 4, 1.5, 35.65, true, true, 0)
EffectAddWindowGlowInArea(35, -414.281, 324.865, 5.7, -412.135, 324.869, 5.702, -412.136, 324.865, 3.382, -414.281, 324.861, 3.382, 0, 1.5, 60.65, true, false, 0)
EffectAddWindowGlowInArea(35, -415.391, 323.213, 0.437, -414.01, 323.213, 0.437, -414.01, 323.213, -1.539, -415.391, 323.213, -1.539, 0, 1.5, 35.65, true, false, 0)
EffectAddWindowGlowInArea(35, -417.813, 298.975, -4.982, -419.194, 298.975, -4.982, -419.194, 298.975, -6.961, -417.813, 298.975, -6.961, 4, 1.5, 35.65, true, true, 0)
EffectAddWindowGlowInArea(35, -418.891, 299.036, 0.458, -420.273, 299.036, 0.458, -420.273, 299.036, -1.539, -418.891, 299.036, -1.539, 4, 1.5, 35.65, true, true, 0)
EffectAddWindowGlowInArea(35, -420.389, 323.213, 0.437, -419.007, 323.213, 0.437, -419.007, 323.213, -1.539, -420.389, 323.213, -1.539, 0, 1.5, 35.65, true, false, 0)
EffectAddWindowGlowInArea(35, -422.81, 298.975, -4.982, -424.191, 298.975, -4.982, -424.191, 298.975, -6.961, -422.81, 298.975, -6.961, 4, 1.5, 35.65, true, true, 0)
EffectAddWindowGlowInArea(35, -425.648, 323.213, 0.437, -424.266, 323.213, 0.437, -424.266, 323.213, -1.539, -425.648, 323.213, -1.539, 0, 1.5, 35.65, true, false, 0)
EffectAddWindowGlowInArea(35, -426.451, 304.155, 0.849, -428.415, 304.172, 0.849, -428.415, 303.694, 0.849, -426.452, 303.677, 0.849, 2, 3.25, 0, false, false, 1)
EffectAddWindowGlowInArea(35, -427.806, 298.975, -4.982, -429.187, 298.975, -4.982, -429.187, 298.975, -6.961, -427.806, 298.975, -6.961, 4, 1.5, 35.65, true, true, 0)
EffectAddWindowGlowInArea(35, -427.937, 299.074, 0.411, -429.319, 299.074, 0.411, -429.319, 299.074, -1.566, -427.937, 299.074, -1.566, 5, 1.5, 35.65, true, true, 0)
EffectAddWindowGlowInArea(35, -429.233, 323.151, -4.977, -427.85, 323.151, -4.977, -427.85, 323.151, -6.961, -429.233, 323.151, -6.961, 0, 1.5, 35.65, true, false, 0)
EffectAddWindowGlowInArea(35, -430.645, 323.213, 0.437, -429.263, 323.213, 0.437, -429.263, 323.213, -1.539, -430.645, 323.213, -1.539, 0, 1.5, 35.65, true, false, 0)
EffectAddWindowGlowInArea(35, -432.374, 304.155, 0.849, -434.338, 304.172, 0.849, -434.338, 303.694, 0.849, -432.374, 303.677, 0.849, 2, 3.25, 0, false, false, 1)
EffectAddWindowGlowInArea(35, -432.803, 298.975, -4.982, -434.184, 298.975, -4.982, -434.184, 298.975, -6.961, -432.803, 298.975, -6.961, 4, 1.5, 35.65, true, true, 0)
EffectAddWindowGlowInArea(35, -433.643, 323.151, -4.977, -432.261, 323.151, -4.977, -432.261, 323.151, -6.961, -433.643, 323.151, -6.961, 0, 1.5, 35.65, true, false, 0)
EffectAddWindowGlowInArea(35, -433.892, 295.797, 4.938, -435.45, 295.8, 4.94, -435.45, 295.802, 3.255, -433.893, 295.8, 3.255, 5, 1.5, 45.65, true, true, 0)
EffectAddWindowGlowInArea(35, -435.45, 323.602, 4.938, -433.892, 323.605, 4.94, -433.893, 323.602, 3.255, -435.45, 323.599, 3.255, 0, 1.5, 60.65, true, false, 0)
EffectAddWindowGlowInArea(35, -435.857, 323.213, 0.437, -434.476, 323.213, 0.437, -434.476, 323.213, -1.539, -435.857, 323.213, -1.539, 0, 1.5, 35.65, true, false, 0)
EffectAddWindowGlowInArea(35, -437.223, 304.155, 0.849, -439.187, 304.172, 0.849, -439.187, 303.694, 0.849, -437.223, 303.677, 0.849, 2, 3.25, 0, false, false, 1)
EffectAddWindowGlowInArea(35, -438.267, 299.108, -4.724, -439.649, 299.108, -4.724, -439.649, 299.108, -6.706, -438.267, 299.108, -6.706, 4, 1.5, 35.65, true, true, 0)
EffectAddWindowGlowInArea(35, -440.854, 323.213, 0.437, -439.473, 323.213, 0.437, -439.473, 323.213, -1.539, -440.854, 323.213, -1.539, 0, 1.5, 35.65, true, false, 0)
EffectAddWindowGlowInArea(35, -444.37, 320.301, -4.974, -442.989, 320.301, -4.974, -442.989, 320.301, -6.799, -444.37, 320.301, -6.799, 0, 1.5, 35.65, true, false, 0)
EffectAddWindowGlowInArea(35, -446.249, 323.213, 0.437, -444.868, 323.213, 0.437, -444.868, 323.213, -1.539, -446.249, 323.213, -1.539, 0, 1.5, 35.65, true, false, 0)
EffectAddWindowGlowInArea(35, -446.855, 296.273, 0.439, -448.184, 296.273, 0.439, -448.184, 296.273, -1.539, -446.855, 296.273, -1.539, 15, 2.5, 65.65, true, true, 0)
EffectAddWindowGlowInArea(35, -450.459, 320.301, -4.974, -449.077, 320.301, -4.974, -449.077, 320.301, -6.799, -450.459, 320.301, -6.799, 0, 1.5, 35.65, true, false, 0)
EffectAddWindowGlowInArea(35, -451.246, 323.213, 0.437, -449.865, 323.213, 0.437, -449.865, 323.213, -1.539, -451.246, 323.213, -1.539, 0, 1.5, 35.65, true, false, 0)
EffectAddWindowGlowInArea(35, -453.131, 296.273, 0.439, -454.46, 296.273, 0.439, -454.46, 296.273, -1.539, -453.131, 296.273, -1.539, 12, 1.5, 65.65, true, true, 0)
EffectAddWindowGlowInArea(35, -455.086, 294.567, 5.737, -457.232, 294.571, 5.737, -457.232, 294.574, 3.419, -455.088, 294.571, 3.419, 5, 1.5, 45.65, true, true, 0)
EffectAddWindowGlowInArea(35, -456.721, 320.301, -4.974, -455.338, 320.301, -4.974, -455.338, 320.301, -6.799, -456.721, 320.301, -6.799, 0, 1.5, 35.65, true, false, 0)
EffectAddWindowGlowInArea(35, -457.232, 324.83, 5.737, -455.086, 324.835, 5.74, -455.088, 324.83, 3.419, -457.232, 324.827, 3.419, 0, 1.5, 60.65, true, false, 0)
EffectAddWindowGlowInArea(35, -458.621, 300.635, 0.464, -458.621, 302.124, 0.464, -458.621, 302.124, -1.515, -458.621, 300.635, -1.515, 0, 1.5, 65.65, true, false, 0)
EffectAddWindowGlowInArea(35, -458.634, 305.285, 0.464, -458.621, 306.754, 0.464, -458.621, 306.754, -1.515, -458.621, 305.285, -1.515, 0, 1.5, 65.65, true, false, 0)
EffectAddWindowGlowInArea(35, -459.216, 310.502, 0.702, -459.216, 311.884, 0.702, -459.216, 311.884, -1.28, -459.216, 310.502, -1.28, 0, 1.5, 35.65, true, false, 0)
EffectAddWindowGlowInArea(35, -462.28, 308.877, 5.662, -462.284, 311.023, 5.664, -462.279, 311.022, 3.344, -462.276, 308.877, 3.344, 0, 1.5, 60.65, true, true, 0)
EffectAddWindowGlowInArea(39, -652.107, 120.811, 5.207, -654.064, 120.811, 5.207, -654.064, 120.811, 3.878, -652.107, 120.811, 3.878, 0, 1, 45.65, true, true, 0)
EffectAddWindowGlowInArea(39, -656.686, 120.811, 5.207, -658.542, 120.811, 5.207, -658.542, 120.811, 3.878, -656.686, 120.811, 3.878, 0, 1, 45.65, true, true, 0)
EffectAddWindowGlowInArea(5, -697.39, 199.6, 34.82, -699.27, 199.6, 34.82, -699.27, 199.6, 32.3, -697.39, 199.6, 32.3, 3, 2, 45.65, true, true, 0)
EffectAddWindowGlowInArea(5, -703.29, 199.6, 34.82, -705.17, 199.6, 34.82, -705.17, 199.6, 32.3, -703.29, 199.6, 32.3, 3, 2, 45.65, true, true, 0)
EffectAddWindowGlowInArea(6, -700.53, 312.73, 36.35, -700.53, 312, 36.35, -700.53, 312, 34.65, -700.53, 312.73, 34.65, 3, 2, 60.65, true, true, 0)
EffectAddWindowGlowInArea(6, -700.53, 314.23, 36.35, -700.53, 313.5, 36.35, -700.53, 313.5, 34.65, -700.53, 314.23, 34.65, 3, 2, 60.65, true, true, 0)
EffectAddWindowGlowInArea(6, -700.53, 315.73, 36.35, -700.53, 315, 36.35, -700.53, 315, 34.65, -700.53, 315.73, 34.65, 3, 2, 60.65, true, true, 0)
EffectAddWindowGlowInArea(6, -700.53, 321.5, 36.35, -700.53, 320.8, 36.35, -700.53, 320.8, 34.65, -700.53, 321.5, 34.65, 3, 2, 60.65, true, true, 0)
EffectAddWindowGlowInArea(6, -700.53, 323, 36.35, -700.53, 322.3, 36.35, -700.53, 322.3, 34.65, -700.53, 323, 34.65, 3, 2, 60.65, true, true, 0)
EffectAddWindowGlowInArea(6, -700.53, 324.5, 36.35, -700.53, 323.82, 36.35, -700.53, 323.82, 34.65, -700.53, 324.5, 34.65, 3, 2, 60.65, true, true, 0)
EffectAddWindowGlowInArea(8, -763.986, -142.333, 20.883, -765.135, -143.482, 20.883, -764.916, -143.941, 20.252, -763.517, -142.542, 20.252, 19.75, 3, 45.65, true, true, 0)
EffectAddWindowGlowInArea(8, -765.237, -126.953, 20.872, -764.088, -128.103, 20.872, -763.609, -127.856, 20.241, -765.014, -126.452, 20.241, 19.75, 3, 45.65, true, true, 0)
EffectAddWindowGlowInArea(8, -779.222, -143.188, 20.883, -780.369, -142.042, 20.883, -780.865, -142.253, 20.252, -779.465, -143.653, 20.252, 19.75, 3, 45.65, true, true, 0)
EffectAddWindowGlowInArea(8, -780.312, -128.065, 20.87, -779.165, -126.918, 20.87, -779.413, -126.41, 20.239, -780.818, -127.815, 20.239, 19.75, 3, 45.65, true, true, 0)
EffectAddWindowGlowInArea(9, -764.795, 179.678, 97.092, -766.421, 179.678, 97.092, -766.421, 179.678, 92.862, -764.771, 179.678, 92.862, 0, 2.5, 45.65, true, true, 0)
EffectAddWindowGlowInArea(9, -765.217, 179.818, 99.857, -766.02, 179.818, 99.857, -766.02, 179.818, 98.929, -765.204, 179.818, 98.929, 0, 2.5, 45.65, true, true, 0)
EffectAddWindowGlowInArea(9, -766.016, 226.418, 99.857, -765.213, 226.418, 99.857, -765.213, 226.418, 98.929, -766.029, 226.418, 98.929, 0, 2.5, 45.65, true, true, 0)
EffectAddWindowGlowInArea(9, -766.417, 226.558, 97.092, -764.791, 226.558, 97.092, -764.791, 226.558, 92.862, -766.441, 226.558, 92.862, 0, 2.5, 45.65, true, true, 0)
EffectAddWindowGlowInArea(9, -777.873, 179.678, 97.092, -779.499, 179.678, 97.092, -779.499, 179.678, 92.862, -777.849, 179.678, 92.862, 0, 2.5, 45.65, true, true, 0)
EffectAddWindowGlowInArea(9, -778.309, 179.818, 99.857, -779.111, 179.818, 99.857, -779.111, 179.818, 98.929, -778.296, 179.818, 98.929, 0, 2.5, 45.65, true, true, 0)
EffectAddWindowGlowInArea(9, -779.097, 226.418, 99.857, -778.295, 226.418, 99.857, -778.295, 226.418, 98.929, -779.111, 226.418, 98.929, 0, 2.5, 45.65, true, true, 0)
EffectAddWindowGlowInArea(9, -779.499, 226.558, 97.092, -777.873, 226.558, 97.092, -777.873, 226.558, 92.862, -779.523, 226.558, 92.862, 0, 2.5, 45.65, true, true, 0)
EffectAddWindowGlowInArea(9, -788.102, 183.548, 99.857, -788.102, 184.35, 99.857, -788.102, 184.35, 98.929, -788.102, 183.535, 98.929, 0, 2.5, 45.65, true, true, 0)
EffectAddWindowGlowInArea(9, -788.102, 190.064, 99.857, -788.102, 190.866, 99.857, -788.102, 190.866, 98.929, -788.102, 190.05, 98.929, 0, 2.5, 45.65, true, true, 0)
EffectAddWindowGlowInArea(9, -788.102, 196.255, 99.857, -788.102, 197.057, 99.857, -788.102, 197.057, 98.929, -788.102, 196.241, 98.929, 0, 2.5, 45.65, true, true, 0)
EffectAddWindowGlowInArea(9, -788.102, 209.517, 99.857, -788.102, 210.319, 99.857, -788.102, 210.319, 98.929, -788.102, 209.503, 98.929, 0, 2.5, 45.65, true, true, 0)
EffectAddWindowGlowInArea(9, -788.102, 215.413, 99.857, -788.102, 216.215, 99.857, -788.102, 216.215, 98.929, -788.102, 215.399, 98.929, 0, 2.5, 45.65, true, true, 0)
EffectAddWindowGlowInArea(9, -788.102, 222.224, 99.857, -788.102, 223.026, 99.857, -788.102, 223.026, 98.929, -788.102, 222.21, 98.929, 0, 2.5, 45.65, true, true, 0)
EffectAddWindowGlowInArea(9, -788.242, 183.146, 97.092, -788.242, 184.772, 97.092, -788.242, 184.772, 92.862, -788.242, 183.122, 92.862, 6.75, 2, 65.65, true, true, 0)
EffectAddWindowGlowInArea(9, -788.242, 189.662, 97.092, -788.242, 191.288, 97.092, -788.242, 191.288, 92.862, -788.242, 189.638, 92.862, 6.75, 2, 65.65, true, true, 0)
EffectAddWindowGlowInArea(9, -788.242, 195.853, 97.092, -788.242, 197.479, 97.092, -788.242, 197.479, 92.862, -788.242, 195.829, 92.862, 6.75, 2, 65.65, true, true, 0)
EffectAddWindowGlowInArea(9, -788.242, 209.115, 97.092, -788.242, 210.741, 97.092, -788.242, 210.741, 92.862, -788.242, 209.091, 92.862, 6.75, 2, 65.65, true, true, 0)
EffectAddWindowGlowInArea(9, -788.242, 215.011, 97.092, -788.242, 216.637, 97.092, -788.242, 216.637, 92.862, -788.242, 214.987, 92.862, 6.75, 2, 65.65, true, true, 0)
EffectAddWindowGlowInArea(9, -788.242, 221.822, 97.092, -788.242, 223.448, 97.092, -788.242, 223.448, 92.862, -788.242, 221.798, 92.862, 6.75, 2, 65.65, true, true, 0)
sub esp, 0x44
push esi
mov esi, dword ptr [esp+0x4C]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x50], st
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x5C], st
push 0x3
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x68], st
push 0x4
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x5C], st
push 0x5
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x68], st
push 0x6
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x74], st
push 0x7
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x68], st
add esp, 0x40
push 0x8
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x34], st
push 0x9
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x40], st
push 0xA
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x34], st
push 0xB
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x40], st
push 0xC
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x4C], st
push 0xD
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x48], st
push 0xE
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x4C], st
push 0xF
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x50], st
add esp, 0x40
push 0x10
push esi
call LuaParam::GetBool
push 0x11
push esi
mov byte ptr [esp+0x1C], al
call LuaParam::GetBool
push 0x12
push esi
mov byte ptr [esp+0x20], al
call LuaParam::GetInt
add esp, 0x18
mov ecx, dword ptr [esp+0xC]
fld st, dword ptr [esp+0x10]
push eax
mov eax, dword ptr [esp+0xC]
push eax
push ecx
sub esp, 0xC
fstp dword ptr [esp+0x8], st
lea edx, ptr [esp+0x34]
fld st, dword ptr [esp+0x2C]
lea eax, ptr [esp+0x40]
fstp dword ptr [esp+0x4], st
lea ecx, ptr [esp+0x4C]
fld st, dword ptr [esp+0x30]
fstp dword ptr [esp], st
push edi
push edx
push eax
push ecx
lea edx, ptr [esp+0x68]
push edx
mov ecx, 0xCE7580
call 0x536B70
pop edi
mov eax, 0x1
pop esi
add esp, 0x44
ret
-- never used
mov eax, 0x1
mov dword ptr [0xCF1094], eax
mov dword ptr [0xCF1098], 0x78
ret
eff = EffectCreate("Chem_Accident", FlaskFX_XYZ.x, FlaskFX_XYZ.y, FlaskFX_XYZ.z)
eff = EffectCreate(cAction.effect, FlaskFX_XYZ.x, FlaskFX_XYZ.y, FlaskFX_XYZ.z)
EffectCreate("BoilerSteam", x, y, z)
EffectCreate("BottleRocketExplosion", spx10, spy10, spz10)
EffectCreate("BottleRocketExplosion", spx8, spy8, spz8)
EffectCreate("BottleRocketExplosion", spx9, spy9, spz9)
EffectCreate("CeilingDust", dustX, dustY, dustZ)
EffectCreate("Chem_GoodReaction", FlaskFX_XYZ.x, FlaskFX_XYZ.y, FlaskFX_XYZ.z)
EffectCreate("Confetti", xf, yf, zf)
EffectCreate("ElectricalSpark01", spx10, spy10, spz10)
EffectCreate("ElectricalSpark01", spx8, spy8, spz8)
EffectCreate("ElectricalSpark01", spx9, spy9, spz9)
EffectCreate("FireworksWinner", xf, yf, zf)
EffectCreate("GlassLRGshards", x, y, z)
EffectCreate("GraffitiGone", x, y, z)
EffectCreate("GymLightSmash", tx, ty, tz)
EffectCreate("SGTargetHit", sx, sy, sz + 0.6)
EffectCreate("SnowPoof", snowpoofX, snowpoofY, snowpoofZ)
effectMudSplat = EffectCreate("MudImpact", pooTargetX, pooTargetY, pooTargetZ)
effectShitFire00 = EffectCreate("ShowerSteam2", pooTargetX, pooTargetY, pooTargetZ)
effectShitFire01 = EffectCreate("boilerfire2", pooTargetX, pooTargetY, pooTargetZ + 0.15)
effectShower01 = EffectCreate("ShowerSteam2", effectX, effectY, effectZ)
effectShower02 = EffectCreate("ShowerSteam2", effectX, effectY, effectZ)
effectShower2a = EffectCreate("ShowerSteam2", shower1X, shower1Y, shower1Z)
effectShower2b = EffectCreate("ShowerSteam2", shower1X, shower1Y, shower1Z)
effectShower3 = EffectCreate("SteamRoom", shower1X, shower1Y, shower1Z)
effectSteam = EffectCreate("SteamRoom", effectX, effectY, effectZ)
flame.smokeId = EffectCreate("SmokeStackBLK", xf, yf, zf)
flame.smokeId = EffectCreate("SmokeStackLRG", xf, yf, zf)
g_eff = EffectCreate(cAction.ambEffect, FlaskFX_XYZ.x, FlaskFX_XYZ.y, FlaskFX_XYZ.z)
gBadExperiment = EffectCreate("Chem_Reaction", FlaskFX_XYZ.x, FlaskFX_XYZ.y, FlaskFX_XYZ.z)
gBigSmoke = EffectCreate("SmokeStackLRG", xf, yf, zf)
gBubbleEffect = EffectCreate("Chem_Bubbles", tx, ty, tz)
gBuntzenFlame2 = EffectCreate("BuntzenFlame2", x, y, z)
gBuntzenFlame3 = EffectCreate("BuntzenFlame3", x, y, z)
gChemEffects[1] = EffectCreate("BuntzenFlame3", fx, fy, fz)
gChemEffects[2] = EffectCreate("greenbeakersmoke", fx, fy, fz)
gChemEffects[3] = EffectCreate("ManHoleSteam", fx, fy, fz)
gChemEffects[4] = EffectCreate("Chem_Reaction", fx, fy, fz)
gEffects[1] = EffectCreate("BarrelFire", x, y, z)
gEffects[2] = EffectCreate("boilerfire2", x, y, z)
gEffects[3] = EffectCreate("SmokeStackBLK", x, y, z)
gEffects[4] = EffectCreate("SmokeStackBLK", x, y, z)
gEffects[5] = EffectCreate("BarrelFire", x, y, z)
gEffects[6] = EffectCreate("boilerfire2", x, y, z)
gEffects[7] = EffectCreate("SmokeStackLRG", x, y, z)
gEffFlame = EffectCreate("TorchImpact", x, y, z)
gExplosionEffect = EffectCreate("BigExplosion", x, y, z)
gExplosionEffect2 = EffectCreate("BigExplosion", x, y, z)
gExplosionEffect3 = EffectCreate("BigExplosion", x, y, z)
gExplosionEffect4 = EffectCreate("BigExplosion", x, y, z)
gExplosionEffect5 = EffectCreate("BigExplosion", x, y, z)
gExplosionEffect6 = EffectCreate("CarDestroyed", x, y, z)
gSmokesTable[i] = EffectCreate("GymFire", x, y, z)
gSmokesTable[i] = EffectCreate("SmokeStackLRG", x, y, z)
id = EffectCreate("SteamSlow", 166.1, -89.4, 22.7)
id = EffectCreate("SteamSlow", 166.4, -57.5, 22.7)
id = EffectCreate("SteamSlow", 175.5, -62.8, 22.7)
id = EffectCreate("SteamSlow", 178.6, -83.4, 22.7)
id = EffectCreate("SteamSlow", 199.7, -57.2, 22.7)
local effect = EffectCreate("Sprinkler", x, y, z)
local effect = EffectCreate("ToiletExplode", x, y, z)
local fx = EffectCreate(effect, x, y, z)
shared.HoboeffectId = EffectCreate("RaceBeam", x, y, z)
tableSprinklerNames[i] = EffectCreate("FireSprinkler", sprinklerX, sprinklerY, sprinklerZ)
tblEntry.idSmoke = EffectCreate("SmokeStackLRG", xf, yf, zf)
tblWitchSteam[1].effect = EffectCreate("steam_Shower", x, y, z)
tblWitchSteam[2].effect = EffectCreate("steam_Shower", x, y, z)
sub esp, 0x18
push esi
mov esi, dword ptr [esp+0x20]
push edi
push 0x0
push esi
call LuaParam::GetString
push 0x1
push esi
mov edi, eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x18], st
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x24], st
push 0x3
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x30], st
fld st, dword ptr [esp+0x28]
add esp, 0x20
fstp dword ptr [esp+0x14], st
lea eax, ptr [esp+0x14]
fld st, dword ptr [esp+0xC]
push eax
fstp dword ptr [esp+0x1C], st
push edi
fld st, dword ptr [esp+0x18]
mov ecx, 0xC13FD8
fstp dword ptr [esp+0x24], st
call 0x453DD0
push eax
push esi
call LuaParam::PushInt
add esp, 0x8
pop edi
mov eax, 0x1
pop esi
add esp, 0x18
ret
if EffectIsRunning(lEffect) then
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, 0xC13FD8
call 0x453E70
mov byte ptr [esp+0x4], al
mov eax, dword ptr [esp+0x4]
push eax
push esi
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
pop esi
pop ecx
ret
EffectKill(arc)
EffectKill(eff)
EffectKill(effect)
EffectKill(effectShower2a)
EffectKill(effectShower2b)
EffectKill(effectShower3)
EffectKill(entry)
EffectKill(entry.id)
EffectKill(flame.smokeId)
EffectKill(g_eff)
EffectKill(gBadExperiment)
EffectKill(gBigSmoke)
EffectKill(gBubbleEffect)
EffectKill(gBuntzenFlame2)
EffectKill(gBuntzenFlame3)
EffectKill(gEffects[1])
EffectKill(gEffects[2])
EffectKill(gEffects[3])
EffectKill(gEffects[4])
EffectKill(gEffects[5])
EffectKill(gEffects[6])
EffectKill(gEffFlame)
EffectKill(lEffect)
EffectKill(smoke)
EffectKill(tableSprinklerNames[i])
EffectKill(tblEntry.idFX)
EffectKill(tblEntry.idSmoke)
EffectKill(tblWitchSteam[1].effect)
EffectKill(tblWitchSteam[2].effect)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, 0xC13FD8
call 0x454070
xor eax, eax
ret
effectTable.id = EffectRegisterInArea(effectTable.effect, effectTable.x, effectTable.y, effectTable.z, effectTable.zone)
effectTable.id = EffectRegisterInArea(effectTable.effect, x, y, z, effectTable.zone)
sub esp, 0x18
push esi
mov esi, dword ptr [esp+0x20]
push edi
push 0x0
push esi
call LuaParam::GetString
push 0x1
push esi
mov edi, eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x18], st
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x24], st
push 0x3
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x30], st
push 0x4
push esi
call LuaParam::GetInt
fld st, dword ptr [esp+0x30]
add esp, 0x28
fstp dword ptr [esp+0x14], st
fld st, dword ptr [esp+0xC]
push eax
lea eax, ptr [esp+0x18]
fstp dword ptr [esp+0x1C], st
fld st, dword ptr [esp+0x14]
push eax
push edi
fstp dword ptr [esp+0x28], st
mov ecx, 0xC13FD8
call 0x454380
push eax
push esi
call LuaParam::PushInt
add esp, 0x8
pop edi
mov eax, 0x1
pop esi
add esp, 0x18
ret
EffectSetDirection(effectTable.id, effectTable.orient.x, effectTable.orient.y, effectTable.orient.z)
EffectSetDirection(fx, dx, dy, dz)
EffectSetDirection(tblWitchSteam[1].effect, -4, 0, 0)
EffectSetDirection(tblWitchSteam[2].effect, -4, 0, 0)
sub esp, 0x1C
push esi
mov esi, dword ptr [esp+0x24]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x18], st
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x24], st
push 0x3
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x30], st
fld st, dword ptr [esp+0x28]
add esp, 0x20
fstp dword ptr [esp+0x14], st
lea eax, ptr [esp+0x14]
fld st, dword ptr [esp+0xC]
push eax
fstp dword ptr [esp+0x1C], st
push edi
fld st, dword ptr [esp+0x18]
mov ecx, 0xC13FD8
fstp dword ptr [esp+0x24], st
call 0x453F60
mov byte ptr [esp+0x10], al
mov ecx, dword ptr [esp+0x10]
push ecx
push esi
call LuaParam::PushBool
add esp, 0x8
pop edi
mov eax, 0x1
pop esi
add esp, 0x1C
ret
EffectSetGymnFireAlpha(gGymAlpha)
push ecx
mov eax, dword ptr [esp+0x8]
push 0x0
push eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x8], st
fldz
add esp, 0x8
fld st, dword ptr [esp]
fcom st, st(1)
fnstsw ax
test ah, 0x5
jnp 0x1E
fstp st(1), st
fld1
fcom st, st(1)
fnstsw ax
test ah, 0x5
jp 0x11
fstp st(1), st
mov eax, 0x1
fstp dword ptr [0xAC7634], st
pop ecx
ret
fstp st(0), st
mov eax, 0x1
fstp dword ptr [0xAC7634], st
pop ecx
ret
EffectSetGymnFireOn(false)
EffectSetGymnFireOn(true)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetBool
fld1
movzx ecx, al
fstp dword ptr [0xAC7634], st
add esp, 0x8
mov dword ptr [0xCF1090], ecx
mov eax, 0x1
ret
EffectSetNightOnly(effectTable.id, effectTable.bNightOnly)
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetBool
mov byte ptr [esp+0x18], al
mov eax, dword ptr [esp+0x18]
add esp, 0x10
push eax
push edi
mov ecx, 0xC13FD8
call 0x453FE0
mov byte ptr [esp+0x8], al
mov ecx, dword ptr [esp+0x8]
push ecx
push esi
call LuaParam::PushBool
add esp, 0x8
pop edi
mov eax, 0x1
pop esi
pop ecx
ret
-- never used
sub esp, 0x18
push esi
mov esi, dword ptr [esp+0x20]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x18], st
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x24], st
push 0x3
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x30], st
fld st, dword ptr [esp+0x28]
add esp, 0x20
fstp dword ptr [esp+0x14], st
lea eax, ptr [esp+0x14]
fld st, dword ptr [esp+0xC]
push eax
fstp dword ptr [esp+0x1C], st
push edi
fld st, dword ptr [esp+0x18]
mov ecx, 0xC13FD8
fstp dword ptr [esp+0x24], st
call 0x453EC0
mov byte ptr [esp+0x10], al
mov ecx, dword ptr [esp+0x10]
push ecx
push esi
call LuaParam::PushBool
add esp, 0x8
pop edi
mov eax, 0x1
pop esi
add esp, 0x18
ret
-- never used
sub esp, 0x18
push esi
mov esi, dword ptr [esp+0x20]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x1C], st
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x20], st
fld st, dword ptr [esp+0x20]
add esp, 0x18
lea eax, ptr [esp+0x10]
push eax
sub esp, 0x8
fstp dword ptr [esp+0x4], st
fld st, dword ptr [esp+0x18]
fstp dword ptr [esp], st
call 0x412380
add esp, 0xC
lea ecx, ptr [esp+0x10]
push ecx
push edi
mov ecx, 0xC13FD8
call 0x453F60
mov byte ptr [esp+0xC], al
mov edx, dword ptr [esp+0xC]
push edx
push esi
call LuaParam::PushBool
add esp, 0x8
pop edi
mov eax, 0x1
pop esi
add esp, 0x18
ret
EffectSlowKill(effectShitFire00, 2, true)
EffectSlowKill(effectShitFire01, 1, true)
EffectSlowKill(effectShower01, 5, true)
EffectSlowKill(effectShower02, 5, true)
EffectSlowKill(effectSteam, 5, true)
EffectSlowKill(steam)
EffectSlowKill(steam, 3.5, true)
sub esp, 0x8
push esi
mov esi, dword ptr [esp+0x10]
push edi
push 0x0
push esi
call LuaParam::GetInt
fld1
push esi
fstp dword ptr [esp+0x18], st
mov edi, eax
mov byte ptr [esp+0x14], 0x0
call 0x73AEA0
add esp, 0xC
cmp eax, 0x1
jle 0x2B
push 0x1
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x14], st
push esi
call 0x73AEA0
add esp, 0xC
cmp eax, 0x2
jle 0x11
push 0x2
push esi
call LuaParam::GetBool
add esp, 0x8
mov byte ptr [esp+0x8], al
mov eax, dword ptr [esp+0x8]
fld st, dword ptr [esp+0xC]
push eax
push ecx
fstp dword ptr [esp], st
push edi
mov ecx, 0xC13FD8
call 0x4540A0
pop edi
xor eax, eax
pop esi
add esp, 0x8
ret
EffectTurnOffWindowGlowInArea(-614.133, -48.2877, 68.9731, 2)
EffectTurnOffWindowGlowInArea(-619.172, -48.2877, 68.9731, 2)
EffectTurnOffWindowGlowInArea(-619.172, -63.31, 68.9731, 2)
EffectTurnOffWindowGlowInArea(-624.326, -48.2877, 68.9731, 2)
EffectTurnOffWindowGlowInArea(-624.326, -71.013, 68.9731, 2)
sub esp, 0x1C
push esi
mov esi, dword ptr [esp+0x24]
push 0x0
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0xC], st
push 0x1
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x18], st
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x24], st
push 0x3
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x30], st
fld st, dword ptr [esp+0x24]
add esp, 0x1C
fstp dword ptr [esp+0x18], st
lea eax, ptr [esp+0x18]
fld st, dword ptr [esp+0xC]
mov ecx, 0xCE7580
fstp dword ptr [esp+0x1C], st
fld st, dword ptr [esp+0x10]
fstp dword ptr [esp+0x20], st
fld st, dword ptr [esp+0x14]
fstp dword ptr [esp], st
push eax
call 0x537BF0
xor eax, eax
pop esi
add esp, 0x1C
ret
EffectTurnOnWindowGlowInArea(-614.133, -48.2877, 68.9731, 2)
EffectTurnOnWindowGlowInArea(-619.172, -48.2877, 68.9731, 2)
EffectTurnOnWindowGlowInArea(-619.172, -63.31, 68.9731, 2)
EffectTurnOnWindowGlowInArea(-624.326, -48.2877, 68.9731, 2)
EffectTurnOnWindowGlowInArea(-624.326, -71.013, 68.9731, 2)
sub esp, 0x1C
push esi
mov esi, dword ptr [esp+0x24]
push 0x0
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0xC], st
push 0x1
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x18], st
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x24], st
push 0x3
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x30], st
fld st, dword ptr [esp+0x24]
add esp, 0x1C
fstp dword ptr [esp+0x18], st
lea eax, ptr [esp+0x18]
fld st, dword ptr [esp+0xC]
mov ecx, 0xCE7580
fstp dword ptr [esp+0x1C], st
fld st, dword ptr [esp+0x10]
fstp dword ptr [esp+0x20], st
fld st, dword ptr [esp+0x14]
fstp dword ptr [esp], st
push eax
call 0x537D00
xor eax, eax
pop esi
add esp, 0x1C
ret
-- never used
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, 0xC13FD8
call 0x454100
xor eax, eax
ret
EnablePOI()
EnablePOI(true, true)
function EnablePOI(bScriptedPOIs, bHangOutSpots)
POISetSystemEnabled(true)
POIGroupsEnabled(true)
end
EnterNIS()
push esi
mov esi, dword ptr [0xC0F5F4]
push edi
xor edi, edi
cmp dword ptr [esi+0x8], edi
mov byte ptr [0xCFB340], 0x1
jle 0x23
mov eax, dword ptr [esi+0x4]
mov al, byte ptr [edi+eax*1]
test al, al
js 0x11
mov ecx, dword ptr [esi+0xC]
imul ecx, edi
add ecx, dword ptr [esi]
push 0x1
call 0x4CB530
add edi, 0x1
cmp edi, dword ptr [esi+0x8]
jl 0xFFFFFFE1
pop edi
xor eax, eax
pop esi
ret
while not EntityInteract(pos, 1, "BUT_ENTER", 5, 7, 9) do
function EntityInteract(info, radius, instruction, length, corona, button, bOverrideGrapple)
local x, y, z
if type(info) == "table" then
x = info.x
y = info.y
z = info.z
if corona == 3 then
z = z + 0.6
end
elseif type(info) == "number" then
if corona == 3 then
x, y, z = PedGetHeadPos(info)
else
x, y, z = PedGetPosXYZ(info)
end
end
if PedIsInAreaXYZ(gPlayer, x, y, z, radius, corona) then
if IsButtonPressed(button, 0) then
if bOverrideGrapple then
PedSetActionNode(gPlayer, "/Global/Ambient/MissionSpec/PlayerIdle/IdleOneFrame", "Act/Anim/Ambient.act")
end
TextPrint(instruction, 0, 3)
textPrinting = false
return true
else
if instruction ~= nil then
TextPrint(instruction, 0.1, 3)
textPrinting = true
end
return false
end
elseif textPrinting == true then
textPrinting = false
end
return nil
end
A standard Lua 5.0 function documented on lua.org.
ExecuteActionNode(char, "/Global/Ambient/Scripted/Carny/CarnyGame", "Act/Anim/Ambient.act")
ExecuteActionNode(char, "/Global/Ambient/Scripted/Carny/CarnyHouse", "Act/Anim/Ambient.act")
ExecuteActionNode(char, "/Global/Ambient/Scripted/Drunk", "Act/Anim/Ambient.act")
ExecuteActionNode(cheerleader1, "/Global/Ambient/Scripted/Cheering", "Act/Anim/Ambient.act")
ExecuteActionNode(cheerleader2, "/Global/Ambient/Scripted/Cheering", "Act/Anim/Ambient.act")
ExecuteActionNode(cheerleader3, "/Global/Ambient/Scripted/Cheering", "Act/Anim/Ambient.act")
ExecuteActionNode(dog, "/Global/Ambient/Scripted/GuardDog", "Act/Anim/Ambient.act")
ExecuteActionNode(gPlayer, "/Global/3_G3/CustomAnim/Dismiss", "Act/Conv/3_G3.act")
ExecuteActionNode(gPlayer, "/Global/3_G3/CustomAnim/Kiss", "Act/Conv/3_G3.act")
ExecuteActionNode(gPlayer, "/Global/Ambient/MissionSpec/WakeUp/GetUp", "Act/Anim/Ambient.act")
ExecuteActionNode(gPlayer, "/Global/Ambient/MissionSpec/WakeUp/WakeUp_Anywhere/WakeUpBank/GetUp", "Act/Anim/Ambient.act")
ExecuteActionNode(jock1, "/Global/Ambient/Scripted/Workout", "Act/Anim/Ambient.act")
ExecuteActionNode(jock2, "/Global/Ambient/Scripted/Workout", "Act/Anim/Ambient.act")
ExecuteActionNode(ped, "/Global/Ambient/Scripted/Dribble", "Act/Anim/Ambient.act")
ExecuteActionNode(pedGary.id, "/Global/1_11X1/Animations/GaryIdleInBed", "Act/Conv/1_11X1.act")
ExecuteActionNode(pedGary.id, "/Global/1_11X2/CutPlan/Gary92", "Act/Conv/1_11X2.act")
ExecuteActionNode(race.countdown_ped.id, race.countdown_ped.actionNodeStart, race.countdown_ped.actionFile)
ExecuteActionNode(shared.gDunkMidget, "/Global/Ambient/Scripted/Carny/CarnyDunk", "Act/Anim/Ambient.act")
ExecuteActionNode(shared.gEdnaID, "/Global/Ambient/Scripted/Cookin/Cook1", "Act/Anim/Ambient.act")
ExecuteActionNode(shared.gEdnaID, "/Global/Ambient/Scripted/Cookin/Cook2", "Act/Anim/Ambient.act")
ExecuteActionNode(shared.gPetey, "/Global/1_11X1/Animations/PeteCan/Cycle", "Act/Conv/1_11X1.act")
ExecuteActionNode(student, "/Global/Ambient/Scripted/Crying", "Act/Anim/Ambient.act")
ExecuteActionNode(tblCutscenePed.johnny.id, "/Global/3_G3/CustomAnim/Angry", "Act/Conv/3_G3.act")
ExecuteActionNode(tblCutscenePed.johnny.id, "/Global/3_G3/CustomAnim/StraightenCollar", "Act/Conv/3_G3.act")
local result = ExecuteActionNode(char, "/Global/Ambient/Scripted/SweepFloors", "Act/Anim/Ambient.act")
local result = ExecuteActionNode(char, "/Global/Ambient/Scripted/Wall_Lean", "Act/Anim/Ambient.act")
local result = ExecuteActionNode(char, "/Global/Ambient/Scripted/Wall_Smoke", "Act/Anim/Ambient.act")
local result = ExecuteActionNode(puker, "/Global/Ambient/Scripted/SpecialPuke", "Act/Anim/Ambient.act")
local result = ExecuteActionNode(Thug, "/Global/Ambient/Scripted/Wall_Hold", "Act/Anim/Ambient.act")
function ExecuteActionNode(ped, actionNode, fileName)
if string.find(actionNode, "Global") == nil then
--print("============>>>> YOU HAVE NOT SPECIFIED A PROPER PATH FOR THE NODE!!!!")
--print("============>>>> NODE PASSED IN: ", actionNode)
--print("============>>>> FILE NAME REFERRENCED: ", fileName)
do return end
end
while true do
Wait(0)
if ped == nil then
return nil
elseif PedIsDead(ped) then
return false
elseif not PedIsDead(ped) then
if not PedIsPlaying(ped, actionNode, true) and not PedIsPlaying(ped, actionNode, false) then
PedSetActionNode(ped, actionNode, fileName)
else
return true
end
end
end
end
ExitNIS()
push esi
mov esi, dword ptr [0xC0F5F4]
push edi
xor edi, edi
cmp dword ptr [esi+0x8], edi
mov byte ptr [0xCFB340], 0x0
jle 0x23
mov eax, dword ptr [esi+0x4]
mov al, byte ptr [edi+eax*1]
test al, al
js 0x11
mov ecx, dword ptr [esi+0xC]
imul ecx, edi
add ecx, dword ptr [esi]
push 0x0
call 0x4CB530
add edi, 0x1
cmp edi, dword ptr [esi+0x8]
jl 0xFFFFFFE1
pop edi
xor eax, eax
pop esi
ret
SHARED
Returns nothing if no file was found, or the file count if there's at least one.
On Windows, you may use magic characters like * or ? to search for files.
On Unix, this function is not supported.
SHARED
Returns an iterator function for each found file. Each returned value of the iterator is a table containing a "name" string and a "directory" boolean.
On Windows, you may use magic characters like * or ? to search for files.
On Unix, this function is not supported.
fire.id = FireCreate(fire.trigger, 750, 15, 100, 115, "GymFire")
fire0 = FireCreate(TRIGGER._JANEXTRAFIRE, FIREHEALTH, FIREDAMAGE, 100, 115, "boilerfire2")
fire01 = FireCreate(TRIGGER._3_S11_FIRE01, 0, 0, 5, 5)
fire01 = FireCreate(TRIGGER._5_03_FIRE01, 0, 0, 5, 5)
fire02 = FireCreate(TRIGGER._3_S11_FIRE02, 0, 0, 5, 5)
fire02 = FireCreate(TRIGGER._5_03_FIRE02, 0, 0, 5, 5)
fire03 = FireCreate(TRIGGER._3_S11_FIRE03, 0, 0, 5, 5)
fire03 = FireCreate(TRIGGER._5_03_FIRE03, 0, 0, 5, 5)
fire04 = FireCreate(TRIGGER._3_S11_FIRE04, 0, 0, 5, 5)
fire04 = FireCreate(TRIGGER._5_03_FIRE04, 0, 0, 5, 5)
fire05 = FireCreate(TRIGGER._3_S11_FIRE05, 0, 0, 5, 5)
fire05 = FireCreate(TRIGGER._5_03_FIRE05, 0, 0, 5, 5)
fire06 = FireCreate(TRIGGER._3_S11_FIRE06, 0, 0, 5, 5)
fire07 = FireCreate(TRIGGER._3_S11_FIRE07, 0, 0, 5, 5)
fire1 = FireCreate(TRIGGER._JANFIRE01, FIREHEALTH, FIREDAMAGE, 100, 115, "boilerfire2")
fire2 = FireCreate(TRIGGER._JANFIRE02, FIREHEALTH, FIREDAMAGE, 100, 115, "boilerfire2")
FireID = FireCreate(TRIGGER._SMALLCRATE2, 1000, 1, 1, 100)
flame.fireId = FireCreate(flame.trigger, 1000, 15, 100, 150, "GymFire")
idFire = FireCreate(TRIGGER._TPHOTO_FIRE, 10000, 1, 20, 100)
idFire = FireCreate(TRIGGER._TPHOTO_FIREG, 10000, 1, 20, 100)
local fireId = FireCreate(trigger, 1000, 20, 100, 115, effectName)
tblEntry.idFire = FireCreate(tblEntry.trigger, 1000, FIREDAMAGE, 100, 115, "GymFire")
tblFireEntry.idFire = FireCreate(tblFireEntry.propTrigger, interval, damage, minHealth, maxHealth)
tblFires[tableSize + 1].idFire = FireCreate(TRIGGER._5_04_BANNERS_03, 1000, FIREDAMAGE, 100, 150, "GymFire")
triggerFire.fx = FireCreate(triggerFire.trigger, FIREHEALTH, FIREDAMAGE, 100, 115, "boilerfire2")
sub esp, 0x10
push esi
push edi
mov edi, dword ptr [esp+0x1C]
push 0x0
push edi
call LuaParam::GetInt
push 0x1
push edi
mov esi, eax
call LuaParam::GetInt
push 0x2
push edi
mov dword ptr [esp+0x24], eax
call LuaParam::GetInt
push 0x3
push edi
mov dword ptr [esp+0x28], eax
call LuaParam::GetInt
push 0x4
push edi
mov dword ptr [esp+0x3C], eax
call LuaParam::GetInt
push edi
mov dword ptr [esp+0x3C], eax
call LuaParam::GetParamCount
add esp, 0x2C
cmp eax, 0x6
jnz 0xF
push 0x5
push edi
call LuaParam::GetString
add esp, 0x8
jmp 0x4
xor eax, eax
test esi, esi
jl 0x11
mov edx, dword ptr [0x20C7C48]
mov ecx, dword ptr [edx+0x4]
test byte ptr [esi+ecx*1], 0x80
jz 0x6
xor ecx, ecx
jmp 0xA
mov ecx, dword ptr [edx+0xC]
imul ecx, esi
add ecx, dword ptr [edx]
mov edx, dword ptr [ecx+0x4]
push eax
push 0x0
lea eax, ptr [ecx+0x4]
push ecx
sub esp, 0xC
mov ecx, esp
mov dword ptr [ecx], edx
mov edx, dword ptr [eax+0x4]
mov eax, dword ptr [eax+0x8]
mov dword ptr [ecx+0x4], edx
mov dword ptr [ecx+0x8], eax
mov ecx, 0xBD0CF8
call 0x42DB60
fild st, dword ptr [esp+0x8]
sub esp, 0x8
mov esi, eax
fstp dword ptr [esp+0x4], st
mov ecx, 0xBD0CF8
fild st, dword ptr [esp+0x14]
fmul st, qword ptr [0x900FA0]
fstp dword ptr [esp+0x14], st
fld st, dword ptr [esp+0x14]
fstp dword ptr [esp], st
push esi
call 0x42D820
fild st, dword ptr [esp+0x10]
sub esp, 0x8
mov ecx, 0xBD0CF8
fstp dword ptr [esp+0x4], st
fild st, dword ptr [esp+0x1C]
fstp dword ptr [esp], st
push esi
call 0x42D860
push esi
push edi
call LuaParam::PushInt
add esp, 0x8
pop edi
mov eax, 0x1
pop esi
add esp, 0x10
ret
FireDestroy(fire)
FireDestroy(fire.id)
FireDestroy(fire01)
FireDestroy(fire02)
FireDestroy(fire03)
FireDestroy(fire04)
FireDestroy(fire05)
FireDestroy(fire06)
FireDestroy(fire07)
FireDestroy(fire1)
FireDestroy(fire2)
FireDestroy(fireEffect)
FireDestroy(FireID)
FireDestroy(flame.fireId)
FireDestroy(idFire)
FireDestroy(tblEntry.idFire)
FireDestroy(triggerFire.fx)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x8
test eax, eax
jl 0xD
push eax
mov ecx, 0xBD0CF8
call 0x42D880
xor eax, eax
ret
elseif FireGetHealth(tblEntry.idFire) <= 0 then
elseif room == ROOM_04 and FireGetHealth(triggerFire.fx) <= 0 then
Health = FireGetHealth(FireID)
if FireGetHealth(tblEntry.idFire) > 0 then
if not fire.bOut and 0 >= FireGetHealth(fire.id) then
if tblEntry.idFire ~= nil and FireGetHealth(tblEntry.idFire) > 0 then
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, 0xBD0CF8
call 0x42D840
call 0x85C720
push eax
push esi
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
pop esi
ret
FireSetDamageRadius(fire.id, 1)
FireSetDamageRadius(fireId, 1)
FireSetDamageRadius(FireID, 1)
FireSetDamageRadius(flame.fireId, 0.5)
FireSetDamageRadius(tblEntry.idFire, 1)
FireSetDamageRadius(tblFires[tableSize + 1].idFire, 1)
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x18], st
fld st, dword ptr [esp+0x18]
add esp, 0xC
fstp dword ptr [esp], st
push edi
mov ecx, 0xBD0CF8
call 0x42D7E0
pop edi
xor eax, eax
pop esi
pop ecx
ret
FireSetScale(fire.id, 1)
FireSetScale(fireId, 1)
FireSetScale(FireID, 1)
FireSetScale(flame.fireId, 1)
FireSetScale(tblEntry.idFire, 1)
FireSetScale(tblFires[tableSize + 1].idFire, 1)
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x18], st
fld st, dword ptr [esp+0x18]
add esp, 0xC
fstp dword ptr [esp], st
push edi
mov ecx, 0xBD0CF8
call 0x42D800
pop edi
xor eax, eax
pop esi
pop ecx
ret
-- never used
mov eax, dword ptr [0xBD0FC4]
push eax
call 0x531930
mov ecx, dword ptr [0xBD0FC4]
push ecx
call 0x532330
mov edx, dword ptr [0xBD0FC4]
push edx
call 0x49A650
call 0x530B50
push 0x0
call 0x530A70
add esp, 0x10
xor eax, eax
ret
FollowCamDefaultFightShot()
push ecx
mov eax, esp
mov ecx, 0xC3CC68
mov dword ptr [eax], 0x1
call 0x4F3590
push 0x0
mov ecx, eax
call 0x4FB6D0
xor eax, eax
ret
FollowCamDefaultVehicleShot()
push ecx
mov eax, esp
mov ecx, 0xC3CC68
mov dword ptr [eax], 0x1
call 0x4F3590
push 0x0
mov ecx, eax
call 0x4FB6E0
xor eax, eax
ret
FollowCamSetFightShot("1_B_X")
FollowCamSetFightShot("4B1")
FollowCamSetFightShot("4B2")
mov eax, dword ptr [esp+0x4]
push esi
push 0x0
push eax
call LuaParam::GetString
add esp, 0x4
mov esi, eax
mov eax, esp
mov ecx, 0xC3CC68
mov dword ptr [eax], 0x1
call 0x4F3590
push esi
mov ecx, eax
call 0x4FB6D0
xor eax, eax
pop esi
ret
FollowCamSetVehicleShot("JunkyardChase")
FollowCamSetVehicleShot("LawnMover")
FollowCamSetVehicleShot("PaperRoute")
mov eax, dword ptr [esp+0x4]
push esi
push 0x0
push eax
call LuaParam::GetString
add esp, 0x4
mov esi, eax
mov eax, esp
mov ecx, 0xC3CC68
mov dword ptr [eax], 0x1
call 0x4F3590
push esi
mov ecx, eax
call 0x4FB6E0
xor eax, eax
pop esi
ret
CLIENT
Similar to PedSetActionNode, but forces the node to play by ignoring any conditions for the node.
Note that there is no argument for loading an action tree. If needed, use LoadActionTree first.
CLIENT
Like ForceActionNode, but for facial nodes. Can have unexpected but interesting effects when playing a node.
ForceMissionAvailable("2_03")
ForceMissionAvailable("6_PassAll")
ForceMissionAvailable("C_Chem_1")
push ecx
mov eax, dword ptr [esp+0x8]
push 0x0
push eax
call LuaParam::GetString
add esp, 0x8
push eax
lea ecx, ptr [esp+0x4]
call 0x5FA910
lea ecx, ptr [esp]
push ecx
mov ecx, 0x20C3CA0
call 0x6A9FD0
cmp eax, 0xFFFFFFFF
jz 0x1D
push eax
mov ecx, 0x20C3CA0
call 0x6AA7C0
or byte ptr [eax+0x4], 0x2
push 0x1
mov ecx, 0x20C3CA0
call 0x6AD290
lea ecx, ptr [esp]
call 0x49A650
xor eax, eax
pop ecx
ret
ForceStartMission("1_05")
ForceStartMission("1_E01")
ForceStartMission("3_08_Launch")
ForceStartMission("5_07a")
ForceStartMission("6_01")
ForceStartMission("6_01_Launch")
ForceStartMission("C_Chem_1")
ForceStartMission("C_Dodgeball_5")
ForceStartMission("PriOff")
ForceStartMission(gFightMission)
ForceStartMission(gRunMission, true)
ForceStartMission(missionName)
success, err = pcall(ForceStartMission, param)
sub esp, 0x8
push esi
mov esi, dword ptr [esp+0x10]
push 0x0
push esi
call LuaParam::GetString
add esp, 0x8
push eax
lea ecx, ptr [esp+0x8]
call 0x5FA910
push 0x0
push 0x1
push esi
call LuaParam::GetBool ; optional
mov byte ptr [esp+0x14], al
add esp, 0xC
lea eax, ptr [esp+0x4]
push eax
mov ecx, 0x20C3CA0
call 0x6A9FD0
mov esi, eax
push esi
mov ecx, 0x20C3CA0
call 0x6AA7C0
or byte ptr [eax+0x4], 0x2
push 0x1
mov ecx, 0x20C3CA0
call 0x6AD290
mov ecx, dword ptr [esp+0x8]
push ecx
push esi
mov ecx, 0x20C3CA0
call 0x6AD100
lea ecx, ptr [esp+0x4]
call 0x49A650
xor eax, eax
pop esi
add esp, 0x8
ret
ForceStartMissionIndex(missionIndex)
mov eax, dword ptr [esp+0x4]
push esi
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x8
mov ecx, 0x20C3CA0
mov esi, eax
call 0x6AA680
mov ecx, eax
call 0x6AA3F0
test al, al
jz 0x21
push 0x0
push 0x0
push 0x0
push 0x1
push 0x0
push 0x0
push 0x1
mov ecx, 0x20C3CA0
call 0x6AA680
mov ecx, eax
call 0x6AA300
push esi
mov ecx, 0x20C3CA0
call 0x6AA7C0
or byte ptr [eax+0x4], 0x2
push 0x1
mov ecx, 0x20C3CA0
call 0x6AD290
push 0x0
push esi
mov ecx, 0x20C3CA0
call 0x6AD100
xor eax, eax
pop esi
ret
CLIENT
Like ForceActionNode, but for task nodes. Can have unexpected but interesting effects when playing a node.
function F_1_02CCompleted()
return shared.g1_02_Completed == true and 1 or 0
end
function F_2_04_FirstAttempt()
return PlayerGetScriptSavedData(23) ~= 1 and 1 or 0
end
function F_2_04_NotFirstAttempt()
if PlayerGetScriptSavedData(23) == 1 then
return 1
else
return 0
end
end
function F_2_R03_FirstAttempt()
return GetMissionAttemptCount("2_R03") == 0 and 1 or 0
end
function F_2_R03_NotFirstAttempt()
return GetMissionAttemptCount("2_R03") > 0 and 1 or 0
end
function F_3_S11_FirstAttempt()
return GetMissionAttemptCount("3_S11") == 0 and 1 or 0
end
function F_3_S11_NotFirstAttempt()
return GetMissionAttemptCount("3_S11") > 0 and 1 or 0
end
function F_AlarmSound()
local Area = AreaGetVisible()
if Area == 14 then
SoundPlay3DIgnoreFade(-493.3519, 315.53796, 32.145157, "Alarm Clock", "large")
elseif Area == 30 then
SoundPlay3DIgnoreFade(-738.806, 38.3087, -1.3985, "Alarm Clock", "large")
elseif Area == 59 then
SoundPlay3DIgnoreFade(-743.409, 355.714, 4.09885, "Alarm Clock", "large")
elseif Area == 60 then
SoundPlay3DIgnoreFade(-765.543, 358.094, 7.2061, "Alarm Clock", "large")
elseif Area == 57 then
SoundPlay3DIgnoreFade(-654.122, 250.885, 15.9965, "Alarm Clock", "large")
elseif Area == 61 then
SoundPlay3DIgnoreFade(-699.269, 341.508, 4.02137, "Alarm Clock", "large")
end
end
F_AreaTableAdd({
function F_AreaTableAdd(newElement)
shared.areaTable[shared.areaTable.size] = newElement
shared.areaTable.size = shared.areaTable.size + 1
end
function F_AreaTableGetProperty(index, property)
return shared.areaTable[index][property]
end
function F_AreaTableGetSize()
return shared.areaTable.size
end
elseif AreaPOICompareName(POIInfo, "F_Arrest") then
F_Arrest,
function F_Arrest(POIInfo, POIPointType, POIPointFaction, POIPointNum, POIGender, ped1, ped2, ped3, ped4)
local modelchance, copmodel
if POIGender == 0 then
POIGender = 1
end
if MissionActive() then
return
end
if POIPointFaction == 7 then
modelchance = math.random(1, 100)
if modelchance < 75 then
ped1 = RandomElement2(157, 116)
else
ped1 = GetStudent(3, POIGender)
end
else
ped1 = GetStudent(12, POIGender)
end
if ped1 == -1 then
return
end
if POIPointFaction == 7 then
copmodel = RandomElement4(83, 97, 234, 238)
LoadPedPOIModel(ped1)
LoadPedPOIModel(copmodel)
ped2 = PedCreatePOIPoint(ped1, POIInfo, 0, 0, 0)
ped3 = PedCreatePOIPoint(copmodel, POIInfo, -2, 0, 0)
else
LoadPedPOIModel(ped1)
LoadPedPOIModel(53)
ped2 = PedCreatePOIPoint(ped1, POIInfo, 0, 0, 0)
ped3 = PedCreatePOIPoint(53, POIInfo, -1, 0, 0)
end
if ped2 == -1 or ped3 == -1 then
return
end
PedSetFlag(ped2, 120, true)
PedSetFlag(ped3, 120, true)
PedFaceObjectNow(ped2, ped3, 2)
PedFaceObjectNow(ped3, ped2, 2)
PedSetPunishmentPoints(ped2, 175)
PedFlee(ped2, ped3)
end
elseif AreaPOICompareName(POIInfo, "F_BikeCheckout") then
F_BikeCheckout,
function F_BikeCheckout(POIInfo, POIPointType, POIPointFaction, POIPointNum, POIGender, ped1, ped2, ped3, ped4)
ped1 = RandomElement4(279, 278, 280, 274)
local vehicle, curPed
local x, y, z = 0, 0, 0
local pedcount
if POIPointNum == 0 then
POIPointNum = math.random(2, 3)
end
LoadVehiclePOIModel(ped1)
for i = 1, POIPointNum do
local pedModel = GetStudent(POIPointFaction, 1, -1)
LoadPedPOIModel(pedModel)
if pedModel ~= -1 then
if i == 1 then
curPed = PedCreatePOIPoint(pedModel, POIInfo, 0, 0, 0)
elseif i == 2 then
curPed = PedCreatePOIPoint(pedModel, POIInfo, -1.5, 0, 0)
elseif i == 3 then
curPed = PedCreatePOIPoint(pedModel, POIInfo, 0, 1.5, 0)
elseif i == 4 then
curPed = PedCreatePOIPoint(pedModel, POIInfo, 1.5, 0, 0)
end
end
if curPed ~= -1 and PedIsValid(curPed) and vehicle == nil then
x, y, z = PedGetPosXYZ(curPed)
vehicle = VehicleCreateXYZ(ped1, x, y, z)
VehicleModelNotNeededAmbient(vehicle)
if VehicleIsValid(vehicle) then
VehicleFaceHeading(vehicle, PedGetHeading(curPed))
end
PedDelete(curPed)
end
if vehicle ~= -1 and PedIsValid(curPed) then
PedTargetVehicle(curPed, vehicle)
PedFaceXYZ(curPed, x, y, z, 0)
VehicleSetOwner(vehicle, curPed)
PedSetFlag(curPed, 120, true)
end
end
if vehicle ~= nil and VehicleIsValid(vehicle) and vehicle ~= -1 then
VehicleMakeAmbient(vehicle)
end
end
elseif AreaPOICompareName(info, "F_Biker") then
elseif AreaPOICompareName(POIInfo, "F_Biker") then
F_Biker,
function F_Biker(POIInfo, POIPointType, POIPointFaction, POIPointNum, POIGender, ped1, ped2, ped3, ped4)
if AreaIsLoading() or GetCurrentNumOfAmbientBikes() > 4 then
return
end
local bike, facchoice
local hour, minute = ClockGet()
if POIPointFaction == 12 then
if 19 <= hour or hour < 7 then
facchoice = RandomElement2(3, 4)
else
facchoice = RandomElement7(11, 1, 6, 6, 5, 2, 4)
end
else
facchoice = POIPointFaction
end
if facchoice == -1 then
return
end
if POIGender == 0 then
if facchoice ~= 6 then
if math.random(1, 100) > 15 or facchoice == 11 then
POIGender = 1
else
POIGender = 2
end
elseif math.random(1, 100) > 40 then
POIGender = 1
else
POIGender = 2
end
end
local biker = GetStudent(facchoice, POIGender, -1)
if POIGender == 2 then
bike = 281
elseif facchoice == 1 then
bike = RandomElement2(281, 274)
elseif facchoice == 4 then
bike = RandomElement2(279, 282)
elseif facchoice == 5 then
bike = RandomElement2(283, 282)
else
bike = RandomElement2(274, 279)
end
if biker == -1 or bike == -1 then
return
end
LoadPedPOIModel(biker)
while not VehicleRequestModel(bike, true) and POIIsValid(POIInfo) do
Wait(0)
end
if POIIsValid(POIInfo) then
local x, y, z = 0, 0, 0
local CanCreate = false
if AreaGetVisible() ~= 62 then
for pos = 1, 20 do
x, y, z = VehicleFindRandomSpawnPosition(bike)
if x ~= 9999 then
pos = 21
CanCreate = true
else
pos = pos + 1
end
end
elseif POIIsValid(POIInfo) then
x, y, z = POIGetPosXYZ(POIInfo)
CanCreate = true
else
CanCreate = false
end
local CanCreateNearXYZ = CanCreateVehicleNearXYZ(x, y, z)
if CanCreate == true and CanCreateNearXYZ == true then
local ride = VehicleCreateXYZ(bike, x, y, z)
VehicleModelNotNeededAmbient(ride)
local rider = PedCreateXYZ(biker, x, y, z + 1)
if ride ~= -1 and rider ~= -1 then
PedSetFlag(rider, 120, true)
PedWander(rider, 0)
VehicleSetOwner(ride, rider)
PedPutOnBike(rider, ride)
PedMakeAmbient(rider)
VehicleMakeAmbient(ride)
if AreaGetVisible() == 62 then
PedOverrideStat(rider, 24, 70)
PedSetFlag(rider, 120, false)
PedClearPOI(rider)
end
end
end
end
ModelNotNeededAmbient(biker)
ModelNotNeededAmbient(bike)
end
BRAWL = { F_Brawl, F_GangBeat },
elseif AreaPOICompareName(POIInfo, "F_Brawl") then
F_Brawl,
function F_Brawl(POIInfo, POIPointType, POIPointFaction, POIPointNum, POIGender, ped1, ped2, ped3, ped4)
local VictimChoice, Victim, Thug, ThugChoice
local spawnGender = 1
local numthugs = 0
local factionchoice
local NThug = false
local weaponchoice, weaponroll
numthugs = math.random(1, 2)
if POIPointFaction == 9 or POIPointFaction == 10 then
numthugs = 1
end
if POIGender == 0 then
spawnGender = 1
else
spawnGender = POIGender
end
if POIPointFaction == 12 then
POIPointFaction = RandomElement5(4, 11, 5, 2, 1)
end
if POIPointFaction == 1 then
NThug = true
end
factionchoice = F_GetOpposingFaction(POIPointFaction)
for count = 1, numthugs do
ThugChoice = GetStudent(POIPointFaction, spawnGender)
VictimChoice = GetStudent(factionchoice, spawnGender)
if ThugChoice == VictimChoice then
return
end
if VictimChoice ~= -1 and ThugChoice ~= -1 then
LoadPedPOIModel(VictimChoice)
LoadPedPOIModel(ThugChoice)
Thug = PedCreatePOIPoint(ThugChoice, POIInfo, count, count * -0.5, 0)
Victim = PedCreatePOIPoint(VictimChoice, POIInfo, count, count, 0)
if Victim ~= -1 then
PedWander(Victim, 0)
end
if Thug ~= -1 then
PedWander(Thug, 0)
end
if Victim ~= -1 and Thug ~= -1 then
if NThug == true and PedGetWeapon(Thug) == -1 then
F_SelectBrawlWeapon(Thug, POIPointFaction)
end
if POIPointFaction == 10 then
PedSetFaction(Thug, 9)
end
PedAttack(Thug, Victim, 0, true)
PedAttack(Victim, Thug, 0, true)
end
Thug = -1
Victim = -1
end
end
end
F_BuildAreaTable()
function F_BuildAreaTable()
F_AreaTableAdd({
zone = 0,
name = "Business District",
x = 458.59,
y = -80.7372,
z = 5.91727,
h = 0
})
F_AreaTableAdd({
zone = 0,
name = "Rich Area",
x = 338.8,
y = 113.8,
z = 7.8,
h = 90
})
F_AreaTableAdd({
zone = 0,
name = "Cemetery",
x = 616.307,
y = 238.97,
z = 19,
h = 90
})
F_AreaTableAdd({
zone = 0,
name = "Carnival",
x = 226.2,
y = 412.6,
z = 5,
h = 150
})
F_AreaTableAdd({
zone = 0,
name = "Industrial Area",
x = 355,
y = -432,
z = 3,
h = 0
})
F_AreaTableAdd({
zone = 0,
name = "School Grounds",
x = 272.68,
y = -73.1309,
z = 6.96913,
h = 90
})
F_AreaTableAdd({
zone = 0,
name = "School Rooftop",
x = 185.78,
y = -65.8,
z = 26.09,
h = 90
})
F_AreaTableAdd({
zone = 2,
name = "School Hallways",
x = -628.7,
y = -326.3,
z = 0,
h = 90
})
F_AreaTableAdd({
zone = 2,
name = "Principal (Front Desk)",
x = -633.348,
y = -292.075,
z = 6.415,
h = 90
})
F_AreaTableAdd({
zone = 5,
name = "Principal (Office)",
x = -701.084,
y = 213.482,
z = 31.957,
h = 90
})
F_AreaTableAdd({
zone = 23,
name = "Staff Room",
x = -655.347,
y = 228.989,
z = 0,
h = 0
})
F_AreaTableAdd({
zone = 6,
name = "Biology",
x = -709.749,
y = 312.36,
z = 33.574,
h = 0
})
F_AreaTableAdd({
zone = 4,
name = "Chemistry",
x = -599.199,
y = 326.327,
z = 34.411,
h = 0
})
F_AreaTableAdd({
zone = 8,
name = "Janitors Room",
x = -746.935,
y = -51.183,
z = 9.301,
h = 0
})
F_AreaTableAdd({
zone = 9,
name = "Library",
x = -784.875,
y = 203.098,
z = 90.31,
h = 0
})
F_AreaTableAdd({
zone = 35,
name = "Girls Dorm",
x = -454,
y = 311,
z = 3.5,
h = 0
})
F_AreaTableAdd({
zone = 14,
name = "Boys Dorm",
x = -502.47,
y = 309.606,
z = 31.963,
h = 0
})
F_AreaTableAdd({
zone = 15,
name = "Classroom",
x = -563.082,
y = 316.99,
z = -1.8,
h = 0
})
F_AreaTableAdd({
zone = 15,
name = "Classroom 2",
x = -563.082,
y = 316.99,
z = 6.174,
h = 0
})
F_AreaTableAdd({
zone = 17,
name = "Art Room",
x = -536.998,
y = 376.584,
z = 14.18,
h = 0
})
F_AreaTableAdd({
zone = 13,
name = "Pool and Gym",
x = -623.211,
y = -72.821,
z = 60.119,
h = 0
})
F_AreaTableAdd({
zone = 18,
name = "Auto shop",
x = -427.469,
y = 365.065,
z = 81.1,
h = 0
})
F_AreaTableAdd({
zone = 32,
name = "Prep House",
x = -569.538,
y = 133.33,
z = 46.3,
h = 0
})
F_AreaTableAdd({
zone = 19,
name = "Auditorium",
x = -778.496,
y = 292.221,
z = 77.951,
h = 0
})
F_AreaTableAdd({
zone = 26,
name = "General Store",
x = -573.884,
y = 388.877,
z = 0.213,
h = 90
})
F_AreaTableAdd({
zone = 27,
name = "Boxing Club",
x = -702.445,
y = 372.796,
z = 293.937,
h = 252.5
})
F_AreaTableAdd({
zone = 29,
name = "Bike Shop",
x = -785.601,
y = 380.055,
z = 0.73,
h = 0
})
F_AreaTableAdd({
zone = 30,
name = "Comic Shop",
x = -724.707,
y = 12.604,
z = 1.696,
h = 0
})
F_AreaTableAdd({
zone = 36,
name = "Tenements",
x = -544.463,
y = -48.881,
z = 32.009,
h = 0
})
F_AreaTableAdd({
zone = 34,
name = "Clothing (Poor)",
x = -647.592,
y = 255.706,
z = 1.436,
h = 0
})
F_AreaTableAdd({
zone = 33,
name = "Clothing (Rich)",
x = -707.636,
y = 257.073,
z = 0.3,
h = 0
})
F_AreaTableAdd({
zone = 37,
name = "Funhouse",
x = -704.7,
y = -537.944,
z = 8.26901,
h = 0
})
F_AreaTableAdd({
zone = 38,
name = "Asylum",
x = -736.295,
y = 422.404,
z = 2.5,
h = 30
})
F_AreaTableAdd({
zone = 39,
name = "Barber Shop",
x = -655.34,
y = 121.404,
z = 4.602,
h = 90
})
F_AreaTableAdd({
zone = 45,
name = "Ball Toss",
x = -792.618,
y = 89.306,
z = 10.34,
h = 90
})
F_AreaTableAdd({
zone = 20,
name = "Chemical Plant",
x = -759.167,
y = 96.995,
z = 31.413,
h = 0
})
F_AreaTableAdd({
zone = 40,
name = "Observatory",
x = -696.615,
y = 61.633,
z = 21.089,
h = 90
})
F_AreaTableAdd({
zone = 43,
name = "Junk Yard",
x = -588.417,
y = -632.785,
z = 5,
h = 0
})
F_AreaTableAdd({
zone = 45,
name = "Shooting Gallery",
x = -792.507,
y = 75.569,
z = 10.34,
h = 90
})
F_AreaTableAdd({
zone = 42,
name = "GoKart Track 2",
x = -338.426,
y = 494.663,
z = 3.008,
h = 90
})
F_AreaTableAdd({
zone = 16,
name = "Tattoo Trailer",
x = -654.824,
y = 80.927,
z = 0.345,
h = 90
})
F_AreaTableAdd({
zone = 46,
name = "Hair Salon",
x = -766.037,
y = 17.693,
z = 3.714,
h = 0
})
F_AreaTableAdd({
zone = 51,
name = "Arcade Race LV 1",
x = -31.612,
y = 68.692,
z = 27.516,
h = 0
})
F_AreaTableAdd({
zone = 52,
name = "Arcade Race LV 2",
x = -94.936,
y = -72.928,
z = 0.99,
h = 0
})
F_AreaTableAdd({
zone = 53,
name = "Arcade Race LV 3",
x = -9.347,
y = 62.253,
z = 63.251,
h = 0
})
F_AreaTableAdd({
zone = 50,
name = "Souvenir Shop",
x = -794.68,
y = 45.84,
z = 7.256,
h = 90
})
F_AreaTableAdd({
zone = 54,
name = "Warehouse",
x = -672.404,
y = -154.813,
z = 1.04,
h = 0
})
F_AreaTableAdd({
zone = 56,
name = "Poor Barbershop",
x = -664.978,
y = 393.284,
z = 2.878,
h = 0
})
F_AreaTableAdd({
zone = 55,
name = "Freak Show",
x = -469.61,
y = -78.906,
z = 9.278,
h = 90
})
F_AreaTableAdd({
zone = 57,
name = "Drop Out Save Zone",
x = -654.664,
y = 244.846,
z = 15.485,
h = 0
})
F_AreaTableAdd({
zone = 60,
name = "Preppies Save Zone",
x = -773.434,
y = 349.695,
z = 6.869,
h = 0
})
F_AreaTableAdd({
zone = 59,
name = "Jocks Save Zone",
x = -749.179,
y = 347.235,
z = 4.064,
h = 0
})
F_AreaTableAdd({
zone = 61,
name = "Greaser Save Zone",
x = -692.013,
y = 341.897,
z = 3.534,
h = 0
})
F_AreaTableAdd({
zone = 62,
name = "BMX Track",
x = -780.997,
y = 634.384,
z = 29.298,
h = 0
})
F_AreaTableAdd({
zone = 0,
name = "Poor Area",
x = 499.367,
y = -245.193,
z = 1.94765,
h = -90
})
F_AreaTableAdd({
zone = 0,
name = "Nerd Fort",
x = 50.256,
y = -135.00665,
z = 11.905,
h = 180
})
end
F_BuildCutsceneTable()
function F_BuildCutsceneTable()
local schoolx, schooly, schoolz = GetPointList(POINTLIST._PLAYER_START)
cutsceneTable = {
{
name = "3-01AA",
x = 552.863,
y = -372.85,
IPLs = true,
collision = true,
textures = true,
area = 0,
radius = 10,
time = 123033.33,
setupCutscene = false,
specialInit = false
},
{
name = "3-01AB",
x = 552.931,
y = -372.72,
IPLs = true,
collision = true,
textures = true,
area = 0,
radius = 10,
time = 18633.33,
setupCutscene = false,
specialInit = false
},
{
name = "3-01BA",
x = 505.355,
y = -114.183,
IPLs = true,
collision = true,
textures = true,
area = 0,
radius = 10,
time = 72866.66,
setupCutscene = false,
specialInit = false
},
{
name = "3-01CA",
x = -769.51,
y = -298.518,
IPLs = true,
collision = true,
textures = true,
area = 2,
radius = 10,
time = 132733.33,
setupCutscene = false,
specialInit = false
},
{
name = "3-01CB",
x = -618.733,
y = 309.034,
IPLs = true,
collision = true,
textures = true,
area = 19,
radius = 10,
time = 32266.66,
setupCutscene = false,
specialInit = false
},
{
name = "3-01DA",
x = 490.276,
y = -115.97,
IPLs = true,
collision = true,
textures = true,
area = 0,
radius = 10,
time = 55333.33,
setupCutscene = false,
specialInit = false
},
{
name = "3-01DB",
x = 490.097,
y = -115.898,
IPLs = true,
collision = true,
textures = true,
area = 0,
radius = 10,
time = 38066.66,
setupCutscene = false,
specialInit = false
},
{
name = "3-01DC",
x = 496.624,
y = -116.894,
IPLs = true,
collision = true,
textures = true,
area = 0,
radius = 10,
time = 29500,
setupCutscene = false,
specialInit = false
},
{
name = "2-S07",
x = -791.509,
y = 49.14,
IPLs = true,
collision = true,
textures = true,
area = 50,
radius = 10,
time = 33533.33,
setupCutscene = false,
specialInit = false
},
{
name = "3-R05A",
x = -595.011,
y = 325.748,
IPLs = true,
collision = true,
textures = true,
area = 4,
radius = 10,
time = 66833,
setupCutscene = false,
specialInit = false
},
{
name = "3-R05B",
x = -595.011,
y = 325.748,
IPLs = true,
collision = true,
textures = true,
area = 4,
radius = 10,
time = 9000,
setupCutscene = false,
specialInit = false
},
{
name = "3-R07",
x = 498.083,
y = -391.829,
IPLs = true,
collision = true,
textures = true,
area = 0,
radius = 10,
time = 58333.33,
setupCutscene = false,
specialInit = false
},
{
name = "3-S08",
x = 283.343,
y = -460.467,
IPLs = true,
collision = true,
textures = true,
area = 0,
radius = 10,
time = 63166.66,
setupCutscene = false,
specialInit = false
},
{
name = "CS_COUNTER",
x = -501.584,
y = 324.111,
IPLs = true,
collision = true,
textures = true,
area = 14,
radius = 10,
time = 59166.66,
setupCutscene = false,
specialInit = false
},
{
name = "1-1-1",
x = schoolx,
y = schooly,
IPLs = true,
collision = true,
textures = true,
area = 0,
radius = 10,
time = 61666.66,
setupCutscene = false,
specialInit = false,
bEvent = false
},
{
name = "1-1-2",
x = -705.909,
y = 227.981,
IPLs = true,
collision = true,
textures = true,
area = 5,
radius = 10,
time = 96600,
setupCutscene = false,
specialInit = false
},
{
name = "1-01",
x = 368.5,
y = 142.344,
IPLs = true,
collision = true,
textures = true,
area = 0,
radius = 10,
time = 96666.66,
setupCutscene = false,
specialInit = false
},
{
name = "1-02B",
x = -501.584,
y = 324.111,
IPLs = true,
collision = true,
textures = true,
area = 14,
radius = 10,
time = 40666.664,
setupCutscene = false,
specialInit = false
},
{
name = "1-02D",
x = -636.376,
y = -285.512,
IPLs = true,
collision = true,
textures = true,
area = 2,
radius = 10,
time = 51800,
setupCutscene = false,
specialInit = false
},
{
name = "1-02E",
x = -501.584,
y = 324.111,
IPLs = true,
collision = true,
textures = true,
area = 14,
radius = 10,
time = 81666.66,
setupCutscene = false,
specialInit = false
},
{
name = "1-03",
x = 212.481,
y = -71.042,
IPLs = true,
collision = true,
textures = true,
area = 0,
radius = 10,
time = 47700,
setupCutscene = false,
specialInit = false
},
{
name = "1-04",
x = -502.47,
y = 309.606,
IPLs = true,
collision = true,
textures = true,
area = 14,
radius = 10,
time = 92600,
setupCutscene = false,
specialInit = false
},
{
name = "1-05",
x = -784.875,
y = 203.098,
IPLs = true,
collision = true,
textures = true,
area = 9,
radius = 10,
time = 61200,
setupCutscene = false,
specialInit = false
},
{
name = "1-06",
x = -502.47,
y = 309.606,
IPLs = true,
collision = true,
textures = true,
area = 14,
radius = 10,
time = 86666.66,
setupCutscene = false,
specialInit = false
},
{
name = "1-06B",
x = 158.411,
y = 25.486,
IPLs = true,
collision = true,
textures = true,
area = 0,
radius = 10,
time = 90833.33,
setupCutscene = false,
specialInit = false
},
{
name = "1-07",
x = -501.584,
y = 324.111,
IPLs = true,
collision = true,
textures = true,
area = 14,
radius = 10,
time = 97733.33,
setupCutscene = false,
specialInit = true
},
{
name = "1-08",
x = -454,
y = 311,
IPLs = true,
collision = true,
textures = true,
area = 35,
radius = 10,
time = 66666.664,
setupCutscene = false,
specialInit = false
},
{
name = "1-09",
x = -672.179,
y = -307.402,
IPLs = true,
collision = true,
textures = true,
area = 2,
radius = 10,
time = 81833.33,
setupCutscene = false,
specialInit = false
},
{
name = "1-10",
x = -502.47,
y = 309.606,
IPLs = true,
collision = true,
textures = true,
area = 14,
radius = 10,
time = 63833.33,
setupCutscene = false,
specialInit = false
},
{
name = "1-11",
x = -502.47,
y = 309.606,
IPLs = true,
collision = true,
textures = true,
area = 14,
radius = 10,
time = 45666.66,
setupCutscene = false,
specialInit = false
},
{
name = "1-B",
x = -772.455,
y = -134.553,
IPLs = true,
collision = true,
textures = true,
area = 8,
radius = 10,
time = 67666.664,
setupCutscene = false,
specialInit = false
},
{
name = "1-BB",
x = -772.455,
y = -134.553,
IPLs = true,
collision = true,
textures = true,
area = 8,
radius = 10,
time = 9666.66,
setupCutscene = false,
specialInit = false
},
{
name = "1-BC",
x = -772.455,
y = -134.553,
IPLs = true,
collision = true,
textures = true,
area = 8,
radius = 10,
time = 62333.33,
setupCutscene = false,
specialInit = false
},
{
name = "2-01",
x = -631.539,
y = -278.096,
IPLs = true,
collision = true,
textures = true,
area = 2,
radius = 10,
time = 79033.33,
setupCutscene = true,
specialInit = false
},
{
name = "2-02",
x = 516.629,
y = -58.715,
IPLs = true,
collision = true,
textures = true,
area = 0,
radius = 10,
time = 32666.66,
setupCutscene = false,
specialInit = false
},
{
name = "2-03",
x = -730.994,
y = 386.327,
IPLs = true,
collision = true,
textures = true,
area = 27,
radius = 10,
time = 63000,
setupCutscene = false,
specialInit = false
},
{
name = "2-03b",
x = 447.991,
y = 487.784,
IPLs = true,
collision = true,
textures = true,
area = 0,
radius = 10,
time = 56833.33,
setupCutscene = false,
specialInit = false
},
{
name = "2-04",
x = -502.47,
y = 309.606,
IPLs = true,
collision = true,
textures = true,
area = 14,
radius = 10,
time = 50666.66,
setupCutscene = false,
specialInit = false
},
{
name = "2-05",
x = 351.428,
y = 148.634,
IPLs = true,
collision = true,
textures = true,
area = 0,
radius = 10,
time = 43500,
setupCutscene = false,
specialInit = false
},
{
name = "2-06",
x = 345.948,
y = 216.214,
IPLs = true,
collision = true,
textures = true,
area = 0,
radius = 10,
time = 58000,
setupCutscene = false,
specialInit = false
},
{
name = "2-07",
x = -784.889,
y = 382.107,
IPLs = true,
collision = true,
textures = true,
area = 29,
radius = 10,
time = 70000,
setupCutscene = false,
specialInit = false
},
{
name = "2-08",
x = -709.749,
y = 312.36,
IPLs = true,
collision = true,
textures = true,
area = 6,
radius = 10,
time = 81733,
setupCutscene = false,
specialInit = false
},
{
name = "2-09",
x = 225.643,
y = 247.107,
IPLs = true,
collision = true,
textures = true,
area = 0,
radius = 10,
time = 37500,
setupCutscene = false,
specialInit = false
},
{
name = "2-09B",
x = -704.57,
y = 374.908,
IPLs = true,
collision = true,
textures = true,
area = 27,
radius = 10,
time = 20666.66,
setupCutscene = false,
specialInit = false
},
{
name = "3-01",
x = 502.7,
y = -213.2,
IPLs = true,
collision = true,
textures = true,
area = 0,
radius = 10,
time = 67400,
setupCutscene = false,
specialInit = false
},
{
name = "3-02",
x = 502.7,
y = -213.2,
IPLs = true,
collision = true,
textures = true,
area = 0,
radius = 10,
time = 37000,
setupCutscene = false,
specialInit = false
},
{
name = "3-03",
x = 506.136,
y = -434.276,
IPLs = true,
collision = true,
textures = true,
area = 0,
radius = 10,
time = 51200,
setupCutscene = false,
specialInit = false
},
{
name = "3-04",
x = -784.875,
y = 203.098,
IPLs = true,
collision = true,
textures = true,
area = 9,
radius = 10,
time = 54666.67,
setupCutscene = false,
specialInit = false
},
{
name = "3-04B",
x = 506.136,
y = -434.276,
IPLs = true,
collision = true,
textures = true,
area = 0,
radius = 10,
time = 54833.33,
setupCutscene = false,
specialInit = false
},
{
name = "3-05",
x = 502.7,
y = -213.2,
IPLs = true,
collision = true,
textures = true,
area = 0,
radius = 10,
time = 63333.33,
setupCutscene = false,
specialInit = false
},
{
name = "3-06",
x = 508.592,
y = -207.972,
IPLs = true,
collision = true,
textures = true,
area = 0,
radius = 10,
time = 48333.33,
setupCutscene = false,
specialInit = false
},
{
name = "4-01",
x = -696.453,
y = 74.392,
IPLs = true,
collision = true,
textures = true,
area = 40,
radius = 10,
time = 49666.66,
setupCutscene = false,
specialInit = false
},
{
name = "4-02",
x = -784.875,
y = 203.098,
IPLs = true,
collision = true,
textures = true,
area = 9,
radius = 10,
time = 59000,
setupCutscene = false,
specialInit = false
},
{
name = "4-03",
x = -696.615,
y = 61.633,
IPLs = true,
collision = true,
textures = true,
area = 40,
radius = 10,
time = 70633.33,
setupCutscene = false,
specialInit = false
},
{
name = "4-04",
x = -784.875,
y = 203.098,
IPLs = true,
collision = true,
textures = true,
area = 9,
radius = 10,
time = 66800,
setupCutscene = false,
specialInit = false
},
{
name = "4-05",
x = -696.615,
y = 61.633,
IPLs = true,
collision = true,
textures = true,
area = 40,
radius = 10,
time = 87233.336,
setupCutscene = false,
specialInit = false
},
{
name = "4-06",
x = -696.615,
y = 61.633,
IPLs = true,
collision = true,
textures = true,
area = 40,
radius = 10,
time = 80333.336,
setupCutscene = false,
specialInit = false
},
{
name = "5-01",
x = 187.97,
y = -151.287,
IPLs = true,
collision = true,
textures = true,
area = 0,
radius = 10,
time = 52666.66,
setupCutscene = false,
specialInit = false
},
{
name = "5-02",
x = -734.979,
y = 383.66,
IPLs = true,
collision = true,
textures = true,
area = 27,
radius = 10,
time = 76666.66,
setupCutscene = false,
specialInit = false
},
{
name = "5-02B",
x = 383.66,
y = 147.361,
IPLs = true,
collision = true,
textures = true,
area = 0,
radius = 10,
time = 71500,
setupCutscene = false,
specialInit = false
},
{
name = "5-03",
x = 502.7,
y = -213.2,
IPLs = true,
collision = true,
textures = true,
area = 0,
radius = 10,
time = 58666.66,
setupCutscene = false,
specialInit = false
},
{
name = "5-04",
x = 59.303,
y = -61.304,
IPLs = true,
collision = true,
textures = true,
area = 0,
radius = 10,
time = 69000,
setupCutscene = false,
specialInit = false
},
{
name = "5-05",
x = 250.96,
y = -353.99,
IPLs = true,
collision = true,
textures = true,
area = 0,
radius = 10,
time = 50666.66,
setupCutscene = false,
specialInit = false
},
{
name = "5-06",
x = 268.7,
y = -107.2,
IPLs = true,
collision = true,
textures = true,
area = 0,
radius = 10,
time = 68000,
setupCutscene = false,
specialInit = false
},
{
name = "5-07",
x = 237.382,
y = -70.334,
IPLs = true,
collision = true,
textures = true,
area = 0,
radius = 10,
time = 21000,
setupCutscene = false,
specialInit = false
},
{
name = "5-09",
x = -502.47,
y = 309.606,
IPLs = true,
collision = true,
textures = true,
area = 14,
radius = 10,
time = 60333.33,
setupCutscene = false,
specialInit = false
},
{
name = "5-09B",
x = -483.996,
y = 312.71,
IPLs = true,
collision = true,
textures = true,
area = 14,
radius = 10,
time = 27066.66,
setupCutscene = false,
specialInit = false
},
{
name = "6-02",
x = 250.814,
y = -352.845,
IPLs = true,
collision = true,
textures = true,
area = 0,
radius = 10,
time = 40000,
setupCutscene = false,
specialInit = false
},
{
name = "6-02B",
x = 301.842,
y = 2.417,
IPLs = true,
collision = true,
textures = true,
area = 0,
radius = 10,
time = 44333.33,
setupCutscene = false,
specialInit = false
},
{
name = "1-G1",
x = 246.568,
y = -19,
IPLs = true,
collision = true,
textures = true,
area = 0,
radius = 10,
time = 70900,
setupCutscene = false,
specialInit = false
},
{
name = "1-S01",
x = -563.082,
y = 316.99,
IPLs = true,
collision = true,
textures = true,
area = 15,
radius = 10,
time = 118666.66,
setupCutscene = false,
specialInit = false
},
{
name = "2-B",
x = -702.445,
y = 372.796,
IPLs = true,
collision = true,
textures = true,
area = 27,
radius = 10,
time = 57666.66,
setupCutscene = false,
specialInit = false
},
{
name = "2-BB",
x = -702.445,
y = 372.796,
IPLs = true,
collision = true,
textures = true,
area = 27,
radius = 10,
time = 22666.66,
setupCutscene = false,
specialInit = false
},
{
name = "2-0",
x = -626.389,
y = -295.36,
IPLs = true,
collision = true,
textures = true,
area = 2,
radius = 10,
time = 46666.66,
setupCutscene = false,
specialInit = false
},
{
name = "2-S02",
x = -563.082,
y = 316.99,
IPLs = true,
collision = true,
textures = true,
area = 15,
radius = 10,
time = 72333.336,
setupCutscene = false,
specialInit = false
},
{
name = "2-S04",
x = 187.945,
y = -151.41,
IPLs = true,
collision = true,
textures = true,
area = 0,
radius = 10,
time = 56333.33,
setupCutscene = false,
specialInit = false
},
{
name = "2-S05",
x = -631.539,
y = -278.096,
IPLs = true,
collision = true,
textures = true,
area = 2,
radius = 10,
time = 75633.336,
setupCutscene = true,
specialInit = false
},
{
name = "2-S05B",
x = -631.539,
y = -278.096,
IPLs = true,
collision = true,
textures = true,
area = 2,
radius = 10,
time = 77500,
setupCutscene = false,
specialInit = false
},
{
name = "2-S05C",
x = 446.216,
y = 198.394,
IPLs = true,
collision = true,
textures = true,
area = 0,
radius = 10,
time = 24333.33,
setupCutscene = false,
specialInit = false
},
{
name = "2-S06",
x = 530.314,
y = -130.642,
IPLs = true,
collision = true,
textures = true,
area = 0,
radius = 10,
time = 98333.336,
setupCutscene = false,
specialInit = false
},
{
name = "2-G2",
x = 345.948,
y = 216.214,
IPLs = true,
collision = true,
textures = true,
area = 0,
radius = 10,
time = 70000,
setupCutscene = false,
specialInit = false
},
{
name = "3-B",
x = 543.6,
y = -469.469,
IPLs = true,
collision = true,
textures = true,
area = 0,
radius = 10,
time = 43833.33,
setupCutscene = false,
specialInit = false
},
{
name = "3-BB",
x = -735.981,
y = -656.304,
IPLs = true,
collision = true,
textures = true,
area = 43,
radius = 10,
time = 12666.66,
setupCutscene = false,
specialInit = false
},
{
name = "3-BC",
x = -745.773,
y = -610.745,
IPLs = true,
collision = true,
textures = true,
area = 43,
radius = 10,
time = 9000,
setupCutscene = false,
specialInit = false
},
{
name = "3-0",
x = -505.625,
y = 329.796,
IPLs = true,
collision = true,
textures = true,
area = 14,
radius = 10,
time = 55166.66,
setupCutscene = false,
specialInit = false
},
{
name = "3-G3",
x = 505.378,
y = -434.79,
IPLs = true,
collision = true,
textures = true,
area = 0,
radius = 10,
time = 60333.33,
setupCutscene = false,
specialInit = false
},
{
name = "3-S03",
x = 181.714,
y = -19.497,
IPLs = true,
collision = true,
textures = true,
area = 0,
radius = 10,
time = 43666.664,
setupCutscene = false,
specialInit = false
},
{
name = "3-S10",
x = -565.895,
y = 133.715,
IPLs = true,
collision = true,
textures = true,
area = 32,
radius = 10,
time = 50000,
setupCutscene = false,
specialInit = false
},
{
name = "3-S11",
x = -536.586,
y = 385.22,
IPLs = true,
collision = true,
textures = true,
area = 17,
radius = 10,
time = 83666.66,
setupCutscene = false,
specialInit = false
},
{
name = "3-S11C",
x = -725.296,
y = 459.467,
IPLs = true,
collision = true,
textures = true,
area = 38,
radius = 10,
time = 48666.66,
setupCutscene = false,
specialInit = false
},
{
name = "4-B1",
x = -696.615,
y = 61.633,
IPLs = true,
collision = true,
textures = true,
area = 40,
radius = 10,
time = 23333.33,
setupCutscene = false,
specialInit = false
},
{
name = "4-B1B",
x = -696.615,
y = 61.633,
IPLs = true,
collision = true,
textures = true,
area = 40,
radius = 10,
time = 11933.33,
setupCutscene = false,
specialInit = false
},
{
name = "4-B1C",
x = -696.615,
y = 61.633,
IPLs = true,
collision = true,
textures = true,
area = 40,
radius = 10,
time = 11933.33,
setupCutscene = false,
specialInit = false
},
{
name = "4-B1D",
x = -695.807,
y = 73.695,
IPLs = true,
collision = true,
textures = true,
area = 40,
radius = 10,
time = 32333.33,
setupCutscene = false,
specialInit = false
},
{
name = "4-B2",
x = -28.53,
y = -74.936,
IPLs = true,
collision = true,
textures = true,
area = 0,
radius = 10,
time = 14333.33,
setupCutscene = false,
specialInit = false
},
{
name = "4-B2B",
x = -28.53,
y = -74.936,
IPLs = true,
collision = true,
textures = true,
area = 0,
radius = 10,
time = 15666.66,
setupCutscene = false,
specialInit = false
},
{
name = "4-G4",
x = -633.613,
y = -69.106,
IPLs = true,
collision = true,
textures = true,
area = 13,
radius = 10,
time = 72666.664,
setupCutscene = false,
specialInit = false
},
{
name = "4-S12",
x = -536.998,
y = 376.584,
IPLs = true,
collision = true,
textures = true,
area = 17,
radius = 10,
time = 95000,
setupCutscene = false,
specialInit = false
},
{
name = "4-S12B",
x = -671.8,
y = -293.1,
IPLs = true,
collision = true,
textures = true,
area = 2,
radius = 10,
time = 78000,
setupCutscene = false,
specialInit = false
},
{
name = "4-0",
x = 237.382,
y = -70.334,
IPLs = true,
collision = true,
textures = true,
area = 0,
radius = 10,
time = 80000,
setupCutscene = false,
specialInit = false
},
{
name = "5-0",
x = 237.382,
y = -70.334,
IPLs = true,
collision = true,
textures = true,
area = 0,
radius = 10,
time = 58333.332,
setupCutscene = false,
specialInit = false
},
{
name = "5-05B",
x = 471.465,
y = 258.79,
IPLs = true,
collision = true,
textures = true,
area = 0,
radius = 10,
time = 24833.33,
setupCutscene = false,
specialInit = false
},
{
name = "5-B",
x = -732.955,
y = 80.83,
IPLs = true,
collision = true,
textures = true,
area = 20,
radius = 10,
time = 24333.33,
setupCutscene = false,
specialInit = false
},
{
name = "5-G5",
x = 250,
y = -355,
IPLs = true,
collision = true,
textures = true,
area = 0,
radius = 10,
time = 34333.33,
setupCutscene = false,
specialInit = false
},
{
name = "6-0",
x = -705.909,
y = 227.981,
IPLs = true,
collision = true,
textures = true,
area = 5,
radius = 10,
time = 106033.33,
setupCutscene = false,
specialInit = false
},
{
name = "6-B",
x = 194.43,
y = -65.058,
IPLs = true,
collision = true,
textures = true,
area = 0,
radius = 10,
time = 29666.66,
setupCutscene = false,
specialInit = false
},
{
name = "6-BB",
x = 181.386,
y = -72.321,
IPLs = true,
collision = true,
textures = true,
area = 0,
radius = 10,
time = 53833.33,
setupCutscene = false,
specialInit = false
},
{
name = "6-BC",
x = -705.909,
y = 227.981,
IPLs = true,
collision = true,
textures = true,
area = 5,
radius = 10,
time = 72666.66,
setupCutscene = false,
specialInit = false
},
{
name = "FX-TEST",
x = -631.539,
y = -278.096,
IPLs = true,
collision = true,
textures = true,
area = 2,
radius = 10,
time = 33333.332,
setupCutscene = false,
specialInit = false
},
{
name = "5-BC",
x = -732.955,
y = 80.83,
IPLs = true,
collision = true,
textures = true,
area = 20,
radius = 10,
time = 40833.332,
setupCutscene = false,
specialInit = false
},
{
name = "3-BD",
x = -745.773,
y = -610.745,
IPLs = true,
collision = true,
textures = true,
area = 43,
radius = 10,
time = 33500,
setupCutscene = false,
specialInit = false
}
}
cutsceneTable.size = table.getn(cutsceneTable)
end
elseif AreaPOICompareName(info, "F_GuardDog") or AreaPOICompareName(info, "F_BullyDogs") then
elseif AreaPOICompareName(POIInfo, "F_BullyDogs") then
F_BullyDogs,
if shared.gMissionPhoto4 == true and (AreaPOICompareName(info, "F_DrunkenBeggar") or AreaPOICompareName(info, "F_BullyDogs")) then
function F_BullyDogs(POIInfo, POIPointType, POIPointFaction, POIPointNum, POIGender, ped1, ped2, ped3, ped4)
ped1 = RandomElement3(141, 219, 220)
LoadPedPOIModel(ped1)
local dog
dog = PedCreatePOIPoint(ped1, POIInfo, 0, 0, 0)
if dog == -1 then
return
end
PedSetPedToTypeAttitude(dog, 13, 0)
GameSetPedStat(dog, 14, 100)
PedSetFlag(dog, 120, true)
PedWander(dog, 0)
end
function F_CanUseChemistrySet()
if shared.ChemistrySetLocked == 1 then
return 1
end
return 0
end
elseif AreaPOICompareName(info, "F_CarnivalWalker") or AreaPOICompareName(info, "F_Industrial") or AreaPOICompareName(info, "F_DockWorker") or AreaPOICompareName(info, "F_MillWorker") or AreaPOICompareName(info, "F_PrincipalPOI") or AreaPOICompareName(info, "F_DockWorker") or AreaPOICompareName(info, "F_MillWorker") or AreaPOICompareName(info, "F_Fireman") or AreaPOICompareName(info, "F_RandomStudent") or AreaPOICompareName(info, "F_SocialHangout") then
elseif AreaPOICompareName(POIInfo, "F_CarnivalWalker") then
F_CarnivalWalker,
function F_CarnivalWalker(POIInfo, POIPointType, POIPointFaction, POIPointNum, POIGender, ped1, ped2, ped3, ped4)
local charchoice = math.random(0, 4)
if charchoice == 0 then
charchoice = 114
elseif charchoice == 1 then
charchoice = 113
elseif charchoice == 2 then
charchoice = 115
elseif charchoice == 3 then
charchoice = 143
elseif charchoice == 4 then
charchoice = 140
end
if 0 < PedGetPedCountWithModel(charchoice) then
return
end
LoadPedPOIModel(charchoice)
local char = PedCreatePOIPoint(charchoice, POIInfo, 0, 0, 0)
if char == -1 then
return
end
PedSetFlag(char, 120, true)
PedWander(char, 0)
end
elseif AreaPOICompareName(info, "F_Catch") then
elseif AreaPOICompareName(POIInfo, "F_Catch") then
F_Catch,
function F_Catch(POIInfo, POIPointType, POIPointFaction, POIPointNum, POIGender, ped1_ModelID, ped2_ModelID, ped3, ped4)
if POIPointFaction == 12 then
POIPointFaction = RandomElement2(2, 6)
end
local ped1_ModelID, ped2_ModelID
if AreaGetVisible() == 13 then
ped1_ModelID = GetGymModel(POIPointFaction)
ped2_ModelID = GetGymModel(POIPointFaction)
else
ped1_ModelID = GetStudent(POIPointFaction, 1)
ped2_ModelID = GetStudent(POIPointFaction, 1)
end
if ped1_ModelID == -1 or ped2_ModelID == -1 then
return
end
LoadPedPOIModel(ped1_ModelID)
LoadPedPOIModel(ped2_ModelID)
if POIIsValid(POIInfo) then
local x, y, z = POIGetPosXYZ(POIInfo)
local testY1 = y - 3.5
local testY2 = y + 3.5
if PedAreaClearOfPedsInXYZ(x, testY1, z) == false or PedAreaClearOfPedsInXYZ(x, testY2, z) == false then
ModelNotNeededAmbient(ped1_ModelID)
ModelNotNeededAmbient(ped2_ModelID)
return
end
else
ModelNotNeededAmbient(ped1_ModelID)
ModelNotNeededAmbient(ped2_ModelID)
return
end
local ped2 = PedCreatePOIPoint(ped2_ModelID, POIInfo, 0, -3.5, 0)
local ped1 = PedCreatePOIPoint(ped1_ModelID, POIInfo, 0, 3.5, 0)
if ped1 == -1 or ped2 == -1 then
return
end
if PedIsValid(ped1) and not PedIsValid(ped2) then
PedWander(ped1, 0)
PedClearPOI(ped1)
return
end
if PedIsValid(ped2) and not PedIsValid(ped1) then
PedWander(ped2, 0)
PedClearPOI(ped2)
return
end
Wait(10)
PedClearAllWeapons(ped1)
PedClearAllWeapons(ped2)
PedSetFlag(ped1, 120, true)
PedSetFlag(ped2, 120, true)
PedOverrideStat(ped1, 10, 100)
PedOverrideStat(ped2, 10, 100)
PedSetRemoveOwnedProj(ped1, true)
PedSetRemoveOwnedProj(ped2, true)
if POIPointFaction == 3 then
LoadWeaponPOIModel(346)
PedSetWeapon(ped1, 346, 1)
ModelNotNeededAmbient(346)
elseif POIPointFaction == 5 then
LoadWeaponPOIModel(335)
PedSetWeapon(ped1, 335, 1)
ModelNotNeededAmbient(335)
else
weapon = 331
LoadWeaponPOIModel(weapon)
PedSetWeapon(ped1, weapon, 1)
ModelNotNeededAmbient(331)
end
PedPlayCatch(ped1, ped2, 22000)
PedPlayCatch(ped2, ped1, 22000)
end
elseif AreaPOICompareName(info, "F_CBarkerGame") or AreaPOICompareName(info, "F_CBarkerGame2") or AreaPOICompareName(info, "F_DunkMidget") or AreaPOICompareName(info, "F_CBarkerHouse") then
elseif AreaPOICompareName(POIInfo, "F_CBarkerGame") then
F_CBarkerGame,
function F_CBarkerGame(POIInfo, POIPointType, POIPointFaction, POIPointNum, POIGender, ped1, ped2, ped3, ped4)
local hour, minute = ClockGet()
if 1 <= hour and hour < 8 then
return
end
local charchoice = 114
LoadPedPOIModel(charchoice)
local char = PedCreatePOIPoint(charchoice, POIInfo, 0, 0, 0)
if char == -1 then
return
end
ExecuteActionNode(char, "/Global/Ambient/Scripted/Carny/CarnyGame", "Act/Anim/Ambient.act")
end
elseif AreaPOICompareName(info, "F_CBarkerGame") or AreaPOICompareName(info, "F_CBarkerGame2") or AreaPOICompareName(info, "F_DunkMidget") or AreaPOICompareName(info, "F_CBarkerHouse") then
elseif AreaPOICompareName(POIInfo, "F_CBarkerGame2") then
F_CBarkerGame2,
function F_CBarkerGame2(POIInfo, POIPointType, POIPointFaction, POIPointNum, POIGender, ped1, ped2, ped3, ped4)
local hour, minute = ClockGet()
if 1 <= hour and hour < 8 then
return
end
local charchoice = 143
LoadPedPOIModel(charchoice)
local char = PedCreatePOIPoint(charchoice, POIInfo, 0, 0, 0)
if char == -1 then
return
end
ExecuteActionNode(char, "/Global/Ambient/Scripted/Carny/CarnyGame", "Act/Anim/Ambient.act")
end
elseif AreaPOICompareName(info, "F_CBarkerGame") or AreaPOICompareName(info, "F_CBarkerGame2") or AreaPOICompareName(info, "F_DunkMidget") or AreaPOICompareName(info, "F_CBarkerHouse") then
elseif AreaPOICompareName(POIInfo, "F_CBarkerHouse") then
F_CBarkerHouse,
function F_CBarkerHouse(POIInfo, POIPointType, POIPointFaction, POIPointNum, POIGender, ped1, ped2, ped3, ped4)
local hour, minute = ClockGet()
if 1 <= hour and hour < 8 then
return
end
local charchoice = 113
LoadPedPOIModel(charchoice)
local char = PedCreatePOIPoint(charchoice, POIInfo, 0, 0, 0)
if char == -1 then
return
end
ExecuteActionNode(char, "/Global/Ambient/Scripted/Carny/CarnyHouse", "Act/Anim/Ambient.act")
end
function F_Check1_11X2Stage()
if shared._1_11X2OnStage2 == true then
return 1
else
return 0
end
end
function F_CheckBalloonErrand()
if shared.balloonErrandActive then
return 1
else
return 0
end
end
F_CheckConditions(scenario, POIInfo)
while F_CheckConditions() == true do
function F_CheckConditions()
if DialogComplete == false then
OutOfRange = F_PlayerOutOfRange()
if OutOfRange == true and PedIsValid(ScenarioPed) and PedIsOnScreen(ScenarioPed) == false then
PedDelete(ScenarioPed)
end
end
if PedIsValid(ScenarioPed) == true and PedGetFlag(ScenarioPed, 110) == true and PedIsDead(ScenarioPed) == false and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and shared.gBusTransition == nil and OutOfRange == false then
return true
else
if bTimedOut then
PedSetTaskNode(ScenarioPed, "/Global/AI/GeneralObjectives/POIPoint/Scenario/ScenarioSeek/ScenarioOpen/ScenarioWait/ScenarioDialog/ScenarioAccepted/ScenarioOptions/ScenarioObjective/WaitForObjective/ObjectiveOptions/ObjCompleted/ObjScenarioEnd", "Act/AI/AI.act")
end
if bActive and not ObjectiveMet and not F_PedIsDead(gPlayer) and shared.gBusTransition == nil then
MinigameSetErrandCompletion(0, "AS_FAIL", false, 0, "AS_TRY_AGAIN")
end
return false
end
end
if PedGetPedCountWithModel(pickedModel) > 0 or F_CheckGymModel(pickedModel) == false then
function F_CheckGymModel(Model)
if Model == 200 and (PedGetUniqueModelStatus(22) == -1 or PedGetPedCountWithModel(22) > 0) then
return false
end
if Model == 201 and (PedGetUniqueModelStatus(29) == -1 or 0 < PedGetPedCountWithModel(29)) then
return false
end
if Model == 203 and (PedGetUniqueModelStatus(27) == -1 or 0 < PedGetPedCountWithModel(27)) then
return false
end
if Model == 204 and PedGetUniqueModelStatus(18) == -1 then
return false
end
if Model == 206 and PedGetUniqueModelStatus(20) == -1 then
return false
end
if Model == 207 and PedGetUniqueModelStatus(13) == -1 then
return false
end
if Model == 208 and (PedGetUniqueModelStatus(4) == -1 or 0 < PedGetPedCountWithModel(4)) then
return false
end
if Model == 209 and (PedGetUniqueModelStatus(8) == -1 or 0 < PedGetPedCountWithModel(8)) then
return false
end
if Model == 210 and (PedGetUniqueModelStatus(7) == -1 or 0 < PedGetPedCountWithModel(7)) then
return false
end
if Model == 211 and (PedGetUniqueModelStatus(40) == -1 or 0 < PedGetPedCountWithModel(40)) then
return false
end
if Model == 212 and (PedGetUniqueModelStatus(34) == -1 or 0 < PedGetPedCountWithModel(34)) then
return false
end
if Model == 214 and (PedGetUniqueModelStatus(30) == -1 or 0 < PedGetPedCountWithModel(30)) then
return false
end
if Model == 213 and (PedGetUniqueModelStatus(31) == -1 or 0 < PedGetPedCountWithModel(31)) then
return false
end
return true
end
if F_CheckMaxItems() then
function F_CheckMaxItems()
--print("CHECKING MAX ITEMS")
if IsMissionCompleated("C_Chem_4") and PlayerHasItem(307) and PedGetAmmoCount(gPlayer, 308) < 12 then
--print("CHECKING MAX ITEMS CHEM 4")
return true
end
if IsMissionCompleated("C_Chem_3") and PedGetAmmoCount(gPlayer, 394) < 5 then
--print("CHECKING MAX ITEMS CHEM 3")
return true
end
if IsMissionCompleated("C_Chem_2") and 5 > PedGetAmmoCount(gPlayer, 309) then
--print("CHECKING MAX ITEMS CHEM 2")
return true
end
if 5 > PedGetAmmoCount(gPlayer, 301) then
return true
end
return false
end
CreateThread("F_CheckPOI")
function F_CheckPOI()
gStores = {
richBarber = {
storePoint = POINTLIST._DT_IRICHBARBER_DOOR,
storeModel = 120
},
bikeOwner = {
storePoint = POINTLIST._DT_IBKSHOP_DOOR,
storeModel = 86
},
richGroceryOwner = {
storePoint = POINTLIST._DT_IGROCERY_DOOR,
storeModel = 156
},
poorGroceryOwner = {
storePoint = POINTLIST._DT_IPOORGROCERY_DOOR,
storeModel = 132
}
}
while true do
Wait(0)
local POIPoint
if not MissionActive() and shared.gCurrentAmbientScenario == nil and not ClothingIsWearingOutfit("Mascot") then
POIPoint = AreaGetScriptedPOIPointToActivate(3)
end
if POIPoint == -2 then
F_ScenarioManager(POIPoint)
end
POIPoint = AreaGetScriptedPOIPointToActivate(nil)
if 0 < POIPoint then
if not MissionActive() or shared.gMissionEventFunction == nil then
F_POIManager(POIPoint)
elseif shared.gMissionEventFunction ~= nil then
local override = shared.gMissionEventFunction(POIPoint)
if override or override == nil then
F_POIManager(POIPoint, override)
end
end
end
if not MissionActive() and AreaGetVisible() == 0 and shared.gAreaDATFileLoaded[0] == true then
UpdateAsylum()
end
end
end
function F_CheckSleepType()
--print("CHECK SLEEP TYPE ", shared.WakeUpType)
if shared.WakeUpType == 0 then
shared.WakeUpType = 1
return 1
else
return 0
end
end
elseif AreaPOICompareName(info, "F_Workout") or AreaPOICompareName(info, "F_Cheerleading") then
elseif AreaPOICompareName(POIInfo, "F_Cheerleading") then
F_Cheerleading,
function F_Cheerleading(POIInfo, POIPointType, POIPointFaction, POIPointNum, POIGender, ped1, ped2, ped3, ped4)
ped1 = 180
ped2 = 181
ped3 = 182
if ped1 == -1 or ped2 == -1 or ped3 == -1 then
return
end
LoadPedPOIModel(ped1)
LoadPedPOIModel(ped2)
LoadPedPOIModel(ped3)
local cheerleader1, cheerleader2, cheerleader3
cheerleader1 = PedCreatePOIPoint(ped1, POIInfo, 1, 0, 0)
cheerleader2 = PedCreatePOIPoint(ped2, POIInfo, 0, 1, 0)
cheerleader3 = PedCreatePOIPoint(ped3, POIInfo, -1, 0, 0)
if cheerleader1 == -1 or cheerleader2 == -1 or cheerleader3 == -1 then
return
end
PedSetFaction(cheerleader1, 2)
PedSetFaction(cheerleader2, 2)
PedSetFaction(cheerleader3, 2)
ExecuteActionNode(cheerleader1, "/Global/Ambient/Scripted/Cheering", "Act/Anim/Ambient.act")
ExecuteActionNode(cheerleader2, "/Global/Ambient/Scripted/Cheering", "Act/Anim/Ambient.act")
ExecuteActionNode(cheerleader3, "/Global/Ambient/Scripted/Cheering", "Act/Anim/Ambient.act")
end
function F_ChemForceAvailable()
ForceMissionAvailable("C_Chem_1")
end
function F_ChemForceStart()
ForceStartMission("C_Chem_1")
end
function F_ChemistryWeapons(param)
end
function F_PlayerHasSlept()
if PlayerGetScriptSavedData(26) == 1 then
return 1
end
return 0
end
function F_Chemistry_FirstAttempt()
return GetMissionAttemptCount("C_Chem_1") == 0 and 1 or 0
end
F_ChoosePrank(Thug, 12)
F_ChoosePrank(Thug, charType)
function F_ChoosePrank(Ped, PedFaction)
if PedIsValid(Ped) then
local WChoice
local WRoll = math.random(0, 100)
if 15 < WRoll then
if PedFaction == 1 then
WChoice = RandomElement4(309, 301, 397, 307)
else
WChoice = RandomElement8(397, 372, 349, 312, 346, 309, 301, 394)
end
while not WeaponRequestModel(WChoice, true) do
Wait(0)
end
ModelNotNeededAmbient(WChoice)
if PedIsValid(Ped) then
if WChoice == 301 or WChoice == 309 or WChoice == 346 then
PedOverrideStat(Ped, 10, 5)
end
if WChoice == 307 then
PedSetWeapon(Ped, WChoice, 5)
else
PedSetWeapon(Ped, WChoice, 1)
end
end
end
end
end
F_ChooseSniperWeapon(Thug)
function F_ChooseSniperWeapon(Ped)
local WChoice
if PedFaction == 1 then
WChoice = RandomElement2(307, 301)
else
WChoice = RandomElement3(303, 306, 301)
end
while not WeaponRequestModel(WChoice, true) do
Wait(0)
end
ModelNotNeededAmbient(WChoice)
if PedIsValid(Ped) then
if WChoice == 307 then
PedSetWeapon(Ped, WChoice, 1)
elseif WChoice == 301 then
PedSetWeapon(Ped, WChoice, 10)
else
PedSetWeaponNow(Ped, WChoice, 1)
end
end
end
local bClassAvailable = F_ClassIsAvailable()
function F_ClassIsAvailable()
if IsMissionAvailable("C_Wrestling_1") or IsMissionAvailable("C_Wrestling_2") or IsMissionAvailable("C_Wrestling_3") or IsMissionAvailable("C_Wrestling_4") or IsMissionAvailable("C_Wrestling_5") then
return true
end
if IsMissionAvailable("C_Photography_1") or IsMissionAvailable("C_Photography_2") or IsMissionAvailable("C_Photography_3") or IsMissionAvailable("C_Photography_4") or IsMissionAvailable("C_Photography_5") then
return true
end
if IsMissionAvailable("C_Shop_1") or IsMissionAvailable("C_Shop_2") or IsMissionAvailable("C_Shop_3") or IsMissionAvailable("C_Shop_4") or IsMissionAvailable("C_Shop_5") then
return true
end
if IsMissionAvailable("C_English_1") or IsMissionAvailable("C_English_1_unlocked") or IsMissionAvailable("C_English_2") or IsMissionAvailable("C_English_2_unlocked") or IsMissionAvailable("C_English_3") or IsMissionAvailable("C_English_3_unlocked") or IsMissionAvailable("C_English_4") or IsMissionAvailable("C_English_4_unlocked") or IsMissionAvailable("C_English_5") or IsMissionAvailable("C_English_5_unlocked") then
return true
end
if IsMissionAvailable("C_Art_1") or IsMissionAvailable("C_Art_1_repeat") or IsMissionAvailable("C_Art_2") or IsMissionAvailable("C_Art_2_repeat") or IsMissionAvailable("C_Art_3") or IsMissionAvailable("C_Art_3_repeat") or IsMissionAvailable("C_Art_4") or IsMissionAvailable("C_Art_4_repeat") or IsMissionAvailable("C_Art_5") or IsMissionAvailable("C_Art_5_repeat") then
return true
end
if IsMissionAvailable("C_Chem_1") or IsMissionAvailable("C_Chem_1_repeat") or IsMissionAvailable("C_Chem_2") or IsMissionAvailable("C_Chem_2_repeat") or IsMissionAvailable("C_Chem_3") or IsMissionAvailable("C_Chem_3_repeat") or IsMissionAvailable("C_Chem_4") or IsMissionAvailable("C_Chem_4_repeat") or IsMissionAvailable("C_Chem_5") or IsMissionAvailable("C_Chem_5_repeat") then
return true
end
if IsMissionAvailable("C_Biology_1") or IsMissionAvailable("C_Biology_1_repeat") or IsMissionAvailable("C_Biology_2") or IsMissionAvailable("C_Biology_2_repeat") or IsMissionAvailable("C_Biology_3") or IsMissionAvailable("C_Biology_3_repeat") or IsMissionAvailable("C_Biology_4") or IsMissionAvailable("C_Biology_4_repeat") or IsMissionAvailable("C_Biology_5") or IsMissionAvailable("C_Biology_5_repeat") then
return true
end
if IsMissionAvailable("C_Math_1") or IsMissionAvailable("C_Math_1_repeat") or IsMissionAvailable("C_Math_2") or IsMissionAvailable("C_Math_2_repeat") or IsMissionAvailable("C_Math_3") or IsMissionAvailable("C_Math_3_repeat") or IsMissionAvailable("C_Math_4") or IsMissionAvailable("C_Math_4_repeat") or IsMissionAvailable("C_Math_5") or IsMissionAvailable("C_Math_5_repeat") then
return true
end
if IsMissionAvailable("C_Geography_1") or IsMissionAvailable("C_Geography_1_repeat") or IsMissionAvailable("C_Geography_2") or IsMissionAvailable("C_Geography_2_repeat") or IsMissionAvailable("C_Geography_3") or IsMissionAvailable("C_Geography_3_repeat") or IsMissionAvailable("C_Geography_4") or IsMissionAvailable("C_Geography_4_repeat") or IsMissionAvailable("C_Geography_5") or IsMissionAvailable("C_Geography_5_repeat") then
return true
end
if IsMissionAvailable("C_Music_1") or IsMissionAvailable("C_Music_1_repeat") or IsMissionAvailable("C_Music_2") or IsMissionAvailable("C_Music_2_repeat") or IsMissionAvailable("C_Music_3") or IsMissionAvailable("C_Music_3_repeat") or IsMissionAvailable("C_Music_4") or IsMissionAvailable("C_Music_4_repeat") or IsMissionAvailable("C_Music_5") or IsMissionAvailable("C_Music_5_repeat") then
return true
end
end
elseif AreaPOICompareName(info, "F_ClassSmokers") or AreaPOICompareName(info, "F_SmokingFireman") then
elseif AreaPOICompareName(POIInfo, "F_ClassSmokers") then
function F_ClassSmokers(POIInfo, POIPointType, POIPointFaction, POIPointNum, POIGender, ped1, ped2, ped3, ped4)
if POIGender == 0 then
POIGender = 1
end
if shared.bBathroomPOIEnabled == false then
return
end
ped1 = GetStudent(POIPointFaction, POIGender, -1)
if ped1 == -1 then
return
end
if F_IsSmallKid(ped1) then
return
end
LoadPedPOIModel(ped1)
local char = PedCreatePOIPoint(ped1, POIInfo, 0, 0, 0)
if char == -1 then
return
end
local result = ExecuteActionNode(char, "/Global/Ambient/Scripted/Wall_Smoke", "Act/Anim/Ambient.act")
if result == true then
PedWander(char, 0)
end
end
function F_CoasterHUDOff()
HUDSaveVisibility()
HUDClearAllElements()
end
function F_CoasterHUDOn()
HUDRestoreVisibility()
end
F_CoupleCuddling,
function F_CoupleCuddling(POIInfo, POIPointType, POIPointFaction, POIPointNum, ped1, ped2, ped3, ped4)
if POIPointFaction ~= 12 then
ped1 = GetStudent(POIPointFaction, 1, 1)
ped2 = GetStudent(RandomElement2(6, POIPointFaction), 2, 1)
else
ped1 = GetStudent(RandomElement4(6, 5, 2, 4), 1, 1)
ped2 = GetStudent(6, 2, 1)
end
if ped1 == -1 or ped2 == -1 then
return
end
LoadPedPOIModel(ped1)
LoadPedPOIModel(ped2)
local Boy = PedCreatePOIPoint(ped1, POIInfo, 0, 0, 0)
local Girl = PedCreatePOIPoint(ped2, POIInfo, -1, 0, 0)
if Boy == -1 or Girl == -1 then
return
end
PedLockTarget(Boy, Girl, 0)
PedLockTarget(Girl, Boy, 0)
PedFaceObjectNow(Girl, Boy, 2)
PedFaceObjectNow(Boy, Girl, 2)
local result = POIActionNode2(Boy, Girl, "/Global/Ambient/Scripted/Cuddle", "Act/Anim/Ambient.act")
if result == true then
PedWander(Boy, 0)
PedWander(Girl, 0)
end
end
COUPLE = { F_CoupleKissing, F_CoupleKissing },
F_CoupleKissing,
function F_CoupleKissing(POIInfo, POIPointType, POIPointFaction, POIPointNum, POIGender, ped1, ped2, ped3, ped4)
local special1chance = math.random(1, 100)
local special2chance = math.random(1, 100)
local special1 = false
local special2 = false
if POIPointFaction ~= 12 then
if special2 == true then
ped1 = GetStudent(POIPointFaction, 2, 1, false)
else
ped1 = GetStudent(POIPointFaction, 1, 1, false)
end
if POIPointFaction ~= 11 then
if special1 == true then
ped2 = GetStudent(RandomElement2(6, POIPointFaction), 1, 1, false)
else
ped2 = GetStudent(RandomElement2(6, POIPointFaction), 2, 1, false)
end
elseif special1 == true then
ped2 = GetStudent(RandomElement2(6, POIPointFaction), 1, 1, false)
else
ped2 = GetStudent(6, 2, 1, false)
end
elseif special1 == true then
ped1 = GetStudent(RandomElement4(6, 5, 2, 4), 1, 1, false)
ped2 = GetStudent(RandomElement4(6, 5, 2, 4), 1, 1, false)
elseif special2 == true then
ped1 = GetStudent(RandomElement4(6, 5, 2, 4), 2, 1, false)
ped2 = GetStudent(RandomElement4(6, 5, 2, 4), 2, 1, false)
else
ped1 = GetStudent(RandomElement5(6, 5, 2, 4, 11), 1, 1, false)
ped2 = GetStudent(6, 2, 1, false)
end
if ped1 == -1 or ped2 == -1 then
return
end
LoadPedPOIModel(ped1)
LoadPedPOIModel(ped2)
local Boy = PedCreatePOIPoint(ped1, POIInfo, 0, 0, 0)
local Girl = PedCreatePOIPoint(ped2, POIInfo, 1.5, 0, 0)
if Boy == -1 or Girl == -1 then
return
end
PedClearAllWeapons(Boy)
PedClearAllWeapons(Girl)
PedFaceObjectNow(Boy, Girl, 2)
PedFaceObjectNow(Girl, Boy, 2)
PedAddPedToIgnoreList(Girl, Boy)
PedAddPedToIgnoreList(Boy, Girl)
PedLockTarget(Boy, Girl, 3)
PedLockTarget(Girl, Boy, 3)
PedSetEmotionTowardsPed(Boy, Girl, 8)
PedSetEmotionTowardsPed(Girl, Boy, 8)
local result = POIActionNode2(Boy, Girl, "/Global/Ambient/Scripted/Kiss_Me_Baby", "Act/Anim/Ambient.act")
if result == true then
PedWander(Boy, 0)
PedWander(Girl, 0)
end
end
function F_CoupleWalking(POIInfo, POIPointType, POIPointFaction, POIPointNum, POIGender, ped1, ped2, ped3, ped4)
local ped1 = GetStudent(POIPointFaction, 1, -1)
local ped2
if POIPointFaction == 9 or POIPointFaction == 10 or POIPointFaction == 8 then
ped2 = GetStudent(POIPointFaction, 2, -1)
elseif POIPointFaction ~= 11 then
ped2 = GetStudent(RandomElement2(6, POIPointFaction), 2, -1)
else
ped2 = GetStudent(POIPointFaction, 2, -1)
end
if ped1 == -1 or ped2 == -1 then
return
end
LoadPedPOIModel(ped1)
LoadPedPOIModel(ped2)
local Walker = PedCreatePOIPoint(ped1, POIInfo, 0, 0, 0)
local Walker2 = PedCreatePOIPoint(ped2, POIInfo, 0, -1, 0)
if Walker == -1 or Dog == -1 then
return
end
PedSetFlag(Walker, 120, true)
PedSetFlag(Walker2, 120, true)
PedWander(Walker, 0)
PedRecruitAlly(Walker, Walker2, true)
PedWander(Walker, 0)
end
elseif AreaPOICompareName(info, "F_Criminal") then
elseif AreaPOICompareName(POIInfo, "F_Criminal") then
F_Criminal,
function F_Criminal(POIInfo, POIPointType, POIPointFaction, POIPointNum, POIGender, ped1, ped2, ped3, ped4)
if MissionActive() then
return
end
local Thug = -1
local charType
--print("POIPointFaction: ", POIPointFaction)
if Thug == -1 then
if POIPointFaction == 8 or POIPointFaction == 0 then
charType = RandomElement5(4, 11, 5, 2, 1)
elseif POIPointFaction ~= 12 then
charType = POIPointFaction
else
charType = RandomElement5(4, 11, 5, 2, 1)
end
ped1 = GetStudent(charType, 1, -1)
if ped1 == -1 or ped2 == -1 then
return
end
LoadPedPOIModel(ped1)
Thug = PedCreatePOIPoint(ped1, POIInfo, 0, 0, 0)
end
if Thug == -1 then
return
end
local dirroll = math.random(1, 100)
PedSetFlag(Thug, 120, true)
PedClearAllWeapons(Thug)
if 50 < dirroll then
local head = PedGetHeading(Thug) + 180
PedFaceHeading(Thug, head, 0)
end
PedWander(Thug, 0)
PedOverrideStat(Thug, 15, 100)
PedOverrideStat(Thug, 14, 75)
local hour, minute = ClockGet()
if 21 <= hour or hour < 7 then
local WChoice = math.random(1, 100)
if 50 < WChoice then
F_SelectBrawlWeapon(Thug, charType)
end
else
F_ChoosePrank(Thug, charType)
end
end
elseif AreaPOICompareName(info, "F_Crying") then
elseif AreaPOICompareName(POIInfo, "F_Crying") then
F_Crying,
function F_Crying(POIInfo, POIPointType, POIPointFaction, POIPointNum, POIGender, ped1, ped2, ped3, ped4)
local ped1, student
if POIPointFaction == 12 then
POIPointFaction = 6
end
if math.random(1, 100) > 75 then
ped1 = GetStudent(POIPointFaction, 2, -1)
else
ped1 = GetStudent(POIPointFaction, 1, -1)
end
if ped1 == -1 then
return
end
LoadPedPOIModel(ped1)
student = PedCreatePOIPoint(ped1, POIInfo, 0, 0, 0)
if student == -1 then
return
end
ExecuteActionNode(student, "/Global/Ambient/Scripted/Crying", "Act/Anim/Ambient.act")
end
F_DebugScenarios(scenario, POIInfo)
function F_DebugScenarios(scenario, POIInfo)
local bCompleted = false
if MinigameGetErrandCompletion(scenario.enum) == 0 then
bCompleted = false
else
bCompleted = true
end
shared.gCurrentAmbientScenario = POIInfo
shared.gCurrentAmbientScenarioObject = scenario
--print("Waiting for Debugged Scenario Named to load: " .. scenario.name, tostring(bCompleted))
if not bCompleted then
LaunchScenarioScript(scenario.script)
else
shared.gCurrentAmbientScenarioObject = nil
shared.gCurrentAmbientScenario = nil
end
end
mSkip = F_DefaultToTrue(skip),
function F_DefaultToTrue(var)
if var ~= true then
return var
end
return true
end
mSkip = F_DefaultTrue(skip),
function F_DefaultTrue(var)
if var == false then
return false
end
return true
end
function F_DisableBuses()
if shared.gDisableBusStops then
return 1
else
return 0
end
end
function F_DisableJimmyToOfficePA()
--DebugPrint("********************** called F_DiablePA for jimmy announce")
SoundMusicJimmyComeToTheOfficePA(false)
--DebugPrint("********************** DONE")
end
function F_DisplayLockPickingHud()
shared.gLockpickingHudTurnOn = true
end
elseif AreaPOICompareName(info, "F_CarnivalWalker") or AreaPOICompareName(info, "F_Industrial") or AreaPOICompareName(info, "F_DockWorker") or AreaPOICompareName(info, "F_MillWorker") or AreaPOICompareName(info, "F_PrincipalPOI") or AreaPOICompareName(info, "F_DockWorker") or AreaPOICompareName(info, "F_MillWorker") or AreaPOICompareName(info, "F_Fireman") or AreaPOICompareName(info, "F_RandomStudent") or AreaPOICompareName(info, "F_SocialHangout") then
elseif AreaPOICompareName(POIInfo, "F_DockWorker") then
F_DockWorker,
function F_DockWorker(POIInfo, POIPointType, POIPointFaction, POIPointNum, POIGender, ped1, ped2, ped3, ped4)
LoadPedPOIModel(195)
local char = PedCreatePOIPoint(195, POIInfo, 0, 0, 0)
if char == -1 then
return
end
PedSetFlag(char, 120, true)
PedWander(char, 0)
end
elseif AreaPOICompareName(info, "F_DogWalker") then
elseif AreaPOICompareName(POIInfo, "F_DogWalker") then
F_DogWalker,
function F_DogWalker(POIInfo, POIPointType, POIPointFaction, POIPointNum, POIGender, ped1, ped2, ped3, ped4)
if POIPointFaction == 12 then
POIPointFaction = RandomElement3(5, 6, 9)
POIGender = 1
end
local ped1 = GetStudent(POIPointFaction, POIGender, -1)
local ped2 = RandomElement3(141, 219, 220)
if ped1 == -1 or ped2 == -1 then
return
end
local x, y, z = 0, 0, 0
LoadPedPOIModel(ped1)
LoadPedPOIModel(ped2)
local Walker = PedCreatePOIPoint(ped1, POIInfo, 0, 0, 0)
local Dog = PedCreatePOIPoint(ped2, POIInfo, 0, -1, 0)
if Walker == -1 or Dog == -1 then
return
end
local MovePed = false
for pos = 1, 20 do
x, y, z = PedFindRandomSpawnPosition(Walker)
if x ~= 9999 then
pos = 21
MovePed = true
else
pos = pos + 1
if pos == 21 then
if POIIsValid(POIInfo) then
x, y, z = POIGetPosXYZ(POIInfo)
else
ModelNotNeededAmbient(ped1)
ModelNotNeededAmbient(ped2)
return
end
end
end
end
if MovePed == true then
PedSetPosXYZ(Walker, x, y, z)
PedSetPosXYZ(Dog, x, y - 2, z)
end
PedSetFlag(Walker, 120, true)
PedSetFlag(Dog, 120, true)
PedWander(Dog, 0)
PedRecruitAlly(Dog, Walker)
PedWander(Walker, 0)
local faction = PedGetFaction(Walker)
PedSetPedToTypeAttitude(Dog, faction, 4)
end
function F_DormAlarmActive()
return shared.gBDormFAlarmOn == true and 1 or 0
end
elseif AreaPOICompareName(info, "F_DrunkenBeggar") then
elseif AreaPOICompareName(POIInfo, "F_DrunkenBeggar") then
F_DrunkenBeggar,
if shared.gMissionPhoto4 == true and (AreaPOICompareName(info, "F_DrunkenBeggar") or AreaPOICompareName(info, "F_BullyDogs")) then
function F_DrunkenBeggar(POIInfo, POIPointType, POIPointFaction, POIPointNum, POIGender, ped1, ped2, ped3, ped4)
local model = RandomElement2(116, 157)
LoadPedPOIModel(model)
local char = PedCreatePOIPoint(model, POIInfo, 0, 0, 0)
LoadWeaponPOIModel(327)
ModelNotNeededAmbient(327)
if char == -1 then
return
end
PedSetWeaponNow(char, 327, 1)
PedWander(char, 0)
ExecuteActionNode(char, "/Global/Ambient/Scripted/Drunk", "Act/Anim/Ambient.act")
end
elseif AreaPOICompareName(info, "F_CBarkerGame") or AreaPOICompareName(info, "F_CBarkerGame2") or AreaPOICompareName(info, "F_DunkMidget") or AreaPOICompareName(info, "F_CBarkerHouse") then
elseif AreaPOICompareName(POIInfo, "F_DunkMidget") then
function F_DunkMidget(POIInfo, POIPointType, POIPointFaction, POIPointNum, POIGender, ped1, ped2, ped3, ped4)
if MissionActiveSpecific("MGDunkTank") or MissionActiveSpecific2("MGDunkTank") then
return
end
local hour, minute = ClockGet()
if 1 <= hour and hour < 8 then
return
end
local charchoice = 115
LoadPedPOIModel(charchoice)
shared.gDunkMidget = PedCreatePOIPoint(charchoice, POIInfo, 0, 0, 0)
if shared.gDunkMidget == -1 then
return
end
PedSetInvulnerable(shared.gDunkMidget, true)
PedSetEffectedByGravity(shared.gDunkMidget, false)
ExecuteActionNode(shared.gDunkMidget, "/Global/Ambient/Scripted/Carny/CarnyDunk", "Act/Anim/Ambient.act")
end
function F_EnableJimmyToOfficePA()
--DebugPrint("********************** called F_EnablePA for jimmy announce")
--DebugPrint("********************** calling the function")
SoundMusicJimmyComeToTheOfficePA(true)
--DebugPrint("********************** DONE")
end
function F_FailedLockPicking()
shared.gFailedPickingLocker = true
end
function F_FireAlarmActive()
if AreaGetVisible() == 2 then
return shared.gSchoolFAlarmOn == true and 1 or 0
elseif AreaGetVisible() == 14 then
return shared.gBDormFAlarmOn == true and 1 or 0
elseif AreaGetVisible() == 35 then
return shared.gGDormFAlarmOn == true and 1 or 0
end
return 0
end
elseif AreaPOICompareName(info, "F_CarnivalWalker") or AreaPOICompareName(info, "F_Industrial") or AreaPOICompareName(info, "F_DockWorker") or AreaPOICompareName(info, "F_MillWorker") or AreaPOICompareName(info, "F_PrincipalPOI") or AreaPOICompareName(info, "F_DockWorker") or AreaPOICompareName(info, "F_MillWorker") or AreaPOICompareName(info, "F_Fireman") or AreaPOICompareName(info, "F_RandomStudent") or AreaPOICompareName(info, "F_SocialHangout") then
elseif AreaPOICompareName(POIInfo, "F_Fireman") then
F_Fireman,
function F_Fireman(POIInfo, POIPointType, POIPointFaction, POIPointNum, POIGender, ped1, ped2, ped3, ped4)
ped1 = 82
LoadPedPOIModel(ped1)
char = PedCreatePOIPoint(ped1, POIInfo, 0, 0, 0)
if char == -1 then
return
end
PedSetFlag(char, 120, true)
PedWander(char, 0)
end
BRAWL = { F_Brawl, F_GangBeat },
F_GangBeat,
function F_GangBeat(POIInfo, POIPointType, POIPointFaction, POIPointNum, POIGender, ped1, ped2, ped3, ped4)
local spawnGender = 1
local VictimChoice = GetStudent(POIPointFaction, spawnGender)
if VictimChoice == -1 then
return
end
LoadPedPOIModel(VictimChoice)
local Victim = PedCreatePOIPoint(VictimChoice, POIInfo, 0, 0, 0)
local Thug, ThugChoice
if Victim == -1 then
return
end
local numthugs = 0
numthugs = math.random(1, 3)
for count = 1, numthugs do
ThugChoice = GetStudent(F_GetOpposingFaction(POIPointFaction), spawnGender)
if ThugChoice ~= -1 then
LoadPedPOIModel(ThugChoice)
Thug = PedCreatePOIPoint(ThugChoice, POIInfo, count, count * -0.5, 0)
if Thug ~= -1 and Victim ~= -1 then
PedWander(Thug, 0)
PedWander(Victim, 0)
PedAttack(Thug, Victim, 1, true)
PedAttack(Victim, Thug, 1, true)
end
end
end
end
functionPicked = F_GetEventFunction(gFunctionTable.BACK_ALLEY)
functionPicked = F_GetEventFunction(gFunctionTable.BATHROOM)
functionPicked = F_GetEventFunction(gFunctionTable.BRAWL)
functionPicked = F_GetEventFunction(gFunctionTable.COUPLE)
functionPicked = F_GetEventFunction(gFunctionTable.DORM)
functionPicked = F_GetEventFunction(gFunctionTable.HARASSMENT)
functionPicked = F_GetEventFunction(gFunctionTable.SCHOOL_GROUNDS)
functionPicked = F_GetEventFunction(gFunctionTable.SITTING_EVENT)
functionPicked = F_GetEventFunction(gFunctionTable.STORE)
functionPicked = F_GetEventFunction(gFunctionTable.VANDALISM)
functionPicked = F_GetEventFunction(gFunctionTable.WALL)
function F_GetEventFunction(pTable)
if pTable ~= nil and table.getn(pTable) > 0 then
return RandomTableElement(pTable)
end
return nil
end
factionchoice = F_GetOpposingFaction(POIPointFaction)
ped2 = F_GetOpposingFaction(POIPointFaction)
ThugChoice = GetStudent(F_GetOpposingFaction(POIPointFaction), spawnGender)
function F_GetOpposingFaction(factionPicked)
RChoice = math.random(1, 100)
if factionPicked ~= 6 and RChoice < 15 then
return 6
elseif factionPicked == 4 then
return 5
elseif factionPicked == 2 then
return 1
elseif factionPicked == 5 then
return 4
elseif factionPicked == 1 then
return 2
elseif factionPicked == 11 then
if RChoice > 50 then
return 1
else
return 6
end
elseif factionPicked == 3 then
if RChoice < 50 then
return 11
elseif RChoice < 75 then
return 4
else
return 5
end
elseif factionPicked == 6 then
return 11
elseif factionPicked == 9 then
return 10
elseif factionPicked == 10 then
return 10
end
return 6
end
function F_GetStudentInArea(PedFaction)
local FoundPed
if PedFaction ~= 12 then
FoundPed = PedFindRandomPed(PedFaction, 1, -1, 25)
if FoundPed ~= -1 and not PedHasPOI(FoundPed) and PedIsOnScreen(FoundPed) then
return FoundPed
end
else
for i, key in BullyChoices do
FoundPed = PedFindRandomPed(key, 1, -1, 15)
if FoundPed ~= -1 and not PedHasPOI(FoundPed) and PedIsOnScreen(FoundPed) and PedGetFaction(FoundPed) ~= (8 or PedGetFaction(FoundPed) ~= 0 or PedGetFaction(FoundPed) ~= 7) then
return FoundPed
end
end
end
return -1
end
function F_GrafittiCleanupAvailable()
local savedData = PlayerGetScriptSavedData(14)
if savedData == 1 then
return 1
end
return 0
end
elseif AreaPOICompareName(info, "F_GuardDog") or AreaPOICompareName(info, "F_BullyDogs") then
elseif AreaPOICompareName(POIInfo, "F_GuardDog") then
F_GuardDog,
function F_GuardDog(POIInfo, POIPointType, POIPointFaction, POIPointNum, POIGender, ped1, ped2, ped3, ped4)
ped1 = RandomElement3(141, 219, 220)
LoadPedPOIModel(ped1)
local dog
dog = PedCreatePOIPoint(ped1, POIInfo, 0, 0, 0)
if dog == -1 then
return
end
PedSetPedToTypeAttitude(dog, 13, 0)
PedSetPedToTypeAttitude(dog, 5, 4)
PedSetPedToTypeAttitude(dog, 3, 4)
PedSetPedToTypeAttitude(dog, 4, 0)
GameSetPedStat(dog, 14, 100)
GameSetPedStat(dog, 6, 0)
if POIIsValid(POIInfo) then
local x, y, z = POIGetPosXYZ(POIInfo)
PedSetTetherToXYZ(dog, x, y, z, 20)
end
ExecuteActionNode(dog, "/Global/Ambient/Scripted/GuardDog", "Act/Anim/Ambient.act")
end
function F_HasRadioParts()
if ItemGetCurrentNum(476) > 0 then
return 1
else
return 0
end
end
elseif AreaPOICompareName(info, "F_HCriminal") or AreaPOICompareName(info, "F_HStudent") then
elseif AreaPOICompareName(POIInfo, "F_HCriminal") then
F_HCriminal,
function F_HCriminal(POIInfo, POIPointType, POIPointFaction, POIPointNum, POIGender, ped1, ped2, ped3, ped4)
local Thug = -1
--print("POIPointFaction: ", POIPointFaction)
if Thug == -1 then
ped1 = GetStudent(12, POIGender, -1)
if ped1 == -1 then
return
end
LoadPedPOIModel(ped1)
Thug = PedCreatePOIPoint(ped1, POIInfo, 0, 0, 0)
end
if Thug == -1 then
return
end
local dirroll = math.random(1, 100)
PedSetFlag(Thug, 120, true)
PedClearAllWeapons(Thug)
if 50 < dirroll then
local head = PedGetHeading(Thug) + 180
PedFaceHeading(Thug, head, 0)
end
PedWander(Thug, 0)
PedOverrideStat(Thug, 15, 100)
PedOverrideStat(Thug, 14, 75)
F_ChoosePrank(Thug, 12)
end
F_HeldAgainstWall,
if AreaPOICompareName(POIInfo, "F_HeldAgainstWall") then
function F_HeldAgainstWall(POIInfo, POIPointType, POIPointFaction, POIPointNum, POIGender, ped1, ped2, ped3, ped4)
if POIPointFaction == 12 then
ped1 = RandomElement3(4, 5, 2)
if ped1 == 5 then
ped1 = GetStudent(ped1, 1, -1)
ped2 = GetStudent(1, 1, 1)
else
ped1 = GetStudent(ped1, 1, -1)
ped2 = RandomElement2(1, 6)
if ped2 == 6 then
ped2 = GetStudent(6, 1, -1)
else
ped2 = GetStudent(1, 1, 1)
end
end
elseif POIPointFaction == 0 or POIPointFaction == 7 then
if MissionActive() then
return
else
ped1 = GetStudent(POIPointFaction, 1)
ped2 = GetStudent(RandomElement4(4, 5, 2, 11), 1, 1)
end
elseif POIPointFaction == 5 then
ped1 = GetStudent(POIPointFaction, 1, -1)
ped2 = GetStudent(1, 1, 1)
else
repeat
if POIPointFaction ~= 1 then
end
do return end
do break end
ped1 = GetStudent(POIPointFaction, 1, -1)
ped2 = F_GetOpposingFaction(POIPointFaction)
if ped2 ~= 6 then
ped2 = GetStudent(6, 1, -1)
else
ped2 = GetStudent(1, 1, 1)
end
until true
end
if ped1 == -1 or ped2 == -1 then
return
end
LoadPedPOIModel(ped1)
LoadPedPOIModel(ped2)
local Victim = PedCreatePOIPoint(ped2, POIInfo, 0, 0, 0)
local Thug = PedCreatePOIPoint(ped1, POIInfo, 0, -0.5, 0)
if Victim == -1 or Thug == -1 then
return
end
PedFaceObjectNow(Victim, Thug, 2)
PedFaceObjectNow(Thug, Victim, 2)
if PedHasWeapon(Victim, 300) or PedHasWeapon(Victim, 312) then
if PedHasWeapon(Victim, 300) then
PedDestroyWeapon(Victim, 300)
else
PedDestroyWeapon(Victim, 312)
end
end
PedWander(Thug, 0)
PedWander(Victim, 0)
PedLockTarget(Thug, Victim, 3)
PedLockTarget(Victim, Thug, 3)
local result = ExecuteActionNode(Thug, "/Global/Ambient/Scripted/Wall_Hold", "Act/Anim/Ambient.act")
if result == true then
PedLockTarget(Thug, -1)
PedLockTarget(Victim, -1)
end
end
elseif AreaPOICompareName(info, "F_HCriminal") or AreaPOICompareName(info, "F_HStudent") then
elseif AreaPOICompareName(POIInfo, "F_HStudent") then
F_HStudent,
function F_HStudent(POIInfo, POIPointType, POIPointFaction, POIPointNum, POIGender, ped1, ped2, ped3, ped4)
local model = -1
local pickedModel
for pedCount = 1, 13 do
pickedModel = RandomElement13(168, 159, 161, 162, 163, 164, 166, 167, 169, 170, 171, 173, 174)
--print(pickedModel)
if PedGetPedCountWithModel(pickedModel) > 0 then
pickedModel = nil
pedCount = pedCount + 1
--print(pedCount)
else
model = pickedModel
pedCount = 13
end
end
local dirroll = math.random(1, 100)
if model == -1 then
return
end
LoadPedPOIModel(model)
local ped = PedCreatePOIPoint(model, POIInfo, 0, 0, 0)
if ped == -1 then
return
end
if 50 < dirroll then
local head = PedGetHeading(ped) + 180
PedFaceHeading(ped, head, 0)
end
PedSetFlag(ped, 120, true)
PedWander(ped, 0)
end
elseif AreaPOICompareName(info, "F_CarnivalWalker") or AreaPOICompareName(info, "F_Industrial") or AreaPOICompareName(info, "F_DockWorker") or AreaPOICompareName(info, "F_MillWorker") or AreaPOICompareName(info, "F_PrincipalPOI") or AreaPOICompareName(info, "F_DockWorker") or AreaPOICompareName(info, "F_MillWorker") or AreaPOICompareName(info, "F_Fireman") or AreaPOICompareName(info, "F_RandomStudent") or AreaPOICompareName(info, "F_SocialHangout") then
elseif AreaPOICompareName(POIInfo, "F_Industrial") then
F_Industrial,
function F_Industrial(POIInfo, POIPointType, POIPointFaction, POIPointNum, POIGender, ped1, ped2, ped3, ped4)
local model = RandomElement3(123, 236, 237)
LoadPedPOIModel(model)
local char = PedCreatePOIPoint(model, POIInfo, 0, 0, 0)
if char == -1 then
return
end
PedSetFlag(char, 120, true)
PedWander(char, 0)
end
elseif AreaPOICompareName(info, "F_InstantBully") then
elseif AreaPOICompareName(POIInfo, "F_InstantBully") then
function F_InstantBully(POIInfo, POIPointType, POIPointFaction, POIPointNum, POIGender, ped1, ped2, ped3, ped4)
if shared.bBathroomPOIEnabled == false then
return
end
local randomroll = math.random(1, 100)
local model
if POIPointFaction == 12 then
if randomroll < 40 then
model = GetStudent(11, 1)
elseif randomroll < 60 then
model = GetStudent(4, 1)
elseif randomroll < 90 then
model = GetStudent(2, 1)
elseif randomroll <= 100 then
model = GetStudent(5, 1)
end
else
model = GetStudent(POIPointFaction, 1)
end
if model == -1 then
return
end
LoadPedPOIModel(model)
local char = PedCreatePOIPoint(model, POIInfo, 0, 0, 0)
if char == -1 then
return
end
if PedGetPedToTypeAttitude(char, 13) == 1 or PedGetPedToTypeAttitude(char, 13) == 2 then
PedSetFlag(char, 120, true)
PedOverrideStat(char, 14, 80)
PedSetEmotionTowardsPed(char, gPlayer, 0, false)
PedSetWantsToSocializeWithPed(char, gPlayer)
else
PedSetFlag(char, 120, true)
PedWander(char, 0)
PedSetWantsToSocializeWithPed(char, gPlayer)
end
end
elseif F_IsButtonPressedWithDelayCheck(13, 1) then
elseif F_IsButtonPressedWithDelayCheck(3, 1) then
elseif F_IsButtonPressedWithDelayCheck(6, 1) then
if AreaGetVisible() == 31 and F_IsButtonPressedWithDelayCheck(15, 1) then
if F_IsButtonPressedWithDelayCheck(10, 1) and not CameraDebugActive() then
if F_IsButtonPressedWithDelayCheck(11, 1) then
if F_IsButtonPressedWithDelayCheck(13, 1) then
if F_IsButtonPressedWithDelayCheck(7, 0) then
if mSkip and F_IsButtonPressedWithDelayCheck(7, 0, 2, 200) then
if not b_DebuggingNIS and F_IsButtonPressedWithDelayCheck(6, 1) then
function F_IsButtonPressedWithDelayCheck(button, pad, timerIndex, delay)
timerIndex = timerIndex or 1
delay = delay or 200
--assert(__LastButtonTime[timerIndex], "SGlFunc.lua: bad timerIndex.")
if IsButtonPressed(button, pad) and delay < GetTimer() - __LastButtonTime[timerIndex] then
__LastButtonTime[timerIndex] = GetTimer()
return true
end
return false
end
if F_IsSmallKid(ped1) then
function F_IsSmallKid(PedModel)
if PedModel == 69 or PedModel == 66 or PedModel == 68 or PedModel == 137 or PedModel == 138 or PedModel == 159 then
return true
end
return false
end
--print("F_LaunchingMission: ", tostring(missionIndex))
function F_LaunchingMission(missionIndex)
--print("F_LaunchingMission: ", tostring(missionIndex))
if missionIndex == MissionGetIndex("2_S04") then
--print("WTF 2S04????")
DebugMissionPassDependant(MissionGetIndex("Chapt1Trans"))
end
end
function F_LawnmowerAvailable()
local savedData = PlayerGetScriptSavedData(14)
if ChapterGet() ~= 2 and savedData == 1 then
return 1
end
return 0
end
F_LoadSprayCans()
F_LoadSprayCans(true)
function F_LoadSprayCans(forceLoad)
--print("EXECUTING?")
if IsMissionCompleated("3_S10") or forceLoad then
--print("LOAD THE SPRAY CANS!")
DATLoad("world_spray_cans.DAT", 1)
DATInit()
end
end
elseif AreaPOICompareName(info, "F_LockerStuff") or AreaPOICompareName(info, "F_SocialHumiliation") or AreaPOICompareName(info, "F_TrashStuff") or AreaPOICompareName(info, "F_Swirlie") then
elseif AreaPOICompareName(POIInfo, "F_LockerStuff") then
F_LockerStuff,
function F_LockerStuff(POIInfo, POIPointType, POIPointFaction, POIPointNum, POIGender, ped1, ped2, ped3, ped4)
if GetMissionSuccessCount("1_02B") == 0 then
return
end
local charType
--print("POIPointFaction: ", POIPointFaction)
if POIPointFaction == 11 or POIPointFaction == 4 or POIPointFaction == 5 or POIPointFaction == 2 then
charType = POIPointFaction
elseif POIPointFaction == 1 then
return
else
charType = RandomElement4(4, 11, 5, 2)
end
if charType == 5 then
ped1 = GetStudent(charType, 1, -1)
ped2 = GetStudent(1, 1, -1)
else
ped1 = GetStudent(charType, 1, -1)
charType = RandomElement2(1, 6)
ped2 = GetStudent(charType, 1, -1)
end
if ped1 == -1 or ped2 == -1 then
return
end
POISetScriptedPedExitObjective(POIInfo, 0)
LoadPedPOIModel(ped1)
LoadPedPOIModel(ped2)
local Victim = PedCreatePOIPoint(ped2, POIInfo, 0, 1, 0)
local Thug = PedCreatePOIPoint(ped1, POIInfo, 0, 0, 0)
if Victim == -1 or Thug == -1 then
return
end
PedClearAllWeapons(Thug)
PedLockTarget(Thug, Victim, 0)
PedLockTarget(Victim, Thug, 0)
PedFaceObjectNow(Victim, Thug, 2)
PedFaceObjectNow(Thug, Victim, 2)
local result = POIActionNode2(Thug, Victim, "/Global/Ambient/Scripted/LockerStuff", "Act/Anim/Ambient.act")
if result == true then
PropTimer = GetTimer()
end
end
function F_LockpickingDoorIsOpen()
if shared.gLockpickingSuccess == true then
return 1
end
return 0
end
function F_LockpickingRewardPlayer()
end
function F_CheckLockerUnlocked()
if LockerUnlocked == true then
--print("Locker has been UNLOCKED!")
PAnimSetActionNode(TRIGGER._NLOCK01B05, "/Global/NLockA/Unlocked", "Act/Props/NLockA.act")
if LockerBlip ~= 0 then
BlipRemove(LockerBlip)
LockerBlip = 0
end
Wait(2000)
bPlayerWasGivenChocolates = false
if 0 < ItemGetCurrentNum(478) then
ItemSetCurrentNum(478, ItemGetCurrentNum(478) - 1)
end
PedSetScenarioObjFlag(ScenarioPed, true)
return true
else
return false
end
return false
end
F_MagicalJasonsByRobertoTransition(0, POINTLIST._INDUS_POINTS, 1, true)
F_MagicalJasonsByRobertoTransition(13, POINTLIST._GARAGEROOF, 4, true)
function F_MagicalJasonsByRobertoTransition(visibleArea, pointlist, num, disableCameraControl)
AreaForceLoadAreaByAreaTransition(true)
if disableCameraControl then
AreaDisableCameraControlForTransition(true)
end
PedSetEffectedByGravity(gPlayer, false)
SoundDisableSpeech()
SoundPause()
local x, y, z
if num ~= nil then
x, y, z = GetPointFromPointList(pointlist, num)
else
x, y, z = GetPointList(pointlist)
end
PlayerSetPosXYZArea(x, y, z, visibleArea)
Wait(5)
local count = 0
while AreaIsLoading() and IsStreamingBusy() do
if count == 0 then
end
count = count + 1
Wait(0)
end
if disableCameraControl then
AreaDisableCameraControlForTransition(false)
end
AreaForceLoadAreaByAreaTransition(false)
Wait(100)
PedSetEffectedByGravity(gPlayer, true)
SoundEnableSpeech()
SoundContinue()
end
--print(">>>[RUI]", "++F_MakePlayerSafeForNIS")
--print(">>>[RUI]", "--F_MakePlayerSafeForNIS")
F_MakePlayerSafeForNIS(false)
F_MakePlayerSafeForNIS(false, false)
F_MakePlayerSafeForNIS(false, true)
F_MakePlayerSafeForNIS(true)
F_MakePlayerSafeForNIS(true, false)
F_MakePlayerSafeForNIS(true, false, false, true)
F_MakePlayerSafeForNIS(true, false, true, false)
F_MakePlayerSafeForNIS(true, true)
F_MakePlayerSafeForNIS(true, true, true)
F_MakePlayerSafeForNIS(true, true, true, false)
function F_MakePlayerSafeForNIS(bOn, bWeapon, bAllowAmbientSpeech, bPreserveAmbientPopulation)
local turnOn = bOn
if turnOn == nil then
turnOn = true
end
local bKeepWeapon = bWeapon
if bKeepWeapon == nil then
bKeepWeapon = true
end
if bPreserveAmbientPopulation == nil then
bPreserveAmbientPopulation = true
end
if turnOn then
EnterNIS()
if not bAllowAmbientSpeech then
SoundDisableSpeech_ActionTree()
SoundStopCurrentSpeechEvent()
end
if bKeepWeapon then
shared.gWeaponBeforeCut = PedGetWeapon(gPlayer)
shared.gAmmoBeforeCut = PedGetAmmoCount(gPlayer, shared.gWeaponBeforeCut)
end
PedSetWeaponNow(gPlayer, -1, 0)
AreaClearAllExplosions()
AreaClearAllProjectiles()
PedSetFlag(gPlayer, 108, true)
PedSetFlag(gPlayer, 117, false)
PedSetFlag(gPlayer, 2, false)
if CameraGetActive() ~= 4 then
if CameraGetActive() == 2 then
CameraSetActive(13, 0.5, false)
else
CameraSetActive(1, 0.5, false)
end
end
DisablePunishmentSystem(true)
StopAmbientPedAttacks()
SetAmbientPedsIgnoreStimuli(true)
PedStop(gPlayer)
PedSetInvulnerable(gPlayer, true)
if not bPreserveAmbientPopulation then
AreaClearAllPeds()
StopPedProduction(true)
shared.bClearedPopulationBeforeCut = true
else
shared.bClearedPopulationBeforeCut = false
end
--print(">>>[RUI]", "++F_MakePlayerSafeForNIS")
else
if shared.bClearedPopulationBeforeCut ~= nil and shared.bClearedPopulationBeforeCut then
StopPedProduction(false)
shared.bClearedPopulationBeforeCut = nil
end
if not bAllowAmbientSpeech then
SoundEnableSpeech_ActionTree()
end
if bKeepWeapon and not WeaponEquipped() and F_ObjectIsValid(shared.gWeaponBeforeCut) and shared.gWeaponBeforeCut ~= 437 and shared.gWeaponBeforeCut ~= 363 and (not ClothingIsWearingOutfit("Mascot") or ClothingIsWearingOutfit("Mascot") and not bHadProjectileWeapon) then
shared.gAmmoBeforeCut = PedGetAmmoCount(gPlayer, shared.gWeaponBeforeCut)
PlayerSetWeapon(shared.gWeaponBeforeCut, shared.gAmmoBeforeCut, false)
shared.gWeaponBeforeCut = nil
shared.gAmmoBeforeCut = 0
end
DisablePunishmentSystem(false)
PedSetInvulnerable(gPlayer, false)
SetAmbientPedsIgnoreStimuli(false)
PedMakeTargetable(gPlayer, true)
PedSetFlag(gPlayer, 108, false)
PedSetFlag(gPlayer, 117, true)
bHadProjectileWeapon = shared.gWeaponBeforeCut == 303 or shared.gWeaponBeforeCut == 306 or shared.gWeaponBeforeCut == 305 or shared.gWeaponBeforeCut == 307
ExitNIS()
--print(">>>[RUI]", "--F_MakePlayerSafeForNIS")
end
if CameraGetActive() ~= 4 and CameraGetActive() ~= 1 then
CameraSetActive(1, 0.5, false)
end
end
elseif AreaPOICompareName(info, "F_CarnivalWalker") or AreaPOICompareName(info, "F_Industrial") or AreaPOICompareName(info, "F_DockWorker") or AreaPOICompareName(info, "F_MillWorker") or AreaPOICompareName(info, "F_PrincipalPOI") or AreaPOICompareName(info, "F_DockWorker") or AreaPOICompareName(info, "F_MillWorker") or AreaPOICompareName(info, "F_Fireman") or AreaPOICompareName(info, "F_RandomStudent") or AreaPOICompareName(info, "F_SocialHangout") then
elseif AreaPOICompareName(POIInfo, "F_MillWorker") then
F_MillWorker,
function F_MillWorker(POIInfo, POIPointType, POIPointFaction, POIPointNum, POIGender, ped1, ped2, ped3, ped4)
LoadPedPOIModel(222)
local char = PedCreatePOIPoint(222, POIInfo, 0, 0, 0)
if char == -1 then
return
end
PedSetFlag(char, 120, true)
PedWander(char, 0)
end
F_MissionCompleteModelChanges()
function F_MissionCompleteModelChanges()
if IsMissionCompleated("1_05") then
PedSetUniqueModelStatus(4, 1)
end
if IsMissionCompleated("1_07") then
PedSetUniqueModelStatus(4, 1)
PedSetUniqueModelStatus(8, 1)
end
if IsMissionCompleated("1_08") then
PedSetUniqueModelStatus(3, 1)
PedSetUniqueModelStatus(14, 1)
end
if IsMissionCompleated("2_S04") then
PedSetUniqueModelStatus(6, 1)
end
if IsMissionCompleated("1_G1") then
PedSetUniqueModelStatus(3, 1)
end
if IsMissionCompleated("2_06") then
PedSetUniqueModelStatus(38, 1)
PedSetUniqueModelStatus(30, 1)
end
if IsMissionCompleated("2_03") then
PedSetUniqueModelStatus(31, 1)
PedSetUniqueModelStatus(32, 1)
PedSetUniqueModelStatus(40, 1)
end
if IsMissionCompleated("2_G2") then
PedSetUniqueModelStatus(38, 1)
end
if IsMissionCompleated("2_05") then
PedSetUniqueModelStatus(31, 1)
end
if IsMissionCompleated("2_07") then
PedSetUniqueModelStatus(28, 1)
end
if IsMissionCompleated("2_08") then
PedSetUniqueModelStatus(64, 1)
end
if IsMissionCompleated("2_B") then
PedSetUniqueModelStatus(135, 2)
end
if IsMissionCompleated("2_S06") then
PedSetUniqueModelStatus(55, 1)
end
if IsMissionCompleated("3_S10") then
PedSetUniqueModelStatus(32, 1)
PedSetUniqueModelStatus(30, 1)
end
if IsMissionCompleated("3_04") then
PedSetUniqueModelStatus(4, 1)
end
if IsMissionCompleated("3_G3") then
PedSetUniqueModelStatus(25, 1)
end
if IsMissionCompleated("3_05") then
PedSetUniqueModelStatus(25, 1)
end
if IsMissionCompleated("3_06") then
PedSetUniqueModelStatus(25, 1)
end
if IsMissionCompleated("2_02") then
PedSetUniqueModelStatus(70, 1)
end
if IsMissionCompleated("4_02") then
PedSetUniqueModelStatus(4, 1)
end
if IsMissionCompleated("4_04") then
PedSetUniqueModelStatus(4, 1)
PedSetUniqueModelStatus(11, 1)
PedSetUniqueModelStatus(11, 1)
end
if IsMissionCompleated("4_G4") then
PedSetUniqueModelStatus(14, 1)
end
if IsMissionCompleated("5_04") then
PedSetUniqueModelStatus(55, 1)
end
if IsMissionCompleated("5_01") then
PedSetUniqueModelStatus(4, 1)
PedSetUniqueModelStatus(3, 1)
end
if IsMissionCompleated("5_03") then
PedSetUniqueModelStatus(25, 1)
PedSetUniqueModelStatus(29, 1)
end
if IsMissionCompleated("5_02") then
PedSetUniqueModelStatus(33, 1)
PedSetUniqueModelStatus(34, 1)
end
if IsMissionCompleated("1_S01") then
PedSetUniqueModelStatus(61, 1)
PedSetUniqueModelStatus(57, 1)
end
if IsMissionCompleated("4_S12") then
PedSetUniqueModelStatus(63, 1)
end
if IsMissionCompleated("3_S03") then
PedSetUniqueModelStatus(61, -1)
end
if IsMissionCompleated("3_S11") then
PedSetUniqueModelStatus(63, 1)
PedSetUniqueModelStatus(57, 1)
end
if IsMissionCompleated("6_B") then
PedSetUniqueModelStatus(48, -1)
PedSetUniqueModelStatus(2, 1)
end
end
F_MissionFactionChanges()
function F_MissionFactionChanges()
if IsMissionCompleated("6_B") then
PedSetDefaultTypeToTypeAttitude(11, 13, 4)
elseif IsMissionCompleated("1_B") then
PedSetDefaultTypeToTypeAttitude(11, 13, 4)
elseif IsMissionCompleated("1_11x2") then
PedSetDefaultTypeToTypeAttitude(11, 13, 0)
elseif IsMissionCompleated("1_11x1") then
PedSetDefaultTypeToTypeAttitude(11, 13, 2)
elseif IsMissionCompleated("1_07") then
PedSetDefaultTypeToTypeAttitude(11, 13, 0)
elseif IsMissionCompleated("1_04") then
PedSetDefaultTypeToTypeAttitude(11, 13, 1)
else
PedSetDefaultTypeToTypeAttitude(11, 13, 1)
end
if IsMissionCompleated("6_B") then
PedSetDefaultTypeToTypeAttitude(1, 13, 4)
elseif IsMissionCompleated("5_09") then
PedSetDefaultTypeToTypeAttitude(1, 13, 1)
elseif IsMissionCompleated("4_B2") then
PedSetDefaultTypeToTypeAttitude(1, 13, 4)
elseif IsMissionCompleated("4_G4") then
PedSetDefaultTypeToTypeAttitude(1, 13, 3)
elseif IsMissionCompleated("3_B") then
PedSetDefaultTypeToTypeAttitude(1, 13, 4)
elseif IsMissionCompleated("1_04") then
PedSetDefaultTypeToTypeAttitude(1, 13, 3)
else
PedSetDefaultTypeToTypeAttitude(1, 13, 2)
end
if IsMissionCompleated("6_B") then
PedSetDefaultTypeToTypeAttitude(5, 13, 4)
elseif IsMissionCompleated("5_09") then
PedSetDefaultTypeToTypeAttitude(5, 13, 1)
elseif IsMissionCompleated("3_S10") then
PedSetDefaultTypeToTypeAttitude(5, 13, 4)
elseif IsMissionCompleated("3_02") then
PedSetDefaultTypeToTypeAttitude(5, 13, 3)
elseif IsMissionCompleated("2_B") then
PedSetDefaultTypeToTypeAttitude(5, 13, 4)
elseif IsMissionCompleated("2_05") then
PedSetDefaultTypeToTypeAttitude(5, 13, 0)
elseif IsMissionCompleated("2_03") then
PedSetDefaultTypeToTypeAttitude(5, 13, 1)
elseif IsMissionCompleated("1_B") then
PedSetDefaultTypeToTypeAttitude(5, 13, 2)
elseif IsMissionCompleated("1_11x2") then
PedSetDefaultTypeToTypeAttitude(5, 13, 2)
elseif IsMissionCompleated("1_11x1") then
PedSetDefaultTypeToTypeAttitude(5, 13, 2)
elseif IsMissionCompleated("1_04") then
PedSetDefaultTypeToTypeAttitude(5, 13, 2)
else
PedSetDefaultTypeToTypeAttitude(5, 13, 2)
end
if IsMissionCompleated("6_B") then
PedSetDefaultTypeToTypeAttitude(4, 13, 4)
elseif IsMissionCompleated("5_03") then
PedSetDefaultTypeToTypeAttitude(4, 13, 2)
elseif IsMissionCompleated("5_09") then
PedSetDefaultTypeToTypeAttitude(4, 13, 1)
elseif IsMissionCompleated("3_B") then
PedSetDefaultTypeToTypeAttitude(4, 13, 4)
elseif IsMissionCompleated("3_05") then
PedSetDefaultTypeToTypeAttitude(4, 13, 0)
elseif IsMissionCompleated("3_S10") then
PedSetDefaultTypeToTypeAttitude(4, 13, 1)
elseif IsMissionCompleated("3_01") then
PedSetDefaultTypeToTypeAttitude(4, 13, 3)
elseif IsMissionCompleated("1_04") then
PedSetDefaultTypeToTypeAttitude(4, 13, 2)
else
PedSetDefaultTypeToTypeAttitude(4, 13, 2)
end
if IsMissionCompleated("6_B") then
PedSetDefaultTypeToTypeAttitude(2, 13, 4)
elseif IsMissionCompleated("5_09") then
PedSetDefaultTypeToTypeAttitude(2, 13, 1)
elseif IsMissionCompleated("4_B2") then
PedSetDefaultTypeToTypeAttitude(2, 13, 4)
elseif IsMissionCompleated("4_01") then
PedSetDefaultTypeToTypeAttitude(2, 13, 1)
elseif IsMissionCompleated("4_02") then
PedSetDefaultTypeToTypeAttitude(2, 13, 2)
elseif IsMissionCompleated("1_11x2") then
PedSetDefaultTypeToTypeAttitude(2, 13, 1)
elseif IsMissionCompleated("1_11x1") then
PedSetDefaultTypeToTypeAttitude(2, 13, 2)
elseif IsMissionCompleated("1_09") then
PedSetDefaultTypeToTypeAttitude(2, 13, 1)
elseif IsMissionCompleated("1_04") then
PedSetDefaultTypeToTypeAttitude(2, 13, 2)
else
PedSetDefaultTypeToTypeAttitude(2, 13, 2)
end
if IsMissionCompleated("6_B") then
PedSetDefaultTypeToTypeAttitude(3, 13, 4)
elseif IsMissionCompleated("5_B") then
PedSetDefaultTypeToTypeAttitude(3, 13, 4)
elseif IsMissionCompleated("4_B2") then
PedSetDefaultTypeToTypeAttitude(3, 13, 0)
else
PedSetDefaultTypeToTypeAttitude(3, 13, 1)
end
if IsMissionCompleated("6_B") then
PedSetDefaultTypeToTypeAttitude(6, 13, 4)
elseif IsMissionCompleated("5_09") then
PedSetDefaultTypeToTypeAttitude(6, 13, 1)
elseif IsMissionCompleated("1_04") then
PedSetDefaultTypeToTypeAttitude(6, 13, 3)
else
PedSetDefaultTypeToTypeAttitude(6, 13, 2)
end
PedSetDefaultTypeToTypeAttitude(0, 13, 1)
if IsMissionCompleated("6_B") then
PedSetDefaultTypeToTypeAttitude(8, 13, 3)
else
PedSetDefaultTypeToTypeAttitude(8, 13, 2)
end
PedSetDefaultTypeToTypeAttitude(9, 13, 2)
end
if bKeepWeapon and not WeaponEquipped() and F_ObjectIsValid(shared.gWeaponBeforeCut) and shared.gWeaponBeforeCut ~= 437 and shared.gWeaponBeforeCut ~= 363 and (not ClothingIsWearingOutfit("Mascot") or ClothingIsWearingOutfit("Mascot") and not bHadProjectileWeapon) then
if F_ObjectIsValid(anim) then
if F_ObjectIsValid(car) and VehicleIsValid(car) then
if F_ObjectIsValid(entry.id) then
if F_ObjectIsValid(model) and not VehicleRequestModel(model) then
if F_ObjectIsValid(model) then
if F_ObjectIsValid(vehicle) and VehicleIsValid(vehicle) then
if not F_ObjectIsValid(car) then
function F_ObjectIsValid(thing)
return thing ~= nil and thing ~= -1
end
elseif AreaPOICompareName(POIInfo, "F_OutsideClass") then
F_OutsideClass,
function F_OutsideClass(POIInfo, POIPointType, POIPointFaction, POIPointNum, POIGender, ped1, ped2, ped3, ped4)
ped1 = GetStudent(6, 1, -1)
if ped1 == -1 then
return
end
LoadPedPOIModel(ped1)
local student
student = PedCreatePOIPoint(ped1, POIInfo, 0, 0, 0)
if student == -1 then
return
end
PedStop(student)
end
elseif F_PedExists(gGary) then
elseif F_PedExists(ped) then
elseif F_PedExists(pedJockPushup01.id) then
if attacker and F_PedExists(attacker.id) then
if bLaunchedEunice and F_PedExists(pedEunice.id) then
if F_PedExists(attacker.id) and not F_PedIsDead(attacker.id) then
if F_PedExists(attacker.id) and not PedIsInTrigger(attacker.id, TRIGGER._1_03_KEEPPEDTRIGGER) then
if F_PedExists(attacker.id) then
if F_PedExists(car.driver) and PedIsInVehicle(car.driver, car.id) then
if F_PedExists(dude) then
if F_PedExists(egger) and not PedHasWeapon(egger, 312) then
if F_PedExists(egger.id) then
if F_PedExists(gAttacker) then
if F_PedExists(gCarnie) then
if F_PedExists(gCarny) then
if F_PedExists(gChad) then
if F_PedExists(gControlOrderly) then
if F_PedExists(gCop3) then
if F_PedExists(gCSBully) then
if F_PedExists(gDavis) then
if F_PedExists(gDuncan) then
if F_PedExists(gFatty) then
if F_PedExists(gGary) then
if F_PedExists(gGas) then
if F_PedExists(gGord) then
if F_PedExists(gHattrick) then
if F_PedExists(gHealthNerd) then
if F_PedExists(gJerry) then
if F_PedExists(gJogger) then
if F_PedExists(gLeon) then
if F_PedExists(gMelvin) then
if F_PedExists(gObserver) then
if F_PedExists(gOtto) then
if F_PedExists(gPed) then
if F_PedExists(gPeter) then
if F_PedExists(greaser.id) then
if F_PedExists(gRussell.id) then
if F_PedExists(gStationOrderly) then
if F_PedExists(gTad) then
if F_PedExists(gThad) and not sheet2_dropped then
if F_PedExists(gThad) then
if F_PedExists(gTorch) then
if F_PedExists(guy) then
if F_PedExists(guy.id) then
if F_PedExists(ped) then
if F_PedExists(pedAlgie.id) then
if F_PedExists(pedAsianGirl.id) then
if F_PedExists(pedBeatrice.id) then
if F_PedExists(pedBryce) then
if F_PedExists(pedBurton.id) then
if F_PedExists(pedBurtonStage3.id) then
if F_PedExists(pedChad) then
if F_PedExists(pedCornelius.id) then
if F_PedExists(pedEarnest.id) then
if F_PedExists(pedEunice.id) then
if F_PedExists(pedGary.id) then
if F_PedExists(pedGord) then
if F_PedExists(pedGreaser01.id) then
if F_PedExists(pedGreaser02.id) then
if F_PedExists(pedGreaser03.id) then
if F_PedExists(pedGreaser04.id) then
if F_PedExists(pedID) then
if F_PedExists(pedJockBathroomSecondFloor01.id) then
if F_PedExists(pedJockBathroomSecondFloor02.id) then
if F_PedExists(pedJockSprint01.id) then
if F_PedExists(pedJohnny.id) then
if F_PedExists(pedParker) then
if F_PedExists(pedPinky.id) then
if F_PedExists(pedPoolPrep.id) then
if F_PedExists(pedRicky) then
if F_PedExists(pedSexyGirl.id) then
if F_PedExists(pedStg3Girl01.id) then
if F_PedExists(pedStg3Girl02.id) then
if F_PedExists(pedStg3Girl03.id) then
if F_PedExists(pedStoreOwner.id) then
if F_PedExists(prefect) then
if F_PedExists(prepId) then
if F_PedExists(rider01) then
if F_PedExists(rider02) then
if F_PedExists(shared.gGary) then
if F_PedExists(shared.gPetey) then
if F_PedExists(sheet1Bruiser) then
if F_PedExists(sheet1Guard) then
if F_PedExists(sweater_guard) and PlayerIsInTrigger(TRIGGER._IBOXING_SWEATER_TRIG) and bSweaterCheckOn and not F_PlayerHasAquaberrySweater() then
if F_PedExists(sweater_guard) then
if F_PedExists(tableAllJocks[i]) then
if F_PedExists(tableExtraJocks[i]) then
if F_PedExists(tblEntry.id) then
if F_PedExists(tblTad.id) then
if guy and F_PedExists(guy) then
if not F_PedExists(gCop1) then
if not F_PedExists(gPeter) then
if not F_PedExists(ped) then
if not F_PedExists(pedId) then
if not F_PedExists(ratPacker) then
if pathNode == PathGetLastNode(pathId) and F_PedExists(gFatty) and pedId == gFatty then
if pedId ~= sheet4Guard or not F_PedExists(sheet4Guard) then
if PlayerIsInAreaObject(sheet4Guard, 2, MARBLE_DISTANCE, 0) and not bMarblesMaxed and F_PedExists(sheet4Guard) and bHasMarbles then
while not F_PedExists(gPeter) do
function F_PedExists(ped)
return ped and PedIsValid(ped) and not F_PedIsDead(ped)
end
bGaryHasDied = F_PedIsDead(idNemesis)
elseif AreaGetVisible() == 62 and not F_PedIsDead(gPlayer) then
elseif bActive and not ObjectiveMet and not F_PedIsDead(gPlayer) and shared.gBusTransition == nil then
elseif bTimedOut and bActive and not ObjectiveMet and not F_PedIsDead(gPlayer) then
elseif F_PedIsDead(gPete) then
elseif F_PedIsDead(gRussell.id) then
elseif gFailureTimer + 5000 < GetTimer() and not F_PedIsDead(gPlayer) then
elseif not F_PedIsDead(tblGord.id) and bOutOfRange and PlayerIsInAreaObject(tblGord.id, 2, gTooFarFromGord, 0) then
elseif PedIsDead(ScenarioPed) or PedGetWhoHitMeLast(ScenarioPed) == gPlayer and not F_PedIsDead(gPlayer) then
if bActive and F_PedIsDead(ScenarioPed) then
if bActive and not bChristyFollows and not F_PedIsDead(gPlayer) then
if bActive and not bTimedOut and not ObjectiveMet and not F_PedIsDead(gPlayer) and shared.gBusTransition == nil then
if bActive and not F_PedIsDead(gPlayer) then
if bActive and not gLadyArrived and not ObjectiveMet and not F_PedIsDead(gPlayer) and shared.gBusTransition == nil then
if bActive and not ObjectiveMet and not F_PedIsDead(gPlayer) and shared.gBusTransition == nil then
if bActive and PedIsDead(ScenarioPed) and not F_PedIsDead(gPlayer) then
if bActive and PedIsValid(Dog) and (PedIsInCombat(Dog) or PedIsDead(Dog) or PedGetWhoHitMeLast(Dog) == gPlayer or PedIsDoingTask(Dog, "/Global/AI_Dog/GeneralObjectives/FleeObjective", true) and not F_PedIsDead(gPlayer)) then
if bCheckSheet1 and not sheet1_dropped and F_PedIsDead(sheet1Guard) then
if bCrazy02Spawned and F_PedIsDead(Crazy02) or bCrazy01Spawned and F_PedIsDead(Crazy01) then
if bInBasement and not F_PedIsDead(gPlayer) then
if bMelvinExists and F_PedIsDead(gMelvin) then
if bNotEnoughCrabs and not shared.gCurrentAmbientScenarioObject.completed and not F_PedIsDead(gPlayer) then
if bOutOfEggs and GetTimer() >= eggTimer and not F_PedIsDead(gPlayer) then
if bPlayerWasGivenChocolates and not PlayerHasItem(478) and not F_PedIsDead(gPlayer) then
if bPlayerWasGivenEggs and not PlayerHasItem(312) and not F_PedIsDead(gPlayer) then
if bSheet2AttackExists and not sheet2_dropped and F_PedIsDead(sheet2Guard) then
if bSpotted and bActive and not ObjectiveMet and not F_PedIsDead(gPlayer) then
if dude and not F_PedIsDead(dude.id) and (dude.bInFrame or dude.bWasInFrame) then
if dude and not F_PedIsDead(dude.id) then
if F_PedExists(attacker.id) and not F_PedIsDead(attacker.id) then
if F_PedIsDead(gBully1) and F_PedIsDead(gBully2) and F_PedIsDead(gBully3) then
if F_PedIsDead(gGary) then
if F_PedIsDead(gJV_OnBike) then
if F_PedIsDead(gPlayer) then
if F_PedIsDead(gTad) then
if F_PedIsDead(idBurton) then
if F_PedIsDead(idEunice.id) or PedGetWhoHitMeLast(idEunice.id) == gPlayer then
if F_PedIsDead(idEunice.id) then
if F_PedIsDead(pedid) then
if F_PedIsDead(sheet3Guard) and not bWandering then
if F_PedIsDead(sheet4Guard) then
if guy.bAlive and F_PedIsDead(guy.id) then
if guy.cur_path == gPeterCurrentPath and F_PedIsDead(guy.id) then
if guy.time == -1 and guy.state == STATE_RUNN and PedIsValid(guy.id) and not F_PedIsDead(guy.id) then
if not (not F_PedIsDead(tbl.id) and (not PedIsInCombat(tbl.id) or bPrankCompleted or tbl.bActive)) or PedGetWhoHitMeLast(tbl.id) == gPlayer and not tbl.bActive then
if not bKeyDropped and F_PedIsDead(gKeyMaster) and not bKeyDropped then
if not F_PedIsDead(gJV_OnBike) then
if not F_PedIsDead(gKeyMaster1) then
if not F_PedIsDead(gKeyMaster2) then
if not F_PedIsDead(gPeter) then
if not F_PedIsDead(gRussell.id) then
if not F_PedIsDead(guy.id) then
if not F_PedIsDead(pedID) then
if not F_PedIsDead(sheet1Bruiser) and not bSheet1BruiserHandled then
if not F_PedIsDead(sheet1Guard) and not bSheet1GuardHandled then
if not F_PedIsDead(sheet3Guard) then
if not F_PedIsDead(sheet4Guard) then
if not F_PedIsDead(tblGord.id) and not bOutOfRange and not PlayerIsInAreaObject(tblGord.id, 2, gTooFarFromGord, 0) then
if not JohnnyPrepAttack and not F_PedIsDead(gJV_OnBike) and DistanceBetweenPeds2D(gPlayer, gJV_OnBike) <= 2.3 and PedIsInVehicle(gJV_OnBike, gJV_Bike) and PedIsInAnyVehicle(gJV_OnBike) then
if not PedIsValid(idGord.id) or PedIsDead(idGord.id) or F_PedIsDead(idGord.id) then
if not sheet3_dropped and F_PedIsDead(sheet3Guard) then
if not sheet4_dropped and F_PedIsDead(sheet4Guard) then
if not SoundSpeechPlaying(gKeyMaster) and not F_PedIsDead(gKeyMaster) then
if PedIsModel(pedID, 53) or PedIsModel(pedID, 158) and PedGetWhoHitMeLast(pedID) == gPlayer and not F_PedIsDead(pedID) and bOnGrounds then
if PedIsValid(Beatrice) and (F_PedIsDead(Beatrice) or PedGetWhoHitMeLast(Beatrice) == gPlayer) then
if PedIsValid(followerFollower) and followerFollower ~= 0 and not F_PedIsDead(followerFollower) then
if PedIsValid(followerFollower) and not F_PedIsDead(followerFollower) and followerFollower ~= 0 then
if PedIsValid(followerFollower) and not F_PedIsDead(followerFollower) then
if PedIsValid(guy.id) and not F_PedIsDead(guy.id) and TimerPassed(guy.time) and guy.state == STATE_JACK then
if PedIsValid(guy.id) and not F_PedIsDead(guy.id) then
if PedIsValid(ScenarioPed) == true and F_PedIsDead(ScenarioPed) == false and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and shared.gBusTransition == nil and OutOfRange == false then
if tbl.state == STATE_JACK and TimerPassed(tbl.time) and PedIsValid(guy.id) and not F_PedIsDead(tbl.id) then
return bSheet4GuardHit or F_PedIsDead(sheet4Guard)
return ped and PedIsValid(ped) and not F_PedIsDead(ped)
while not (LockerUnlocked or F_PedIsDead(ScenarioPed)) do
while not (not bDoBarrelTutorial or F_PedIsDead(gCSBully)) do
while not F_PedIsDead(gJV_OnGround) do
function F_PedIsDead(ped)
if not ped or ped == -1 then
return true
end
return PedGetHealth(ped) <= 0
end
if not gCheckingDarby and PedGetHealth(idDarby) <= 0 and PedIsPlaying(idDarby, "/Global/HitTree/Standing/PostHit/Standing/Dead/BoxingStun/StunControl", true) and F_PedIsHitByPlayer(idDarby) then
if PlayerIsInTrigger(TRIGGER._5_B_ENTRANCE) or F_PedIsHitByPlayer(edgar) then
function F_PedIsHitByPlayer(ped, interval)
local time = interval or 500
if not F_PedExists(ped) then
return false
end
PedClearHitRecord(ped)
Wait(5)
if PedIsHit(ped, 2, time) and PedGetWhoHitMeLast(ped) == gPlayer then
return true
end
end
function F_PedMoveAwayFromXYZ(pedid, x, y, z, distance)
local px, py, pz = PedGetPosXYZ(pedid)
local hyp = math.sqrt((x - px) ^ 2 + (y - py) ^ 2)
local dx, dy = -(distance / hyp) * (x - px), -(distance / hyp) * (y - py)
PlayerSetPosXYZ(px + dx, py + dy, z)
end
F_PedSetCameraOffsetXYZ(algie, 0.1, 1.3, 1.4, 0, 0, 1.4)
F_PedSetCameraOffsetXYZ(clerk, 0.07666, 2.155277, 1.798232, 0.028458, 1.16996, 1.64126)
F_PedSetCameraOffsetXYZ(gDefenders[1], 1, 2.5, 2, 0, 0, 1)
F_PedSetCameraOffsetXYZ(gPlayer, 0.2, 2, 0.8, 0, -0.2, 1.2)
F_PedSetCameraOffsetXYZ(gPlayer, 0.3, 1.4, 1.3, 0, 0, 1.5)
F_PedSetCameraOffsetXYZ(gPlayer, 0.474976, 1.566317, 1.606372, 0.164124, 0.642633, 1.38351)
F_PedSetCameraOffsetXYZ(gPlayer, 1, -1, 1.4, 0.5, -0.5, 1.4, mandy)
F_PedSetCameraOffsetXYZ(gPrefect, 0.3, 1.4, 1.3, 0, 0, 1.5)
F_PedSetCameraOffsetXYZ(gTed, 1, 2.5, 2, 0, 0, 1)
function F_PedSetCameraOffsetXYZ(pedId, x1, y1, z1, x2, y2, z2, pedId2)
if pedId ~= nil and PedIsValid(pedId) then
--print("LSDKFMSDFMK!!!")
x1, y1, z1 = PedGetOffsetInWorldCoords(pedId, x1, y1, z1)
if pedId2 == nil then
--print("NO SECOND PED!")
x2, y2, z2 = PedGetOffsetInWorldCoords(pedId, x2, y2, z2)
else
--print("SECOND PED!")
x2, y2, z2 = PedGetOffsetInWorldCoords(pedId2, x2, y2, z2)
end
CameraSetXYZ(x1, y1, z1, x2, y2, z2)
end
end
--assert(pickupModel, "F_PedSetDropItem(pedId, pickupModel, dropProbability, dropCount): pickupModel == NIL")
assert(nil, "F_PedSetDropItem(pedId, pickupModel, dropProbability, dropCount): pedId == INVALID_PED")
F_PedSetDropItem(attacker.id, 362)
F_PedSetDropItem(gBully2, 362)
F_PedSetDropItem(gChad, 362)
F_PedSetDropItem(gCSBully, 362)
F_PedSetDropItem(gGord, 362, 75)
F_PedSetDropItem(idPreppy, 362, 100, 1)
F_PedSetDropItem(patrol.id, 362, 40, 1)
F_PedSetDropItem(ped, 362)
F_PedSetDropItem(pedBryce, 362, 100, 1)
F_PedSetDropItem(pedJockPushup01.id, 362, 100, 1)
F_PedSetDropItem(pedJockSmoke.id, 362, 100, 1)
F_PedSetDropItem(pedJockSprint01.id, 362, 100, 1)
F_PedSetDropItem(pedKlepto.id, 362, 100, 1)
F_PedSetDropItem(pedKlepto.id, 504, 100, 1)
F_PedSetDropItem(tempPed, 362, 100, 1)
function F_PedSetDropItem(pedId, pickupModel, dropProbability, dropCount)
if not F_PedExists(pedId) then
assert(nil, "F_PedSetDropItem(pedId, pickupModel, dropProbability, dropCount): pedId == INVALID_PED")
end
--assert(pickupModel, "F_PedSetDropItem(pedId, pickupModel, dropProbability, dropCount): pickupModel == NIL")
local percent = dropProbability or 100
local count = dropCount or 1
PedOverrideStat(pedId, 0, pickupModel)
PedOverrideStat(pedId, 1, percent)
end
function F_PedStoppedLockpicking()
if shared.gFailedPickingLocker == true then
if shared.gLockpickFailureFunction ~= nil then
local x, y, z = PlayerGetPosXYZ()
shared.gLockpickFailureFunction(x, y, z)
shared.gLockpickFailureFunction = nil
shared.gLockpickSuccessFunction = nil
else
shared.gStartingEvent = false
end
return 1
end
return 0
end
function F_PickupDice()
if PedIsPlaying(shared.gPOIKidsPlayingDice[1].ped, "/Global/AniDice/Minigame/AmbientDice/GrappleAttempt/GrappleSuccess/PickupDice", true) then
PAnimSetActionNode(shared.gPOIKidsPlayingDice[4].dice1, "/Global/AniDice/IdleDice/Idle", "Act/Props/AniDice.act")
elseif PedIsPlaying(shared.gPOIKidsPlayingDice[2].ped, "/Global/AniDice/Minigame/AmbientDice/GrappleAttempt/GrappleSuccess/PickupDice", true) then
PAnimSetActionNode(shared.gPOIKidsPlayingDice[4].dice2, "/Global/AniDice/IdleDice/Idle", "Act/Props/AniDice.act")
end
end
elseif AreaPOICompareName(POIInfo, "F_Pirate") then
function F_Pirate(POIInfo, POIPointType, POIPointFaction, POIPointNum, POIGender, ped1, ped2, ped3, ped4)
LoadPedPOIModel(173)
local char = PedCreatePOIPoint(173, POIInfo, 0, 0, 0)
if char == -1 then
return
end
PedSetAsleep(char, true)
end
F_PlayCutScene(CutSceneIndex, true)
F_PlayCutScene(i, true, avoidFadeIn, avoidFadeOut, dontTransitionBack, dontTransitionTo)
F_PlayCutScene(iCutSceneIndex, true, false, false, false, false)
function F_PlayCutScene(CutSceneIndex, loadCutscene, avoidFadeIn, avoidFadeOut, dontTransitionBack, dontTransitionTo)
--print("==============>> avoidFadeOut: ", tostring(avoidFadeOut))
if not avoidFadeOut then
CameraFade(1000, 0)
Wait(1000)
end
local oldArea = AreaGetVisible()
local x, y, z = PlayerGetPosXYZ()
local heading = PedGetHeading(gPlayer)
local minSkipDelay = 1500
if loadCutscene == true then
LoadCutscene(cutsceneTable[CutSceneIndex].name, false)
end
if not dontTransitionTo then
AreaForceLoadAreaByAreaTransition(true)
AreaDisableCameraControlForTransition(true)
AreaTransitionXYZ(cutsceneTable[CutSceneIndex].area, cutsceneTable[CutSceneIndex].x, cutsceneTable[CutSceneIndex].y, 10)
AreaDisableCameraControlForTransition(false)
AreaForceLoadAreaByAreaTransition(false)
end
if loadCutscene == true then
LoadCutsceneSound(cutsceneTable[CutSceneIndex].name)
end
if cutsceneTable[CutSceneIndex].setupCutscene then
CutSceneSetActionNode(cutsceneTable[CutSceneIndex].name)
end
if cutsceneTable[CutSceneIndex].specialInit then
L_CutsceneSpecialInit(cutsceneTable[CutSceneIndex].name)
end
CameraDefaultFOV()
if IsCutsceneLoaded() then
StartCutscene()
CameraFade(1000, 1)
Wait(1000)
while GetCutsceneRunning() ~= 0 and GetCutsceneTime() < cutsceneTable[CutSceneIndex].time - 1000 do
if cutsceneTable[CutSceneIndex].name == "1-1-1" and not cutsceneTable[CutSceneIndex].bEvent and GetCutsceneTime() > 58000 then
GeometryInstance("ScGate01Closed", true, 301.439, -72.5059, 8.04657, false)
GeometryInstance("ScGate02Closed", true, 225.928, 5.79816, 8.39471, false)
cutsceneTable[CutSceneIndex].bEvent = true
PAnimSetActionNode(TRIGGER._TSCHOOL_FRONTGATE, "/Global/1_01/Gates/OpenHold", "Act/Conv/1_01.act")
end
Wait(minSkipDelay)
minSkipDelay = 0
if IsButtonPressed(7, 0) then
CutsceneFadeWithCamera(true)
break
end
end
MissionSurpressMissionNameText()
CameraFade(1000, 0)
Wait(1000)
end
StopCutscene()
CutsceneFadeWithCamera(false)
CameraSetWidescreen(false)
if not dontTransitionBack then
AreaDisableCameraControlForTransition(true)
AreaTransitionXYZ(oldArea, x, y, z)
AreaDisableCameraControlForTransition(false)
end
PlayerFaceHeading(heading, 0)
if cutsceneTable[CutSceneIndex].specialInit then
L_CutsceneSpecialShutdown(cutsceneTable[CutSceneIndex].name)
end
CameraReturnToPlayer()
AreaRemoveExtraScene()
if not avoidFadeIn then
CameraFade(1000, 1)
Wait(1000)
end
end
function F_PlayerBroughtBike()
local lastBike = PlayerGetLastBikeId()
local x, y, z = PlayerGetPosXYZ()
if -1 < lastBike and VehicleIsInAreaXYZ(lastBike, x, y, z, 10, 0) then
return 1
end
return 0
end
function F_PlayerControlFunhouse()
return shared.FHPlayerControlTraps
end
F_PlayerDismountBike()
function F_PlayerDismountBike()
if PlayerIsInAnyVehicle() then
PedSetTaskNode(gPlayer, "/Global/PlayerAI/Objectives/ComeToStopInVehicle/Brake", "Act/PlayerAI.act")
Wait(1400)
PedSetTaskNode(gPlayer, "/Global/PlayerAI", "Act/PlayerAI.act")
PlayerDismountBike()
end
if PlayerIsInAnyVehicle() then
Wait(1000)
end
if PlayerIsInAnyVehicle() then
Wait(1000)
end
if PlayerIsInAnyVehicle() then
Wait(1000)
end
if PlayerIsInAnyVehicle() then
Wait(1000)
end
if PlayerIsInAnyVehicle() then
Wait(1000)
end
if PlayerIsInAnyVehicle() then
PlayerDetachFromVehicle()
end
end
F_PlayerExitBike(false)
F_PlayerExitBike(true)
function F_PlayerExitBike(bDetach)
F_PlayerDismountBike()
end
function F_PlayerHasSlept()
if PlayerGetScriptSavedData(26) == 1 then
return 1
end
return 0
end
F_PlayerHasSleptInBed()
function F_PlayerHasSleptInBed()
local ClockHour, ClockMinute
local PlayAlarm = false
ClockFlag = false
SoundStopFireAlarm()
PlayerResetPhysicalState()
if PlayerGetScriptSavedData(26) == 0 then
PlayerSetScriptSavedData(26, 1)
end
AreaClearAllPeds()
shared.gBDormFAlarmOn = false
ClockHour, ClockMinute = ClockGet()
ClockSet(8, 1)
if PlayerGetHealth() < PedGetMaxHealth(gPlayer) then
PlayerSetHealth(PedGetMaxHealth(gPlayer))
end
PlayerSetPunishmentPoints(0)
PlayerSetControl(1)
F_ProcessWakeUpMissionBasedLogic()
end
if F_PlayerIsDead() then
function F_PlayerIsDead()
return PlayerGetHealth() <= 0 or PedMePlaying(gPlayer, "Dead", true)
end
function F_PlayerSleptInBed()
shared.gPlayerSlept = true
end
if PedIsValid(ScenarioPed) == true and AreaGetVisible() == 0 and PedGetFlag(ScenarioPed, 110) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and F_PedIsDead(ScenarioPed) == false and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedGetFlag(ScenarioPed, 110) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and (AreaGetVisible() == 2 or AreaGetVisible() == 8) and OutOfRange == false and bFailDueToLackOfRoll == false then
if PedIsValid(ScenarioPed) == true and PedGetFlag(ScenarioPed, 110) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and bAlarmAlreadyOn == false and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedGetFlag(ScenarioPed, 110) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and bSpotted == false and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedGetFlag(ScenarioPed, 110) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and F_CheckIfPlayerHasEggs() == true and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedGetFlag(ScenarioPed, 110) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and leftArea == false and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedGetFlag(ScenarioPed, 110) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedGetFlag(ScenarioPed, 110) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(gPlayer) == false and PedIsDead(ScenarioPed) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedGetFlag(ScenarioPed, 110) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(ScenarioPed) == false and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and F_CheckIfPlayerHasChocolates() == true and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedGetFlag(ScenarioPed, 110) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(ScenarioPed) == false and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedGetFlag(ScenarioPed, 110) == true and PedIsDead(ScenarioPed) == false and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedGetWhoHitMeLast(ScenarioPed) ~= gPlayer and PedGetFlag(ScenarioPed, 110) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and F_CheckIfPlayerHasCherryBomb() == true and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedHasPOI(ScenarioPed) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and shared.gBusTransition == nil and OutOfRange == false then
function F_PlayerSleptOnErrand()
if shared.bCleanUpErrand or PlayerFellAsleep() then
return true
end
return false
end
function F_PlayerUsedChemistrySet()
if F_CheckMaxItems() then
--print("GIVING IT TO THE PLAYER??")
local ammo = 3
if IsMissionCompleated("C_Chem_4") then
ammo = 5
if PlayerHasItem(307) then
--print("GIVING AMMO TO THE PLAYER ")
GiveAmmoToPlayer(308, 12)
end
end
if IsMissionCompleated("C_Chem_3") then
GiveAmmoToPlayer(394, ammo)
end
if IsMissionCompleated("C_Chem_2") then
GiveAmmoToPlayer(309, ammo)
end
GiveAmmoToPlayer(301, ammo)
shared.ChemistrySetLocked = 2
shared.ChemistrySetLastTimeUsed = GetCurrentDay(false)
PlayerSetScriptSavedData(25, shared.ChemistrySetLastTimeUsed)
else
TutorialShowMessage("CHEMSET_FULL", 3000)
end
end
F_PlaySpeechAndWait(a, "M_5_04", 2, "large")
F_PlaySpeechAndWait(a, "M_5_04", 3, "large")
F_PlaySpeechAndWait(burton, "WRESTLING", 1, "jumbo")
F_PlaySpeechAndWait(burton, "WRESTLING", 15, "jumbo")
F_PlaySpeechAndWait(burton, "WRESTLING", 16, "jumbo")
F_PlaySpeechAndWait(burton, "WRESTLING", 18, "jumbo")
F_PlaySpeechAndWait(burton, "WRESTLING", 3, "jumbo")
F_PlaySpeechAndWait(burton, "WRESTLING", 6, "jumbo")
F_PlaySpeechAndWait(chemTeach, "CHEM", 16, "jumbo", true)
F_PlaySpeechAndWait(clerk, "STORE_VIOLENCE_RESPONSE", 0, "supersize")
F_PlaySpeechAndWait(edgar, "M_5_B", 20, "jumbo")
F_PlaySpeechAndWait(galloway, "ENGLISH", 1, "large")
F_PlaySpeechAndWait(galloway, "ENGLISH", 15, "large")
F_PlaySpeechAndWait(galloway, "ENGLISH", 2, "large")
F_PlaySpeechAndWait(galloway, "ENGLISH", 3, "large")
F_PlaySpeechAndWait(galloway, "ENGLISH", 4, "large")
F_PlaySpeechAndWait(galloway, "ENGLISH", 5, "large")
F_PlaySpeechAndWait(galloway, "ENGLISH", 6, "large")
F_PlaySpeechAndWait(galloway, "ENGLISH", 7, "large")
F_PlaySpeechAndWait(galloway, "ENGLISH", 8, "large")
F_PlaySpeechAndWait(gBoxerIds[2], "M_3_R09", 100, "jumbo")
F_PlaySpeechAndWait(gBoxerIds[2], "M_3_R09", 101, "jumbo")
F_PlaySpeechAndWait(gDefenders[1], "BIKE_SEE_TRICK_FAIL", 0, "jumbo", true)
F_PlaySpeechAndWait(gDefenders[1], "LAUGH_CRUEL", 0, "jumbo", true)
F_PlaySpeechAndWait(gDefenders[1], "M_4_B2", 12, "jumbo", true)
F_PlaySpeechAndWait(gEnemy01, "M_3_R09", 87, "large", true)
F_PlaySpeechAndWait(gEnemy01, "M_3_R09", 89, "large", true)
F_PlaySpeechAndWait(gEnemy01, "M_3_R09_G", 16, "jumbo", true)
F_PlaySpeechAndWait(gEnemy01, "M_3_R09_P", 18, "jumbo", true)
F_PlaySpeechAndWait(gEnemy02, "M_3_R09", 102, "large", true)
F_PlaySpeechAndWait(gEnemy02, "M_3_R09", 104, "large", true)
F_PlaySpeechAndWait(gEnemy02, "M_3_R09", 13, "large", true)
F_PlaySpeechAndWait(gEnemy02, "M_3_R09_G", 17, "jumbo", true)
F_PlaySpeechAndWait(gEnemy02, "M_3_R09_G", 19, "jumbo", true)
F_PlaySpeechAndWait(gEnemy03, "M_3_R09", 16, "large", true)
F_PlaySpeechAndWait(gEnemy03, "M_3_R09_P", 17, "jumbo", true)
F_PlaySpeechAndWait(gEnemy03, "M_3_R09_P", 20, "jumbo", true)
F_PlaySpeechAndWait(gGalloway, "M_3_S11", 54, "large")
F_PlaySpeechAndWait(gGary, "M_1_06_01", 1, "jumbo")
F_PlaySpeechAndWait(gGary, "M_1_06_01", 3, "jumbo")
F_PlaySpeechAndWait(gGary, "M_1_06_01", 5, "jumbo")
F_PlaySpeechAndWait(gHattrickSpeech[i][1], "M_1_S01", gHattrickSpeech[i][2], "medium")
F_PlaySpeechAndWait(gHobo, "M_1_06_01", 12)
F_PlaySpeechAndWait(gHobo, "M_1_06_01", 32)
F_PlaySpeechAndWait(gHobo, "M_1_06_01", gActions.speech[gCurrentMove])
F_PlaySpeechAndWait(gMsPhillips, "M_3_S11", 55, "large")
F_PlaySpeechAndWait(gPete, "M_1_06_01", 2, "jumbo")
F_PlaySpeechAndWait(gPete, "M_1_06_01", 4, "jumbo")
F_PlaySpeechAndWait(gPlayer, "M_2_06", 67, "supersize")
F_PlaySpeechAndWait(gPlayer, "M_2_06", 71, "supersize")
F_PlaySpeechAndWait(gPlayer, "M_2_B", 13, "supersize")
F_PlaySpeechAndWait(gPlayer, "M_2_B", 3, "supersize")
F_PlaySpeechAndWait(gPlayer, "M_3_R09", 103, "large", true)
F_PlaySpeechAndWait(gPlayer, "M_3_R09", 106, "large", true)
F_PlaySpeechAndWait(gPlayer, "M_3_R09", 115, "large", true)
F_PlaySpeechAndWait(gPlayer, "M_3_R09", 17, "large", true)
F_PlaySpeechAndWait(gPlayer, "M_3_R09", 99, "jumbo")
F_PlaySpeechAndWait(gPlayer, "M_3_R09_G", 18, "jumbo", true)
F_PlaySpeechAndWait(gPlayer, "M_3_R09_G", 20, "jumbo", true)
F_PlaySpeechAndWait(gPlayer, "M_3_R09_P", 19, "jumbo", true)
F_PlaySpeechAndWait(gPlayer, "M_3_R09_P", 21, "jumbo", true)
F_PlaySpeechAndWait(gPlayer, "M_3_S08", 0, "supersize")
F_PlaySpeechAndWait(gPlayer, "M_3_S11", 56, "large")
F_PlaySpeechAndWait(gPlayer, "M_4_06", 2, "supersize")
F_PlaySpeechAndWait(gPlayer, "M_4_06", 21, "supersize")
F_PlaySpeechAndWait(gPlayer, "M_4_06", 23, "supersize")
F_PlaySpeechAndWait(gPlayer, "M_4_06", 25, "supersize")
F_PlaySpeechAndWait(gPlayer, "M_4_06", 33, "supersize")
F_PlaySpeechAndWait(gPlayer, "M_4_06", 39, "supersize")
F_PlaySpeechAndWait(gPlayer, "M_4_06", 41, "supersize")
F_PlaySpeechAndWait(gPlayer, "M_5_01", 10, "large", true)
F_PlaySpeechAndWait(gPlayer, "M_5_01", 12, "large", true)
F_PlaySpeechAndWait(gPlayer, "M_5_01", 8, "large", true)
F_PlaySpeechAndWait(gPlayer, "M_5_04", 23, "large")
F_PlaySpeechAndWait(gPlayer, "M_5_04", 25, "large")
F_PlaySpeechAndWait(gPlayer, "M_5_06", 16, "jumbo")
F_PlaySpeechAndWait(gPlayer, "M_5_07A", 116, "large")
F_PlaySpeechAndWait(gPlayer, "M_5_B", 42)
F_PlaySpeechAndWait(gPlayer, "SHOP_CLASS", 2, "jumbo", true)
F_PlaySpeechAndWait(gPlayer, flirtEvent, 0, "speech")
F_PlaySpeechAndWait(hattrick, "ClassMath", 10, "large")
F_PlaySpeechAndWait(idDarby, "M_2_B", 8, "supersize")
F_PlaySpeechAndWait(idLola.id, "M_2_06", 99, "supersize")
F_PlaySpeechAndWait(idPinky.id, "M_2_06", 66, "supersize")
F_PlaySpeechAndWait(idPinky.id, "M_2_06", 68, "supersize")
F_PlaySpeechAndWait(idPinky.id, "M_2_06", 69, "supersize")
F_PlaySpeechAndWait(idPinky.id, "M_2_06", 70, "supersize")
F_PlaySpeechAndWait(idRussell, "M_5_06", 127, "jumbo")
F_PlaySpeechAndWait(idZoe, "GREET", 0, "large")
F_PlaySpeechAndWait(idZoe, "M_5_07A", 14, "large")
F_PlaySpeechAndWait(idZoe, "M_5_07A", 15, "large")
F_PlaySpeechAndWait(idZoe, "M_5_07A", 19, "large")
F_PlaySpeechAndWait(jock02, "M_3_R09", 105, "large", true)
F_PlaySpeechAndWait(librarian, "M_5_01", 9, "large", true)
F_PlaySpeechAndWait(mandy, "M_5_04", 22, "large")
F_PlaySpeechAndWait(mandy, "M_5_04", 24, "large")
F_PlaySpeechAndWait(mandy, "M_5_04", 26, "large")
F_PlaySpeechAndWait(Objectives[1].id, "M_4_06", 1, "supersize")
F_PlaySpeechAndWait(Objectives[1].id, "M_4_06", 3, "supersize")
F_PlaySpeechAndWait(Objectives[1].id, "M_4_06", 4, "supersize")
F_PlaySpeechAndWait(Objectives[2].id, "M_4_06", 32, "supersize")
F_PlaySpeechAndWait(Objectives[3].id, "M_4_06", 20, "supersize")
F_PlaySpeechAndWait(Objectives[4].id, "M_4_06", 38, "supersize")
F_PlaySpeechAndWait(Objectives[5].id, "M_4_06", 22, "supersize")
F_PlaySpeechAndWait(Objectives[5].id, "M_4_06", 24, "supersize")
F_PlaySpeechAndWait(Objectives[5].id, "M_4_06", 26, "supersize")
F_PlaySpeechAndWait(referee, "DODGEBALL", 29, "jumbo", true)
F_PlaySpeechAndWait(shopTeach, "SHOP_CLASS", 1, "jumbo", true)
F_PlaySpeechAndWait(shopTeach, "SHOP_CLASS", 16, "jumbo", true)
F_PlaySpeechAndWait(shopTeach, "SHOP_CLASS", 3, "jumbo", true)
F_PlaySpeechAndWait(shopTeach, "SHOP_CLASS", 4, "jumbo", true)
F_PlaySpeechAndWait(teacher, "ART", 14, "jumbo")
F_PlaySpeechAndWait(teacher, "PHOTOGRAPHY", 9, "large")
if F_PlaySpeechAndWait(gNerd01, "M_3_R09", 50, "jumbo", false, true) then
if F_PlaySpeechAndWait(gNerd01, "M_3_R09", 52, "jumbo", false, true) then
if F_PlaySpeechAndWait(gNerd02, "M_3_R09", 8, "jumbo", false, true) then
if F_PlaySpeechAndWait(gNerd03, "M_3_R09", 94, "jumbo", false, true) then
if F_PlaySpeechAndWait(gPlayer, "M_3_R09", 10, "jumbo", false, true) then
if F_PlaySpeechAndWait(gPlayer, "M_3_R09", 127, "large", false, true) then
if F_PlaySpeechAndWait(gPlayer, "M_3_R09", 22, "large", false, true) then
if F_PlaySpeechAndWait(gPlayer, "M_3_R09", 95, "jumbo", false, true) then
if F_PlaySpeechAndWait(gPlayer, "M_5_07A", 2, "large", false, true) then
if F_PlaySpeechAndWait(gPlayer, "M_5_07A", 5, "large", false, true) then
if F_PlaySpeechAndWait(idZoe, "M_5_07A", 1, "large", false, true) then
if F_PlaySpeechAndWait(idZoe, "M_5_07A", 3, "large", false, true) then
if F_PlaySpeechAndWait(idZoe, "M_5_07A", 6, "large", false, true) then
if F_PlaySpeechAndWait(shared.vendettaClerk, "M_3_R09", 93, "large", false, true) then
function F_PlaySpeechAndWait(model, event, parameter, volume, play2D, skippable)
if volume then
if play2D then
SoundPlayScriptedSpeechEvent(model, event, parameter, volume, play2D)
else
SoundPlayScriptedSpeechEvent(model, event, parameter, volume)
end
else
SoundPlayScriptedSpeechEvent(model, event, parameter)
end
Wait(500)
local skipped = false
while SoundSpeechPlaying(model) do
if skippable and IsButtonPressed(7, 0) then
SoundStopCurrentSpeechEvent(model)
skipped = true
end
Wait(0)
end
if skipped then
return true
else
return false
end
end
F_POIManager(POIPoint)
F_POIManager(POIPoint, override)
function F_POIManager(POIInfo, override)
local POIPointType = AreaPOIGetInterestType(POIInfo)
local POIPointFaction = AreaPOIGetFaction(POIInfo)
local POIPointNum = AreaPOIGetMaxNumber(POIInfo)
local POIGender = AreaPOIGetGender(POIInfo)
local functionPicked, ped1, ped2, ped3, ped4
AreaPOISetActivation(POIInfo, true)
if ShouldEventInitiate(POIInfo) then
if override or POIClearForPeds(POIInfo, 0.5) then
if POIPointType == 5 then
functionPicked = F_GetEventFunction(gFunctionTable.COUPLE)
elseif POIPointType == 4 then
if POIPointFaction == 9 or POIPointFaction == 10 then
functionPicked = F_Brawl
else
functionPicked = F_GetEventFunction(gFunctionTable.BRAWL)
end
elseif POIPointType == 6 then
if POIPointFaction == 8 or POIPointFaction == 7 or POIPointFaction == 0 or POIPointFaction == 9 then
functionPicked = F_TeacherHarassingKids
else
functionPicked = F_GetEventFunction(gFunctionTable.HARASSMENT)
end
if POIPointFaction == 12 then
POIPointFaction = RandomElement4(11, 5, 2, 4)
end
elseif POIPointType == 7 then
functionPicked = F_GetEventFunction(gFunctionTable.WALL)
elseif POIPointType == 8 then
functionPicked = F_GetEventFunction(gFunctionTable.DORM)
elseif POIPointType == 9 then
functionPicked = F_GetEventFunction(gFunctionTable.BACK_ALLEY)
elseif POIPointType == 10 then
functionPicked = F_GetEventFunction(gFunctionTable.SCHOOL_GROUNDS)
elseif POIPointType == 11 then
functionPicked = F_GetEventFunction(gFunctionTable.BATHROOM)
elseif POIPointType == 12 then
functionPicked = F_GetEventFunction(gFunctionTable.VANDALISM)
elseif POIPointType == 13 then
functionPicked = F_GetEventFunction(gFunctionTable.SITTING_EVENT)
elseif POIPointType == 14 then
functionPicked = F_GetEventFunction(gFunctionTable.STORE)
elseif POIPointType == 15 then
if AreaPOICompareName(POIInfo, "F_HeldAgainstWall") then
functionPicked = F_HeldAgainstWall
elseif AreaPOICompareName(POIInfo, "F_DrunkenBeggar") then
functionPicked = F_DrunkenBeggar
elseif AreaPOICompareName(POIInfo, "F_Catch") then
functionPicked = F_Catch
elseif AreaPOICompareName(POIInfo, "F_Cheerleading") then
functionPicked = F_Cheerleading
elseif AreaPOICompareName(POIInfo, "F_Workout") then
functionPicked = F_Workout
elseif AreaPOICompareName(POIInfo, "F_Crying") then
functionPicked = F_Crying
elseif AreaPOICompareName(POIInfo, "F_OutsideClass") then
functionPicked = F_OutsideClass
elseif AreaPOICompareName(POIInfo, "F_DrunkenBeggar") then
functionPicked = F_DrunkenBeggar
elseif AreaPOICompareName(POIInfo, "F_WallSmoking") then
functionPicked = F_WallSmoking
elseif AreaPOICompareName(POIInfo, "F_BullyDogs") then
functionPicked = F_BullyDogs
elseif AreaPOICompareName(POIInfo, "F_BikeCheckout") then
functionPicked = F_BikeCheckout
elseif AreaPOICompareName(POIInfo, "F_Sweep") then
functionPicked = F_Sweep
elseif AreaPOICompareName(POIInfo, "F_CarnivalWalker") then
functionPicked = F_CarnivalWalker
elseif AreaPOICompareName(POIInfo, "F_Industrial") then
functionPicked = F_Industrial
elseif AreaPOICompareName(POIInfo, "F_DockWorker") then
functionPicked = F_DockWorker
elseif AreaPOICompareName(POIInfo, "F_MillWorker") then
functionPicked = F_MillWorker
elseif AreaPOICompareName(POIInfo, "F_WallHangout") then
functionPicked = F_WallHangout
elseif AreaPOICompareName(POIInfo, "F_Rats") then
functionPicked = F_Rats
elseif AreaPOICompareName(POIInfo, "F_ClassSmokers") then
functionPicked = F_ClassSmokers
elseif AreaPOICompareName(POIInfo, "F_CreateMentalPatient") then
functionPicked = F_CreateMentalPatient
elseif AreaPOICompareName(POIInfo, "F_Pirate") then
functionPicked = F_Pirate
elseif AreaPOICompareName(POIInfo, "F_Brawl") then
functionPicked = F_Brawl
elseif AreaPOICompareName(POIInfo, "F_WorkerHangout") then
functionPicked = F_WorkerHangout
elseif AreaPOICompareName(POIInfo, "F_Straggler") then
functionPicked = F_Straggler
elseif AreaPOICompareName(POIInfo, "F_PreppyStraggler") then
functionPicked = F_PreppyStraggler
elseif AreaPOICompareName(POIInfo, "F_Fireman") then
functionPicked = F_Fireman
elseif AreaPOICompareName(POIInfo, "F_SmokingFireman") then
functionPicked = F_SmokingFireman
elseif AreaPOICompareName(POIInfo, "F_SocialHumiliation") then
functionPicked = F_SocialHumiliation
elseif AreaPOICompareName(POIInfo, "F_ReachItHumiliation") then
functionPicked = F_ReachItHumiliation
elseif AreaPOICompareName(POIInfo, "F_PrincipalPOI") then
functionPicked = F_PrincipalPOI
elseif AreaPOICompareName(POIInfo, "F_InstantBully") then
functionPicked = F_InstantBully
elseif AreaPOICompareName(POIInfo, "F_RandomStudent") then
functionPicked = F_RandomStudent
elseif AreaPOICompareName(POIInfo, "F_LockerStuff") then
functionPicked = F_LockerStuff
elseif AreaPOICompareName(POIInfo, "F_TrashStuff") then
functionPicked = F_TrashStuff
elseif AreaPOICompareName(POIInfo, "F_Swirlie") then
functionPicked = F_Swirlie
elseif AreaPOICompareName(POIInfo, "F_Criminal") then
functionPicked = F_Criminal
elseif AreaPOICompareName(POIInfo, "F_HCriminal") then
functionPicked = F_HCriminal
elseif AreaPOICompareName(POIInfo, "F_Puker") then
functionPicked = F_Puker
elseif AreaPOICompareName(POIInfo, "F_ProjAttack") then
functionPicked = F_ProjAttack
elseif AreaPOICompareName(POIInfo, "F_Russell") then
functionPicked = F_Russell
elseif AreaPOICompareName(POIInfo, "F_RoofSniper") then
functionPicked = F_RoofSniper
elseif AreaPOICompareName(POIInfo, "F_GuardDog") then
functionPicked = F_GuardDog
elseif AreaPOICompareName(POIInfo, "F_Truck") then
functionPicked = F_Truck
elseif AreaPOICompareName(POIInfo, "F_HStudent") then
functionPicked = F_HStudent
elseif AreaPOICompareName(POIInfo, "F_CBarkerGame") then
functionPicked = F_CBarkerGame
elseif AreaPOICompareName(POIInfo, "F_CBarkerGame2") then
functionPicked = F_CBarkerGame2
elseif AreaPOICompareName(POIInfo, "F_CBarkerHouse") then
functionPicked = F_CBarkerHouse
elseif AreaPOICompareName(POIInfo, "F_WorkerSmoking") then
functionPicked = F_WorkerSmoking
elseif AreaPOICompareName(POIInfo, "F_Biker") then
functionPicked = F_Biker
elseif AreaPOICompareName(POIInfo, "F_SocialHangout") then
functionPicked = F_SocialHangout
elseif AreaPOICompareName(POIInfo, "F_DogWalker") then
functionPicked = F_DogWalker
elseif AreaPOICompareName(POIInfo, "F_Arrest") then
functionPicked = F_Arrest
elseif AreaPOICompareName(POIInfo, "F_DunkMidget") then
functionPicked = F_DunkMidget
end
end
end
if functionPicked ~= nil then
functionPicked(POIInfo, POIPointType, POIPointFaction, POIPointNum, POIGender, nil)
end
end
end
F_PreDATInit()
function F_PreDATInit()
AreaSignalAreaTransitionReadyToLoad()
Wait(5)
while AreaIsLoading() do
Wait(50)
end
Wait(5)
end
elseif AreaPOICompareName(info, "F_CarnivalWalker") or AreaPOICompareName(info, "F_Industrial") or AreaPOICompareName(info, "F_DockWorker") or AreaPOICompareName(info, "F_MillWorker") or AreaPOICompareName(info, "F_PrincipalPOI") or AreaPOICompareName(info, "F_DockWorker") or AreaPOICompareName(info, "F_MillWorker") or AreaPOICompareName(info, "F_Fireman") or AreaPOICompareName(info, "F_RandomStudent") or AreaPOICompareName(info, "F_SocialHangout") then
elseif AreaPOICompareName(POIInfo, "F_PrincipalPOI") then
F_PrincipalPOI,
function F_PrincipalPOI(POIInfo, POIPointType, POIPointFaction, POIPointNum, POIGender, ped1, ped2, ped3, ped4)
if not MissionActiveSpecific("1_01") then
local wanderchoice = false
local model
if POIGender == 2 then
return
elseif POIGender == 1 or POIGender == 0 then
local prefectchoice = math.random(1, 100)
if 50 < prefectchoice then
model = RandomElement4(49, 50, 51, 52)
wanderchoice = true
else
return
end
end
LoadPedPOIModel(model)
local char = PedCreatePOIPoint(model, POIInfo, 0, 0, 0)
if char == -1 then
return
end
if wanderchoice == true then
PedClearPOI(char)
PedClearObjectives(char)
PedWander(char, 0)
end
end
end
F_ProcessWakeUpMissionBasedLogic()
function F_ProcessWakeUpMissionBasedLogic()
if shared.PlayerGotCarnieTicket then
if AreaGetVisible() == 0 then
if not PlayerIsInTrigger(TRIGGER._ZONECARNIVAL) then
shared.PlayerGotCarnieTicket = nil
ItemSetCurrentNum(479, 0)
end
else
shared.PlayerGotCarnieTicket = nil
ItemSetCurrentNum(479, 0)
end
end
if IsMissionCompleated("1_11x1") and not IsMissionCompleated("1_11_Dummy") then
if ClothingIsWearingOutfit("Halloween") then
ClothingSetPlayerOutfit("Uniform")
ClothingBuildPlayer()
end
MissionSuccessCountInc("1_11_Dummy")
AreaLoadSpecialEntities("Halloween1", false)
AreaLoadSpecialEntities("Halloween2", false)
AreaLoadSpecialEntities("Halloween3", false)
AreaRevertToDefaultPopulation()
AreaEnsureSpecialEntitiesAreCreated()
MiniObjectiveSetIsComplete(19)
shared.gHalloweenActive = false
shared.gHCriminalsActive = false
PedSetUniqueModelStatus(159, -1)
PedSetUniqueModelStatus(161, -1)
PedSetUniqueModelStatus(162, -1)
PedSetUniqueModelStatus(163, -1)
PedSetUniqueModelStatus(164, -1)
PedSetUniqueModelStatus(166, -1)
PedSetUniqueModelStatus(167, -1)
PedSetUniqueModelStatus(168, -1)
PedSetUniqueModelStatus(169, -1)
PedSetUniqueModelStatus(170, -1)
PedSetUniqueModelStatus(171, -1)
PedSetUniqueModelStatus(173, -1)
PedSetUniqueModelStatus(174, -1)
PedSetUniqueModelStatus(69, 1)
PedSetUniqueModelStatus(26, 1)
PedSetUniqueModelStatus(11, 1)
PedSetUniqueModelStatus(40, 1)
PedSetUniqueModelStatus(17, 1)
PedSetUniqueModelStatus(39, 1)
PedSetUniqueModelStatus(38, 1)
PedSetUniqueModelStatus(12, 1)
PedSetUniqueModelStatus(139, 1)
PedSetUniqueModelStatus(102, 1)
PedSetUniqueModelStatus(73, 1)
PedSetUniqueModelStatus(27, 1)
PedSetUniqueModelStatus(7, 1)
PedSetUniqueModelStatus(66, 1)
PedSetUniqueModelStatus(68, 1)
PedSetUniqueModelStatus(74, 1)
PedSetUniqueModelStatus(71, 1)
PedSetUniqueModelStatus(70, 1)
PedSetUniqueModelStatus(137, 1)
PedSetUniqueModelStatus(138, 1)
PedSetUniqueModelStatus(139, 1)
AreaClearAllPeds()
shared.cm_lockHead = false
shared.cm_lockTorso = false
shared.cm_lockLWrist = false
shared.cm_lockRWrist = false
shared.cm_lockLegs = false
shared.cm_lockFeet = false
shared.cm_lockOutfit = false
shared.lockClothingManager = false
SoundStopStream()
AreaEnableAllPatrolPaths()
CameraReturnToPlayer()
end
if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then
--print("Removing Christmas stuff!")
MissionForceCompleted("3_08_PostDummy")
MissionSuccessCountInc("3_08_PostDummy")
AreaLoadSpecialEntities("Christmas", false)
AreaEnsureSpecialEntitiesAreCreated()
CameraReturnToPlayer()
end
if shared.gPetey and PedIsValid(shared.gPetey) then
PedDelete(shared.gPetey)
shared.gPetey = nil
end
if shared.gGary and PedIsValid(shared.gGary) then
PedDelete(shared.gGary)
shared.gGary = nil
end
shared.bCleanUpErrand = true
if IsMissionCompleated("5_02") and not IsMissionCompleated("6_01") then
CreateThread("T_ExpelledLogic")
ForceStartMission("6_01_Launch")
CameraReturnToPlayer(true)
end
if IsMissionCompleated("Chapt2Trans") and not IsMissionCompleated("3_08") then
ForceStartMission("3_08_Launch")
CreateThread("T_ChristmasdLogic")
CameraReturnToPlayer(true)
end
end
elseif AreaPOICompareName(info, "F_ProjAttack") then
elseif AreaPOICompareName(POIInfo, "F_ProjAttack") then
F_ProjAttack,
function F_ProjAttack(POIInfo, POIPointType, POIPointFaction, POIPointNum, POIGender, ped1, ped2, ped3, ped4)
local chartype
if shared.gNoEggers == true then
return
end
if POIPointFaction ~= 12 then
charType = POIPointFaction
else
charType = RandomElement5(4, 11, 5, 2, 1)
end
local spawnGender = 1
local Thug, ThugChoice
local numthugs = 0
if 1 < POIPointNum then
numthugs = math.random(1, POIPointNum)
else
numthugs = 1
end
for count = 1, numthugs do
ThugChoice = GetStudent(charType, spawnGender)
if ThugChoice ~= -1 then
LoadPedPOIModel(ThugChoice)
Thug = PedCreatePOIPoint(ThugChoice, POIInfo, 0, count * 2, 0)
if Thug ~= -1 then
PedSetFlag(Thug, 120, true)
PedClearAllWeapons(Thug)
PedWander(Thug, 0)
F_SelectProjWeapon(Thug, charType)
if Thug ~= -1 then
PedSetTaskNode(Thug, "/Global/AI/Reactions/Criminal/ProjAttack/ScriptedProj/ScriptedProjtrack", "Act/AI/AI.act")
GameSetPedStat(Thug, 11, 80)
end
end
end
end
end
elseif AreaPOICompareName(info, "F_Puker") then
elseif AreaPOICompareName(POIInfo, "F_Puker") then
F_Puker,
function F_Puker(POIInfo, POIPointType, POIPointFaction, POIPointNum, POIGender, ped1, ped2, ped3, ped4)
local char = -1
local hour, minute = ClockGet()
if POIPointFaction == 12 then
POIPOINTFaction = 6
end
if POIPointFaction == 10 then
char = RandomElement2(157, 116)
else
char = GetStudent(POIPointFaction, POIGender, -1)
end
if char == -1 then
return
end
LoadPedPOIModel(char)
puker = PedCreatePOIPoint(char, POIInfo, 0, 0, 0)
if puker == -1 then
return
end
PedClearAllWeapons(puker)
if POIIsValid(POIInfo) then
local x, y, z = POIGetPosXYZ(POIInfo)
PAnimOpenDoors(x, y, z, 0, "StalDoor")
end
local result = ExecuteActionNode(puker, "/Global/Ambient/Scripted/SpecialPuke", "Act/Anim/Ambient.act")
if result == true then
PedWander(puker, 0)
end
end
function F_RaceSetCurrent(raceID)
shared.g3_R08_CurrentRace = raceID
end
F_RainBeGone()
function F_RainBeGone()
local weather = WeatherGet()
if weather == 2 or weather == 5 then
WeatherSet(1)
else
WeatherSet(weather)
end
end
elseif AreaPOICompareName(info, "F_CarnivalWalker") or AreaPOICompareName(info, "F_Industrial") or AreaPOICompareName(info, "F_DockWorker") or AreaPOICompareName(info, "F_MillWorker") or AreaPOICompareName(info, "F_PrincipalPOI") or AreaPOICompareName(info, "F_DockWorker") or AreaPOICompareName(info, "F_MillWorker") or AreaPOICompareName(info, "F_Fireman") or AreaPOICompareName(info, "F_RandomStudent") or AreaPOICompareName(info, "F_SocialHangout") then
elseif AreaPOICompareName(POIInfo, "F_RandomStudent") then
F_RandomStudent,
function F_RandomStudent(POIInfo, POIPointType, POIPointFaction, POIPointNum, POIGender, ped1, ped2, ped3, ped4)
local model
if POIPointFaction == 8 then
if MissionActive() then
return
else
local teachroll = math.random(1, 100)
if 60 <= teachroll then
return
end
end
end
model = GetStudent(POIPointFaction, POIGender, -1)
local dirroll = math.random(1, 100)
if model == -1 then
return
end
LoadPedPOIModel(model)
local ped = PedCreatePOIPoint(model, POIInfo, 0, 0, 0)
if ped == -1 then
return
end
if 50 < dirroll then
local head = PedGetHeading(ped) + 180
PedFaceHeading(ped, head, 0)
end
if POIPointFaction == 2 then
if not PedIsFemale(ped) then
PedClearAllWeapons(ped)
while not WeaponRequestModel(381, true) and POIIsValid(POIInfo) do
Wait(0)
end
ModelNotNeededAmbient(381)
PedSetWeaponNow(ped, 381, 1)
ExecuteActionNode(ped, "/Global/Ambient/Scripted/Dribble", "Act/Anim/Ambient.act")
else
PedSetFlag(ped, 120, true)
PedWander(ped, 0)
end
else
PedSetFlag(ped, 120, true)
PedWander(ped, 0)
end
end
elseif AreaPOICompareName(info, "F_Rats") then
elseif AreaPOICompareName(POIInfo, "F_Rats") then
F_Rats,
function F_Rats(POIInfo, POIPointType, POIPointFaction, POIPointNum, POIGender, ped1, ped2, ped3, ped4)
LoadPedPOIModel(136)
local numRats = math.random(1, 2)
for i = 0, numRats do
local char = PedCreatePOIPoint(136, POIInfo, math.random(-1, 1), math.random(-1, 1), 0)
if char ~= -1 then
PedWander(char, 0)
PedClearPOI(char)
end
end
end
elseif AreaPOICompareName(POIInfo, "F_ReachItHumiliation") then
F_ReachItHumiliation,
function F_ReachItHumiliation(POIInfo, POIPointType, POIPointFaction, POIPointNum, POIGender, ped1, ped2, ped3, ped4)
local charType
--print("POIPointFaction: ", POIPointFaction)
if POIPointFaction == 11 or POIPointFaction == 4 or POIPointFaction == 5 or POIPointFaction == 2 then
charType = POIPointFaction
elseif POIPointFaction == 1 then
return
else
charType = RandomElement4(4, 11, 5, 2)
end
if charType == 11 or charType == 5 then
ped1 = GetStudent(charType, 1, -1)
ped2 = GetStudent(1, 1, -1, false)
else
ped1 = GetStudent(charType, 1, -1)
charType = RandomElement2(1, 6, false)
if charType == 1 then
ped2 = GetStudent(charType, 1, -1, false)
else
ped2 = GetStudent(charType, 1, -1, false)
end
if ped2 == 7 or ped2 == 9 then
return
end
end
if ped1 == -1 or ped2 == -1 then
return
end
POISetScriptedPedExitObjective(POIInfo, 0)
LoadPedPOIModel(ped1)
LoadPedPOIModel(ped2)
LoadWeaponPOIModel(405)
local Victim = PedCreatePOIPoint(ped2, POIInfo, 0, 0, 0)
local Thug = PedCreatePOIPoint(ped1, POIInfo, 1, 0, 0)
if Victim == -1 or Thug == -1 then
ModelNotNeededAmbient(405)
return
end
ModelNotNeededAmbient(405)
PedFaceObjectNow(Victim, Thug, 2)
PedFaceObjectNow(Thug, Victim, 2)
PedSetWeapon(Thug, 405, 1)
PedLockTarget(Thug, Victim, 0)
PedLockTarget(Victim, Thug, 0)
local result = POIActionNode2(Thug, Victim, "/Global/Ambient/Scripted/BookHarass", "Act/Anim/Ambient.act")
end
function F_RevengeOnMrBurton()
return shared.g5_05
end
--DebugPrint("F_RingSchoolBell eof")
--DebugPrint("F_RingSchoolBell")
F_RingSchoolBell()
function F_RingSchoolBell()
--DebugPrint("F_RingSchoolBell")
local current_area = AreaGetVisible()
if current_area == 2 or current_area == 14 then
SoundPlay2D("School Bell 2D")
else
SoundPlay2D("Half Bell 2D")
end
--DebugPrint("F_RingSchoolBell eof")
end
function F_RollPropDice()
if PedIsPlaying(shared.gPOIKidsPlayingDice[1].ped, "/Global/AniDice/Minigame/AmbientDice/GrappleAttempt/GrappleSuccess/PickupDice", true) then
PAnimSetActionNode(shared.gPOIKidsPlayingDice[4].dice1, "/Global/AniDice/RollDice/Roll", "Act/Props/AniDice.act")
elseif PedIsPlaying(shared.gPOIKidsPlayingDice[2].ped, "/Global/AniDice/Minigame/AmbientDice/GrappleAttempt/GrappleSuccess/PickupDice", true) then
PAnimSetActionNode(shared.gPOIKidsPlayingDice[4].dice2, "/Global/AniDice/RollDice/Roll", "Act/Props/AniDice.act")
end
end
elseif AreaPOICompareName(info, "F_RoofSniper") then
elseif AreaPOICompareName(POIInfo, "F_RoofSniper") then
F_RoofSniper,
function F_RoofSniper(POIInfo, POIPointType, POIPointFaction, POIPointNum, POIGender, ped1, ped2, ped3, ped4)
if MissionActive() then
return
end
local Thug = -1
local charType
--print("POIPointFaction: ", POIPointFaction)
if Thug == -1 then
if POIPointFaction ~= 12 then
charType = POIPointFaction
else
charType = RandomElement3(3, 11, 1)
end
ped1 = GetStudent(charType, 1, -1)
if ped1 == -1 or ped2 == -1 then
return
end
LoadPedPOIModel(ped1)
Thug = PedCreatePOIPoint(ped1, POIInfo, 0, 0, 0)
end
if Thug == -1 then
return
end
local dirroll = math.random(1, 100)
PedSetFlag(Thug, 120, true)
PedSetPedToTypeAttitude(Thug, 13, 0)
PedSetPedToTypeAttitude(Thug, 7, 0)
PedSetPedToTypeAttitude(Thug, 9, 0)
PedSetFlag(Thug, 2, true)
PedSetStationary(Thug, true)
PedSetHealth(Thug, 10)
PedRooftopAttacker(Thug)
PedSetCheap(Thug, true)
PedClearAllWeapons(Thug)
F_ChooseSniperWeapon(Thug)
end
elseif AreaPOICompareName(info, "F_Russell") then
elseif AreaPOICompareName(POIInfo, "F_Russell") then
F_Russell,
function F_Russell(POIInfo, POIPointType, POIPointFaction, POIPointNum, POIGender, ped1, ped2, ped3, ped4)
--print("TRYING RUSSELL")
local model = 75
if PedGetPedCountWithModel(model) > 0 then
--print("FAILED PEDCOUNT")
return
end
if MissionActive() then
--print("MISSIONACTIVE")
return
end
LoadPedPOIModel(model)
local x, y
z = 0, 0, 0
if POIIsValid(POIInfo) then
local MovePed = false
for pos = 1, 20 do
x, y, z = PedFindRandomSpawnPosition(model)
if x ~= 9999 then
pos = 21
MovePed = true
else
pos = pos + 1
if pos == 21 then
if POIIsValid(POIInfo) then
x, y, z = POIGetPosXYZ(POIInfo)
else
ModelNotNeededAmbient(model)
return
end
end
end
end
end
local char = PedCreatePOIPoint(model, POIInfo, 0, 0, 0)
if char == -1 then
return
end
--print("CREATED RUSSELL")
if MovePed == true then
PedSetPosXYZ(char, x, y, z)
end
PedSetFlag(char, 117, false)
if ChapterGet() == 0 then
PedSetEmotionTowardsPed(char, gPlayer, 0, false)
else
PedSetPedToTypeAttitude(char, 13, 4)
end
end
F_ScenarioManager(POIPoint)
function F_ScenarioManager(POIInfo)
if IsMissionCompleated("1_E01") and not shared.gHalloweenActive and (not IsMissionCompleated("4_05") or not not IsMissionCompleated("4_06")) then
if AreaGetVisible() == 0 then
if PlayerIsInTrigger(TRIGGER._ZONESCHOOL) then
for i, scenario in ZONE_SCHOOL do
if AreaPOICompareName(POIInfo, scenario.name) then
F_CheckConditions(scenario, POIInfo)
end
end
elseif PlayerIsInTrigger(TRIGGER._ZONEBUSINESS) then
for i, scenario in ZONE_BUSINESS do
if AreaPOICompareName(POIInfo, scenario.name) then
F_CheckConditions(scenario, POIInfo)
end
end
elseif PlayerIsInTrigger(TRIGGER._ZONERICH) then
for i, scenario in ZONE_RICH do
if AreaPOICompareName(POIInfo, scenario.name) then
F_CheckConditions(scenario, POIInfo)
end
end
elseif PlayerIsInTrigger(TRIGGER._ZONEPOOR) then
for i, scenario in ZONE_POOR do
if AreaPOICompareName(POIInfo, scenario.name) then
F_CheckConditions(scenario, POIInfo)
end
end
elseif PlayerIsInTrigger(TRIGGER._ZONEINDUSTRIAL) then
for i, scenario in ZONE_INDUSTRIAL do
if AreaPOICompareName(POIInfo, scenario.name) then
F_CheckConditions(scenario, POIInfo)
end
end
end
elseif AreaGetVisible() == 14 then
for i, scenario in ZONE_BOYSDORM do
if AreaPOICompareName(POIInfo, scenario.name) then
F_CheckConditions(scenario, POIInfo)
end
end
elseif AreaGetVisible() == 2 then
for i, scenario in ZONE_SCHOOLHALLWAYS do
if AreaPOICompareName(POIInfo, scenario.name) then
F_CheckConditions(scenario, POIInfo)
end
end
elseif AreaGetVisible() == 13 then
for i, scenario in ZONE_POOLANDGYM do
if AreaPOICompareName(POIInfo, scenario.name) then
F_CheckConditions(scenario, POIInfo)
end
end
elseif AreaGetVisible() == 62 then
for i, scenario in ZONE_BMXPARK do
if AreaPOICompareName(POIInfo, scenario.name) then
F_CheckConditions(scenario, POIInfo)
end
end
elseif AreaGetVisible() ~= 62 and AreaGetVisible() ~= 14 and AreaGetVisible() ~= 2 and AreaGetVisible() ~= 13 then
--print("======= Interior Table Check =====")
for i, scenario in ZONE_INTERIOR do
if AreaPOICompareName(POIInfo, scenario.name) then
F_CheckConditions(scenario, POIInfo)
end
end
end
if shared.gCurrentAmbientScenarioObject == nil then
shared.gCurrentAmbientScenario = nil
shared.bCleanUpErrand = false
end
elseif bDebugErrands then
for i, scenario in ZONE_TEST do
if AreaPOICompareName(POIInfo, scenario.name) then
F_DebugScenarios(scenario, POIInfo)
end
end
end
end
F_SelectBrawlWeapon(Thug, charType)
F_SelectBrawlWeapon(Thug, POIPointFaction)
function F_SelectBrawlWeapon(Ped, PedFaction)
local WChoice
if PedFaction == 1 then
WChoice = RandomElement2(301, 307)
elseif PedFaction == 5 then
WChoice = 312
elseif PedFaction == 4 then
WChoice = 303
elseif PedFaction == 11 then
WChoice = 303
elseif PedFaction == 3 then
WChoice = 311
else
return
end
while not WeaponRequestModel(WChoice, true) do
Wait(0)
end
ModelNotNeededAmbient(WChoice)
if PedIsValid(Ped) then
if WChoice == 307 then
PedSetWeapon(Ped, WChoice, 5)
elseif WChoice == 312 then
PedSetWeapon(Ped, WChoice, 5)
else
PedSetWeaponNow(Ped, WChoice, 1)
end
end
end
F_SelectProjWeapon(Thug, charType)
function F_SelectProjWeapon(Ped, PedFaction)
local WChoice = 312
while not WeaponRequestModel(WChoice, true) do
Wait(0)
end
ModelNotNeededAmbient(WChoice)
if PedIsValid(Ped) then
PedClearAllWeapons(Ped)
PedSetWeapon(Ped, WChoice, 5)
end
end
--print(">>>[RUI]", "++F_SetCharacterModelsUnique")
--print(">>>[RUI]", "--F_SetCharacterModelsUnique")
--print(">>>[RUI]", "F_SetCharacterModelsUnique OFF model:" .. tostring(m.model) .. " stat:" .. tostring(m.unique))
--print(">>>[RUI]", "F_SetCharacterModelsUnique ON model:" .. tostring(m) .. " stat:" .. tostring(u))
F_SetCharacterModelsUnique(false)
F_SetCharacterModelsUnique(true, gDogModels)
F_SetCharacterModelsUnique(true, {
F_SetCharacterModelsUnique(true, { 130 })
F_SetCharacterModelsUnique(true, { 50 })
F_SetCharacterModelsUnique(true, { 61 })
function F_SetCharacterModelsUnique(bOn, models)
if not gUniqueModels then
gUniqueModels = {}
end
if bOn then
--print(">>>[RUI]", "++F_SetCharacterModelsUnique")
if not models then
return
end
for _, m in models do
u = PedGetUniqueModelStatus(m)
PedSetUniqueModelStatus(m, -1)
--print(">>>[RUI]", "F_SetCharacterModelsUnique ON model:" .. tostring(m) .. " stat:" .. tostring(u))
table.insert(gUniqueModels, { model = m, unique = u })
end
else
--print(">>>[RUI]", "--F_SetCharacterModelsUnique")
if not gUniqueModels then
return
end
for _, m in gUniqueModels do
if m.unique then
--print(">>>[RUI]", "F_SetCharacterModelsUnique OFF model:" .. tostring(m.model) .. " stat:" .. tostring(m.unique))
PedSetUniqueModelStatus(m.model, m.unique)
end
end
end
end
function F_SetCutsceneName(csindex)
CutSetCutsceneName(cutsceneTable[csindex].name)
end
function F_SetCutsceneTableSize()
CutSetCutsceneTableSize(cutsceneTable.size)
end
F_SetRestartPoints()
function F_SetRestartPoints()
shared.extraKOPoints = true
end
function F_SetupBeforeMission(missionIdParam, hourParam, minuteParam, startPointParam, visibleAreaParam)
missionId = missionIdParam
hour = hourParam
minute = minuteParam
startPoint = startPointParam
visibleArea = visibleAreaParam
CreateThread("F_SetupBeforeMissionThread")
end
CreateThread("F_SetupBeforeMissionThread")
function F_SetupBeforeMissionThread()
--DebugPrint("Setting Up Before Mission For Mission: " .. missionId)
--DebugPrint("hour: " .. hour .. " min: " .. minute)
--DebugPrint("startPoint: " .. startPoint .. " visibleArea: " .. visibleArea)
if hour ~= -1 and minute ~= -1 then
--print("Prev Time ( hour: ", hour, " minute: ", minute, " ) ")
if 2 < minute then
minute = minute - 5
else
hour = hour - 1
minute = 55
end
--print("New Time ( hour: ", hour, " minute: ", minute, " ) ")
ClockSet(hour, minute)
end
if visibleArea ~= -1 and startPoint ~= -1 then
--print("Visible area code: ", visibleArea, " startPoint: ", startPoint)
AreaForceLoadAreaByAreaTransition(true)
AreaTransitionPoint(visibleArea, startPoint)
AreaForceLoadAreaByAreaTransition(false)
end
if missionId == MissionGetIndex("1_11x1") then
TextPrintString("Debugging to make halloween available!", 3, 2)
end
collectgarbage()
end
F_SetupHallowenPeds(false)
F_SetupHallowenPeds(true)
function F_SetupHallowenPeds(bTurnOnPedro)
PedSetUniqueModelStatus(161, 2)
PedSetUniqueModelStatus(162, 2)
PedSetUniqueModelStatus(163, 1)
PedSetUniqueModelStatus(164, 2)
PedSetUniqueModelStatus(166, 1)
PedSetUniqueModelStatus(167, 1)
PedSetUniqueModelStatus(168, 2)
PedSetUniqueModelStatus(169, 3)
PedSetUniqueModelStatus(170, 2)
PedSetUniqueModelStatus(171, 3)
PedSetUniqueModelStatus(173, 2)
PedSetUniqueModelStatus(174, 1)
if bTurnOnPedro then
PedSetUniqueModelStatus(159, 2)
end
PedSetUniqueModelStatus(69, -1)
PedSetUniqueModelStatus(26, -1)
PedSetUniqueModelStatus(11, -1)
PedSetUniqueModelStatus(40, -1)
PedSetUniqueModelStatus(17, -1)
PedSetUniqueModelStatus(39, -1)
PedSetUniqueModelStatus(38, -1)
PedSetUniqueModelStatus(12, -1)
PedSetUniqueModelStatus(139, -1)
PedSetUniqueModelStatus(102, -1)
PedSetUniqueModelStatus(73, -1)
PedSetUniqueModelStatus(27, -1)
PedSetUniqueModelStatus(7, -1)
PedSetUniqueModelStatus(66, -1)
PedSetUniqueModelStatus(68, -1)
PedSetUniqueModelStatus(74, -1)
PedSetUniqueModelStatus(71, -1)
PedSetUniqueModelStatus(70, -1)
PedSetUniqueModelStatus(137, -1)
PedSetUniqueModelStatus(138, -1)
end
function F_SetupLockpickingGame()
if shared.gStartingEvent == false then
LaunchScript("secnd/MGLockPicking.lua")
if shared.gLockpickStartingFunction ~= nil then
local x, y, z = PlayerGetPosXYZ()
shared.gLockpickStartingFunction(x, y, z)
end
end
end
function F_SetupMissionRequirements(missionId)
--DebugPrint("Setting Up Mission Requirements For Mission: " .. missionId)
if missionId == MissionGetIndex("1_01") then
shared.bCrateStateSetup = false
end
if missionId == MissionGetIndex("1_02A") then
shared.lockClothingManager = false
shared.cm_lockHead = false
shared.cm_lockTorso = false
shared.cm_lockLWrist = false
shared.cm_lockRWrist = false
shared.cm_lockLegs = false
shared.cm_lockFeet = false
elseif missionId == MissionGetIndex("1_02C") then
UnpauseGameClock()
--print("==========> PASSING MISSION 1_02C")
if not shared.bCrateStateSetup then
ObjectTypeSetPickupListOverride("DPI_CardBox", "PickupListMailBox")
ObjectTypeSetPickupListOverride("DPI_CrateBrk", "PickupListCrate")
ObjectTypeSetPickupListOverride("DPE_CrateBrk", "PickupListCrate")
DATLoad("Pickups.DAT", 1)
shared.bCrateStateSetup = true
--print("==========> shared.bCrateStateSetup 1_02C")
end
F_SetRestartPoints()
elseif missionId == MissionGetIndex("1_03") and not IsMissionCompleated("1_09") then
if ItemGetCurrentNum(303) == 0 then
GiveWeaponToPlayer(303)
end
elseif missionId == MissionGetIndex("C_Photography_2") then
HUDPhotographySetSaveLevel1(true)
elseif missionId == MissionGetIndex("C_Photography_1") then
HUDPhotographySetSaveLevel2(true)
elseif missionId == MissionGetIndex("C_Photography_3") then
HUDPhotographySetColourUpgrade(true)
elseif missionId == MissionGetIndex("1_S01") then
if not PlayerHasItem(328) then
GiveWeaponToPlayer(328)
end
elseif missionId == MissionGetIndex("1_06_01") then
if IsMissionCompleated("1_05") and not IsMissionCompleated("1_11_Dummy") then
AreaLoadSpecialEntities("Halloween1", true)
AreaEnsureSpecialEntitiesAreCreated()
end
CollectiblesSetTypeAvailable(1, true)
elseif missionId == MissionGetIndex("1_07") then
GiveWeaponToPlayer(437, false)
MissionForceCompleted("1_E01")
MissionSuccessCountInc("1_E01")
elseif missionId == MissionGetIndex("1_08") then
if ItemGetCurrentNum(309) == 0 then
GiveAmmoToPlayer(309, 5)
end
elseif missionId == MissionGetIndex("1_09") then
if ItemGetCurrentNum(306) == 0 then
GiveWeaponToPlayer(306)
end
if IsMissionCompleated("1_09") and not IsMissionCompleated("1_11_Dummy") then
shared.g1_09JustFinished = true
AreaLoadSpecialEntities("Halloween2", true)
--print("========== Halloween should have turned off the clock, 1.09 complete =====")
end
elseif missionId == MissionGetIndex("1_11x1") then
--print("========== Checking 1_11x1 =====")
if IsMissionCompleated("1_09") and not IsMissionCompleated("1_11_Dummy") then
AreaLoadSpecialEntities("Halloween2", true)
AreaEnsureSpecialEntitiesAreCreated()
shared.g1_09JustFinished = true
--print("========== Halloween should have turned off the clock, 1_11x1 complete =====")
end
if ItemGetCurrentNum(394) == 0 then
GiveAmmoToPlayer(394, 5)
GiveAmmoToPlayer(397, 5)
end
elseif missionId == MissionGetIndex("1_11xp") then
if IsMissionCompleated("1_11x1") and not IsMissionCompleated("1_11_Dummy") then
AreaLoadSpecialEntities("Halloween2", true)
AreaLoadSpecialEntities("Halloween3", true)
AreaEnsureSpecialEntitiesAreCreated()
end
shared.g1_11XpJustFinished = true
elseif missionId == MissionGetIndex("1_11_Dummy") then
ClothingGivePlayerOutfit("Halloween")
AreaLoadSpecialEntities("Halloween1", false)
AreaLoadSpecialEntities("Halloween2", false)
AreaLoadSpecialEntities("Halloween3", false)
AreaEnsureSpecialEntitiesAreCreated()
elseif missionId == MissionGetIndex("2_01") then
if ItemGetCurrentNum(312) == 0 then
GiveAmmoToPlayer(312, 5)
end
elseif missionId == MissionGetIndex("2_03") then
if not ClothingPlayerOwns("R_Sweater1", 1) then
ClothingGivePlayer("R_Sweater1", 1, false)
end
elseif missionId == MissionGetIndex("2_S06") then
DebugMissionPassDependant("Chapt1Trans")
elseif missionId == MissionGetIndex("3_04") then
if ItemGetCurrentNum(307) == 0 then
GiveWeaponToPlayer(307)
end
elseif missionId == MissionGetIndex("3_S10") then
--print("==========> PASSING MISSION 3S10")
if not shared.bCrateStateSetup then
ObjectTypeSetPickupListOverride("DPI_CardBox", "PickupListMailBoxSprayCan")
ObjectTypeSetPickupListOverride("DPI_CrateBrk", "PickupListCrateSprayCan")
ObjectTypeSetPickupListOverride("DPE_CrateBrk", "PickupListCrateSprayCan")
shared.bCrateStateSetup = true
--print("==========> shared.bCrateStateSetup 3_S10")
end
if ItemGetCurrentNum(321) == 0 then
GiveAmmoToPlayer(321, 10)
end
elseif missionId == MissionGetIndex("3_08_PostDummy") then
ClothingGivePlayer("SP_XmsSweater", 1)
AreaLoadSpecialEntities("Christmas", false)
AreaEnsureSpecialEntitiesAreCreated()
elseif missionId == MissionGetIndex("1_B") then
shared.addBusPoints = true
if 1 >= ChapterGet() then
ChapterSet(1)
MissionForceCompleted("1_11x2")
MissionSuccessCountInc("1_11x2")
end
MissionForceCompleted("C_Chem_1")
MissionSuccessCountInc("C_Chem_1")
MissionForceCompleted("C_Art_1")
MissionSuccessCountInc("C_Art_1")
MissionForceCompleted("Art1X")
MissionSuccessCountInc("Art1X")
MissionForceCompleted("C_Wrestling_1")
MissionSuccessCountInc("C_Wrestling_1")
MissionForceCompleted("C_English_1")
MissionSuccessCountInc("C_English_1")
shared.updateDefaultKOPoint = true
elseif missionId == MissionGetIndex("2_B") then
if ChapterGet() <= 2 then
--print("Setting chapter to 3!")
ChapterSet(2)
if not IsMissionCompleated("3_08") then
--print("Passed Chapter 2, starting Christmas")
AreaLoadSpecialEntities("Christmas", true)
AreaEnsureSpecialEntitiesAreCreated()
end
end
MissionForceCompleted("C_Chem_2")
MissionSuccessCountInc("C_Chem_2")
MissionForceCompleted("C_Art_2")
MissionSuccessCountInc("C_Art_2")
MissionForceCompleted("C_Wrestling_2")
MissionSuccessCountInc("C_Wrestling_2")
MissionForceCompleted("C_English_2")
MissionSuccessCountInc("C_English_2")
MissionForceCompleted("C_Photography_2")
MissionSuccessCountInc("C_Photography_2")
MissionForceCompleted("C_Photography_1")
MissionSuccessCountInc("C_Photography_1")
HUDPhotographySetSaveLevel1(true)
HUDPhotographySetSaveLevel2(true)
elseif missionId == MissionGetIndex("3_B") then
if ChapterGet() <= 3 then
AreaLoadSpecialEntities("Christmas", false)
--print("Setting chapter to 4!")
ChapterSet(3)
end
MissionForceCompleted("C_Chem_3")
MissionSuccessCountInc("C_Chem_3")
MissionForceCompleted("C_Art_3")
MissionSuccessCountInc("C_Art_3")
MissionForceCompleted("C_Wrestling_3")
MissionSuccessCountInc("C_Wrestling_3")
MissionForceCompleted("C_English_3")
MissionSuccessCountInc("C_English_3")
MissionForceCompleted("C_Photography_3")
MissionSuccessCountInc("C_Photography_3")
HUDPhotographySetColourUpgrade(true)
elseif missionId == MissionGetIndex("4_02") then
--print("Passed 4_02, unlocking spud gun")
if ItemGetCurrentNum(305) == 0 then
GiveWeaponToPlayer(305)
end
elseif missionId == MissionGetIndex("4_B1") then
if not shared.bCrateStateSetup then
ObjectTypeSetPickupListOverride("DPI_CardBox", "PickupListMailBoxSprayCan")
ObjectTypeSetPickupListOverride("DPI_CrateBrk", "PickupListCrateBRockets")
ObjectTypeSetPickupListOverride("DPE_CrateBrk", "PickupListCrateBRockets")
shared.bCrateStateSetup = true
--print("==========> shared.bCrateStateSetup 4_B1")
end
MissionForceCompleted("C_Photography_4")
MissionSuccessCountInc("C_Photography_4")
--print("==========> PASSING MISSION 4B1")
elseif missionId == MissionGetIndex("4_B2") then
--print("==========> PASSING MISSION 4B2")
MissionForceCompleted("C_Chem_4")
MissionSuccessCountInc("C_Chem_4")
MissionForceCompleted("C_Art_4")
MissionSuccessCountInc("C_Art_4")
MissionForceCompleted("C_Wrestling_4")
MissionSuccessCountInc("C_Wrestling_4")
MissionForceCompleted("C_English_4")
MissionSuccessCountInc("C_English_4")
MissionForceCompleted("C_Photography_5")
MissionSuccessCountInc("C_Photography_5")
if not shared.indusrtialRestartPointsAdded then
AddKORestartPoint(POINTLIST._RESTART_I_HS, 0)
AddKORestartPoint(POINTLIST._RESTART_I_HS, 0)
AddArrestRestartPoint(POINTLIST._RESTART_I_PS, 0, 8, 18)
AddArrestRestartPoint(POINTLIST._RESTART_I_PS, 0, 18, 8, POINTLIST._BOYSDORM_BEDWAKEUP, 14)
local industrialAreaInteriors = {
20,
16,
54
}
for i, lArea in industrialAreaInteriors do
AddInteriorKORestartPoint(lArea, POINTLIST._RESTART_I_HS, 0)
AddInteriorArrestRestartPoint(lArea, POINTLIST._RESTART_I_PS, 0)
AddInteriorAsleepRestartPoint(lArea, POINTLIST._RESTART_I_HS, 0)
end
SetKORestartPointCameraPos(POINTLIST._RESTART_I_HS, POINTLIST._RESTART_I_HS_CAM)
SetArrestRestartPointCameraPos(POINTLIST._RESTART_I_PS, POINTLIST._RESTART_I_PS_CAM)
shared.indusrtialRestartPointsAdded = true
end
elseif missionId == MissionGetIndex("4_03") then
if not shared.bCrateStateSetup then
ObjectTypeSetPickupListOverride("DPI_CardBox", "PickupListMailBoxSprayCan")
ObjectTypeSetPickupListOverride("DPI_CrateBrk", "PickupListCrateSpudGuns")
ObjectTypeSetPickupListOverride("DPE_CrateBrk", "PickupListCrateSpudGuns")
shared.bCrateStateSetup = true
--print("==========> shared.bCrateStateSetup 4_03")
end
--print("==========> PASSING MISSION 4B2")
elseif missionId == MissionGetIndex("5_01") then
--print("Passed 5_01, unlocking super spud gun")
if ChapterGet() <= 4 then
--print("Setting chapter to 5!")
ChapterSet(4)
end
elseif missionId == MissionGetIndex("5_06") then
shared.enclaveGateRespawn = 2
end
F_MissionFactionChanges()
end
elseif AreaPOICompareName(info, "F_ClassSmokers") or AreaPOICompareName(info, "F_SmokingFireman") then
elseif AreaPOICompareName(POIInfo, "F_SmokingFireman") then
F_SmokingFireman,
function F_SmokingFireman(POIInfo, POIPointType, POIPointFaction, POIPointNum, POIGender, ped1, ped2, ped3, ped4)
ped1 = 82
if ped1 == -1 then
return
end
LoadPedPOIModel(ped1)
local char = PedCreatePOIPoint(ped1, POIInfo, 0, 0, 0)
if char == -1 then
return
end
local result = ExecuteActionNode(char, "/Global/Ambient/Scripted/Wall_Smoke", "Act/Anim/Ambient.act")
if result == true then
PedWander(char, 0)
end
end
function F_SnowShovelAvailable()
local savedData = PlayerGetScriptSavedData(14)
if ChapterGet() == 2 and savedData == 1 then
return 1
end
return 0
end
elseif AreaPOICompareName(info, "F_CarnivalWalker") or AreaPOICompareName(info, "F_Industrial") or AreaPOICompareName(info, "F_DockWorker") or AreaPOICompareName(info, "F_MillWorker") or AreaPOICompareName(info, "F_PrincipalPOI") or AreaPOICompareName(info, "F_DockWorker") or AreaPOICompareName(info, "F_MillWorker") or AreaPOICompareName(info, "F_Fireman") or AreaPOICompareName(info, "F_RandomStudent") or AreaPOICompareName(info, "F_SocialHangout") then
elseif AreaPOICompareName(POIInfo, "F_SocialHangout") then
F_SocialHangout,
function F_SocialHangout(POIInfo, POIPointType, POIPointFaction, POIPointNum, POIGender, ped1, ped2, ped3, ped4)
if WeatherGet() == 2 or WeatherGet() == 5 then
return
end
local ped1 = GetStudent(POIPointFaction, POIGender, -1)
local ped2 = GetStudent(POIPointFaction, POIGender, -1)
if ped1 == -1 or ped2 == -1 then
return
end
LoadPedPOIModel(ped1)
LoadPedPOIModel(ped2)
local worker1 = PedCreatePOIPoint(ped1, POIInfo, 0, 1, 0)
local worker2 = PedCreatePOIPoint(ped2, POIInfo, 0, -1, 0)
if worker1 == -1 or worker2 == -1 then
return
end
PedSetFlag(worker1, 120, true)
PedSetFlag(worker2, 120, true)
PedFaceObject(worker1, worker2, 2, 0)
PedFaceObject(worker2, worker1, 2, 0)
PedSetWantsToSocializeWithPed(worker1, worker2)
PedSetWantsToSocializeWithPed(worker2, worker1)
PedSetEmotionTowardsPed(worker2, worker1, 8)
PedSetEmotionTowardsPed(worker1, worker2, 8)
if POIIsValid(POIInfo) then
local x, y, z = POIGetPosXYZ(POIInfo)
PedSetTetherToXYZ(worker1, x, y, z, 20)
PedSetTetherToXYZ(worker2, x, y, z, 20)
end
end
elseif AreaPOICompareName(info, "F_LockerStuff") or AreaPOICompareName(info, "F_SocialHumiliation") or AreaPOICompareName(info, "F_TrashStuff") or AreaPOICompareName(info, "F_Swirlie") then
elseif AreaPOICompareName(POIInfo, "F_SocialHumiliation") then
F_SocialHumiliation,
function F_SocialHumiliation(POIInfo, POIPointType, POIPointFaction, POIPointNum, POIGender, ped1, ped2, ped3, ped4)
local charType, sizeType, sizeType2
if POIGender == 0 then
POIGender = 1
end
--print("POIPointFaction: ", POIPointFaction)
if POIPointFaction == 11 or POIPointFaction == 4 or POIPointFaction == 5 or POIPointFaction == 9 or POIPointFaction == 2 then
charType = POIPointFaction
elseif POIPointFaction == 1 then
return
else
charType = RandomElement4(4, 11, 5, 2)
end
if charType == 5 then
ped1 = GetStudent(charType, POIGender, -1)
ped2 = GetStudent(1, POIGender, -1)
elseif charType == 9 then
ped1 = GetStudent(charType, POIGender, -1)
ped2 = GetStudent(5, POIGender, -1)
else
sizeType = RandomElement2(2, 1)
ped1 = GetStudent(charType, 1, -1)
charType = RandomElement2(1, 6)
if charType == 1 then
ped2 = GetStudent(charType, POIGender, -1)
else
sizeType2 = RandomElement2(0, 1)
ped2 = GetStudent(charType, POIGender, -1, false)
end
end
if ped1 == -1 or ped2 == -1 then
return
end
POISetScriptedPedExitObjective(POIInfo, 0)
LoadPedPOIModel(ped1)
LoadPedPOIModel(ped2)
local Victim = PedCreatePOIPoint(ped2, POIInfo, 0, 1, 0)
local Thug = PedCreatePOIPoint(ped1, POIInfo, 0, 0, 0)
if Victim == -1 or Thug == -1 then
return
end
PedSetFlag(Thug, 120, true)
PedSetFlag(Victim, 120, true)
PedClearAllWeapons(Thug)
PedLockTarget(Thug, Victim, 0)
PedLockTarget(Victim, Thug, 0)
PedFaceObjectNow(Victim, Thug, 2)
PedFaceObjectNow(Thug, Victim, 2)
PedSetWantsToSocializeWithPed(Victim, Thug)
PedSetWantsToSocializeWithPed(Thug, Victim)
PedSetEmotionTowardsPed(Thug, Victim, 0)
PedSetEmotionTowardsPed(Victim, Thug, 5)
PedOverrideStat(Thug, 14, 100)
end
function F_StealthSpottedText()
TextPrint("STEALTH_SPOTTED", 4, 2)
end
elseif AreaPOICompareName(info, "F_Straggler") then
elseif AreaPOICompareName(POIInfo, "F_Straggler") then
F_Straggler,
function F_Straggler(POIInfo, POIPointType, POIPointFaction, POIPointNum, POIGender, ped1, ped2, ped3, ped4)
local model = GetStudent(POIPointFaction, 1, -1)
if model == -1 then
return
end
LoadPedPOIModel(model)
local ped = PedCreatePOIPoint(model, POIInfo, 0, 0, 0)
if ped == -1 then
return
end
PedOverrideStat(ped, 6, 80)
PedSetFlag(ped, 120, true)
PedWander(ped, 1)
end
elseif AreaPOICompareName(POIInfo, "F_Sweep") then
function F_Sweep(POIInfo, POIPointType, POIPointFaction, POIPointNum, POIGender, ped1, ped2, ped3, ped4)
local x, y, z = 0, 0, 0
local char = -1
while not WeaponRequestModel(377, true) and POIIsValid(POIInfo) do
Wait(0)
end
local hour, minute = ClockGet()
if POIPointFaction == 8 then
if 0 < PedGetPedCountWithModel(56) and hour < 17 then
ModelNotNeededAmbient(377)
return
else
LoadPedPOIModel(56)
char = PedCreatePOIPoint(56, POIInfo, 0, 0, 0)
if char == -1 then
ModelNotNeededAmbient(377)
return
end
local MovePed = false
for pos = 1, 20 do
x, y, z = PedFindRandomSpawnPosition(char)
if x ~= 9999 then
pos = 21
MovePed = true
else
pos = pos + 1
if pos == 21 and POIIsValid(POIInfo) then
x, y, z = POIGetPosXYZ(POIInfo)
else
ModelNotNeededAmbient(377)
return
end
end
end
if MovePed == true then
PedSetPosXYZ(char, x, y, z)
end
end
end
ModelNotNeededAmbient(377)
if char == -1 then
return
end
PedSetWeapon(char, 377, 1)
local result = ExecuteActionNode(char, "/Global/Ambient/Scripted/SweepFloors", "Act/Anim/Ambient.act")
if result == true then
PedWander(char, 0)
end
end
elseif AreaPOICompareName(info, "F_LockerStuff") or AreaPOICompareName(info, "F_SocialHumiliation") or AreaPOICompareName(info, "F_TrashStuff") or AreaPOICompareName(info, "F_Swirlie") then
elseif AreaPOICompareName(POIInfo, "F_Swirlie") then
F_Swirlie,
function F_Swirlie(POIInfo, POIPointType, POIPointFaction, POIPointNum, POIGender, ped1, ped2, ped3, ped4)
if shared.bBathroomPOIEnabled == false then
return
end
local charType, sizeType, sizeType2
--print("POIPointFaction: ", POIPointFaction)
if POIPointFaction == 11 or POIPointFaction == 4 or POIPointFaction == 5 or POIPointFaction == 2 then
charType = POIPointFaction
elseif POIPointFaction == 1 then
return
else
charType = RandomElement4(4, 11, 5, 2)
end
if charType == 5 then
ped1 = GetStudent(charType, 1, -1)
ped2 = GetStudent(1, 1, -1)
else
sizeType = 1
ped1 = GetStudent(charType, 1, -1)
charType = RandomElement2(1, 6)
if charType == 1 then
ped2 = GetStudent(charType, 1, -1)
else
if sizeType == 1 then
sizeType2 = 1
else
sizeType2 = 1
end
ped2 = GetStudent(charType, 1, -1)
end
end
if ped1 == -1 or ped2 == -1 then
return
end
POISetScriptedPedExitObjective(POIInfo, 0)
LoadPedPOIModel(ped1)
LoadPedPOIModel(ped2)
local Victim = PedCreatePOIPoint(ped2, POIInfo, 1, 0, 0)
local Thug = PedCreatePOIPoint(ped1, POIInfo, 0, 0, 0)
if Victim == -1 or Thug == -1 then
return
end
if POIIsValid(POIInfo) then
local x, y, z = POIGetPosXYZ(POIInfo)
PAnimOpenDoors(x, y, z, 0, "StalDoor")
end
PedClearAllWeapons(Thug)
PedLockTarget(Thug, Victim, 0)
PedLockTarget(Victim, Thug, 0)
PedFaceObjectNow(Victim, Thug, 2)
PedFaceObjectNow(Thug, Victim, 2)
local result = POIActionNode2(Thug, Victim, "/Global/Ambient/Scripted/Swirlie", "Act/Anim/Ambient.act")
end
local elems = F_TableSize(gDestroyables)
local waveCount = F_TableSize(attack_waves, CountWave)
function F_TableSize(tbl)
local size = 0
if tbl then
for _, e in tbl do
if e then
size = size + 1
end
end
end
return size
end
F_TeacherHarassingKids,
function F_TeacherHarassingKids(POIInfo, POIPointType, POIPointFaction, POIPointNum, POIGender, ped1, ped2, ped3, ped4)
if MissionActive() then
return
end
RequestAnimGroup("POI_Telloff")
if AreaGetVisible() == 2 then
if math.random(100) > 50 then
ped1 = 54
else
ped1 = GetStudent(8, -1, -1, false)
end
ped2 = GetStudent(12, POIGender, -1)
elseif POIPointFaction == 12 then
POIPointFaction = RandomElement2(8, 0)
ped1 = GetStudent(POIPointFaction, POIGender, -1, false)
ped2 = GetStudent(12, POIGender)
elseif POIPointFaction == 8 or POIPointFaction == 7 or POIPointFaction == 0 or POIPointFaction == 9 then
ped1 = GetStudent(POIPointFaction, 1, -1, false)
ped2 = GetStudent(12, POIGender)
else
ped2 = GetStudent(POIPointFaction, POIGender)
POIPointFaction = RandomElement2(8, 0)
ped1 = GetStudent(POIPointFaction, POIGender, -1, false)
end
if ped1 == -1 or ped2 == -1 then
return
end
LoadPedPOIModel(ped1)
LoadPedPOIModel(ped2)
local Teacher = PedCreatePOIPoint(ped1, POIInfo, 1, 0, 0)
local Victim = PedCreatePOIPoint(ped2, POIInfo, 0, 0, 0)
if Victim == -1 or Teacher == -1 then
if Victim ~= -1 then
PedDelete(Victim)
end
if Teacher ~= -1 then
PedDelete(Teacher)
end
return
end
PedFaceObjectNow(Teacher, Victim, 2)
PedFaceObjectNow(Victim, Teacher, 2)
PedClearObjectives(Teacher)
PedClearObjectives(Victim)
PedLockTarget(Teacher, Victim, 3)
PedLockTarget(Victim, Teacher, 3)
local result = POIActionNode2(Teacher, Victim, "/Global/Ambient/Scripted/Tell_Off", "Act/Anim/Ambient.act")
end
function F_ToggleArcadeMachines(param)
if param == 1 and not shared.ArcadeMachinesOn then
shared.ArcadeMachinesOn = true
elseif param == 0 and shared.ArcadeMachinesOn then
shared.ArcadeMachinesOn = false
end
SoundEmitterEnable("Dorm1stFLoorArcade", shared.ArcadeMachinesOn)
SoundEmitterEnable("NerdArcade", shared.ArcadeMachinesOn)
SoundEmitterEnable("DropArcade", shared.ArcadeMachinesOn)
SoundEmitterEnable("GreaserArcade", shared.ArcadeMachinesOn)
SoundEmitterEnable("Nerd Arcade", shared.ArcadeMachinesOn)
SoundEmitterEnable("PrepArcade", shared.ArcadeMachinesOn)
SoundEmitterEnable("SouvineerArcade", shared.ArcadeMachinesOn)
end
F_ToggleArcadeScreens()
function F_ToggleArcadeScreens()
local turnOn = shared.ArcadeMachinesOn
local area = AreaGetVisible()
if area == 30 then
GeometryInstance("CS_ArcadeScrn", not turnOn, -721.868, 39.2926, -0.825597, false)
GeometryInstance("CS_ArcadeGlow", not turnOn, -721.693, 39.2926, -1.21955, false)
elseif area == 57 then
GeometryInstance("DRP_ArcadeScr", not turnOn, -659.387, 243.841, 16.7133, false)
GeometryInstance("DRP_ArcadeGlow", not turnOn, -659.387, 243.787, 16.4363, false)
elseif area == 61 then
GeometryInstance("GRS_Arcade_Scr", not turnOn, -694.223, 341.423, 4.56144, false)
GeometryInstance("GSR_ArcadeGlow", not turnOn, -694.345, 341.545, 4.93039, false)
elseif area == 60 then
GeometryInstance("PS_ArcadeA_Scr", not turnOn, -781.537, 354.188, 7.44108, false)
GeometryInstance("PS_ArcadeGlow", not turnOn, -781.536, 354.796, 7.35616, false)
elseif area == 14 then
GeometryInstance("BDrm_ArcadeAni", not turnOn, -509.239, 323.887, 32.9029, false)
GeometryInstance("BDrm_ArcadeGlow", not turnOn, -509.293, 323.887, 32.6258, false)
elseif area == 50 then
GeometryInstance("ISouv_ArcadeGlow", not turnOn, -786.66, 52.7469, 8.43253, false)
GeometryInstance("ISouv_ArcScreen2D", not turnOn, -786.033, 52.8742, 8.71017, false)
GeometryInstance("ISouv_ArcScreen3D", not turnOn, -787.005, 55.4691, 8.33098, false)
GeometryInstance("ISouv_ArcScreenMon", not turnOn, -785.957, 49.6202, 8.48886, false)
GeometryInstance("ISouv_ArcScreenNut", not turnOn, -785.876, 50.7278, 8.44285, false)
GeometryInstance("ISouv_ArcScreenSumo", not turnOn, -786.221, 51.7785, 8.73701, false)
end
end
elseif AreaPOICompareName(info, "F_LockerStuff") or AreaPOICompareName(info, "F_SocialHumiliation") or AreaPOICompareName(info, "F_TrashStuff") or AreaPOICompareName(info, "F_Swirlie") then
elseif AreaPOICompareName(POIInfo, "F_TrashStuff") then
F_TrashStuff,
function F_TrashStuff(POIInfo, POIPointType, POIPointFaction, POIPointNum, POIGender, ped1, ped2, ped3, ped4)
local charType
if POIPointFaction == 11 or POIPointFaction == 4 or POIPointFaction == 5 or POIPointFaction == 2 then
charType = POIPointFaction
elseif POIPointFaction == 1 then
return
else
charType = RandomElement4(4, 11, 5, 2)
end
if charType == 5 then
ped1 = GetStudent(charType, 1, -1)
ped2 = GetStudent(1, 1, -1)
else
ped1 = GetStudent(charType, 1, -1)
charType = RandomElement2(1, 6)
ped2 = GetStudent(charType, 1, -1)
end
if ped1 == -1 or ped2 == -1 then
return
end
POISetScriptedPedExitObjective(POIInfo, 0)
LoadPedPOIModel(ped1)
LoadPedPOIModel(ped2)
local Victim = PedCreatePOIPoint(ped2, POIInfo, 0, 1, 0)
local Thug = PedCreatePOIPoint(ped1, POIInfo, 0, 0, 0)
if Victim == -1 or Thug == -1 then
return
end
PedClearAllWeapons(Thug)
PedLockTarget(Thug, Victim, 0)
PedLockTarget(Victim, Thug, 0)
PedFaceObjectNow(Victim, Thug, 2)
PedFaceObjectNow(Thug, Victim, 2)
local result = POIActionNode2(Thug, Victim, "/Global/Ambient/Scripted/CanDump", "Act/Anim/Ambient.act")
end
elseif AreaPOICompareName(info, "F_Truck") then
elseif AreaPOICompareName(POIInfo, "F_Truck") then
F_Truck,
function F_Truck(POIInfo, POIPointType, POIPointFaction, POIPointNum, POIGender, ped1, ped2, ped3, ped4)
if ChapterGet() < 4 then
return
end
if AreaIsLoading() then
return
end
local driverc = RandomElement6(123, 223, 222, 195, 236, 237)
local carc = RandomElement3(291, 297, 288)
if driverc == -1 or carc == -1 then
return
end
LoadPedPOIModel(driverc)
while not VehicleRequestModel(carc, true) and POIIsValid(POIInfo) do
Wait(0)
end
local x, y, z = 0
local CanCreate = false
if POIIsValid(POIInfo) then
for pos = 1, 20 do
x, y, z = VehicleFindRandomSpawnPosition(carc)
if x ~= 9999 then
pos = 21
CanCreate = true
else
pos = pos + 1
end
end
if CanCreate == true then
local car = VehicleCreateXYZ(carc, x, y, z)
local driver = PedCreateXYZ(driverc, x + 4, y, z)
if car ~= -1 and driver ~= -1 then
VehicleModelNotNeededAmbient(car)
PedSetFlag(driver, 120, true)
VehicleSetOwner(car, driver)
PedWarpIntoCar(driver, car)
VehicleSetDrivingMode(car, 0)
PedMakeAmbient(driver)
VehicleMakeAmbient(car)
end
end
end
ModelNotNeededAmbient(driverc)
ModelNotNeededAmbient(carc)
end
F_UnlockModelChanges()
function F_UnlockModelChanges()
if IsMissionAvailable("1_05") then
PedSetUniqueModelStatus(4, -1)
PedSetUniqueModelStatus(208, -1)
end
if IsMissionAvailable("1_07") then
PedSetUniqueModelStatus(4, -1)
PedSetUniqueModelStatus(208, -1)
PedSetUniqueModelStatus(8, -1)
PedSetUniqueModelStatus(209, -1)
end
if IsMissionAvailable("1_08") then
PedSetUniqueModelStatus(3, -1)
PedSetUniqueModelStatus(95, -1)
PedSetUniqueModelStatus(14, -1)
PedSetUniqueModelStatus(93, -1)
end
if IsMissionAvailable("2_S04") then
PedSetUniqueModelStatus(6, -1)
end
if IsMissionAvailable("1_G1") then
PedSetUniqueModelStatus(3, -1)
PedSetUniqueModelStatus(95, -1)
end
if IsMissionAvailable("2_06") then
PedSetUniqueModelStatus(38, -1)
PedSetUniqueModelStatus(167, -1)
PedSetUniqueModelStatus(94, -1)
PedSetUniqueModelStatus(182, -1)
PedSetUniqueModelStatus(30, -1)
PedSetUniqueModelStatus(214, -1)
end
if IsMissionAvailable("2_03") then
PedSetUniqueModelStatus(31, -1)
PedSetUniqueModelStatus(213, -1)
PedSetUniqueModelStatus(32, -1)
PedSetUniqueModelStatus(40, -1)
PedSetUniqueModelStatus(211, -1)
end
if IsMissionAvailable("2_G2") then
PedSetUniqueModelStatus(38, -1)
PedSetUniqueModelStatus(167, -1)
PedSetUniqueModelStatus(94, -1)
PedSetUniqueModelStatus(182, -1)
end
if IsMissionAvailable("2_07") then
PedSetUniqueModelStatus(28, -1)
end
if IsMissionAvailable("2_05") then
PedSetUniqueModelStatus(75, -1)
PedSetUniqueModelStatus(31, -1)
end
if IsMissionAvailable("2_08") then
PedSetUniqueModelStatus(64, -1)
end
if IsMissionAvailable("2_09") then
PedSetUniqueModelStatus(135, -1)
end
if IsMissionAvailable("2_S06") then
PedSetUniqueModelStatus(55, -1)
end
if IsMissionAvailable("3_S10") then
PedSetUniqueModelStatus(32, -1)
PedSetUniqueModelStatus(30, -1)
PedSetUniqueModelStatus(214, -1)
end
if IsMissionAvailable("3_04") then
PedSetUniqueModelStatus(4, -1)
PedSetUniqueModelStatus(208, -1)
end
if IsMissionAvailable("3_G3") then
PedSetUniqueModelStatus(25, -1)
PedSetUniqueModelStatus(96, -1)
end
if IsMissionAvailable("3_05") then
PedSetUniqueModelStatus(25, -1)
PedSetUniqueModelStatus(96, -1)
end
if IsMissionAvailable("3_06") then
PedSetUniqueModelStatus(25, -1)
PedSetUniqueModelStatus(96, -1)
end
if IsMissionAvailable("2_02") then
PedSetUniqueModelStatus(70, -1)
PedSetUniqueModelStatus(235, -1)
end
if IsMissionAvailable("4_02") then
PedSetUniqueModelStatus(4, -1)
PedSetUniqueModelStatus(208, -1)
end
if IsMissionAvailable("4_04") then
PedSetUniqueModelStatus(4, -1)
PedSetUniqueModelStatus(208, -1)
PedSetUniqueModelStatus(11, -1)
PedSetUniqueModelStatus(11, -1)
end
if IsMissionAvailable("4_G4") then
PedSetUniqueModelStatus(14, -1)
PedSetUniqueModelStatus(93, -1)
end
if IsMissionAvailable("5_04") then
PedSetUniqueModelStatus(55, -1)
end
if IsMissionAvailable("5_01") then
PedSetUniqueModelStatus(4, -1)
PedSetUniqueModelStatus(208, -1)
PedSetUniqueModelStatus(3, -1)
PedSetUniqueModelStatus(95, -1)
end
if IsMissionAvailable("5_03") then
PedSetUniqueModelStatus(25, -1)
PedSetUniqueModelStatus(96, -1)
PedSetUniqueModelStatus(29, -1)
PedSetUniqueModelStatus(201, -1)
end
if IsMissionAvailable("5_02") then
PedSetUniqueModelStatus(33, -1)
PedSetUniqueModelStatus(34, -1)
PedSetUniqueModelStatus(212, -1)
end
if IsMissionAvailable("5_06") then
PedSetUniqueModelStatus(75, -1)
end
if IsMissionAvailable("5_07a") then
PedSetUniqueModelStatus(75, -1)
end
if IsMissionAvailable("6_02") then
PedSetUniqueModelStatus(75, -1)
end
if IsMissionAvailable("1_S01") then
PedSetUniqueModelStatus(61, -1)
PedSetUniqueModelStatus(57, -1)
end
if IsMissionAvailable("4_S12") then
PedSetUniqueModelStatus(63, -1)
end
if IsMissionAvailable("3_S11") then
PedSetUniqueModelStatus(63, -1)
PedSetUniqueModelStatus(57, -1)
end
end
F_UnlockYearbookReward()
function F_UnlockYearbookReward()
if YearbookIsFull() and not MiniObjectiveGetIsComplete(14) then
MinigameSetErrandCompletion(-1, "AS_OBJCOMPLETE", true, 0, "AS_YEARBK_REWARD")
MinigameSetUberCompletion()
ClothingGivePlayerOutfit("Ninja_BLK")
MiniObjectiveSetIsComplete(14)
PlayerAddMoney(30000, false)
end
end
function F_VendettaGreasers()
local playable = 1
if g_3RM01_GreaserLevel > 3 then
playable = 0
end
return playable
end
function F_VendettaPreppies()
local playable = 1
if g_3RM01_PreppyLevel > 3 then
playable = 0
end
return playable
end
function F_VendorCheck()
local weaponroll = math.random(1, 100)
local roll = math.random(1, 100)
local item, itemcount
if PlayerHasItem(307) and 50 <= weaponroll then
item = 308
itemcount = 5
TextPrint("SOC_VND2", 3, 2)
elseif PlayerHasItem(305) and 50 <= weaponroll then
item = 316
itemcount = 5
TextPrint("SOC_VND5", 3, 2)
elseif roll < 30 then
item = 301
itemcount = 5
TextPrint("SOC_VND1", 3, 2)
elseif roll < 60 then
item = 309
itemcount = 5
TextPrint("SOC_VND4", 3, 2)
elseif roll <= 100 then
item = 312
itemcount = 5
TextPrint("SOC_VND3", 3, 2)
end
GiveAmmoToPlayer(item, itemcount)
end
elseif AreaPOICompareName(POIInfo, "F_WallHangout") then
function F_WallHangout(POIInfo, POIPointType, POIPointFaction, POIPointNum, POIGender, ped1, ped2, ped3, ped4)
if POIGender == 0 and AreaGetVisible() == 2 then
POIGender = 1
end
ped1 = GetStudent(POIPointFaction, POIGender)
if ped1 == -1 then
return
end
LoadPedPOIModel(ped1)
local char = PedCreatePOIPoint(ped1, POIInfo, 0, 0, 0)
if char == -1 then
return
end
PedClearAllWeapons(char)
local result = ExecuteActionNode(char, "/Global/Ambient/Scripted/Wall_Lean", "Act/Anim/Ambient.act")
if result == true then
PedWander(char, 0)
end
end
elseif AreaPOICompareName(POIInfo, "F_WallSmoking") then
WALL = { F_WallSmoking },
function F_WallSmoking(POIInfo, POIPointType, POIPointFaction, POIPointNum, POIGender, ped1, ped2, ped3, ped4)
if POIPointFaction ~= 8 and POIPointFaction ~= 0 and POIPointFaction ~= 6 and POIPointFaction ~= 1 then
if POIGender == 0 then
POIGender = 1
end
if POIPointFaction == 12 then
POIPointFaction = RandomElement2(4, 11)
ped1 = GetStudent(POIPointFaction, POIGender)
elseif POIPointFaction == 9 then
ped1 = GetStudent(POIPointFaction, POIGender)
else
ped1 = GetStudent(POIPointFaction, POIGender)
end
if ped1 == -1 then
return
end
if F_IsSmallKid(ped1) then
return
end
LoadPedPOIModel(ped1)
local char = PedCreatePOIPoint(ped1, POIInfo, 0, 0, 0)
if char == -1 then
return
end
PedClearAllWeapons(char)
local result = ExecuteActionNode(char, "/Global/Ambient/Scripted/Wall_Smoke", "Act/Anim/Ambient.act")
if result == true then
PedWander(char, 0)
end
end
end
function F_WindowsOpen()
if shared.gWindowsOpen then
return 1
else
return 0
end
end
elseif AreaPOICompareName(info, "F_WorkerHangout") or AreaPOICompareName(info, "F_WorkerSmoking") then
elseif AreaPOICompareName(POIInfo, "F_WorkerHangout") then
F_WorkerHangout,
function F_WorkerHangout(POIInfo, POIPointType, POIPointFaction, POIPointNum, POIGender, ped1, ped2, ped3, ped4)
local ped1 = RandomElement6(123, 223, 222, 195, 236, 237)
local ped2 = RandomElement6(123, 223, 222, 195, 236, 237)
if ped1 == -1 or ped2 == -1 then
return
end
LoadPedPOIModel(ped1)
LoadPedPOIModel(ped2)
local worker1 = PedCreatePOIPoint(ped1, POIInfo, 0, 1, 0)
local worker2 = PedCreatePOIPoint(ped2, POIInfo, 0, -1, 0)
if worker1 == -1 or worker2 == -1 then
return
end
PedSetFlag(worker1, 120, true)
PedSetFlag(worker2, 120, true)
PedFaceObject(worker1, worker2, 2, 0)
PedFaceObject(worker2, worker1, 2, 0)
PedSetWantsToSocializeWithPed(worker1, worker2)
PedSetWantsToSocializeWithPed(worker2, worker1)
PedSetEmotionTowardsPed(worker2, worker1, 8)
PedSetEmotionTowardsPed(worker1, worker2, 8)
end
elseif AreaPOICompareName(info, "F_WorkerHangout") or AreaPOICompareName(info, "F_WorkerSmoking") then
elseif AreaPOICompareName(POIInfo, "F_WorkerSmoking") then
F_WorkerSmoking,
function F_WorkerSmoking(POIInfo, POIPointType, POIPointFaction, POIPointNum, POIGender, ped1, ped2, ped3, ped4)
local ped1 = RandomElement6(123, 223, 222, 195, 236, 237)
if ped1 == -1 then
return
end
LoadPedPOIModel(ped1)
local char = PedCreatePOIPoint(ped1, POIInfo, 0, 0, 0)
if char == -1 then
return
end
local result = ExecuteActionNode(char, "/Global/Ambient/Scripted/Wall_Smoke", "Act/Anim/Ambient.act")
if result == true then
PedWander(char, 0)
end
end
elseif AreaPOICompareName(info, "F_Workout") or AreaPOICompareName(info, "F_Cheerleading") then
elseif AreaPOICompareName(POIInfo, "F_Workout") then
F_Workout,
function F_Workout(POIInfo, POIPointType, POIPointFaction, POIPointNum, POIGender, ped1, ped2, ped3, ped4)
local hour, minute = ClockGet()
local ped1 = GetGymModel(2)
local ped2 = GetGymModel(2)
if ped1 == -1 or ped2 == -1 then
return
end
LoadPedPOIModel(ped1)
LoadPedPOIModel(ped2)
local jock1, jock2
if PedGetPedCountWithModel(ped1) == 0 then
jock1 = PedCreatePOIPoint(ped1, POIInfo, 0, 1, 0)
end
if PedGetPedCountWithModel(ped2) == 0 then
jock2 = PedCreatePOIPoint(ped2, POIInfo, 0, -1, 0)
end
if PedIsValid(jock1) then
PedClearAllWeapons(jock1)
ExecuteActionNode(jock1, "/Global/Ambient/Scripted/Workout", "Act/Anim/Ambient.act")
end
if PedIsValid(jock2) then
PedClearAllWeapons(jock2)
ExecuteActionNode(jock2, "/Global/Ambient/Scripted/Workout", "Act/Anim/Ambient.act")
end
end
function F_Wrestling_FirstAttempt()
return GetMissionAttemptCount("C_Wrestling_1") == 0 and 1 or 0
end
-- never used
push esi
mov esi, dword ptr [esp+0x8]
push edi
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov edi, eax
add esp, 0x8
test edi, edi
jnz 0x12
push eax
push esi
call LuaParam::PushInt
lea eax, ptr [edi+0x1]
add esp, 0x8
pop edi
pop esi
ret
push 0x1
push esi
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, edi
call 0x477060
movzx eax, ax
movzx eax, ax
push eax
push esi
call LuaParam::PushInt
add esp, 0x8
pop edi
mov eax, 0x1
pop esi
ret
-- never used
movzx eax, byte ptr [0xCFB35C]
mov ecx, dword ptr [esp+0x4]
push eax
push ecx
call LuaParam::PushBool
add esp, 0x8
mov byte ptr [0xCFB35C], 0x0
mov eax, 0x1
ret
GameSetPedStat(dog, 14, 100)
GameSetPedStat(dog, 6, 0)
GameSetPedStat(gBully01, 12, 40)
GameSetPedStat(gBully01, 12, 50)
GameSetPedStat(gBully01, 38, 0)
GameSetPedStat(gBully01, 39, 0)
GameSetPedStat(gBully01, 8, 100)
GameSetPedStat(gFatty, 6, 100)
GameSetPedStat(gGary, 6, 0)
GameSetPedStat(gHobo, 12, 100)
GameSetPedStat(gHobo, 8, 0)
GameSetPedStat(gPete, 6, 90)
GameSetPedStat(gTablePeds[1].id, 0, 362)
GameSetPedStat(gTablePeds[1].id, 1, 100)
GameSetPedStat(gTablePeds[2].id, 0, 362)
GameSetPedStat(gTablePeds[2].id, 1, 100)
GameSetPedStat(gTablePeds[3].id, 0, 362)
GameSetPedStat(gTablePeds[3].id, 1, 100)
GameSetPedStat(idBucky, 15, 0)
GameSetPedStat(lackey1, 0, 362)
GameSetPedStat(lackey1, 1, 100)
GameSetPedStat(lackey2, 0, 362)
GameSetPedStat(lackey2, 1, 100)
GameSetPedStat(shared.gBif, 38, 30)
GameSetPedStat(shared.gBif, 39, 30)
GameSetPedStat(Thug, 11, 80)
push ebx
push esi
push edi
mov edi, dword ptr [esp+0x10]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x26
push 0x1
push edi
call LuaParam::GetInt
push 0x2
push edi
mov ebx, eax
call LuaParam::GetInt
movzx eax, ax
movzx eax, ax
add esp, 0x10
push eax
push ebx
mov ecx, esi
call 0x4770F0
pop edi
pop esi
xor eax, eax
pop ebx
ret
GarageAdd(TRIGGER._Garage_BusinessArea, POINTLIST._Garage_BusinessArea)
GarageAdd(TRIGGER._Garage_PoorArea, POINTLIST._Garage_PoorArea)
GarageAdd(TRIGGER._Garage_RichArea, POINTLIST._Garage_RichArea)
GarageAdd(TRIGGER._Garage_SchoolGrounds, POINTLIST._Garage_SchoolGrounds)
sub esp, 0x40
push ebx
push ebp
mov ebp, dword ptr [esp+0x4C]
push esi
push edi
push 0x0
push ebp
call LuaParam::GetInt
push 0x1
push ebp
mov edi, eax
call LuaParam::GetInt
add esp, 0x10
test edi, edi
jnl 0x6
xor esi, esi
jmp 0x1D
mov ecx, dword ptr [0x20C7C48]
mov edx, dword ptr [ecx+0x4]
test byte ptr [edi+edx*1], 0x80
jz 0x6
xor esi, esi
jmp 0xA
mov esi, dword ptr [ecx+0xC]
imul esi, edi
add esi, dword ptr [ecx]
mov edi, dword ptr [esi+0x20]
push eax
mov ecx, 0xBC5E7C
call 0x6D6450
fld st, dword ptr [edi+0x24]
fadd dword ptr [esi+0x8]
mov ebx, eax
mov ecx, ebx
fstp dword ptr [esp+0x10], st
fld st, dword ptr [esi+0xC]
fsub st, dword ptr [edi+0xC]
fstp dword ptr [esp+0x14], st
fld st, dword ptr [edi+0x20]
fadd dword ptr [esi+0x4]
fstp dword ptr [esp+0x2C], st
fld st, dword ptr [esp+0x10]
fstp dword ptr [esp+0x30], st
fld st, dword ptr [esp+0x14]
fstp dword ptr [esp+0x34], st
fld st, dword ptr [edi+0x2C]
fadd dword ptr [esi+0x8]
fstp dword ptr [esp+0x14], st
fld st, dword ptr [edi+0x8]
fadd dword ptr [esi+0xC]
fstp dword ptr [esp+0x10], st
fld st, dword ptr [edi+0x28]
xor edi, edi
fadd dword ptr [esi+0x4]
fstp dword ptr [esp+0x20], st
fld st, dword ptr [esp+0x14]
fstp dword ptr [esp+0x24], st
fld st, dword ptr [esp+0x10]
fstp dword ptr [esp+0x28], st
fldz
fst dword ptr [esp+0x38], st
fst dword ptr [esp+0x3C], st
fst dword ptr [esp+0x40], st
fst dword ptr [esp+0x44], st
fst dword ptr [esp+0x48], st
fstp dword ptr [esp+0x4C], st
call 0x6D59B0
test eax, eax
jz 0x54
lea esi, ptr [esp+0x38]
lea ebx, ptr [ebx]
mov ecx, dword ptr [eax]
mov dword ptr [esi], ecx
mov edx, dword ptr [eax+0x4]
mov dword ptr [esi+0x4], edx
mov ecx, dword ptr [eax+0x8]
mov dword ptr [esi+0x8], ecx
fld st, dword ptr [eax+0x1C]
fmul st, qword ptr [0x900160]
push ecx
fdiv st, qword ptr [0x900158]
fstp dword ptr [esp+0x18], st
fld st, dword ptr [esp+0x18]
fstp dword ptr [esp], st
call 0x4333A0
fstp dword ptr [esp+edi*4+0x1C], st
add esp, 0x4
mov ecx, ebx
add edi, 0x1
add esi, 0xC
call 0x6D59F0
test eax, eax
jnz 0xFFFFFFBA
push edi
lea edx, ptr [esp+0x1C]
push edx
lea eax, ptr [esp+0x40]
push eax
lea ecx, ptr [esp+0x2C]
push ecx
lea edx, ptr [esp+0x3C]
push edx
call 0x4C8BA0
push eax
push ebp
call LuaParam::PushInt
add esp, 0x1C
pop edi
pop esi
pop ebp
mov eax, 0x1
pop ebx
add esp, 0x40
ret
GarageClearAll()
call 0x4C8B90
xor eax, eax
ret
if not gBlipsAdded and GarageHasStoredVehicle() then
call 0x4C89F0
mov ecx, dword ptr [esp+0x4]
test al, al
setz al
push eax
push ecx
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
ret
GarageSetIsDeactivated(false)
GarageSetIsDeactivated(true)
push ecx
mov eax, dword ptr [esp+0x8]
push 0x0
push eax
call LuaParam::GetBool
mov byte ptr [esp+0x8], al
mov ecx, dword ptr [esp+0x8]
push ecx
call 0x4C8940
xor eax, eax
add esp, 0x10
ret
GarageSetStoredVehicle(0, 272)
GarageSetStoredVehicle(0, 273)
GarageSetStoredVehicle(0, 274)
GarageSetStoredVehicle(0, 277)
GarageSetStoredVehicle(0, 278)
GarageSetStoredVehicle(1, 276)
GarageSetStoredVehicle(1, modelID)
push esi
mov esi, dword ptr [esp+0x8]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetInt
push eax
push edi
call 0x4C8960
add esp, 0x18
pop edi
xor eax, eax
pop esi
ret
-- never used
sub esp, 0x14
push ebx
push esi
mov esi, dword ptr [esp+0x20]
push edi
push 0x0
push esi
call LuaParam::IsInt
add esp, 0x8
test al, al
push 0x0
push esi
jz 0xC
call LuaParam::GetInt
add esp, 0x8
jmp 0x10
call LuaParam::GetString
push eax
call 0x51C330
add esp, 0xC
push 0x1
push esi
mov edi, eax
call LuaParam::GetInt
push 0x2
push esi
mov ebx, eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x1C], st
push 0x3
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x28], st
fld st, dword ptr [esp+0x24]
push 0x4
fstp dword ptr [esp+0x30], st
push esi
fld st, dword ptr [esp+0x30]
fstp dword ptr [esp+0x38], st
call LuaParam::GetFloat
add esp, 0x20
fstp dword ptr [esp+0x1C], st
fld st, dword ptr [0x900D38]
push 0x1
push ecx
lea eax, ptr [esp+0x1C]
fstp dword ptr [esp], st
push eax
push edi
call 0x4607A0
add esp, 0x10
test eax, eax
jz 0xA
push ebx
mov ecx, eax
call 0x466160
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x14
ret
GeometryInstance("0iobserv01", true, -698.234, 78.8167, 27.3749, false)
GeometryInstance("0iobserv06", true, -699.879, 75.488, 27.2307, false)
GeometryInstance("0iobserv07", true, -694.439, 72.8225, 26.7451, false)
GeometryInstance("0iobserv11", true, -698.386, 72.323, 25.6534, false)
GeometryInstance("0iobserv13", true, -692.915, 78.3231, 28.2027, false)
GeometryInstance("1_02Gate", true, Gate102Pos[1], Gate102Pos[2], Gate102Pos[3], false)
GeometryInstance("1_02Gate", true, Gate102Pos[1], Gate102Pos[2], Gate102Pos[3], true)
GeometryInstance("1S01_bbagbottle", true, -627.619, -293.51, 6.55437, false)
GeometryInstance("BarrGate", false, 150.232, -483.16, 2.05389, 125, true)
GeometryInstance("BDrm_ArcadeAni", not turnOn, -509.239, 323.887, 32.9029, false)
GeometryInstance("BDrm_ArcadeGlow", not turnOn, -509.293, 323.887, 32.6258, false)
GeometryInstance("BX_PosterLO", false, -696.933, 373.405, 296.084, false)
GeometryInstance("BX_PosterLO", true, -696.933, 373.405, 296.084, false)
GeometryInstance("CH_ElevShaft", false, -761.366, 92.6547, 13.0598, true)
GeometryInstance("chem_desk06", false, -597.038, 323.127, 34.9106, false)
GeometryInstance("chem_stirX", hide, -596.426, 323.612, 35.175)
GeometryInstance("ChessTble", p_invisible, -759.619, 189.321, 96.0133, not p_invisible)
GeometryInstance("ChessTble", p_invisible, -760.159, 191.748, 96.0133, not p_invisible)
GeometryInstance("ChessTble", p_invisible, -762.398, 189.321, 96.0133, not p_invisible)
GeometryInstance("CS_ArcadeGlow", not turnOn, -721.693, 39.2926, -1.21955, false)
GeometryInstance("CS_ArcadeScrn", not turnOn, -721.868, 39.2926, -0.825597, false)
GeometryInstance("DCL_LibBloom5", p_invisible, -769.642, 202.155, 101.006, not p_invisible)
GeometryInstance("DCL_LibBloom86", p_invisible, -772.677, 203.128, 93.6025, not p_invisible)
GeometryInstance("DCL_LibShdw01", p_invisible, -773.462, 203.12, 95.0835, not p_invisible)
GeometryInstance("DCL_LibShdw02", p_invisible, -772.036, 203.127, 94.1479, not p_invisible)
GeometryInstance("DCL_LibShdw03", p_invisible, -768.804, 203.079, 94.5468, not p_invisible)
GeometryInstance("DodgeballGate", true, -620.11, -55.437, 59.185, true)
GeometryInstance("DPI_pDoorBrk", false, -516.797, 133.414, 55.6463, true)
GeometryInstance("DPI_pDoorBrk", false, -524.291, 118.2, 50.68, true)
GeometryInstance("DPI_pDoorBrk", true, -516.797, 133.414, 55.6463, false)
GeometryInstance("DPI_pDoorBrk", true, -524.291, 118.2, 50.68, false)
GeometryInstance("DRP_ArcadeGlow", not turnOn, -659.387, 243.787, 16.4363, false)
GeometryInstance("DRP_ArcadeScr", not turnOn, -659.387, 243.841, 16.7133, false)
GeometryInstance("drumstick_2l", true, -535.476, 317.876, -3.21369)
GeometryInstance("drumstick_2r", true, -535.594, 317.876, -3.21369)
GeometryInstance("drumstick_l", false, -533.284, 317.876, -3.214)
GeometryInstance("drumstick_l", true, -533.284, 317.876, -3.214)
GeometryInstance("drumstick_r", false, -533.402, 317.876, -3.214)
GeometryInstance("drumstick_r", true, -533.402, 317.876, -3.214)
GeometryInstance("fun_coffinExit", false, -751.251, -502.285, 26.7172, true)
GeometryInstance("fun_coffinExit", true, -751.251, -502.285, 26.7172, false)
GeometryInstance("Grab_BeakerX", hide, -596.55, 323.487, 35.407)
GeometryInstance("Grab_CanisterX", hide, -595.951, 323.461, 35.238)
GeometryInstance("Grab_EyedropX", hide, -595.839, 323.426, 35.3079)
GeometryInstance("Grab_TesttubeRightX", hide, -595.786, 323.605, 35.311)
GeometryInstance("GRS_Arcade_Scr", not turnOn, -694.223, 341.423, 4.56144, false)
GeometryInstance("GSR_ArcadeGlow", not turnOn, -694.345, 341.545, 4.93039, false)
GeometryInstance("GymFlrMat12", false, -619.095, -45.1323, 60.6377, true)
GeometryInstance("GymFlrMat12", true, -619.095, -45.1323, 60.6377, false)
GeometryInstance("GymHoops", false, -624.326, -48.2877, 68.9731, true)
GeometryInstance("GymHoops", true, -619.151, -59.6986, 66.2952, false)
GeometryInstance("GymHoops02", false, -619.151, -47.4397, 52.884, true)
GeometryInstance("GymHoops02", true, -619.151, -47.4397, 52.884, false)
GeometryInstance("GymHoops03", false, -619.152, -71.9741, 52.9112, true)
GeometryInstance("GymHoops03", true, -619.152, -71.9741, 52.9112, false)
GeometryInstance("GymHoopsBRT", false, -619.152, -71.9741, 66.2952, true)
GeometryInstance("GymHoopsBRT", true, -619.152, -71.9741, 66.2952, false)
GeometryInstance("GymRfSpprt2", false, -621.207, -59.6986, 69.6478, true)
GeometryInstance("GymRfSpprt2", true, -621.207, -59.6986, 69.6478, false)
GeometryInstance("GymWall", false, -619.299, -44.8307, 64.8379, true)
GeometryInstance("GymWall", true, -619.299, -44.8307, 64.8379, false)
GeometryInstance("HID_2ndFlor", p_invisible, -768.802, 203.208, 95.9957, not p_invisible)
GeometryInstance("HID_LbArches02", p_invisible, -772.293, 198.922, 98.1125, not p_invisible)
GeometryInstance("HID_LCountrBm", p_invisible, -772.679, 205.913, 94.1227, not p_invisible)
GeometryInstance("HID_LibBloom5", p_invisible, -768.69, 203.393, 96.606, not p_invisible)
GeometryInstance("HID_LibBloomo06", p_invisible, -770.202, 205.176, 95.3861, not p_invisible)
GeometryInstance("HID_LIBceling", p_invisible, -768.8, 202.576, 101.011, not p_invisible)
GeometryInstance("HID_LibTPFlr", p_invisible, -768.802, 202.576, 95.6264, not p_invisible)
GeometryInstance("HID_Penn27", p_invisible, -772.625, 209.637, 100.225, not p_invisible)
GeometryInstance("inBarricade01", true, 79.5555, -465.53, 4.48682, false)
GeometryInstance("inBarricade02", true, 51.0747, -416.872, 1.88779, false)
GeometryInstance("ISouv_ArcadeGlow", not turnOn, -786.66, 52.7469, 8.43253, false)
GeometryInstance("ISouv_ArcScreen2D", not turnOn, -786.033, 52.8742, 8.71017, false)
GeometryInstance("ISouv_ArcScreen3D", not turnOn, -787.005, 55.4691, 8.33098, false)
GeometryInstance("ISouv_ArcScreenMon", not turnOn, -785.957, 49.6202, 8.48886, false)
GeometryInstance("ISouv_ArcScreenNut", not turnOn, -785.876, 50.7278, 8.44285, false)
GeometryInstance("ISouv_ArcScreenSumo", not turnOn, -786.221, 51.7785, 8.73701, false)
GeometryInstance("kidchair", true, -560.141, 322.159, -1.48522, false)
GeometryInstance("LIB_BKCase04", p_invisible, -759.214, 199.54, 97.1002, not p_invisible)
GeometryInstance("LIB_BKCase28", p_invisible, -772.605, 217.647, 97.1002, not p_invisible)
GeometryInstance("LIB_BKCase31", p_invisible, -772.56, 216.259, 97.1002, not p_invisible)
GeometryInstance("Lib_BkShelf", p_invisible, -763.348, 217.887, 96.7839, not p_invisible)
GeometryInstance("Lib_BooksA", p_invisible, -770.633, 217.922, 98.78, not p_invisible)
GeometryInstance("Lib_BooksA", p_invisible, -778.12, 217.608, 98.78, not p_invisible)
GeometryInstance("Lib_BooksC", p_invisible, -759.557, 204.869, 98.7848, not p_invisible)
GeometryInstance("Lib_BooksC", p_invisible, -776.297, 215.945, 98.7813, not p_invisible)
GeometryInstance("Lib_BooksD", p_invisible, -757.789, 203.397, 98.7988, not p_invisible)
GeometryInstance("Lib_BooksD", p_invisible, -759.778, 197.721, 98.791, not p_invisible)
GeometryInstance("Lib_BooksD", p_invisible, -769.02, 215.717, 98.791, not p_invisible)
GeometryInstance("Lib_BooksD", p_invisible, -774.411, 217.557, 98.7988, not p_invisible)
GeometryInstance("Lib_PortrtA", p_invisible, -768.804, 213.073, 95.7541, not p_invisible)
GeometryInstance("Lib_PortrtB", p_invisible, -768.746, 192.093, 95.5403, not p_invisible)
GeometryInstance("Lib_vent", p_invisible, -769.771, 209.114, 97.0028, not p_invisible)
GeometryInstance("LibChair", p_invisible, -759.634, 188.665, 96.2315, not p_invisible)
GeometryInstance("LibChair", p_invisible, -759.634, 189.89, 96.2315, not p_invisible)
GeometryInstance("LibChair", p_invisible, -759.666, 191.784, 96.2315, not p_invisible)
GeometryInstance("LibChair", p_invisible, -760.877, 191.784, 96.2315, not p_invisible)
GeometryInstance("LibChair", p_invisible, -762.409, 188.665, 96.2315, not p_invisible)
GeometryInstance("LibChair", p_invisible, -762.409, 189.89, 96.2315, not p_invisible)
GeometryInstance("LibCoffTble", p_invisible, -760.981, 214.797, 95.8932, not p_invisible)
GeometryInstance("LibDecoLamp", p_invisible, -758.05, 217.24, 96.6706, not p_invisible)
GeometryInstance("LibFern", p_invisible, -760.917, 214.763, 96.3345, not p_invisible)
GeometryInstance("LibLrgChandlr", p_invisible, -769.257, 192.877, 97.8599, not p_invisible)
GeometryInstance("LibLrgChandlr", p_invisible, -769.286, 202.675, 97.8599, not p_invisible)
GeometryInstance("LibLrgChandlr", p_invisible, -772.383, 183.713, 98.0406, not p_invisible)
GeometryInstance("LibLrgChandlr", p_invisible, -772.383, 222.502, 98.0303, not p_invisible)
GeometryInstance("LibLrgChandlr", p_invisible, -775.55, 192.878, 97.8599, not p_invisible)
GeometryInstance("LibLrgChandlr", p_invisible, -775.55, 202.675, 97.8599, not p_invisible)
GeometryInstance("LibLrgChandlr", p_invisible, -784.708, 185.82, 98.0406, not p_invisible)
GeometryInstance("LibLrgChandlr", p_invisible, -784.708, 203.135, 98.0406, not p_invisible)
GeometryInstance("LibLrgChandlr", p_invisible, -784.708, 219.378, 98.0406, not p_invisible)
GeometryInstance("LibMiniChndlr", p_invisible, -760.916, 214.832, 99.7553, not p_invisible)
GeometryInstance("LibMiniChndlr", p_invisible, -762.324, 194.288, 94.2949, not p_invisible)
GeometryInstance("LibMiniChndlr", p_invisible, -762.324, 200.939, 94.2908, not p_invisible)
GeometryInstance("LibMiniChndlr", p_invisible, -762.324, 207.864, 94.2906, not p_invisible)
GeometryInstance("LibMiniChndlr", p_invisible, -762.675, 194.288, 99.7264, not p_invisible)
GeometryInstance("LibMiniChndlr", p_invisible, -762.675, 200.939, 99.7464, not p_invisible)
GeometryInstance("LibMiniChndlr", p_invisible, -762.675, 207.848, 99.7671, not p_invisible)
GeometryInstance("LibMiniChndlr", p_invisible, -763.917, 216.069, 94.3053, not p_invisible)
GeometryInstance("LibMiniChndlr", p_invisible, -768.58, 212.589, 99.7553, not p_invisible)
GeometryInstance("LibMiniChndlr", p_invisible, -771.469, 216.069, 94.3053, not p_invisible)
GeometryInstance("LibMiniChndlr", p_invisible, -775.174, 212.589, 99.7553, not p_invisible)
GeometryInstance("LibMiniChndlr", p_invisible, -778.063, 216.069, 94.3053, not p_invisible)
GeometryInstance("LibSofa", p_invisible, -757.921, 214.704, 96.2477, not p_invisible)
GeometryInstance("LibSofa", p_invisible, -760.85, 217.205, 96.244, not p_invisible)
GeometryInstance("LibTallPlant", p_invisible, -763.929, 187.721, 96.7284, not p_invisible)
GeometryInstance("maracas_2l", true, -536.619, 317.876, -3.21369)
GeometryInstance("maracas_2r", true, -536.501, 317.876, -3.21369)
GeometryInstance("maracas_l", false, -534.426, 317.876, -3.21369)
GeometryInstance("maracas_l", true, -534.426, 317.876, -3.21369)
GeometryInstance("maracas_r", false, -534.308, 317.876, -3.21369)
GeometryInstance("maracas_r", true, -534.308, 317.876, -3.21369)
GeometryInstance("NOGO_tschoolSOP", false, -67.8271, -116.257, 9.42621, true)
GeometryInstance("NOGO_tschoolSOP", true, -67.8271, -116.257, 9.42621, false)
GeometryInstance("NorthPla_BROKEN", false, -696.467, 83.7462, 24.3831, true)
GeometryInstance("NorthPla_BROKEN", true, -696.467, 83.7462, 24.3831, false)
GeometryInstance("PGymLights", false, -614.133, -48.2877, 68.9731, true)
GeometryInstance("PGymLights", false, -619.172, -48.2877, 68.9731, true)
GeometryInstance("PGymLights", false, -619.172, -63.31, 68.9731, true)
GeometryInstance("PGymLights", false, -624.326, -48.2877, 68.9731, true)
GeometryInstance("PGymLights", false, -624.326, -71.013, 68.9731, true)
GeometryInstance("PGymLights", true, -614.133, -48.2877, 68.9731, false)
GeometryInstance("PGymLights", true, -619.172, -48.2877, 68.9731, false)
GeometryInstance("PGymLights", true, -619.172, -63.31, 68.9731, false)
GeometryInstance("PGymLights", true, -624.326, -48.2877, 68.9731, false)
GeometryInstance("PGymLights", true, -624.326, -71.013, 68.9731, false)
GeometryInstance("PH_OpenDoor01", false, -524.291, 118.2, 50.68, true)
GeometryInstance("PH_OpenDoor01", true, -524.291, 118.2, 50.68, false)
GeometryInstance("PH_OpenDoor02", false, -516.797, 133.414, 55.6463, true)
GeometryInstance("PH_OpenDoor02", true, -516.797, 133.414, 55.6463, false)
GeometryInstance("PS_ArcadeA_Scr", not turnOn, -781.537, 354.188, 7.44108, false)
GeometryInstance("PS_ArcadeGlow", not turnOn, -781.536, 354.796, 7.35616, false)
GeometryInstance("RI_GarDoorClose", false, 480.175, 351.333, 19.6935, true)
GeometryInstance("RI_GarDoorClose", true, 480.175, 351.333, 19.6935, false)
GeometryInstance("RndStand", p_invisible, -758.03, 217.269, 95.9858, not p_invisible)
GeometryInstance("SC1d_mainTop", false, 191.749, -73.3786, 56.352, false)
GeometryInstance("SC1d_mainTopProxy", false, 191.731, -73.3668, 56.2318, false)
GeometryInstance("SCBell", false, 186.275, -71.1643, 46.4597, false)
GeometryInstance("SCBell", false, 186.275, -71.1643, 46.4597, true)
GeometryInstance("SCBell", false, 186.275, -73.4447, 46.4597, false)
GeometryInstance("SCBell", false, 186.275, -73.4447, 46.4597, true)
GeometryInstance("SCBell", false, 191.725, -73.4447, 46.4597, false)
GeometryInstance("SCBell", false, 191.725, -73.4447, 46.4597, true)
GeometryInstance("SCBell", false, 191.725, -75.7203, 46.4597, false)
GeometryInstance("SCBell", false, 191.725, -75.7203, 46.4597, true)
GeometryInstance("SCBell", false, 197.159, -75.7203, 46.4597, false)
GeometryInstance("SCBell", false, 197.159, -75.7203, 46.4597, true)
GeometryInstance("SCBell2", false, 186.275, -75.7203, 46.4597, false)
GeometryInstance("SCBell2", false, 191.725, -71.1643, 46.4597, false)
GeometryInstance("SCBell2", false, 197.159, -71.1643, 46.4597, false)
GeometryInstance("SCBell2", false, 197.159, -73.4447, 46.4597, false)
GeometryInstance("ScGate01Closed", false, 301.439, -72.5059, 8.04657, true)
GeometryInstance("ScGate01Closed", true, 301.439, -72.5059, 8.04657, false)
GeometryInstance("ScGate01Opened", false, 299.988, -72.5031, 8.04657, true)
GeometryInstance("ScGate01Opened", true, 299.988, -72.5031, 8.04657, false)
GeometryInstance("ScGate02Closed", false, 225.928, 5.79816, 8.39471, true)
GeometryInstance("ScGate02Closed", true, 225.928, 5.79816, 8.39471, false)
GeometryInstance("ScGate02Opened", false, 224.477, 5.8009, 8.39471, true)
GeometryInstance("ScGate02Opened", true, 224.477, 5.8009, 8.39471, false)
GeometryInstance("Scr_Ball01", true, -795.354, 92.4354, 12.2319)
GeometryInstance("Scr_Ball02", true, -795.303, 92.4572, 12.2319)
GeometryInstance("Scr_Ball03", true, -795.256, 92.4776, 12.2319)
GeometryInstance("Scr_Ball04", true, -795.21, 92.4972, 12.2319)
GeometryInstance("Scr_Strike01", true, -794.93, 92.6176, 12.2319)
GeometryInstance("Scr_Strike02", true, -794.884, 92.6373, 12.2319)
GeometryInstance("Scr_Strike03", true, -794.838, 92.6574, 12.2319)
GeometryInstance("ShelfLamp", p_invisible, -761.167, 194.232, 97.466, not p_invisible)
GeometryInstance("ShelfLamp", p_invisible, -761.167, 197.624, 97.466, not p_invisible)
GeometryInstance("ShelfLamp", p_invisible, -761.167, 201.23, 97.466, not p_invisible)
GeometryInstance("ShelfLamp", p_invisible, -761.167, 204.904, 97.466, not p_invisible)
GeometryInstance("ShelfLamp", p_invisible, -765.248, 214.307, 97.466, not p_invisible)
GeometryInstance("ShelfLamp", p_invisible, -768.942, 214.307, 97.466, not p_invisible)
GeometryInstance("ShelfLamp", p_invisible, -772.622, 214.308, 97.466, not p_invisible)
GeometryInstance("ShelfLamp", p_invisible, -776.291, 214.31, 97.466, not p_invisible)
GeometryInstance("ShelfLamp", p_invisible, -779.893, 214.304, 97.466, not p_invisible)
GeometryInstance("SouthPla_BROKEN", false, -696.154, 66.8366, 24.4715, true)
GeometryInstance("SouthPla_BROKEN", true, -696.154, 66.8366, 24.4715, false)
GeometryInstance("Standlamp", p_invisible, -757.683, 187.425, 96.5913, not p_invisible)
GeometryInstance("Standlamp", p_invisible, -757.802, 213.247, 96.5913, not p_invisible)
GeometryInstance("TGK_StartGo", false, -350.963, 493.747, 4.48503, false)
GeometryInstance("TGK_StartGo", true, -350.963, 493.747, 4.48503, false)
GeometryInstance("TGK_StartR1", false, -350.705, 492.403, 4.48503, false)
GeometryInstance("TGK_StartR1", true, -350.705, 492.403, 4.48503, false)
GeometryInstance("TGK_StartR2", false, -350.791, 492.855, 4.48503, false)
GeometryInstance("TGK_StartR2", true, -350.791, 492.855, 4.48503, false)
GeometryInstance("TGK_StartR3", false, -350.878, 493.308, 4.48503, false)
GeometryInstance("TGK_StartR3", true, -350.878, 493.308, 4.48503, false)
GeometryInstance("timstick_2l", true, -535.922, 317.876, -3.21369)
GeometryInstance("timstick_2r", true, -535.804, 317.876, -3.21369)
GeometryInstance("timstick_l", false, -533.729, 317.876, -3.21369)
GeometryInstance("timstick_l", true, -533.729, 317.876, -3.21369)
GeometryInstance("timstick_r", false, -533.611, 317.876, -3.21369)
GeometryInstance("timstick_r", true, -533.611, 317.876, -3.21369)
GeometryInstance("WestPla_BROKEN", false, -705.123, 74.9948, 24.3831, true)
GeometryInstance("WestPla_BROKEN", true, -705.123, 74.9948, 24.3831, false)
GeometryInstance("WheelBrl", false, 183.545, -80.2706, 41.078, false)
GeometryInstance("WheelBrl", false, 183.545, -80.2706, 41.078, true)
GeometryInstance("WheelBrl", false, 204.582, -68.0396, 35.6995, false)
GeometryInstance("WheelBrl", false, 204.582, -68.0396, 35.6995, true)
GeometryInstance("x_cowbell", false, -533.534, 317.355, -1.945)
GeometryInstance("x_cowbell", true, -533.534, 317.355, -1.945)
GeometryInstance("x_cowbell_2p", false, -762.737, 307.457, 74.889)
GeometryInstance("x_cowbell_2p", true, -536.534, 317.355, -1.945)
GeometryInstance("x_snaredrum", false, -533.562, 317.313, -1.945)
GeometryInstance("x_snaredrum", true, -533.562, 317.313, -1.945)
GeometryInstance("x_snaredrum_2p", true, -536.562, 317.313, -1.945)
GeometryInstance("x_Timpani", false, -533.586, 317.355, -1.945)
GeometryInstance("x_Timpani", true, -533.586, 317.355, -1.945)
GeometryInstance("x_Timpani_2p", true, -536.586, 317.355, -1.945)
GeometryInstance("x_xylophone", false, -533.562, 317.18, -1.945)
GeometryInstance("x_xylophone", true, -533.562, 317.18, -1.945)
GeometryInstance("x_xylophone_2p", true, -536.562, 317.18, -1.945)
GeometryInstance("xmas_timpani", false, -762.713, 308.603, 77.249)
GeometryInstance("xmas_timstick_l", false, -762.619, 307.457, 74.889)
GeometryInstance("xmas_xylophone", false, -763.996, 308.154, 77.249)
GeometryInstance("xmas_xylostick_l", false, -763.481, 307.457, 74.889)
GeometryInstance("xmas_xylostick_r", false, -763.599, 307.457, 74.889)
GeometryInstance("xylostick_2l", true, -536.269, 317.876, -3.21369)
GeometryInstance("xylostick_2r", true, -536.151, 317.876, -3.21369)
GeometryInstance("xylostick_l", false, -534.077, 317.876, -3.21369)
GeometryInstance("xylostick_l", true, -534.077, 317.876, -3.21369)
GeometryInstance("xylostick_r", false, -533.959, 317.876, -3.21369)
GeometryInstance("xylostick_r", true, -533.959, 317.876, -3.21369)
GeometryInstance(entry.geometry, false, entry.x, entry.y, entry.z, true)
GeometryInstance(entry.geometry, true, entry.x, entry.y, entry.z, false)
GeometryInstance(gLights[lightNo].id, gLights[lightNo].hidden, gLights[lightNo].x, gLights[lightNo].y, gLights[lightNo].z)
GeometryInstance(lightEntry.id, lightEntry.hidden, lightEntry.x, lightEntry.y, lightEntry.z)
GeometryInstance(object.name, false, object.x, object.y, object.z, true)
GeometryInstance(object.name, object.bHidden, object.x, object.y, object.z, object.bCol)
GeometryInstance(prop.id, false, prop.x, prop.y, prop.z)
GeometryInstance(RaceSignals.go.name, false, RaceSignals.go.x, RaceSignals.go.y, RaceSignals.go.z, false)
GeometryInstance(RaceSignals.go.name, true, RaceSignals.go.x, RaceSignals.go.y, RaceSignals.go.z, false)
GeometryInstance(RaceSignals.r1.name, false, RaceSignals.r1.x, RaceSignals.r1.y, RaceSignals.r1.z, false)
GeometryInstance(RaceSignals.r1.name, true, RaceSignals.r1.x, RaceSignals.r1.y, RaceSignals.r1.z, false)
GeometryInstance(RaceSignals.r2.name, false, RaceSignals.r2.x, RaceSignals.r2.y, RaceSignals.r2.z, false)
GeometryInstance(RaceSignals.r2.name, true, RaceSignals.r2.x, RaceSignals.r2.y, RaceSignals.r2.z, false)
GeometryInstance(RaceSignals.r3.name, false, RaceSignals.r3.x, RaceSignals.r3.y, RaceSignals.r3.z, false)
GeometryInstance(RaceSignals.r3.name, true, RaceSignals.r3.x, RaceSignals.r3.y, RaceSignals.r3.z, false)
GeometryInstance(signal.name, true, signal.x, signal.y, signal.z, false)
sub esp, 0x20
push esi
mov esi, dword ptr [esp+0x28]
push edi
push 0x0
push esi
call LuaParam::IsInt
add esp, 0x8
test al, al
push 0x0
push esi
jz 0xC
call LuaParam::GetInt
add esp, 0x8
jmp 0x10
call LuaParam::GetString
push eax
call 0x51C330
add esp, 0xC
push 0x1
push esi
mov edi, eax
call LuaParam::GetBool
push 0x2
push esi
mov byte ptr [esp+0x28], al
call LuaParam::GetFloat
fstp dword ptr [esp+0x1C], st
push 0x3
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x28], st
push 0x4
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x34], st
push esi
mov byte ptr [esp+0x2C], 0x0
call 0x73AEA0
add esp, 0x24
cmp eax, 0x6
jnz 0x11
push 0x5
push esi
call LuaParam::GetBool
add esp, 0x8
mov byte ptr [esp+0x8], al
mov eax, dword ptr [esp+0x8]
fld st, dword ptr [esp+0xC]
mov ecx, dword ptr [esp+0x18]
fstp dword ptr [esp+0x1C], st
fld st, dword ptr [esp+0x10]
push eax
push ecx
fstp dword ptr [esp+0x28], st
fld st, dword ptr [esp+0x1C]
lea edx, ptr [esp+0x24]
push edx
fstp dword ptr [esp+0x30], st
push edi
call 0x45E060
add esp, 0x10
pop edi
xor eax, eax
pop esi
add esp, 0x20
ret
SHARED
Returns an accurate timer object. When subtracting another accurate timer object from this value, a number will be the result.
Useful for reliably comparing the amount of milliseconds that have passed since a certain time.
CLIENT
Takes a string returned by a function like PedGetActionNodeData, and returns an actual action node that can be set. Usually you'll want to use functions like PedGetActionNode instead, unless you want to conserve space.
If a table is given for translations, it should be a list of node names that will be substituted in the result if the hashes match.
If the string is invalid, nil is returned.
CLIENT
Returns a table with info about each pool. It is suggested you iterate through the table using ipairs, and each value will be another table with "name", "size", "limit", and "count" fields.
bx, by, bz = GetAnchorPosition(mailbox.id)
bx, by, bz = GetAnchorPosition(tag.id)
local a = GetAnchorPosition(TRIGGER._DUNKSEAT)
local bx, by, bz = GetAnchorPosition(mailbox.id)
local bx, by, bz = GetAnchorPosition(tblEntry.trigger)
local bx, by, bz = GetAnchorPosition(trigger)
local bx, by, bz = GetAnchorPosition(TRIGGER._5_04_BANNERS_03)
local tx, ty, tz = GetAnchorPosition(gLampId)
local x, y, z = GetAnchorPosition(fire.trigger)
local x, y, z = GetAnchorPosition(mailbox.id)
local x, y, z = GetAnchorPosition(prop.id)
local x, y, z = GetAnchorPosition(randomCan)
local x, y, z = GetAnchorPosition(rat.trigger)
local x, y, z = GetAnchorPosition(tag)
local x, y, z = GetAnchorPosition(tag.id)
local x, y, z = GetAnchorPosition(trashCan.trigger)
local x, y, z = GetAnchorPosition(trigger)
local x, y, z = GetAnchorPosition(TRIGGER._3_02_BUSINESSAREA)
local x, y, z = GetAnchorPosition(TRIGGER._3_02_PARKENTRANCE)
local x, y, z = GetAnchorPosition(TRIGGER._3_R09_BASEMENTTRIGGER)
local x, y, z = GetAnchorPosition(TRIGGER._3_S09_DUMPSTER01)
local x, y, z = GetAnchorPosition(TRIGGER._3_S11_GALLOWAY_TRIGGER)
local x, y, z = GetAnchorPosition(TRIGGER._4_03_BAR_05_02)
local x, y, z = GetAnchorPosition(TRIGGER._4_03_OB_BAR2)
local x, y, z = GetAnchorPosition(TRIGGER._AMB_POOR_AREA)
local x, y, z = GetAnchorPosition(TRIGGER._JANEXTRAFIRE)
local x, y, z = GetAnchorPosition(TRIGGER._PO_HOUSE)
local x, y, z = GetAnchorPosition(TRIGGER._SV_CARNIVALFUNHOUSE)
local x, y, z = GetAnchorPosition(TRIGGER._TINDUST_POWER_SWITCH_01)
local x, y, z = GetAnchorPosition(triggerFire.trigger)
local x2, y2, z2 = GetAnchorPosition(TRIGGER._TPHOTO_FIRE)
local x2, y2, z2 = GetAnchorPosition(TRIGGER._TPHOTO_FIREG)
mx, my, mz = GetAnchorPosition(TRIGGER._RICH_MAILBOX03)
snowpoofX, snowpoofY, snowpoofZ = GetAnchorPosition(snow.trigger)
tree.x, tree.y, tree.z = GetAnchorPosition(tree.id)
x, y, z = GetAnchorPosition(snow.trigger)
x, y, z = GetAnchorPosition(tag.id)
x, y, z = GetAnchorPosition(tblEntry.idDoor)
x, y, z = GetAnchorPosition(TRIGGER._5_07_OMARFIGHT)
x, y, z = GetAnchorPosition(TRIGGER._TINDUST_BAR_DOOR_01)
x, y, z = GetAnchorPosition(TRIGGER._TINDUST_BAR_DOOR_SWITCH_02)
x, y, z = GetAnchorPosition(TRIGGER._TINDUST_GATE_SWITCH)
x, y, z = GetAnchorPosition(TRIGGER._TINDUST_POWER_SWITCH_02)
x, y, z = GetAnchorPosition(TRIGGER._TINDUST_TRAIN_SWITCH_01)
x, y, z = GetAnchorPosition(TRIGGER._TINDUST_TRAIN_SWITCH_02)
x2, y2, z2 = GetAnchorPosition(event)
x2, y2, z2 = GetAnchorPosition(event.trigger)
xf, yf, zf = GetAnchorPosition(flame.trigger)
xf, yf, zf = GetAnchorPosition(tblEntry.trigger)
xf, yf, zf = GetAnchorPosition(TRIGGER._5_02_BIGSMOKE)
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x8
test eax, eax
jnl 0x6
xor esi, esi
jmp 0x1F
mov edx, dword ptr [0x20C7C48]
mov ecx, dword ptr [edx+0x4]
test byte ptr [eax+ecx*1], 0x80
jz 0x6
xor ecx, ecx
jmp 0xA
mov ecx, dword ptr [edx+0xC]
imul ecx, eax
add ecx, dword ptr [edx]
mov esi, ecx
fld st, dword ptr [esi+0x4]
push ecx
fstp dword ptr [esp], st
push edi
call LuaParam::PushFloat
fld st, dword ptr [esi+0x8]
add esp, 0x4
fstp dword ptr [esp], st
push edi
call LuaParam::PushFloat
fld st, dword ptr [esi+0xC]
add esp, 0x4
fstp dword ptr [esp], st
push edi
call LuaParam::PushFloat
add esp, 0x8
pop edi
mov eax, 0x3
pop esi
ret
CLIENT
Returns any key code that is currently being pressed, or nothing if no key is being pressed.
CLIENT
Returns any key code that is currently being released, or nothing if no key is being released.
CLIENT
Returns any key code that is currently pressed, or nothing if no key is pressed.
SHARED
Returns an area code from a position, or -1 if none is found. The area boxes are built into DSL, and this function is mainly meant to debug sync.
CLIENT
Returns a native game function if it exists, meaning any function built into the game before it was possibly changed by a script.
SHARED
Returns true or false if the key exists in the config.
SHARED
Returns a number if the key exists in the config.
SHARED
Like GetConfigValue, but surrounding quotation marks may be removed if present.
CLIENT
Returns the ped being controlled by a controller, or -1 if none. If controller is not given, zero is assumed.
currentDay = GetCurrentDay(false)
local CurrentDay = GetCurrentDay(false)
shared.ChemistrySetLastTimeUsed = GetCurrentDay(false)
shared.PlayerGotCarnieTicket = GetCurrentDay(false)
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetBool
mov ecx, dword ptr [0x20C3640]
add esp, 0x8
test al, al
jz 0x17
mov eax, 0x66666667
imul ecx
sar edx, 0x1
mov eax, edx
shr eax, 0x1F
add eax, edx
lea eax, ptr [eax+eax*4]
sub ecx, eax
push ecx
push esi
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
pop esi
ret
if AreaIsLoading() or GetCurrentNumOfAmbientBikes() > 4 then
mov eax, dword ptr [0xBCD080]
mov ecx, dword ptr [eax+0x1D18]
mov edx, dword ptr [esp+0x4]
push ecx
push edx
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
ret
if GetCutsceneRunning() then
while GetCutsceneRunning() == 0 and AlarmTime - GameTime < shared.gSchoolFAlarmTime do
while GetCutsceneRunning() ~= 0 and GetCutsceneTime() < cutsceneTable[CutSceneIndex].time - 1000 do
movzx eax, byte ptr [0x20C5BE4]
mov ecx, dword ptr [esp+0x4]
push eax
push ecx
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
ret
if cutsceneTable[CutSceneIndex].name == "1-1-1" and not cutsceneTable[CutSceneIndex].bEvent and GetCutsceneTime() > 58000 then
while GetCutsceneRunning() ~= 0 and GetCutsceneTime() < cutsceneTable[CutSceneIndex].time - 1000 do
while GetCutsceneTime() < 89466 do
call 0x6C3AD0
push eax
mov eax, dword ptr [esp+0x8]
push eax
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
ret
CLIENT
Returns the aspect ratio of the renderer used by DSL. Same value you'd get if you divided the width and height returned by GetDisplayResolution.
CLIENT
Returns a timecycle object that's referencing one of the game's extra timecycles, meaning any changes to it will be visible in-game. The area should be in the range [0, 23] and index in the range [0, 2].
Extra timecycles can be found in the game’s config/timecycE.dat file, where each of the three sets of EXTRACOLOURS refers to what value you should use for the index argument. Each set of extra colours then has up to 24 timecycles, which is what you use for the area argument.
SetFactionRespect(1, GetFactionRespect(1) + 15)
SetFactionRespect(1, GetFactionRespect(1) + 20)
SetFactionRespect(1, GetFactionRespect(1) + 5)
SetFactionRespect(1, GetFactionRespect(1) - 5)
SetFactionRespect(2, GetFactionRespect(2) + 15)
SetFactionRespect(2, GetFactionRespect(2) - 10)
SetFactionRespect(3, GetFactionRespect(3) + 100)
SetFactionRespect(3, GetFactionRespect(3) - 25)
SetFactionRespect(4, GetFactionRespect(4) + 25)
SetFactionRespect(4, GetFactionRespect(4) + 5)
SetFactionRespect(4, GetFactionRespect(4) - 10)
SetFactionRespect(4, GetFactionRespect(4) - 20)
SetFactionRespect(4, GetFactionRespect(4) - 25)
SetFactionRespect(4, GetFactionRespect(4) - 5)
SetFactionRespect(5, GetFactionRespect(5) + 15)
SetFactionRespect(5, GetFactionRespect(5) + 5)
SetFactionRespect(5, GetFactionRespect(5) - 10)
SetFactionRespect(5, GetFactionRespect(5) - 5)
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, 0xC1AEA8
call 0x446780
push eax
push esi
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
pop esi
ret
A standard Lua 5.0 function documented on lua.org.
-- never used
sub esp, 0x14
push ebx
push esi
mov esi, dword ptr [esp+0x20]
push edi
push 0x0
push esi
call LuaParam::IsInt
add esp, 0x8
test al, al
push 0x0
push esi
jz 0xC
call LuaParam::GetInt
add esp, 0x8
jmp 0x10
call LuaParam::GetString
push eax
call 0x51C330
add esp, 0xC
push 0x1
push esi
mov edi, eax
call LuaParam::GetInt
push 0x2
push esi
mov ebx, eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x1C], st
push 0x3
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x28], st
fld st, dword ptr [esp+0x24]
push 0x4
fstp dword ptr [esp+0x30], st
push esi
fld st, dword ptr [esp+0x30]
fstp dword ptr [esp+0x38], st
call LuaParam::GetFloat
add esp, 0x20
fstp dword ptr [esp+0x1C], st
fld st, dword ptr [0x900D38]
lea eax, ptr [esp+0x14]
push eax
push ecx
fstp dword ptr [esp], st
push edi
call 0x45DE60
add esp, 0xC
test eax, eax
jz 0xD
cmp dword ptr [eax+ebx*4+0x1C], 0x0
setnz cl
push ecx
jmp 0x4
push 0x0
push esi
call LuaParam::PushBool
add esp, 0x8
pop edi
pop esi
mov eax, 0x1
pop ebx
add esp, 0x14
ret
FootballPed1 = GetGymModel(POIFaction)
FootballPed2 = GetGymModel(POIFaction)
FootballPed3 = GetGymModel(POIFaction)
FootballPed4 = GetGymModel(POIFaction)
local ped1 = GetGymModel(2)
local ped2 = GetGymModel(2)
ped1_ModelID = GetGymModel(POIPointFaction)
ped2_ModelID = GetGymModel(POIPointFaction)
function GetGymModel(POIFaction)
local pickedModel, possibleFaction
if POIFaction == nil then
POIFaction = 12
end
for pedCount = 1, 13 do
if POIFaction ~= 2 then
pickedModel = RandomElement13(200, 201, 203, 204, 206, 207, 208, 209, 210, 211, 212, 213, 214)
else
pickedModel = RandomElement3(204, 206, 207)
end
--print("=================> Model ID picked is : " .. pickedModel)
if PedGetPedCountWithModel(pickedModel) > 0 or F_CheckGymModel(pickedModel) == false then
pickedModel = nil
pedCount = pedCount + 1
else
return pickedModel
end
end
return -1
end
SHARED
Returns a string for the hash, formatted like #XXXXXXXX. Note that with DSL, any hash name given to the game can be given in this format to force a certain hash.
CLIENT
Returns a texture object for a hud texture loaded by the game, if available. If no texture of that name is found, nothing is returned. So be sure to check the return value before using it.
CLIENT
Returns a string and number representing a hardware control for the game button. The string can be "button", "special", "analog", "keyboard", "mouse_button", or "mouse_movement".
CLIENT
Returns the width and height used by the game.
Usually you'll want GetDisplayResolution instead.
if GetIsMissionSpecific(prop.id) then
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x8
test eax, eax
jl 0x11
mov edx, dword ptr [0x20C7C48]
mov ecx, dword ptr [edx+0x4]
test byte ptr [eax+ecx*1], 0x80
jz 0x6
xor ecx, ecx
jmp 0xA
mov ecx, dword ptr [edx+0xC]
imul ecx, eax
add ecx, dword ptr [edx]
movzx edx, byte ptr [ecx+0x3F]
and edx, 0xFFFFFF01
push edx
push esi
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
pop esi
ret
CLIENT
Returns the primary controller index, which is usually 0 or 1. This effectively indicates whether or not the player is using a controller.
if GetLanguage() == 7 then
mov eax, dword ptr [0xC18724]
mov ecx, dword ptr [esp+0x4]
push eax
push ecx
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
ret
CLIENT
Returns a localized string for the text, or nothing if none is available.
This function is also available as GetLocalisedText.
SHARED
Returns a pitch, roll, and yaw given a rotation matrix. May take an optional rotation order.
A standard Lua 5.0 function documented on lua.org.
if GetMissionAttemptCount("1_01") > 1 then
if GetMissionAttemptCount("1_02") == 1 then
if GetMissionAttemptCount("1_02C") == 1 then
if shared.passed1_02C == true and GetMissionAttemptCount("C_Chem_1") == 0 and not MissionActive() then
isNotChapterOne = ChapterGet() ~= 0 or 0 < GetMissionAttemptCount("2_01")
return GetMissionAttemptCount("2_R03") == 0 and 1 or 0
return GetMissionAttemptCount("2_R03") > 0 and 1 or 0
return GetMissionAttemptCount("3_S11") == 0 and 1 or 0
return GetMissionAttemptCount("3_S11") > 0 and 1 or 0
return GetMissionAttemptCount("C_Chem_1") == 0 and 1 or 0
return GetMissionAttemptCount("C_Wrestling_1") == 0 and 1 or 0
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push 0x0
push esi
call LuaParam::GetString
add esp, 0x8
push eax
lea ecx, ptr [esp+0x8]
call 0x5FA910
lea eax, ptr [esp+0x4]
push eax
mov ecx, 0x20C3CA0
call 0x6A9FD0
push eax
mov ecx, 0x20C3CA0
call 0x6AA7C0
movzx ecx, word ptr [eax]
push ecx
push esi
call LuaParam::PushInt
add esp, 0x8
lea ecx, ptr [esp+0x4]
call 0x49A650
mov eax, 0x1
pop esi
pop ecx
ret
local missionCount = GetMissionCount()
mov ecx, 0x20C3CA0
call 0x6AA140
push eax
mov eax, dword ptr [esp+0x8]
push eax
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
ret
--print("ATTEMPTCOUNT", tostring(GetMissionCurrentAttemptCount()))
if 1 >= GetMissionCurrentAttemptCount() then
if GetMissionCurrentAttemptCount() <= 1 then
local attempts = GetMissionCurrentAttemptCount()
local bRunTutorial = GetMissionCurrentAttemptCount() <= 2
mov ecx, 0x20C3CA0
call 0x6AA710
mov eax, dword ptr [eax]
push eax
mov ecx, 0x20C3CA0
call 0x6AA7C0
movzx eax, word ptr [eax]
mov ecx, dword ptr [esp+0x4]
push eax
push ecx
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
ret
gMissionSucceedCount = GetMissionCurrentSuccessCount()
gTierNo = GetMissionCurrentSuccessCount() + 1
if GetMissionCurrentSuccessCount() <= 2 then
mov ecx, 0x20C3CA0
call 0x6AA710
mov eax, dword ptr [eax]
push eax
mov ecx, 0x20C3CA0
call 0x6AA7C0
movzx eax, word ptr [eax+0x2]
mov ecx, dword ptr [esp+0x4]
push eax
push ecx
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
ret
--print("Is mission success: ", GetMissionSuccessCount(missions[currentMission].id))
elseif 1 <= GetMissionSuccessCount(entry.prereq or tblRaceSignupSheet[i - 1].mission) and F_PosterCheckMission(entry.mission2) then
elseif gCurrentRace == GK_RACE_OUTDOOR3 and GetMissionSuccessCount("GoKart_SR3") == 0 then
if 0 < GetMissionSuccessCount("PriOff") then
if gCurrentTier == PUNISHMENT_TIER3 and GetMissionSuccessCount("LawnMowing3c") == 0 and 0 < GetMissionSuccessCount("LawnMowing3b") then
if GetMissionSuccessCount("1_02B") == 0 then
if GetMissionSuccessCount("2_R03_X") >= 4 then
if GetMissionSuccessCount("2_S05") >= 1 and 1 > GetMissionSuccessCount("2_S05B") and 1 > GetMissionSuccessCount("6_01") then
if GetMissionSuccessCount("GoKart_GP5") == 0 then
if GetMissionSuccessCount("PriOff") == 0 then
if GetMissionSuccessCount(entry.mission) >= 1 then
if GetMissionSuccessCount(mission) >= 1 then
local gDifficulty = GetMissionSuccessCount("2_R03_X")
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push 0x0
push esi
call LuaParam::GetString
add esp, 0x8
push eax
lea ecx, ptr [esp+0x8]
call 0x5FA910
lea eax, ptr [esp+0x4]
push eax
mov ecx, 0x20C3CA0
call 0x6A9FD0
push eax
mov ecx, 0x20C3CA0
call 0x6AA7C0
movzx ecx, word ptr [eax+0x2]
push ecx
push esi
call LuaParam::PushInt
add esp, 0x8
lea ecx, ptr [esp+0x4]
call 0x49A650
mov eax, 0x1
pop esi
pop ecx
ret
-- never used
mov eax, 0x1
ret
SHARED
Returns the path to DSL package files relative to the game's process. If name is given, it is concatenated.
SHARED
Returns a table that is persistent across DSL phases, and saved to savedata.bin when SavePersistentDataTables is called.
If id is given (highly recommended), it should be a unique string that other mod authors are unlikely to use (unless they intend to).
SERVER
Returns a table that can be used to store information for this player's account. Be sure to save data with SavePlayerAccountTable after changing anything.
SERVER
Returns the player's id. Keep in mind this id is only unique while they're connected, then may be re-used by another player that joins after.
CLIENT
Returns the local player name. Note that there is also a server version, GetPlayerName.
SERVER
Returns the player's name.
Note that there is also a client version, listed separately under Client Functions.
local x, y, z = GetPointFromPath(path, 1)
local Xs, Ys = GetPointFromPath(race.path, 0)
push ebx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetInt
mov ecx, dword ptr [0xD13CB4]
add esp, 0x10
push edi
mov ebx, eax
call 0x5ED3A0
mov edi, eax
test edi, edi
jz 0x4F
mov ecx, edi
call 0x5EC670
cmp ebx, eax
jnb 0x44
push ebx
mov ecx, edi
call 0x5EC8C0
mov edi, eax
fld st, dword ptr [edi]
call 0x85C720
push eax
push esi
call LuaParam::PushInt
fld st, dword ptr [edi+0x4]
call 0x85C720
push eax
push esi
call LuaParam::PushInt
fld st, dword ptr [edi+0x8]
call 0x85C720
push eax
push esi
call LuaParam::PushInt
add esp, 0x18
pop edi
pop esi
mov eax, 0x3
pop ebx
ret
push 0x0
push esi
call LuaParam::PushInt
push 0x0
push esi
call LuaParam::PushInt
push 0x0
push esi
call LuaParam::PushInt
add esp, 0x18
pop edi
pop esi
mov eax, 0x3
pop ebx
ret
ax, ay, az = GetPointFromPointList(POINTLIST._ALIGNMENTPOINT, 1)
bx, by, bz = GetPointFromPointList(POINTLIST._5_B_PIPEBLIPS, i)
bx, by, bz = GetPointFromPointList(POINTLIST._5_B_SHIELDBLIPS, i)
camx, camy, camz = GetPointFromPointList(POINTLIST._SHOTS_TARGET, 1)
crumbX, crumbY, crumbZ = GetPointFromPointList(POINTLIST._3_S11_CRUMBS, 6)
crumbX, crumbY, crumbZ = GetPointFromPointList(POINTLIST._3_S11_CRUMBS, gCrumb)
crumbX, crumbY, crumbZ = GetPointFromPointList(POINTLIST._3_S11_SECRETPASSAGE, 1)
DropX, DropY, DropZ = GetPointFromPointList(POINTLIST._5_09_PLAYERS_ROOM, 1)
dx, dy, dz = GetPointFromPointList(POINTLIST._PR_CARMOVETO, 1)
effectX, effectY, effectZ = GetPointFromPointList(POINTLIST._4_01_EFFECTSTEAMROOM, 1)
effectX, effectY, effectZ = GetPointFromPointList(POINTLIST._4_01_EFFECTSTEAMSHOWER, 1)
fx, fy, fz = GetPointFromPointList(POINTLIST._DORMCHEMISTRYFX, 2)
fx, fy, fz = GetPointFromPointList(POINTLIST._DORMCHEMISTRYFX, 3)
GetPointFromPointList(POINTLIST._1_03_DOOR1CORONA, 1)
GetPointFromPointList(POINTLIST._1_03_DOOR2CORONA, 1)
GetPointFromPointList(POINTLIST._1_03_GATECORONA, 1)
gX, gY, gZ = GetPointFromPointList(POINTLIST._5_06_NISRECRUITRUSSELL, 1)
local alarmX, alarmY, alarmZ = GetPointFromPointList(POINTLIST._1_11X2_BLIPALARM, 1)
local bx, by, bz = GetPointFromPointList(POINTLIST._1_10_ELECBLIP, 1)
local cx, cy, cz = GetPointFromPointList(gDest.dest, 1)
local effectX, effectY, effectZ = GetPointFromPointList(POINTLIST._4_01_EFFECTSTEAMROOM, 1)
local effectX, effectY, effectZ = GetPointFromPointList(POINTLIST._4_01_SPAWNMANDYSHOWER, 1)
local fx, fy, fz = GetPointFromPointList(POINTLIST._DORMCHEMISTRYFX, 1)
local fx, fy, fz = GetPointFromPointList(POINTLIST._DORMCHEMISTRYFX, 3)
local lookX, lookY, lookZ = GetPointFromPointList(POINTLIST._1_05B_NIS_LOCKER, 2)
local lookX, lookY, lookZ = GetPointFromPointList(tblCinematicScript[nCurrentStage][index].targetParam, 1)
local px, py, pz = GetPointFromPointList(POINTLIST._CARSTARTPOINT, 1)
local shower1X, shower1Y, shower1Z = GetPointFromPointList(POINTLIST._2_S06B_SPAWNSHOWER, 3)
local sx, sy, sz = GetPointFromPointList(sound.point, 1)
local tempX, tempY, tempZ = GetPointFromPointList(POINTLIST._1_05B_NIS_LOCKER, 2)
local tx, ty, tz = GetPointFromPointList(POINTLIST._3_S11_TREECAM, 2)
local x, y, z = GetPointFromPointList(gDest.dest, 3)
local x, y, z = GetPointFromPointList(Objectives[1].loc, 2)
local x, y, z = GetPointFromPointList(Objectives[2].loc, 2)
local x, y, z = GetPointFromPointList(Objectives[3].loc, 2)
local x, y, z = GetPointFromPointList(Objectives[4].loc, 2)
local x, y, z = GetPointFromPointList(Objectives[5].loc, 2)
local x, y, z = GetPointFromPointList(point, 1)
local x, y, z = GetPointFromPointList(point, e)
local x, y, z = GetPointFromPointList(point, index)
local x, y, z = GetPointFromPointList(POINTLIST._1_01_CHEERPOINTS, 3)
local x, y, z = GetPointFromPointList(POINTLIST._1_01_ENDPOINT, 1)
local x, y, z = GetPointFromPointList(POINTLIST._1_01_PLAYER_START, 1)
local x, y, z = GetPointFromPointList(POINTLIST._1_01_PLAYER_START, 3)
local x, y, z = GetPointFromPointList(POINTLIST._1_02_BDORMBULLIES, 1)
local x, y, z = GetPointFromPointList(POINTLIST._1_02_FIRSTSET, 1)
local x, y, z = GetPointFromPointList(POINTLIST._1_02_RUSSELLNIS, 2)
local x, y, z = GetPointFromPointList(POINTLIST._1_02A_POPMACH, 1)
local x, y, z = GetPointFromPointList(POINTLIST._1_03_OFFBARRELS, 1)
local x, y, z = GetPointFromPointList(POINTLIST._1_07_GARAGECORONA, 1)
local x, y, z = GetPointFromPointList(POINTLIST._1_07_PLYRDOOR, 1)
local x, y, z = GetPointFromPointList(POINTLIST._2_08_CLOTHINGMANAGER, 1)
local x, y, z = GetPointFromPointList(POINTLIST._3_S11_CRUMBS, 6)
local x, y, z = GetPointFromPointList(POINTLIST._4_04_AFTERREAPER, 1)
local x, y, z = GetPointFromPointList(POINTLIST._4_04_ENTRANCE, 1)
local x, y, z = GetPointFromPointList(POINTLIST._5_02_PLAYERAFTERRPNIS, 1)
local x, y, z = GetPointFromPointList(POINTLIST._5_03_CR_ORDERLY_1, 2)
local x, y, z = GetPointFromPointList(POINTLIST._5_06_EXPLOSIONS, 1)
local x, y, z = GetPointFromPointList(POINTLIST._5_07_BikeFire, 1)
local x, y, z = GetPointFromPointList(POINTLIST._5_07_BikeFire, 2)
local x, y, z = GetPointFromPointList(POINTLIST._5_07_Smoke, 1)
local x, y, z = GetPointFromPointList(POINTLIST._5_07_Smoke, 2)
local x, y, z = GetPointFromPointList(POINTLIST._5_07_Smoke, 3)
local x, y, z = GetPointFromPointList(POINTLIST._5_07_Smoke, 4)
local x, y, z = GetPointFromPointList(POINTLIST._5_07_Smoke, 5)
local x, y, z = GetPointFromPointList(POINTLIST._5_07_ZSTART, 2)
local x, y, z = GetPointFromPointList(POINTLIST._5_B_DEBUG_STAGE3, 2)
local x, y, z = GetPointFromPointList(POINTLIST._6_03_GATEXYZ, 1)
local x, y, z = GetPointFromPointList(POINTLIST._6_03_SCHOOLENTRANCE, 1)
local x, y, z = GetPointFromPointList(POINTLIST._FINALFIGHTNIS, 1)
local x, y, z = GetPointFromPointList(POINTLIST._GYMCUTSCENELOCATIONS, 1)
local x, y, z = GetPointFromPointList(POINTLIST._HS_CAMLOOKAT, 1)
local x, y, z = GetPointFromPointList(POINTLIST._INBEDROOM, 2)
local x, y, z = GetPointFromPointList(POINTLIST._INDUS_POINTS, 12)
local x, y, z = GetPointFromPointList(POINTLIST._PANMAIN_SPRINKLERS, i)
local x, y, z = GetPointFromPointList(POINTLIST._PLAYERBUSTED, 2)
local x, y, z = GetPointFromPointList(POINTLIST._PLAYEREND, 1)
local x, y, z = GetPointFromPointList(POINTLIST._PLAYERSTART, 2)
local x, y, z = GetPointFromPointList(POINTLIST._PRIOFF_SPAWN, 1)
local x, y, z = GetPointFromPointList(POINTLIST._SAVEPOINTBDORM, 1)
local x, y, z = GetPointFromPointList(POINTLIST._TENEXIT, 1)
local x1, y1, z1 = GetPointFromPointList(POINTLIST._3_XM_KIDSTART, i)
local x1, y1, z1 = GetPointFromPointList(POINTLIST._3_XM_PARENTSTART, i)
local x1, y1, z1 = GetPointFromPointList(POINTLIST._CHOCOLATEBAR, 1)
local x1, y1, z1 = GetPointFromPointList(POINTLIST._LOCKERPOS, 1)
local x2, y2, z2 = GetPointFromPointList(POINTLIST._4_06_BALLGUARDS, 3)
local x2, y2, z2 = GetPointFromPointList(POINTLIST._LOCKERPOS, 1)
shower1X, shower1Y, shower1Z = GetPointFromPointList(POINTLIST._2_S06B_SPAWNSHOWER, 4)
shower1X, shower1Y, shower1Z = GetPointFromPointList(POINTLIST._2_S06B_STEAMROOM, 1)
tarx, tary, tarz = GetPointFromPointList(POINTLIST._SHOTS_TARGET, 2)
tempX, tempY, tempZ = GetPointFromPointList(PhotoArea.point, 1)
tempX, tempY, tempZ = GetPointFromPointList(POINTLIST._GDORM_HEADPEEK, lookElem)
x, y, z = GetPointFromPointList(effectTable.pointlist, effectTable.pointlist_id)
x, y, z = GetPointFromPointList(pointlist, num)
x, y, z = GetPointFromPointList(POINTLIST._1_03_PICKUPBRICKS, i)
x, y, z = GetPointFromPointList(POINTLIST._4_04_CTRLROOMCORONAS, 1)
x, y, z = GetPointFromPointList(POINTLIST._4_04_ENDFUNHOUSE, 1)
x, y, z = GetPointFromPointList(POINTLIST._4_04_ENDMAZEDOOR, 1)
x, y, z = GetPointFromPointList(POINTLIST._4_04_FACEPOINTMINE, 1)
x, y, z = GetPointFromPointList(POINTLIST._4_04_GRAVETOMAZE, 1)
x, y, z = GetPointFromPointList(POINTLIST._4_04_GRVDOORCORONAS, 1)
x, y, z = GetPointFromPointList(POINTLIST._4_04_MINE_DEST_09_END, 1)
x, y, z = GetPointFromPointList(POINTLIST._4_04_MINEJOCKS, entry.nPoint)
x, y, z = GetPointFromPointList(POINTLIST._4_04_NerdsEndDest, 1)
x, y, z = GetPointFromPointList(POINTLIST._4_06_BALLGUARDS, 1)
x, y, z = GetPointFromPointList(POINTLIST._4_06_OPEENDPED, 3)
x, y, z = GetPointFromPointList(POINTLIST._5_04_OUTSIDESMOKE, i)
x, y, z = GetPointFromPointList(POINTLIST._5_06_EXPLOSIONS, 2)
x, y, z = GetPointFromPointList(POINTLIST._5_06_EXPLOSIONS, 3)
x, y, z = GetPointFromPointList(POINTLIST._5_06_EXPLOSIONS, 4)
x, y, z = GetPointFromPointList(POINTLIST._5_06_EXPLOSIONS, 5)
x, y, z = GetPointFromPointList(POINTLIST._5_06_EXPLOSIONS, 6)
x, y, z = GetPointFromPointList(POINTLIST._6_B_GLASSBREAK, 1)
x, y, z = GetPointFromPointList(POINTLIST._6_B_GLASSBREAK, 2)
x, y, z = GetPointFromPointList(POINTLIST._6_B_GLASSBREAK, 3)
x, y, z = GetPointFromPointList(POINTLIST._6_B_GLASSBREAK, 4)
x, y, z = GetPointFromPointList(POINTLIST._6_B_LADDERSETUP1, 1)
x, y, z = GetPointFromPointList(POINTLIST._6_B_LADDERSETUP2, 1)
x, y, z = GetPointFromPointList(POINTLIST._BMXBIKERS, count)
x, y, z = GetPointFromPointList(POINTLIST._CAFELINEUP1, i)
x, y, z = GetPointFromPointList(POINTLIST._CAFELINEUP2, i)
x, y, z = GetPointFromPointList(POINTLIST._GDORM_TOILETS, i)
x, y, z = GetPointFromPointList(POINTLIST._GYM_TOILETS, i)
x, y, z = GetPointFromPointList(POINTLIST._SHALLWAYS_BR_BOYTOILET, i)
x, y, z = GetPointFromPointList(POINTLIST._SHALLWAYS_GIRLTOILET, i)
x, y, z = GetPointFromPointList(POINTLIST.LOOKATPT, 1)
x, y, z = GetPointFromPointList(weapon.point, 1)
x1, y1, z = GetPointFromPointList(Objectives[i].loc, 2)
x1, y1, z1 = GetPointFromPointList(pointlist, i)
x1, y1, z1 = GetPointFromPointList(POINTLIST._4_06_OBJECTIVE_C, 1)
x1, y1, z1 = GetPointFromPointList(POINTLIST._4_06_OBJECTIVE_D, i)
x1, y1, z1 = GetPointFromPointList(POINTLIST._4_06_OBJECTIVE_E, 1)
x1, y1, z1 = GetPointFromPointList(POINTLIST._5_09_CITYHALL_TAG, 1)
x1, y1, z1 = GetPointFromPointList(POINTLIST._LOCKERPOS, 1)
x2, y2, z2 = GetPointFromPointList(POINTLIST._5_09_CITYHALL_TAG, 2)
x2, y2, z2 = GetPointFromPointList(tblBusLocations[location].camera, 2)
x3, y3, z3 = GetPointFromPointList(POINTLIST._5_09_CITYHALL_TAG, 3)
x4, y4, z4 = GetPointFromPointList(POINTLIST._5_09_CITYHALL_TAG, 4)
xObj, yObj, zObj = GetPointFromPointList(point, index)
sub esp, 0x10
push ebx
mov ebx, dword ptr [esp+0x18]
push ebp
push esi
push 0x0
push ebx
call LuaParam::GetInt
push 0x1
push ebx
mov esi, eax
call LuaParam::GetInt
add esp, 0x10
push esi
mov ecx, 0xBC5E7C
mov ebp, eax
call 0x6D6450
test eax, eax
mov dword ptr [esp+0xC], eax
jnz 0x63
fldz
push ecx
fstp dword ptr [esp], st
push ebx
call LuaParam::PushFloat
fldz
add esp, 0x4
fstp dword ptr [esp], st
push ebx
call LuaParam::PushFloat
fldz
add esp, 0x4
fstp dword ptr [esp], st
push ebx
call LuaParam::PushFloat
fldz
add esp, 0x4
fstp dword ptr [esp], st
push ebx
call LuaParam::PushFloat
fldz
add esp, 0x4
fstp dword ptr [esp], st
push ebx
call LuaParam::PushFloat
fldz
add esp, 0x4
fstp dword ptr [esp], st
push ebx
call LuaParam::PushFloat
add esp, 0x8
pop esi
pop ebp
mov eax, 0x6
pop ebx
add esp, 0x10
ret
push edi
mov ecx, eax
call 0x6D59B0
mov esi, 0x1
cmp ebp, esi
mov edi, eax
jle 0x20
jmp 0x8
lea ebx, ptr [ebx]
mov ecx, dword ptr [esp+0x10]
call 0x6D59F0
test eax, eax
jz 0xB
add esi, 0x1
cmp esi, ebp
mov edi, eax
jl 0xFFFFFFEC
mov eax, dword ptr [edi]
mov ecx, dword ptr [edi+0x4]
mov edx, dword ptr [edi+0x8]
mov dword ptr [esp+0x14], eax
fld st, dword ptr [esp+0x14]
push ecx
fstp dword ptr [esp], st
push ebx
mov dword ptr [esp+0x20], ecx
mov dword ptr [esp+0x24], edx
call LuaParam::PushFloat
fld st, dword ptr [esp+0x20]
add esp, 0x4
fstp dword ptr [esp], st
push ebx
call LuaParam::PushFloat
fld st, dword ptr [esp+0x24]
add esp, 0x4
fstp dword ptr [esp], st
push ebx
call LuaParam::PushFloat
fld st, dword ptr [edi+0x1C]
add esp, 0x4
fstp dword ptr [esp], st
push ebx
call LuaParam::PushFloat
fldz
add esp, 0x4
fstp dword ptr [esp], st
push ebx
call LuaParam::PushFloat
fldz
add esp, 0x4
fstp dword ptr [esp], st
push ebx
call LuaParam::PushFloat
add esp, 0x8
pop edi
pop esi
pop ebp
mov eax, 0x6
pop ebx
add esp, 0x10
ret
bathroomX, bathroomY, bathroomZ = GetPointList(POINTLIST._1_05B_BATHROOMCHECK)
ceX, ceY, ceZ = GetPointList(POINTLIST._CARNIEENTRANCECORONA)
clx, cly, clz = GetPointList(gCoronaPointlistA)
csX, csY, csZ = GetPointList(POINTLIST._3_R09_N)
cx, cy, cz = GetPointList(gCoronaPointlist)
cx, cy, cz = GetPointList(POINTLIST._1_G1_DIARY)
cx, cy, cz = GetPointList(POINTLIST._1_G1_ROOMOBJECTIVE)
cx, cy, cz = GetPointList(POINTLIST._CM_CORONA)
cx, cy, cz = GetPointList(POINTLIST._HACKY_PLAYERSTART)
cx, cy, cz = GetPointList(POINTLIST._HACKY_PLAYERSTART02)
DropX, DropY, DropZ = GetPointList(DropoutContact.point)
dustX, dustY, dustZ = GetPointList(POINTLIST._6_02G_NORTONSMASH)
eX, eY, eZ = GetPointList(gEntranceDoorTrigger)
eX, eY, eZ = GetPointList(POINTLIST._1_01_ENDPOINT)
eX, eY, eZ = GetPointList(POINTLIST._DT_IBKSHOP_DOOR)
eX, eY, eZ = GetPointList(POINTLIST._DT_ICOMSHP_DOOR)
eX, eY, eZ = GetPointList(POINTLIST._DT_IGROCERY_DOOR)
finishX, finishY, finishZ = GetPointList(POINTLIST._2_S06_BLIPLATTICE)
FlaskFX_XYZ.x, FlaskFX_XYZ.y, FlaskFX_XYZ.z = GetPointList(POINTLIST._C4_FLASK_FX)
gardenX, gardenY, gardenZ = GetPointList(POINTLIST._NEW_GARDENCENTRE)
kissX, kissY, kissZ = GetPointList(POINTLIST._2_06_KISSKISS)
latticeX, latticeY, latticeZ = GetPointList(POINTLIST._4_01_BLIPLATTICE)
local ax, ay, az = GetPointList(POINTLIST._2_05_LIFTSPOT)
local ax, ay, az = GetPointList(POINTLIST._5_04_ANGRY_JOCKS_01)
local b2x, b2y, b2z = GetPointList(POINTLIST._1_S01_2ND_BOTTLE_BATH)
local b3x, b3y, b3z = GetPointList(POINTLIST._1_S01_3RD_BOTTLE_CAFE)
local bustX, bustY, bustZ = GetPointList(POINTLIST._2_S06B_BUSTPLAYER)
local bx, by, bz = GetPointList(location)
local bx, by, bz = GetPointList(POINTLIST._3_05_TENWINDOW)
local bx, by, bz = GetPointList(POINTLIST._3_S08_MAILBOXES)
local bx, by, bz = GetPointList(tblMissionParams[CurrentMissionIndex][1])
local bx, by, bz = GetPointList(tblMissionParams[CurrentMissionIndex][4])
local cameraX, cameraY, cameraZ = GetPointList(POINTLIST._1_05B_CAMERALOCKER)
local cameraX, cameraY, cameraZ = GetPointList(POINTLIST._1_11X2_CUTPOOPCAMERA)
local cameraX, cameraY, cameraZ = GetPointList(POINTLIST._3_04_CAMSTG3INTRO)
local camPosX, camPosY, camPosZ = GetPointList(gShoppingCam)
local controlX, controlY, controlZ = GetPointList(POINTLIST._5_03_CONTROLSWITCH)
local cx, cy, cz = GetPointList(POINTLIST._1_G1_MATHCLASS)
local cx, cy, cz = GetPointList(POINTLIST._1_G1_SECONDFLOORWINDOW)
local cx, cy, cz = GetPointList(POINTLIST._1_G1_WINDOWENTRY)
local dx, dy, dz = GetPointList(POINTLIST._4_S12_SEXYDRESS)
local ex, ey, ez = GetPointList(POINTLIST._5_03_EXIT_BLIP)
local eX, eY, eZ = GetPointList(POINTLIST._BAR_LIST_TAT_TRIGGER)
local fcX, fcY, fcZ = GetPointList(POINTLIST._4_06_INITIAL_GUARDS)
local fx, fy, fz = GetPointList(POINTLIST._3_01C_CAMPOINT01)
local fx, fy, fz = GetPointList(POINTLIST._4_02_FUSE_POINT)
local fx, fy, fz = GetPointList(POINTLIST._CM_CAMPOINT01)
local fx, fy, fz = GetPointList(POINTLIST._CM_TEACHERSPEAK)
local koX, koY, koZ = GetPointList(POINTLIST._3_R09_BLIPP3)
local look2X, look2Y, look2Z = GetPointList(POINTLIST._3_04_CAMSTG3INTRO3)
local lookX, lookY, lookZ = GetPointList(POINTLIST._1_11X2_CUTPOOPDOG)
local lookX, lookY, lookZ = GetPointList(POINTLIST._3_04_CAMSTG3INTRO2)
local lx, ly, lz = GetPointList(gPlayerPositionInStore)
local lx, ly, lz = GetPointList(POINTLIST._CM_PLAYERLOC)
local matX1, matY1 = GetPointList(POINTLIST._C3_RECTPT_01)
local matX2, matY2 = GetPointList(POINTLIST._C3_RECTPT_02)
local maxX, maxY = GetPointList(maxPoint)
local minX, minY = GetPointList(minPoint)
local newX, newY, z = GetPointList(idPoint)
local nx, ny, nz = GetPointList(POINTLIST._4_S12_NECKLACE)
local plx, ply, plz = GetPointList(POINTLIST._2_B_PSTART)
local plx, ply, plz = GetPointList(POINTLIST._CM_PLAYERLOC)
local prx, pry, prz = GetPointList(POINTLIST._5_04_PREVENT_RETURN)
local px, py, pz = GetPointList(player.startPosition)
local px, py, pz = GetPointList(POINTLIST._4_S12_PERFUME)
local px, py, pz = GetPointList(POINTLIST._5_05_MOWER)
local px, py, pz = GetPointList(POINTLIST._C3_PSTART)
local schoolx, schooly, schoolz = GetPointList(POINTLIST._PLAYER_START)
local setX, setY, setZ = GetPointList(POINTLIST._CLASS_ART)
local setX, setY, setZ = GetPointList(POINTLIST._DBALL_START)
local setX, setY, setZ, heading = GetPointList(POINTLIST._SPAWNPLAYER)
local snx, sny, snz = GetPointList(POINTLIST._4_02_SPUD_PATH_STOP)
local spx10, spy10, spz10 = GetPointList(POINTLIST._3_S11_SPARK10)
local spx8, spy8, spz8 = GetPointList(POINTLIST._3_S11_SPARK08)
local spx9, spy9, spz9 = GetPointList(POINTLIST._3_S11_SPARK09)
local startx, starty, startz, head = GetPointList(POINTLIST._3_01_PLAYERSTART)
local tbx, tby, tbz = GetPointList(POINTLIST._1_S01_BOTTLE3_CASE)
local tempX, tempY, tempZ = GetPointList(POINTLIST._1_02B_MOVEPLAYEREUNICE)
local tempX, tempY, tempZ = GetPointList(POINTLIST._1_02B_OBJSCHOOL)
local tempX, tempY, tempZ = GetPointList(POINTLIST._1_02B_SPAWNKARL)
local tempX, tempY, tempZ = GetPointList(POINTLIST._1_02C_SPAWNPLAYER)
local tempX, tempY, tempZ = GetPointList(POINTLIST._1_11X2_CUTPOOPPLAYER)
local tempX, tempY, tempZ = GetPointList(POINTLIST._2_G2_MOVEPLAYERWITHBEAR)
local tempX, tempY, tempZ = GetPointList(POINTLIST._3_04_CORNCUTJIMMY)
local tempX, tempY, tempZ = GetPointList(POINTLIST._3_S03_OUTROJIMMY)
local tempX, tempY, tempZ = GetPointList(POINTLIST._5_G5_CENTER)
local tempX, tempY, tempZ = GetPointList(POINTLIST._5_G5_ENDPLAYER)
local tempX, tempY, tempZ = GetPointList(POINTLIST._6_B_PLAYERPOSITION)
local tempX, tempY, tempZ = GetPointList(POINTLIST._BLIPBALCONY)
local tempX, tempY, tempZ = GetPointList(POINTLIST._BOYSDORM_1_11_RESPAWNPLAYER)
local testX, testY, testZ = GetPointList(POINTLIST._TESTCRATES)
local tx, ty, tz = GetPointList(POINTLIST._1_09_PSTART)
local tx, ty, tz = GetPointList(POINTLIST._C4_BUBBLEPOINT)
local vx, vy, vz = GetPointList(point)
local vx, vy, vz = GetPointList(POINTLIST._2_03_PLAYER_AFTER_EGGS)
local WarpToX, WarpToY, WarpToZ = GetPointList(POINTLIST.BASEBALLTOSS_MINIGAME_EXIT)
local x, y, z = GetPointList(bombLocation[1])
local x, y, z = GetPointList(bombLocation[2])
local x, y, z = GetPointList(bombLocation[3])
local x, y, z = GetPointList(bombLocation[4])
local x, y, z = GetPointList(bombLocation[5])
local x, y, z = GetPointList(bombLocation[6])
local x, y, z = GetPointList(bombLocation[7])
local x, y, z = GetPointList(bombLocation[8])
local x, y, z = GetPointList(car.point)
local x, y, z = GetPointList(gCorona)
local x, y, z = GetPointList(gCoronaPointlist)
local x, y, z = GetPointList(idPoint)
local x, y, z = GetPointList(janitor.nextPoint)
local x, y, z = GetPointList(key.Point)
local x, y, z = GetPointList(paths[pathNumber].point)
local x, y, z = GetPointList(ped.bike.point)
local x, y, z = GetPointList(player.start_pos)
local x, y, z = GetPointList(point)
local x, y, z = GetPointList(POINTLIST._1_03_BARRELBLIP)
local x, y, z = GetPointList(POINTLIST._1_09_AUDTRIG)
local x, y, z = GetPointList(POINTLIST._1_09_EARNEST)
local x, y, z = GetPointList(POINTLIST._1_S01_PHILLIPS)
local x, y, z = GetPointList(POINTLIST._2_01_RAZORSPAWN)
local x, y, z = GetPointList(POINTLIST._2_04_PETER)
local x, y, z = GetPointList(POINTLIST._2_05_GATECORONA)
local x, y, z = GetPointList(POINTLIST._2_05_WINDOW1)
local x, y, z = GetPointList(POINTLIST._2_S02_PLAYER_INTRO_NIS2)
local x, y, z = GetPointList(POINTLIST._2_S04_SHEET1START)
local x, y, z = GetPointList(POINTLIST._2_S05_DINCLIMBPOINT)
local x, y, z = GetPointList(POINTLIST._3_01_GOTOBLIP)
local x, y, z = GetPointList(POINTLIST._3_02_PARKSPAWN)
local x, y, z = GetPointList(POINTLIST._3_05_PSTART)
local x, y, z = GetPointList(POINTLIST._3_B_STAGE2_TELEPORT)
local x, y, z = GetPointList(POINTLIST._3_R09_FAILLOOKAT)
local x, y, z = GetPointList(POINTLIST._3_S09_DOOR)
local x, y, z = GetPointList(POINTLIST._3_S09_HELP)
local x, y, z = GetPointList(POINTLIST._3_S09_MANAGER)
local x, y, z = GetPointList(POINTLIST._3_S09_TEACHERSTART)
local x, y, z = GetPointList(POINTLIST._3_S11_PLAYER_ORDERLY)
local x, y, z = GetPointList(POINTLIST._3_S11_PLAYERCROUCH)
local x, y, z = GetPointList(POINTLIST._3_XM_SANTASTART)
local x, y, z = GetPointList(POINTLIST._3_XM_SEESANTA)
local x, y, z = GetPointList(POINTLIST._3B_MAGNETBLIP)
local x, y, z = GetPointList(POINTLIST._4_03_NERD_D2)
local x, y, z = GetPointList(POINTLIST._4_03_NIS_PLAYER)
local x, y, z = GetPointList(POINTLIST._4_05CUT_POOLJIMMY02)
local x, y, z = GetPointList(POINTLIST._4_06_OPAEND_PLAYER)
local x, y, z = GetPointList(POINTLIST._4_06_OPEND_PLAYER)
local x, y, z = GetPointList(POINTLIST._5_01_PLAYERENDINGSTART)
local x, y, z = GetPointList(POINTLIST._5_03_PLAYERCROUCH)
local x, y, z = GetPointList(POINTLIST._5_04_BURTON)
local x, y, z = GetPointList(POINTLIST._5_04_PLAYERMANDYCONV)
local x, y, z = GetPointList(POINTLIST._5_05_BURTONSTART)
local x, y, z = GetPointList(POINTLIST._5_07_DROPOUT_01)
local x, y, z = GetPointList(POINTLIST._5_09_PETEY)
local x, y, z = GetPointList(POINTLIST._5_B_FALLEN_SHIELD)
local x, y, z = GetPointList(POINTLIST._5_B_PLAYERENDNIS)
local x, y, z = GetPointList(POINTLIST._5_T1_BIKEDROP)
local x, y, z = GetPointList(POINTLIST._ALIGNMENTPOINT)
local x, y, z = GetPointList(POINTLIST._BEAMEFFECT)
local x, y, z = GetPointList(POINTLIST._BOXING_PLAYERSTART)
local x, y, z = GetPointList(POINTLIST._BOYSDORM_BEDWAKEUP)
local x, y, z = GetPointList(POINTLIST._C3_PLAYERVICTORY)
local x, y, z = GetPointList(POINTLIST._C4_ENDCAMLOOKAT)
local x, y, z = GetPointList(POINTLIST._C4_FLAMEPOINT)
local x, y, z = GetPointList(POINTLIST._C5_CAMERALOOKAT)
local x, y, z = GetPointList(POINTLIST._C5_CORONA)
local x, y, z = GetPointList(POINTLIST._C6_BURNINGEFFECT)
local x, y, z = GetPointList(POINTLIST._C6_PSTART)
local x, y, z = GetPointList(POINTLIST._CLASS_CHEM)
local x, y, z = GetPointList(POINTLIST._CM_CORONA)
local x, y, z = GetPointList(POINTLIST._CM_PLAYERLOC)
local x, y, z = GetPointList(POINTLIST._HACK_BIKEDUMP)
local x, y, z = GetPointList(POINTLIST._HACKYSACK02)
local x, y, z = GetPointList(POINTLIST._JDEST)
local x, y, z = GetPointList(POINTLIST._TATTOO_PLAYER)
local x, y, z = GetPointList(POINTLIST._TED02)
local x, y, z = GetPointList(POINTLIST._TED03)
local x, y, z = GetPointList(POINTLIST._TESTMIS1_SUCCESS)
local x, y, z = GetPointList(POINTLIST._TESTMIS2_SUCCESS)
local x, y, z = GetPointList(POINTLIST._TESTMIS3_SUCCESS)
local x, y, z = GetPointList(POINTLIST._TESTPEDTRANPED3)
local x, y, z = GetPointList(POINTLIST._TFIGHT01_C)
local x, y, z = GetPointList(POINTLIST._TPHOTO_PSTART)
local x, y, z = GetPointList(POINTLIST.CLASS_CHEM)
local x, y, z, heading = GetPointList(POINTLIST._2_B_DARBY_REST)
local x, y, z, heading = GetPointList(POINTLIST._2_B_DARBY_RETURN_FROM_REST)
local x, y, z, r1, r2, r2 = GetPointList(player.bike.location)
local x1, y1, z1 = GetPointList(POINTLIST._1_09_HALLTRIG)
local x1, y1, z1 = GetPointList(POINTLIST._2_09_BOXINGCLUBDOOR)
local x1, y1, z1 = GetPointList(POINTLIST._5_03_1STFLOOR_DO3)
local x1, y1, z1 = GetPointList(POINTLIST._5_03_1STFLOOR_DO4)
local x1, y1, z1 = GetPointList(POINTLIST._5_03_PATIENT_ROOM1)
local x2, y2, z2 = GetPointList(point)
local x2, y2, z2 = GetPointList(POINTLIST._3_S11_PATH2_DOOR1)
local x2, y2, z2 = GetPointList(POINTLIST._3_XM_SANTASTART)
local x2, y2, z2 = GetPointList(POINTLIST._5_T1_BIKEDROP)
local Xp, Yp, z = GetPointList(player.start_pos)
local xv, yv, zv = GetPointList(POINTLIST._5_06_PLAYERBIKE)
lx, ly, lz = GetPointList(gLookAtPoint)
lx, ly, lz = GetPointList(gLookAtPoint2)
meetX, meetY, meetZ = GetPointList(POINTLIST._2_G2_PINKYARRIVED)
mpx, mpy, mpz = GetPointList(POINTLIST._3_R09_GOTO)
mrx, mry, mrz = GetPointList(POINTLIST._4_06_DOSSIER_D)
pooTargetX, pooTargetY, pooTargetZ = GetPointList(POINTLIST._1_11X2_BLIPLOUNGE)
return tblBusLocations[2].leave, tblBusLocations[2].player, GetPointList(tblBusLocations[2].camera)
setX, setY, setZ = GetPointList(POINTLIST._3_S09_RAULTEST_PLAYERSTART)
sprinklerX, sprinklerY, sprinklerZ = GetPointList(tableSprinklers[i])
sX, sY, sZ = GetPointList(POINTLIST._CM_CORONA)
sX, sY, sZ = GetPointList(POINTLIST._STAIRCORONA)
tempX, tempY, tempZ = GetPointList(POINTLIST._1_02B_BLIPGARBAGE)
tempX, tempY, tempZ = GetPointList(POINTLIST._1_02B_MOVEPLAYERLOCKER)
tempX, tempY, tempZ = GetPointList(POINTLIST._1_02B_MOVEPLAYERRUSSELL1)
tempX, tempY, tempZ = GetPointList(POINTLIST._1_02B_MOVEPLAYERRUSSELL2)
tempX, tempY, tempZ = GetPointList(POINTLIST._1_02B_SPAWNCHOCOLATES)
tempx, tempy, tempz = GetPointList(POINTLIST._3_S03_FACETARGETPOOL)
tempX, tempY, tempZ = GetPointList(POINTLIST._5_09_CITYHALL_SQUARE)
tempX, tempY, tempZ = GetPointList(POINTLIST._5_09_CITYHALL_TAG)
theaterX, theaterY, theaterZ = GetPointList(POINTLIST._2_06_THEATER)
thumpX, thumpY, thumpZ = GetPointList(POINTLIST._6_02G_NORTONSMASH02)
x, y, z = GetPointList(car.point)
x, y, z = GetPointList(effectTable.pointlist)
x, y, z = GetPointList(paths[pathNumber].point)
x, y, z = GetPointList(pointlist)
x, y, z = GetPointList(POINTLIST._2_01_PANTYSPAWN)
x, y, z = GetPointList(POINTLIST._2_01_PLAYERSTORE)
x, y, z = GetPointList(POINTLIST._4_06_OBJECTIVE_C)
x, y, z = GetPointList(POINTLIST._NEXT_TO_BED)
x, y, z = GetPointList(POINTLIST._PLAYER_START)
x, y, z = GetPointList(POINTLIST._TESTMIS1_FAILURE)
x, y, z = GetPointList(POINTLIST._TESTMIS2_FAILURE)
x, y, z = GetPointList(POINTLIST._TESTMIS3_FAILURE)
x, y, z = GetPointList(tblEntry.idLookAtPoint)
x, y, z = GetPointList(tblWitchSteam[1].point)
x, y, z = GetPointList(tblWitchSteam[2].point)
x1, y1, z1 = GetPointList(Objectives[5].loc)
x1, y1, z1 = GetPointList(Objectives[i].loc)
x1, y1, z1 = GetPointList(point)
x1, y1, z1 = GetPointList(POINTLIST._4_06_OBJECTIVE_A)
x1, y1, z1 = GetPointList(POINTLIST._4_06_OBJECTIVE_F)
x1, y1, z1 = GetPointList(tblBusLocations[location].camera)
x2, y2, z2 = GetPointList(POINTLIST._3_XM_SANTASTART)
xf, yf, zf = GetPointList(POINTLIST._BASEBALLTOSS_EFFECT1)
xf, yf, zf = GetPointList(POINTLIST._BASEBALLTOSS_EFFECT2)
xf, yf, zf = GetPointList(POINTLIST._BASEBALLTOSS_EFFECT3)
xf, yf, zf = GetPointList(POINTLIST._BASEBALLTOSS_EFFECT4)
xf, yf, zf = GetPointList(POINTLIST._BASEBALLTOSS_EFFECT5)
xf, yf, zf = GetPointList(POINTLIST._MGS_EFFECT1)
xf, yf, zf = GetPointList(POINTLIST._MGS_EFFECT2)
xf, yf, zf = GetPointList(POINTLIST._MGS_EFFECT3)
xf, yf, zf = GetPointList(POINTLIST._MGS_EFFECT4)
xf, yf, zf = GetPointList(POINTLIST._MGS_EFFECT5)
z = GetPointList(POINTLIST._4_S12_MSPHILLIPS),
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x20]
push edi
xor ebx, ebx
push ebx
push esi
mov dword ptr [esp+0x18], ebx
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, 0xBC5E7C
call 0x6D6450
mov ebp, eax
mov ecx, ebp
call 0x6D59B0
mov edi, eax
test edi, edi
jz 0xA1
lea esp, ptr [esp]
mov ecx, ebp
call 0x6D59F0
mov ecx, dword ptr [edi+0x4]
mov edx, dword ptr [edi+0x8]
mov ebx, eax
mov eax, dword ptr [edi]
mov dword ptr [esp+0x14], eax
fld st, dword ptr [esp+0x14]
push ecx
fstp dword ptr [esp], st
push esi
mov dword ptr [esp+0x20], ecx
mov dword ptr [esp+0x24], edx
call LuaParam::PushFloat
fld st, dword ptr [esp+0x20]
add esp, 0x4
fstp dword ptr [esp], st
push esi
call LuaParam::PushFloat
fld st, dword ptr [esp+0x24]
add esp, 0x4
fstp dword ptr [esp], st
push esi
call LuaParam::PushFloat
fld st, dword ptr [edi+0x1C]
add esp, 0x4
fstp dword ptr [esp], st
push esi
call LuaParam::PushFloat
fldz
add esp, 0x4
fstp dword ptr [esp], st
push esi
call LuaParam::PushFloat
fldz
add esp, 0x4
fstp dword ptr [esp], st
push esi
call LuaParam::PushFloat
add dword ptr [esp+0x18], 0x6
add esp, 0x8
test ebx, ebx
mov edi, ebx
jnz 0xFFFFFF7E
mov eax, dword ptr [esp+0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
for i = 1, GetPointListSize(pointlist) do
for i = 1, GetPointListSize(POINTLIST._4_03_FRAFFYCANS) do
for i = 1, GetPointListSize(POINTLIST._PANMAIN_SPRINKLERS) do
local count = GetPointListSize(point)
local n = GetPointListSize(POINTLIST._5_B_STEAM)
local n = GetPointListSize(POINTLIST._JANELECPTS)
local n = GetPointListSize(POINTLIST._JANSTEAMPTS)
local n = GetPointListSize(points)
local s = GetPointListSize(POINTLIST._1_03_PICKUPBRICKS)
local s = GetPointListSize(POINTLIST._5_02_RATS)
pointlistSize = GetPointListSize(pointlist)
s = GetPointListSize(POINTLIST._5_02AMBIENTRATS)
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, 0xBC5E7C
call 0x6D6450
test eax, eax
jnz 0x13
push eax
push esi
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
pop esi
ret
mov ecx, eax
call 0x6D5950
push eax
push esi
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
pop esi
ret
CLIENT
Returns the maximum amount of objects in a pool. The pool can be "PTR_NODE", "ENTRY_INFO_NODE", "VEHICLE", "PED", "JOINT_CONSTRAINT", "WEAPON", "LUA_SCRIPT", "DUMMY", "PROP_ANIM", "BUILDING", "TREADABLE", "COL_MODEL", "STIMULUS", "OBJECT", "PROJECTILE", "CUT_SCENE", or "UNKNOWN".
CLIENT
Returns the space left in a pool by subtracting the usage from the size. See GetPoolSize for pool names.
CLIENT
Returns the amount of objects in the pool. See GetPoolSize for pool names.
SHARED
Returns the root table for persistent data tables. Use GetPersistentDataTable instead whenever possible.
CLIENT
Returns the root table for save data. Use GetSaveDataTable instead whenever possible.
-- never used
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
ret
CLIENT
Returns a table that will be saved inside the game's save file. Be sure to make your id a unique string that other mod authors are unlikely to use by mistake.
Usually you should only call this function in a game thread to make sure the save data is loaded by time it is called. For example, call it in MissionSetup or main instead of at the top of your script.
CLIENT
Takes a 3D position and tries to calculate a 2D screen position for it. If the position is not on the screen, nothing is returned.
SHARED
Returns the name of the script's collection (mod).
If no script is given, the current one is used.
SHARED
Returns the script's environment table.
If no script is given, the current one is used.
SHARED
Returns the path to the current mod relative to the game's process. If name is given, it is concatenated.
If no DSL script is running, "Scripts/" is used as the path instead.
SHARED
Returns the script's name.
If no script is given, the current one is used.
SHARED
Returns the script's shared table. This table can be used by multiple scripts from the same mod to communicate with each other.
If no script is given, the current one is used.
CLIENT
Returns how many bytes have been sent since the last time this function was called. Primarily intended for debugging network usage of network scripts.
SERVER
Returns how many bytes have been sent since the last time this function was called. Primarily intended for debugging network usage of network scripts.
CLIENT
Returns the current simulation speed. Usually this is 1.0 by default.
if GetSkippedClasses() >= threshold.skipped_classes then
function GetSkippedClasses()
local total = 0
for i, class_skipped in shared.gClassesSkipped do
if class_skipped then
total = total + 1
end
end
return total
end
current_punishment = current_punishment + GetSkippingPunishment()
function GetSkippingPunishment()
local skipping_punishment = 0
for i, threshold in gSkippingPunishmentThresholds do
if GetSkippedClasses() >= threshold.skipped_classes then
skipping_punishment = threshold.punishment_points
end
end
return skipping_punishment
end
clothingHeading = clothingHeading + 5 * GetStickValue(18, 0)
elseif GetStickValue(18, 0) then
if (GetStickValue(16, 0) < -0.5 or IsButtonPressed(1, 0)) and gCurrentMidget == 1 then
if (GetStickValue(16, 0) > 0.5 or IsButtonPressed(0, 0)) and gCurrentMidget == 2 then
if -0.5 > GetStickValue(17, 0) or IsButtonPressed(3, 0) then
if 0.5 < GetStickValue(17, 0) or IsButtonPressed(2, 0) then
if IsButtonPressed(2, 0) or GetStickValue(17, 0) > 0.5 then
if IsButtonPressed(3, 0) or GetStickValue(17, 0) < -0.5 then
local stick2Y = GetStickValue(19, 0)
stick1X = -GetStickValue(16, 0)
stick1Y = -GetStickValue(17, 0)
stick2X = -GetStickValue(18, 0)
stick2Y = -GetStickValue(18, 0)
stickX = -GetStickValue(16, 0)
stickX = -GetStickValue(18, 0)
stickY = -GetStickValue(17, 0)
stickY = -GetStickValue(19, 0)
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x1
push esi
call LuaParam::GetInt
push 0x0
push esi
mov edi, eax
call LuaParam::GetInt
push edi
push eax
call 0x738840
fstp dword ptr [esp+0x20], st
fld st, dword ptr [esp+0x20]
add esp, 0x14
fstp dword ptr [esp], st
push esi
call LuaParam::PushFloat
add esp, 0x8
pop edi
mov eax, 0x1
pop esi
pop ecx
ret
char = GetStudent(POIPointFaction, POIGender, -1)
local biker = GetStudent(4, 1, -1)
local biker = GetStudent(facchoice, POIGender, -1)
local model = GetStudent(POIPointFaction, 1, -1)
local ped1 = GetStudent(POIPointFaction, 1, -1)
local ped1 = GetStudent(POIPointFaction, POIGender, -1)
local ped2 = GetStudent(POIPointFaction, POIGender, -1)
local pedModel = GetStudent(POIPointFaction, 1, -1)
local VictimChoice = GetStudent(POIPointFaction, spawnGender)
model = GetStudent(11, 1)
model = GetStudent(2, 1)
model = GetStudent(4, 1)
model = GetStudent(5, 1)
model = GetStudent(POIPointFaction, 1)
model = GetStudent(POIPointFaction, POIGender, -1)
ped1 = GetStudent(12, POIGender)
ped1 = GetStudent(12, POIGender, -1)
ped1 = GetStudent(3, POIGender)
ped1 = GetStudent(6, 1, -1)
ped1 = GetStudent(8, -1, -1, false)
ped1 = GetStudent(charType, 1, -1)
ped1 = GetStudent(charType, POIGender, -1)
ped1 = GetStudent(faction, 0, -1)
ped1 = GetStudent(ped1, 1, -1)
ped1 = GetStudent(POIPointFaction, 1)
ped1 = GetStudent(POIPointFaction, 1, -1)
ped1 = GetStudent(POIPointFaction, 1, -1, false)
ped1 = GetStudent(POIPointFaction, 1, 1)
ped1 = GetStudent(POIPointFaction, 1, 1, false)
ped1 = GetStudent(POIPointFaction, 2, -1)
ped1 = GetStudent(POIPointFaction, 2, 1, false)
ped1 = GetStudent(POIPointFaction, POIGender)
ped1 = GetStudent(POIPointFaction, POIGender, -1)
ped1 = GetStudent(POIPointFaction, POIGender, -1, false)
ped1 = GetStudent(RandomElement4(6, 5, 2, 4), 1, 1)
ped1 = GetStudent(RandomElement4(6, 5, 2, 4), 1, 1, false)
ped1 = GetStudent(RandomElement4(6, 5, 2, 4), 2, 1, false)
ped1 = GetStudent(RandomElement5(6, 5, 2, 4, 11), 1, 1, false)
ped1_ModelID = GetStudent(POIPointFaction, 1)
ped2 = GetStudent(1, 1, -1)
ped2 = GetStudent(1, 1, -1, false)
ped2 = GetStudent(1, 1, 1)
ped2 = GetStudent(1, POIGender, -1)
ped2 = GetStudent(12, POIGender)
ped2 = GetStudent(12, POIGender, -1)
ped2 = GetStudent(5, POIGender, -1)
ped2 = GetStudent(6, 1, -1)
ped2 = GetStudent(6, 2, 1)
ped2 = GetStudent(6, 2, 1, false)
ped2 = GetStudent(charType, 1, -1)
ped2 = GetStudent(charType, 1, -1, false)
ped2 = GetStudent(charType, POIGender, -1)
ped2 = GetStudent(charType, POIGender, -1, false)
ped2 = GetStudent(POIPointFaction, 2, -1)
ped2 = GetStudent(POIPointFaction, POIGender)
ped2 = GetStudent(RandomElement2(6, POIPointFaction), 1, 1, false)
ped2 = GetStudent(RandomElement2(6, POIPointFaction), 2, -1)
ped2 = GetStudent(RandomElement2(6, POIPointFaction), 2, 1)
ped2 = GetStudent(RandomElement2(6, POIPointFaction), 2, 1, false)
ped2 = GetStudent(RandomElement4(4, 5, 2, 11), 1, 1)
ped2 = GetStudent(RandomElement4(6, 5, 2, 4), 1, 1, false)
ped2 = GetStudent(RandomElement4(6, 5, 2, 4), 2, 1, false)
ped2_ModelID = GetStudent(POIPointFaction, 1)
ThugChoice = GetStudent(charType, spawnGender)
ThugChoice = GetStudent(F_GetOpposingFaction(POIPointFaction), spawnGender)
ThugChoice = GetStudent(POIPointFaction, spawnGender)
VictimChoice = GetStudent(factionchoice, spawnGender)
function GetStudent(POIFaction, POIGender, size, UseHalloweenModels)
local pickedModel = 0
local possibleFaction
if UseHalloweenModels == nil then
UseHalloweenModels = true
end
if size == nil then
size = -1
end
if POIGender == nil then
POIGender = 0
end
if POIFaction == nil then
POIFaction = 12
end
if shared.gHalloweenActive == true and UseHalloweenModels == true then
local AreaCount = 13
if AreaGetVisible() == 14 then
AreaCount = 11
end
for pedCount = 1, AreaCount do
if AreaCount == 13 then
pickedModel = RandomElement13(159, 161, 162, 163, 164, 166, 168, 167, 169, 170, 171, 173, 174)
else
pickedModel = RandomElement11(159, 161, 162, 163, 164, 168, 169, 170, 171, 173, 174)
end
if 0 < PedGetPedCountWithModel(pickedModel) then
pickedModel = 0
pedCount = pedCount + 1
else
pedCount = AreaCount + 1
return pickedModel
end
end
return -1
end
local ModelUniqueStatus = -1
local ModelCurrentCount = 0
for pedCount = 1, 7 do
if POIFaction == 12 then
possibleFaction = RandomElement5(6, 1, 5, 2, 4)
pickedModel = PedGetRandomModelId(possibleFaction, POIGender, size)
else
pickedModel = PedGetRandomModelId(POIFaction, POIGender, size)
end
if 0 < PedGetUniqueModelStatus(pickedModel) and PedGetPedCountWithModel(pickedModel) >= PedGetUniqueModelStatus(pickedModel) then
pickedModel = nil
else
pedCount = 8
return pickedModel
end
end
return -1
end
SERVER
Returns the name of a sync dimension. If the dimension was created by CreateDimension and not given a name, an empty string is returned.
SERVER
Returns how many more dimensions could be created. The maximum dimension count is 128, including the main dimension.
SHARED
Returns a sync entity given a sync id, or nothing if no sync entity is associated with the sync id.
SHARED
Returns a sync id given a sync entity. Keep in mind you do not need to use this function to send refer to entities with SendNetworkEvent, you can simply pass the sync entity object directly.
SERVER
Returns the player that owns the sync entity, or nothing if it is not owned by any player.
SHARED
Returns the position of a sync entity as 3 coordinates and a heading (in radians).
SERVER
Returns how many more sync entities could be created in the active dimension. The maximum entity count is 512 per dimension.
SERVER
Returns the main sync dimension. This dimension is active by default for each script, and can not be deleted.
SHARED
Returns the sync vehicle a sync ped is in, or nothing if they're not in a vehicle.
SERVER
Returns a player from a sync ped. If the sync ped is not a player ped, nothing is returned.
SHARED
Returns a player's sync ped, or nothing if they don't have one. All connected players are given a sync ped and will have one until they're dropped.
SHARED
Returns the sync ped in a sync vehicle, or nothing if there isn't one. If a seat is not specified, it will be zero by default.
CLIENT
Returns a text formatting table. This table contains values expected by SetTextFormatting.
function GetTextQueueSize()
return table.getn(gTextTable)
end
CLIENT
Returns an aspect ratio that can be used to draw the texture properly. Multiply your ideal height by this value to get an ideal width.
CLIENT
Returns a string describing the format used to store this texture. Usually not important, but may be useful for debugging some things.
SHARED
Returns the thread's name if it has one.
If no thread is given, the current one is used.
SHARED
Returns the amount of time the thread was told to wait. Useful when running your own coroutines that call Wait.
If no thread is given, the current one is used.
CLIENT
Returns a timecycle object that's referencing one of the game's main timecycles, meaning any changes to it will be visible in-game. The hour should be in the range [0, 23], season in the range [0, 3], and weather in the range [0, 5].
--DebugPrint("removing from queue: mText: " .. tostring(event.mText) .. " mTime: " .. tostring(event.mTime) .. " mStyle: " .. tostring(event.mStyle) .. " at time: " .. GetTimer())
--DebugPrint("removing from queue: mSpeechPed: " .. tostring(event.mSpeechPed) .. " mSpeechEvent: " .. tostring(event.mSpeechEvent) .. " mParam: " .. tostring(event.mParam) .. " at time: " .. GetTimer())
--DebugPrint("Time is now: " .. GetTimer())
--print(" >>>> I HAVE JUST ERASED ", triggerId, pId, " BEING A TYPE ", pType, "In Path", pathNo, GetTimer())
--print("<<<<<<<<<<<<< F_CreateProp END", trigger, pType, propid, GetTimer())
--print("===== Burton Debug ====", tostring(bBurtonShouldShout), BurtonLastShoutedTime, GetTimer())
--print(">>>[RUI]", "bCarHit: time: " .. GetTimer())
--print("Game time ended = " .. GetTimer())
--print("playing event:" .. tostring(event.mSpeechEvent) .. " parameter: " .. tostring(event.mParam) .. " at time: " .. GetTimer())
__LastButtonTime[timerIndex] = GetTimer()
aftershotTimer = GetTimer() + 0
AlarmTime = GetTimer()
angel.timer = GetTimer()
AuxiliaryTimer = GetTimer()
bat.time = GetTimer() + 1000
bat.time = GetTimer() + 2250
bat.time = GetTimer() + 500
bat.wingtime = GetTimer() + 200
bBurtonWorkoutTimer = GetTimer() + 15000
bEggTimer = GetTimer()
BurtonLastShoutedTime = GetTimer() + 10000
buttonTime = GetTimer()
car.startWait = GetTimer()
checkTime = GetTimer()
cSecondaryTimer = GetTimer()
cTertiaryTimer = GetTimer()
cTimer = GetTimer()
Current_Timer_Time = GetTimer()
currentPed.timeSeen = GetTimer()
difficultyTime = GetTimer()
eggTimer = GetTimer() + 2250
elfAttackDelay = elfAttackDelay + (GetTimer() - lastTimeCheck)
elseif 1000 < GetTimer() - gClerkTimer then
elseif 3000 < GetTimer() - gSpeechTimer then
elseif 5 <= classNo and GetTimer() - gSpeechTimer > 15000 then
elseif 5000 < GetTimer() - gPlayerHasBall then
elseif 5500 < GetTimer() - gSpeechTimer then
elseif bEarnestStage2Timer and GetTimer() >= gEarnestStage2Timer then
elseif bEarnestStage3Timer and GetTimer() >= gEarnestStage3Timer then
elseif bOutOfAmmo and GetTimer() >= bEggTimer + 5000 and not bGoGetAmmo then
elseif EdgarInElevator and GetTimer() - gEdgarInElevatorTime > 3000 then
elseif gCurrentSpeech == 1 and GetTimer() - gTimeEdnaTalked > 5000 then
elseif gCurrentSpeech == 2 and GetTimer() - gTimeEdnaTalked > 5000 then
elseif gEdnaSpeechTimer and GetTimer() - gEdnaSpeechTimer > 8000 then
elseif GetTimer() - gAvoidingTime > gTotalAvoidTime then
elseif GetTimer() - gBlinkTime > 300 then
elseif GetTimer() - gLackey[10].gTimer > 50000 then
elseif GetTimer() - gMarbleTimer > 2000 and gTackedJocks < 3 then
elseif GetTimer() - gSpeechTimer > 15000 then
elseif GetTimer() - gSpeechTimer > 2000 then
elseif GetTimer() - gSpeechTimer > 20000 then
elseif GetTimer() - gSpeechTimer > 5000 then
elseif GetTimer() - gStartTime > 4000 then
elseif GetTimer() - gStartTime > gMissionTimeLimit * 0.6 then
elseif GetTimer() - gStartTime > gMissionTimeLimit * 0.7 then
elseif GetTimer() - nOutOfAmmoGracePeriod > 2500 then
elseif GetTimer() >= gEagleHitTime then
elseif gFailureTimer + 5000 < GetTimer() and not F_PedIsDead(gPlayer) then
elseif gStinkBombTimer + 5000 <= GetTimer() then
elseif PlayerIsInTrigger(TRIGGER._1_04_SUPPRESSPARKINGPOP) and bSetWindows and gWindowsTimer <= GetTimer() and not bMakeEmHard then
elseif PlayerIsInTrigger(TRIGGER._PLAYER_ROOM) and timerGarySpeak + 10000 <= GetTimer() then
elseif respawnTimer01 and GetTimer() - respawnTimer01 > gRespawnTime then
elseif respawnTimer01 and GetTimer() - respawnTimer01 > gRespawnTimeB then
elseif respawnTimer02 and GetTimer() - respawnTimer02 > gRespawnTimeB then
elseif Stage == 1 and difficultyTime + 120000 <= GetTimer() then
elseif Stage == 2 and difficultyTime + 180000 <= GetTimer() then
elseif Stage == 3 and difficultyTime + 240000 <= GetTimer() then
elseif Stage == 4 and difficultyTime + 300000 <= GetTimer() then
elseif Stage == 5 and difficultyTime + 360000 <= GetTimer() then
elseif tblEntry.nextMoveTime and GetTimer() >= tblEntry.nextMoveTime and GetTimer() >= tblEntry.createTime + 4000 then
elseif tblTad.mode == TAD_REINFORCEPHASE2 and GetTimer() - tblTad.reinforcementTime > 1500 then
encourageTime = GetTimer()
endTimer = GetTimer()
EnemyTime = GetTimer()
enteredRoom = enteredRoom or GetTimer()
equipTimer = GetTimer()
failTimer = GetTimer()
familySpawnDelay = familySpawnDelay + (GetTimer() - timeLastChecked)
flashTime = GetTimer() + 100
gAchieveReveiverTime = GetTimer()
gameOverTimeOut = GetTimer() + 5000
GameTime = GetTimer({})
gAreaCountDownTimer = GetTimer() + 1000
gAvoidingTime = GetTimer()
gBaseballCheckTime = GetTimer() + 200
gBikeCountDownTime = GetTimer() + 1000
gBikeExitTimer = GetTimer() + BIKE_REENTRY_DELAY
gBlinkTime = GetTimer()
gBurtonSpeakTimer = GetTimer()
gCamTimer = GetTimer()
gCarCheckTimer = GetTimer()
gChristyChatterTimer = GetTimer()
gClerkTimer = GetTimer()
gCrowdCheerTime = GetTimer() + 5000
gCrowdCheerTime = GetTimer() + 5000 + math.random(2000, 5000)
gCurrentChargeTime = GetTimer()
gCurrentRespawnTime = GetTimer()
gCurrentTime = GetTimer()
gDarbyRestingTime = GetTimer()
gDeathTime = GetTimer()
gDistanceCountDownTimer = GetTimer() + 1000
gDropTime = GetTimer()
gEagleAttactTime = GetTimer() + 5000
gEagleHitTime = GetTimer() + 250
gEagleLaunchTime = GetTimer() + 1500
gEagleWingTime = GetTimer() + 1000
gEagleWingTime = GetTimer() + 500
gEarnestStage2Timer = GetTimer() + 6000
gEarnestStage3Timer = GetTimer() + 3000
gEdgarInElevatorTime = GetTimer()
gEdnaSpeechTimer = GetTimer()
gEnemySumoTime = GetTimer()
gExitTimer = GetTimer()
gExitTimer = GetTimer() + 15000
gExitTimer = GetTimer() + GAMEAREA_RETURN_DELAY
gFailTimer = GetTimer()
gFailureTimer = GetTimer()
gFailureTimer = GetTimer() + MAX_FAILURE_DELAY
gHattrickLeaveTimer = GetTimer() + 3500
gHattrickReachBathroomTime = GetTimer()
gInvulnerableTime = GetTimer()
gkoTimer = GetTimer() + 2000
gLackey[10].gTimer = GetTimer()
gLadyChatterTimer = GetTimer()
gLastInstructions = GetTimer()
gLastSpawn = GetTimer()
gLastTimePressed = GetTimer()
gLastTimeScreamedForHelp = GetTimer()
gLights[lightNo].currentBlinkTime = GetTimer()
gLitTime = GetTimer()
gMandyTalkTimer = GetTimer()
gMarbleTimer = GetTimer()
gMascotSpeechTimer = GetTimer()
gMatTimer = GetTimer()
gMowerCountDownTime = GetTimer() + 1000
gMowerExitTimer = GetTimer() + delay
gMowerExitTimer = GetTimer() + MOWER_REENTRY_DELAY
gNewTaggerTimer = GetTimer() + 2500
gPaperTimer = GetTimer() + 4000
gPeanutTimer = GetTimer()
gPedsFled = GetTimer()
gPeeTimer = GetTimer()
gPinkyMGActionTimer = GetTimer()
gPissTimerStarted = GetTimer()
gPlayerBumped = GetTimer()
gPlayerHasBall = GetTimer()
gPreviousTextClock = GetTimer()
gPropSpawnTimer = GetTimer() + gPropSpawnWaitTime
gRoomHintTimer = GetTimer() + 2000
gRoomHintTimer = GetTimer() + HINT_DELAY + 2000
gRoomHintTimer = GetTimer() + HINT_DELAY + 4000
gRoomHintTimer = GetTimer() + HINT_DELAY + math.random(3000, 5000)
gRussellTimer = GetTimer()
gSlowdown = GetTimer()
gSomeoneGotHitTimer = GetTimer() + 500
gSpawnAJockTimer = GetTimer()
gSpawningTimer = GetTimer()
gSpeechTimer = GetTimer()
gSpeechTimer = GetTimer() + 5000
gStartedLoop = GetTimer()
gStartTime = GetTimer()
gSteamOnTimer = GetTimer()
gStinkBombTimer = GetTimer()
gSumoTimer = GetTimer()
gTagTimer = GetTimer() + 2000
gTauntTimer = GetTimer()
gTauntTimer = GetTimer() + 1000
gTauntTimer = GetTimer() + 5000
gTauntTimer = GetTimer() + 5000 + math.random(1000, 2000)
gTauntTimer = GetTimer() + 8000
gTedOnPointTime = GetTimer()
gTedStartTime = GetTimer()
gTextQueueTimer = GetTimer()
gTimeEdnaTalked = GetTimer()
gTimeFinalStart = GetTimer()
gTimeOutTimer = GetTimer() + race.finish_delay
gTimer = GetTimer()
gTimer = GetTimer() + 57000
gTimerFireAlarm = GetTimer()
gTimerRecruitGary = GetTimer()
gTimeRussellStartedHarassing = GetTimer()
gTimeStarted = GetTimer()
gTPTimer = GetTimer()
gTrackExitTimer = GetTimer() + TRACK_EXIT_FAILURE_DELAY
gTryingTime = GetTimer()
gTutorialTimer = GetTimer()
guy.time = GetTimer() + 3000
gWindowsTimer = GetTimer() + 1000
highScoreTimer = GetTimer() + 5000
hitTimer = GetTimer()
hornet.time = GetTimer() + 1500
hornet.time = GetTimer() + 2500
hornet.time = GetTimer() + 500
hornet.time = GetTimer() + nexttime + 1000
hornet.time = GetTimer() + respawntime
hornet.wingtime = GetTimer() + 100
if (bLitFountain and GetTimer() >= gLitTime + 17000 or bDroppedIt and GetTimer() >= gDropTime + 15000) and PedGetAmmoCount(gPlayer, 397) == 0 and not bOutOfAmmo then
if (GetTimer() - gPeanutTimer) / 1000 > 300 then
if (GetTimer() - gPreviousTextClock) / 1000 > gPreviousTextTimer or F_SkipOrNot(event.mSkip) then
if 0 < flashscore and flashTime <= GetTimer() then
if 1000 < GetTimer() - gMatTimer then
if 2000 < GetTimer() - startTime then
if 25000 < GetTimer() - gCamTimer then
if 4000 < GetTimer() - waitForBallTime then
if 5000 < GetTimer() - startTime then
if 7000 < GetTimer() - timeout then
if 8 <= exphour and exphour < 19 and not MissionActive() and GetTimer() - nTimerStarted > 240000 then
if AuxiliaryTimer and GetTimer() - AuxiliaryTimer > 18000 then
if bAlgieNeedsToGo and gPeeTimer + gAlgiePeeDanceWait < GetTimer() then
if bAlgieWhine01 and not bAlgieWhine02 and timerAlgieWhine + 20000 < GetTimer() then
if bAlgieWhine03 and not bAlgieWhine04 and timerAlgieWhine + 20000 < GetTimer() then
if bDarbyAtRest and GetTimer() - gDarbyRestingTime > gDarbyCheerDelay then
if bDroppedIt and GetTimer() >= gDropTime + 10000 and PedGetAmmoCount(gPlayer, 372) == 0 and not bOutOfAmmo then
if bEdnaShrug and GetTimer() > shrugTimer + 1000 then
if bHandHolding and not bPlayerIsSpotted and PedIsValid(gord) and PedIsValid(lola) and GetTimer() - nTimerSpeech >= 6500 and not SoundSpeechPlaying(gord) and not SoundSpeechPlaying(lola) then
if bOutOfEggs and GetTimer() >= eggTimer and not F_PedIsDead(gPlayer) then
if bS01 and GetTimer() - tS01 > gPathWaits[1] then
if bS02 and GetTimer() - tS02 > gPathWaits[2] then
if bS03 and GetTimer() - tS03 > gPathWaits[3] then
if bSomeoneGotHit and GetTimer() >= gSomeoneGotHitTimer then
if bWhereEaglesDare and gEagleLaunchTime <= GetTimer() then
if currentCarIndex ~= indexChange and GetTimer() - lastChange > changeInterval then
if currentS <= 0 and gEnemyDied and GetTimer() - gCurrentRespawnTime >= gTimeForRespawn then
if deadTime <= GetTimer() then
if flashscore ~= 0 and flashTime <= GetTimer() then
if gBurtonSpeakTimer and GetTimer() - gBurtonSpeakTimer > BURTONSPEAKTIME then
if gChangeAnimTime < GetTimer() - gTryingTime then
if gChangingAnimNode and GetTimer() - gTryingTime > gChangeAnimTime then
if gCreateChargingEnemy and GetTimer() - gCurrentChargeTime >= gTimeForCharge then
if gEagleAttactTime <= GetTimer() then
if gEagleWingTime <= GetTimer() then
if GetTimer() - angel.timer > 100 then
if GetTimer() - encourageTime >= encourageMaxTime then
if GetTimer() - gAnimQueueTimer >= gAnimWaitTimer then
if GetTimer() - gBlinkTime > 50 then
if GetTimer() - gCamTimer > 30000 then
if GetTimer() - gCarCheckTimer > 300 then
if GetTimer() - gEnemySumoTime > gEnemyRateTime then
if GetTimer() - gExitTimer > GAMEAREA_RETURN_DELAY then
if GetTimer() - gFailTimer > 5000 then
if GetTimer() - gInvulnerableTime > gTotalInvulnerableTime then
if GetTimer() - gLackey[10].gTimer > 5000 then
if GetTimer() - gLastSpawn > gSpawnTime then
if GetTimer() - gLastTimeScreamedForHelp > 6000 then
if GetTimer() - gPlayerBumped > 1000 then
if GetTimer() - gSpawningTimer > 4000 then
if GetTimer() - gSpeechTimer > 15000 then
if GetTimer() - gStartTime > 4000 then
if GetTimer() - gStartTime > gMissionTimeLimit * 0.8 then
if GetTimer() - gSteamOnTimer > 5000 then
if GetTimer() - gSumoTimer > gAnimationRateTime then
if GetTimer() - gTauntTimer > gTadTauntInterval then
if GetTimer() - gTedOnPointTime > 3000 then
if GetTimer() - gTextQueueTimer >= gTextWaitTimer then
if GetTimer() - gTimer > 5000 then
if GetTimer() - gTryingTime > gChangeAnimTime then
if GetTimer() - gWaitingTimer > 80000 then
if GetTimer() - janitor.walkTime > 10000 then
if GetTimer() - nTimerSpeech >= 2200 then
if GetTimer() - photoTime < 10 then
if GetTimer() - startTime > 1900 then
if GetTimer() - tblTad.reinforcementTime > gTadReinforcementDelay then
if GetTimer() - timeout > 3000 then
if GetTimer() - timeout > 4000 then
if GetTimer() - timeout > 5000 then
if GetTimer() - waitEdgar > 5000 then
if GetTimer() - waitingTime > 4000 then
if GetTimer() <= gEagleHitTime then
if GetTimer() > gChristyChatterTimer + gChristyChatterBuffer then
if GetTimer() > gLadyChatterTimer + 25000 then
if GetTimer() > gMascotSpeechTimer + 5000 then
if GetTimer() > timeoutGlobal then
if GetTimer() >= BurtonLastShoutedTime or bBurtonSeesHit then
if GetTimer() >= gTagTimer then
if GetTimer() >= intDarbyTime + 6000 then
if GetTimer() >= rochambeauTimeOut then
if GetTimer() >= spider.time then
if GetTimer() >= TimeOutTimer + TimeOutTime then
if GetTimer() >= timerAlgieHitWhine + 5000 then
if GetTimer() >= timerAlgiePeeWhine + gAlgiePeeDanceWait then
if gExitTimer and not AreaIsLoading() and GetTimer() > gExitTimer and AreaGetVisible() ~= 0 then
if gHattrickNearBathroom and not gHattrickSeenPlayer and (gBathroomSetup or GetTimer() - gHattrickReachBathroomTime > 8000) then
if gMandyTalkTimer and GetTimer() - gMandyTalkTimer > 10000 then
if gNumberOfSpawnedJocks < gMaxNumberOfJocksToSpawn and gSpawnAJockTimer + gSpawnAJockFrequency < GetTimer() then
if gPinkyMGActionTimer + gPinkyDialogueRepeatTime < GetTimer() then
if gPlayerDied and GetTimer() - gDeathTime > gTotalDeathTime then
if gSequenceFailed and not gSucceededTutorial and not gSequencePassed and GetTimer() - gFailTimer > 8000 then
if gStartedLoop and GetTimer() - gStartedLoop > 13000 then
if gTimeEdnaTalked ~= 0 and GetTimer() - gTimeEdnaTalked < 5000 then
if gTimerFireAlarm + 4000 <= GetTimer() then
if gTimerForReturn and GetTimer() - gTimerForReturn > 5000 then
if gTPTimer + 1000 < GetTimer() and not bShowedPickUpMessage then
if gTPTimer + 15000 < GetTimer() then
if IsButtonPressed(11, 1) and GetTimer() - lastChange > scrollDelay then
if IsButtonPressed(12, 0) and not bPressR1 and GetTimer() >= nextFireTime then
if IsButtonPressed(13, 1) and GetTimer() - lastChange > scrollDelay then
if IsButtonPressed(7, 0) and not bPressX and GetTimer() >= nextFireTime then
if IsButtonPressed(8, 0) and GetTimer() > gLastTimePressed + 24000 then
if IsButtonPressed(button, pad) and delay < GetTimer() - __LastButtonTime[timerIndex] then
if librarian and GetTimer() - librarian_last_talked_time > 12000 then
if lightEntry.status == 1 and GetTimer() - lightEntry.currentBlinkTime > gBlinkTimer then
if not (not IsButtonBeingPressed(7, 0) or bPressCross) or GetTimer() <= gameOverTimeOut then
if not (not IsButtonBeingPressed(7, 0) or bPressCross) or GetTimer() >= gameOverTimeOut then
if not (not IsButtonBeingPressed(7, 0) or xPress) or GetTimer() >= highScoreTimer then
if not bAlgieCleanupTags and (GetTimer() - nTimeAlgieWasAttacked > 30000 or not PlayerIsInAreaObject(algie, 2, 40, 0)) then
if not bFoundDO and GetTimer() >= intNextChatTime then
if not bInstRemoved and instTimer <= GetTimer() then
if not bTeachCreated and enteredRoom and GetTimer() - enteredRoom >= 30000 then
if not gBurtonChased and gPedsFled and PedIsValid(CoachBurton.id) and GetTimer() - gPedsFled > 4000 then
if not gPauseThread and gTedCanAttack and (gInitialTime or GetTimer() - gTedStartTime > 2000 and DistanceBetweenPeds2D(gPlayer, gTed) > 6) then
if not gStartingUp and (PlayerHasWeapon(342) or PlayerHasWeapon(402) or PlayerHasWeapon(401) or PlayerHasWeapon(384) or PedIsHit(edgar, 2, 1000) or GetTimer() - gTimeFinalStart > 8000) then
if not MissionActive() and GetTimer() - nTimerStarted > 120000 then
if not OPPONENT_STUNNED and GetTimer() - time > 7500 then
if not pickup.noGrab and pickup.id and (pickup.ped and not pickup.ped == ped or GetTimer() - pickup.timeSpawned > pickup.grabDelay) and PedIsInAreaXYZ(ped, pickup.x, pickup.y, pickup.z, pickup.grabRadius, 0) then
if not prank.bLoaded and prank.time <= GetTimer() and not prank.bComplete then
if not SoundSpeechPlaying(tblFirstGrease[5]) and not SoundSpeechPlaying(tblFirstGrease[6]) and GetTimer() - timeSlice > 9000 then
if not SoundSpeechPlaying(tblSecondGrease[2]) and not SoundSpeechPlaying(tblSecondGrease[3]) and GetTimer() - timeSlice > 9000 then
if PedIsInAreaXYZ(runningGreaser, x, y, z, 2, 0) or GetTimer() - runningTime > 10000 then
if PlayerIsInAnyVehicle() or GetTimer() - gRussellTimer > 10000 then
if PlayerIsInAreaObject(gHobo, 2, 5, 0) and GetTimer() - gAchieveReveiverTime > 7000 then
if PlayerIsInTrigger(TRIGGER._5_06_BIKETRIGGER) or gRussellObjs and GetTimer() - gRussellTimer > 3000 then
if round_time < GetTimer() and not IsPlayerKO() then
if sackTimeOut <= GetTimer() then
if spawnTime01 <= GetTimer() then
if spawnTime02 <= GetTimer() then
if Stage == 0 and difficultyTime + 60000 <= GetTimer() then
if time < GetTimer() then
if time <= GetTimer() then
if timeout < GetTimer() then
if timer < GetTimer() then
if timerShowerTalk + 10000 <= GetTimer() then
initTimer = GetTimer()
instTimer = GetTimer() + 10000
intNextChatTime = GetTimer() + 8000 + math.random(0, 2000)
InvulnerablTime = GetTimer() + 4000
janitor.walkTime = GetTimer()
justRequested = GetTimer()
keypickup_start = GetTimer()
lastChange = GetTimer()
lastTimeCheck = GetTimer()
librarian_last_talked_time = GetTimer()
librarian_last_talked_time = GetTimer() + (math.random(5) - 1) * 1000
lightEntry.currentBlinkTime = GetTimer()
local bScheduled = scenario.time == nil or scenario.time ~= nil and GetTimer() > scenario.time
local currentTime = GetTimer()
local curTime = GetTimer()
local deadTime = GetTimer() + 2000
local dogspawnstart = GetTimer()
local EndTime = GetTimer() + intMilliseconds
local flashTime = GetTimer() + 100
local GameTime = GetTimer()
local gAnimQueueTimer = GetTimer()
local gRussellTimer = GetTimer()
local gStinkBombTimer = GetTimer()
local gTimerForReturn = GetTimer()
local gTryingTime = GetTimer()
local gWaitingTimer = GetTimer()
local hungerTimer = GetTimer()
local intDarbyTime = GetTimer()
local InvulnerablTime = GetTimer() + 9999999
local lastTimeCheck = GetTimer()
local nSpotTimer = GetTimer()
local nTimer = GetTimer()
local nTimerStarted = GetTimer()
local runningTime = GetTimer()
local sackTimeOut = GetTimer() + 1000
local SpawnShut = GetTimer()
local SpawnTime = GetTimer()
local speechTime = GetTimer() + 1500
local startTime = GetTimer()
local time = GetTimer()
local timeLastChecked = GetTimer()
local timeout = GetTimer()
local timeout = GetTimer() + 5000
local timeout = GetTimer() + 8000
local timePassed = GetTimer() - gTimeStarted
local timer = GetTimer() + 2000
local timer = GetTimer() + 3000
local timer = GetTimer() + 8000
local timerStart = GetTimer()
local timeSlice = GetTimer()
local timeStarted = GetTimer()
local tS01 = GetTimer()
local tS02 = GetTimer()
local tS03 = GetTimer()
local waitEdgar = GetTimer()
local waitingTime = GetTimer()
local waitStart = GetTimer()
local xTime = GetTimer() - gStartTime
MascotTimer = GetTimer()
math.randomseed(GetTimer())
monkeyFlipTime = GetTimer() + 250
newTime = GetTimer()
nextFireTime = GetTimer() + fireTime
nOutOfAmmoGracePeriod = GetTimer()
nTimeAlgieWasAttacked = GetTimer()
nTimerSpeech = GetTimer()
nTimerStarted = GetTimer()
nTimeSlice = GetTimer()
onceItsDone = GetTimer()
PauseTime = GetTimer() - EnemyTime
peanuttimer = GetTimer() + 5000
photoTime = GetTimer()
pickup.timeSpawned = GetTimer()
PropTimer = GetTimer()
regenTime = GetTimer()
respawnTimer01 = GetTimer()
respawnTimer02 = GetTimer()
return GetTimer() - tblRaceInfo.race.countDownStart > 3000
return time < GetTimer()
return time <= GetTimer()
rochambeauTimeOut = GetTimer() + gRochambeauTimeLimit
round_time = GetTimer() + round_length
shared.gCurrentAmbientScenarioObject.time = GetTimer() + 120000
shared.gCurrentAmbientScenarioObject.time = GetTimer() + 15000
shared.gCurrentAmbientScenarioObject.time = GetTimer() + 240000
shared.gCurrentAmbientScenarioObject.time = GetTimer() + 445000
shared.gCurrentAmbientScenarioObject.time = GetTimer() + 45000
shared.gCurrentAmbientScenarioObject.time = GetTimer() + 480000
shared.gCurrentAmbientScenarioObject.time = GetTimer() + 60000
shrugTimer = GetTimer()
spawntime = GetTimer() + 2000 + lasttime
spawntime = GetTimer() + 4000 + lasttime
spawntime = GetTimer() + 5000 + lasttime
spawnTime01 = GetTimer() + 4000
spawnTime02 = GetTimer() + 4000
SpeechTime = GetTimer()
spider.fliptime = GetTimer() + 250
spider.time = GetTimer() + gSpiderWalkTime
spiderFlipTime = GetTimer() + 250
sprayCheckTimer = GetTimer() + 4000
Start_Timer_Time = GetTimer()
StartTime = GetTimer()
store.cleartime = GetTimer() + 300000
tableEntry.timeSeen = GetTimer()
tblEntry.nextMoveTime = GetTimer() + 1000
tblPrank[1].time = GetTimer() + 15000
tblPrank[2].time = GetTimer() + 60000
tblPrank[3].time = GetTimer() + 30000
tblPrank[4].time = GetTimer() + 15000
tblPrank[4].time = GetTimer() + 60000
tblPrank[5].time = GetTimer() + 30000
tblPrank[6].time = GetTimer() + 15000
tblPrank[6].time = GetTimer() + 30000
tblPrank[7].time = GetTimer() + 15000
tblPrank[7].time = GetTimer() + 30000
tblPrank[8].time = GetTimer() + 30000
tblRaceInfo.race.countDownStart = GetTimer()
tblSpawnedPreppies[idx].createTime = GetTimer()
tblTad.reinforcementTime = GetTimer()
tblWitchSteam[1].nextTime = GetTimer() + math.random(5000, 8000)
tblWitchSteam[2].nextTime = GetTimer() + math.random(5000, 8000)
time = GetTimer()
timeLastChecked = GetTimer()
timeOut = GetTimer() + 2000
timeoutGlobal = GetTimer() + 5000
TimeOutTimer = GetTimer()
timePassed = GetTimer() - timeLastChecked
timer = GetTimer(),
timerAlgieHitWhine = GetTimer()
timerAlgiePeeWhine = GetTimer()
timerAlgieWhine = GetTimer()
timerGarySpeak = GetTimer()
timerShowerTalk = GetTimer()
timerStart = GetTimer()
timeSlice = GetTimer()
tS01 = GetTimer()
tS02 = GetTimer()
tS03 = GetTimer()
tut31_time = GetTimer()
waitForBallTime = GetTimer()
while EndTime > GetTimer() do
while GetTimer() - hitTimer < 3000 do
while GetTimer() - StartTime < 300000 do
while gTimerRecruitGary + 3000 >= GetTimer() do
while interval > GetTimer() - timerStart do
while not bEndPath and GetTimer() - nTimeSlice < 10000 do
while nSprinklerTime > GetTimer() - startTime do
while PedIsOnVehicle(gPlayer) and GetTimer() - nTimer < 15000 do
while time >= GetTimer() - waitStart do
while timer > GetTimer() do
while timer >= GetTimer() do
while waitTime >= GetTimer() - timerStart do
mov eax, dword ptr [0xC1A9B4]
mov ecx, dword ptr [esp+0x4]
push eax
push ecx
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
ret
SERVER
Returns the amount of milliseconds that have passed on the server, just like GetTimer in the base game.
This timer will not reset to zero when the internal server timer overflows, but may eventually lose accuracy. To reliably track the passage of time, consider using GetAccurateTimer.
gNumMissionsPassed = GetTotalMissionSuccessCount()
if GetTotalMissionSuccessCount() > gNumMissionsPassed then
mov eax, dword ptr [0x20C43E8]
mov ecx, dword ptr [esp+0x4]
push eax
push ecx
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
ret
CLIENT
Returns the string being typed after calling StartTyping. If the blink argument is true, a vertical pipe may be appended to the result to appear like a blinking cursor.
CLIENT
Returns the volume of a certain type of sound.
Sound types: 0 = cutscene, 1 = music, 2 = speech, 3 = ambient, 4 = effects, 5 = unknown.
OldFootballLOD = GetWeaponLOD(331)
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetInt
mov eax, dword ptr [eax*4+0xC67738]
fld st, dword ptr [eax+0x50]
add esp, 0x4
fstp dword ptr [esp], st
push esi
call LuaParam::PushFloat
add esp, 0x8
mov eax, 0x1
pop esi
ret
GiveAmmoToPlayer(301, ammo)
GiveAmmoToPlayer(303, 30)
GiveAmmoToPlayer(305, 10, false)
GiveAmmoToPlayer(307, 10, false)
GiveAmmoToPlayer(308, 12)
GiveAmmoToPlayer(309, 5)
GiveAmmoToPlayer(309, 7)
GiveAmmoToPlayer(309, ammo)
GiveAmmoToPlayer(312, 12)
GiveAmmoToPlayer(312, 24)
GiveAmmoToPlayer(312, 5)
GiveAmmoToPlayer(316, 10)
GiveAmmoToPlayer(316, 25)
GiveAmmoToPlayer(321, 1)
GiveAmmoToPlayer(321, 10)
GiveAmmoToPlayer(321, 12)
GiveAmmoToPlayer(321, 3, false)
GiveAmmoToPlayer(328, 100)
GiveAmmoToPlayer(394, 5)
GiveAmmoToPlayer(394, ammo)
GiveAmmoToPlayer(397, 5)
GiveAmmoToPlayer(item, itemcount)
GiveAmmoToPlayer(weaponTable[weapon].ammo, 50)
push ecx
push ebx
push esi
mov esi, dword ptr [esp+0x10]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetInt
push esi
mov ebx, eax
mov byte ptr [esp+0x20], 0x1
call 0x73AEA0
add esp, 0x14
cmp eax, 0x3
jl 0x11
push 0x2
push esi
call LuaParam::GetBool
add esp, 0x8
mov byte ptr [esp+0xC], al
mov eax, dword ptr [esp+0xC]
mov ecx, dword ptr [0xC1AEA8]
mov ecx, dword ptr [ecx+0x1C4]
push 0x0
push eax
push ebx
push edi
call 0x45CED0
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
GiveItemToPlayer(475)
GiveItemToPlayer(478)
GiveItemToPlayer(478, 1)
GiveItemToPlayer(479, 1)
GiveItemToPlayer(488)
GiveItemToPlayer(495)
GiveItemToPlayer(495, gTicketCount)
GiveItemToPlayer(495, gTickets)
GiveItemToPlayer(495, gTicketsWon)
GiveItemToPlayer(502, 1)
GiveItemToPlayer(515)
GiveItemToPlayer(521)
GiveItemToPlayer(521, 1)
GiveItemToPlayer(526)
GiveItemToPlayer(526, 1)
GiveItemToPlayer(528)
GiveItemToPlayer(giftModel)
GiveItemToPlayer(modelCutters, 1)
GiveItemToPlayer(modelDiary)
GiveItemToPlayer(modelDiary, 1)
GiveItemToPlayer(player.weapon.model)
push ebx
mov ebx, dword ptr [esp+0x8]
push esi
push edi
push 0x0
push ebx
call LuaParam::GetInt
push ebx
mov esi, eax
mov edi, 0x1
call 0x73AEA0
add esp, 0xC
cmp eax, 0x2
jnz 0xE
push edi
push ebx
call LuaParam::GetInt
add esp, 0x8
mov edi, eax
cmp esi, dword ptr [0xA136B0]
jl 0x26
cmp esi, dword ptr [0xA136B4]
jnle 0x1E
mov eax, dword ptr [0xC1AEA8]
mov ecx, dword ptr [eax+0x1C4]
push 0x0
push 0x1
push edi
push esi
call 0x45D030
pop edi
pop esi
xor eax, eax
pop ebx
ret
cmp esi, dword ptr [0xA136B8]
jl 0x18
cmp esi, dword ptr [0xA136BC]
jnle 0x10
push 0x0
push 0x1
push edi
push esi
call 0x541C30
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
ret
SERVER
Gives a role to the player's account. Keep in mind the role has to be defined in the server's config. Returns true if successful.
GiveWeaponToPlayer(303)
GiveWeaponToPlayer(303, false)
GiveWeaponToPlayer(305)
GiveWeaponToPlayer(305, false)
GiveWeaponToPlayer(306)
GiveWeaponToPlayer(306, false)
GiveWeaponToPlayer(307)
GiveWeaponToPlayer(307, false)
GiveWeaponToPlayer(312)
GiveWeaponToPlayer(321)
GiveWeaponToPlayer(321, false)
GiveWeaponToPlayer(325)
GiveWeaponToPlayer(328)
GiveWeaponToPlayer(437, false)
GiveWeaponToPlayer(weaponTable[weapon].model)
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetInt
push esi
mov edi, eax
mov byte ptr [esp+0x14], 0x1
call 0x73AEA0
add esp, 0xC
cmp eax, 0x2
jl 0x11
push 0x1
push esi
call LuaParam::GetBool
add esp, 0x8
mov byte ptr [esp+0x8], al
mov eax, dword ptr [esp+0x8]
mov ecx, dword ptr [0xC1AEA8]
mov ecx, dword ptr [ecx+0x1C4]
push 0x0
push eax
push edi
call 0x45CE00
pop edi
xor eax, eax
pop esi
pop ecx
ret
function GlobalImportScript(file)
--print("Global import:", file)
_Import(file)()
end
-- never used
push esi
mov esi, dword ptr [esp+0x8]
push 0x8FEFBB
push 0x0
push esi
call LuaParam::GetString ; optional
push eax
call 0x52DAD0
push eax
call 0x52DD30
cmp byte ptr [eax+0x4], 0x1
setz al
push eax
push esi
call LuaParam::PushBool
add esp, 0x1C
mov eax, 0x1
pop esi
ret
-- never used
sub esp, 0xF0
push ebx
mov ebx, dword ptr [esp+0xF8]
push esi
push edi
push 0x0
push ebx
call LuaParam::GetInt
add esp, 0x8
test eax, eax
jnl 0x6
xor ecx, ecx
jmp 0x1D
mov edx, dword ptr [0x20C7C48]
mov ecx, dword ptr [edx+0x4]
test byte ptr [eax+ecx*1], 0x80
jz 0x6
xor ecx, ecx
jmp 0xA
mov ecx, dword ptr [edx+0xC]
imul ecx, eax
add ecx, dword ptr [edx]
push ecx
call 0x4EA3C0
push 0x1
push ebx
mov esi, eax
call LuaParam::GetString
add esp, 0xC
push eax
lea ecx, ptr [esp+0x18]
call 0x5FA910
mov edi, dword ptr [esp+0x14]
push 0x2
push ebx
call LuaParam::GetFloat
fstp dword ptr [esp+0x44], st
fld1
push 0x1
lea edx, ptr [esp+0xBC]
fstp dword ptr [esp+0xEC], st
push edx
push edi
push esi
call 0x467D80
add esp, 0x18
test al, al
jnz 0x25
push 0x0
push ebx
call LuaParam::PushBool
add esp, 0x8
lea ecx, ptr [esp+0x14]
call 0x49A650
pop edi
pop esi
mov eax, 0x1
pop ebx
add esp, 0xF0
ret
fld st, dword ptr [esp+0xD4]
mov ebx, dword ptr [0xC0F618]
fstp dword ptr [esp+0x40], st
push ebp
fld st, dword ptr [esp+0xDC]
fstp dword ptr [esp+0x48], st
fld st, dword ptr [esp+0xE0]
fstp dword ptr [esp+0x4C], st
mov ecx, dword ptr [ebx+0x10]
test ecx, ecx
mov ebp, dword ptr [ebx+0x8]
jz 0x9
call 0x435BB0
add ebp, eax
xor edi, edi
test ebp, ebp
jle 0x355
mov eax, dword ptr [ebx+0x8]
xor esi, esi
cmp edi, eax
jl 0x19
mov ecx, dword ptr [ebx+0x10]
test ecx, ecx
jz 0x1A
mov edx, edi
push 0x1
sub edx, eax
push edx
call 0x435BD0
mov esi, eax
jmp 0xA
mov esi, dword ptr [ebx+0xC]
imul esi, edi
add esi, dword ptr [ebx]
mov eax, dword ptr [ebx+0x4]
test byte ptr [edi+eax*1], 0x80
jnz 0x315
test esi, esi
jz 0x30D
mov eax, dword ptr [esi+0x14]
test eax, eax
jz 0x7
add eax, 0x30
jmp 0x5
lea eax, ptr [esi+0x4]
mov ecx, dword ptr [eax]
mov dword ptr [esp+0x28], ecx
mov edx, dword ptr [eax+0x4]
mov ecx, dword ptr [esi+0x124]
mov dword ptr [esp+0x2C], edx
mov eax, dword ptr [eax+0x8]
mov edx, dword ptr [esi+0x128]
mov dword ptr [esp+0x30], eax
mov eax, dword ptr [esi+0x12C]
mov dword ptr [esp+0x20], edx
mov edx, dword ptr [esi]
mov dword ptr [esp+0x1C], ecx
mov dword ptr [esp+0x24], eax
mov eax, dword ptr [edx+0x8C]
mov ecx, esi
call 0x5BCEEC
fstp dword ptr [esp+0x10], st
fld st, dword ptr [0xAE9B80]
lea ecx, ptr [esp+0x1C]
fmul st, dword ptr [0xC1A9A4]
push ecx
lea edx, ptr [esp+0x2C]
push edx
fstp dword ptr [esp+0x1C], st
lea eax, ptr [esp+0xB0]
fld st, dword ptr [esp+0x1C]
push eax
fld st, st(0)
fld st, dword ptr [esp+0x30]
fld st, st(0)
fmulp st(3), st
fld st, st(1)
fmulp st(2), st
fxch st, st(1)
fstp dword ptr [esp+0x20], st
fld st, dword ptr [esp+0x20]
fld st, dword ptr [esp+0x1C]
fmul st, qword ptr [0x8FF1F8]
fmulp st(1), st
fsubp st(2), st
faddp st(1), st
fstp dword ptr [esp+0x30], st
call 0x4129A0
lea ecx, ptr [esp+0x34]
push ecx
lea edx, ptr [esp+0x54]
push edx
lea eax, ptr [esp+0x64]
push eax
call 0x414B70
lea ecx, ptr [esp+0x40]
push ecx
lea edx, ptr [esp+0xC4]
push edx
lea eax, ptr [esp+0x54]
push eax
call 0x414B70
lea ecx, ptr [esp+0x58]
push ecx
lea edx, ptr [esp+0x78]
push edx
lea eax, ptr [esp+0xBC]
push eax
call 0x414730
lea ecx, ptr [esp+0xC0]
push ecx
lea edx, ptr [esp+0x68]
push edx
lea eax, ptr [esp+0x94]
push eax
call 0x414730
add esp, 0x3C
lea ecx, ptr [esp+0x5C]
call 0x414E10
fstp st(0), st
fld st, dword ptr [esp+0x60]
fld st, st(0)
fmul st, dword ptr [esp+0x54]
fld st, dword ptr [esp+0x50]
fld st, dword ptr [esp+0x5C]
fld st, st(0)
fmulp st(2), st
lea ecx, ptr [esp+0x68]
fxch st, st(2)
push ecx
lea edx, ptr [esp+0x48]
faddp st(1), st
push edx
fld st, dword ptr [esp+0x6C]
lea eax, ptr [esp+0xA4]
fld st, st(0)
push eax
fmul st, dword ptr [esp+0x64]
faddp st(2), st
fxch st, st(1)
fstp dword ptr [esp+0x1C], st
fld st, dword ptr [esp+0x1C]
fchs
fstp dword ptr [esp+0x1C], st
fld st, dword ptr [esp+0x1C]
fld st, st(0)
fmulp st(3), st
fxch st, st(2)
fstp dword ptr [esp+0x74], st
fld st, st(1)
fmulp st(3), st
fxch st, st(2)
fstp dword ptr [esp+0x78], st
fmulp st(1), st
fstp dword ptr [esp+0x7C], st
call 0x4129A0
fld st, dword ptr [esp+0x40]
add esp, 0xC
fld st, dword ptr [esp+0x38]
fld st, dword ptr [esp+0x3C]
fld st, st(1)
fmulp st(2), st
fld st, st(2)
fmulp st(3), st
fxch st, st(1)
faddp st(2), st
fmul st(0), st
faddp st(1), st
fstp dword ptr [esp+0x10], st
fld st, dword ptr [esp+0x10]
fabs
fstp dword ptr [esp+0x10], st
fld st, dword ptr [esp+0x10]
call 0x85C500
fstp dword ptr [esp+0x10], st
fld st, dword ptr [esp+0x10]
fcomp st, qword ptr [0x912890]
fnstsw ax
test ah, 0x5
jp 0xE
fldz
fstp dword ptr [esp+0x14], st
fld st, dword ptr [esp+0x14]
jmp 0x4B
fld st, dword ptr [esp+0xA0]
fsub st, dword ptr [esp+0x2C]
fdiv st, dword ptr [esp+0x38]
fstp dword ptr [esp+0x14], st
fldz
fld st, dword ptr [esp+0x14]
fcom st, st(1)
fnstsw ax
test ah, 0x5
jp 0xE
fstp st(0), st
fstp dword ptr [esp+0x14], st
fld st, dword ptr [esp+0x14]
jmp 0x1D
fstp st(1), st
fld1
fcom st, st(1)
fnstsw ax
test ah, 0x5
jp 0xE
fstp st(1), st
fstp dword ptr [esp+0x14], st
fld st, dword ptr [esp+0x14]
jmp 0x4
fstp st(0), st
fld st, dword ptr [esp+0x1C]
lea ecx, ptr [esp+0x44]
fmul st, st(1)
push ecx
lea edx, ptr [esp+0x78]
push edx
fstp dword ptr [esp+0x7C], st
lea eax, ptr [esp+0x30]
fld st, dword ptr [esp+0x28]
push eax
fmul st, st(1)
lea ecx, ptr [esp+0x100]
push ecx
fstp dword ptr [esp+0x88], st
fmul st, dword ptr [esp+0x34]
fstp dword ptr [esp+0x8C], st
call 0x4129A0
add esp, 0xC
push eax
lea edx, ptr [esp+0xF0]
push edx
call 0x414B70
fld st, dword ptr [eax+0x4]
movsx ecx, word ptr [esi+0x10E]
fld st, dword ptr [eax]
mov edx, dword ptr [ecx*4+0xC67738]
fld st, dword ptr [eax+0x8]
mov ecx, dword ptr [edx+0xC]
mov ecx, dword ptr [ecx+0x38]
mov ecx, dword ptr [ecx]
mov edx, dword ptr [ecx]
mov dword ptr [esp+0x8C], edx
mov edx, dword ptr [ecx+0x4]
mov dword ptr [esp+0x90], edx
mov edx, dword ptr [ecx+0x8]
mov ecx, dword ptr [ecx+0xC]
mov dword ptr [esp+0x98], ecx
add esp, 0xC
fld st, dword ptr [esp+0x8C]
mov dword ptr [esp+0x88], edx
fadd dword ptr [esp+0x40]
fstp dword ptr [esp+0x10], st
fld st, dword ptr [esp+0x10]
fstp dword ptr [esp+0x14], st
fld st, st(1)
fmulp st(2), st
fld st, st(2)
fmulp st(3), st
fxch st, st(1)
faddp st(2), st
fmul st(0), st
faddp st(1), st
fstp dword ptr [esp+0x10], st
fld st, dword ptr [esp+0x10]
fabs
fstp dword ptr [esp+0x10], st
fld st, dword ptr [esp+0x10]
call 0x85C500
fstp dword ptr [esp+0x10], st
fld st, dword ptr [esp+0x10]
fld st, dword ptr [esp+0x14]
fcompp
fnstsw ax
test ah, 0x41
jz 0x38
add edi, 0x1
cmp edi, ebp
jl 0xFFFFFCB7
mov eax, dword ptr [esp+0x104]
push 0x0
push eax
call LuaParam::PushBool
add esp, 0x8
lea ecx, ptr [esp+0x18]
call 0x49A650
pop ebp
pop edi
pop esi
mov eax, 0x1
pop ebx
add esp, 0xF0
ret
-- never used
movzx eax, byte ptr [0x20C32F1]
mov ecx, dword ptr [esp+0x4]
push eax
push ecx
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
ret
HideGeneralHealthBar()
mov ecx, dword ptr [0xC674D0]
mov eax, dword ptr [ecx]
mov edx, dword ptr [eax+0x14]
push 0x0
mov byte ptr [ecx+0x174], 0x0
call 0x5C6986
xor eax, eax
ret
CLIENT
Registers a function hook for a base game function, calling the callback function after the original function is called. It is suggested you use this or ReplaceFunction rather than replacing any base game function directly with _G.
The callback is given a table of arguments, a table of results, and a boolean indicating if the called function was a replacement by ReplaceFunction.
Returns a function hook object.
HUDClearAllElements()
push esi
mov esi, 0xC674A0
mov ecx, dword ptr [esi]
mov eax, dword ptr [ecx]
mov edx, dword ptr [eax+0x14]
push 0x0
call 0x5BDCF1
add esi, 0x4
cmp esi, 0xC67560
jl 0xFFFFFFEC
xor eax, eax
pop esi
ret
-- never used
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetInt
mov eax, dword ptr [eax*4+0xC674A0]
movzx ecx, byte ptr [eax+0x14]
push ecx
push esi
call LuaParam::PushBool
add esp, 0x10
mov eax, 0x1
pop esi
ret
-- never used
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetInt
mov eax, dword ptr [eax*4+0xC674A0]
movzx ecx, byte ptr [eax+0x15]
push ecx
push esi
call LuaParam::PushBool
add esp, 0x10
mov eax, 0x1
pop esi
ret
-- never used
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetInt
mov ecx, dword ptr [eax*4+0xC674A0]
mov eax, dword ptr [ecx]
mov edx, dword ptr [eax+0x10]
add esp, 0x8
call 0x5BD70E
push eax
push esi
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
pop esi
ret
HUDDiaryVisible(true)
mov eax, dword ptr [esp+0x4]
push esi
push edi
mov edi, dword ptr [0xC67550]
mov esi, dword ptr [edi]
push 0x0
push eax
add esi, 0x14
call LuaParam::GetBool
mov edx, dword ptr [esi]
add esp, 0x8
mov ecx, edi
push eax
call 0x5BDF63
pop edi
xor eax, eax
pop esi
ret
-- never used
mov ecx, dword ptr [0xC674CC]
call 0x54C290
xor eax, eax
ret
-- never used
push esi
mov esi, dword ptr [esp+0x8]
push edi
mov edi, dword ptr [0xC67554]
push 0x0
push 0x2
push esi
call LuaParam::GetInt
add esp, 0x8
push eax
push 0x1
push esi
call LuaParam::GetInt
add esp, 0x8
push eax
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, edi
call 0x541110
pop edi
xor eax, eax
pop esi
ret
HUDPhotographySetColourUpgrade(false)
HUDPhotographySetColourUpgrade(true)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetBool
mov byte ptr [0xC1B171], al
add esp, 0x8
xor eax, eax
ret
HUDPhotographySetSaveLevel1(true)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetBool
mov byte ptr [0xC1B172], al
add esp, 0x8
xor eax, eax
ret
HUDPhotographySetSaveLevel2(true)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetBool
mov byte ptr [0xC1B173], al
add esp, 0x8
xor eax, eax
ret
HUDRestoreVisibility()
push 0xFFFFFFFF
call 0x514210
add esp, 0x4
xor eax, eax
ret
HUDSaveVisibility()
push 0xFFFFFFFF
call 0x5141D0
add esp, 0x4
xor eax, eax
ret
-- never used
push ecx
mov eax, dword ptr [esp+0x8]
push 0x0
push eax
call LuaParam::GetBool
mov byte ptr [esp+0x8], al
mov ecx, dword ptr [esp+0x8]
push ecx
call 0x43A8D0
xor eax, eax
add esp, 0x10
ret
HUDSetFightStyle()
push ebx
push esi
mov esi, dword ptr [esp+0xC]
push esi
mov bl, 0x1
call LuaParam::GetParamCount
add esp, 0x4
cmp eax, 0x1
jl 0x1E
push 0x0
push esi
call LuaParam::GetBool
mov ecx, dword ptr [0xC674D0]
add esp, 0x8
pop esi
mov byte ptr [ecx+0xBB], al
xor eax, eax
pop ebx
ret
mov edx, dword ptr [0xC674D0]
pop esi
mov byte ptr [edx+0xBB], bl
xor eax, eax
pop ebx
ret
HUDSetNumFortuneTellerKeys(119)
mov eax, dword ptr [esp+0x4]
push esi
mov esi, dword ptr [0xC67544]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x8
mov dword ptr [esi+0x104], eax
xor eax, eax
pop esi
ret
HUDSetNumGlobeKeys(15)
mov eax, dword ptr [esp+0x4]
push esi
mov esi, dword ptr [0xC67544]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x8
mov dword ptr [esi+0x114], eax
xor eax, eax
pop esi
ret
ImportScript = nil
ImportScript("Bike_gen.lua")
ImportScript("CowDance.lua")
ImportScript("Garages.lua")
ImportScript("SCloth.lua")
ImportScript("SLightEff.lua")
ImportScript("SLvesEff.lua")
ImportScript("SRoomEff.lua")
ImportScript("SStats.lua")
ImportScript("SWinEff.lua")
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetString
push eax
push esi
call 0x5D8C40
add esp, 0x10
mov eax, 0x1
pop esi
ret
SHARED
On the client, acts just like the normal ImportScript. If the mod has "custom_imports" set to true in the config, scripts are imported from the current mod folder rather than from Scripts.img.
On the server, acts very similar to LoadScript.
ImportScript = nil
ImportScript("Bike_gen.lua")
ImportScript("CowDance.lua")
ImportScript("Garages.lua")
ImportScript("SCloth.lua")
ImportScript("SLightEff.lua")
ImportScript("SLvesEff.lua")
ImportScript("SRoomEff.lua")
ImportScript("SStats.lua")
ImportScript("SWinEff.lua")
function ImportScript(file)
_Import(file)()
end
CLIENT
Returns a 2 byte signed integer object. Use a string for value to preserve accuracy.
CLIENT
Returns a 4 byte signed integer object. Use a string for value to preserve accuracy.
CLIENT
Returns a 1 byte signed integer object. Use a string for value to preserve accuracy.
A standard Lua 5.0 function documented on lua.org.
A standard Lua 5.0 function documented on lua.org.
A standard Lua 5.0 function documented on lua.org.
A standard Lua 5.0 function documented on lua.org.
A standard Lua 5.0 function documented on lua.org.
A standard Lua 5.0 function documented on lua.org.
A standard Lua 5.0 function without documentation.
A standard Lua 5.0 function documented on lua.org.
A standard Lua 5.0 function documented on lua.org.
A standard Lua 5.0 function documented on lua.org.
A standard Lua 5.0 function documented on lua.org.
CLIENT
Returns true if an action node is valid. Performs the same check performed by PedSetActionNode, but without actually setting the node.
while not IsActionTreeLoaded(ActionTreeIndex) do
push esi
mov esi, dword ptr [esp+0x8]
push 0xFFFFFFFF
push 0x0
push esi
call LuaParam::GetInt ; optional
add esp, 0xC
cmp eax, 0xFFFFFFFF
jz 0x25
add eax, 0x5D41
push eax
call 0x52DD30
cmp byte ptr [eax+0x4], 0x1
setz al
push eax
push esi
call LuaParam::PushBool
add esp, 0xC
mov eax, 0x1
pop esi
ret
push 0x0
push esi
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
pop esi
ret
elseif IsButtonBeingPressed(7, 0) then
elseif IsButtonBeingPressed(9, 0) then
if IsButtonBeingPressed(7, 0) and not bPressCross then
if IsButtonBeingPressed(7, 0) or not MinigameIsActive() then
if IsButtonBeingPressed(8, 0) and gCanExit or shared.playerKOd then
if IsButtonBeingPressed(8, 0) or shared.playerKOd then
if IsButtonBeingPressed(8, 0) then
if IsButtonBeingPressed(9, 0) then
if not (not IsButtonBeingPressed(7, 0) or bPressCross) or GetTimer() <= gameOverTimeOut then
if not (not IsButtonBeingPressed(7, 0) or bPressCross) or GetTimer() >= gameOverTimeOut then
if not (not IsButtonBeingPressed(7, 0) or xPress) or GetTimer() >= highScoreTimer then
if not IsButtonBeingPressed(7, 0) and bPressCross then
if not IsButtonBeingPressed(7, 0) and xPress then
while not IsButtonBeingPressed(7, 0) and MinigameIsActive() do
while not IsButtonBeingPressed(7, 0) do
push ecx
push ebx
push esi
mov esi, dword ptr [esp+0x10]
push edi
push 0x0
push esi
call LuaParam::GetInt
push esi
mov ebx, eax
xor edi, edi
call 0x73AEA0
add esp, 0xC
cmp eax, 0x2
jl 0xF
push 0x1
push esi
call LuaParam::GetInt
add esp, 0x8
mov edi, eax
push edi
push ebx
call 0x738900
mov byte ptr [esp+0x14], al
mov eax, dword ptr [esp+0x14]
push eax
push esi
call LuaParam::PushBool
add esp, 0x10
pop edi
pop esi
mov eax, 0x1
pop ebx
pop ecx
ret
-- never used
push ecx
push ebx
push esi
mov esi, dword ptr [esp+0x10]
push edi
push 0x0
push esi
call LuaParam::GetInt
push esi
mov ebx, eax
xor edi, edi
call 0x73AEA0
add esp, 0xC
cmp eax, 0x2
jl 0xF
push 0x1
push esi
call LuaParam::GetInt
add esp, 0x8
mov edi, eax
push edi
push ebx
call 0x738940
mov byte ptr [esp+0x14], al
mov eax, dword ptr [esp+0x14]
push eax
push esi
call LuaParam::PushBool
add esp, 0x10
pop edi
pop esi
mov eax, 0x1
pop ebx
pop ecx
ret
elseif gCurrentZone ~= 22 and IsButtonPressed(10, 1) then
elseif gCurrentZone ~= 22 and IsButtonPressed(11, 1) then
elseif gCurrentZone ~= 22 and IsButtonPressed(13, 1) then
elseif gCurrentZone ~= 22 and IsButtonPressed(2, 1) then
elseif gSwitchPresed and not IsButtonPressed(11, 1) and not IsButtonPressed(13, 1) and not IsButtonPressed(8, 1) and not IsButtonPressed(6, 1) then
elseif IsButtonPressed(0, 0) then
elseif IsButtonPressed(0, 1) then
elseif IsButtonPressed(1, 0) then
elseif IsButtonPressed(10, 0) and IsButtonPressed(11, 0) then
elseif IsButtonPressed(10, 0) and IsButtonPressed(12, 0) then
elseif IsButtonPressed(10, 0) and IsButtonPressed(13, 0) then
elseif IsButtonPressed(10, 0) then
elseif IsButtonPressed(11, 1) and IsButtonPressed(6, 1) then
elseif IsButtonPressed(11, 1) then
elseif IsButtonPressed(13, 0) then
elseif IsButtonPressed(13, 1) then
elseif IsButtonPressed(15, 1) then
elseif IsButtonPressed(2, 0) then
elseif IsButtonPressed(2, 1) then
elseif IsButtonPressed(3, 0) then
elseif IsButtonPressed(6, 0) then
elseif IsButtonPressed(7, 0) then
elseif IsButtonPressed(8, 0) and ped ~= nil and not bCirclePressed then
elseif IsButtonPressed(8, 0) then
elseif IsButtonPressed(8, 1) then
elseif IsButtonPressed(9, 0) and IsButtonPressed(11, 0) then
elseif IsButtonPressed(9, 0) then
elseif IsButtonPressed(9, 1) then
elseif not gSkipAggression and IsButtonPressed(9, 0) and PlayerIsInAreaXYZ(csX, csY, csZ, 1, 0) then
elseif not gSwitchPresed and IsButtonPressed(13, 1) then
elseif not gSwitchPresed and IsButtonPressed(6, 1) then
elseif not IsButtonPressed(0, 0) and bLAPressed then
elseif not IsButtonPressed(0, 0) and not IsButtonPressed(1, 0) then
elseif not IsButtonPressed(0, 1) and bLAPressed then
elseif not IsButtonPressed(1, 0) and bRAPressed then
elseif not IsButtonPressed(1, 1) and bRAPressed then
elseif not IsButtonPressed(3, 0) and bDAPressed then
elseif not IsButtonPressed(3, 1) and bDAPressed then
elseif not IsButtonPressed(7, 0) and not IsButtonPressed(9, 0) then
elseif not IsButtonPressed(9, 0) and not IsButtonPressed(3, 0) then
elseif PlayerIsInTrigger(TRIGGER._5_B_LIFTDOWN) and IsButtonPressed(9, 0) then
if (GetStickValue(16, 0) < -0.5 or IsButtonPressed(1, 0)) and gCurrentMidget == 1 then
if (GetStickValue(16, 0) > 0.5 or IsButtonPressed(0, 0)) and gCurrentMidget == 2 then
if -0.5 > GetStickValue(17, 0) or IsButtonPressed(3, 0) then
if 0 <= shared.g_currentCreatedPed and IsButtonPressed(15, 1) then
if 0.5 < GetStickValue(17, 0) or IsButtonPressed(2, 0) then
if button_down and not IsButtonPressed(6, 0) and not incremented_counter then
if IsButtonPressed(0, 0) and bPressLeft then
if IsButtonPressed(0, 0) and not bLAPressed then
if IsButtonPressed(0, 0) and not bPressLeft then
if IsButtonPressed(0, 0) and not bRightArrowPressed then
if IsButtonPressed(0, 0) then
if IsButtonPressed(0, 1) and not bLAPressed then
if IsButtonPressed(0, 1) then
if IsButtonPressed(1, 0) and bPressRight then
if IsButtonPressed(1, 0) and not bLeftArrowPressed then
if IsButtonPressed(1, 0) and not bPressRight then
if IsButtonPressed(1, 0) and not bRAPressed then
if IsButtonPressed(1, 0) then
if IsButtonPressed(1, 1) and not bRAPressed then
if IsButtonPressed(1, 1) then
if IsButtonPressed(10, 0) and bEuniceIsCrying then
if IsButtonPressed(10, 1) and IsButtonPressed(11, 1) then
if IsButtonPressed(10, 1) and IsButtonPressed(13, 1) then
if IsButtonPressed(10, 1) and IsButtonPressed(5, 1) then
if IsButtonPressed(10, 1) and IsButtonPressed(6, 1) then
if IsButtonPressed(10, 1) and IsButtonPressed(8, 1) then
if IsButtonPressed(10, 1) then
if IsButtonPressed(11, 0) then
if IsButtonPressed(11, 1) and GetTimer() - lastChange > scrollDelay then
if IsButtonPressed(11, 1) and IsButtonPressed(10, 1) and IsButtonPressed(13, 1) then
if IsButtonPressed(11, 1) and IsButtonPressed(13, 1) and currentTime - bikeLastSpawned > bikeSpawnDelay then
if IsButtonPressed(11, 1) then
if IsButtonPressed(12, 0) and not bPressR1 and GetTimer() >= nextFireTime then
if IsButtonPressed(12, 0) and not bPressR1 then
if IsButtonPressed(12, 0) then
if IsButtonPressed(13, 0) then
if IsButtonPressed(13, 1) and GetTimer() - lastChange > scrollDelay then
if IsButtonPressed(13, 1) then
if IsButtonPressed(14, 0) then
if IsButtonPressed(15, 0) then
if IsButtonPressed(15, 1) then
if IsButtonPressed(2, 0) and not bUpArrowPressed then
if IsButtonPressed(2, 0) or GetStickValue(17, 0) > 0.5 then
if IsButtonPressed(2, 0) then
if IsButtonPressed(2, 1) then
if IsButtonPressed(3, 0) and bPressDown then
if IsButtonPressed(3, 0) and not bDAPressed then
if IsButtonPressed(3, 0) and not bDownArrowPressed then
if IsButtonPressed(3, 0) or GetStickValue(17, 0) < -0.5 then
if IsButtonPressed(3, 0) then
if IsButtonPressed(3, 1) and not bDAPressed then
if IsButtonPressed(3, 1) then
if IsButtonPressed(6, 0) and car == nil and not bSquarePressed then
if IsButtonPressed(6, 0) then
if IsButtonPressed(6, 1) then
if IsButtonPressed(7, 0) and bPressX then
if IsButtonPressed(7, 0) and IsButtonPressed(11, 0) then
if IsButtonPressed(7, 0) and not bPressX and GetTimer() >= nextFireTime then
if IsButtonPressed(7, 0) and not bPressX then
if IsButtonPressed(7, 0) then
if IsButtonPressed(7, 1) then
if IsButtonPressed(8, 0) and GetTimer() > gLastTimePressed + 24000 then
if IsButtonPressed(8, 0) and not bCirclePressed and not bTakingPedShots then
if IsButtonPressed(8, 0) and ped == nil and not bCirclePressed then
if IsButtonPressed(8, 0) or shared.playerKOd then
if IsButtonPressed(8, 0) then
if IsButtonPressed(9, 0) and IsButtonPressed(12, 0) then
if IsButtonPressed(9, 0) and not bTrianglePressed then
if IsButtonPressed(9, 0) then
if IsButtonPressed(button, 0) then
if IsButtonPressed(button, pad) and delay < GetTimer() - __LastButtonTime[timerIndex] then
if not bUsedScythe and IsButtonPressed(7, 0) and not PAnimIsPlaying(gReapers[gCurrentReaper].reaper, "/Global/FunReapr/Oneshot/Stay", false) and not PAnimIsPlaying(gReapers[gCurrentReaper].reaper, "/Global/FunReapr/Oneshot", false) then
if not button_down and IsButtonPressed(7, 0) then
if not gPlayedInitialTutorial and IsButtonPressed(8, 0) then
if not gSwitchPresed and IsButtonPressed(11, 1) then
if not gZoomed and IsButtonPressed(12, 0) then
if not IsButtonPressed(0, 0) and bLeftArrowPressed then
if not IsButtonPressed(0, 0) and bPressLeft then
if not IsButtonPressed(0, 0) and not bPressLeft then
if not IsButtonPressed(0, 0) or not bRightArrowPressed then
if not IsButtonPressed(1, 0) and bPressRight then
if not IsButtonPressed(1, 0) and bRightArrowPressed then
if not IsButtonPressed(1, 0) and not bPressRight then
if not IsButtonPressed(1, 0) or not bLeftArrowPressed then
if not IsButtonPressed(12, 0) and bPressR1 then
if not IsButtonPressed(12, 0) then
if not IsButtonPressed(15, 1) then
if not IsButtonPressed(2, 0) and bUpArrowPressed then
if not IsButtonPressed(2, 0) or not bUpArrowPressed then
if not IsButtonPressed(3, 0) and bDownArrowPressed then
if not IsButtonPressed(3, 0) and not bPressDown then
if not IsButtonPressed(3, 0) or not bDownArrowPressed then
if not IsButtonPressed(6, 0) and bSquarePressed then
if not IsButtonPressed(6, 0) or bSquarePressed or not bTakingCarShots then
if not IsButtonPressed(7, 0) and bPressX then
if not IsButtonPressed(7, 0) and not bPressX then
if not IsButtonPressed(7, 0) and not IsButtonPressed(10, 0) and not bGiveWeapon then
if not IsButtonPressed(8, 0) and bCirclePressed then
if not IsButtonPressed(9, 0) and bTrianglePressed then
if not IsButtonPressed(9, 0) or ped == nil or not bTrianglePressed then
if PedGetAmmoCount(gPlayer, 301) == 0 and PlayerIsInAreaObject(tblPrank[4].id, 2, 1, 0) and IsButtonPressed(7, 0) and IsButtonPressed(10, 0) and bGiveWeapon then
if PedGetAmmoCount(gPlayer, 309) == 0 and PlayerIsInAreaObject(tblPrank[8].id, 2, 1, 0) and IsButtonPressed(7, 0) and IsButtonPressed(10, 0) and bGiveWeapon then
if PedGetAmmoCount(gPlayer, 312) == 0 and PlayerIsInAreaObject(tblPrank[2].id, 2, 1, 0) and IsButtonPressed(7, 0) and IsButtonPressed(10, 0) and bGiveWeapon then
if PedGetAmmoCount(gPlayer, 349) == 0 and PlayerIsInAreaObject(tblPrank[7].id, 2, 1, 0) and IsButtonPressed(7, 0) and IsButtonPressed(10, 0) and bGiveWeapon then
if PedGetAmmoCount(gPlayer, 372) == 0 and PlayerIsInAreaObject(tblPrank[6].id, 2, 1, 0) and IsButtonPressed(7, 0) and IsButtonPressed(10, 0) and bGiveWeapon then
if PedGetAmmoCount(gPlayer, 394) == 0 and PlayerIsInAreaObject(tblPrank[5].id, 2, 1, 0) and IsButtonPressed(7, 0) and IsButtonPressed(10, 0) and bGiveWeapon then
if PlayerIsInAreaObject(tblPrank[3].id, 2, 1.25, 0) and IsButtonPressed(7, 0) and IsButtonPressed(10, 0) and bGiveWeapon then
if PlayerIsInTrigger(TRIGGER._2_01_TUTOFF2) and IsButtonPressed(9, 0) then
if skippable and IsButtonPressed(7, 0) then
while not (IsButtonPressed(12, 0) or IsButtonPressed(10, 0)) do
while not IsButtonPressed(15, 0) do
while not IsButtonPressed(2, 0) do
while not IsButtonPressed(4, 1) do
while not IsButtonPressed(9, 0) do
while not IsButtonPressed(btn, 0) do
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetInt
push eax
push edi
mov byte ptr [esp+0x20], 0x0
call 0x738840
fcomp st, qword ptr [0x9009A0]
add esp, 0x18
fnstsw ax
test ah, 0x44
jnp 0x7
mov byte ptr [esp+0x8], 0x1
mov eax, dword ptr [esp+0x8]
push eax
push esi
call LuaParam::PushBool
add esp, 0x8
pop edi
mov eax, 0x1
pop esi
pop ecx
ret
SHARED
Returns true if the config file didn't actually exist, and this is just an "empty" config object.
if IsCutsceneLoaded() then
movzx eax, byte ptr [0x20C5BE2]
mov ecx, dword ptr [esp+0x4]
push eax
push ecx
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
ret
if IsDemoBuildEnabled() == true then
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
ret
SHARED
Returns true if the hash (light userdata) is the hexadecimal value specified by string.
-- never used
cmp byte ptr [0x20C32EB], 0x0
jnz 0x21
cmp byte ptr [0x20C32F2], 0x0
jnz 0x18
xor eax, eax
push eax
mov eax, dword ptr [esp+0x8]
push eax
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
ret
mov eax, 0x1
push eax
mov eax, dword ptr [esp+0x8]
push eax
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
ret
-- never used
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x8
cmp eax, dword ptr [0xA136B0]
mov byte ptr [esp+0x4], 0x0
jl 0xF
cmp eax, dword ptr [0xA136B4]
jnle 0x7
mov byte ptr [esp+0x4], 0x1
mov eax, dword ptr [esp+0x4]
push eax
push esi
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
pop esi
pop ecx
ret
CLIENT
Returns true if the key is being pressed. If a controller is given, the controller object is checked rather than the DSL keyboard. The key can be a number or name of a directinput key. If given as a string, do not include the “DIK_” or “DIKEYBOARD_” part of the name.
CLIENT
Returns true if the key is being released. If a controller is given, the controller object is checked rather than the DSL keyboard. See IsKeyBeingPressed for help specifying the key argument.
CLIENT
Returns true if the key is pressed. If a controller is given, the controller object is checked rather than the DSL keyboard. See IsKeyBeingPressed for help specifying the key argument.
CLIENT
Returns true if the argument represents a valid key. Any other key related function would fail if this function returns false for the value.
Use this function if you let users type a custom key somewhere.
elseif IsMissionAvailable("C_Wrestling_2") or IsMissionAvailable("C_Wrestling_4") or IsMissionAvailable("C_Wrestling_5") then
elseif IsMissionAvailable("Dummy_Wrestling_2") or IsMissionAvailable("Dummy_Wrestling_4") or IsMissionAvailable("Dummy_Wrestling_5") then
elseif IsMissionAvailable("Dummy_Wrestling_3") then
elseif IsMissionAvailable("Dummy_Wrestling_4") then
elseif IsMissionAvailable("Dummy_Wrestling_5") then
if bPeteyCreatedAndWaiting and (not (not MissionActive() and PlayerIsInTrigger(TRIGGER._PETEYPIER)) or not IsMissionAvailable("2_09")) then
if gPausedGameClock and not MissionActive() and not IsMissionAvailable("3_08") and not IsMissionAvailable("6_01") then
if IsMissionAvailable("1_05") then
if IsMissionAvailable("1_07") then
if IsMissionAvailable("1_08") then
if IsMissionAvailable("1_11x1") then
if IsMissionAvailable("1_G1") then
if IsMissionAvailable("1_S01") then
if IsMissionAvailable("2_02") then
if IsMissionAvailable("2_03") then
if IsMissionAvailable("2_05") then
if IsMissionAvailable("2_06") and not MissionActive() and ClockGet() >= 8 and ClockGet() < 20 and not shared.b2_06Failed and not shared.bMovieTicketLine and PlayerIsInAreaXYZ(346.873, 218.43, 4.95147, 50, 0) then
if IsMissionAvailable("2_06") then
if IsMissionAvailable("2_07") then
if IsMissionAvailable("2_08") then
if IsMissionAvailable("2_09") and not MissionActive() and not bPeteyCreatedAndWaiting and PlayerIsInTrigger(TRIGGER._PETEYPIER) then
if IsMissionAvailable("2_09") then
if IsMissionAvailable("2_G2") then
if IsMissionAvailable("2_S04") then
if IsMissionAvailable("2_S06") then
if IsMissionAvailable("3_04") then
if IsMissionAvailable("3_05") then
if IsMissionAvailable("3_06") then
if IsMissionAvailable("3_G3") then
if IsMissionAvailable("3_S10") then
if IsMissionAvailable("3_S11") then
if IsMissionAvailable("4_02") then
if IsMissionAvailable("4_04") then
if IsMissionAvailable("4_G4") then
if IsMissionAvailable("4_S12") then
if IsMissionAvailable("5_01") then
if IsMissionAvailable("5_02") then
if IsMissionAvailable("5_03") then
if IsMissionAvailable("5_04") then
if IsMissionAvailable("5_06") then
if IsMissionAvailable("5_07a") then
if IsMissionAvailable("6_02") then
if IsMissionAvailable("C_Art_1") or IsMissionAvailable("C_Art_1_repeat") or IsMissionAvailable("C_Art_2") or IsMissionAvailable("C_Art_2_repeat") or IsMissionAvailable("C_Art_3") or IsMissionAvailable("C_Art_3_repeat") or IsMissionAvailable("C_Art_4") or IsMissionAvailable("C_Art_4_repeat") or IsMissionAvailable("C_Art_5") or IsMissionAvailable("C_Art_5_repeat") then
if IsMissionAvailable("C_Biology_1") or IsMissionAvailable("C_Biology_1_repeat") or IsMissionAvailable("C_Biology_2") or IsMissionAvailable("C_Biology_2_repeat") or IsMissionAvailable("C_Biology_3") or IsMissionAvailable("C_Biology_3_repeat") or IsMissionAvailable("C_Biology_4") or IsMissionAvailable("C_Biology_4_repeat") or IsMissionAvailable("C_Biology_5") or IsMissionAvailable("C_Biology_5_repeat") then
if IsMissionAvailable("C_Chem_1") or IsMissionAvailable("C_Chem_1_repeat") or IsMissionAvailable("C_Chem_2") or IsMissionAvailable("C_Chem_2_repeat") or IsMissionAvailable("C_Chem_3") or IsMissionAvailable("C_Chem_3_repeat") or IsMissionAvailable("C_Chem_4") or IsMissionAvailable("C_Chem_4_repeat") or IsMissionAvailable("C_Chem_5") or IsMissionAvailable("C_Chem_5_repeat") then
if IsMissionAvailable("C_English_1") or IsMissionAvailable("C_English_1_unlocked") or IsMissionAvailable("C_English_2") or IsMissionAvailable("C_English_2_unlocked") or IsMissionAvailable("C_English_3") or IsMissionAvailable("C_English_3_unlocked") or IsMissionAvailable("C_English_4") or IsMissionAvailable("C_English_4_unlocked") or IsMissionAvailable("C_English_5") or IsMissionAvailable("C_English_5_unlocked") then
if IsMissionAvailable("C_Geography_1") or IsMissionAvailable("C_Geography_1_repeat") or IsMissionAvailable("C_Geography_2") or IsMissionAvailable("C_Geography_2_repeat") or IsMissionAvailable("C_Geography_3") or IsMissionAvailable("C_Geography_3_repeat") or IsMissionAvailable("C_Geography_4") or IsMissionAvailable("C_Geography_4_repeat") or IsMissionAvailable("C_Geography_5") or IsMissionAvailable("C_Geography_5_repeat") then
if IsMissionAvailable("C_Math_1") or IsMissionAvailable("C_Math_1_repeat") or IsMissionAvailable("C_Math_2") or IsMissionAvailable("C_Math_2_repeat") or IsMissionAvailable("C_Math_3") or IsMissionAvailable("C_Math_3_repeat") or IsMissionAvailable("C_Math_4") or IsMissionAvailable("C_Math_4_repeat") or IsMissionAvailable("C_Math_5") or IsMissionAvailable("C_Math_5_repeat") then
if IsMissionAvailable("C_Music_1") or IsMissionAvailable("C_Music_1_repeat") or IsMissionAvailable("C_Music_2") or IsMissionAvailable("C_Music_2_repeat") or IsMissionAvailable("C_Music_3") or IsMissionAvailable("C_Music_3_repeat") or IsMissionAvailable("C_Music_4") or IsMissionAvailable("C_Music_4_repeat") or IsMissionAvailable("C_Music_5") or IsMissionAvailable("C_Music_5_repeat") then
if IsMissionAvailable("C_Photography_1") or IsMissionAvailable("C_Photography_2") or IsMissionAvailable("C_Photography_3") or IsMissionAvailable("C_Photography_4") or IsMissionAvailable("C_Photography_5") then
if IsMissionAvailable("C_Shop_1") or IsMissionAvailable("C_Shop_2") or IsMissionAvailable("C_Shop_3") or IsMissionAvailable("C_Shop_4") or IsMissionAvailable("C_Shop_5") then
if IsMissionAvailable("C_Wrestling_1") or IsMissionAvailable("C_Wrestling_2") or IsMissionAvailable("C_Wrestling_3") or IsMissionAvailable("C_Wrestling_4") or IsMissionAvailable("C_Wrestling_5") then
if IsMissionAvailable("C_Wrestling_1") or IsMissionAvailable("C_Wrestling_3") then
if IsMissionAvailable("Dummy_Wrestling_1") or IsMissionAvailable("Dummy_Wrestling_3") then
if IsMissionAvailable("Dummy_Wrestling_1") then
if IsMissionAvailable("Dummy_Wrestling_2") then
if IsMissionCompleated("2_B") and not IsMissionAvailable("3_S10") and not IsMissionAvailable("5_02") then
if not IsMissionAvailable("2_09") then
if not IsMissionAvailable("6_01") then
if not MissionActive() and not ClockIsPaused() and not IsMissionAvailable("3_08") and not IsMissionAvailable("6_01") then
if shared.bMovieTicketLine and (not (not MissionActive() and PlayerIsInAreaXYZ(346.873, 218.43, 4.95147, 55, 0)) or not IsMissionAvailable("2_06")) then
storeAvailable = not IsMissionAvailable("3_R09_N") and not MissionActiveSpecific("3_R09_N")
sub esp, 0x8
push esi
push edi
mov edi, dword ptr [esp+0x14]
push 0x0
push edi
call LuaParam::GetString
add esp, 0x8
push eax
lea ecx, ptr [esp+0x10]
call 0x5FA910
lea eax, ptr [esp+0xC]
push eax
mov ecx, 0x20C3CA0
call 0x6A9FD0
mov esi, eax
test esi, esi
jl 0x27
push esi
mov ecx, 0x20C3CA0
call 0x6AA7C0
test byte ptr [eax+0x4], 0x1
jz 0x16
push esi
mov ecx, 0x20C3CA0
call 0x6AA940
test al, al
mov byte ptr [esp+0x8], 0x1
jz 0x7
mov byte ptr [esp+0x8], 0x0
mov ecx, dword ptr [esp+0x8]
push ecx
push edi
call LuaParam::PushBool
add esp, 0x8
lea ecx, ptr [esp+0xC]
call 0x49A650
pop edi
mov eax, 0x1
pop esi
add esp, 0x8
ret
--print("IsMissionCompleated( 3_08): ", tostring(IsMissionCompleated("3_08")))
--print("IsMissionCompleated( 3_08_PostDummy): ", tostring(IsMissionCompleated("3_08_PostDummy")))
elseif IsMissionCompleated("1_02C") and not IsMissionCompleated("ART2X") then
elseif IsMissionCompleated("1_02C") then
elseif IsMissionCompleated("1_04") then
elseif IsMissionCompleated("1_07") then
elseif IsMissionCompleated("1_09") then
elseif IsMissionCompleated("1_11x1") then
elseif IsMissionCompleated("1_11x2") then
elseif IsMissionCompleated("1_B") then
elseif IsMissionCompleated("1_G1") then
elseif IsMissionCompleated("2_03") then
elseif IsMissionCompleated("2_05") then
elseif IsMissionCompleated("2_08") then
elseif IsMissionCompleated("2_B") then
elseif IsMissionCompleated("2_S06") then
elseif IsMissionCompleated("3_01") then
elseif IsMissionCompleated("3_02") then
elseif IsMissionCompleated("3_05") then
elseif IsMissionCompleated("3_B") then
elseif IsMissionCompleated("3_S10") then
elseif IsMissionCompleated("4_01") then
elseif IsMissionCompleated("4_02") then
elseif IsMissionCompleated("4_B1") then
elseif IsMissionCompleated("4_B2") then
elseif IsMissionCompleated("4_G4") then
elseif IsMissionCompleated("4_S11") then
elseif IsMissionCompleated("5_02") then
elseif IsMissionCompleated("5_03") then
elseif IsMissionCompleated("5_09") then
elseif IsMissionCompleated("5_B") then
elseif IsMissionCompleated("6_B") then
elseif IsMissionCompleated("C_Engllish_3") then
elseif IsMissionCompleated("C_Engllish_4") then
elseif IsMissionCompleated(tblEntry.missionID) then
elseif missionId == MissionGetIndex("1_03") and not IsMissionCompleated("1_09") then
elseif not IsMissionCompleated("3_02") then
elseif not IsMissionCompleated("CLOCKTUTX") then
elseif not IsMissionCompleated("REDX1") then
if 7 <= sHour and sHour <= 17 and IsMissionCompleated("1_02C") then
if Area == 30 and IsMissionCompleated("3_R09_N") then
if bCreatedExitBlocks and IsMissionCompleated("1_B") then
if bSuccessSoLoadHalloween and IsMissionCompleated("1_07") then
if gComicNodes == false and IsMissionCompleated("3_R09_N") then
if IsMissionCompleated("1_02A") and not gPlayerImmortal and not IsMissionCompleated("1_02B_Dummy") then
if IsMissionCompleated("1_02A") then
if IsMissionCompleated("1_02C") and not MissionActive() and gPausedClock then
if IsMissionCompleated("1_02C") and not MissionActive() and not ClockIsPaused() then
if IsMissionCompleated("1_02C") then
if IsMissionCompleated("1_05") and not IsMissionCompleated("1_11_Dummy") then
if IsMissionCompleated("1_05") then
if IsMissionCompleated("1_06_01") then
if IsMissionCompleated("1_07") and IsMissionCompleated("1_08") then
if IsMissionCompleated("1_07") then
if IsMissionCompleated("1_08") then
if IsMissionCompleated("1_09") and not IsMissionCompleated("1_11_Dummy") then
if IsMissionCompleated("1_09") and not MissionActive() and not IsMissionCompleated("1_11x1") then
if IsMissionCompleated("1_09") then
if IsMissionCompleated("1_10") then
if IsMissionCompleated("1_11_Dummy") or not IsMissionCompleated("1_05") then
if IsMissionCompleated("1_11x1") and not IsMissionCompleated("1_11_Dummy") then
if IsMissionCompleated("1_11x1") then
if IsMissionCompleated("1_11xp") and not IsMissionCompleated("1_11x2") and not IsMissionCompleated("1_11_Dummy") then
if IsMissionCompleated("1_B") then
if IsMissionCompleated("1_E01") and not shared.gHalloweenActive and (not IsMissionCompleated("4_05") or not not IsMissionCompleated("4_06")) then
if IsMissionCompleated("1_G1") then
if IsMissionCompleated("1_S01") then
if IsMissionCompleated("2_02") then
if IsMissionCompleated("2_03") then
if IsMissionCompleated("2_05") then
if IsMissionCompleated("2_06") then
if IsMissionCompleated("2_07") then
if IsMissionCompleated("2_08") then
if IsMissionCompleated("2_09") and not IsMissionCompleated("2_B") then
if IsMissionCompleated("2_B") and not IsMissionAvailable("3_S10") and not IsMissionAvailable("5_02") then
if IsMissionCompleated("2_B") then
if IsMissionCompleated("2_G2") then
if IsMissionCompleated("2_S04") then
if IsMissionCompleated("2_S06") then
if IsMissionCompleated("3_01") then
if IsMissionCompleated("3_02") then
if IsMissionCompleated("3_04") then
if IsMissionCompleated("3_05") then
if IsMissionCompleated("3_06") then
if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then
if IsMissionCompleated("3_08") or not IsMissionCompleated("Chapt2Trans") and not MissionActiveSpecific("Chapt2Trans") then
if IsMissionCompleated("3_B") then
if IsMissionCompleated("3_G3") then
if IsMissionCompleated("3_R08_Rich7") and IsMissionCompleated("3_R08_Business4") and IsMissionCompleated("3_R08_Poor2") and IsMissionCompleated("3_R08_School1") then
if IsMissionCompleated("3_R09_D3") then
if IsMissionCompleated("3_R09_G3") then
if IsMissionCompleated("3_R09_J3") then
if IsMissionCompleated("3_R09_N") or shared.unlockedClothing then
if IsMissionCompleated("3_R09_N") then
if IsMissionCompleated("3_R09_P3") then
if IsMissionCompleated("3_S03") then
if IsMissionCompleated("3_S10") or forceLoad then
if IsMissionCompleated("3_S10") or shared.bSprayUnlocked then
if IsMissionCompleated("3_S10") then
if IsMissionCompleated("3_S11") then
if IsMissionCompleated("4_02") then
if IsMissionCompleated("4_03") then
if IsMissionCompleated("4_04") then
if IsMissionCompleated("4_B1") then
if IsMissionCompleated("4_B2") then
if IsMissionCompleated("4_G4") then
if IsMissionCompleated("4_S12") then
if IsMissionCompleated("5_01") or MissionActiveSpecific("5_02") then
if IsMissionCompleated("5_01") then
if IsMissionCompleated("5_02") and IsMissionCompleated("6_01_Launch") and not IsMissionCompleated("6_01") then
if IsMissionCompleated("5_02") and not IsMissionCompleated("6_01") then
if IsMissionCompleated("5_02") then
if IsMissionCompleated("5_03") then
if IsMissionCompleated("5_04") then
if IsMissionCompleated("5_05") then
if IsMissionCompleated("5_06") then
if IsMissionCompleated("5_07a") then
if IsMissionCompleated("5_B") then
if IsMissionCompleated("5_G5") then
if IsMissionCompleated("6_B") then
if IsMissionCompleated("C_ART_5") then
if IsMissionCompleated("C_BIOLOGY_5") then
if IsMissionCompleated("C_Chem_2") and 5 > PedGetAmmoCount(gPlayer, 309) then
if IsMissionCompleated("C_Chem_2") then
if IsMissionCompleated("C_Chem_3") and PedGetAmmoCount(gPlayer, 394) < 5 then
if IsMissionCompleated("C_Chem_3") then
if IsMissionCompleated("C_Chem_4") and PlayerHasItem(307) and PedGetAmmoCount(gPlayer, 308) < 12 then
if IsMissionCompleated("C_Chem_4") then
if IsMissionCompleated("C_Chem_5") and shared.ChemistrySetLocked == 0 then
if IsMissionCompleated("C_Engllish_2") then
if IsMissionCompleated("C_Geography_2") then
if IsMissionCompleated("C_Geography_3") then
if IsMissionCompleated("C_Geography_4") then
if IsMissionCompleated("C_Geography_5") then
if IsMissionCompleated("C_GEOGRAPHY_5") then
if IsMissionCompleated("C_MATH_5") then
if IsMissionCompleated("C_MUSIC_5") then
if IsMissionCompleated("C_Photography_5") then
if IsMissionCompleated("C_PHOTOGRAPHY_5") then
if IsMissionCompleated("C_SHOP_5") then
if IsMissionCompleated("C_WRESTLING_3") then
if IsMissionCompleated("C_WRESTLING_5") then
if IsMissionCompleated("Chapt1Trans") then
if IsMissionCompleated("Chapt2Trans") and IsMissionCompleated("3_08_Launch") and not IsMissionCompleated("3_08") then
if IsMissionCompleated("Chapt2Trans") and not IsMissionCompleated("3_08") then
if IsMissionCompleated("Chapt2Trans") and not IsMissionCompleated("3_08_PostDummy") then
if IsMissionCompleated("GameStart") then
if IsMissionCompleated("GOKART_GP5") then
if IsMissionCompleated("GoKart_SR3") then
if IsMissionCompleated(entry.race) or MissionActiveSpecific(entry.race) then
if IsMissionCompleated(scenario.missionreq) and (bRepeatable and bPrereqCompleted or bRepeatable == false and bCompleted == false and bPrereqCompleted) and (bMissionOnOff == false or bMissoinOnOffCompleted == false) and shared.gAlarmOn == false and bScheduled then
if MissionActiveSpecific("4_03") or IsMissionCompleated("4_03") then
if not gClothingUnlocked and (IsMissionCompleated("C_Wrestling_1") or shared.unlockedClothing) then
if not IsMissionCompleated("1_02B") then
if not IsMissionCompleated("1_03") then
if not IsMissionCompleated("1_11xp") then
if not IsMissionCompleated("1_B") then
if not IsMissionCompleated("3_08") then
if not IsMissionCompleated("3_08_PostDummy") then
if not IsMissionCompleated("4_02") then
if not IsMissionCompleated("4_03") then
if not IsMissionCompleated("4_B1") then
if not IsMissionCompleated("BIKEPARK4X") and not MissionActiveSpecific("BIKEPARK4X") then
if not IsMissionCompleated("BUSTCOPS") and not PedGetFlag(gPlayer, 103) and not PedGetFlag(gPlayer, 104) then
if not IsMissionCompleated("BUSTPREFCLASS") then
if not IsMissionCompleated("BUSTPREFNOCLASS") then
if not IsMissionCompleated("C_Chem_5") then
if not IsMissionCompleated("KNOCKEDOUT") then
if not IsMissionCompleated("LOSEWEAPONS") and (PedGetFlag(gPlayer, 103) or PedGetFlag(gPlayer, 104)) then
if not IsMissionCompleated("PASSEDOUT") then
if not IsMissionCompleated("TRESPASSX") and not MissionActiveSpecific("TRESPASSX") then
if not MissionActive() and not IsMissionCompleated("1_E01") and not PlayerIsInTrigger(TRIGGER._PLAYER_ROOM) and not bLaunchErrandTut and IsMissionCompleated("1_05") and ClockGet() >= 8 and ClockGet() <= 18 then
if pedGary.id and PedIsValid(pedGary.id) and (PedGetHealth(pedGary.id) / originalHealth) < 0.75 and not IsMissionCompleated("CLIMBING") then
if shared.ChemistrySetLocked == 1 and IsMissionCompleated("C_Chem_1") then
local bMissoinOnOffCompleted = scenario.missionoff ~= nil and IsMissionCompleated(scenario.missionoff)
return not IsMissionCompleated("2_03") and IsMissionCompleated("3_R09_P3") and hour <= 23 and 8 <= hour
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push 0x0
push esi
call LuaParam::GetString
add esp, 0x8
push eax
lea ecx, ptr [esp+0x8]
call 0x5FA910
lea eax, ptr [esp+0x4]
push eax
mov ecx, 0x20C3CA0
call 0x6A9FD0
push eax
mov ecx, 0x20C3CA0
call 0x6AA7C0
cmp word ptr [eax+0x2], 0x0
setnbe cl
push ecx
push esi
call LuaParam::PushBool
add esp, 0x8
lea ecx, ptr [esp+0x4]
call 0x49A650
mov eax, 0x1
pop esi
pop ecx
ret
-- never used
push ecx
mov ecx, 0x20C3CA0
call 0x6AA710
cmp byte ptr [eax+0xE], 0x0
jz 0x16
mov ecx, 0x20C3CA0
call 0x6AA710
cmp byte ptr [eax+0xC], 0x0
mov byte ptr [esp], 0x1
jz 0x6
mov byte ptr [esp], 0x0
mov eax, dword ptr [esp]
mov ecx, dword ptr [esp+0x8]
push eax
push ecx
call LuaParam::PushBool
mov eax, 0x1
add esp, 0xC
ret
elseif gMissionState == MISSION_PASSED or IsMissionDebugSuccess() then
if gMissionState == MISSION_PASSED or IsMissionDebugSuccess() then
push ecx
mov ecx, 0x20C3CA0
call 0x6AA710
cmp byte ptr [eax+0xE], 0x0
jz 0x16
mov ecx, 0x20C3CA0
call 0x6AA710
cmp byte ptr [eax+0xC], 0x0
mov byte ptr [esp], 0x1
jnz 0x6
mov byte ptr [esp], 0x0
mov eax, dword ptr [esp]
mov ecx, dword ptr [esp+0x8]
push eax
push ecx
call LuaParam::PushBool
mov eax, 0x1
add esp, 0xC
ret
if IsMissionFromDebug() then
mov ecx, 0x20C3CA0
call 0x6AA710
mov eax, dword ptr [eax]
push eax
mov ecx, 0x20C3CA0
call 0x6AA7C0
movzx eax, byte ptr [eax+0x4]
mov ecx, dword ptr [esp+0x4]
shr al, 0x2
and eax, 0xFFFFFF01
push eax
push ecx
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
ret
if not IsMissionFromRestart() then
mov ecx, 0x20C3CA0
call 0x6AA710
movzx eax, byte ptr [eax+0xD]
mov ecx, dword ptr [esp+0x4]
push eax
push ecx
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
ret
if not IsMissionRestartable() then
mov ecx, 0x20C3CA0
call 0x6AA710
mov eax, dword ptr [eax]
push eax
mov ecx, 0x20C3CA0
call 0x6AA660
movzx eax, byte ptr [eax+0x2D]
mov ecx, dword ptr [esp+0x4]
push eax
push ecx
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
ret
-- never used
mov ecx, 0x20C3CA0
call 0x6AA710
mov eax, dword ptr [eax]
push eax
mov ecx, 0x20C3CA0
call 0x6AA660
movzx eax, byte ptr [eax+0x35]
mov ecx, dword ptr [esp+0x4]
push eax
push ecx
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
ret
CLIENT
Returns true if a mouse button is being pressed. Mouse buttons are in the range [0, 3].
CLIENT
Returns true if a mouse button is being released. Mouse buttons are in the range [0, 3].
CLIENT
Returns true if a mouse button is pressed. Mouse buttons are in the range [0, 3].
-- never used
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x8
test eax, eax
jnl 0x6
xor ecx, ecx
jmp 0x1D
mov edx, dword ptr [0x20C7C48]
mov ecx, dword ptr [edx+0x4]
test byte ptr [eax+ecx*1], 0x80
jz 0x6
xor ecx, ecx
jmp 0xA
mov ecx, dword ptr [edx+0xC]
imul ecx, eax
add ecx, dword ptr [edx]
test ecx, ecx
mov byte ptr [esp+0x4], 0x0
jz 0x2A
mov ecx, dword ptr [ecx+0x1C]
test ecx, ecx
jz 0x23
push ecx
mov ecx, 0xD13730
call 0x5EB9A0
test eax, eax
jz 0x14
mov eax, dword ptr [eax+0x8]
test eax, eax
jz 0xD
cmp byte ptr [eax+0xC], 0x0
jz 0x7
mov byte ptr [esp+0x4], 0x1
mov edx, dword ptr [esp+0x4]
push edx
push esi
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
pop esi
pop ecx
ret
SERVER
Returns true if the argument is a valid player. Unless any is true, the player must also be in the "connected" state.
CLIENT
Returns true if save data has loaded. If it hasn't loaded, GetSaveDataTable and GetRawSaveDataTable will fail. You can avoid having to worry about this by only calling GetSaveDataTable inside a game thread.
SHARED
Returns true if the script is from a zipped mod.
If no script is given, the current one is used.
while AreaIsLoading() and IsStreamingBusy() do
while IsStreamingBusy() do
push ecx
cmp dword ptr [0xCA399C], 0xFFFFFF38
jle 0x1A
cmp byte ptr [0xA957D4], 0x0
jnz 0xB
cmp dword ptr [0xCA3988], 0x0
jle 0x8
mov byte ptr [esp], 0x1
jmp 0x6
mov byte ptr [esp], 0x0
mov eax, dword ptr [esp]
mov ecx, dword ptr [esp+0x8]
push eax
push ecx
call LuaParam::PushBool
mov eax, 0x1
add esp, 0xC
ret
SHARED
Returns true if the integrated sync system is active. Any other integrated sync function will fail otherwise. You can usually use "require_sync" in your mod's config, or the RequireSync function instead of checking this function.
CLIENT
Returns true if the sync entity is "active". A sync entity is only active when in the same sync dimension as the local player.
CLIENT
Returns true if the sync entity is "ready". A sync entity is ready after it receives its first update from the server. A valid game ped / vehicle can only exist for entities that are ready.
SHARED
Returns true if the argument is a valid sync entity that also happens to be a ped.
SHARED
Returns true if the argument is a valid sync entity that also happens to be a vehicle.
SHARED
Returns true if system access is allowed. System access can be turned on in full versions of DSL by editing _derpy_script_loader/dslconfig.ini.
CLIENT
Returns true if the controller is actually a controller rather than a keyboard.
CLIENT
Returns true if DSL believes ThirteenAG’s widescreen patch is active.
if valid and IsValidYearbookPhotoOfPed(entityId) then
sub esp, 0x8
push esi
push edi
mov edi, dword ptr [esp+0x14]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
fldz
mov esi, eax
fstp dword ptr [esp+0x14], st
add esp, 0x8
test esi, esi
mov byte ptr [esp+0x8], 0x0
jz 0x30
movsx eax, word ptr [esi+0x10E]
push eax
call 0x6A1350
add esp, 0x4
test al, al
jz 0x1C
mov ecx, dword ptr [0xC1AEA8]
lea eax, ptr [esp+0xC]
push eax
push esi
call 0x49B680
test al, al
jz 0x7
mov byte ptr [esp+0x8], 0x1
mov ecx, dword ptr [esp+0x8]
push ecx
push edi
call LuaParam::PushBool
add esp, 0x8
pop edi
mov eax, 0x1
pop esi
add esp, 0x8
ret
--print("Player picked up stink bombs!: ", ItemGetCurrentNum(309))
bTicketCount = ItemGetCurrentNum(495)
CounterSetCurrent(ItemGetCurrentNum(495))
current_tickets = ItemGetCurrentNum(495)
elseif eggsCreated and (PickupIsPickedUp(gEggPickup) or ItemGetCurrentNum(312) > 0) then
elseif ItemGetCurrentNum(478) > 0 then
elseif not bGreetEunice02 and ItemGetCurrentNum(478) > 0 and not bStoreBoughtChocolates then
elseif not gCarnivalEntranceCorona and 0 >= ItemGetCurrentNum(479) then
Flowers = ItemGetCurrentNum(475)
gNumNotes = ItemGetCurrentNum(488)
gNumPlayerChoc = ItemGetCurrentNum(478)
gNumStinkbombs = ItemGetCurrentNum(309)
gNumTransis = ItemGetCurrentNum(476)
gPlayersTicketCountBeforeStartingMission = ItemGetCurrentNum(495)
if 0 < ItemGetCurrentNum(309) then
if 0 < ItemGetCurrentNum(478) then
if 0 < ItemGetCurrentNum(modelDiary) and PlayerIsInAreaObject(beatrice, 2, 3, 0) then
if 0 >= ItemGetCurrentNum(475) then
if 1 <= ItemGetCurrentNum(478) and bGreetEunice01 and not shared.playerShopping and not bStoreBoughtChocolates then
if band == ItemGetCurrentNum(500) then
if card == ItemGetCurrentNum(474) then
if CounterGetCurrent() == CounterGetMax() - 1 and ItemGetCurrentNum(312) == 1 then
if current_tickets <= ItemGetCurrentNum(495) then
if gStinkBombs ~= nil and (PickupIsPickedUp(gStinkBombs) or 0 < ItemGetCurrentNum(309)) then
if ItemGetCurrentNum(303) == 0 then
if ItemGetCurrentNum(305) == 0 then
if ItemGetCurrentNum(306) == 0 then
if ItemGetCurrentNum(307) == 0 then
if ItemGetCurrentNum(309) == 0 then
if ItemGetCurrentNum(312) == 0 and not eggsCreated then
if ItemGetCurrentNum(312) == 0 then
if ItemGetCurrentNum(312) > 0 and bEggStashMode and not PlayerIsInTrigger(TRIGGER._2_05_EGGSTASHAREA) then
if ItemGetCurrentNum(321) == 0 then
if ItemGetCurrentNum(321) > 0 then
if ItemGetCurrentNum(394) == 0 then
if ItemGetCurrentNum(475) >= gTotalFlowersRequired then
if ItemGetCurrentNum(476) > 0 then
if ItemGetCurrentNum(478) < 5 then
if ItemGetCurrentNum(478) == 0 then
if ItemGetCurrentNum(480) > 0 then
if ItemGetCurrentNum(494) > 0 then
if ItemGetCurrentNum(495) > bTicketCount then
if ItemGetCurrentNum(495) > gTicketsRequired then
if ItemGetCurrentNum(495) >= gTicketsRequired then
if missionStage ~= MissionStageMeetWithFatty and not bPlayerRiggedLocker and ItemGetCurrentNum(309) == 0 and gStinkBombs == nil then
if not bGiftedEunice and bGreetEunice01 and ItemGetCurrentNum(478) == 0 then
if not bGreetEunice01 and ItemGetCurrentNum(478) == 0 then
if PedIsValid(beatrice) and 0 < ItemGetCurrentNum(modelDiary) and PlayerIsInAreaObject(beatrice, 2, 3, 0) then
if PlayerGetMoney() < 100 and ItemGetCurrentNum(478) == 0 and not shared.playerShopping then
if PlayerGetMoney() < 100 and not shared.playerShopping and (not PlayerHasItem(479) or ItemGetCurrentNum(495) < gTicketsRequired) then
if PlayerGetMoney() < 150 and ItemGetCurrentNum(312) == 0 and not shared.playerShopping then
if PlayerIsInTrigger(TRIGGER._ZONECARNIVAL) and 0 >= ItemGetCurrentNum(479) then
ItemSetCurrentNum(475, ItemGetCurrentNum(475) - 1)
ItemSetCurrentNum(478, ItemGetCurrentNum(478) - 1)
local chocoCount = ItemGetCurrentNum(478)
local flowersLeft = ItemGetCurrentNum(475) - 6
local numInventory = ItemGetCurrentNum(pickup.model)
local numInventory = ItemGetCurrentNum(pickupModel)
local totalRadios = ItemGetCurrentNum(476)
return ItemGetCurrentNum(510) == 1
while ItemGetCurrentNum(modelDiary) == 0 do
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetInt
mov edx, eax
add esp, 0x8
xor eax, eax
cmp edx, dword ptr [0xA136B0]
jl 0x2C
cmp edx, dword ptr [0xA136B4]
jnle 0x24
mov eax, dword ptr [0xC1AEA8]
mov ecx, dword ptr [eax+0x1C4]
push edx
call 0x45CF40
push eax
push esi
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
pop esi
ret
cmp edx, dword ptr [0xA136B8]
jl 0x13
cmp edx, dword ptr [0xA136BC]
jnle 0xB
push edx
call 0x541E00
add esp, 0x4
push eax
push esi
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
pop esi
ret
ItemSetCurrentNum(363, 0)
ItemSetCurrentNum(370, 10)
ItemSetCurrentNum(385, 1000)
ItemSetCurrentNum(475, 1)
ItemSetCurrentNum(475, flowersLeft)
ItemSetCurrentNum(475, ItemGetCurrentNum(475) - 1)
ItemSetCurrentNum(476, 0)
ItemSetCurrentNum(476, totalRadios)
ItemSetCurrentNum(478, 0)
ItemSetCurrentNum(478, 5)
ItemSetCurrentNum(478, chocoCount)
ItemSetCurrentNum(478, ItemGetCurrentNum(478) - 1)
ItemSetCurrentNum(479, 0)
ItemSetCurrentNum(480, 0)
ItemSetCurrentNum(484, 0)
ItemSetCurrentNum(488, 0)
ItemSetCurrentNum(490, 0)
ItemSetCurrentNum(491, 0)
ItemSetCurrentNum(492, 0)
ItemSetCurrentNum(493, 0)
ItemSetCurrentNum(495, gPlayersTicketCountBeforeStartingMission)
ItemSetCurrentNum(497, 0)
ItemSetCurrentNum(499, 0)
ItemSetCurrentNum(502, 0)
ItemSetCurrentNum(504, 0)
ItemSetCurrentNum(507, 0)
ItemSetCurrentNum(510, 0)
ItemSetCurrentNum(515, 0)
ItemSetCurrentNum(521, 0)
ItemSetCurrentNum(521, 1)
ItemSetCurrentNum(522, 0)
ItemSetCurrentNum(523, 0)
ItemSetCurrentNum(524, 0)
ItemSetCurrentNum(526, 0)
ItemSetCurrentNum(528, 0)
ItemSetCurrentNum(529, 0)
ItemSetCurrentNum(529, 1)
ItemSetCurrentNum(dataSet.id, 0)
ItemSetCurrentNum(entry.model, 0)
ItemSetCurrentNum(modelDiary, 0)
ItemSetCurrentNum(pickup.model, pickup.initPlayerInventory)
ItemSetCurrentNum(player.weapon.model, player.weapon.ammo)
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetInt
push 0x1
push edi
mov esi, eax
call LuaParam::GetInt
add esp, 0x10
cmp esi, dword ptr [0xA136B0]
jl 0x23
cmp esi, dword ptr [0xA136B4]
jnle 0x1B
push 0x1
push eax
mov eax, dword ptr [0xC1AEA8]
mov ecx, dword ptr [eax+0x1C4]
push esi
call 0x45D240
pop edi
xor eax, eax
pop esi
ret
cmp esi, dword ptr [0xA136B8]
jl 0x14
cmp esi, dword ptr [0xA136BC]
jnle 0xC
push eax
push esi
call 0x541D60
add esp, 0x8
pop edi
xor eax, eax
pop esi
ret
function KillNameSpace(filename)
_nspaces[filename] = nil
--print("Threads left after kill:")
end
LaunchScenarioScript(scenario.script)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetString
add esp, 0x8
push 0x1
push eax
mov ecx, 0xD02850
call 0x5DC0F0
test eax, eax
jz 0x1C
push esi
mov esi, dword ptr [0xC0F5E4]
add eax, 0x4
push eax
call 0x576ED0
add esp, 0x4
mov dword ptr [esi+0x14C], eax
pop esi
xor eax, eax
ret
LaunchScript("AreaScripts/StoreTransition.lua")
LaunchScript("secnd/MGLockPicking.lua")
LaunchScript("STimeCycle.lua")
success, err = pcall(LaunchScript, param)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetString
add esp, 0x8
push 0x1
push eax
mov ecx, 0xD02850
call 0x5DC0F0
xor eax, eax
ret
SHARED
On the client, acts just like the normal LaunchScript. If the mod has "custom_imports" set to true in the config, scripts are started from the current mod folder rather than from Scripts.img.
On the server, acts very similar to StartScript.
if LawnMowingGetPercent() >= 99 then
sub esp, 0xC
mov ecx, dword ptr [0x20C8704]
call 0x709520
mov ecx, dword ptr [0x20C8704]
mov dword ptr [esp], eax
fild st, dword ptr [esp]
fstp dword ptr [esp], st
fld st, dword ptr [esp]
fstp qword ptr [esp+0x4], st
call 0x709530
mov dword ptr [esp], eax
fild st, dword ptr [esp]
fdivr st, qword ptr [esp+0x4]
fmul st, qword ptr [0x900130]
call 0x85C720
push eax
mov eax, dword ptr [esp+0x14]
push eax
call LuaParam::PushInt
mov eax, 0x1
add esp, 0x14
ret
LawnMowingSetLawnArea(minX, minY, maxX, maxY)
sub esp, 0x10
push esi
mov esi, dword ptr [esp+0x18]
push 0x0
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x18], st
push 0x1
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x1C], st
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x20], st
push 0x3
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x24], st
fld st, dword ptr [esp+0x24]
mov ecx, dword ptr [0x20C8704]
fstp dword ptr [esp+0x1C], st
add esp, 0x10
fld st, dword ptr [esp+0x18]
fstp dword ptr [esp+0x8], st
fld st, dword ptr [esp+0x1C]
fstp dword ptr [esp+0x4], st
fld st, dword ptr [esp+0x20]
fstp dword ptr [esp], st
call 0x70B2B0
xor eax, eax
pop esi
add esp, 0x10
ret
-- never used
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x8
xor eax, eax
ret
LawnMowingSetMinScore(accuracy)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetInt
mov ecx, dword ptr [0x20C8704]
add esp, 0x8
push eax
call 0x709540
xor eax, eax
ret
LawnMowingSetTimer(gMissionTime)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetFloat
fstp st(0), st
add esp, 0x8
xor eax, eax
ret
--print("Load tag during the NIS!")
Load("Act/Conv/1_07.act")
Load("Act/Conv/5_01.act")
Load("Act/Conv/Shots.act")
Load("Act/Gifts/Give107.act")
Load("Act/Props/WBrush.act")
Load(CharacterActionTrees[i])
PedSetActionNode(idHobo, "/Global/2_S05/Anims/Drink/Puke/Load", "Act/Conv/2_S05.act")
PedSetActionNode(pedConstantine.id, "/Global/1_02B/ConstantinosIdle/Load", "Act/Conv/1_02B.act")
mov eax, dword ptr [esp+0x4]
sub esp, 0x100
push 0x0
push eax
call LuaParam::GetString
add esp, 0x8
lea edx, ptr [esp]
mov cl, byte ptr [eax]
mov byte ptr [edx], cl
add eax, 0x1
add edx, 0x1
test cl, cl
jnz 0xFFFFFFF4
push 0x0
push 0x0
push 0x928A9C
call 0x43C4F0
push 0x0
lea ecx, ptr [esp+0x10]
push 0x0
push ecx
call 0x5F6DB0
add esp, 0x18
test eax, eax
jz 0x14
push 0x0
push eax
lea edx, ptr [esp+0x8]
push edx
mov ecx, 0xD02850
call 0x5DBEB0
xor eax, eax
add esp, 0x100
ret
LoadActionTree("/Act/Conv/4_B2.act")
LoadActionTree("/Act/Props/Tags.act")
LoadActionTree("Act/AI/AI_BOXER.act")
LoadActionTree("Act/AI/AI_EDGAR_5_B.act")
LoadActionTree("Act/AI/AI_FightTutorial.act")
LoadActionTree("Act/AI/AI_Gary.act")
LoadActionTree("Act/AI/AI_MASCOT_4_05.act")
LoadActionTree("Act/AI/AI_Norton.act")
LoadActionTree("Act/AI/AI_Punchbag.act")
LoadActionTree("Act/AI/AI_RUSSEL_1_B.act")
LoadActionTree("Act/Anim/1_03_Davis.act")
LoadActionTree("Act/Anim/1_10.act")
LoadActionTree("Act/Anim/3_05_Norton.act")
LoadActionTree("Act/Anim/BOSS_Darby.act")
LoadActionTree("Act/Anim/BoxingPlayer.act")
LoadActionTree("Act/Anim/Crazy_Basic.act")
LoadActionTree("Act/Anim/DO_Edgar.act")
LoadActionTree("Act/Anim/Fight_Tutorial.act")
LoadActionTree("Act/Anim/FreakShow.act")
LoadActionTree("Act/Anim/Funhouse.act")
LoadActionTree("Act/Anim/G_Ranged_A.act")
LoadActionTree("Act/Anim/HighStriker.act")
LoadActionTree("Act/Anim/Hobo_Blocker.act")
LoadActionTree("Act/Anim/J_Damon.act")
LoadActionTree("Act/Anim/MG_BallToss.act")
LoadActionTree("Act/Anim/NPC1_09.act")
LoadActionTree("Act/Anim/Overrides/Mission/1_G1Follow.act")
LoadActionTree("Act/Anim/Overrides/Mission/1_G1WantGift.act")
LoadActionTree("Act/Anim/Overrides/Mission/2_S04Greeting.act")
LoadActionTree("Act/Anim/P_2_07_Gord.act")
LoadActionTree("Act/Anim/PunchBagBS.act")
LoadActionTree("Act/Anim/Race.act")
LoadActionTree("Act/Anim/TattooShop.act")
LoadActionTree("Act/Anim/TO_Siamese.act")
LoadActionTree("Act/Conv/1_01.act")
LoadActionTree("Act/Conv/1_02.act")
LoadActionTree("Act/Conv/1_02B.act")
LoadActionTree("Act/Conv/1_03.act")
LoadActionTree("Act/Conv/1_04.act")
LoadActionTree("Act/Conv/1_05.act")
LoadActionTree("Act/Conv/1_06.act")
LoadActionTree("Act/Conv/1_08.act")
LoadActionTree("Act/Conv/1_09.act")
LoadActionTree("Act/Conv/1_11X1.act")
LoadActionTree("Act/Conv/1_11X2.act")
LoadActionTree("Act/Conv/1_G1.act")
LoadActionTree("Act/Conv/1_S01.act")
LoadActionTree("Act/Conv/2_01.act")
LoadActionTree("Act/Conv/2_02.act")
LoadActionTree("Act/Conv/2_03i.act")
LoadActionTree("Act/Conv/2_04.act")
LoadActionTree("Act/Conv/2_05.act")
LoadActionTree("Act/Conv/2_06.act")
LoadActionTree("Act/Conv/2_07.act")
LoadActionTree("Act/Conv/2_08.act")
LoadActionTree("Act/Conv/2_B.act")
LoadActionTree("Act/Conv/2_G2.act")
LoadActionTree("Act/Conv/2_R03.act")
LoadActionTree("Act/Conv/2_S04.act")
LoadActionTree("Act/Conv/2_S05.act")
LoadActionTree("Act/Conv/2_S06.act")
LoadActionTree("Act/Conv/3_01.act")
LoadActionTree("Act/Conv/3_01D.act")
LoadActionTree("Act/Conv/3_02.act")
LoadActionTree("Act/Conv/3_04.act")
LoadActionTree("Act/Conv/3_05.act")
LoadActionTree("Act/Conv/3_06.act")
LoadActionTree("Act/Conv/3_08.act")
LoadActionTree("Act/Conv/3_09.act")
LoadActionTree("Act/Conv/3_B.act")
LoadActionTree("Act/Conv/3_G3.act")
LoadActionTree("Act/Conv/3_R09.act")
LoadActionTree("Act/Conv/3_S03.act")
LoadActionTree("Act/Conv/3_S10.act")
LoadActionTree("Act/Conv/3_S11.act")
LoadActionTree("Act/Conv/3_XM.act")
LoadActionTree("Act/Conv/4_01.act")
LoadActionTree("Act/Conv/4_02.act")
LoadActionTree("Act/Conv/4_03.act")
LoadActionTree("Act/Conv/4_04.act")
LoadActionTree("Act/Conv/4_05.act")
LoadActionTree("Act/Conv/4_06.act")
LoadActionTree("Act/Conv/4_B1.act")
LoadActionTree("Act/Conv/4_G4.act")
LoadActionTree("Act/Conv/5_02.act")
LoadActionTree("Act/Conv/5_03.act")
LoadActionTree("Act/Conv/5_05.act")
LoadActionTree("Act/Conv/5_07a.act")
LoadActionTree("Act/Conv/5_09.act")
LoadActionTree("Act/Conv/5_B.act")
LoadActionTree("Act/Conv/6_02.act")
LoadActionTree("Act/Conv/6_B.act")
LoadActionTree("Act/Conv/C2.act")
LoadActionTree("Act/Conv/C4.act")
LoadActionTree("Act/Conv/C5.act")
LoadActionTree("Act/Conv/C6.act")
LoadActionTree("Act/Conv/C7.act")
LoadActionTree("Act/Conv/C8.act")
LoadActionTree("Act/Conv/C9.act")
LoadActionTree("Act/Conv/Chap5Trans.act")
LoadActionTree("Act/Conv/Chapt3Trans.act")
LoadActionTree("Act/Conv/ClassMusic.act")
LoadActionTree("Act/Conv/DodgeballGame.act")
LoadActionTree("Act/Conv/DTCarnie.act")
LoadActionTree("Act/Conv/DTComics.act")
LoadActionTree("Act/Conv/DTGeneral.act")
LoadActionTree("Act/Conv/GoKart.act")
LoadActionTree("Act/Conv/MGBaseballToss.act")
LoadActionTree("Act/Conv/MGDunkTank.act")
LoadActionTree("Act/Conv/PrepHouse.act")
LoadActionTree("Act/Conv/Store.act")
LoadActionTree("Act/Gifts/Give2G2.act")
LoadActionTree("Act/Gifts/Give2S04.act")
LoadActionTree("Act/Gifts/GiveBagmrbls.act")
LoadActionTree("Act/Gifts/GiveSuperGlue.act")
LoadActionTree("Act/Gifts/GiveWftbomb.act")
LoadActionTree("Act/Gifts/NIS_3_S03_GiveCas.act")
LoadActionTree("Act/Gifts/NIS_3_S03_GiveHat.act")
LoadActionTree("Act/Gifts/NIS_3_S03_GiveVan.act")
LoadActionTree("Act/KeepUps.act")
LoadActionTree("Act/Props/3_S10_Tags.act")
LoadActionTree("Act/Props/AniDice.act")
LoadActionTree("Act/Props/AsySwtch.act")
LoadActionTree("Act/Props/barrelLad.act")
LoadActionTree("Act/Props/CtrlBx.act")
LoadActionTree("Act/Props/DRBrace.act")
LoadActionTree("Act/Props/DunkBench.act")
LoadActionTree("Act/Props/MailBox.act")
LoadActionTree("Act/Props/SBarels1.act")
LoadActionTree("Act/Props/scObsDr.act")
LoadActionTree("Act/Props/Switch.act")
LoadActionTree("Act/Props/TSGate.act")
LoadActionTree("Act/TrainingPlayer.act")
LoadActionTree(ActionAnimFile)
LoadActionTree(ACTIONFILE)
LoadActionTree(DancerActionFile)
LoadActionTree(gActFile)
mov eax, dword ptr [esp+0x4]
push esi
push edi
push 0x0
push eax
call LuaParam::GetString
add esp, 0x8
mov esi, eax
push esi
mov ecx, 0xD02850
xor edi, edi
call 0x5DBFC0
test al, al
jnz 0x11
push 0x0
push 0x0
push esi
call 0x5F6DB0
add esp, 0xC
mov edi, eax
push edi
push esi
push 0x0
push 0x0
mov ecx, 0xD02850
call 0x5DC1A0
pop edi
xor eax, eax
pop esi
ret
LoadAnimationGroup("1_02_MeetWithGary")
LoadAnimationGroup("1_02BYourSchool")
LoadAnimationGroup("1_03The Setup")
LoadAnimationGroup("1_04TheSlingshot")
LoadAnimationGroup("1_06ALittleHelp")
LoadAnimationGroup("1_07_SaveBucky")
LoadAnimationGroup("1_07_Sk8Board")
LoadAnimationGroup("1_08_MandPuke")
LoadAnimationGroup("1_09_Candidate")
LoadAnimationGroup("1_10Betrayal")
LoadAnimationGroup("1_G1_TheDiary")
LoadAnimationGroup("2_01LastMinuteShop")
LoadAnimationGroup("2_05TadsHouse")
LoadAnimationGroup("2_06_MOVIETICKETS")
LoadAnimationGroup("2_07BeachRumble")
LoadAnimationGroup("2_08WeedKiller")
LoadAnimationGroup("2_G2_GiftExchange")
LoadAnimationGroup("2_G2CarnivalDate")
LoadAnimationGroup("2_R03PaperRoute")
LoadAnimationGroup("2_S04CharSheets")
LoadAnimationGroup("2_S05_CooksCrush")
LoadAnimationGroup("3_04WrongPtTown")
LoadAnimationGroup("3_BFightJohnnyV")
LoadAnimationGroup("3_G3")
LoadAnimationGroup("3_R08RaceLeague")
LoadAnimationGroup("4_04_FunhouseFun")
LoadAnimationGroup("4_04_FUNHOUSEFUN")
LoadAnimationGroup("4_06BIGGAME")
LoadAnimationGroup("5_01Grp")
LoadAnimationGroup("5_02PrVandalized")
LoadAnimationGroup("5_09MakingAMark")
LoadAnimationGroup("6_02CompMayh")
LoadAnimationGroup("6B_PARA")
LoadAnimationGroup("Ambient")
LoadAnimationGroup("Ambient3")
LoadAnimationGroup("Area_Asylum")
LoadAnimationGroup("Area_Funhouse")
LoadAnimationGroup("Area_School")
LoadAnimationGroup("Area_Tenements")
LoadAnimationGroup("AsyBars")
LoadAnimationGroup("B_Striker")
LoadAnimationGroup("BBALL_21")
LoadAnimationGroup("BeardLady")
LoadAnimationGroup("BOXING")
LoadAnimationGroup("Boxing")
LoadAnimationGroup("C_Wrestling")
LoadAnimationGroup("Car_Ham")
LoadAnimationGroup("carnies")
LoadAnimationGroup("Cheer_Cool1")
LoadAnimationGroup("CHEER_COOL1")
LoadAnimationGroup("CHEER_COOL2")
LoadAnimationGroup("Cheer_Cool2")
LoadAnimationGroup("Cheer_Cool3")
LoadAnimationGroup("CHEER_COOL3")
LoadAnimationGroup("Cheer_Gen3")
LoadAnimationGroup("CHEER_GEN3")
LoadAnimationGroup("CHEER_GIRL2")
LoadAnimationGroup("Cheer_Girl3")
LoadAnimationGroup("CHEER_GIRL3")
LoadAnimationGroup("Cheer_Nerd1")
LoadAnimationGroup("CHEER_NERD1")
LoadAnimationGroup("Cheer_Nerd3")
LoadAnimationGroup("CHEER_NERD3")
LoadAnimationGroup("CHEER_POSH1")
LoadAnimationGroup("Cheer_Posh1")
LoadAnimationGroup("Cheer_Posh3")
LoadAnimationGroup("CHEER_POSH3")
LoadAnimationGroup("ChLead_Idle")
LoadAnimationGroup("CONV")
LoadAnimationGroup("Cop_Frisk")
LoadAnimationGroup("DO_Grap")
LoadAnimationGroup("DO_StrikeCombo")
LoadAnimationGroup("DO_STRIKECOMBO")
LoadAnimationGroup("DO_Striker")
LoadAnimationGroup("Dodgeball")
LoadAnimationGroup("DodgeBall")
LoadAnimationGroup("Dodgeball2")
LoadAnimationGroup("Drumming")
LoadAnimationGroup("Earnest")
LoadAnimationGroup("ENGLISHCLASS")
LoadAnimationGroup("F_Adult")
LoadAnimationGroup("F_CRAZY")
LoadAnimationGroup("F_Douts")
LoadAnimationGroup("F_Girls")
LoadAnimationGroup("F_NERDS")
LoadAnimationGroup("F_Nerds")
LoadAnimationGroup("F_Pref")
LoadAnimationGroup("G_Grappler")
LoadAnimationGroup("G_Johnny")
LoadAnimationGroup("G_Striker")
LoadAnimationGroup("GarbagePickup")
LoadAnimationGroup("GEN_Socia")
LoadAnimationGroup("GEN_SOCIAL")
LoadAnimationGroup("GEN_Social")
LoadAnimationGroup("Go_Cart")
LoadAnimationGroup("Halloween")
LoadAnimationGroup("Hang_Jock")
LoadAnimationGroup("Hang_Moshing")
LoadAnimationGroup("Hang_Talking")
LoadAnimationGroup("Hang_Workout")
LoadAnimationGroup("Hobo_Cheer")
LoadAnimationGroup("Hobos")
LoadAnimationGroup("HUMIL_5-8F_A")
LoadAnimationGroup("HUMIL_6-5VPLY")
LoadAnimationGroup("IDLE_BULLY_C")
LoadAnimationGroup("IDLE_BULLY_D")
LoadAnimationGroup("IDLE_DOUT_C")
LoadAnimationGroup("IDLE_DOUT_D")
LoadAnimationGroup("IDLE_GREAS_C")
LoadAnimationGroup("IDLE_GSF")
LoadAnimationGroup("IDLE_JOCK_A")
LoadAnimationGroup("IDLE_NERD_A")
LoadAnimationGroup("IDLE_NERD_C")
LoadAnimationGroup("IDLE_SEXY_C")
LoadAnimationGroup("Jv_Asylum")
LoadAnimationGroup("KISS2")
LoadAnimationGroup("KISS3")
LoadAnimationGroup("KISS4")
LoadAnimationGroup("KISSF")
LoadAnimationGroup("LE_ORDERLY")
LoadAnimationGroup("LE_Orderly")
LoadAnimationGroup("Mermaid")
LoadAnimationGroup("MG_Craps")
LoadAnimationGroup("MINI_BallToss")
LoadAnimationGroup("MINI_Lock")
LoadAnimationGroup("MINI_React")
LoadAnimationGroup("MINI_REACT")
LoadAnimationGroup("MINIBIKE")
LoadAnimationGroup("MINICHEM")
LoadAnimationGroup("MINIDunk")
LoadAnimationGroup("MINIGraf")
LoadAnimationGroup("MINIGRAF")
LoadAnimationGroup("MINIHACKY")
LoadAnimationGroup("N2B Dishonerable")
LoadAnimationGroup("N_Striker_B")
LoadAnimationGroup("Nemesis")
LoadAnimationGroup("NIS_1_02")
LoadAnimationGroup("NIS_1_02B")
LoadAnimationGroup("NIS_1_03")
LoadAnimationGroup("NIS_1_04")
LoadAnimationGroup("NIS_1_07")
LoadAnimationGroup("NIS_1_08_1")
LoadAnimationGroup("NIS_1_09")
LoadAnimationGroup("NIS_1_11")
LoadAnimationGroup("NIS_2_01")
LoadAnimationGroup("NIS_2_03")
LoadAnimationGroup("NIS_2_04")
LoadAnimationGroup("NIS_2_06_1")
LoadAnimationGroup("NIS_2_B")
LoadAnimationGroup("NIS_2_S04")
LoadAnimationGroup("NIS_3_01")
LoadAnimationGroup("NIS_3_02")
LoadAnimationGroup("NIS_3_04")
LoadAnimationGroup("NIS_3_05")
LoadAnimationGroup("NIS_3_06")
LoadAnimationGroup("NIS_3_08")
LoadAnimationGroup("NIS_3_B")
LoadAnimationGroup("NIS_3_G3")
LoadAnimationGroup("NIS_3_R09_J")
LoadAnimationGroup("NIS_3_R09_N")
LoadAnimationGroup("NIS_3_R09_P")
LoadAnimationGroup("NIS_3_S03")
LoadAnimationGroup("NIS_3_S03_B")
LoadAnimationGroup("NIS_3_S11")
LoadAnimationGroup("NIS_3R09_P")
LoadAnimationGroup("NIS_4_01")
LoadAnimationGroup("NIS_4_05")
LoadAnimationGroup("NIS_4_06")
LoadAnimationGroup("NIS_4_B2")
LoadAnimationGroup("NIS_5_01")
LoadAnimationGroup("NIS_5_02")
LoadAnimationGroup("NIS_5_03")
LoadAnimationGroup("NIS_5_04")
LoadAnimationGroup("NIS_5_05")
LoadAnimationGroup("NIS_5_07")
LoadAnimationGroup("NIS_5_G5")
LoadAnimationGroup("NIS_6_02")
LoadAnimationGroup("NIS_6_03")
LoadAnimationGroup("NPC_Adult")
LoadAnimationGroup("NPC_ADULT")
LoadAnimationGroup("NPC_AggroTaunt")
LoadAnimationGroup("NPC_Chat_1")
LoadAnimationGroup("NPC_Cheering")
LoadAnimationGroup("NPC_CHEERING")
LoadAnimationGroup("NPC_Love")
LoadAnimationGroup("NPC_MASCOT")
LoadAnimationGroup("NPC_Mascot")
LoadAnimationGroup("NPC_NeedsResolving")
LoadAnimationGroup("NPC_Principal")
LoadAnimationGroup("NPC_Shopping")
LoadAnimationGroup("NPC_Spectator")
LoadAnimationGroup("P_Striker")
LoadAnimationGroup("Pageant")
LoadAnimationGroup("Player_VTired")
LoadAnimationGroup("POI_Booktease")
LoadAnimationGroup("POI_Cafeteria")
LoadAnimationGroup("POI_ChLead")
LoadAnimationGroup("POI_Smoking")
LoadAnimationGroup("POI_WarmHands")
LoadAnimationGroup("Px_Gen")
LoadAnimationGroup("Px_Ladr")
LoadAnimationGroup("Px_Rail")
LoadAnimationGroup("Px_RedButton")
LoadAnimationGroup("Px_Sink")
LoadAnimationGroup("Px_Tlet")
LoadAnimationGroup("PX_TLET")
LoadAnimationGroup("Px_Tree")
LoadAnimationGroup("Px_Urinal")
LoadAnimationGroup("QPed")
LoadAnimationGroup("QPED")
LoadAnimationGroup("Russell")
LoadAnimationGroup("Santa_lap")
LoadAnimationGroup("SAUTH_U")
LoadAnimationGroup("Sbarels1")
LoadAnimationGroup("SBULL_A")
LoadAnimationGroup("SBULL_X")
LoadAnimationGroup("SCgrdoor")
LoadAnimationGroup("SGEN_I")
LoadAnimationGroup("SGEN_S")
LoadAnimationGroup("SGIRL_F")
LoadAnimationGroup("SGIRL_S")
LoadAnimationGroup("SHOPBIKE")
LoadAnimationGroup("SHWR")
LoadAnimationGroup("SIAMESE")
LoadAnimationGroup("Siamese2")
LoadAnimationGroup("Sitting_Boys")
LoadAnimationGroup("SkeltonMan")
LoadAnimationGroup("SNERD_I")
LoadAnimationGroup("SNERD_S")
LoadAnimationGroup("STRAF_WREST")
LoadAnimationGroup("TadGates")
LoadAnimationGroup("TE_Female")
LoadAnimationGroup("TE_FEMALE")
LoadAnimationGroup("Try_Clothes")
LoadAnimationGroup("TSGate")
LoadAnimationGroup("UBO")
LoadAnimationGroup("W_PooBag")
LoadAnimationGroup("W_PRANK")
LoadAnimationGroup("W_Snowshwl")
LoadAnimationGroup("W_SprayCan")
LoadAnimationGroup("W_Thrown")
LoadAnimationGroup("WeaponUnlock")
LoadAnimationGroup(group)
push ecx
mov eax, dword ptr [esp+0x8]
push esi
push 0x0
push eax
call LuaParam::GetString
push eax
call 0x52DAD0
mov esi, eax
add esp, 0xC
test esi, esi
jl 0x56
push edi
lea ecx, ptr [esp+0x8]
push ecx
push esi
call 0x52DB50
push 0x4
push esi
mov edi, eax
call 0x532020
push 0x0
push 0x90250C
push 0x926824
call 0x43C4F0
push 0x0
call 0x533EE0
mov edx, dword ptr [esp+0x28]
add esp, 0x20
push edx
push edi
mov ecx, 0x20C4910
call 0x6BD010
push esi
mov ecx, 0xD02850
call 0x5DB940
mov ecx, eax
call 0x5D9550
pop edi
xor eax, eax
pop esi
pop ecx
ret
CLIENT
Just like the normal LoadAnimationGroup, but contains a safe-guard for loading more groups than allowed. Helps prevent issues with old scripts that loaded too many animations groups erroneously.
A warning is printed in the console when a script does this, but it is not an error. Usually it is a non problem as most DSL configurations will have the built-in loadanim.lua script load all animation groups anyway.
SHARED
Returns a config object. If the file doesn't exist, an "empty" config object is returned.
LoadCutscene("CS_COUNTER")
LoadCutscene(cutsceneTable[CutSceneIndex].name, false)
push esi
mov esi, dword ptr [esp+0x8]
push edi
push 0x0
push esi
call LuaParam::GetString
push 0x1
push 0x1
push esi
mov edi, eax
call LuaParam::GetBool ; optional
push eax
push edi
call 0x6C45E0
add esp, 0x1C
pop edi
xor eax, eax
pop esi
ret
LoadCutsceneSound(cutsceneTable[CutSceneIndex].name)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetString
push eax
call 0x6C38B0
add esp, 0xC
xor eax, eax
ret
SHARED
A custom version of Lua 5.0.2's loadfile function that provides enhanced security.
A standard Lua 5.0 function documented on lua.org.
-- never used
mov eax, dword ptr [esp+0x4]
push esi
push 0x0
push eax
call LuaParam::GetInt
mov esi, eax
call 0x52E700
push esi
call 0x687BC0
add esp, 0xC
call 0x52E710
xor eax, eax
pop esi
ret
A standard Lua 5.0 function documented on lua.org.
LoadModels(bullyModels)
LoadModels(crowdModels)
LoadModels(enemyModels)
LoadModels(gCarModels)
LoadModels(gCutsceneGuys)
LoadModels(gDogModels)
LoadModels(gDrivers)
LoadModels(gDropoutModels)
LoadModels(gGreaserModels)
LoadModels(gMailboxPedModels)
LoadModels(gPrepModels)
LoadModels(gSpawnModels)
LoadModels(modelTable, false)
LoadModels(modelTable, true)
LoadModels(tblLoadModels)
LoadModels(tblModelsToLoad)
LoadModels(tblPedModels)
LoadModels(tblPickupModels)
LoadModels(tblRequestCheerers)
LoadModels(tElves)
LoadModels(tKidModels)
LoadModels(tOrnamentModels)
LoadModels({
LoadModels({ "289" })
LoadModels({ 114, 495 })
LoadModels({ 115, 495 })
LoadModels({ 130, 362 })
LoadModels({ 143, 495 })
LoadModels({ 186 })
LoadModels({ 24, 22 })
LoadModels({ 275, 276 })
LoadModels({ 289 })
LoadModels({ 302 })
LoadModels({ 303 }, true)
LoadModels({ 306 }, true)
LoadModels({ 307 })
LoadModels({ 327 }, true)
LoadModels({ 327, 328 }, true)
LoadModels({ 331, 400 }, true)
LoadModels({ 332, 495 })
LoadModels({ 340 }, true)
LoadModels({ 341 }, true)
LoadModels({ 347 })
LoadModels({ 362, 494 })
LoadModels({ 42, 44 })
LoadModels({ 428 }, true)
LoadModels({ 47 })
LoadModels({ 48, 47 })
LoadModels({ 50, 284 })
LoadModels({ 521 })
LoadModels({ 55, 48 })
LoadModels({ 56 })
LoadModels({ 91 })
LoadModels({ 97, 295 })
LoadModels({ prefectModel })
function LoadModels(modelTable, bIsWeapon)
local modelsLoaded = 1
while 0 < modelsLoaded do
modelsLoaded = 0
for i, model in modelTable do
if F_ObjectIsValid(model) then
if not bIsWeapon or bIsWeapon == nil then
if not RequestModel(model) then
modelsLoaded = modelsLoaded + 1
end
elseif not WeaponRequestModel(model) then
modelsLoaded = modelsLoaded + 1
end
end
end
Wait(0)
end
end
LoadPAnims(gBatters)
LoadPAnims(gCatchers)
LoadPAnims(gUmpires)
LoadPAnims({
function LoadPAnims(triggerTable)
local blockForLoading = 0
repeat
for _, anim in triggerTable do
if F_ObjectIsValid(anim) then
if not PAnimRequest(anim) then
blockForLoading = blockForLoading + 1
else
blockForLoading = blockForLoading - 1
end
end
end
Wait(0)
until blockForLoading <= 0
end
LoadPedModels(gModelList)
LoadPedModels(gPedModels)
LoadPedModels(model)
LoadPedModels(peds)
LoadPedModels(tblJockModels)
LoadPedModels(tblNerdModels)
LoadPedModels(tblPedModels)
LoadPedModels(tblPeds)
LoadPedModels(tblPrepModel)
LoadPedModels({
LoadPedModels({ 127 })
LoadPedModels({ 132 })
LoadPedModels({ 134 })
LoadPedModels({ 140 })
LoadPedModels({ 160 })
LoadPedModels({ 165, 160 })
LoadPedModels({ 22 })
LoadPedModels({ 33 })
LoadPedModels({ 59 })
LoadPedModels({ 84, 70 })
LoadPedModels({ ped1, ped2 })
function LoadPedModels(modelTable)
LoadModels(modelTable, false)
end
LoadPedPOIModel(136)
LoadPedPOIModel(173)
LoadPedPOIModel(195)
LoadPedPOIModel(222)
LoadPedPOIModel(53)
LoadPedPOIModel(56)
LoadPedPOIModel(biker)
LoadPedPOIModel(char)
LoadPedPOIModel(charchoice)
LoadPedPOIModel(copmodel)
LoadPedPOIModel(driverc)
LoadPedPOIModel(FootballPed1)
LoadPedPOIModel(FootballPed2)
LoadPedPOIModel(FootballPed3)
LoadPedPOIModel(FootballPed4)
LoadPedPOIModel(model)
LoadPedPOIModel(ped1)
LoadPedPOIModel(ped1_ModelID)
LoadPedPOIModel(ped2)
LoadPedPOIModel(ped2_ModelID)
LoadPedPOIModel(ped3)
LoadPedPOIModel(pedModel)
LoadPedPOIModel(ThugChoice)
LoadPedPOIModel(VictimChoice)
function LoadPedPOIModel(model)
local modelsLoaded = 1
while 0 < modelsLoaded do
modelsLoaded = 0
if model ~= nil and model ~= -1 and not RequestModel(model, true) then
modelsLoaded = modelsLoaded + 1
end
Wait(0)
end
end
LoadPedPOIModels({
function LoadPedPOIModels(modelTable)
local modelsLoaded = 1
while 0 < modelsLoaded do
modelsLoaded = 0
for i, model in modelTable do
if model ~= nil and model ~= -1 and not RequestModel(model, true) then
modelsLoaded = modelsLoaded + 1
end
end
Wait(0)
end
end
SHARED
Loads a script using the same script environment as the current script, and runs it. Keep in mind that "run" does not mean it calls main, it just runs the script.
SHARED
A custom version of Lua 5.0.2's loadstring function that provides enhanced security.
A standard Lua 5.0 function documented on lua.org.
SHARED
Returns a table from a file. Usually the file should have been created with SaveTable.
LoadVehicleModels(tblVehicleModels)
LoadVehicleModels(vehicles)
LoadVehicleModels({
LoadVehicleModels({ 272 })
LoadVehicleModels({ 282 })
LoadVehicleModels({ 282, 273 })
LoadVehicleModels({ 284, 291 })
LoadVehicleModels({ 288 })
LoadVehicleModels({ 295 })
function LoadVehicleModels(modelTable)
for i, model in modelTable do
if F_ObjectIsValid(model) then
VehicleRequestModel(model)
end
end
local modelsLoaded = false
while not modelsLoaded do
Wait(0)
modelsLoaded = true
for i, model in modelTable do
if F_ObjectIsValid(model) and not VehicleRequestModel(model) then
modelsLoaded = false
break
end
end
end
end
LoadVehiclePOIModel(ped1)
function LoadVehiclePOIModel(model)
local modelsLoaded = 1
while 0 < modelsLoaded do
modelsLoaded = 0
if model ~= nil and model ~= -1 and not VehicleRequestModel(model, true) then
modelsLoaded = modelsLoaded + 1
end
Wait(0)
end
end
LoadWeaponModels(tblPrepWeapon)
LoadWeaponModels(tblWeaponModels)
LoadWeaponModels(weapons)
LoadWeaponModels(wtable)
LoadWeaponModels({
LoadWeaponModels({ 299 })
LoadWeaponModels({ 300 })
LoadWeaponModels({ 300, 323 })
LoadWeaponModels({ 301, 299 })
LoadWeaponModels({ 302 })
LoadWeaponModels({ 303 })
LoadWeaponModels({ 306 })
LoadWeaponModels({ 309, 434 })
LoadWeaponModels({ 311, 339 })
LoadWeaponModels({ 312 })
LoadWeaponModels({ 312, 301 })
LoadWeaponModels({ 313 })
LoadWeaponModels({ 313, 364 })
LoadWeaponModels({ 319, 437 })
LoadWeaponModels({ 321 })
LoadWeaponModels({ 326, 303 })
LoadWeaponModels({ 328 })
LoadWeaponModels({ 333 })
LoadWeaponModels({ 339, 398 })
LoadWeaponModels({ 361 })
LoadWeaponModels({ 362 })
LoadWeaponModels({ 370 })
LoadWeaponModels({ 379 })
LoadWeaponModels({ 391 })
LoadWeaponModels({ 405 })
LoadWeaponModels({ 431 })
LoadWeaponModels({ 431, 398 })
LoadWeaponModels({ 436 })
function LoadWeaponModels(modelTable)
LoadModels(modelTable, true)
end
LoadWeaponPOIModel(327)
LoadWeaponPOIModel(335)
LoadWeaponPOIModel(346)
LoadWeaponPOIModel(405)
LoadWeaponPOIModel(weapon)
function LoadWeaponPOIModel(model)
local modelsLoaded = 1
while 0 < modelsLoaded do
modelsLoaded = 0
if model ~= nil and model ~= -1 and not WeaponRequestModel(model, true) then
modelsLoaded = modelsLoaded + 1
end
Wait(0)
end
end
LockFPS30(true)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetBool
mov byte ptr [0xA135DB], al
add esp, 0x8
xor eax, eax
ret
SERVER
Locks the owner of a sync entity to a certain player. If player is nil or not given, the entity is locked to not have an owner.
Use UnlockSyncEntityOwner to unlock it later, restoring the default behavior.
LogLoad("DAT FILES END")
LogLoad("DAT FILES")
LogLoad("END")
LogLoad("IMPORT MORE SCRIPTS END")
LogLoad("IMPORT MORE SCRIPTS")
LogLoad("IMPORT SCRIPTS END")
LogLoad("IMPORT SCRIPTS")
LogLoad("INIT CUTSCENES END")
LogLoad("INIT CUTSCENES")
LogLoad("INIT GARAGES END")
LogLoad("INIT GARAGES")
LogLoad("INIT PLAYER END")
LogLoad("INIT PLAYER")
LogLoad("WAIT FOR SYSTEM TO BE READY END")
LogLoad("WAIT FOR SYSTEM TO BE READY")
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetString
push 0x922EBC
push eax
call 0x85F5DF
add esp, 0x10
test eax, eax
jnz 0x21
cmp byte ptr [0xA135D8], al
jz 0x19
cmp byte ptr [0xA135D9], al
jz 0x7
mov byte ptr [0xA135D8], al
call 0x439D20
call 0x56FF90
xor eax, eax
ret
L_CutsceneFade()
L_CutsceneFade(true)
function L_CutsceneFade(fadeIn)
if fadeIn then
CameraFade(1000, 1)
else
CameraFade(1000, 0)
end
Wait(1000)
end
L_CutsceneSpecialInit(cutsceneTable[CutSceneIndex].name)
function L_CutsceneSpecialInit(Csname)
if Csname == "1-07" then
TaggingSetTVsState(true)
end
end
L_CutsceneSpecialShutdown(cutsceneTable[CutSceneIndex].name)
function L_CutsceneSpecialShutdown(Csname)
if Csname == "1-07" then
TaggingSetTVsState(false)
end
end
ManagedPlayerSetPosPoint(player.start_pos)
ManagedPlayerSetPosPoint(POINTLIST._4_04_PSTART)
ManagedPlayerSetPosPoint(POINTLIST._BOXING_PLAYERSTART)
ManagedPlayerSetPosPoint(POINTLIST._GTPLAYERSTART, 1)
ManagedPlayerSetPosPoint(startPosition)
function ManagedPlayerSetPosPoint(idPoint, numPoint)
if numPoint == nil then
PlayerSetPosPoint(idPoint)
else
PlayerSetPosPoint(idPoint, numPoint)
end
Wait(5)
while AreaIsLoading() do
Wait(0)
end
Wait(100)
end
ManagedPlayerSetPosXYZ(Xp + dX, Yp - dY, z)
function ManagedPlayerSetPosXYZ(x, y, z)
PlayerSetPosXYZ(x, y, z)
Wait(5)
while AreaIsLoading() do
Wait(0)
end
Wait(100)
end
A standard Lua 5.0 function without documentation.
A standard Lua 5.0 function without documentation.
A standard Lua 5.0 function without documentation.
A standard Lua 5.0 function without documentation.
A standard Lua 5.0 function without documentation.
A standard Lua 5.0 function without documentation.
A standard Lua 5.0 function without documentation.
A standard Lua 5.0 function without documentation.
A standard Lua 5.0 function without documentation.
A standard Lua 5.0 function without documentation.
A standard Lua 5.0 function without documentation.
A standard Lua 5.0 function without documentation.
A standard Lua 5.0 function without documentation.
A standard Lua 5.0 function without documentation.
A standard Lua 5.0 function without documentation.
A standard Lua 5.0 function without documentation.
A standard Lua 5.0 function without documentation.
A standard Lua 5.0 function without documentation.
A standard Lua 5.0 function without documentation.
A standard Lua 5.0 function without documentation.
A standard Lua 5.0 function without documentation.
A standard Lua 5.0 function without documentation.
A standard Lua 5.0 function without documentation.
A standard Lua 5.0 function without documentation.
CLIENT
Like DrawText, but the text is not actually visibly drawn and text formatting options are not reset. Returns the width and height of the draw.
CLIENT
Like DrawTextInline, but only measures the text rather than drawing it. Returns the width and height of the draw.
-- never used
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push 0x0
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0xC], st
fld st, dword ptr [esp+0xC]
add esp, 0x8
call 0x85AD80
fstp dword ptr [esp+0x4], st
fld st, dword ptr [esp+0x4]
push ecx
fstp dword ptr [esp], st
push esi
call LuaParam::PushFloat
add esp, 0x8
mov eax, 0x1
pop esi
pop ecx
ret
bgid = MGArcade_CreateLayer(gMainLayerW * 2, gMainLayerH * 2, 1)
gBackDrop = MGArcade_CreateLayer(gScreenX, gScreenY, 300, C_LayerUpdate)
gGameOverLayer = MGArcade_CreateLayer(512, 400, 1, C_LayerUpdate)
gGameOverLayer = MGArcade_CreateLayer(gScreenX, gScreenY, 100, C_LayerUpdate)
gHUD = MGArcade_CreateLayer(512, 32, 48, C_LayerUpdate)
gHUD = MGArcade_CreateLayer(640, 32, 48, C_LayerUpdate)
gInfoLayer = MGArcade_CreateLayer(640, 20, 8)
gInstructScreen = MGArcade_CreateLayer(495, 400, 150, C_LayerUpdate)
gInstructScreen = MGArcade_CreateLayer(gScreenX, gScreenY, 300, C_LayerUpdate)
gLayer = MGArcade_CreateLayer(512, 400, 100, C_LayerUpdate)
gLayer = MGArcade_CreateLayer(gScreenX, gScreenY, 300, C_LayerUpdate)
gStartScreen = MGArcade_CreateLayer(512, 400, 300, C_LayerUpdate)
gStartScreen = MGArcade_CreateLayer(gScreenX, gScreenY, 300, C_LayerUpdate)
introLayer = MGArcade_CreateLayer(640, 480, 2)
lid = MGArcade_CreateLayer(320, 240, 100, C_LayerUpdate)
lid = MGArcade_CreateLayer(gMainLayerW * 2, gMainLayerH * 2, 100, C_LayerUpdate)
sub esp, 0x8
push esi
push edi
call 0x52E700
mov esi, dword ptr [0x20C8704]
push 0x70C4
call 0x5EEAA0
add esp, 0x4
test eax, eax
jz 0xB
mov ecx, eax
call 0x700670
jmp 0x4
xor eax, eax
push eax
lea ecx, ptr [esi+0xC8]
call 0x6FF230
mov esi, eax
call 0x52E710
mov edi, dword ptr [esp+0x14]
push 0x0
push edi
call LuaParam::GetFloat
fstp dword ptr [esp+0x10], st
push 0x1
push edi
call LuaParam::GetFloat
fstp dword ptr [esp+0x1C], st
mov eax, dword ptr [0x20C8704]
mov eax, dword ptr [eax+0x104]
add esp, 0x10
test eax, eax
jz 0x10
lea ecx, ptr [ecx]
cmp dword ptr [eax], esi
jz 0x9
mov eax, dword ptr [eax+0x4]
test eax, eax
jnz 0xFFFFFFF7
fld st, dword ptr [esp+0x8]
fst dword ptr [eax+0x7094], st
fld st, dword ptr [esp+0xC]
fst dword ptr [eax+0x7098], st
mov ecx, dword ptr [0x20C8704]
mov eax, dword ptr [ecx+0x104]
test eax, eax
jz 0xD
cmp dword ptr [eax], esi
jz 0x9
mov eax, dword ptr [eax+0x4]
test eax, eax
jnz 0xFFFFFFF7
fxch st, st(1)
push edi
fchs
fld st, qword ptr [0x8FF1F8]
fmul st(1), st
fxch st, st(1)
fstp dword ptr [eax+0x709C], st
fxch st, st(1)
fchs
fmulp st(1), st
fstp dword ptr [eax+0x70A0], st
call LuaParam::GetParamCount
push edi
call LuaParam::GetParamCount
add esp, 0x8
cmp eax, 0x4
jl 0x30
mov edx, dword ptr [0x20C8704]
mov eax, dword ptr [edx+0x104]
test eax, eax
jz 0xF
mov edi, edi
cmp dword ptr [eax], esi
jz 0x9
mov eax, dword ptr [eax+0x4]
test eax, eax
jnz 0xFFFFFFF7
add eax, 0x70C0
push eax
push 0x3
push edi
call 0x5D9FD0
add esp, 0xC
push esi
push edi
call LuaParam::PushInt
add esp, 0x8
pop edi
mov eax, 0x1
pop esi
add esp, 0x8
ret
-- never used
sub esp, 0x8
fldz
push esi
mov esi, dword ptr [esp+0x10]
fst dword ptr [esp+0x8], st
push edi
fstp dword ptr [esp+0x8], st
push esi
call LuaParam::GetParamCount
add esp, 0x4
cmp eax, 0x4
jl 0x2B
push 0x3
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x14], st
push esi
call LuaParam::GetParamCount
add esp, 0xC
cmp eax, 0x5
jl 0x11
push 0x4
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x10], st
add esp, 0x8
fld st, dword ptr [esp+0x8]
mov edi, dword ptr [0x20C8704]
sub esp, 0x8
fstp dword ptr [esp+0x4], st
fld st, dword ptr [esp+0x14]
fstp dword ptr [esp], st
push 0x2
push esi
call LuaParam::GetString
add esp, 0x8
push eax
push 0x1
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x4], st
add esp, 0x4
push 0x0
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x4], st
add esp, 0x4
lea ecx, ptr [edi+0xC8]
call 0x6FF290
pop edi
xor eax, eax
pop esi
add esp, 0x8
ret
-- never used
mov eax, dword ptr [0x20C8704]
movzx ecx, byte ptr [eax+0xA0]
mov edx, dword ptr [esp+0x4]
push ecx
push edx
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
ret
-- never used
sub esp, 0x8
push ebx
mov ebx, dword ptr [esp+0x10]
push ebp
push esi
mov esi, dword ptr [0x20C8704]
push edi
push 0x2
push ebx
call LuaParam::GetInt
mov edi, dword ptr [esi+0x104]
add esp, 0x8
test edi, edi
jz 0xD
cmp dword ptr [edi], eax
jz 0x9
mov edi, dword ptr [edi+0x4]
test edi, edi
jnz 0xFFFFFFF7
push 0x3
push ebx
call LuaParam::GetInt
mov esi, dword ptr [0x20C8704]
push 0x0
push ebx
mov ebp, eax
call LuaParam::GetInt
mov esi, dword ptr [esi+0x104]
add esp, 0x10
test esi, esi
jz 0xD
cmp dword ptr [esi], eax
jz 0x9
mov esi, dword ptr [esi+0x4]
test esi, esi
jnz 0xFFFFFFF7
lea eax, ptr [ebp+ebp*8]
shl eax, 0x4
push 0x1
push ebx
lea edi, ptr [eax+edi*1+0x20]
call LuaParam::GetInt
lea ecx, ptr [eax+eax*8]
shl ecx, 0x4
fld st, dword ptr [ecx+esi*1+0x20]
lea eax, ptr [ecx+esi*1+0x20]
fsub st, dword ptr [edi]
add esp, 0x8
fstp dword ptr [esp+0x10], st
fld st, dword ptr [eax+0x4]
fsub st, dword ptr [edi+0x4]
fstp dword ptr [esp+0x14], st
fld st, dword ptr [esp+0x10]
fld st, dword ptr [esp+0x14]
fmul st(0), st
fld st, st(1)
fmulp st(2), st
faddp st(1), st
fstp dword ptr [esp+0x10], st
fld st, dword ptr [esp+0x10]
fabs
fstp dword ptr [esp+0x10], st
fld st, dword ptr [esp+0x10]
call 0x85C500
fstp dword ptr [esp+0x10], st
fld st, dword ptr [esp+0x10]
push ecx
fstp dword ptr [esp], st
push ebx
call LuaParam::PushFloat
add esp, 0x8
pop edi
pop esi
pop ebp
mov eax, 0x1
pop ebx
add esp, 0x8
ret
-- never used
sub esp, 0x8
push ebx
push ebp
push esi
mov esi, dword ptr [0x20C8704]
push edi
mov edi, dword ptr [esp+0x1C]
push 0x0
push edi
call LuaParam::GetInt
mov ebx, dword ptr [esi+0x104]
add esp, 0x8
test ebx, ebx
jz 0xD
cmp dword ptr [ebx], eax
jz 0x9
mov ebx, dword ptr [ebx+0x4]
test ebx, ebx
jnz 0xFFFFFFF7
push 0x1
push edi
call LuaParam::GetInt
mov esi, dword ptr [0x20C8704]
push 0x2
push edi
mov ebp, eax
call LuaParam::GetInt
mov esi, dword ptr [esi+0x104]
add esp, 0x10
test esi, esi
jz 0xD
cmp dword ptr [esi], eax
jz 0x9
mov esi, dword ptr [esi+0x4]
test esi, esi
jnz 0xFFFFFFF7
lea eax, ptr [ebp+ebp*8]
shl eax, 0x4
push 0x3
push edi
lea ebx, ptr [eax+ebx*1+0x20]
call LuaParam::GetInt
lea ecx, ptr [eax+eax*8]
shl ecx, 0x4
fld st, dword ptr [ecx+esi*1+0x20]
lea eax, ptr [ecx+esi*1+0x20]
fsub st, dword ptr [ebx]
add esp, 0x8
lea ecx, ptr [esp+0x10]
fstp dword ptr [esp+0x10], st
fld st, dword ptr [eax+0x4]
fsub st, dword ptr [ebx+0x4]
fstp dword ptr [esp+0x14], st
call 0x443730
fld st, dword ptr [esp+0x10]
push ecx
fstp dword ptr [esp], st
push edi
call LuaParam::PushFloat
fld st, dword ptr [esp+0x1C]
add esp, 0x4
fstp dword ptr [esp], st
push edi
call LuaParam::PushFloat
add esp, 0x8
pop edi
pop esi
pop ebp
mov eax, 0x2
pop ebx
add esp, 0x8
ret
-- never used
push esi
mov esi, dword ptr [0x20C8704]
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetString
add esp, 0x8
push eax
mov ecx, esi
call 0x6FD350
push eax
push edi
call LuaParam::PushInt
add esp, 0x8
pop edi
mov eax, 0x1
pop esi
ret
aTexture = MGArcade_GetTextureID("FSquir", "FSquir_x")
gBatSpriteD = MGArcade_GetTextureID("BatD", "BatD_x")
gBatSpriteM = MGArcade_GetTextureID("BatM", "BatM_x")
gBatSpriteU = MGArcade_GetTextureID("BatU", "BatU_x")
gEagleDd = MGArcade_GetTextureID("EagleDead", "EagleDead_x")
gEagleDn = MGArcade_GetTextureID("EagleD", "EagleD_x")
gEagleMd = MGArcade_GetTextureID("EagleM", "EagleM_x")
gEagleUp = MGArcade_GetTextureID("EagleU", "EagleU_x")
gHornetAttack_texture = MGArcade_GetTextureID("HornetF", "HornetF_x")
gHornetDn_texture = MGArcade_GetTextureID("HornetD", "HornetD_x")
gHornetUp_texture = MGArcade_GetTextureID("HornetU", "HornetU_x")
gMonkeyDead = MGArcade_GetTextureID("Monkey_dead", "Monkey_dead_x")
gMonkeySprite0 = MGArcade_GetTextureID("Monkey", "Monkey_x")
gMonkeySprite1 = MGArcade_GetTextureID("MonkeyLeft", "MonkeyLeft_x")
gSalmonSprite = MGArcade_GetTextureID("Salmon", "Salmon_x")
gSpiderSprite0 = MGArcade_GetTextureID("Spider", "Spider_x")
gSpiderSprite1 = MGArcade_GetTextureID("Spider2", "Spider2_x")
gSquirrelSprite0 = MGArcade_GetTextureID("FSquir02", "FSquir02_x")
gSquirrelSpriteD = MGArcade_GetTextureID("FSquir", "FSquir_x")
gSquirrelSpriteDead = MGArcade_GetTextureID("FSquir_dead", "FSquir_dead_x")
gSquirrelSpriteU = MGArcade_GetTextureID("FSquir03", "FSquir03_x")
local loadingScreen = MGArcade_GetTextureID("Monkey_StartScreen")
local loadingScreen = MGArcade_GetTextureID("Start_screen")
local overScreen = MGArcade_GetTextureID("GameOver", "GameOver_x")
local tex_sprite0 = MGArcade_GetTextureID("Jungle")
local tex_sprite0 = MGArcade_GetTextureID("Sunset")
local tex_sprite1 = MGArcade_GetTextureID("Banana", "Banana_x")
local tex_sprite1 = MGArcade_GetTextureID("Echo", "Echo_x")
local tex_sprite1 = MGArcade_GetTextureID("Honey", "Honey_x")
local tex_sprite1 = MGArcade_GetTextureID("Life", "Life_x")
local tex_sprite1 = MGArcade_GetTextureID("Poo", "Poo_x")
nut_sprite = MGArcade_GetTextureID("Proj_nut", "Proj_nut_x")
sApple = MGArcade_GetTextureID("Apple", "Apple_x")
sAppleR = MGArcade_GetTextureID("Apple_rotten", "Apple_rotten_x")
sBlowFish = MGArcade_GetTextureID("Blowfish", "Blowfish_x")
sDojo = MGArcade_GetTextureID("Dojo_bg")
sESumoB = MGArcade_GetTextureID("EnemyBack", "EnemyBack_x")
sESumoB2 = MGArcade_GetTextureID("EnemyBack2", "EnemyBack2_x")
sESumoF = MGArcade_GetTextureID("EnemyFront", "EnemyFront_x")
sESumoF2 = MGArcade_GetTextureID("EnemyFront2", "EnemyFront2_x")
sESumoL = MGArcade_GetTextureID("EnemyLeft", "EnemyLeft_x")
sESumoL2 = MGArcade_GetTextureID("EnemyLeft2", "EnemyLeft2_x")
sESumoR = MGArcade_GetTextureID("EnemyRight", "EnemyRight_x")
sESumoR2 = MGArcade_GetTextureID("EnemyRight2", "EnemyRight2_x")
sFish = MGArcade_GetTextureID("Fish_fresh", "Fish_fresh_x")
sFishR = MGArcade_GetTextureID("Fish_rotten", "Fish_rotten_x")
sGameOver = MGArcade_GetTextureID("GameOver", "GameOver_x")
sRice = MGArcade_GetTextureID("Rice_fresh", "Rice_fresh_x")
sRiceR = MGArcade_GetTextureID("Rice_rotten", "Rice_rotten_x")
sSideBarLeft = MGArcade_GetTextureID("Fend_SideScreen_left")
sSideBarLeft = MGArcade_GetTextureID("Monkey_SideScreen_left")
sSideBarLeft = MGArcade_GetTextureID("Sumo_Sidescreen_left")
sSideBarRight = MGArcade_GetTextureID("Fend_SideScreen_right")
sSideBarRight = MGArcade_GetTextureID("Monkey_SideScreen_right")
sSideBarRight = MGArcade_GetTextureID("Sumo_Sidescreen_right")
sStars = MGArcade_GetTextureID("Stars", "Stars_x")
sStars2 = MGArcade_GetTextureID("Stars2", "Stars2_x")
sStars3 = MGArcade_GetTextureID("Stars3", "Stars3_x")
sStartScreen = MGArcade_GetTextureID("Sumo_Startscreen")
sStink = MGArcade_GetTextureID("Stink", "Stink_x")
sSumoAngel = MGArcade_GetTextureID("Sumo_angel", "Sumo_angel_x")
sSumoAngel2 = MGArcade_GetTextureID("Sumo_angel2", "Sumo_angel2_x")
sSumoB = MGArcade_GetTextureID("SumoBack", "SumoBack_x")
sSumoB2 = MGArcade_GetTextureID("SumoBack2", "SumoBack2_x")
sSumoF = MGArcade_GetTextureID("SumoFront", "SumoFront_x")
sSumoF2 = MGArcade_GetTextureID("SumoFront2", "SumoFront2_x")
sSumoL = MGArcade_GetTextureID("SumoLeft", "SumoLeft_x")
sSumoL2 = MGArcade_GetTextureID("SumoLeft2", "SumoLeft2_x")
sSumoR = MGArcade_GetTextureID("SumoRight", "SumoRight_x")
sSumoR2 = MGArcade_GetTextureID("SumoRight2", "SumoRight2_x")
terra_sprite1 = MGArcade_GetTextureID("Terr01", "Terr01_x")
terra_sprite2 = MGArcade_GetTextureID("Terr02", "Terr02_x")
terra_sprite3 = MGArcade_GetTextureID("Terr03", "Terr03_x")
push ebx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push esi
xor edi, edi
call LuaParam::GetParamCount
add esp, 0x4
cmp eax, 0x2
jl 0xF
push 0x1
push esi
call LuaParam::GetString
add esp, 0x8
mov edi, eax
mov ebx, dword ptr [0x20C8704]
push edi
push 0x0
push esi
call LuaParam::GetString
add esp, 0x8
push eax
mov ecx, ebx
call 0x6FD170
push eax
push esi
call LuaParam::PushInt
add esp, 0x8
pop edi
pop esi
mov eax, 0x1
pop ebx
ret
MGArcade_InitScreen(0, 0, 0)
MGArcade_InitScreen(0, 0, 0, sSideBarLeft, sSideBarRight)
MGArcade_InitScreen(128, 128, 128, sSideBarLeft, sSideBarRight)
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push edi
mov edi, dword ptr [0x20C8704]
push 0xFF
push 0x2
push esi
call LuaParam::GetInt
add esp, 0x8
push eax
push 0x1
push esi
call LuaParam::GetInt
add esp, 0x8
push eax
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x8
push eax
lea ecx, ptr [esp+0x18]
call 0x510DE0
mov eax, dword ptr [eax]
mov ecx, eax
mov edx, eax
mov byte ptr [edi+0xE8], al
shr ecx, 0x8
shr edx, 0x10
shr eax, 0x18
push esi
mov byte ptr [edi+0xE9], cl
mov byte ptr [edi+0xEA], dl
mov byte ptr [edi+0xEB], al
call LuaParam::GetParamCount
add esp, 0x4
cmp eax, 0x4
jl 0x19
mov edi, dword ptr [0x20C8704]
push 0x3
push esi
call LuaParam::GetInt
add esp, 0x8
mov dword ptr [edi+0xF8], eax
push esi
call LuaParam::GetParamCount
add esp, 0x4
cmp eax, 0x5
jl 0x19
mov edi, dword ptr [0x20C8704]
push 0x4
push esi
call LuaParam::GetInt
add esp, 0x8
mov dword ptr [edi+0xFC], eax
push esi
call LuaParam::GetParamCount
add esp, 0x4
cmp eax, 0x6
jl 0x18
mov eax, dword ptr [0x20C8704]
add eax, 0x130
push eax
push 0x5
push esi
call 0x5D9FD0
add esp, 0xC
pop edi
xor eax, eax
pop esi
pop ecx
ret
gAmmo = MGArcade_Layer_AddSprite(gHUD, cbAmmoUpdate)
gAngels[gAngelsCreated].id = MGArcade_Layer_AddSprite(lid)
gBackDrop01 = MGArcade_Layer_AddSprite(gBackDrop)
gBackDrop03 = MGArcade_Layer_AddSprite(gBackDrop)
gBackDrop04 = MGArcade_Layer_AddSprite(gBackDrop)
gBanana = MGArcade_Layer_AddSprite(gLayer, cbBananaUpdate, C_BananaColl)
gBat = MGArcade_Layer_AddSprite(gLayer, cbBatUpdate, C_BatColl)
gClouds = MGArcade_Layer_AddSprite(gLayer, cbStaticObjects, C_StaticCol)
gDojo = MGArcade_Layer_AddSprite(bgid)
gEagle = MGArcade_Layer_AddSprite(gLayer, cbEagle, C_EagleColl)
gEnemySumos[iSprite].id = MGArcade_Layer_AddSprite(lid, C_SpriteUpdate, C_Enemy)
gExitText = MGArcade_Layer_AddSprite(gInstructScreen)
gExitText = MGArcade_Layer_AddSprite(gStartScreen)
gExitText = MGArcade_Layer_AddSprite(introLayer)
gExitText = MGArcade_Layer_AddSprite(lid)
gGameOverSprite = MGArcade_Layer_AddSprite(lid, C_PlayerUpdate)
gGround = MGArcade_Layer_AddSprite(gLayer, cbStaticObjects, C_StaticCol)
gHighScoreBKG = MGArcade_Layer_AddSprite(lid)
gHighScoreText = MGArcade_Layer_AddSprite(gGameOverLayer)
gHighScoreText = MGArcade_Layer_AddSprite(lid)
gHornet = MGArcade_Layer_AddSprite(gLayer, cbHornetUpdate, C_HornetColl)
gJungle = MGArcade_Layer_AddSprite(gLayer)
gLife = MGArcade_Layer_AddSprite(gHUD, cbLifeUpdate)
gLifeSprites[i] = MGArcade_Layer_AddSprite(gInfoLayer)
gLoadScreen = MGArcade_Layer_AddSprite(gStartScreen)
gMonkey = MGArcade_Layer_AddSprite(gLayer, cbMonkeyUpdate, C_MonkeyColl)
gNut = MGArcade_Layer_AddSprite(gLayer, cbNutUpdate, C_NutColl)
gOverScreen = MGArcade_Layer_AddSprite(gGameOverLayer)
gPlayerShip = MGArcade_Layer_AddSprite(lid, C_PlayerUpdate)
gPoo = MGArcade_Layer_AddSprite(gLayer, cbPooUpdate, C_PooColl)
gSalmon = MGArcade_Layer_AddSprite(gLayer, cbSalmon, C_SalmonColl)
gScoreText = MGArcade_Layer_AddSprite(gHUD)
gScoreText = MGArcade_Layer_AddSprite(gInfoLayer)
gSP[iSprite].id = MGArcade_Layer_AddSprite(lid, C_SpriteUpdate, gSpriteFunctions[lType])
gSpider = MGArcade_Layer_AddSprite(gLayer, cbSpiderUpdate, C_SpiderColl)
gSquirrel = MGArcade_Layer_AddSprite(gLayer, cbSquirrleUpdate, C_SquirrleColl)
gStaminaBar = MGArcade_Layer_AddSprite(gInfoLayer)
gStaminaBarBG = MGArcade_Layer_AddSprite(gInfoLayer)
gStartScreen = MGArcade_Layer_AddSprite(introLayer)
gStartText = MGArcade_Layer_AddSprite(gStartScreen)
gStartText = MGArcade_Layer_AddSprite(introLayer)
gStartText1 = MGArcade_Layer_AddSprite(gInstructScreen)
gStartText1 = MGArcade_Layer_AddSprite(lid)
gStinger = MGArcade_Layer_AddSprite(gLayer, cbStingerUpdate, C_StingerColl)
gTutSprite00 = MGArcade_Layer_AddSprite(gInstructScreen)
gTutSprite00 = MGArcade_Layer_AddSprite(lid)
gTutSprite000 = MGArcade_Layer_AddSprite(gInstructScreen)
gTutSprite01 = MGArcade_Layer_AddSprite(gInstructScreen)
gTutSprite01 = MGArcade_Layer_AddSprite(lid)
gTutSprite02 = MGArcade_Layer_AddSprite(gInstructScreen)
gTutSprite02 = MGArcade_Layer_AddSprite(lid)
gTutSprite03 = MGArcade_Layer_AddSprite(gInstructScreen)
gTutSprite03 = MGArcade_Layer_AddSprite(lid)
gTutSprite04 = MGArcade_Layer_AddSprite(gInstructScreen)
gTutSprite04 = MGArcade_Layer_AddSprite(lid)
gTutSprite05 = MGArcade_Layer_AddSprite(lid)
gTutSprite06 = MGArcade_Layer_AddSprite(lid)
gTutSprite07 = MGArcade_Layer_AddSprite(lid)
gTutSprite08 = MGArcade_Layer_AddSprite(lid)
gTutText00 = MGArcade_Layer_AddSprite(gInstructScreen)
gTutText000 = MGArcade_Layer_AddSprite(gInstructScreen)
gTutText01 = MGArcade_Layer_AddSprite(gInstructScreen)
gTutText01 = MGArcade_Layer_AddSprite(lid)
gTutText02 = MGArcade_Layer_AddSprite(gInstructScreen)
gTutText02 = MGArcade_Layer_AddSprite(lid)
gTutText03 = MGArcade_Layer_AddSprite(gInstructScreen)
gTutText03 = MGArcade_Layer_AddSprite(lid)
gTutText04 = MGArcade_Layer_AddSprite(gInstructScreen)
gTutText04 = MGArcade_Layer_AddSprite(lid)
gTutText05 = MGArcade_Layer_AddSprite(gInstructScreen)
gTutText05 = MGArcade_Layer_AddSprite(lid)
local ec_ho = MGArcade_Layer_AddSprite(gLayer, cbEchoUpdate, C_EchoColl)
local gTerrain = MGArcade_Layer_AddSprite(gBackDrop)
local sid = MGArcade_Layer_AddSprite(lid, cbU, cbC)
score.id = MGArcade_Layer_AddSprite(gGameOverLayer)
score.id = MGArcade_Layer_AddSprite(lid)
score.id2 = MGArcade_Layer_AddSprite(gGameOverLayer)
score.id2 = MGArcade_Layer_AddSprite(lid)
sid = MGArcade_Layer_AddSprite(lid, C_SpriteUpdate, C_SpriteColl)
push ebx
push esi
mov esi, dword ptr [esp+0xC]
push edi
mov edi, dword ptr [0x20C8704]
push 0x0
push esi
call LuaParam::GetInt
mov ecx, dword ptr [edi+0x104]
add esp, 0x8
test ecx, ecx
jz 0xD
cmp dword ptr [ecx], eax
jz 0x9
mov ecx, dword ptr [ecx+0x4]
test ecx, ecx
jnz 0xFFFFFFF7
mov eax, dword ptr [ecx+0x7088]
cmp eax, 0xC8
jnl 0xF
mov ebx, eax
add eax, 0x1
mov dword ptr [ecx+0x7088], eax
jmp 0x5
or ebx, 0xFFFFFFFF
push esi
call LuaParam::GetParamCount
add esp, 0x4
cmp eax, 0x2
jl 0x3E
mov edi, dword ptr [0x20C8704]
push 0x0
push esi
call LuaParam::GetInt
mov ecx, dword ptr [edi+0x104]
add esp, 0x8
test ecx, ecx
jz 0xD
cmp dword ptr [ecx], eax
jz 0x9
mov ecx, dword ptr [ecx+0x4]
test ecx, ecx
jnz 0xFFFFFFF7
lea eax, ptr [ebx+ebx*8]
shl eax, 0x4
lea ecx, ptr [eax+ecx*1+0x64]
push ecx
push 0x1
push esi
call 0x5D9FD0
add esp, 0xC
push esi
call LuaParam::GetParamCount
add esp, 0x4
cmp eax, 0x3
jl 0x41
mov edi, dword ptr [0x20C8704]
push 0x0
push esi
call LuaParam::GetInt
mov ecx, dword ptr [edi+0x104]
add esp, 0x8
test ecx, ecx
jz 0x10
lea ecx, ptr [ecx]
cmp dword ptr [ecx], eax
jz 0x9
mov ecx, dword ptr [ecx+0x4]
test ecx, ecx
jnz 0xFFFFFFF7
lea edx, ptr [ebx+ebx*8]
shl edx, 0x4
lea eax, ptr [edx+ecx*1+0x70]
push eax
push 0x2
push esi
call 0x5D9FD0
add esp, 0xC
push ebx
push esi
call LuaParam::PushInt
add esp, 0x8
pop edi
pop esi
mov eax, 0x1
pop ebx
ret
MGArcade_Layer_SetCol(bgid, 0, 0, 0, 255)
MGArcade_Layer_SetCol(gBackDrop, 255, 255, 255, 255)
MGArcade_Layer_SetCol(gGameOverLayer, 0, 0, 0, 200)
MGArcade_Layer_SetCol(gHUD, 204, 153, 0, 128)
MGArcade_Layer_SetCol(gHUD, 51, 102, 204, 28)
MGArcade_Layer_SetCol(gInfoLayer, 32, 32, 32, 255)
MGArcade_Layer_SetCol(gInstructScreen, 0, 0, 0, 195)
MGArcade_Layer_SetCol(gInstructScreen, 255, 255, 255, 0)
MGArcade_Layer_SetCol(gLayer, 0, 0, 0, 255)
MGArcade_Layer_SetCol(gLayer, 255, 255, 255, 0)
MGArcade_Layer_SetCol(gStartScreen, 255, 255, 255, 0)
MGArcade_Layer_SetCol(gStartScreen, 255, 255, 255, 255)
MGArcade_Layer_SetCol(introLayer, 0, 0, 0, 255)
MGArcade_Layer_SetCol(lid, 0, 0, 0, 0)
MGArcade_Layer_SetCol(lid, 255, 255, 255, 255)
push ecx
push esi
mov esi, dword ptr [0x20C8704]
push edi
mov edi, dword ptr [esp+0x10]
push 0x0
push edi
call LuaParam::GetInt
mov esi, dword ptr [esi+0x104]
add esp, 0x8
test esi, esi
jz 0xD
cmp dword ptr [esi], eax
jz 0x9
mov esi, dword ptr [esi+0x4]
test esi, esi
jnz 0xFFFFFFF7
push 0x4
push edi
call LuaParam::GetInt
add esp, 0x8
push eax
push 0x3
push edi
call LuaParam::GetInt
add esp, 0x8
push eax
push 0x2
push edi
call LuaParam::GetInt
add esp, 0x8
push eax
push 0x1
push edi
call LuaParam::GetInt
add esp, 0x8
push eax
lea ecx, ptr [esp+0x18]
call 0x510DE0
mov eax, dword ptr [eax]
mov ecx, eax
mov edx, eax
mov byte ptr [esi+0x70AC], al
shr ecx, 0x8
shr edx, 0x10
shr eax, 0x18
mov byte ptr [esi+0x70AF], al
pop edi
mov byte ptr [esi+0x70AD], cl
mov byte ptr [esi+0x70AE], dl
xor eax, eax
pop esi
pop ecx
ret
-- never used
sub esp, 0x8
push esi
mov esi, dword ptr [0x20C8704]
push edi
mov edi, dword ptr [esp+0x14]
push 0x0
push edi
call LuaParam::GetInt
mov esi, dword ptr [esi+0x104]
add esp, 0x8
test esi, esi
jz 0xD
cmp dword ptr [esi], eax
jz 0x9
mov esi, dword ptr [esi+0x4]
test esi, esi
jnz 0xFFFFFFF7
push 0x1
push edi
call LuaParam::GetFloat
fstp dword ptr [esp+0x10], st
push 0x2
push edi
call LuaParam::GetFloat
fstp dword ptr [esp+0x1C], st
fld st, dword ptr [esp+0x18]
add esp, 0x10
fstp dword ptr [esi+0x709C], st
pop edi
fld st, dword ptr [esp+0x8]
xor eax, eax
fstp dword ptr [esi+0x70A0], st
pop esi
add esp, 0x8
ret
MGArcade_Layer_SetPos(bgid, 0, 20)
MGArcade_Layer_SetPos(gBackDrop, 0, 0)
MGArcade_Layer_SetPos(gGameOverLayer, 0, 0)
MGArcade_Layer_SetPos(gHUD, 0, -200)
MGArcade_Layer_SetPos(gInfoLayer, 0, -200)
MGArcade_Layer_SetPos(gInstructScreen, 0, 0)
MGArcade_Layer_SetPos(gLayer, 0, 0)
MGArcade_Layer_SetPos(gLayer, 0, 16)
MGArcade_Layer_SetPos(gStartScreen, 0, 0)
MGArcade_Layer_SetPos(introLayer, 0, 0)
MGArcade_Layer_SetPos(layerID, 320 * stickX, 240 * stickY)
MGArcade_Layer_SetPos(lid, 0, 0)
MGArcade_Layer_SetPos(lid, 0, 20)
sub esp, 0x8
push esi
mov esi, dword ptr [0x20C8704]
push edi
mov edi, dword ptr [esp+0x14]
push 0x0
push edi
call LuaParam::GetInt
mov esi, dword ptr [esi+0x104]
add esp, 0x8
test esi, esi
jz 0xD
cmp dword ptr [esi], eax
jz 0x9
mov esi, dword ptr [esi+0x4]
test esi, esi
jnz 0xFFFFFFF7
push 0x1
push edi
call LuaParam::GetFloat
fstp dword ptr [esp+0x10], st
push 0x2
push edi
call LuaParam::GetFloat
fstp dword ptr [esp+0x1C], st
fld st, dword ptr [esp+0x18]
add esp, 0x10
fstp dword ptr [esi+0x70A4], st
pop edi
fld st, dword ptr [esp+0x8]
xor eax, eax
fstp dword ptr [esi+0x70A8], st
pop esi
add esp, 0x8
ret
MGArcade_Layer_SetScale(bgid, 1, 1)
MGArcade_Layer_SetScale(gBackDrop, 1, 1)
MGArcade_Layer_SetScale(gGameOverLayer, 1, 1)
MGArcade_Layer_SetScale(gHUD, 1, 1)
MGArcade_Layer_SetScale(gInfoLayer, 1, 1)
MGArcade_Layer_SetScale(gInstructScreen, 1, 1)
MGArcade_Layer_SetScale(gLayer, 1, 1)
MGArcade_Layer_SetScale(gStartScreen, 1, 1)
MGArcade_Layer_SetScale(introLayer, 1, 1)
MGArcade_Layer_SetScale(layerID, stickX + 1, stickY + 1)
MGArcade_Layer_SetScale(lid, 1, 1)
sub esp, 0x8
push esi
mov esi, dword ptr [0x20C8704]
push edi
mov edi, dword ptr [esp+0x14]
push 0x0
push edi
call LuaParam::GetInt
mov esi, dword ptr [esi+0x104]
add esp, 0x8
test esi, esi
jz 0xD
cmp dword ptr [esi], eax
jz 0x9
mov esi, dword ptr [esi+0x4]
test esi, esi
jnz 0xFFFFFFF7
push 0x1
push edi
call LuaParam::GetFloat
fstp dword ptr [esp+0x10], st
push 0x2
push edi
call LuaParam::GetFloat
fstp dword ptr [esp+0x1C], st
fld st, dword ptr [esp+0x18]
add esp, 0x10
fstp dword ptr [esi+0x708C], st
pop edi
fld st, dword ptr [esp+0x8]
xor eax, eax
fstp dword ptr [esi+0x7090], st
pop esi
add esp, 0x8
ret
MGArcade_Layer_SetTexture(gLayer, tex_sprite0)
push esi
mov esi, dword ptr [0x20C8704]
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetInt
mov esi, dword ptr [esi+0x104]
add esp, 0x8
test esi, esi
jz 0xD
cmp dword ptr [esi], eax
jz 0x9
mov esi, dword ptr [esi+0x4]
test esi, esi
jnz 0xFFFFFFF7
push 0x1
push edi
call LuaParam::GetInt
add esp, 0x8
mov dword ptr [esi+0x70B0], eax
pop edi
xor eax, eax
pop esi
ret
-- never used
mov eax, dword ptr [esp+0x4]
push esi
mov esi, dword ptr [0x20C8704]
push 0x0
push eax
call LuaParam::GetString
add esp, 0x8
push eax
mov ecx, esi
call 0x6FD1E0
xor eax, eax
pop esi
ret
MGArcade_LoadTextures("MG_Fend")
MGArcade_LoadTextures("MG_Fling")
MGArcade_LoadTextures("MG_Sumo")
mov eax, dword ptr [esp+0x4]
push esi
mov esi, dword ptr [0x20C8704]
push 0x0
push eax
call LuaParam::GetString
add esp, 0x8
push eax
mov ecx, esi
call 0x6FD470
xor eax, eax
pop esi
ret
MGArcade_SetCancelConfirm(false)
mov eax, dword ptr [esp+0x4]
push esi
mov esi, dword ptr [0x20C8704]
push 0x0
push eax
call LuaParam::GetBool
add esp, 0x8
mov byte ptr [esi+0xC5], al
xor eax, eax
pop esi
ret
-- never used
push ecx
fld1
push esi
push edi
fstp dword ptr [esp+0x8], st
mov edi, dword ptr [esp+0x10]
push edi
call LuaParam::GetParamCount
add esp, 0x4
cmp eax, 0x2
jl 0x11
push 0x1
push edi
call LuaParam::GetFloat
fstp dword ptr [esp+0x10], st
add esp, 0x8
mov esi, dword ptr [0x20C8704]
push 0x0
push edi
add esi, 0xC8
call LuaParam::GetInt
fld st, dword ptr [esp+0x10]
add esp, 0x8
fstp dword ptr [esi+0x70], st
mov dword ptr [esi+0x6C], eax
pop edi
xor eax, eax
pop esi
pop ecx
ret
-- never used
mov eax, dword ptr [esp+0x4]
push esi
mov esi, dword ptr [0x20C8704]
push 0x0
push eax
call LuaParam::GetBool
add esp, 0x8
mov byte ptr [esi+0xC4], al
xor eax, eax
pop esi
ret
-- never used
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push 0x0
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0xC], st
fld st, dword ptr [esp+0xC]
add esp, 0x8
call 0x85AEF0
fstp dword ptr [esp+0x4], st
fld st, dword ptr [esp+0x4]
push ecx
fstp dword ptr [esp], st
push esi
call LuaParam::PushFloat
add esp, 0x8
mov eax, 0x1
pop esi
pop ecx
ret
gScoreParam = MGArcade_Sprite_AddTextParam(gHUD, gScoreText, 0)
gScoreParam = MGArcade_Sprite_AddTextParam(gInfoLayer, gScoreText, gScore)
local ScoreParam = MGArcade_Sprite_AddTextParam(gGameOverLayer, score.id2, 0)
local ScoreParam = MGArcade_Sprite_AddTextParam(lid, score.id2, 0)
push ecx
push ebx
mov ebx, dword ptr [esp+0xC]
push esi
mov esi, dword ptr [0x20C8704]
push 0x0
push ebx
call LuaParam::GetInt
mov esi, dword ptr [esi+0x104]
add esp, 0x8
test esi, esi
jz 0xD
cmp dword ptr [esi], eax
jz 0x9
mov esi, dword ptr [esi+0x4]
test esi, esi
jnz 0xFFFFFFF7
push edi
push 0x1
push ebx
call LuaParam::GetInt
push 0x2
push ebx
mov edi, eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x1C], st
lea eax, ptr [edi+edi*8]
shl eax, 0x4
mov ecx, dword ptr [eax+esi*1+0x88]
lea eax, ptr [eax+esi*1+0x8]
add esp, 0x10
cmp ecx, 0x2
pop edi
jnl 0x30
fld st, dword ptr [esp+0x8]
fstp dword ptr [eax+ecx*4+0x84], st
add dword ptr [eax+0x80], 0x1
mov eax, dword ptr [eax+0x80]
add eax, 0xFFFFFFFF
push eax
push ebx
call LuaParam::PushInt
add esp, 0x8
pop esi
mov eax, 0x1
pop ebx
pop ecx
ret
or eax, 0xFFFFFFFF
push eax
push ebx
call LuaParam::PushInt
add esp, 0x8
pop esi
mov eax, 0x1
pop ebx
pop ecx
ret
local bx, by = MGArcade_Sprite_GetPos(gBackDrop, gBackDrop03)
local bx, by = MGArcade_Sprite_GetPos(gBackDrop, gBackDrop04)
local bx, by = MGArcade_Sprite_GetPos(gLayer, gBat)
local ex, ey = MGArcade_Sprite_GetPos(gLayer, gEagle)
local nx, ny = MGArcade_Sprite_GetPos(gBackDrop, nid)
local px = MGArcade_Sprite_GetPos(gLayer, gMonkey)
local px, py = MGArcade_Sprite_GetPos(gLayer, gMonkey)
local px, py = MGArcade_Sprite_GetPos(gLayer, gSquirrel)
local sx, sy = MGArcade_Sprite_GetPos(gLayer, spider.id)
local x, y = MGArcade_Sprite_GetPos(gBackDrop, gBackDrop03)
local x, y = MGArcade_Sprite_GetPos(gBackDrop, gBackDrop04)
local x, y = MGArcade_Sprite_GetPos(gBackDrop, land.id)
local x, y = MGArcade_Sprite_GetPos(gLayer, gBat)
local x, y = MGArcade_Sprite_GetPos(gLayer, gMonkey)
local x, y = MGArcade_Sprite_GetPos(gLayer, gSquirrel)
local x, y = MGArcade_Sprite_GetPos(gLayer, hornet.id)
local x, y = MGArcade_Sprite_GetPos(gLayer, spider.id)
local x, y = MGArcade_Sprite_GetPos(gLayer, stinger.id)
local x, y = MGArcade_Sprite_GetPos(lid, echo.id)
local x, y = MGArcade_Sprite_GetPos(lid, gPlayerShip)
local x, y = MGArcade_Sprite_GetPos(lid, nut.id)
local x, y = MGArcade_Sprite_GetPos(lid, poo.id)
local x, y = MGArcade_Sprite_GetPos(lid, sid)
lx, ly = MGArcade_Sprite_GetPos(gBackDrop, tblTerrain2[1].id)
lx, ly = MGArcade_Sprite_GetPos(gBackDrop, tblTerrain2[2].id)
lx, ly = MGArcade_Sprite_GetPos(gBackDrop, tblTerrain2[3].id)
lx, ly = MGArcade_Sprite_GetPos(gBackDrop, tblTerrain2[4].id)
lx, ly = MGArcade_Sprite_GetPos(gBackDrop, tblTerrain2[5].id)
lx, ly = MGArcade_Sprite_GetPos(gBackDrop, tblTerrain2[6].id)
lx, ly = MGArcade_Sprite_GetPos(gBackDrop, tblTerrain3[1].id)
lx, ly = MGArcade_Sprite_GetPos(gBackDrop, tblTerrain3[2].id)
lx, ly = MGArcade_Sprite_GetPos(gBackDrop, tblTerrain3[3].id)
lx, ly = MGArcade_Sprite_GetPos(gBackDrop, tblTerrain3[4].id)
lx, ly = MGArcade_Sprite_GetPos(gBackDrop, tblTerrain3[5].id)
lx, ly = MGArcade_Sprite_GetPos(gBackDrop, tblTerrain3[6].id)
sposx, sposy = MGArcade_Sprite_GetPos(lid, gPlayerShip)
sposx, sposy = MGArcade_Sprite_GetPos(lid, sid)
sposx1, sposy1 = MGArcade_Sprite_GetPos(lid, sid)
sub esp, 0x8
push esi
mov esi, dword ptr [0x20C8704]
push edi
mov edi, dword ptr [esp+0x14]
push 0x0
push edi
call LuaParam::GetInt
mov esi, dword ptr [esi+0x104]
add esp, 0x8
test esi, esi
jz 0xD
cmp dword ptr [esi], eax
jz 0x9
mov esi, dword ptr [esi+0x4]
test esi, esi
jnz 0xFFFFFFF7
push 0x1
push edi
call LuaParam::GetInt
lea eax, ptr [eax+eax*8]
shl eax, 0x4
mov ecx, dword ptr [eax+esi*1+0x20]
mov edx, dword ptr [eax+esi*1+0x24]
mov dword ptr [esp+0x10], ecx
fld st, dword ptr [esp+0x10]
add esp, 0x4
fstp dword ptr [esp], st
push edi
mov dword ptr [esp+0x14], edx
call LuaParam::PushFloat
fld st, dword ptr [esp+0x14]
add esp, 0x4
fstp dword ptr [esp], st
push edi
call LuaParam::PushFloat
add esp, 0x8
pop edi
mov eax, 0x2
pop esi
add esp, 0x8
ret
-- never used
push ecx
push esi
mov esi, dword ptr [0x20C8704]
push edi
mov edi, dword ptr [esp+0x10]
push 0x0
push edi
call LuaParam::GetInt
mov esi, dword ptr [esi+0x104]
add esp, 0x8
test esi, esi
jz 0xD
cmp dword ptr [esi], eax
jz 0x9
mov esi, dword ptr [esi+0x4]
test esi, esi
jnz 0xFFFFFFF7
push 0x1
push edi
call LuaParam::GetInt
lea eax, ptr [eax+eax*8]
shl eax, 0x4
fld st, dword ptr [eax+esi*1+0x40]
add esp, 0x4
fmul st, qword ptr [0x900158]
fdiv st, qword ptr [0x900160]
fstp dword ptr [esp+0xC], st
fld st, dword ptr [esp+0xC]
fstp dword ptr [esp], st
push edi
call LuaParam::PushFloat
add esp, 0x8
pop edi
mov eax, 0x1
pop esi
pop ecx
ret
-- never used
push ecx
push esi
mov esi, dword ptr [0x20C8704]
push edi
mov edi, dword ptr [esp+0x10]
push 0x0
push edi
call LuaParam::GetInt
mov esi, dword ptr [esi+0x104]
add esp, 0x8
test esi, esi
jz 0xD
cmp dword ptr [esi], eax
jz 0x9
mov esi, dword ptr [esi+0x4]
test esi, esi
jnz 0xFFFFFFF7
push 0x1
push edi
call LuaParam::GetInt
lea eax, ptr [eax+eax*8]
shl eax, 0x4
fld st, dword ptr [eax+esi*1+0x44]
add esp, 0x4
fmul st, qword ptr [0x900158]
fdiv st, qword ptr [0x900160]
fstp dword ptr [esp+0xC], st
fld st, dword ptr [esp+0xC]
fstp dword ptr [esp], st
push edi
call LuaParam::PushFloat
add esp, 0x8
pop edi
mov eax, 0x1
pop esi
pop ecx
ret
scalex, scaley = MGArcade_Sprite_GetScale(lid, sid)
sub esp, 0x8
push esi
mov esi, dword ptr [0x20C8704]
push edi
mov edi, dword ptr [esp+0x14]
push 0x0
push edi
call LuaParam::GetInt
mov esi, dword ptr [esi+0x104]
add esp, 0x8
test esi, esi
jz 0xD
cmp dword ptr [esi], eax
jz 0x9
mov esi, dword ptr [esi+0x4]
test esi, esi
jnz 0xFFFFFFF7
push 0x1
push edi
call LuaParam::GetInt
lea eax, ptr [eax+eax*8]
shl eax, 0x4
mov ecx, dword ptr [eax+esi*1+0x8]
mov edx, dword ptr [eax+esi*1+0xC]
mov dword ptr [esp+0x10], ecx
fld st, dword ptr [esp+0x10]
add esp, 0x4
fstp dword ptr [esp], st
push edi
mov dword ptr [esp+0x14], edx
call LuaParam::PushFloat
fld st, dword ptr [esp+0x14]
add esp, 0x4
fstp dword ptr [esp], st
push edi
call LuaParam::PushFloat
add esp, 0x8
pop edi
mov eax, 0x2
pop esi
add esp, 0x8
ret
speedx = MGArcade_Sprite_GetScaleSpeed(lid, sid)
sub esp, 0x8
push esi
mov esi, dword ptr [0x20C8704]
push edi
mov edi, dword ptr [esp+0x14]
push 0x0
push edi
call LuaParam::GetInt
mov esi, dword ptr [esi+0x104]
add esp, 0x8
test esi, esi
jz 0xD
cmp dword ptr [esi], eax
jz 0x9
mov esi, dword ptr [esi+0x4]
test esi, esi
jnz 0xFFFFFFF7
push 0x1
push edi
call LuaParam::GetInt
lea eax, ptr [eax+eax*8]
shl eax, 0x4
mov ecx, dword ptr [eax+esi*1+0x4C]
mov edx, dword ptr [eax+esi*1+0x50]
mov dword ptr [esp+0x10], ecx
fld st, dword ptr [esp+0x10]
add esp, 0x4
fstp dword ptr [esp], st
push edi
mov dword ptr [esp+0x14], edx
call LuaParam::PushFloat
fld st, dword ptr [esp+0x14]
add esp, 0x4
fstp dword ptr [esp], st
push edi
call LuaParam::PushFloat
add esp, 0x8
pop edi
mov eax, 0x2
pop esi
add esp, 0x8
ret
texture = MGArcade_Sprite_GetTexture(lid, sid)
push esi
mov esi, dword ptr [0x20C8704]
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetInt
mov esi, dword ptr [esi+0x104]
add esp, 0x8
test esi, esi
jz 0xD
cmp dword ptr [esi], eax
jz 0x9
mov esi, dword ptr [esi+0x4]
test esi, esi
jnz 0xFFFFFFF7
push 0x1
push edi
call LuaParam::GetInt
lea eax, ptr [eax+eax*8]
shl eax, 0x4
mov ecx, dword ptr [eax+esi*1+0x58]
push ecx
push edi
call LuaParam::PushInt
add esp, 0x10
pop edi
mov eax, 0x1
pop esi
ret
local batVelX = MGArcade_Sprite_GetVel(gLayer, gBat)
local ev = MGArcade_Sprite_GetVel(gLayer, gEagle)
local SalmonVelX = MGArcade_Sprite_GetVel(lid, sid)
local velx, vely = MGArcade_Sprite_GetVel(gLayer, hornet.id)
local vx, vy = MGArcade_Sprite_GetVel(lid, sid)
local vx1, vy1 = MGArcade_Sprite_GetVel(clid, csid)
local x, y = MGArcade_Sprite_GetVel(lid, sid)
svelx, svely = MGArcade_Sprite_GetVel(lid, gPlayerShip)
svelx, svely = MGArcade_Sprite_GetVel(lid, sid)
sub esp, 0x8
push esi
mov esi, dword ptr [0x20C8704]
push edi
mov edi, dword ptr [esp+0x14]
push 0x0
push edi
call LuaParam::GetInt
mov esi, dword ptr [esi+0x104]
add esp, 0x8
test esi, esi
jz 0xD
cmp dword ptr [esi], eax
jz 0x9
mov esi, dword ptr [esi+0x4]
test esi, esi
jnz 0xFFFFFFF7
push 0x1
push edi
call LuaParam::GetInt
lea eax, ptr [eax+eax*8]
shl eax, 0x4
mov ecx, dword ptr [eax+esi*1+0x28]
mov edx, dword ptr [eax+esi*1+0x2C]
mov dword ptr [esp+0x10], ecx
fld st, dword ptr [esp+0x10]
add esp, 0x4
fstp dword ptr [esp], st
push edi
mov dword ptr [esp+0x14], edx
call LuaParam::PushFloat
fld st, dword ptr [esp+0x14]
add esp, 0x4
fstp dword ptr [esp], st
push edi
call LuaParam::PushFloat
add esp, 0x8
pop edi
mov eax, 0x2
pop esi
add esp, 0x8
ret
MGArcade_Sprite_SetAcc(clid, csid, vx1 * 2, vy1 * 2)
MGArcade_Sprite_SetAcc(gBackDrop, gBackDrop03, 0, 0)
MGArcade_Sprite_SetAcc(gBackDrop, gBackDrop04, 0, 0)
MGArcade_Sprite_SetAcc(gBackDrop, gTerrain, 0, 0)
MGArcade_Sprite_SetAcc(gHUD, gAmmo, 0, 0)
MGArcade_Sprite_SetAcc(gHUD, gLife, 0, 0)
MGArcade_Sprite_SetAcc(gLayer, ec_ho, 0, 0)
MGArcade_Sprite_SetAcc(gLayer, echo.id, 0, 0)
MGArcade_Sprite_SetAcc(gLayer, gBanana, 0, 0)
MGArcade_Sprite_SetAcc(gLayer, gBat, -35, 85)
MGArcade_Sprite_SetAcc(gLayer, gBat, 0, 0)
MGArcade_Sprite_SetAcc(gLayer, gClouds, 0, 0)
MGArcade_Sprite_SetAcc(gLayer, gEagle, -25, 25)
MGArcade_Sprite_SetAcc(gLayer, gEagle, 0, 0)
MGArcade_Sprite_SetAcc(gLayer, gGround, 0, 0)
MGArcade_Sprite_SetAcc(gLayer, gHornet, 0, 0)
MGArcade_Sprite_SetAcc(gLayer, gMonkey, 0, 0)
MGArcade_Sprite_SetAcc(gLayer, gNut, 0, 0)
MGArcade_Sprite_SetAcc(gLayer, gPoo, 0, 0)
MGArcade_Sprite_SetAcc(gLayer, gSalmon, -25, 45)
MGArcade_Sprite_SetAcc(gLayer, gSalmon, -95, 0)
MGArcade_Sprite_SetAcc(gLayer, gSalmon, 0, 0)
MGArcade_Sprite_SetAcc(gLayer, gSpider, 0, 0)
MGArcade_Sprite_SetAcc(gLayer, gSquirrel, 0, 0)
MGArcade_Sprite_SetAcc(gLayer, gStinger, 0, 0)
MGArcade_Sprite_SetAcc(gLayer, hornet.id, -15, 85)
MGArcade_Sprite_SetAcc(gLayer, hornet.id, 0, 0)
MGArcade_Sprite_SetAcc(gLayer, nut.id, 0, 0)
MGArcade_Sprite_SetAcc(gLayer, sid, 0, 0)
MGArcade_Sprite_SetAcc(gLayer, spider.id, 0, 0)
MGArcade_Sprite_SetAcc(gLayer, spider.id, 0, spiderAcc)
MGArcade_Sprite_SetAcc(gLayer, spider.id, spiderWalkAcc, 0)
MGArcade_Sprite_SetAcc(gLayer, stinger.id, 0, 0)
MGArcade_Sprite_SetAcc(lid, gAngels[gAngelsCreated].id, 0, 0)
MGArcade_Sprite_SetAcc(lid, gEnemySumos[iSprite].id, 0, 0)
MGArcade_Sprite_SetAcc(lid, gPlayerShip, 0, 0)
MGArcade_Sprite_SetAcc(lid, gSP[iSprite].id, 0, 0)
MGArcade_Sprite_SetAcc(lid, sid, 0, 0)
MGArcade_Sprite_SetAcc(lid, sid, math.random(-15, 15), math.random(-15, 15))
sub esp, 0x8
push esi
mov esi, dword ptr [0x20C8704]
push edi
mov edi, dword ptr [esp+0x14]
push 0x0
push edi
call LuaParam::GetInt
mov esi, dword ptr [esi+0x104]
add esp, 0x8
test esi, esi
jz 0xD
cmp dword ptr [esi], eax
jz 0x9
mov esi, dword ptr [esi+0x4]
test esi, esi
jnz 0xFFFFFFF7
push 0x1
push edi
call LuaParam::GetInt
lea eax, ptr [eax+eax*8]
shl eax, 0x4
push 0x2
push edi
lea esi, ptr [eax+esi*1+0x8]
call LuaParam::GetFloat
fstp dword ptr [esp+0x18], st
push 0x3
push edi
call LuaParam::GetFloat
fstp dword ptr [esp+0x24], st
fld st, dword ptr [esp+0x20]
add esp, 0x18
fstp dword ptr [esi+0x28], st
pop edi
fld st, dword ptr [esp+0x8]
xor eax, eax
fstp dword ptr [esi+0x2C], st
pop esi
add esp, 0x8
ret
-- never used
push ebx
mov ebx, dword ptr [esp+0x8]
push esi
mov esi, dword ptr [0x20C8704]
push edi
push 0x0
push ebx
call LuaParam::GetInt
mov esi, dword ptr [esi+0x104]
add esp, 0x8
test esi, esi
jz 0xD
cmp dword ptr [esi], eax
jz 0x9
mov esi, dword ptr [esi+0x4]
test esi, esi
jnz 0xFFFFFFF7
push 0x1
push ebx
call LuaParam::GetInt
push 0x2
push ebx
mov edi, eax
call LuaParam::GetBool
add esp, 0x10
lea ecx, ptr [edi+edi*8]
shl ecx, 0x4
pop edi
mov byte ptr [ecx+esi*1+0x5F], al
pop esi
xor eax, eax
pop ebx
ret
MGArcade_Sprite_SetCol(bgid, gStartScreen, 128, 128, 128, 200)
MGArcade_Sprite_SetCol(gBackDrop, gBackDrop01, 255, 255, 255, 255)
MGArcade_Sprite_SetCol(gBackDrop, gBackDrop03, 255, 255, 255, 255)
MGArcade_Sprite_SetCol(gBackDrop, gBackDrop04, 255, 255, 255, 255)
MGArcade_Sprite_SetCol(gBackDrop, gTerrain, 255, 255, 255, 255)
MGArcade_Sprite_SetCol(gGameOverLayer, gHighScoreText, scR, scG, scB, 255)
MGArcade_Sprite_SetCol(gGameOverLayer, gOverScreen, 255, 255, 255, 255)
MGArcade_Sprite_SetCol(gGameOverLayer, score.id, scR, scG, scB, 255)
MGArcade_Sprite_SetCol(gGameOverLayer, score.id2, scR, scG, scB, 255)
MGArcade_Sprite_SetCol(gHUD, gAmmo, 153, 102, 0, 255)
MGArcade_Sprite_SetCol(gHUD, gLife, 255, 255, 255, 255)
MGArcade_Sprite_SetCol(gHUD, gScoreText, 200, 200, 200, 255)
MGArcade_Sprite_SetCol(gInfoLayer, gScoreText, 200, 200, 200, 255)
MGArcade_Sprite_SetCol(gInfoLayer, gStaminaBar, 128, 0, 0, 255)
MGArcade_Sprite_SetCol(gInfoLayer, gStaminaBarBG, 128, 128, 128, 200)
MGArcade_Sprite_SetCol(gInstructScreen, gExitText, tCol[1], tCol[2], tCol[3], tCol[4])
MGArcade_Sprite_SetCol(gInstructScreen, gStartText1, tCol[1], tCol[2], tCol[3], tCol[4])
MGArcade_Sprite_SetCol(gInstructScreen, gTutSprite00, 0, 0, 0, 128)
MGArcade_Sprite_SetCol(gInstructScreen, gTutSprite00, sCol[1], sCol[2], sCol[3], sCol[4])
MGArcade_Sprite_SetCol(gInstructScreen, gTutSprite000, 0, 0, 0, 128)
MGArcade_Sprite_SetCol(gInstructScreen, gTutSprite01, sCol[1], sCol[2], sCol[3], sCol[4])
MGArcade_Sprite_SetCol(gInstructScreen, gTutSprite02, sCol[1], sCol[2], sCol[3], sCol[4])
MGArcade_Sprite_SetCol(gInstructScreen, gTutSprite03, sCol[1], sCol[2], sCol[3], sCol[4])
MGArcade_Sprite_SetCol(gInstructScreen, gTutSprite04, sCol[1], sCol[2], sCol[3], sCol[4])
MGArcade_Sprite_SetCol(gInstructScreen, gTutText00, tCol[1], tCol[2], tCol[3], tCol[4])
MGArcade_Sprite_SetCol(gInstructScreen, gTutText000, tCol[1], tCol[2], tCol[3], tCol[4])
MGArcade_Sprite_SetCol(gInstructScreen, gTutText01, tCol[1], tCol[2], tCol[3], tCol[4])
MGArcade_Sprite_SetCol(gInstructScreen, gTutText02, tCol[1], tCol[2], tCol[3], tCol[4])
MGArcade_Sprite_SetCol(gInstructScreen, gTutText03, tCol[1], tCol[2], tCol[3], tCol[4])
MGArcade_Sprite_SetCol(gInstructScreen, gTutText04, tCol[1], tCol[2], tCol[3], tCol[4])
MGArcade_Sprite_SetCol(gInstructScreen, gTutText05, tCol[1], tCol[2], tCol[3], tCol[4])
MGArcade_Sprite_SetCol(gLayer, ec_ho, 255, 255, 255, 255)
MGArcade_Sprite_SetCol(gLayer, gBanana, 255, 255, 255, 255)
MGArcade_Sprite_SetCol(gLayer, gBat, 255, 255, 255, 255)
MGArcade_Sprite_SetCol(gLayer, gClouds, 238, 238, 238, 255)
MGArcade_Sprite_SetCol(gLayer, gEagle, 255, 0, 0, 255)
MGArcade_Sprite_SetCol(gLayer, gEagle, 255, 255, 255, 255)
MGArcade_Sprite_SetCol(gLayer, gEagle, red, 0, 0, 255)
MGArcade_Sprite_SetCol(gLayer, gGround, 10, 255, 10, 255)
MGArcade_Sprite_SetCol(gLayer, gGround, 255, 255, 255, 255)
MGArcade_Sprite_SetCol(gLayer, gHornet, 255, 255, 255, 255)
MGArcade_Sprite_SetCol(gLayer, gMonkey, 255, 255, 255, 255)
MGArcade_Sprite_SetCol(gLayer, gNut, 204, 153, 0, 255)
MGArcade_Sprite_SetCol(gLayer, gPoo, 255, 255, 255, 255)
MGArcade_Sprite_SetCol(gLayer, gSalmon, 255, 255, 255, 255)
MGArcade_Sprite_SetCol(gLayer, gSpider, 255, 255, 255, 255)
MGArcade_Sprite_SetCol(gLayer, gSquirrel, 255, 255, 255, 255)
MGArcade_Sprite_SetCol(gLayer, gStinger, 255, 255, 0, 255)
MGArcade_Sprite_SetCol(gLayer, spider.id, 255, 255, 255, 255)
MGArcade_Sprite_SetCol(gLayer, spider.id, 255, 255, 255, spider.fadetime)
MGArcade_Sprite_SetCol(gStartScreen, gExitText, 50, 50, 50, 255)
MGArcade_Sprite_SetCol(gStartScreen, gLoadScreen, 255, 255, 255, 255)
MGArcade_Sprite_SetCol(gStartScreen, gStartText, 50, 50, 50, 255)
MGArcade_Sprite_SetCol(introLayer, gExitText, 150, 150, 150, 255)
MGArcade_Sprite_SetCol(introLayer, gStartScreen, 200, 200, 200, 255)
MGArcade_Sprite_SetCol(introLayer, gStartText, 150, 150, 150, 255)
MGArcade_Sprite_SetCol(introLayer, gStartText, 150, 150, 150, startAlpha)
MGArcade_Sprite_SetCol(lid, angel.id, 255, 255, 255, angel.alpha)
MGArcade_Sprite_SetCol(lid, gExitText, tCol[1], tCol[2], tCol[3], tCol[4])
MGArcade_Sprite_SetCol(lid, gGameOverSprite, 255, 255, 255, alpha)
MGArcade_Sprite_SetCol(lid, gHighScoreBKG, 0, 0, 0, 128)
MGArcade_Sprite_SetCol(lid, gHighScoreText, scR, scG, scB, 255)
MGArcade_Sprite_SetCol(lid, gStartText1, tCol[1], tCol[2], tCol[3], tCol[4])
MGArcade_Sprite_SetCol(lid, gTutSprite00, 0, 0, 0, 128)
MGArcade_Sprite_SetCol(lid, gTutText01, tCol[1], tCol[2], tCol[3], tCol[4])
MGArcade_Sprite_SetCol(lid, gTutText02, tCol[1], tCol[2], tCol[3], tCol[4])
MGArcade_Sprite_SetCol(lid, gTutText03, tCol[1], tCol[2], tCol[3], tCol[4])
MGArcade_Sprite_SetCol(lid, gTutText04, tCol[1], tCol[2], tCol[3], tCol[4])
MGArcade_Sprite_SetCol(lid, gTutText05, tCol[1], tCol[2], tCol[3], tCol[4])
MGArcade_Sprite_SetCol(lid, score.id, scR, scG, scB, 255)
MGArcade_Sprite_SetCol(lid, score.id2, scR, scG, scB, 255)
MGArcade_Sprite_SetCol(lid, sid, 0, 0, 255, 255)
MGArcade_Sprite_SetCol(lid, sid, 255, 0, 0, 255)
push ecx
push ebx
push esi
mov esi, dword ptr [0x20C8704]
push edi
mov edi, dword ptr [esp+0x14]
push 0x0
push edi
call LuaParam::GetInt
mov esi, dword ptr [esi+0x104]
add esp, 0x8
test esi, esi
jz 0xD
cmp dword ptr [esi], eax
jz 0x9
mov esi, dword ptr [esi+0x4]
test esi, esi
jnz 0xFFFFFFF7
push 0x1
push edi
call LuaParam::GetInt
push 0x5
push edi
mov ebx, eax
call LuaParam::GetInt
add esp, 0x10
push eax
push 0x4
push edi
call LuaParam::GetInt
add esp, 0x8
push eax
push 0x3
push edi
call LuaParam::GetInt
add esp, 0x8
push eax
push 0x2
push edi
call LuaParam::GetInt
add esp, 0x8
push eax
lea ecx, ptr [esp+0x1C]
call 0x510DE0
mov eax, dword ptr [eax]
lea ecx, ptr [ebx+ebx*8]
mov edx, eax
shl ecx, 0x4
lea ecx, ptr [ecx+esi*1+0x54]
shr edx, 0x8
mov byte ptr [ecx+0x1], dl
mov edx, eax
mov byte ptr [ecx], al
pop edi
shr eax, 0x18
shr edx, 0x10
pop esi
mov byte ptr [ecx+0x3], al
mov byte ptr [ecx+0x2], dl
xor eax, eax
pop ebx
pop ecx
ret
MGArcade_Sprite_SetCollFunc(lid, gSP[iSprite].id, gSpriteFunctions[lType])
push esi
mov esi, dword ptr [0x20C8704]
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetInt
mov esi, dword ptr [esi+0x104]
add esp, 0x8
test esi, esi
jz 0xD
cmp dword ptr [esi], eax
jz 0x9
mov esi, dword ptr [esi+0x4]
test esi, esi
jnz 0xFFFFFFF7
push 0x1
push edi
call LuaParam::GetInt
lea eax, ptr [eax+eax*8]
shl eax, 0x4
lea ecx, ptr [eax+esi*1+0x70]
push ecx
push 0x2
push edi
call 0x5D9FD0
add esp, 0x14
pop edi
xor eax, eax
pop esi
ret
MGArcade_Sprite_SetCollSize(bgid, gDojo, 0, 0)
MGArcade_Sprite_SetCollSize(gBackDrop, gBackDrop03, 0, 0)
MGArcade_Sprite_SetCollSize(gBackDrop, gBackDrop04, 0, 0)
MGArcade_Sprite_SetCollSize(gBackDrop, gTerrain, 128, 64)
MGArcade_Sprite_SetCollSize(gHUD, gScoreText, 0, 0)
MGArcade_Sprite_SetCollSize(gInfoLayer, gLifeSprites[i], 0, 0)
MGArcade_Sprite_SetCollSize(gInfoLayer, gScoreText, 0, 0)
MGArcade_Sprite_SetCollSize(gInfoLayer, gStaminaBar, 0, 0)
MGArcade_Sprite_SetCollSize(gInfoLayer, gStaminaBarBG, 0, 0)
MGArcade_Sprite_SetCollSize(gInstructScreen, gExitText, 0, 0)
MGArcade_Sprite_SetCollSize(gInstructScreen, gStartText1, 0, 0)
MGArcade_Sprite_SetCollSize(gInstructScreen, gTutText00, 0, 0)
MGArcade_Sprite_SetCollSize(gInstructScreen, gTutText000, 0, 0)
MGArcade_Sprite_SetCollSize(gInstructScreen, gTutText01, 0, 0)
MGArcade_Sprite_SetCollSize(gInstructScreen, gTutText02, 0, 0)
MGArcade_Sprite_SetCollSize(gInstructScreen, gTutText03, 0, 0)
MGArcade_Sprite_SetCollSize(gInstructScreen, gTutText04, 0, 0)
MGArcade_Sprite_SetCollSize(gInstructScreen, gTutText05, 0, 0)
MGArcade_Sprite_SetCollSize(gLayer, ec_ho, 16, 32)
MGArcade_Sprite_SetCollSize(gLayer, echo.id, 16, 32)
MGArcade_Sprite_SetCollSize(gLayer, gBanana, 32, 32)
MGArcade_Sprite_SetCollSize(gLayer, gBat, 0, 0)
MGArcade_Sprite_SetCollSize(gLayer, gBat, 32, 32)
MGArcade_Sprite_SetCollSize(gLayer, gBat, 64, 64)
MGArcade_Sprite_SetCollSize(gLayer, gEagle, 0, 0)
MGArcade_Sprite_SetCollSize(gLayer, gEagle, 64, 64)
MGArcade_Sprite_SetCollSize(gLayer, gHornet, 32, 32)
MGArcade_Sprite_SetCollSize(gLayer, gMonkey, 0, 0)
MGArcade_Sprite_SetCollSize(gLayer, gMonkey, 64, 64)
MGArcade_Sprite_SetCollSize(gLayer, gNut, 32, 32)
MGArcade_Sprite_SetCollSize(gLayer, gPoo, 16, 16)
MGArcade_Sprite_SetCollSize(gLayer, gSalmon, 0, 0)
MGArcade_Sprite_SetCollSize(gLayer, gSalmon, 64, 16)
MGArcade_Sprite_SetCollSize(gLayer, gSpider, 32, 32)
MGArcade_Sprite_SetCollSize(gLayer, gSquirrel, 0, 0)
MGArcade_Sprite_SetCollSize(gLayer, gSquirrel, 64, 32)
MGArcade_Sprite_SetCollSize(gLayer, gStinger, 16, 8)
MGArcade_Sprite_SetCollSize(gLayer, hornet.id, 0, 0)
MGArcade_Sprite_SetCollSize(gLayer, hornet.id, 16, 16)
MGArcade_Sprite_SetCollSize(gLayer, spider.id, 32, 32)
MGArcade_Sprite_SetCollSize(gStartScreen, gExitText, 0, 0)
MGArcade_Sprite_SetCollSize(gStartScreen, gStartText, 0, 0)
MGArcade_Sprite_SetCollSize(introLayer, gExitText, 0, 0)
MGArcade_Sprite_SetCollSize(introLayer, gStartScreen, 0, 0)
MGArcade_Sprite_SetCollSize(introLayer, gStartText, 0, 0)
MGArcade_Sprite_SetCollSize(lid, gEnemySumos[iSprite].id, gCurrentSizes[gCurrentNoEnemies], gCurrentSizes[gCurrentNoEnemies])
MGArcade_Sprite_SetCollSize(lid, gExitText, 0, 0)
MGArcade_Sprite_SetCollSize(lid, gPlayerShip, 0, 0)
MGArcade_Sprite_SetCollSize(lid, gPlayerShip, gPlayerSize, gPlayerSize)
MGArcade_Sprite_SetCollSize(lid, gSP[iSprite].id, gCurrentSizes[rNum], gCurrentSizes[rNum])
MGArcade_Sprite_SetCollSize(lid, gStartText1, 0, 0)
MGArcade_Sprite_SetCollSize(lid, gTutText01, 0, 0)
MGArcade_Sprite_SetCollSize(lid, gTutText02, 0, 0)
MGArcade_Sprite_SetCollSize(lid, gTutText03, 0, 0)
MGArcade_Sprite_SetCollSize(lid, gTutText04, 0, 0)
MGArcade_Sprite_SetCollSize(lid, gTutText05, 0, 0)
MGArcade_Sprite_SetCollSize(lid, sid, 0, 0)
MGArcade_Sprite_SetCollSize(lid, sid, math.random(1, 50))
MGArcade_Sprite_SetCollSize(lid, sid, math.random(1, 50), math.random(1, 50))
MGArcade_Sprite_SetCollSize(lid, sid, scalex, scaley)
MGArcade_Sprite_SetCollSize(lid, sid, sizeX)
MGArcade_Sprite_SetCollSize(lid, sid, sizeX, sizeY)
push ecx
fldz
push esi
push edi
fstp dword ptr [esp+0x8], st
mov edi, dword ptr [esp+0x10]
push edi
call LuaParam::GetParamCount
add esp, 0x4
cmp eax, 0x4
jl 0x11
push 0x3
push edi
call LuaParam::GetFloat
fstp dword ptr [esp+0x10], st
add esp, 0x8
mov esi, dword ptr [0x20C8704]
push 0x0
push edi
call LuaParam::GetInt
mov esi, dword ptr [esi+0x104]
add esp, 0x8
test esi, esi
jz 0xD
cmp dword ptr [esi], eax
jz 0x9
mov esi, dword ptr [esi+0x4]
test esi, esi
jnz 0xFFFFFFF7
push 0x1
push edi
call LuaParam::GetInt
lea eax, ptr [eax+eax*8]
shl eax, 0x4
push 0x2
push edi
lea esi, ptr [eax+esi*1+0x8]
call LuaParam::GetFloat
fstp dword ptr [esi+0x30], st
fld st, dword ptr [esp+0x18]
add esp, 0x10
pop edi
fstp dword ptr [esi+0x34], st
xor eax, eax
pop esi
pop ecx
ret
-- never used
push ebx
push esi
mov esi, dword ptr [0x20C8704]
push edi
mov edi, dword ptr [esp+0x10]
push 0x0
push edi
call LuaParam::GetInt
mov esi, dword ptr [esi+0x104]
add esp, 0x8
test esi, esi
jz 0xD
cmp dword ptr [esi], eax
jz 0x9
mov esi, dword ptr [esi+0x4]
test esi, esi
jnz 0xFFFFFFF7
push 0x1
push edi
call LuaParam::GetInt
push 0x2
push edi
mov ebx, eax
call LuaParam::GetBool
lea ecx, ptr [ebx+ebx*8]
shl ecx, 0x4
push 0x0
mov byte ptr [ecx+esi*1+0x5D], al
mov esi, dword ptr [0x20C8704]
push edi
call LuaParam::GetInt
mov esi, dword ptr [esi+0x104]
add esp, 0x18
test esi, esi
jz 0xD
cmp dword ptr [esi], eax
jz 0x9
mov esi, dword ptr [esi+0x4]
test esi, esi
jnz 0xFFFFFFF7
push 0x1
push edi
call LuaParam::GetInt
push 0x3
push edi
mov ebx, eax
call LuaParam::GetBool
add esp, 0x10
lea edx, ptr [ebx+ebx*8]
shl edx, 0x4
pop edi
mov byte ptr [edx+esi*1+0x5E], al
pop esi
xor eax, eax
pop ebx
ret
MGArcade_Sprite_SetFont(gGameOverLayer, gHighScoreText, 1)
MGArcade_Sprite_SetFont(gGameOverLayer, score.id, 1)
MGArcade_Sprite_SetFont(gGameOverLayer, score.id2, 1)
MGArcade_Sprite_SetFont(gInstructScreen, gExitText, 1)
MGArcade_Sprite_SetFont(gInstructScreen, gStartText1, 1)
MGArcade_Sprite_SetFont(gInstructScreen, gTutText00, 1)
MGArcade_Sprite_SetFont(gInstructScreen, gTutText000, 1)
MGArcade_Sprite_SetFont(gInstructScreen, gTutText01, 1)
MGArcade_Sprite_SetFont(gInstructScreen, gTutText02, 1)
MGArcade_Sprite_SetFont(gInstructScreen, gTutText03, 1)
MGArcade_Sprite_SetFont(gInstructScreen, gTutText04, 1)
MGArcade_Sprite_SetFont(gInstructScreen, gTutText05, 1)
MGArcade_Sprite_SetFont(gStartScreen, gExitText, 1)
MGArcade_Sprite_SetFont(gStartScreen, gStartText, 1)
MGArcade_Sprite_SetFont(introLayer, gExitText, 1)
MGArcade_Sprite_SetFont(introLayer, gStartText, 1)
MGArcade_Sprite_SetFont(lid, gExitText, 1)
MGArcade_Sprite_SetFont(lid, gHighScoreText, 1)
MGArcade_Sprite_SetFont(lid, gStartText1, 1)
MGArcade_Sprite_SetFont(lid, gTutText01, 1)
MGArcade_Sprite_SetFont(lid, gTutText02, 1)
MGArcade_Sprite_SetFont(lid, gTutText03, 1)
MGArcade_Sprite_SetFont(lid, gTutText04, 1)
MGArcade_Sprite_SetFont(lid, gTutText05, 1)
MGArcade_Sprite_SetFont(lid, score.id, 1)
MGArcade_Sprite_SetFont(lid, score.id2, 1)
push ebx
mov ebx, dword ptr [esp+0x8]
push esi
mov esi, dword ptr [0x20C8704]
push edi
push 0x0
push ebx
call LuaParam::GetInt
mov esi, dword ptr [esi+0x104]
add esp, 0x8
test esi, esi
jz 0xD
cmp dword ptr [esi], eax
jz 0x9
mov esi, dword ptr [esi+0x4]
test esi, esi
jnz 0xFFFFFFF7
push 0x1
push ebx
call LuaParam::GetInt
push 0x2
push ebx
mov edi, eax
call LuaParam::GetInt
add esp, 0x10
lea ecx, ptr [edi+edi*8]
shl ecx, 0x4
pop edi
mov dword ptr [ecx+esi*1+0x74], eax
pop esi
xor eax, eax
pop ebx
ret
-- never used
sub esp, 0x8
push esi
push edi
mov edi, dword ptr [esp+0x14]
push 0x2
push edi
call LuaParam::GetFloat
fstp dword ptr [esp+0x10], st
push 0x3
push edi
call LuaParam::GetFloat
fstp dword ptr [esp+0x1C], st
mov esi, dword ptr [0x20C8704]
push 0x0
push edi
call LuaParam::GetInt
mov esi, dword ptr [esi+0x104]
add esp, 0x18
test esi, esi
jz 0x11
lea esp, ptr [esp]
cmp dword ptr [esi], eax
jz 0x9
mov esi, dword ptr [esi+0x4]
test esi, esi
jnz 0xFFFFFFF7
push 0x1
push edi
call LuaParam::GetInt
fld st, dword ptr [esp+0x10]
lea eax, ptr [eax+eax*8]
shl eax, 0x4
lea eax, ptr [eax+esi*1+0x8]
fstp dword ptr [eax+0x10], st
add esp, 0x8
fld st, dword ptr [esp+0xC]
pop edi
fstp dword ptr [eax+0x14], st
xor eax, eax
pop esi
add esp, 0x8
ret
MGArcade_Sprite_SetPos(bgid, gDojo, 0, 0)
MGArcade_Sprite_SetPos(clid, csid, math.random(-160, 160), math.random(-120, 120))
MGArcade_Sprite_SetPos(gBackDrop, gBackDrop01, 0, 0)
MGArcade_Sprite_SetPos(gBackDrop, gBackDrop03, 0, 112)
MGArcade_Sprite_SetPos(gBackDrop, gBackDrop03, bx, 112)
MGArcade_Sprite_SetPos(gBackDrop, gBackDrop04, 640, 112)
MGArcade_Sprite_SetPos(gBackDrop, gBackDrop04, bx, 112)
MGArcade_Sprite_SetPos(gBackDrop, gTerrain, land.x, land.y + 2)
MGArcade_Sprite_SetPos(gBackDrop, gTerrain, land.x, land.y + 5)
MGArcade_Sprite_SetPos(gBackDrop, gTerrain, land.x, land.y - 2)
MGArcade_Sprite_SetPos(gBackDrop, gTerrain, land.x, land.y - 5)
MGArcade_Sprite_SetPos(gBackDrop, gTerrain, land.x, land.y)
MGArcade_Sprite_SetPos(gBackDrop, land.id, 448, -170 + 2)
MGArcade_Sprite_SetPos(gBackDrop, land.id, 448, -170 + 5)
MGArcade_Sprite_SetPos(gBackDrop, land.id, 448, -170 - 2)
MGArcade_Sprite_SetPos(gBackDrop, land.id, 448, -170 - 5)
MGArcade_Sprite_SetPos(gBackDrop, land.id, 448, -170)
MGArcade_Sprite_SetPos(gBackDrop, land.id, 448, 206)
MGArcade_Sprite_SetPos(gGameOverLayer, gHighScoreText, -75, -100)
MGArcade_Sprite_SetPos(gGameOverLayer, gHighScoreText, -80, -120)
MGArcade_Sprite_SetPos(gGameOverLayer, gOverScreen, 0, 0)
MGArcade_Sprite_SetPos(gGameOverLayer, score.id, -100, score.y)
MGArcade_Sprite_SetPos(gGameOverLayer, score.id2, 40, score.y)
MGArcade_Sprite_SetPos(gHUD, gAmmo, ammo.x, 0)
MGArcade_Sprite_SetPos(gHUD, gLife, life.x, 0)
MGArcade_Sprite_SetPos(gHUD, gScoreText, 0, -12)
MGArcade_Sprite_SetPos(gHUD, gScoreText, 16, -15)
MGArcade_Sprite_SetPos(gInfoLayer, gLifeSprites[i], i * 15 - gMainLayerW, 0)
MGArcade_Sprite_SetPos(gInfoLayer, gScoreText, 128, -9)
MGArcade_Sprite_SetPos(gInfoLayer, gStaminaBar, 0, 0)
MGArcade_Sprite_SetPos(gInfoLayer, gStaminaBarBG, 0, 0)
MGArcade_Sprite_SetPos(gInstructScreen, gExitText, -100, yLoc + 350)
MGArcade_Sprite_SetPos(gInstructScreen, gExitText, -78, yLoc + 360)
MGArcade_Sprite_SetPos(gInstructScreen, gStartText1, -100, yLoc + 330)
MGArcade_Sprite_SetPos(gInstructScreen, gTutSprite00, 0, -16)
MGArcade_Sprite_SetPos(gInstructScreen, gTutSprite00, foodXLoc + 100, yLoc + 100)
MGArcade_Sprite_SetPos(gInstructScreen, gTutSprite000, 0, -16)
MGArcade_Sprite_SetPos(gInstructScreen, gTutSprite01, foodXLoc + 100, yLoc + 150)
MGArcade_Sprite_SetPos(gInstructScreen, gTutSprite01, foodXLoc + 128, yLoc + 112)
MGArcade_Sprite_SetPos(gInstructScreen, gTutSprite02, foodXLoc + 100, yLoc + 200)
MGArcade_Sprite_SetPos(gInstructScreen, gTutSprite02, foodXLoc + 128, yLoc + 166)
MGArcade_Sprite_SetPos(gInstructScreen, gTutSprite03, foodXLoc + 100, yLoc + 250)
MGArcade_Sprite_SetPos(gInstructScreen, gTutSprite03, foodXLoc + 128, yLoc + 230)
MGArcade_Sprite_SetPos(gInstructScreen, gTutSprite04, foodXLoc + 100, yLoc + 305)
MGArcade_Sprite_SetPos(gInstructScreen, gTutSprite04, foodXLoc + 128, yLoc + 294)
MGArcade_Sprite_SetPos(gInstructScreen, gTutText00, textXLoc, textYLoc + 100 - 15)
MGArcade_Sprite_SetPos(gInstructScreen, gTutText000, textXLoc, textYLoc + 100 + 5)
MGArcade_Sprite_SetPos(gInstructScreen, gTutText01, foodXLoc + 40, yLoc)
MGArcade_Sprite_SetPos(gInstructScreen, gTutText01, foodXLoc + 60, yLoc)
MGArcade_Sprite_SetPos(gInstructScreen, gTutText02, textXLoc, textYLoc + 112)
MGArcade_Sprite_SetPos(gInstructScreen, gTutText02, textXLoc, textYLoc + 150)
MGArcade_Sprite_SetPos(gInstructScreen, gTutText03, textXLoc, textYLoc + 166)
MGArcade_Sprite_SetPos(gInstructScreen, gTutText03, textXLoc, textYLoc + 200)
MGArcade_Sprite_SetPos(gInstructScreen, gTutText04, textXLoc, textYLoc + 230)
MGArcade_Sprite_SetPos(gInstructScreen, gTutText04, textXLoc, textYLoc + 250)
MGArcade_Sprite_SetPos(gInstructScreen, gTutText05, textXLoc, textYLoc + 294)
MGArcade_Sprite_SetPos(gInstructScreen, gTutText05, textXLoc, textYLoc + 305)
MGArcade_Sprite_SetPos(gLayer, ec_ho, echo.x, echo.y)
MGArcade_Sprite_SetPos(gLayer, echo.id, echo.x, echo.y)
MGArcade_Sprite_SetPos(gLayer, echo.id, x - 16, y)
MGArcade_Sprite_SetPos(gLayer, gBanana, banana.x, banana.y)
MGArcade_Sprite_SetPos(gLayer, gBat, 320, y)
MGArcade_Sprite_SetPos(gLayer, gBat, 350, 400)
MGArcade_Sprite_SetPos(gLayer, gBat, bat.x, bat.y)
MGArcade_Sprite_SetPos(gLayer, gClouds, 0, -200)
MGArcade_Sprite_SetPos(gLayer, gEagle, -1000, -1000)
MGArcade_Sprite_SetPos(gLayer, gEagle, 320, 0)
MGArcade_Sprite_SetPos(gLayer, gGround, 0, 200)
MGArcade_Sprite_SetPos(gLayer, gHornet, hornet.x, hornet.y)
MGArcade_Sprite_SetPos(gLayer, gJungle, 0, 0)
MGArcade_Sprite_SetPos(gLayer, gMonkey, 0, 164)
MGArcade_Sprite_SetPos(gLayer, gNut, nut.x, nut.y)
MGArcade_Sprite_SetPos(gLayer, gPoo, poo.x, poo.y)
MGArcade_Sprite_SetPos(gLayer, gSalmon, -1000, -1000)
MGArcade_Sprite_SetPos(gLayer, gSalmon, 325, 32)
MGArcade_Sprite_SetPos(gLayer, gSalmon, ex + 20, ey + 32)
MGArcade_Sprite_SetPos(gLayer, gSpider, spider.x, spider.y)
MGArcade_Sprite_SetPos(gLayer, gSquirrel, -150, -100)
MGArcade_Sprite_SetPos(gLayer, gStinger, stinger.x, stinger.y)
MGArcade_Sprite_SetPos(gLayer, hornet.id, 320, y)
MGArcade_Sprite_SetPos(gLayer, hornet.id, hornet.x, hornet.y)
MGArcade_Sprite_SetPos(gLayer, nut.id, nut.x, nut.y)
MGArcade_Sprite_SetPos(gLayer, nut.id, x + 32, y)
MGArcade_Sprite_SetPos(gLayer, poo.id, x, y - 40)
MGArcade_Sprite_SetPos(gLayer, sid, banana.x, banana.y)
MGArcade_Sprite_SetPos(gLayer, sid, nut.x, nut.y)
MGArcade_Sprite_SetPos(gLayer, sid, poo.x, poo.y)
MGArcade_Sprite_SetPos(gLayer, sid, x, 0)
MGArcade_Sprite_SetPos(gLayer, sid, x, 112)
MGArcade_Sprite_SetPos(gLayer, spider.id, spider.x, spider.y)
MGArcade_Sprite_SetPos(gLayer, spider.id, x, -185)
MGArcade_Sprite_SetPos(gLayer, stinger.id, stinger.x, stinger.y)
MGArcade_Sprite_SetPos(gLayer, stinger.id, x - 16, y)
MGArcade_Sprite_SetPos(gStartScreen, gExitText, -78, 170)
MGArcade_Sprite_SetPos(gStartScreen, gExitText, -80, 125)
MGArcade_Sprite_SetPos(gStartScreen, gLoadScreen, 0, 0)
MGArcade_Sprite_SetPos(gStartScreen, gStartText, -100, 140)
MGArcade_Sprite_SetPos(gStartScreen, gStartText, -80, 100)
MGArcade_Sprite_SetPos(introLayer, gExitText, -100, 200)
MGArcade_Sprite_SetPos(introLayer, gStartScreen, 0, 0)
MGArcade_Sprite_SetPos(introLayer, gStartText, -100, 170)
MGArcade_Sprite_SetPos(lid, gAngels[gAngelsCreated].id, x, y)
MGArcade_Sprite_SetPos(lid, gEnemySumos[iSprite].id, x, y)
MGArcade_Sprite_SetPos(lid, gExitText, -100, yLoc + 355)
MGArcade_Sprite_SetPos(lid, gGameOverSprite, 0, 0)
MGArcade_Sprite_SetPos(lid, gHighScoreBKG, 0, -30)
MGArcade_Sprite_SetPos(lid, gHighScoreText, -72, -130)
MGArcade_Sprite_SetPos(lid, gPlayerShip, 0, 0)
MGArcade_Sprite_SetPos(lid, gSP[iSprite].id, x, y)
MGArcade_Sprite_SetPos(lid, gStartText1, -100, yLoc + 330)
MGArcade_Sprite_SetPos(lid, gTutSprite00, 0, -16)
MGArcade_Sprite_SetPos(lid, gTutSprite01, foodXLoc + 128, yLoc + 278)
MGArcade_Sprite_SetPos(lid, gTutSprite02, foodXLoc, yLoc + 96)
MGArcade_Sprite_SetPos(lid, gTutSprite03, foodXLoc + 64, yLoc + 96)
MGArcade_Sprite_SetPos(lid, gTutSprite04, foodXLoc + 128, yLoc + 96)
MGArcade_Sprite_SetPos(lid, gTutSprite05, foodXLoc, yLoc + 150)
MGArcade_Sprite_SetPos(lid, gTutSprite06, foodXLoc + 64, yLoc + 150)
MGArcade_Sprite_SetPos(lid, gTutSprite07, foodXLoc + 128, yLoc + 150)
MGArcade_Sprite_SetPos(lid, gTutSprite08, foodXLoc + 128, yLoc + 214)
MGArcade_Sprite_SetPos(lid, gTutText01, foodXLoc, yLoc)
MGArcade_Sprite_SetPos(lid, gTutText02, textXLoc, textYLoc + 96)
MGArcade_Sprite_SetPos(lid, gTutText03, textXLoc, textYLoc + 150)
MGArcade_Sprite_SetPos(lid, gTutText04, textXLoc, textYLoc + 214)
MGArcade_Sprite_SetPos(lid, gTutText05, textXLoc, textYLoc + 278)
MGArcade_Sprite_SetPos(lid, score.id, -100, score.y)
MGArcade_Sprite_SetPos(lid, score.id2, -15, score.y)
MGArcade_Sprite_SetPos(lid, sid, -160, sposy)
MGArcade_Sprite_SetPos(lid, sid, 160, sposy)
MGArcade_Sprite_SetPos(lid, sid, math.random(-160, 160), math.random(-120, 120))
MGArcade_Sprite_SetPos(lid, sid, removeX, removeY)
MGArcade_Sprite_SetPos(lid, sid, spider.x, spider.y)
MGArcade_Sprite_SetPos(lid, sid, sposx, -120)
MGArcade_Sprite_SetPos(lid, sid, sposx, 120)
sub esp, 0x8
push esi
mov esi, dword ptr [0x20C8704]
push edi
mov edi, dword ptr [esp+0x14]
push 0x0
push edi
call LuaParam::GetInt
mov esi, dword ptr [esi+0x104]
add esp, 0x8
test esi, esi
jz 0xD
cmp dword ptr [esi], eax
jz 0x9
mov esi, dword ptr [esi+0x4]
test esi, esi
jnz 0xFFFFFFF7
push 0x1
push edi
call LuaParam::GetInt
lea eax, ptr [eax+eax*8]
shl eax, 0x4
push 0x2
push edi
lea esi, ptr [eax+esi*1+0x8]
call LuaParam::GetFloat
fstp dword ptr [esp+0x18], st
push 0x3
push edi
call LuaParam::GetFloat
fstp dword ptr [esp+0x24], st
fld st, dword ptr [esp+0x20]
add esp, 0x18
fstp dword ptr [esi+0x18], st
pop edi
fld st, dword ptr [esp+0x8]
xor eax, eax
fstp dword ptr [esi+0x1C], st
pop esi
add esp, 0x8
ret
MGArcade_Sprite_SetRot(gLayer, gBat, 0)
MGArcade_Sprite_SetRot(gLayer, hornet.id, 0)
MGArcade_Sprite_SetRot(gLayer, spider.id, -90)
MGArcade_Sprite_SetRot(gLayer, spider.id, 0)
MGArcade_Sprite_SetRot(gLayer, spider.id, 90)
push ecx
push ebx
mov ebx, dword ptr [esp+0xC]
push esi
mov esi, dword ptr [0x20C8704]
push edi
push 0x0
push ebx
call LuaParam::GetInt
mov esi, dword ptr [esi+0x104]
add esp, 0x8
test esi, esi
jz 0xD
cmp dword ptr [esi], eax
jz 0x9
mov esi, dword ptr [esi+0x4]
test esi, esi
jnz 0xFFFFFFF7
push 0x1
push ebx
call LuaParam::GetInt
push 0x2
push ebx
mov edi, eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x1C], st
fld st, dword ptr [esp+0x1C]
add esp, 0xC
fmul st, qword ptr [0x900160]
fdiv st, qword ptr [0x900158]
fstp dword ptr [esp+0x10], st
fld st, dword ptr [esp+0x10]
fstp dword ptr [esp], st
call 0x432EE0
add esp, 0x4
lea eax, ptr [edi+edi*8]
shl eax, 0x4
pop edi
fstp dword ptr [eax+esi*1+0x40], st
pop esi
xor eax, eax
pop ebx
pop ecx
ret
-- never used
push ecx
push ebx
mov ebx, dword ptr [esp+0xC]
push esi
mov esi, dword ptr [0x20C8704]
push edi
push 0x0
push ebx
call LuaParam::GetInt
mov esi, dword ptr [esi+0x104]
add esp, 0x8
test esi, esi
jz 0xD
cmp dword ptr [esi], eax
jz 0x9
mov esi, dword ptr [esi+0x4]
test esi, esi
jnz 0xFFFFFFF7
push 0x1
push ebx
call LuaParam::GetInt
push 0x2
push ebx
mov edi, eax
call LuaParam::GetFloat
fmul st, qword ptr [0x900160]
add esp, 0x10
lea eax, ptr [edi+edi*8]
fdiv st, qword ptr [0x900158]
shl eax, 0x4
pop edi
fstp dword ptr [esp+0x8], st
fld st, dword ptr [esp+0x8]
fstp dword ptr [eax+esi*1+0x44], st
pop esi
xor eax, eax
pop ebx
pop ecx
ret
MGArcade_Sprite_SetRotSpeed(gLayer, gBat, -30)
MGArcade_Sprite_SetRotSpeed(gLayer, gBat, 0)
MGArcade_Sprite_SetRotSpeed(gLayer, hornet.id, 0)
MGArcade_Sprite_SetRotSpeed(gLayer, hornet.id, 35)
push ecx
push ebx
mov ebx, dword ptr [esp+0xC]
push esi
mov esi, dword ptr [0x20C8704]
push edi
push 0x0
push ebx
call LuaParam::GetInt
mov esi, dword ptr [esi+0x104]
add esp, 0x8
test esi, esi
jz 0xD
cmp dword ptr [esi], eax
jz 0x9
mov esi, dword ptr [esi+0x4]
test esi, esi
jnz 0xFFFFFFF7
push 0x1
push ebx
call LuaParam::GetInt
push 0x2
push ebx
mov edi, eax
call LuaParam::GetFloat
fmul st, qword ptr [0x900160]
add esp, 0x10
lea eax, ptr [edi+edi*8]
fdiv st, qword ptr [0x900158]
shl eax, 0x4
pop edi
fstp dword ptr [esp+0x8], st
fld st, dword ptr [esp+0x8]
fstp dword ptr [eax+esi*1+0x44], st
pop esi
xor eax, eax
pop ebx
pop ecx
ret
MGArcade_Sprite_SetScale(gBackDrop, gTerrain, 0.5, 0.5)
MGArcade_Sprite_SetScale(gBackDrop, gTerrain, 0.75, 0.75)
MGArcade_Sprite_SetScale(gBackDrop, gTerrain, 1, 1)
MGArcade_Sprite_SetScale(gBackDrop, gTerrain, 1.25, 1.25)
MGArcade_Sprite_SetScale(gBackDrop, gTerrain, 1.5, 1.5)
MGArcade_Sprite_SetScale(gBackDrop, land.id, 0.5, 0.5)
MGArcade_Sprite_SetScale(gBackDrop, land.id, 0.75, 0.75)
MGArcade_Sprite_SetScale(gBackDrop, land.id, 1, 1)
MGArcade_Sprite_SetScale(gBackDrop, land.id, 1.25, 1.25)
MGArcade_Sprite_SetScale(gBackDrop, land.id, 1.5, 1.5)
MGArcade_Sprite_SetScale(gGameOverLayer, gHighScoreText, 0.8, 0.8)
MGArcade_Sprite_SetScale(gGameOverLayer, gHighScoreText, 1.4, 1.4)
MGArcade_Sprite_SetScale(gGameOverLayer, gHighScoreText, textSize, textSize)
MGArcade_Sprite_SetScale(gGameOverLayer, gOverScreen, 2, 2)
MGArcade_Sprite_SetScale(gGameOverLayer, score.id, 0.8, 0.8)
MGArcade_Sprite_SetScale(gGameOverLayer, score.id, 1.4, 1.4)
MGArcade_Sprite_SetScale(gGameOverLayer, score.id, textSize, textSize)
MGArcade_Sprite_SetScale(gGameOverLayer, score.id2, 0.8, 0.8)
MGArcade_Sprite_SetScale(gGameOverLayer, score.id2, 1.4, 1.4)
MGArcade_Sprite_SetScale(gGameOverLayer, score.id2, textSize, textSize)
MGArcade_Sprite_SetScale(gHUD, gScoreText, 0.5, 0.5)
MGArcade_Sprite_SetScale(gHUD, gScoreText, 0.6, 0.6)
MGArcade_Sprite_SetScale(gInfoLayer, gScoreText, 0.4, 0.4)
MGArcade_Sprite_SetScale(gInstructScreen, gExitText, 1, 1)
MGArcade_Sprite_SetScale(gInstructScreen, gExitText, textSize, textSize)
MGArcade_Sprite_SetScale(gInstructScreen, gStartText1, 1, 1)
MGArcade_Sprite_SetScale(gInstructScreen, gStartText1, 1.4, 1.4)
MGArcade_Sprite_SetScale(gInstructScreen, gStartText1, textSize, textSize)
MGArcade_Sprite_SetScale(gInstructScreen, gTutText00, textSize, textSize)
MGArcade_Sprite_SetScale(gInstructScreen, gTutText000, textSize, textSize)
MGArcade_Sprite_SetScale(gInstructScreen, gTutText01, 1, 1)
MGArcade_Sprite_SetScale(gInstructScreen, gTutText01, 1.1, 1.1)
MGArcade_Sprite_SetScale(gInstructScreen, gTutText01, textSize, textSize)
MGArcade_Sprite_SetScale(gInstructScreen, gTutText02, textSize, textSize)
MGArcade_Sprite_SetScale(gInstructScreen, gTutText03, textSize, textSize)
MGArcade_Sprite_SetScale(gInstructScreen, gTutText04, textSize, textSize)
MGArcade_Sprite_SetScale(gInstructScreen, gTutText05, textSize, textSize)
MGArcade_Sprite_SetScale(gLayer, echo.id, 1, 1)
MGArcade_Sprite_SetScale(gLayer, gNut, 0.5, 0.5)
MGArcade_Sprite_SetScale(gLayer, stinger.id, 1, 1)
MGArcade_Sprite_SetScale(gStartScreen, gExitText, 0.7, 0.7)
MGArcade_Sprite_SetScale(gStartScreen, gExitText, 0.8, 0.8)
MGArcade_Sprite_SetScale(gStartScreen, gExitText, 1, 1)
MGArcade_Sprite_SetScale(gStartScreen, gStartText, 0.8, 0.8)
MGArcade_Sprite_SetScale(gStartScreen, gStartText, 1, 1)
MGArcade_Sprite_SetScale(gStartScreen, gStartText, 1.4, 1.4)
MGArcade_Sprite_SetScale(introLayer, gExitText, 0.8, 0.8)
MGArcade_Sprite_SetScale(introLayer, gExitText, 1.4, 1.4)
MGArcade_Sprite_SetScale(introLayer, gStartText, 0.8, 0.8)
MGArcade_Sprite_SetScale(introLayer, gStartText, 1.4, 1.4)
MGArcade_Sprite_SetScale(lid, gExitText, 0.8, 0.8)
MGArcade_Sprite_SetScale(lid, gExitText, 1.4, 1.4)
MGArcade_Sprite_SetScale(lid, gHighScoreText, 0.8, 0.8)
MGArcade_Sprite_SetScale(lid, gHighScoreText, 1.4, 1.4)
MGArcade_Sprite_SetScale(lid, gSP[iSprite].id, 1, 1)
MGArcade_Sprite_SetScale(lid, gStartText1, 0.8, 0.8)
MGArcade_Sprite_SetScale(lid, gStartText1, 1.4, 1.4)
MGArcade_Sprite_SetScale(lid, gTutText01, 1.1, 1.1)
MGArcade_Sprite_SetScale(lid, gTutText01, textSize, textSize)
MGArcade_Sprite_SetScale(lid, gTutText02, textSize, textSize)
MGArcade_Sprite_SetScale(lid, gTutText03, textSize, textSize)
MGArcade_Sprite_SetScale(lid, gTutText04, textSize, textSize)
MGArcade_Sprite_SetScale(lid, gTutText05, textSize, textSize)
MGArcade_Sprite_SetScale(lid, score.id, 0.8, 0.8)
MGArcade_Sprite_SetScale(lid, score.id, 1.4, 1.4)
MGArcade_Sprite_SetScale(lid, score.id2, 0.8, 0.8)
MGArcade_Sprite_SetScale(lid, score.id2, 1.4, 1.4)
MGArcade_Sprite_SetScale(lid, sid, 0.25 + scaleXTable[sid] * (1 + math.cos(frameCount)), 0.25 + scaleYTable[sid] * (1 + math.sin(frameCount)))
MGArcade_Sprite_SetScale(lid, sid, 1, 1)
MGArcade_Sprite_SetScale(lid, sid, scaleXTable[sid], scaleYTable[sid])
sub esp, 0x8
push esi
mov esi, dword ptr [0x20C8704]
push edi
mov edi, dword ptr [esp+0x14]
push 0x0
push edi
call LuaParam::GetInt
mov esi, dword ptr [esi+0x104]
add esp, 0x8
test esi, esi
jz 0xD
cmp dword ptr [esi], eax
jz 0x9
mov esi, dword ptr [esi+0x4]
test esi, esi
jnz 0xFFFFFFF7
push 0x1
push edi
call LuaParam::GetInt
lea eax, ptr [eax+eax*8]
shl eax, 0x4
push 0x2
push edi
lea esi, ptr [eax+esi*1+0x8]
call LuaParam::GetFloat
fstp dword ptr [esp+0x18], st
push 0x3
push edi
call LuaParam::GetFloat
fstp dword ptr [esp+0x24], st
fld st, dword ptr [esp+0x20]
add esp, 0x18
fstp dword ptr [esi], st
pop edi
fld st, dword ptr [esp+0x8]
xor eax, eax
fstp dword ptr [esi+0x4], st
pop esi
add esp, 0x8
ret
MGArcade_Sprite_SetScaleSpeed(lid, gSP[iSprite].id, -scaleSpeedVal, -scaleSpeedVal)
MGArcade_Sprite_SetScaleSpeed(lid, gSP[iSprite].id, 0, 0)
MGArcade_Sprite_SetScaleSpeed(lid, sid, -scaleSpeedVal, -scaleSpeedVal)
MGArcade_Sprite_SetScaleSpeed(lid, sid, scaleSpeedVal, scaleSpeedVal)
sub esp, 0x8
push esi
mov esi, dword ptr [0x20C8704]
push edi
mov edi, dword ptr [esp+0x14]
push 0x0
push edi
call LuaParam::GetInt
mov esi, dword ptr [esi+0x104]
add esp, 0x8
test esi, esi
jz 0xD
cmp dword ptr [esi], eax
jz 0x9
mov esi, dword ptr [esi+0x4]
test esi, esi
jnz 0xFFFFFFF7
push 0x1
push edi
call LuaParam::GetInt
lea eax, ptr [eax+eax*8]
shl eax, 0x4
push 0x2
push edi
lea esi, ptr [eax+esi*1+0x8]
call LuaParam::GetFloat
fstp dword ptr [esp+0x18], st
push 0x3
push edi
call LuaParam::GetFloat
fstp dword ptr [esp+0x24], st
fld st, dword ptr [esp+0x20]
add esp, 0x18
fstp dword ptr [esi+0x44], st
pop edi
fld st, dword ptr [esp+0x8]
xor eax, eax
fstp dword ptr [esi+0x48], st
pop esi
add esp, 0x8
ret
MGArcade_Sprite_SetSize(bgid, gDojo, gMainLayerW * 2, gMainLayerH * 2)
MGArcade_Sprite_SetSize(gBackDrop, gBackDrop01, gScreenX, gScreenY)
MGArcade_Sprite_SetSize(gBackDrop, gBackDrop03, 640, 256)
MGArcade_Sprite_SetSize(gBackDrop, gBackDrop04, 640, 256)
MGArcade_Sprite_SetSize(gBackDrop, gTerrain, 128, 64)
MGArcade_Sprite_SetSize(gGameOverLayer, gHighScoreText, 1, 1)
MGArcade_Sprite_SetSize(gGameOverLayer, gOverScreen, 128, 64)
MGArcade_Sprite_SetSize(gGameOverLayer, gOverScreen, 256, 64)
MGArcade_Sprite_SetSize(gGameOverLayer, score.id, 1, 1)
MGArcade_Sprite_SetSize(gGameOverLayer, score.id2, 1, 1)
MGArcade_Sprite_SetSize(gHUD, gAmmo, 24, 24)
MGArcade_Sprite_SetSize(gHUD, gLife, 32, 32)
MGArcade_Sprite_SetSize(gHUD, gScoreText, 0.1, 0.1)
MGArcade_Sprite_SetSize(gInfoLayer, gLifeSprites[i], 10, 10)
MGArcade_Sprite_SetSize(gInfoLayer, gScoreText, 0.1, 0.1)
MGArcade_Sprite_SetSize(gInfoLayer, gStaminaBar, 0, 10)
MGArcade_Sprite_SetSize(gInfoLayer, gStaminaBar, gPlayerStamina * 10 / gGameLevel, 10)
MGArcade_Sprite_SetSize(gInfoLayer, gStaminaBarBG, 100, 10)
MGArcade_Sprite_SetSize(gInstructScreen, gExitText, 1, 1)
MGArcade_Sprite_SetSize(gInstructScreen, gStartText1, 1, 1)
MGArcade_Sprite_SetSize(gInstructScreen, gTutSprite00, 495, 400)
MGArcade_Sprite_SetSize(gInstructScreen, gTutSprite00, 64, 32)
MGArcade_Sprite_SetSize(gInstructScreen, gTutSprite000, 550, 400)
MGArcade_Sprite_SetSize(gInstructScreen, gTutSprite01, 32, 32)
MGArcade_Sprite_SetSize(gInstructScreen, gTutSprite01, 64, 64)
MGArcade_Sprite_SetSize(gInstructScreen, gTutSprite02, 32, 32)
MGArcade_Sprite_SetSize(gInstructScreen, gTutSprite02, 64, 64)
MGArcade_Sprite_SetSize(gInstructScreen, gTutSprite03, 64, 64)
MGArcade_Sprite_SetSize(gInstructScreen, gTutSprite03, 96, 96)
MGArcade_Sprite_SetSize(gInstructScreen, gTutSprite04, 100, 32)
MGArcade_Sprite_SetSize(gInstructScreen, gTutSprite04, 32, 32)
MGArcade_Sprite_SetSize(gInstructScreen, gTutText00, 0.1, 0.1)
MGArcade_Sprite_SetSize(gInstructScreen, gTutText000, 0.1, 0.1)
MGArcade_Sprite_SetSize(gInstructScreen, gTutText01, 0.1, 0.1)
MGArcade_Sprite_SetSize(gInstructScreen, gTutText02, 0.1, 0.1)
MGArcade_Sprite_SetSize(gInstructScreen, gTutText03, 0.1, 0.1)
MGArcade_Sprite_SetSize(gInstructScreen, gTutText04, 0.1, 0.1)
MGArcade_Sprite_SetSize(gInstructScreen, gTutText05, 0.1, 0.1)
MGArcade_Sprite_SetSize(gLayer, ec_ho, 16, 32)
MGArcade_Sprite_SetSize(gLayer, echo.id, 16, 32)
MGArcade_Sprite_SetSize(gLayer, echo.id, echo.sizeX, echo.sizeY)
MGArcade_Sprite_SetSize(gLayer, gBanana, 32, 32)
MGArcade_Sprite_SetSize(gLayer, gBat, 64, 64)
MGArcade_Sprite_SetSize(gLayer, gClouds, 512, 10)
MGArcade_Sprite_SetSize(gLayer, gEagle, 128, 128)
MGArcade_Sprite_SetSize(gLayer, gGround, 512, 10)
MGArcade_Sprite_SetSize(gLayer, gHornet, 32, 32)
MGArcade_Sprite_SetSize(gLayer, gJungle, 512, 400)
MGArcade_Sprite_SetSize(gLayer, gMonkey, 64, 64)
MGArcade_Sprite_SetSize(gLayer, gNut, 32, 32)
MGArcade_Sprite_SetSize(gLayer, gPoo, 16, 16)
MGArcade_Sprite_SetSize(gLayer, gSalmon, 64, 16)
MGArcade_Sprite_SetSize(gLayer, gSpider, 32, 32)
MGArcade_Sprite_SetSize(gLayer, gSquirrel, 64, 32)
MGArcade_Sprite_SetSize(gLayer, gStinger, 16, 8)
MGArcade_Sprite_SetSize(gStartScreen, gExitText, 1, 1)
MGArcade_Sprite_SetSize(gStartScreen, gLoadScreen, 512, 400)
MGArcade_Sprite_SetSize(gStartScreen, gLoadScreen, gScreenX, gScreenY)
MGArcade_Sprite_SetSize(gStartScreen, gStartText, 1, 1)
MGArcade_Sprite_SetSize(introLayer, gExitText, 1, 1)
MGArcade_Sprite_SetSize(introLayer, gStartScreen, 640 - 128, 480 - 64)
MGArcade_Sprite_SetSize(introLayer, gStartText, 1, 1)
MGArcade_Sprite_SetSize(lid, gAngels[gAngelsCreated].id, gPlayerSize, gPlayerSize)
MGArcade_Sprite_SetSize(lid, gEnemySumos[iSprite].id, gCurrentSizes[gCurrentNoEnemies], gCurrentSizes[gCurrentNoEnemies])
MGArcade_Sprite_SetSize(lid, gExitText, 1, 1)
MGArcade_Sprite_SetSize(lid, gGameOverSprite, 256, 64)
MGArcade_Sprite_SetSize(lid, gHighScoreBKG, 256, 220)
MGArcade_Sprite_SetSize(lid, gHighScoreText, 1, 1)
MGArcade_Sprite_SetSize(lid, gPlayerShip, gPlayerSize, gPlayerSize)
MGArcade_Sprite_SetSize(lid, gSP[iSprite].id, gCurrentSizes[rNum], gCurrentSizes[rNum])
MGArcade_Sprite_SetSize(lid, gStartText1, 1, 1)
MGArcade_Sprite_SetSize(lid, gTutSprite00, 495, 400)
MGArcade_Sprite_SetSize(lid, gTutSprite01, 32, 32)
MGArcade_Sprite_SetSize(lid, gTutSprite02, 32, 32)
MGArcade_Sprite_SetSize(lid, gTutSprite03, 32, 32)
MGArcade_Sprite_SetSize(lid, gTutSprite04, 32, 32)
MGArcade_Sprite_SetSize(lid, gTutSprite05, 32, 32)
MGArcade_Sprite_SetSize(lid, gTutSprite06, 32, 32)
MGArcade_Sprite_SetSize(lid, gTutSprite07, 32, 32)
MGArcade_Sprite_SetSize(lid, gTutSprite08, 32, 32)
MGArcade_Sprite_SetSize(lid, gTutText01, 0.1, 0.1)
MGArcade_Sprite_SetSize(lid, gTutText02, 0.1, 0.1)
MGArcade_Sprite_SetSize(lid, gTutText03, 0.1, 0.1)
MGArcade_Sprite_SetSize(lid, gTutText04, 0.1, 0.1)
MGArcade_Sprite_SetSize(lid, gTutText05, 0.1, 0.1)
MGArcade_Sprite_SetSize(lid, score.id, 1, 1)
MGArcade_Sprite_SetSize(lid, score.id2, 1, 1)
MGArcade_Sprite_SetSize(lid, sid, sizeX, sizeY)
sub esp, 0x8
push esi
mov esi, dword ptr [esp+0x10]
push edi
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x10], st
push 0x3
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x1C], st
mov edi, dword ptr [0x20C8704]
push 0x0
push esi
call LuaParam::GetInt
mov edi, dword ptr [edi+0x104]
add esp, 0x18
test edi, edi
jz 0x11
lea esp, ptr [esp]
cmp dword ptr [edi], eax
jz 0x9
mov edi, dword ptr [edi+0x4]
test edi, edi
jnz 0xFFFFFFF7
push 0x1
push esi
call LuaParam::GetInt
fld st, dword ptr [esp+0x10]
lea eax, ptr [eax+eax*8]
shl eax, 0x4
lea eax, ptr [eax+edi*1+0x8]
fstp dword ptr [eax+0x8], st
push 0x0
fld st, dword ptr [esp+0x18]
push esi
fstp dword ptr [eax+0xC], st
mov edi, dword ptr [0x20C8704]
call LuaParam::GetInt
mov edi, dword ptr [edi+0x104]
add esp, 0x10
test edi, edi
jz 0xD
cmp dword ptr [edi], eax
jz 0x9
mov edi, dword ptr [edi+0x4]
test edi, edi
jnz 0xFFFFFFF7
push 0x1
push esi
call LuaParam::GetInt
fld st, dword ptr [esp+0x10]
fchs
lea ecx, ptr [eax+eax*8]
fld st, qword ptr [0x8FF1F8]
shl ecx, 0x4
fmul st(1), st
lea eax, ptr [ecx+edi*1+0x8]
fxch st, st(1)
push 0x0
push esi
fstp dword ptr [eax+0x10], st
fld st, dword ptr [esp+0x1C]
fchs
fmulp st(1), st
fstp dword ptr [eax+0x14], st
mov edi, dword ptr [0x20C8704]
call LuaParam::GetInt
mov edi, dword ptr [edi+0x104]
add esp, 0x10
test edi, edi
jz 0x11
lea esp, ptr [esp]
cmp dword ptr [edi], eax
jz 0x9
mov edi, dword ptr [edi+0x4]
test edi, edi
jnz 0xFFFFFFF7
push 0x1
push esi
call LuaParam::GetInt
fld st, dword ptr [esp+0x10]
lea edx, ptr [eax+eax*8]
shl edx, 0x4
lea eax, ptr [edx+edi*1+0x8]
fstp dword ptr [eax+0x30], st
add esp, 0x8
fld st, dword ptr [esp+0xC]
pop edi
fstp dword ptr [eax+0x34], st
xor eax, eax
pop esi
add esp, 0x8
ret
MGArcade_Sprite_SetText(gGameOverLayer, gHighScoreText, "ARCADE_HIGHSCORE")
MGArcade_Sprite_SetText(gGameOverLayer, score.id2, score.text)
MGArcade_Sprite_SetText(gHUD, gScoreText, "ARCADE_SCORE")
MGArcade_Sprite_SetText(gInfoLayer, gScoreText, "ARCADE_SSCORE")
MGArcade_Sprite_SetText(gInstructScreen, gExitText, "ARCADE_BTNEXIT")
MGArcade_Sprite_SetText(gInstructScreen, gStartText1, "ARCADE_BTNSTRT")
MGArcade_Sprite_SetText(gInstructScreen, gTutText00, "ARCADE_FENDINST")
MGArcade_Sprite_SetText(gInstructScreen, gTutText000, "ARCADE_FENDSHOOT")
MGArcade_Sprite_SetText(gInstructScreen, gTutText01, "ARCADE_FEND_I01")
MGArcade_Sprite_SetText(gInstructScreen, gTutText01, "ARCADE_FLININST")
MGArcade_Sprite_SetText(gInstructScreen, gTutText02, "ARCADE_FEND_I02")
MGArcade_Sprite_SetText(gInstructScreen, gTutText02, "ARCADE_FLNG_102")
MGArcade_Sprite_SetText(gInstructScreen, gTutText03, "ARCADE_FEND_I03")
MGArcade_Sprite_SetText(gInstructScreen, gTutText03, "ARCADE_FLNG_103")
MGArcade_Sprite_SetText(gInstructScreen, gTutText04, "ARCADE_FEND_I04")
MGArcade_Sprite_SetText(gInstructScreen, gTutText04, "ARCADE_FLNG_104")
MGArcade_Sprite_SetText(gInstructScreen, gTutText05, "ARCADE_FEND_I05")
MGArcade_Sprite_SetText(gInstructScreen, gTutText05, "ARCADE_FLNG_105")
MGArcade_Sprite_SetText(gStartScreen, gExitText, "ARCADE_BTNEXIT")
MGArcade_Sprite_SetText(gStartScreen, gStartText, "ARCADE_BTNSTRT")
MGArcade_Sprite_SetText(introLayer, gExitText, "ARCADE_BTNEXIT")
MGArcade_Sprite_SetText(introLayer, gStartText, "ARCADE_BTNSTRT")
MGArcade_Sprite_SetText(lid, gExitText, "ARCADE_BTNEXIT")
MGArcade_Sprite_SetText(lid, gHighScoreText, "ARCADE_HIGHSCORE")
MGArcade_Sprite_SetText(lid, gStartText1, "ARCADE_BTNSTRT")
MGArcade_Sprite_SetText(lid, gTutText01, "ARCADE_SUMO_I01")
MGArcade_Sprite_SetText(lid, gTutText02, "ARCADE_SUMO_I02")
MGArcade_Sprite_SetText(lid, gTutText03, "ARCADE_SUMO_I03")
MGArcade_Sprite_SetText(lid, gTutText04, "ARCADE_SUMO_I04")
MGArcade_Sprite_SetText(lid, gTutText05, "ARCADE_SUMO_I05")
MGArcade_Sprite_SetText(lid, score.id2, score.text)
push ebx
mov ebx, dword ptr [esp+0x8]
push esi
mov esi, dword ptr [0x20C8704]
push edi
push 0x0
push ebx
call LuaParam::GetInt
mov esi, dword ptr [esi+0x104]
add esp, 0x8
test esi, esi
jz 0xD
cmp dword ptr [esi], eax
jz 0x9
mov esi, dword ptr [esi+0x4]
test esi, esi
jnz 0xFFFFFFF7
push 0x1
push ebx
call LuaParam::GetInt
push 0x2
push ebx
mov edi, eax
call LuaParam::GetString
push 0x10
push eax
lea eax, ptr [edi+edi*8]
shl eax, 0x4
lea ecx, ptr [eax+esi*1+0x78]
push ecx
call 0x85C7D0
add esp, 0x1C
pop edi
pop esi
xor eax, eax
pop ebx
ret
MGArcade_Sprite_SetTextParam(gGameOverLayer, score.id2, ScoreParam, MinigameGetHighScore(1, i - 1))
MGArcade_Sprite_SetTextParam(gGameOverLayer, score.id2, ScoreParam, MinigameGetHighScore(2, i - 1))
MGArcade_Sprite_SetTextParam(gHUD, gScoreText, gScoreParam, gScore)
MGArcade_Sprite_SetTextParam(gInfoLayer, gScoreText, gScoreParam, gScore)
MGArcade_Sprite_SetTextParam(lid, score.id2, ScoreParam, MinigameGetHighScore(gHighScoreConst, i - 1))
push ecx
push ebx
push esi
mov esi, dword ptr [0x20C8704]
push edi
mov edi, dword ptr [esp+0x14]
push 0x0
push edi
call LuaParam::GetInt
mov esi, dword ptr [esi+0x104]
add esp, 0x8
test esi, esi
jz 0xD
cmp dword ptr [esi], eax
jz 0x9
mov esi, dword ptr [esi+0x4]
test esi, esi
jnz 0xFFFFFFF7
push 0x1
push edi
call LuaParam::GetInt
push 0x3
push edi
mov ebx, eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x1C], st
push 0x2
push edi
call LuaParam::GetInt
add esp, 0x18
cmp eax, 0x1
jnbe 0x13
fld st, dword ptr [esp+0xC]
lea ecx, ptr [ebx+ebx*8]
lea edx, ptr [eax+ecx*4]
fstp dword ptr [esi+edx*4+0x8C], st
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
MGArcade_Sprite_SetTextToScoreName(gGameOverLayer, score.id, 1, i - 1)
MGArcade_Sprite_SetTextToScoreName(gGameOverLayer, score.id, 2, i - 1)
MGArcade_Sprite_SetTextToScoreName(lid, score.id, gHighScoreConst, i - 1)
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword ptr [esp+0x18]
push edi
mov dword ptr [esp+0x14], 0xFFFFFFFF
call LuaParam::GetParamCount
add esp, 0x4
cmp eax, 0x5
jl 0x11
push 0x4
push edi
call LuaParam::GetInt
add esp, 0x8
mov dword ptr [esp+0x10], eax
mov esi, dword ptr [0x20C8704]
push 0x0
push edi
call LuaParam::GetInt
mov esi, dword ptr [esi+0x104]
add esp, 0x8
test esi, esi
jz 0x14
lea esp, ptr [esp]
cmp dword ptr [esi], eax
jz 0x9
mov esi, dword ptr [esi+0x4]
test esi, esi
jnz 0xFFFFFFF7
push 0x1
push edi
call LuaParam::GetInt
push 0x3
push edi
mov ebp, eax
call LuaParam::GetInt
mov ebx, eax
lea eax, ptr [ebp+ebp*8]
shl eax, 0x4
push 0x2
push edi
lea esi, ptr [eax+esi*1+0x8]
call LuaParam::GetInt
mov cl, byte ptr [esp+0x28]
add esp, 0x18
pop edi
mov byte ptr [esi+0x8C], al
mov byte ptr [esi+0x8D], bl
mov byte ptr [esi+0x8E], cl
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
MGArcade_Sprite_SetTexture(bgid, gDojo, sDojo)
MGArcade_Sprite_SetTexture(gBackDrop, gBackDrop01, tex_sprite0)
MGArcade_Sprite_SetTexture(gBackDrop, gBackDrop03, terra_sprite1)
MGArcade_Sprite_SetTexture(gBackDrop, gBackDrop04, terra_sprite1)
MGArcade_Sprite_SetTexture(gBackDrop, gTerrain, terra_sprite2)
MGArcade_Sprite_SetTexture(gBackDrop, gTerrain, terra_sprite3)
MGArcade_Sprite_SetTexture(gBackDrop, land.id, terra_sprite2)
MGArcade_Sprite_SetTexture(gBackDrop, land.id, terra_sprite3)
MGArcade_Sprite_SetTexture(gGameOverLayer, gOverScreen, overScreen)
MGArcade_Sprite_SetTexture(gHUD, gAmmo, tex_sprite1)
MGArcade_Sprite_SetTexture(gHUD, gLife, tex_sprite1)
MGArcade_Sprite_SetTexture(gInfoLayer, gLifeSprites[i], sSumoF)
MGArcade_Sprite_SetTexture(gInstructScreen, gTutSprite00, gSquirrelSpriteD)
MGArcade_Sprite_SetTexture(gInstructScreen, gTutSprite01, gHornetAttack_texture)
MGArcade_Sprite_SetTexture(gInstructScreen, gTutSprite01, gMonkeySprite0)
MGArcade_Sprite_SetTexture(gInstructScreen, gTutSprite02, gBananaSprite)
MGArcade_Sprite_SetTexture(gInstructScreen, gTutSprite02, gBatSpriteU)
MGArcade_Sprite_SetTexture(gInstructScreen, gTutSprite03, gEagleMd)
MGArcade_Sprite_SetTexture(gInstructScreen, gTutSprite03, gSpiderSprite0)
MGArcade_Sprite_SetTexture(gInstructScreen, gTutSprite04, gSalmonSprite)
MGArcade_Sprite_SetTexture(gInstructScreen, gTutSprite04, poopsprite)
MGArcade_Sprite_SetTexture(gLayer, ec_ho, tex_sprite1)
MGArcade_Sprite_SetTexture(gLayer, gBanana, tex_sprite1)
MGArcade_Sprite_SetTexture(gLayer, gBat, gBatSpriteD)
MGArcade_Sprite_SetTexture(gLayer, gBat, gBatSpriteM)
MGArcade_Sprite_SetTexture(gLayer, gBat, gBatSpriteU)
MGArcade_Sprite_SetTexture(gLayer, gEagle, gCurrentEagleState)
MGArcade_Sprite_SetTexture(gLayer, gEagle, gEagleDd)
MGArcade_Sprite_SetTexture(gLayer, gEagle, gEagleMd)
MGArcade_Sprite_SetTexture(gLayer, gHornet, gHornetUp_texture)
MGArcade_Sprite_SetTexture(gLayer, gJungle, tex_sprite0)
MGArcade_Sprite_SetTexture(gLayer, gMonkey, gMonkeyCurrentFrame)
MGArcade_Sprite_SetTexture(gLayer, gMonkey, gMonkeyDead)
MGArcade_Sprite_SetTexture(gLayer, gNut, nut_sprite)
MGArcade_Sprite_SetTexture(gLayer, gPoo, tex_sprite1)
MGArcade_Sprite_SetTexture(gLayer, gSalmon, gSalmonSprite)
MGArcade_Sprite_SetTexture(gLayer, gSpider, spider.CurrentFrame)
MGArcade_Sprite_SetTexture(gLayer, gSquirrel, gSquirrelFrame)
MGArcade_Sprite_SetTexture(gLayer, gSquirrel, gSquirrelSpriteDead)
MGArcade_Sprite_SetTexture(gLayer, gStinger, tex_sprite1)
MGArcade_Sprite_SetTexture(gLayer, hornet.id, gHornetAttack_texture)
MGArcade_Sprite_SetTexture(gLayer, hornet.id, gHornetDn_texture)
MGArcade_Sprite_SetTexture(gLayer, hornet.id, gHornetUp_texture)
MGArcade_Sprite_SetTexture(gLayer, spider.id, spider.CurrentFrame)
MGArcade_Sprite_SetTexture(gStartScreen, gLoadScreen, loadingScreen)
MGArcade_Sprite_SetTexture(introLayer, gStartScreen, sStartScreen)
MGArcade_Sprite_SetTexture(lid, gAngels[gAngelsCreated].id, sSumoAngel)
MGArcade_Sprite_SetTexture(lid, gAngels[gAngelsCreated].id, sSumoAngel2)
MGArcade_Sprite_SetTexture(lid, gEnemySumos[iSprite].id, sESumoB)
MGArcade_Sprite_SetTexture(lid, gEnemySumos[iSprite].id, sESumoB2)
MGArcade_Sprite_SetTexture(lid, gEnemySumos[iSprite].id, sESumoF)
MGArcade_Sprite_SetTexture(lid, gEnemySumos[iSprite].id, sESumoF2)
MGArcade_Sprite_SetTexture(lid, gEnemySumos[iSprite].id, sESumoL)
MGArcade_Sprite_SetTexture(lid, gEnemySumos[iSprite].id, sESumoL2)
MGArcade_Sprite_SetTexture(lid, gEnemySumos[iSprite].id, sESumoR)
MGArcade_Sprite_SetTexture(lid, gEnemySumos[iSprite].id, sESumoR2)
MGArcade_Sprite_SetTexture(lid, gGameOverSprite, sGameOver)
MGArcade_Sprite_SetTexture(lid, gPlayerShip, sSumoB)
MGArcade_Sprite_SetTexture(lid, gPlayerShip, sSumoF)
MGArcade_Sprite_SetTexture(lid, gPlayerShip, sSumoL)
MGArcade_Sprite_SetTexture(lid, gPlayerShip, sSumoR)
MGArcade_Sprite_SetTexture(lid, gSP[iSprite].id, texture)
MGArcade_Sprite_SetTexture(lid, gTutSprite01, sESumoF)
MGArcade_Sprite_SetTexture(lid, gTutSprite02, sApple)
MGArcade_Sprite_SetTexture(lid, gTutSprite03, sFish)
MGArcade_Sprite_SetTexture(lid, gTutSprite04, sRice)
MGArcade_Sprite_SetTexture(lid, gTutSprite05, sAppleR)
MGArcade_Sprite_SetTexture(lid, gTutSprite06, sFishR)
MGArcade_Sprite_SetTexture(lid, gTutSprite07, sRiceR)
MGArcade_Sprite_SetTexture(lid, gTutSprite08, sBlowFish)
MGArcade_Sprite_SetTexture(lid, sid, aTexture)
MGArcade_Sprite_SetTexture(lid, sid, gMonkeyCurrentFrame)
MGArcade_Sprite_SetTexture(lid, sid, gSquirrelFrame)
MGArcade_Sprite_SetTexture(lid, sid, sprite1)
MGArcade_Sprite_SetTexture(lid, sid, sprite2)
MGArcade_Sprite_SetTexture(lid, sId.id, sESumoB)
MGArcade_Sprite_SetTexture(lid, sId.id, sESumoB2)
MGArcade_Sprite_SetTexture(lid, sId.id, sESumoF)
MGArcade_Sprite_SetTexture(lid, sId.id, sESumoF2)
MGArcade_Sprite_SetTexture(lid, sId.id, sESumoL)
MGArcade_Sprite_SetTexture(lid, sId.id, sESumoL2)
MGArcade_Sprite_SetTexture(lid, sId.id, sESumoR)
MGArcade_Sprite_SetTexture(lid, sId.id, sESumoR2)
push ebx
mov ebx, dword ptr [esp+0x8]
push esi
mov esi, dword ptr [0x20C8704]
push edi
push 0x0
push ebx
call LuaParam::GetInt
mov esi, dword ptr [esi+0x104]
add esp, 0x8
test esi, esi
jz 0xD
cmp dword ptr [esi], eax
jz 0x9
mov esi, dword ptr [esi+0x4]
test esi, esi
jnz 0xFFFFFFF7
push 0x1
push ebx
call LuaParam::GetInt
push 0x2
push ebx
mov edi, eax
call LuaParam::GetInt
add esp, 0x10
lea ecx, ptr [edi+edi*8]
shl ecx, 0x4
pop edi
mov dword ptr [ecx+esi*1+0x58], eax
pop esi
xor eax, eax
pop ebx
ret
-- never used
push esi
mov esi, dword ptr [0x20C8704]
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetInt
mov esi, dword ptr [esi+0x104]
add esp, 0x8
test esi, esi
jz 0xD
cmp dword ptr [esi], eax
jz 0x9
mov esi, dword ptr [esi+0x4]
test esi, esi
jnz 0xFFFFFFF7
push 0x1
push edi
call LuaParam::GetInt
lea eax, ptr [eax+eax*8]
shl eax, 0x4
lea ecx, ptr [eax+esi*1+0x64]
push ecx
push 0x2
push edi
call 0x5D9FD0
add esp, 0x14
pop edi
xor eax, eax
pop esi
ret
MGArcade_Sprite_SetVel(clid, csid, -vx1 * 2, -vy1 * 2)
MGArcade_Sprite_SetVel(clid, csid, math.random(-30, 30), math.random(-30, 30))
MGArcade_Sprite_SetVel(gBackDrop, gBackDrop03, -15, 0)
MGArcade_Sprite_SetVel(gBackDrop, gBackDrop04, -15, 0)
MGArcade_Sprite_SetVel(gBackDrop, gBackDrop04, 0, 0)
MGArcade_Sprite_SetVel(gBackDrop, gTerrain, -28, 0)
MGArcade_Sprite_SetVel(gBackDrop, gTerrain, -38, 0)
MGArcade_Sprite_SetVel(gBackDrop, gTerrain, -45, 0)
MGArcade_Sprite_SetVel(gBackDrop, gTerrain, -58, 0)
MGArcade_Sprite_SetVel(gBackDrop, gTerrain, -60, 0)
MGArcade_Sprite_SetVel(gBackDrop, gTerrain, 0, 0)
MGArcade_Sprite_SetVel(gBackDrop, land.id, -28, 0)
MGArcade_Sprite_SetVel(gBackDrop, land.id, -38, 0)
MGArcade_Sprite_SetVel(gBackDrop, land.id, -45, 0)
MGArcade_Sprite_SetVel(gBackDrop, land.id, -58, 0)
MGArcade_Sprite_SetVel(gBackDrop, land.id, -60, 0)
MGArcade_Sprite_SetVel(gBackDrop, land.id, -75, 0)
MGArcade_Sprite_SetVel(gHUD, gAmmo, 0, 0)
MGArcade_Sprite_SetVel(gHUD, gLife, 0, 0)
MGArcade_Sprite_SetVel(gLayer, csid, 0, 40)
MGArcade_Sprite_SetVel(gLayer, ec_ho, 0, 0)
MGArcade_Sprite_SetVel(gLayer, echo.id, -150, 0)
MGArcade_Sprite_SetVel(gLayer, echo.id, 0, 0)
MGArcade_Sprite_SetVel(gLayer, gBanana, 0, 0)
MGArcade_Sprite_SetVel(gLayer, gBat, -15, 45)
MGArcade_Sprite_SetVel(gLayer, gBat, -25, 0)
MGArcade_Sprite_SetVel(gLayer, gBat, 0, 0)
MGArcade_Sprite_SetVel(gLayer, gBat, batVelX, -30)
MGArcade_Sprite_SetVel(gLayer, gBat, batVelX, 0)
MGArcade_Sprite_SetVel(gLayer, gBat, batVelX, 30)
MGArcade_Sprite_SetVel(gLayer, gClouds, 0, 0)
MGArcade_Sprite_SetVel(gLayer, gEagle, -25, 0)
MGArcade_Sprite_SetVel(gLayer, gEagle, -25, 25)
MGArcade_Sprite_SetVel(gLayer, gEagle, 0, 0)
MGArcade_Sprite_SetVel(gLayer, gGround, 0, 0)
MGArcade_Sprite_SetVel(gLayer, gHornet, 0, 0)
MGArcade_Sprite_SetVel(gLayer, gMonkey, 0, 0)
MGArcade_Sprite_SetVel(gLayer, gNut, 0, 0)
MGArcade_Sprite_SetVel(gLayer, gPoo, 0, 0)
MGArcade_Sprite_SetVel(gLayer, gSalmon, -25, 0)
MGArcade_Sprite_SetVel(gLayer, gSalmon, -25, 45)
MGArcade_Sprite_SetVel(gLayer, gSalmon, 0, 0)
MGArcade_Sprite_SetVel(gLayer, gSalmon, ev, 0)
MGArcade_Sprite_SetVel(gLayer, gSpider, 0, 0)
MGArcade_Sprite_SetVel(gLayer, gSquirrel, 0, 0)
MGArcade_Sprite_SetVel(gLayer, gSquirrel, 0, 185)
MGArcade_Sprite_SetVel(gLayer, gSquirrel, 0, 25)
MGArcade_Sprite_SetVel(gLayer, gStinger, 0, 0)
MGArcade_Sprite_SetVel(gLayer, hornet.id, -5, 45)
MGArcade_Sprite_SetVel(gLayer, hornet.id, 0, 0)
MGArcade_Sprite_SetVel(gLayer, hornet.id, velx, vely)
MGArcade_Sprite_SetVel(gLayer, nut.id, 0, 0)
MGArcade_Sprite_SetVel(gLayer, nut.id, 300, 0)
MGArcade_Sprite_SetVel(gLayer, poo.id, 0, -110)
MGArcade_Sprite_SetVel(gLayer, sid, 0, 0)
MGArcade_Sprite_SetVel(gLayer, spider.id, -50, 0)
MGArcade_Sprite_SetVel(gLayer, spider.id, 0, 0)
MGArcade_Sprite_SetVel(gLayer, spider.id, 0, spiderVel)
MGArcade_Sprite_SetVel(gLayer, spider.id, 50, 0)
MGArcade_Sprite_SetVel(gLayer, stinger.id, -200, 0)
MGArcade_Sprite_SetVel(gLayer, stinger.id, 0, 0)
MGArcade_Sprite_SetVel(lid, gAngels[gAngelsCreated].id, 0, -50)
MGArcade_Sprite_SetVel(lid, gEnemySumos[iSprite].id, vx, vy)
MGArcade_Sprite_SetVel(lid, gPlayerShip, 0, 0)
MGArcade_Sprite_SetVel(lid, gPlayerShip, svelx, svely)
MGArcade_Sprite_SetVel(lid, gSP[iSprite].id, vx, vy)
MGArcade_Sprite_SetVel(lid, sid, -140, 0)
MGArcade_Sprite_SetVel(lid, sid, -svelx, svely)
MGArcade_Sprite_SetVel(lid, sid, 0, 0)
MGArcade_Sprite_SetVel(lid, sid, 140, 0)
MGArcade_Sprite_SetVel(lid, sid, gMoveX, gMoveY)
MGArcade_Sprite_SetVel(lid, sid, math.random(-30, 30), math.random(-30, 30))
MGArcade_Sprite_SetVel(lid, sid, SalmonVelX, -50)
MGArcade_Sprite_SetVel(lid, sid, SalmonVelX, 0)
MGArcade_Sprite_SetVel(lid, sid, SalmonVelX, 50)
MGArcade_Sprite_SetVel(lid, sid, svelx, -svely)
sub esp, 0x8
push esi
mov esi, dword ptr [0x20C8704]
push edi
mov edi, dword ptr [esp+0x14]
push 0x0
push edi
call LuaParam::GetInt
mov esi, dword ptr [esi+0x104]
add esp, 0x8
test esi, esi
jz 0xD
cmp dword ptr [esi], eax
jz 0x9
mov esi, dword ptr [esi+0x4]
test esi, esi
jnz 0xFFFFFFF7
push 0x1
push edi
call LuaParam::GetInt
lea eax, ptr [eax+eax*8]
shl eax, 0x4
push 0x2
push edi
lea esi, ptr [eax+esi*1+0x8]
call LuaParam::GetFloat
fstp dword ptr [esp+0x18], st
push 0x3
push edi
call LuaParam::GetFloat
fstp dword ptr [esp+0x24], st
fld st, dword ptr [esp+0x20]
add esp, 0x18
fstp dword ptr [esi+0x20], st
pop edi
fld st, dword ptr [esp+0x8]
xor eax, eax
fstp dword ptr [esi+0x24], st
pop esi
add esp, 0x8
ret
MGArcade_Sprite_SetVisible(bgid, gDojo, true)
MGArcade_Sprite_SetVisible(gBackDrop, gBackDrop01, true)
MGArcade_Sprite_SetVisible(gBackDrop, gBackDrop03, true)
MGArcade_Sprite_SetVisible(gBackDrop, gBackDrop04, true)
MGArcade_Sprite_SetVisible(gBackDrop, gTerrain, true)
MGArcade_Sprite_SetVisible(gGameOverLayer, gHighScoreText, true)
MGArcade_Sprite_SetVisible(gGameOverLayer, gOverScreen, false)
MGArcade_Sprite_SetVisible(gGameOverLayer, gOverScreen, true)
MGArcade_Sprite_SetVisible(gGameOverLayer, score.id, true)
MGArcade_Sprite_SetVisible(gGameOverLayer, score.id2, true)
MGArcade_Sprite_SetVisible(gGameOverLayer, tblHS[flashscore].id, false)
MGArcade_Sprite_SetVisible(gGameOverLayer, tblHS[flashscore].id, true)
MGArcade_Sprite_SetVisible(gGameOverLayer, tblHS[flashscore].id2, false)
MGArcade_Sprite_SetVisible(gGameOverLayer, tblHS[flashscore].id2, true)
MGArcade_Sprite_SetVisible(gHUD, gAmmo, true)
MGArcade_Sprite_SetVisible(gHUD, gLife, true)
MGArcade_Sprite_SetVisible(gHUD, gScoreText, true)
MGArcade_Sprite_SetVisible(gHUD, tblAmmo[j].id, false)
MGArcade_Sprite_SetVisible(gHUD, tblAmmo[j].id, true)
MGArcade_Sprite_SetVisible(gHUD, tblLives[j].id, false)
MGArcade_Sprite_SetVisible(gInfoLayer, gLifeSprites[gPlayerLives], false)
MGArcade_Sprite_SetVisible(gInfoLayer, gLifeSprites[i], true)
MGArcade_Sprite_SetVisible(gInfoLayer, gScoreText, true)
MGArcade_Sprite_SetVisible(gInfoLayer, gStaminaBar, true)
MGArcade_Sprite_SetVisible(gInfoLayer, gStaminaBarBG, true)
MGArcade_Sprite_SetVisible(gInstructScreen, gExitText, false)
MGArcade_Sprite_SetVisible(gInstructScreen, gExitText, true)
MGArcade_Sprite_SetVisible(gInstructScreen, gInstructScreen01, false)
MGArcade_Sprite_SetVisible(gInstructScreen, gInstructScreen02, false)
MGArcade_Sprite_SetVisible(gInstructScreen, gStartText1, false)
MGArcade_Sprite_SetVisible(gInstructScreen, gStartText1, true)
MGArcade_Sprite_SetVisible(gInstructScreen, gTutSprite00, false)
MGArcade_Sprite_SetVisible(gInstructScreen, gTutSprite00, true)
MGArcade_Sprite_SetVisible(gInstructScreen, gTutSprite000, false)
MGArcade_Sprite_SetVisible(gInstructScreen, gTutSprite000, true)
MGArcade_Sprite_SetVisible(gInstructScreen, gTutSprite01, false)
MGArcade_Sprite_SetVisible(gInstructScreen, gTutSprite01, true)
MGArcade_Sprite_SetVisible(gInstructScreen, gTutSprite02, false)
MGArcade_Sprite_SetVisible(gInstructScreen, gTutSprite02, true)
MGArcade_Sprite_SetVisible(gInstructScreen, gTutSprite03, false)
MGArcade_Sprite_SetVisible(gInstructScreen, gTutSprite03, true)
MGArcade_Sprite_SetVisible(gInstructScreen, gTutSprite04, false)
MGArcade_Sprite_SetVisible(gInstructScreen, gTutSprite04, true)
MGArcade_Sprite_SetVisible(gInstructScreen, gTutText00, false)
MGArcade_Sprite_SetVisible(gInstructScreen, gTutText00, true)
MGArcade_Sprite_SetVisible(gInstructScreen, gTutText000, false)
MGArcade_Sprite_SetVisible(gInstructScreen, gTutText000, true)
MGArcade_Sprite_SetVisible(gInstructScreen, gTutText01, false)
MGArcade_Sprite_SetVisible(gInstructScreen, gTutText01, true)
MGArcade_Sprite_SetVisible(gInstructScreen, gTutText02, false)
MGArcade_Sprite_SetVisible(gInstructScreen, gTutText02, true)
MGArcade_Sprite_SetVisible(gInstructScreen, gTutText03, false)
MGArcade_Sprite_SetVisible(gInstructScreen, gTutText03, true)
MGArcade_Sprite_SetVisible(gInstructScreen, gTutText04, false)
MGArcade_Sprite_SetVisible(gInstructScreen, gTutText04, true)
MGArcade_Sprite_SetVisible(gInstructScreen, gTutText05, false)
MGArcade_Sprite_SetVisible(gInstructScreen, gTutText05, true)
MGArcade_Sprite_SetVisible(gLayer, ec_ho, true)
MGArcade_Sprite_SetVisible(gLayer, gBanana, true)
MGArcade_Sprite_SetVisible(gLayer, gBat, true)
MGArcade_Sprite_SetVisible(gLayer, gClouds, false)
MGArcade_Sprite_SetVisible(gLayer, gEagle, false)
MGArcade_Sprite_SetVisible(gLayer, gEagle, true)
MGArcade_Sprite_SetVisible(gLayer, gGround, false)
MGArcade_Sprite_SetVisible(gLayer, gHornet, true)
MGArcade_Sprite_SetVisible(gLayer, gJungle, true)
MGArcade_Sprite_SetVisible(gLayer, gMonkey, false)
MGArcade_Sprite_SetVisible(gLayer, gMonkey, true)
MGArcade_Sprite_SetVisible(gLayer, gNut, true)
MGArcade_Sprite_SetVisible(gLayer, gPoo, true)
MGArcade_Sprite_SetVisible(gLayer, gSalmon, false)
MGArcade_Sprite_SetVisible(gLayer, gSalmon, true)
MGArcade_Sprite_SetVisible(gLayer, gSpider, true)
MGArcade_Sprite_SetVisible(gLayer, gSquirrel, false)
MGArcade_Sprite_SetVisible(gLayer, gSquirrel, true)
MGArcade_Sprite_SetVisible(gLayer, gStinger, true)
MGArcade_Sprite_SetVisible(gStartScreen, gExitText, true)
MGArcade_Sprite_SetVisible(gStartScreen, gLoadScreen, false)
MGArcade_Sprite_SetVisible(gStartScreen, gLoadScreen, true)
MGArcade_Sprite_SetVisible(gStartScreen, gStartText, true)
MGArcade_Sprite_SetVisible(introLayer, gExitText, true)
MGArcade_Sprite_SetVisible(introLayer, gStartScreen, false)
MGArcade_Sprite_SetVisible(introLayer, gStartScreen, true)
MGArcade_Sprite_SetVisible(introLayer, gStartText, true)
MGArcade_Sprite_SetVisible(lid, gAngels[gAngelsCreated].id, true)
MGArcade_Sprite_SetVisible(lid, gEnemySumos[iSprite].id, true)
MGArcade_Sprite_SetVisible(lid, gExitText, false)
MGArcade_Sprite_SetVisible(lid, gExitText, true)
MGArcade_Sprite_SetVisible(lid, gGameOverSprite, false)
MGArcade_Sprite_SetVisible(lid, gGameOverSprite, true)
MGArcade_Sprite_SetVisible(lid, gHighScoreBKG, true)
MGArcade_Sprite_SetVisible(lid, gHighScoreText, true)
MGArcade_Sprite_SetVisible(lid, gPlayerShip, false)
MGArcade_Sprite_SetVisible(lid, gPlayerShip, gBlinkColor)
MGArcade_Sprite_SetVisible(lid, gPlayerShip, true)
MGArcade_Sprite_SetVisible(lid, gSP[iSprite].id, true)
MGArcade_Sprite_SetVisible(lid, gStartText1, false)
MGArcade_Sprite_SetVisible(lid, gStartText1, true)
MGArcade_Sprite_SetVisible(lid, gTutSprite00, false)
MGArcade_Sprite_SetVisible(lid, gTutSprite00, true)
MGArcade_Sprite_SetVisible(lid, gTutSprite01, false)
MGArcade_Sprite_SetVisible(lid, gTutSprite01, true)
MGArcade_Sprite_SetVisible(lid, gTutSprite02, false)
MGArcade_Sprite_SetVisible(lid, gTutSprite02, true)
MGArcade_Sprite_SetVisible(lid, gTutSprite03, false)
MGArcade_Sprite_SetVisible(lid, gTutSprite03, true)
MGArcade_Sprite_SetVisible(lid, gTutSprite04, false)
MGArcade_Sprite_SetVisible(lid, gTutSprite04, true)
MGArcade_Sprite_SetVisible(lid, gTutSprite05, false)
MGArcade_Sprite_SetVisible(lid, gTutSprite05, true)
MGArcade_Sprite_SetVisible(lid, gTutSprite06, false)
MGArcade_Sprite_SetVisible(lid, gTutSprite06, true)
MGArcade_Sprite_SetVisible(lid, gTutSprite07, false)
MGArcade_Sprite_SetVisible(lid, gTutSprite07, true)
MGArcade_Sprite_SetVisible(lid, gTutSprite08, false)
MGArcade_Sprite_SetVisible(lid, gTutSprite08, true)
MGArcade_Sprite_SetVisible(lid, gTutText01, false)
MGArcade_Sprite_SetVisible(lid, gTutText01, true)
MGArcade_Sprite_SetVisible(lid, gTutText02, false)
MGArcade_Sprite_SetVisible(lid, gTutText02, true)
MGArcade_Sprite_SetVisible(lid, gTutText03, false)
MGArcade_Sprite_SetVisible(lid, gTutText03, true)
MGArcade_Sprite_SetVisible(lid, gTutText04, false)
MGArcade_Sprite_SetVisible(lid, gTutText04, true)
MGArcade_Sprite_SetVisible(lid, gTutText05, false)
MGArcade_Sprite_SetVisible(lid, gTutText05, true)
MGArcade_Sprite_SetVisible(lid, score.id, true)
MGArcade_Sprite_SetVisible(lid, score.id2, true)
MGArcade_Sprite_SetVisible(lid, sid, false)
MGArcade_Sprite_SetVisible(lid, sid, true)
MGArcade_Sprite_SetVisible(lid, tblHS[flashscore].id, false)
MGArcade_Sprite_SetVisible(lid, tblHS[flashscore].id, true)
push ebx
mov ebx, dword ptr [esp+0x8]
push esi
mov esi, dword ptr [0x20C8704]
push edi
push 0x0
push ebx
call LuaParam::GetInt
mov esi, dword ptr [esi+0x104]
add esp, 0x8
test esi, esi
jz 0xD
cmp dword ptr [esi], eax
jz 0x9
mov esi, dword ptr [esi+0x4]
test esi, esi
jnz 0xFFFFFFF7
push 0x1
push ebx
call LuaParam::GetInt
push 0x2
push ebx
mov edi, eax
call LuaParam::GetBool
add esp, 0x10
lea ecx, ptr [edi+edi*8]
shl ecx, 0x4
pop edi
mov byte ptr [ecx+esi*1+0x5C], al
pop esi
xor eax, eax
pop ebx
ret
-- never used
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push 0x0
push esi
call LuaParam::GetFloat
fabs
fstp dword ptr [esp+0xC], st
add esp, 0x8
fld st, dword ptr [esp+0x4]
fstp dword ptr [esp+0x4], st
fld st, dword ptr [esp+0x4]
call 0x85C500
fstp dword ptr [esp+0x4], st
fld st, dword ptr [esp+0x4]
push ecx
fstp dword ptr [esp], st
push esi
call LuaParam::PushFloat
add esp, 0x8
mov eax, 0x1
pop esi
pop ecx
ret
-- never used
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push 0x0
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0xC], st
fld st, dword ptr [esp+0xC]
add esp, 0x8
call 0x85C600
fstp dword ptr [esp+0x4], st
fld st, dword ptr [esp+0x4]
push ecx
fstp dword ptr [esp], st
push esi
call LuaParam::PushFloat
add esp, 0x8
mov eax, 0x1
pop esi
pop ecx
ret
local failureCode = MGCA_GetFailureCode()
mov ecx, dword ptr [0x20C8704]
call 0x6DA000
push eax
mov eax, dword ptr [esp+0x8]
push eax
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
ret
gLivesLeft = MGCA_GetLives()
mov eax, dword ptr [0x20C8704]
mov ecx, dword ptr [eax+0x454]
mov edx, dword ptr [esp+0x4]
push ecx
push edx
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
ret
MGCA_PreInstanceEnemy(iEnemy.eType, iEnemy.x, iEnemy.y, iEnemy.direction)
sub esp, 0x14
push esi
mov esi, dword ptr [esp+0x1C]
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x8
cmp eax, 0x6
mov byte ptr [esp+0x4], 0x1
mov dword ptr [esp+0x8], eax
jnbe 0x76
jmp dword ptr [eax*4+0x6E347C]
push 0x1
push esi
call LuaParam::GetInt
push 0x2
push esi
mov dword ptr [esp+0x1C], eax
call LuaParam::GetInt
push 0x3
push esi
mov dword ptr [esp+0x28], eax
call LuaParam::GetInt
add esp, 0x18
mov dword ptr [esp+0x14], eax
jmp 0x46
push 0x1
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x14], st
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x20], st
push 0x3
push esi
call LuaParam::GetInt
add esp, 0x18
mov dword ptr [esp+0x14], eax
jmp 0x1D
push 0x1
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x14], st
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x20], st
add esp, 0x10
mov ecx, dword ptr [0x20C8704]
lea eax, ptr [esp+0x4]
push eax
call 0x6D9FB0
xor eax, eax
pop esi
add esp, 0x14
ret
-- never used
sub esp, 0x14
push esi
mov esi, dword ptr [esp+0x1C]
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x8
cmp eax, 0x3
mov byte ptr [esp+0x4], 0x0
mov dword ptr [esp+0x8], eax
jnbe 0x4A
jmp dword ptr [eax*4+0x6E37C0]
push 0x1
push esi
call LuaParam::GetInt
push 0x2
push esi
mov dword ptr [esp+0x1C], eax
call LuaParam::GetInt
mov dword ptr [esp+0x20], eax
jmp 0x1A
push 0x1
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x14], st
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x20], st
push 0x3
push esi
call LuaParam::GetInt
mov dword ptr [esp+0x2C], eax
add esp, 0x18
mov ecx, dword ptr [0x20C8704]
lea eax, ptr [esp+0x4]
push eax
call 0x6D9FB0
xor eax, eax
pop esi
add esp, 0x14
ret
MGCA_SetCompletionThreshold(gClassSettings.completion)
push ecx
mov eax, dword ptr [esp+0x8]
push 0x0
push eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x8], st
fld st, dword ptr [esp+0x8]
mov ecx, dword ptr [0x20C8704]
add esp, 0x4
fstp dword ptr [esp], st
call 0x6D9D70
xor eax, eax
pop ecx
ret
-- never used
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetInt
mov ecx, dword ptr [0x20C8704]
add esp, 0x8
push eax
call 0x6D9FA0
xor eax, eax
ret
-- never used
push esi
mov esi, dword ptr [esp+0x8]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetInt
mov ecx, dword ptr [0x20C8704]
add esp, 0x10
push eax
push edi
call 0x6D9E00
pop edi
xor eax, eax
pop esi
ret
MGCA_SetEnemyInitialPeriod(i - 1, gClassSettings.enemyInitialPeriod[i])
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x18], st
fld st, dword ptr [esp+0x18]
mov ecx, dword ptr [0x20C8704]
add esp, 0xC
fstp dword ptr [esp], st
push edi
call 0x6D9DC0
pop edi
xor eax, eax
pop esi
pop ecx
ret
MGCA_SetEnemyInstanceMax(i - 1, gClassSettings.enemyInstanceMax[i])
push esi
mov esi, dword ptr [esp+0x8]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetInt
mov ecx, dword ptr [0x20C8704]
add esp, 0x10
push eax
push edi
call 0x6D9E20
pop edi
xor eax, eax
pop esi
ret
MGCA_SetEnemyPeriod(i - 1, gClassSettings.enemyPeriod[i])
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x18], st
fld st, dword ptr [esp+0x18]
mov ecx, dword ptr [0x20C8704]
add esp, 0xC
fstp dword ptr [esp], st
push edi
call 0x6D9DE0
pop edi
xor eax, eax
pop esi
pop ecx
ret
MGCA_SetEnemySpeed(i - 1, gClassSettings.enemySpeed[i])
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x18], st
fld st, dword ptr [esp+0x18]
mov ecx, dword ptr [0x20C8704]
add esp, 0xC
fstp dword ptr [esp], st
push edi
call 0x6D9DA0
pop edi
xor eax, eax
pop esi
pop ecx
ret
MGCA_SetEnemyTotalMax(gClassSettings.maxEnemies)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetInt
mov ecx, dword ptr [0x20C8704]
add esp, 0x8
push eax
call 0x6D9E40
xor eax, eax
ret
MGCA_SetExploderDebrisCount(gClassSettings.exploderDebrisCount)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetInt
mov ecx, dword ptr [0x20C8704]
add esp, 0x8
push eax
call 0x6D9E60
xor eax, eax
ret
MGCA_SetExploderDebrisSpeed(gClassSettings.exploderDebrisSpeed)
push ecx
mov eax, dword ptr [esp+0x8]
push 0x0
push eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x8], st
fld st, dword ptr [esp+0x8]
mov ecx, dword ptr [0x20C8704]
add esp, 0x4
fstp dword ptr [esp], st
call 0x6D9E70
xor eax, eax
pop ecx
ret
MGCA_SetExploderTimeOut(gClassSettings.exploderTimeout)
push ecx
mov eax, dword ptr [esp+0x8]
push 0x0
push eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x8], st
fld st, dword ptr [esp+0x8]
mov ecx, dword ptr [0x20C8704]
add esp, 0x4
fstp dword ptr [esp], st
call 0x6D9E50
xor eax, eax
pop ecx
ret
MGCA_SetLevelTimeout(gClassSettings.levelTimeout)
push ecx
mov eax, dword ptr [esp+0x8]
push 0x0
push eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x8], st
fld st, dword ptr [esp+0x8]
mov ecx, dword ptr [0x20C8704]
add esp, 0x4
fstp dword ptr [esp], st
call 0x6D9F80
xor eax, eax
pop ecx
ret
MGCA_SetLives(gClassSettings.lives)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetInt
mov ecx, dword ptr [0x20C8704]
add esp, 0x8
push eax
call 0x6D9F90
xor eax, eax
ret
-- never used
push esi
mov esi, dword ptr [esp+0x8]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetString
mov ecx, dword ptr [0x20C8704]
add esp, 0x10
push eax
push edi
call 0x6D9D30
pop edi
xor eax, eax
pop esi
ret
MGCA_SetPathSpeedupFactor(gClassSettings.pathSpeedup)
push ecx
mov eax, dword ptr [esp+0x8]
push 0x0
push eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x8], st
fld st, dword ptr [esp+0x8]
mov ecx, dword ptr [0x20C8704]
add esp, 0x4
fstp dword ptr [esp], st
call 0x6D9D90
xor eax, eax
pop ecx
ret
MGCA_SetPlayerSpeed(gClassSettings.playerSpeed)
push ecx
mov eax, dword ptr [esp+0x8]
push 0x0
push eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x8], st
fld st, dword ptr [esp+0x8]
mov ecx, dword ptr [0x20C8704]
add esp, 0x4
fstp dword ptr [esp], st
call 0x6D9D80
xor eax, eax
pop ecx
ret
-- never used
push esi
mov esi, dword ptr [esp+0x8]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetInt
mov ecx, dword ptr [0x20C8704]
add esp, 0x10
push eax
push edi
call 0x6D9F10
pop edi
xor eax, eax
pop esi
ret
MGCA_SetPowerUpDuration(i - 1, gClassSettings.powerupDuration[i])
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x18], st
fld st, dword ptr [esp+0x18]
mov ecx, dword ptr [0x20C8704]
add esp, 0xC
fstp dword ptr [esp], st
push edi
call 0x6D9F30
pop edi
xor eax, eax
pop esi
pop ecx
ret
MGCA_SetPowerUpFreezeFactor(0.5)
push ecx
mov eax, dword ptr [esp+0x8]
push 0x0
push eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x8], st
fld st, dword ptr [esp+0x8]
mov ecx, dword ptr [0x20C8704]
add esp, 0x4
fstp dword ptr [esp], st
call 0x6D9F60
xor eax, eax
pop ecx
ret
MGCA_SetPowerUpInitialPeriod(i - 1, gClassSettings.powerupInitialPeriod[i])
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x18], st
fld st, dword ptr [esp+0x18]
mov ecx, dword ptr [0x20C8704]
add esp, 0xC
fstp dword ptr [esp], st
push edi
call 0x6D9EA0
pop edi
xor eax, eax
pop esi
pop ecx
ret
-- never used
push esi
mov esi, dword ptr [esp+0x8]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetInt
mov ecx, dword ptr [0x20C8704]
add esp, 0x10
push eax
push edi
call 0x6D9EE0
pop edi
xor eax, eax
pop esi
ret
MGCA_SetPowerUpPeriod(i - 1, gClassSettings.powerupPeriod[i])
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x18], st
fld st, dword ptr [esp+0x18]
mov ecx, dword ptr [0x20C8704]
add esp, 0xC
fstp dword ptr [esp], st
push edi
call 0x6D9EC0
pop edi
xor eax, eax
pop esi
pop ecx
ret
MGCA_SetPowerUpSpeed(i - 1, gClassSettings.powerupSpeed[i])
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x18], st
fld st, dword ptr [esp+0x18]
mov ecx, dword ptr [0x20C8704]
add esp, 0xC
fstp dword ptr [esp], st
push edi
call 0x6D9E80
pop edi
xor eax, eax
pop esi
pop ecx
ret
MGCA_SetPowerUpSpeedBoostFactor(gClassSettings.powerupSpeedFactor)
push ecx
mov eax, dword ptr [esp+0x8]
push 0x0
push eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x8], st
fld st, dword ptr [esp+0x8]
mov ecx, dword ptr [0x20C8704]
add esp, 0x4
fstp dword ptr [esp], st
call 0x6D9F50
xor eax, eax
pop ecx
ret
-- never used
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetInt
mov ecx, dword ptr [0x20C8704]
add esp, 0x8
push eax
call 0x6D9F00
xor eax, eax
ret
MGCA_SetSetPowerUpClearRadius(gClassSettings.powerupClearRadius)
push ecx
mov eax, dword ptr [esp+0x8]
push 0x0
push eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x8], st
fld st, dword ptr [esp+0x8]
mov ecx, dword ptr [0x20C8704]
add esp, 0x4
fstp dword ptr [esp], st
call 0x6D9F70
xor eax, eax
pop ecx
ret
MGCA_SetTextureBank(gClassSettings.currentBackground)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetInt
mov ecx, dword ptr [0x20C8704]
add esp, 0x8
push eax
call 0x6D9D60
xor eax, eax
ret
-- never used
mov ecx, dword ptr [0x20C8704]
call 0x701880
push eax
mov eax, dword ptr [esp+0x8]
push eax
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
ret
-- never used
mov ecx, dword ptr [0x20C8704]
sub esp, 0xC
push esi
lea eax, ptr [esp+0x4]
push eax
call 0x700E00
fld st, dword ptr [esp+0x4]
mov esi, dword ptr [esp+0x14]
push ecx
fstp dword ptr [esp], st
push esi
call LuaParam::PushFloat
fld st, dword ptr [esp+0x10]
add esp, 0x4
fstp dword ptr [esp], st
push esi
call LuaParam::PushFloat
fld st, dword ptr [esp+0x14]
add esp, 0x4
fstp dword ptr [esp], st
push esi
call LuaParam::PushFloat
add esp, 0x8
mov eax, 0x3
pop esi
add esp, 0xC
ret
-- never used
push ecx
mov ecx, dword ptr [0x20C8704]
call 0x700DF0
mov ecx, dword ptr [esp+0x8]
mov byte ptr [esp], al
mov eax, dword ptr [esp]
push eax
push ecx
call LuaParam::PushBool
mov eax, 0x1
add esp, 0xC
ret
-- never used
push esi
xor esi, esi
push esi
call 0x4D3DD0
add esp, 0x4
test eax, eax
jz 0x25
push esi
call 0x4D3DD0
movsx eax, word ptr [eax+0x10E]
add esp, 0x4
cmp eax, dword ptr [0xBF44DC]
jnz 0xD
push 0x0
push esi
call 0x4D3F10
add esp, 0x8
add esi, 0x1
cmp esi, 0x20
jl 0xFFFFFFCA
mov ecx, dword ptr [0x20C8704]
mov dword ptr [ecx+0x148], 0x0
xor eax, eax
pop esi
ret
-- never used
push ebx
push esi
mov esi, dword ptr [0x20C8704]
push edi
mov edi, dword ptr [esp+0x10]
push 0x1
push edi
call LuaParam::GetInt
push 0x0
push edi
mov ebx, eax
call LuaParam::GetInt
add esp, 0x10
pop edi
mov dword ptr [esi+0xE4], eax
mov dword ptr [esi+0xE8], ebx
pop esi
xor eax, eax
pop ebx
ret
-- never used
mov eax, dword ptr [esp+0x4]
push esi
mov esi, dword ptr [0x20C8704]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x8
mov dword ptr [esi+0xEC], eax
xor eax, eax
pop esi
ret
-- never used
push ebx
push esi
mov esi, dword ptr [0x20C8704]
push edi
mov edi, dword ptr [esp+0x10]
push 0x1
push edi
call LuaParam::GetInt
push 0x0
push edi
mov ebx, eax
call LuaParam::GetInt
add esp, 0x10
mov dword ptr [esi+eax*4+0xF0], ebx
pop edi
pop esi
xor eax, eax
pop ebx
ret
-- never used
mov ecx, dword ptr [0x20C8704]
call 0x7015D0
xor eax, eax
ret
-- never used
mov ecx, dword ptr [0x20C8704]
call 0x700DE0
xor eax, eax
ret
MGKeepUpsAddAction(0, element, gTimingTable[i] / 30 - gWindow, gWindow)
sub esp, 0x8
push ebx
push esi
mov esi, dword ptr [esp+0x14]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetInt
push 0x2
push esi
mov ebx, eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x28], st
push 0x3
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x2C], st
fld st, dword ptr [esp+0x2C]
mov ecx, dword ptr [0x20C8704]
add esp, 0x18
fstp dword ptr [esp+0x4], st
fld st, dword ptr [esp+0x18]
fstp dword ptr [esp], st
push ebx
push edi
call 0x7033C0
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x8
ret
-- never used
mov ecx, dword ptr [0x20C8704]
call 0x703430
push eax
mov eax, dword ptr [esp+0x8]
push eax
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
ret
MGKeepUpsSetFuncs(F_Pass, F_Fail)
mov eax, dword ptr [0x20C8704]
push esi
mov esi, dword ptr [esp+0x8]
add eax, 0x7E0
push eax
push 0x0
push esi
call 0x5D9FD0
mov ecx, dword ptr [0x20C8704]
add ecx, 0x7E4
push ecx
push 0x1
push esi
call 0x5D9FD0
add esp, 0x18
xor eax, eax
pop esi
ret
-- never used
mov eax, dword ptr [esp+0x4]
push esi
mov esi, dword ptr [0x20C8704]
push 0x0
push eax
call LuaParam::GetFloat
fstp dword ptr [esi+0x804], st
add esp, 0x8
xor eax, eax
pop esi
ret
MGKeepUpsStartSeq(0)
mov eax, dword ptr [esp+0x4]
push ebx
push esi
xor ebx, ebx
push ebx
push eax
call LuaParam::GetInt
add esp, 0x8
mov esi, eax
call 0x42E430
test al, al
jz 0xFFFFFFF9
mov eax, dword ptr [0x20C8704]
fldz
fst dword ptr [eax+0x7FC], st
mov dword ptr [eax+0x7E8], esi
fst dword ptr [eax+0x800], st
mov dword ptr [eax+0x7EC], ebx
mov byte ptr [eax+0x7F0], bl
fstp dword ptr [eax+0x7F4], st
mov byte ptr [eax+0x7F1], bl
mov byte ptr [eax+0x7F2], bl
pop esi
xor eax, eax
pop ebx
ret
MGLockSetCombo(combo1, combo2, combo3)
push ebx
push ebp
push esi
mov esi, dword ptr [0x20C8704]
push edi
mov edi, dword ptr [esp+0x14]
push 0x2
push edi
call LuaParam::GetInt
push 0x1
push edi
mov ebx, eax
call LuaParam::GetInt
push 0x0
push edi
mov ebp, eax
call LuaParam::GetInt
add esp, 0x18
pop edi
mov dword ptr [esi+0xC8], eax
mov dword ptr [esi+0xCC], ebp
mov dword ptr [esi+0xD0], ebx
pop esi
pop ebp
xor eax, eax
pop ebx
ret
MinigameAddCompletionMsg("MRESPECT_BM10", 1)
MinigameAddCompletionMsg("MRESPECT_BM5", 1)
MinigameAddCompletionMsg("MRESPECT_DM25", 1)
MinigameAddCompletionMsg("MRESPECT_DP100", 2)
MinigameAddCompletionMsg("MRESPECT_DP25", 2)
MinigameAddCompletionMsg("MRESPECT_GM10", 1)
MinigameAddCompletionMsg("MRESPECT_GM20", 1)
MinigameAddCompletionMsg("MRESPECT_GM25", 1)
MinigameAddCompletionMsg("MRESPECT_GM5", 1)
MinigameAddCompletionMsg("MRESPECT_GM75", 1)
MinigameAddCompletionMsg("MRESPECT_GP25", 2)
MinigameAddCompletionMsg("MRESPECT_GP5", 2)
MinigameAddCompletionMsg("MRESPECT_JM10", 1)
MinigameAddCompletionMsg("MRESPECT_JM5", 1)
MinigameAddCompletionMsg("MRESPECT_JM75", 1)
MinigameAddCompletionMsg("MRESPECT_JP15", 2)
MinigameAddCompletionMsg("MRESPECT_JP5", 2)
MinigameAddCompletionMsg("MRESPECT_NM100", 1)
MinigameAddCompletionMsg("MRESPECT_NM5", 1)
MinigameAddCompletionMsg("MRESPECT_NM75", 1)
MinigameAddCompletionMsg("MRESPECT_NP15", 2)
MinigameAddCompletionMsg("MRESPECT_NP20", 2)
MinigameAddCompletionMsg("MRESPECT_NP5", 2)
MinigameAddCompletionMsg("MRESPECT_NP50", 2)
MinigameAddCompletionMsg("MRESPECT_PM10", 1)
MinigameAddCompletionMsg("MRESPECT_PM15", 1)
MinigameAddCompletionMsg("MRESPECT_PM5", 1)
MinigameAddCompletionMsg("MRESPECT_PM75", 1)
MinigameAddCompletionMsg("MRESPECT_PP15", 2)
MinigameAddCompletionMsg("MRESPECT_PP5", 2)
MinigameAddCompletionMsg("P_LAWN_UNLOCK", 1)
push ebx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetString
push esi
mov ebx, eax
xor edi, edi
call LuaParam::GetParamCount
add esp, 0xC
cmp eax, 0x2
jl 0xF
push 0x1
push esi
call LuaParam::GetInt
add esp, 0x8
mov edi, eax
push edi
push ebx
call 0x7054B0
add esp, 0x8
pop edi
pop esi
xor eax, eax
pop ebx
ret
MinigameCreate("ARCADE", false)
MinigameCreate("ART", false)
MinigameCreate("BALLTOSS", false)
MinigameCreate("BIOLOGY", false)
MinigameCreate("CHEM", false)
MinigameCreate("DUNKTANK", false)
MinigameCreate("ENGLISH", false)
MinigameCreate("GEOGRAPHY", false)
MinigameCreate("KEEPUPS", false)
MinigameCreate("LAWNMOWING", false)
MinigameCreate("LOCK", false)
MinigameCreate("MATH", false)
MinigameCreate("MUSIC", false)
MinigameCreate("RACE", true)
MinigameCreate("SHOOT", false)
MinigameCreate("SOCCERP", false)
MinigameCreate("STRIKER", false)
MinigameCreate(game, false)
sub esp, 0xA0
push esi
mov esi, dword ptr [esp+0xA8]
push edi
push 0x0
push esi
call LuaParam::GetString
push 0x1
push esi
mov edi, eax
call LuaParam::GetBool
mov ecx, 0x9208B4
add esp, 0x10
mov byte ptr [esp+0xB], al
mov dword ptr [esp+0x10], ecx
mov dword ptr [esp+0x14], 0x94936C
mov dword ptr [esp+0x18], 0x949360
mov dword ptr [esp+0x1C], 0x949358
mov dword ptr [esp+0x20], 0x920C88
mov dword ptr [esp+0x24], 0x921094
mov dword ptr [esp+0x28], 0x949350
mov dword ptr [esp+0x2C], 0x949344
mov dword ptr [esp+0x30], 0x94933C
mov dword ptr [esp+0x34], 0x92E490
mov dword ptr [esp+0x38], 0x949330
mov dword ptr [esp+0x3C], 0x949328
mov dword ptr [esp+0x40], 0x94931C
mov dword ptr [esp+0x44], 0x92BFC8
mov dword ptr [esp+0x48], 0x949314
mov dword ptr [esp+0x4C], 0x94930C
mov dword ptr [esp+0x50], 0x9204CC
mov dword ptr [esp+0x54], 0x921F44
mov dword ptr [esp+0x58], 0x0
mov dword ptr [esp+0x5C], 0x1
mov dword ptr [esp+0x60], 0x2
mov dword ptr [esp+0x64], 0x3
mov dword ptr [esp+0x68], 0x4
mov dword ptr [esp+0x6C], 0x5
mov dword ptr [esp+0x70], 0x6
mov dword ptr [esp+0x74], 0x7
mov dword ptr [esp+0x78], 0x8
mov dword ptr [esp+0x7C], 0x9
mov dword ptr [esp+0x80], 0xA
mov dword ptr [esp+0x84], 0xB
mov dword ptr [esp+0x88], 0xC
mov dword ptr [esp+0x8C], 0xD
mov dword ptr [esp+0x90], 0xE
mov dword ptr [esp+0x94], 0xF
mov dword ptr [esp+0x98], 0x10
mov dword ptr [esp+0x9C], 0x11
mov dword ptr [esp+0xA0], 0x12
mov dword ptr [esp+0xA4], 0x0
xor esi, esi
lea esp, ptr [esp]
mov eax, edi
mov dl, byte ptr [eax]
cmp dl, byte ptr [ecx]
jnz 0x1C
test dl, dl
jz 0x14
mov dl, byte ptr [eax+0x1]
cmp dl, byte ptr [ecx+0x1]
jnz 0x10
add eax, 0x2
add ecx, 0x2
test dl, dl
jnz 0xFFFFFFE6
xor eax, eax
jmp 0x7
sbb eax, eax
sbb eax, 0xFFFFFFFF
test eax, eax
jz 0xD
mov ecx, dword ptr [esp+esi*4+0x14]
add esi, 0x1
test ecx, ecx
jnz 0xFFFFFFCC
mov eax, dword ptr [esp+esi*4+0x5C]
push eax
call 0x704890
add esp, 0x4
cmp byte ptr [esp+0xB], 0x0
pop edi
pop esi
jz 0x25
call 0x43AC10
mov ecx, dword ptr [0x20C8704]
mov edx, dword ptr [ecx]
mov byte ptr [esp+0x4], al
mov eax, dword ptr [edx+0x10]
call 0x708C12
mov ecx, dword ptr [esp+0x4]
push ecx
call 0x43BE40
add esp, 0x4
xor eax, eax
add esp, 0xA0
ret
MinigameDestroy()
MinigameDestroy(false)
mov ecx, dword ptr [0x20C8704]
test ecx, ecx
jz 0xF
cmp byte ptr [ecx+0x4], 0x0
jz 0x9
mov eax, dword ptr [ecx]
mov edx, dword ptr [eax+0x14]
call 0x708C47
mov eax, dword ptr [esp+0x4]
push 0x1
push 0x0
push eax
call LuaParam::GetBool ; optional
push eax
call 0x704C60
add esp, 0x10
xor eax, eax
ret
MinigameEnableHUD(false)
MinigameEnableHUD(true)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetBool
mov ecx, dword ptr [0x20C8704]
add esp, 0x8
test ecx, ecx
jz 0x5
mov byte ptr [ecx+0x5], al
xor eax, eax
ret
--print(">>>[RUI]", "MinigameEnd")
MinigameEnd()
mov ecx, dword ptr [0x20C8704]
test ecx, ecx
jz 0xF
cmp byte ptr [ecx+0x4], 0x0
jz 0x9
mov eax, dword ptr [ecx]
mov edx, dword ptr [eax+0x14]
call 0x708CC7
xor eax, eax
ret
elseif MinigameGetErrandCompletion(scenario.enum) == 0 then
if 1 <= MinigameGetErrandCompletion(scenario.prereq) then
if MinigameGetErrandCompletion(scenario.enum) == 0 then
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, 0xC1AEA8
call 0x4467E0
push eax
push esi
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
pop esi
ret
gHighScore = MinigameGetHighScore(gHighScoreConst, 0)
MGArcade_Sprite_SetTextParam(gGameOverLayer, score.id2, ScoreParam, MinigameGetHighScore(1, i - 1))
MGArcade_Sprite_SetTextParam(gGameOverLayer, score.id2, ScoreParam, MinigameGetHighScore(2, i - 1))
MGArcade_Sprite_SetTextParam(lid, score.id2, ScoreParam, MinigameGetHighScore(gHighScoreConst, i - 1))
score = MinigameGetHighScore(1, 0),
score = MinigameGetHighScore(1, 1),
score = MinigameGetHighScore(1, 2),
score = MinigameGetHighScore(1, 3),
score = MinigameGetHighScore(1, 4),
score = MinigameGetHighScore(2, 0),
score = MinigameGetHighScore(2, 1),
score = MinigameGetHighScore(2, 2),
score = MinigameGetHighScore(2, 3),
score = MinigameGetHighScore(2, 4),
score = MinigameGetHighScore(gHighScoreConst, 0),
score = MinigameGetHighScore(gHighScoreConst, 1),
score = MinigameGetHighScore(gHighScoreConst, 2),
score = MinigameGetHighScore(gHighScoreConst, 3),
score = MinigameGetHighScore(gHighScoreConst, 4),
sub esp, 0x8
push esi
mov esi, dword ptr [esp+0x10]
lea eax, ptr [esp+0x8]
push eax
lea ecx, ptr [esp+0x8]
push ecx
push 0x1
push esi
call LuaParam::GetInt
add esp, 0x8
push eax
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x8
push eax
call 0x7055A0
mov edx, dword ptr [esp+0x14]
push edx
push esi
call LuaParam::PushInt
add esp, 0x18
mov eax, 0x1
pop esi
add esp, 0x8
ret
-- never used
sub esp, 0x8
push esi
mov esi, dword ptr [esp+0x10]
push 0x3
push 0x1
push esi
call LuaParam::GetString
add esp, 0x8
push eax
mov ecx, 0x20C2FA4
call 0x68FE80
push eax
lea eax, ptr [esp+0xC]
push eax
call 0x688ED0
add esp, 0xC
lea ecx, ptr [esp+0x4]
push ecx
push 0x0
push esi
mov word ptr [esp+0x16], 0x0
call LuaParam::GetInt
add esp, 0x8
push eax
call 0x7055E0
push eax
push esi
call LuaParam::PushBool
add esp, 0x10
mov eax, 0x1
pop esi
add esp, 0x8
ret
MinigameHoldCompletion()
mov byte ptr [0x20C870B], 0x1
xor eax, eax
ret
if IsButtonBeingPressed(7, 0) or not MinigameIsActive() then
if MinigameIsActive() then
if not bGameOver and MinigameIsActive() then
if not bTutorialStarted and MinigameIsActive() then
if not MinigameIsActive() then
if race and MinigameIsActive() then
while blink and MinigameIsActive() do
while MinigameIsActive() do
while not (not MinigameIsActive() or MissionTimerHasFinished() and bUsingTimer) do
while not (not MinigameIsActive() or RaceHasRacerFinished(gPlayer)) and race_ongoing do
while not bContinue and MinigameIsActive() do
while not bRemoveLoad and MinigameIsActive() do
while not IsButtonBeingPressed(7, 0) and MinigameIsActive() do
push ecx
mov eax, dword ptr [0x20C8704]
test eax, eax
jz 0xC
cmp byte ptr [eax+0x4], 0x0
mov byte ptr [esp], 0x1
jnz 0x6
mov byte ptr [esp], 0x0
mov eax, dword ptr [esp]
mov ecx, dword ptr [esp+0x8]
push eax
push ecx
call LuaParam::PushBool
mov eax, 0x1
add esp, 0xC
ret
while MinigameIsFadingCompletion() do
while not MinigameIsFadingCompletion() do
call 0x705520
push eax
mov eax, dword ptr [esp+0x8]
push eax
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
ret
-- never used
push esi
mov esi, dword ptr [esp+0x8]
push 0x1
push esi
call LuaParam::GetInt
add esp, 0x8
push eax
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x8
push eax
call 0x705570
push eax
push esi
call LuaParam::PushBool
add esp, 0x10
mov eax, 0x1
pop esi
ret
--print(">>>[RUI]", "MinigameIsReady")
if MinigameIsReady() and shared.gLockpickSuccessFunction == nil then
if MinigameIsReady() then
if PedIsInAreaXYZ(gPlayer, x1, y1, z1, 1.5, 0) and MinigameIsReady() == true then
while MinigameIsReady() == false do
while not MinigameIsReady() do
cmp dword ptr [0x20C8704], 0x0
mov ecx, dword ptr [esp+0x4]
setnz al
push eax
push ecx
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
ret
if not MinigameIsShowingCompletion() then
while MinigameIsShowingCompletion() do
call 0x705500
test al, al
jz 0x21
cmp byte ptr [0x20C870A], 0x0
jnz 0x18
mov al, 0x1
push eax
mov eax, dword ptr [esp+0x8]
push eax
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
ret
xor al, al
push eax
mov eax, dword ptr [esp+0x8]
push eax
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
ret
while MinigameIsShowingGrades() do
movzx eax, byte ptr [0x20C8708]
mov ecx, dword ptr [esp+0x4]
push eax
push ecx
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
ret
bSuccess = MinigameIsSuccess()
if MinigameIsSuccess() and not (num_missed >= max_num_missed) then
if MinigameIsSuccess() then
local bSuccess = MinigameIsSuccess()
while not MinigameIsSuccess() do
push ecx
mov eax, dword ptr [0x20C8704]
test eax, eax
jz 0xC
cmp byte ptr [eax+0x6], 0x0
mov byte ptr [esp], 0x1
jnz 0x6
mov byte ptr [esp], 0x0
mov eax, dword ptr [esp]
mov ecx, dword ptr [esp+0x8]
push eax
push ecx
call LuaParam::PushBool
mov eax, 0x1
add esp, 0xC
ret
MinigameReleaseCompletion()
mov byte ptr [0x20C870B], 0x0
xor eax, eax
ret
MinigameSetAnnouncement("BOXING_07", true)
MinigameSetAnnouncement("MEN_BLANK", true)
MinigameSetAnnouncement(timerText, true)
sub esp, 0x8
push esi
mov esi, dword ptr [esp+0x10]
push edi
push 0x0
push esi
call LuaParam::GetString
push 0x1
push esi
mov edi, eax
call LuaParam::GetBool
add esp, 0x10
push 0xD2
push 0x3F
push 0x93
push 0xA6
lea ecx, ptr [esp+0x18]
mov byte ptr [esp+0x1C], al
call 0x510DE0
fldz
push 0x0
lea eax, ptr [esp+0xC]
push eax
push 0x0
push ecx
mov ecx, dword ptr [esp+0x1C]
fstp dword ptr [esp], st
push ecx
push edi
call 0x7074E0
add esp, 0x18
pop edi
xor eax, eax
pop esi
add esp, 0x8
ret
MinigameSetChapterCompletion("Chapt0Message", "Chapt0Reward", true, 0)
MinigameSetChapterCompletion("Chapt1Message", "Chapt1Name", true, 0)
MinigameSetChapterCompletion("Chapt2Trans_Title", "Chapt2Trans_Name", true, 0)
MinigameSetChapterCompletion("Chapt3Trans_Title", "Chapt3Trans_Name", true, 0)
MinigameSetChapterCompletion("Chapt4Trans_Title", "Chapt4Trans_Name", true, 0)
MinigameSetChapterCompletion("Chapt5Message", "Chapt5Name", true, 0)
sub esp, 0x8
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x18]
push edi
xor edi, edi
push edi
push esi
call LuaParam::GetString
push 0x1
push esi
mov ebx, eax
call LuaParam::GetString
push 0x2
push esi
mov ebp, eax
call LuaParam::GetBool
push esi
mov byte ptr [esp+0x30], al
mov dword ptr [esp+0x2C], edi
call LuaParam::GetParamCount
add esp, 0x1C
cmp eax, 0x3
jl 0x29
push 0x3
push esi
call LuaParam::GetInt
push esi
mov dword ptr [esp+0x1C], eax
call LuaParam::GetParamCount
add esp, 0xC
cmp eax, 0x5
jl 0xF
push 0x4
push esi
call LuaParam::GetString
add esp, 0x8
mov edi, eax
fild st, dword ptr [esp+0x10]
mov eax, dword ptr [esp+0x14]
push 0x0
push 0x0
push edi
push ecx
fstp dword ptr [esp], st
push eax
push ebp
push ebx
call 0x705AE0
add esp, 0x1C
call 0x705340
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x8
ret
MinigameSetCompletion("BOXING_04", true)
MinigameSetCompletion("BOXING_04", true, 0, "BOXING_10")
MinigameSetCompletion("BOXING_04", true, rewardMoney)
MinigameSetCompletion("DBG_LOST", true, 0, F_GetScoreText())
MinigameSetCompletion("DBG_WON", true, 0, F_GetScoreText())
MinigameSetCompletion("DBG_WON", true, 1500, F_GetScoreText())
MinigameSetCompletion("GKART_YOULOSE", false)
MinigameSetCompletion("GKART_YOULOSE", true, 0)
MinigameSetCompletion("GKART_YOUWIN", true)
MinigameSetCompletion("GKART_YOUWIN", true, 0)
MinigameSetCompletion("GKART_YOUWIN", true, gReward, race.unlock)
MinigameSetCompletion("M_FAIL", false)
MinigameSetCompletion("M_FAIL", false, 0, "1_07_BUCKYKO")
MinigameSetCompletion("M_FAIL", false, 0, "1_B_PLAYERKO")
MinigameSetCompletion("M_FAIL", false, 0, "3_S11_VOILENCE")
MinigameSetCompletion("M_FAIL", false, 0, "4_03_JOCKTHRU")
MinigameSetCompletion("M_FAIL", false, 0, "5_03_JOHNNYKO")
MinigameSetCompletion("M_FAIL", false, 0, gMissionFailedMessage)
MinigameSetCompletion("M_PASS", true, 0)
MinigameSetCompletion("M_PASS", true, 0, "1_03_SLINGSHOT")
MinigameSetCompletion("M_PASS", true, 0, "1_07_UNLOCK")
MinigameSetCompletion("M_PASS", true, 0, "1_08_UNLOCK")
MinigameSetCompletion("M_PASS", true, 0, "1_09_UNLOCK")
MinigameSetCompletion("M_PASS", true, 0, "1_11_x2_UNLKCSTM")
MinigameSetCompletion("M_PASS", true, 0, "1_11_XP_UNLOCK")
MinigameSetCompletion("M_PASS", true, 0, "1_S01_REWARD")
MinigameSetCompletion("M_PASS", true, 0, "2_03_UNLOCK")
MinigameSetCompletion("M_PASS", true, 0, "2_07_UNLOCK")
MinigameSetCompletion("M_PASS", true, 0, "2_G2_PINKYUNLCK")
MinigameSetCompletion("M_PASS", true, 0, "3_G3_UNLOCK")
MinigameSetCompletion("M_PASS", true, 0, "3_R09_Boxing")
MinigameSetCompletion("M_PASS", true, 0, "3_R09_C7")
MinigameSetCompletion("M_PASS", true, 0, "3_R09_Unlock")
MinigameSetCompletion("M_PASS", true, 0, "3_XM_REWARD")
MinigameSetCompletion("M_PASS", true, 0, "4_05_MPASS01")
MinigameSetCompletion("M_PASS", true, 0, "4_B1_UNLOCK")
MinigameSetCompletion("M_PASS", true, 0, "4_G4_RESPECT")
MinigameSetCompletion("M_PASS", true, 0, "MDETENTION_CLEARED")
MinigameSetCompletion("M_PASS", true, 0, "P_SNOW_PASS")
MinigameSetCompletion("M_PASS", true, 0, gUnlockHideoutText)
MinigameSetCompletion("M_PASS", true, 1000)
MinigameSetCompletion("M_PASS", true, 1500)
MinigameSetCompletion("M_PASS", true, 2000)
MinigameSetCompletion("M_PASS", true, 2000, "3_02_UNLOCK")
MinigameSetCompletion("M_PASS", true, 2500)
MinigameSetCompletion("M_PASS", true, 3000)
MinigameSetCompletion("M_PASS", true, 4000)
MinigameSetCompletion("M_PASS", true, 500)
MinigameSetCompletion("M_PASS", true, 5000)
MinigameSetCompletion("M_PASS", true, 6000)
MinigameSetCompletion("M_PASS", true, gReward)
MinigameSetCompletion("M_PASS", true, gReward, gBonusCustomersMessage)
MinigameSetCompletion("M_PASS", true, gRewardMoney)
MinigameSetCompletion("M_PASS", true, gRewardMoney, "3_S10_UNLOCK")
MinigameSetCompletion("M_PASS", true, rewardMoney)
MinigameSetCompletion("M_RACEWIN", true)
MinigameSetCompletion("MEN_BLANK", true, 0, "DB_UPGRADE")
MinigameSetCompletion("MEN_BLANK", true, 0, "TUT_301A")
MinigameSetCompletion("MEN_BLANK", true, 0, "TUT_301C")
MinigameSetCompletion("MEN_BLANK", true, 0, gUnlockText)
MinigameSetCompletion("MEN_BLANK", true, 0, unlkTxt)
MinigameSetCompletion("MEN_BLANK", true, 0, unlockMissionText)
MinigameSetCompletion("MEN_BLANK", true, 0, unlockText)
MinigameSetCompletion("P_LAWN_FAIL", false, 0, "P_LAWN_15")
MinigameSetCompletion("P_LAWN_FAIL", false, 0, gFailMessage)
MinigameSetCompletion("P_SNOW_FAIL", false, 0, "P_SNOW_F5")
MinigameSetCompletion("P_SNOW_FAIL", false, 0, gFailMessage)
MinigameSetCompletion(gRoundTable[gMatchesPlayed], true, 0)
MinigameSetCompletion(heading, true, m)
MinigameSetCompletion(heading, true, m, message)
sub esp, 0x8
push ebx
push esi
mov esi, dword ptr [esp+0x14]
push edi
push 0x0
push esi
call LuaParam::GetString
push 0x1
push esi
mov ebx, eax
call LuaParam::GetBool
push esi
mov byte ptr [esp+0x24], al
mov dword ptr [esp+0x20], 0x0
xor edi, edi
call LuaParam::GetParamCount
add esp, 0x14
cmp eax, 0x3
jl 0x29
push 0x2
push esi
call LuaParam::GetInt
push esi
mov dword ptr [esp+0x18], eax
call LuaParam::GetParamCount
add esp, 0xC
cmp eax, 0x4
jl 0xF
push 0x3
push esi
call LuaParam::GetString
add esp, 0x8
mov edi, eax
fild st, dword ptr [esp+0xC]
mov eax, dword ptr [esp+0x10]
push 0x0
push 0x0
push edi
push ecx
fstp dword ptr [esp], st
push eax
push ebx
call 0x7074E0
add esp, 0x18
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x8
ret
MinigameSetElapsedGameTime(0, 15)
MinigameSetElapsedGameTime(1, 0)
push esi
mov esi, dword ptr [esp+0x8]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetInt
push eax
push edi
call 0x704860
add esp, 0x18
pop edi
xor eax, eax
pop esi
ret
MinigameSetErrandCompletion(-1, "AS_COMPLETE", true, 500)
MinigameSetErrandCompletion(-1, "AS_FAIL", false, 0, "AS_TRY_AGAIN")
MinigameSetErrandCompletion(-1, "AS_OBJCOMPLETE", true, 0, "AS_ALL_PUMPKINS")
MinigameSetErrandCompletion(-1, "AS_OBJCOMPLETE", true, 0, "AS_ALL_RUBBERBANDS")
MinigameSetErrandCompletion(-1, "AS_OBJCOMPLETE", true, 0, "AS_ALL_TOMBSTONES")
MinigameSetErrandCompletion(-1, "AS_OBJCOMPLETE", true, 0, "AS_ARCADE_MASTER")
MinigameSetErrandCompletion(-1, "AS_OBJCOMPLETE", true, 0, "AS_BIKE_TREK")
MinigameSetErrandCompletion(-1, "AS_OBJCOMPLETE", true, 0, "AS_BOY_GENIUS")
MinigameSetErrandCompletion(-1, "AS_OBJCOMPLETE", true, 0, "AS_CARDS_REWARD")
MinigameSetErrandCompletion(-1, "AS_OBJCOMPLETE", true, 0, "AS_CONQUEROR")
MinigameSetErrandCompletion(-1, "AS_OBJCOMPLETE", true, 0, "AS_FASHION_VIC")
MinigameSetErrandCompletion(-1, "AS_OBJCOMPLETE", true, 0, "AS_FIRE_CHIEF")
MinigameSetErrandCompletion(-1, "AS_OBJCOMPLETE", true, 0, "AS_GNOMES_REWARD")
MinigameSetErrandCompletion(-1, "AS_OBJCOMPLETE", true, 0, "AS_JIMMY_SLOW")
MinigameSetErrandCompletion(-1, "AS_OBJCOMPLETE", true, 0, "AS_MARATHON_BOY")
MinigameSetErrandCompletion(-1, "AS_OBJCOMPLETE", true, 0, "AS_PIRATE")
MinigameSetErrandCompletion(-1, "AS_OBJCOMPLETE", true, 0, "AS_POP_FRENZY")
MinigameSetErrandCompletion(-1, "AS_OBJCOMPLETE", true, 0, "AS_POP_JUNKY")
MinigameSetErrandCompletion(-1, "AS_OBJCOMPLETE", true, 0, "AS_PROJ_REWARD")
MinigameSetErrandCompletion(-1, "AS_OBJCOMPLETE", true, 0, "AS_YEARBK_REWARD")
MinigameSetErrandCompletion(-1, "AS_PCOMPLETE", true)
MinigameSetErrandCompletion(-1, "AS_PFAIL", false)
MinigameSetErrandCompletion(0, "AS_COMPLETE", true, 2000)
MinigameSetErrandCompletion(0, "AS_COMPLETE", true, 500)
MinigameSetErrandCompletion(0, "AS_FAIL", false, 0, "AS_TRY_AGAIN")
MinigameSetErrandCompletion(1, "AS_COMPLETE", true, 1500)
MinigameSetErrandCompletion(1, "AS_FAIL", false, 0, "AS_TRY_AGAIN")
MinigameSetErrandCompletion(10, "AS_COMPLETE", true, 3000)
MinigameSetErrandCompletion(10, "AS_FAIL", false, 0, "AS_TRY_AGAIN")
MinigameSetErrandCompletion(11, "AS_COMPLETE", true, 2500, "AS_INCOG")
MinigameSetErrandCompletion(11, "AS_FAIL", false, 0, "AS_TRY_AGAIN")
MinigameSetErrandCompletion(12, "AS_COMPLETE", true, 1500)
MinigameSetErrandCompletion(12, "AS_FAIL", false, 0, "AS_TRY_AGAIN")
MinigameSetErrandCompletion(13, "AS_COMPLETE", true, 1000)
MinigameSetErrandCompletion(13, "AS_FAIL", false, 0, "AS_TRY_AGAIN")
MinigameSetErrandCompletion(14, "AS_COMPLETE", true, 1000)
MinigameSetErrandCompletion(14, "AS_FAIL", false, 0, "AS_TRY_AGAIN")
MinigameSetErrandCompletion(15, "AS_COMPLETE", true, 3000)
MinigameSetErrandCompletion(15, "AS_FAIL", false, 0, "AS_TRY_AGAIN")
MinigameSetErrandCompletion(16, "AS_COMPLETE", true, 2000)
MinigameSetErrandCompletion(16, "AS_FAIL", false, 0, "AS_TRY_AGAIN")
MinigameSetErrandCompletion(17, "AS_COMPLETE", true, 2500)
MinigameSetErrandCompletion(17, "AS_FAIL", false, 0, "AS_TRY_AGAIN")
MinigameSetErrandCompletion(18, "AS_COMPLETE", true, 2500)
MinigameSetErrandCompletion(18, "AS_FAIL", false, 0, "AS_NO_TIME")
MinigameSetErrandCompletion(18, "AS_FAIL", false, 0, "AS_TRY_AGAIN")
MinigameSetErrandCompletion(19, "AS_COMPLETE", true, 1500)
MinigameSetErrandCompletion(19, "AS_FAIL", false, 0, "AS_TRY_AGAIN")
MinigameSetErrandCompletion(2, "AS_BR_FAIL", false)
MinigameSetErrandCompletion(2, "AS_COMPLETE", true, 1000)
MinigameSetErrandCompletion(2, "AS_FAIL", false, 0, "AS_TRY_AGAIN")
MinigameSetErrandCompletion(20, "AS_COMPLETE", true, 3000)
MinigameSetErrandCompletion(20, "AS_FAIL", false, 0, "AS_TRY_AGAIN")
MinigameSetErrandCompletion(21, "AS_COMPLETE", true, 4000)
MinigameSetErrandCompletion(21, "AS_FAIL", false, 0, "AS_TRY_AGAIN")
MinigameSetErrandCompletion(22, "AS_COMPLETE", true, 2000)
MinigameSetErrandCompletion(22, "AS_FAIL", false, 0, "AS_TRY_AGAIN")
MinigameSetErrandCompletion(23, "AS_COMPLETE", true, 1000)
MinigameSetErrandCompletion(23, "AS_FAIL", false, 0, "AS_TRY_AGAIN")
MinigameSetErrandCompletion(24, "AS_COMPLETE", true, 1500)
MinigameSetErrandCompletion(24, "AS_FAIL", false, 0, "AS_TRY_AGAIN")
MinigameSetErrandCompletion(25, "AS_COMPLETE", true, 3000)
MinigameSetErrandCompletion(25, "AS_FAIL", false, 0, "AS_TRY_AGAIN")
MinigameSetErrandCompletion(26, "AS_COMPLETE", true, 1500)
MinigameSetErrandCompletion(26, "AS_FAIL", false, 0, "AS_TRY_AGAIN")
MinigameSetErrandCompletion(27, "AS_COMPLETE", true, 1500)
MinigameSetErrandCompletion(27, "AS_FAIL", false, 0, "AS_TRY_AGAIN")
MinigameSetErrandCompletion(28, "AS_COMPLETE", true, 2500)
MinigameSetErrandCompletion(28, "AS_FAIL", false, 0, "AS_TRY_AGAIN")
MinigameSetErrandCompletion(29, "AS_COMPLETE", true, 1000)
MinigameSetErrandCompletion(29, "AS_FAIL", false, 0, "AS_TRY_AGAIN")
MinigameSetErrandCompletion(3, "AS_BR_FAIL", false)
MinigameSetErrandCompletion(3, "AS_COMPLETE", true, 1500)
MinigameSetErrandCompletion(3, "AS_FAIL", false, 0, "AS_TRY_AGAIN")
MinigameSetErrandCompletion(30, "AS_COMPLETE", true, 2000, "AS_BALLOONS")
MinigameSetErrandCompletion(30, "AS_FAIL", false, 0, "AS_TRY_AGAIN")
MinigameSetErrandCompletion(31, "AS_COMPLETE", true, 3000)
MinigameSetErrandCompletion(31, "AS_FAIL", false, 0, "AS_TRY_AGAIN")
MinigameSetErrandCompletion(32, "AS_COMPLETE", true, 2500)
MinigameSetErrandCompletion(32, "AS_FAIL", false, 0, "AS_TRY_AGAIN")
MinigameSetErrandCompletion(33, "AS_COMPLETE", true, 1000)
MinigameSetErrandCompletion(33, "AS_FAIL", false, 0, "AS_TRY_AGAIN")
MinigameSetErrandCompletion(34, "AS_COMPLETE", true, 1000)
MinigameSetErrandCompletion(34, "AS_FAIL", false, 0, "AS_TRY_AGAIN")
MinigameSetErrandCompletion(35, "AS_COMPLETE", true, 3000)
MinigameSetErrandCompletion(35, "AS_FAIL", false, 0, "AS_TRY_AGAIN")
MinigameSetErrandCompletion(36, "AS_COMPLETE", true, 1500)
MinigameSetErrandCompletion(36, "AS_FAIL", false, 0, "AS_TRY_AGAIN")
MinigameSetErrandCompletion(37, "AS_COMPLETE", true, 3000)
MinigameSetErrandCompletion(37, "AS_FAIL", false, 0, "AS_TRY_AGAIN")
MinigameSetErrandCompletion(38, "AS_COMPLETE", true, 2500)
MinigameSetErrandCompletion(38, "AS_FAIL", false, 0, "AS_TRY_AGAIN")
MinigameSetErrandCompletion(39, "AS_COMPLETE", true, 1500)
MinigameSetErrandCompletion(39, "AS_FAIL", false, 0, "AS_TRY_AGAIN")
MinigameSetErrandCompletion(4, "AS_COMPLETE", true, 1500)
MinigameSetErrandCompletion(4, "AS_FAIL", false, 0, "AS_TRY_AGAIN")
MinigameSetErrandCompletion(40, "AS_COMPLETE", true, 2000)
MinigameSetErrandCompletion(40, "AS_FAIL", false, 0, "AS_TRY_AGAIN")
MinigameSetErrandCompletion(41, "AS_COMPLETE", true, 0, "AS_COWBOY")
MinigameSetErrandCompletion(41, "AS_FAIL", false, 0, "AS_TRY_AGAIN")
MinigameSetErrandCompletion(42, "AS_COMPLETE", true, 2000, "AS_SI_UNLOCK")
MinigameSetErrandCompletion(42, "AS_FAIL", false, 0, "AS_NO_TIME")
MinigameSetErrandCompletion(42, "AS_FAIL", false, 0, "AS_TRY_AGAIN")
MinigameSetErrandCompletion(43, "AS_COMPLETE", true, 2500)
MinigameSetErrandCompletion(43, "AS_FAIL", false, 0, "AS_TRY_AGAIN")
MinigameSetErrandCompletion(44, "AS_COMPLETE", true, 2000)
MinigameSetErrandCompletion(44, "AS_FAIL", false, 0, "AS_TRY_AGAIN")
MinigameSetErrandCompletion(45, "AS_COMPLETE", true, 1000)
MinigameSetErrandCompletion(45, "AS_FAIL", false, 0, "AS_TRY_AGAIN")
MinigameSetErrandCompletion(46, "AS_COMPLETE", true, 2500)
MinigameSetErrandCompletion(46, "AS_FAIL", false, 0, "AS_TRY_AGAIN")
MinigameSetErrandCompletion(47, "AS_COMPLETE", true, 2500)
MinigameSetErrandCompletion(47, "AS_FAIL", false, 0, "AS_TRY_AGAIN")
MinigameSetErrandCompletion(48, "AS_COMPLETE", true, 2000)
MinigameSetErrandCompletion(48, "AS_FAIL", false, 0, "AS_TRY_AGAIN")
MinigameSetErrandCompletion(49, "AS_COMPLETE", true, 1500)
MinigameSetErrandCompletion(49, "AS_FAIL", false, 0, "AS_TRY_AGAIN")
MinigameSetErrandCompletion(5, "AS_COMPLETE", true, 3000)
MinigameSetErrandCompletion(5, "AS_FAIL", false, 0, "AS_TRY_AGAIN")
MinigameSetErrandCompletion(6, "AS_COMPLETE", true, 1500)
MinigameSetErrandCompletion(6, "AS_FAIL", false, 0, "AS_TRY_AGAIN")
MinigameSetErrandCompletion(7, "AS_COMPLETE", true, 2000)
MinigameSetErrandCompletion(7, "AS_FAIL", false, 0, "AS_TRY_AGAIN")
MinigameSetErrandCompletion(8, "AS_COMPLETE", true, 1000)
MinigameSetErrandCompletion(8, "AS_FAIL", false, 0, "AS_TRY_AGAIN")
MinigameSetErrandCompletion(9, "AS_COMPLETE", true, 2000)
MinigameSetErrandCompletion(9, "AS_FAIL", false, 0, "AS_TRY_AGAIN")
sub esp, 0xC
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x1C]
push edi
xor ebp, ebp
push ebp
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetString
push 0x2
push esi
mov dword ptr [esp+0x30], eax
call LuaParam::GetBool
push esi
mov byte ptr [esp+0x30], al
mov dword ptr [esp+0x2C], ebp
xor ebx, ebx
call LuaParam::GetParamCount
add esp, 0x1C
cmp eax, 0x4
jl 0x41
push 0x3
push esi
call LuaParam::GetInt
push esi
mov dword ptr [esp+0x1C], eax
call LuaParam::GetParamCount
add esp, 0xC
cmp eax, 0x5
jl 0x27
push 0x4
push esi
call LuaParam::GetString
push esi
mov ebx, eax
call LuaParam::GetParamCount
add esp, 0xC
cmp eax, 0x6
jl 0xF
push 0x5
push esi
call LuaParam::GetInt
add esp, 0x8
mov ebp, eax
cmp byte ptr [esp+0x14], 0x0
jz 0x14
mov eax, dword ptr [esp+0x10]
push eax
push 0xD8
call 0x458480
add esp, 0x8
mov ecx, dword ptr [0xC67558]
fild st, dword ptr [esp+0x10]
mov edx, dword ptr [esp+0x14]
mov eax, dword ptr [esp+0x18]
push ebp
add ecx, 0x38
push ecx
push ebx
push ecx
fstp dword ptr [esp], st
push edx
push eax
call 0x7074E0
mov ecx, dword ptr [0x20CE75C]
add esp, 0x18
cmp byte ptr [ecx+0x270], 0x0
jz 0x21
cmp dword ptr [0x20C8730], 0x0
jnz 0x18
fldz
mov byte ptr [0x20C87A8], 0x0
fstp dword ptr [0x20C87A0], st
mov byte ptr [0x20C870B], 0x0
test edi, edi
jl 0x44
push edi
mov ecx, 0xC1AEA8
call 0x4467B0
add eax, 0x1
push eax
push edi
mov ecx, 0xC1AEA8
call 0x446790
cmp byte ptr [esp+0x14], 0x0
jz 0x1C
push edi
mov ecx, 0xC1AEA8
call 0x4467E0
add eax, 0x1
push eax
push edi
mov ecx, 0xC1AEA8
call 0x4467C0
mov byte ptr [0x20C87AA], 0x1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xC
ret
MinigameSetGrades(0, gGrade - 1)
MinigameSetGrades(1, gGrade - 1)
MinigameSetGrades(2, tblClasses1[nCurrentClass].grade - 1)
MinigameSetGrades(2, tblClasses1[nCurrentClass].grade)
MinigameSetGrades(2, tblClasses[nCurrentClass].grade - 1)
MinigameSetGrades(2, tblClasses[nCurrentClass].grade)
MinigameSetGrades(3, tblClasses[nCurrentClass].grade - 1)
MinigameSetGrades(3, tblClasses[nCurrentClass].grade)
MinigameSetGrades(4, tblClasses[nCurrentClass].grade - 1)
MinigameSetGrades(4, tblClasses[nCurrentClass].grade)
MinigameSetGrades(5, tblClasses[nCurrentClass].grade - 1)
MinigameSetGrades(5, tblClasses[nCurrentClass].grade)
MinigameSetGrades(6, gGrade - 1)
MinigameSetGrades(7, gGrade - 1)
MinigameSetGrades(8, gGrade - 1)
MinigameSetGrades(9, gGrade - 1)
push esi
mov esi, dword ptr [esp+0x8]
push edi
push esi
xor edi, edi
call LuaParam::GetParamCount
add esp, 0x4
cmp eax, 0x3
jl 0xF
push 0x2
push esi
call LuaParam::GetString
add esp, 0x8
mov edi, eax
push edi
push 0x1
push esi
call LuaParam::GetInt
add esp, 0x8
push eax
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x8
push eax
call 0x7052B0
add esp, 0xC
pop edi
xor eax, eax
pop esi
ret
-- never used
sub esp, 0x8
push esi
mov esi, dword ptr [esp+0x10]
push 0x2
push esi
call LuaParam::GetString
mov cl, byte ptr [eax]
add esp, 0x8
xor edx, edx
test cl, cl
jz 0x21
jmp 0x5
lea ecx, ptr [ecx]
cmp edx, 0x3
jnl 0x17
movsx cx, cl
add eax, 0x1
mov word ptr [esp+edx*2+0x4], cx
mov cl, byte ptr [eax]
add edx, 0x1
test cl, cl
jnz 0xFFFFFFE8
mov word ptr [esp+edx*2+0x4], 0x0
lea edx, ptr [esp+0x4]
push edx
push 0x1
push esi
call LuaParam::GetInt
add esp, 0x8
push eax
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x8
push eax
call 0x705CE0
push eax
push esi
call LuaParam::PushInt
add esp, 0x14
mov eax, 0x1
pop esi
add esp, 0x8
ret
flashscore = 1 + MinigameSetHighScoreFromID(1, gScore, "ARCADE_JIM")
flashscore = 1 + MinigameSetHighScoreFromID(2, gScore, "ARCADE_JIM")
flashscore = 1 + MinigameSetHighScoreFromID(gHighScoreConst, gScore, "ARCADE_JIM")
sub esp, 0x8
push esi
mov esi, dword ptr [esp+0x10]
push 0x4
push 0x2
push esi
call LuaParam::GetString
add esp, 0x8
push eax
mov ecx, 0x20C2FA4
call 0x68FE80
push eax
lea eax, ptr [esp+0xC]
push eax
call 0x688ED0
add esp, 0xC
lea ecx, ptr [esp+0x4]
push ecx
push 0x1
push esi
mov word ptr [esp+0x16], 0x0
call LuaParam::GetInt
add esp, 0x8
push eax
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x8
push eax
call 0x705CE0
push eax
push esi
call LuaParam::PushInt
add esp, 0x14
mov eax, 0x1
pop esi
add esp, 0x8
ret
-- never used
xor eax, eax
ret
MinigameSetUberCompletion()
mov eax, dword ptr [0x20CE75C]
cmp byte ptr [eax+0x270], 0x0
jnz 0x9
mov byte ptr [0x20C87A8], 0x1
xor eax, eax
ret
MinigameStart()
MinigameStart()
push ecx
mov eax, dword ptr [0x20C8704]
test eax, eax
jz 0x29
cmp byte ptr [eax+0x4], 0x0
jnz 0x23
call 0x43AC10
mov ecx, dword ptr [0x20C8704]
mov byte ptr [esp], al
mov eax, dword ptr [ecx]
mov edx, dword ptr [eax+0x10]
call 0x708C95
mov eax, dword ptr [esp]
push eax
call 0x43BE40
add esp, 0x4
xor eax, eax
pop ecx
ret
if MiniObjectiveGetIsComplete(1) then
if MiniObjectiveGetIsComplete(16) then
if MiniObjectiveGetIsComplete(16) ~= true then
if not MiniObjectiveGetIsComplete(0) then
if not MiniObjectiveGetIsComplete(13) and CollectiblesGetNumCollectable(3) == CollectiblesGetNumCollected(3) and CollectiblesGetNumCollectable(0) == CollectiblesGetNumCollected(0) and CollectiblesGetNumCollectable(2) == CollectiblesGetNumCollected(2) and CollectiblesGetNumCollectable(5) == CollectiblesGetNumCollected(5) and CollectiblesGetNumCollectable(4) == CollectiblesGetNumCollected(4) and CollectiblesGetNumCollectable(1) == CollectiblesGetNumCollected(1) then
if PlayerGetMoney() >= 50 or MiniObjectiveGetIsComplete(0) then
if YearbookIsFull() and not MiniObjectiveGetIsComplete(14) then
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, 0xC1AEA8
call 0x446860
mov byte ptr [esp+0x4], al
mov eax, dword ptr [esp+0x4]
push eax
push esi
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
pop esi
pop ecx
ret
MiniObjectiveOnCompletedCallback(CB_MiniObjectiveCompleted)
mov eax, dword ptr [esp+0x4]
push 0xC1B174
push 0x0
push eax
call 0x5DA060
add esp, 0xC
xor eax, eax
ret
MiniObjectiveSetIsComplete(13)
MiniObjectiveSetIsComplete(14)
MiniObjectiveSetIsComplete(15)
MiniObjectiveSetIsComplete(16)
MiniObjectiveSetIsComplete(18)
MiniObjectiveSetIsComplete(19)
MiniObjectiveSetIsComplete(3)
MiniObjectiveSetIsComplete(4)
MiniObjectiveSetIsComplete(5)
MiniObjectiveSetIsComplete(6)
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetInt
push esi
mov edi, eax
mov byte ptr [esp+0x14], 0x1
call 0x73AEA0
add esp, 0xC
cmp eax, 0x2
jl 0x11
push 0x1
push esi
call LuaParam::GetBool
add esp, 0x8
mov byte ptr [esp+0x8], al
mov eax, dword ptr [esp+0x8]
push eax
push edi
mov ecx, 0xC1AEA8
call 0x4467F0
pop edi
xor eax, eax
pop esi
pop ecx
ret
elseif bPoliceDropPlayerOffNIS and not MissionActive() then
if 8 <= exphour and exphour < 19 and not MissionActive() and GetTimer() - nTimerStarted > 240000 then
if bFootballThread == true and bFootballEvents == false and (not MissionActive() or shared.bFootBallFieldEnabled) then
if bLaunchPrincipalMission == true and not MissionActive() then
if bPeteyCreatedAndWaiting and (not (not MissionActive() and PlayerIsInTrigger(TRIGGER._PETEYPIER)) or not IsMissionAvailable("2_09")) then
if bSentToClass == true and not MissionActive() then
if ClothingIsWearingAnyOutfit() == false and AreaGetVisible() == 0 and not MissionActive() then
if gPausedGameClock and not MissionActive() and not IsMissionAvailable("3_08") and not IsMissionAvailable("6_01") then
if hour <= 19 and 7 <= hour and not MissionActive() then
if IsMissionAvailable("2_06") and not MissionActive() and ClockGet() >= 8 and ClockGet() < 20 and not shared.b2_06Failed and not shared.bMovieTicketLine and PlayerIsInAreaXYZ(346.873, 218.43, 4.95147, 50, 0) then
if IsMissionAvailable("2_09") and not MissionActive() and not bPeteyCreatedAndWaiting and PlayerIsInTrigger(TRIGGER._PETEYPIER) then
if IsMissionCompleated("1_02C") and not MissionActive() and gPausedClock then
if IsMissionCompleated("1_02C") and not MissionActive() and not ClockIsPaused() then
if IsMissionCompleated("1_09") and not MissionActive() and not IsMissionCompleated("1_11x1") then
if MissionActive() and ObjectiveMet == false then
if MissionActive() then
if not MissionActive() and 7 <= hour and hour < 9 then
if not MissionActive() and AreaGetVisible() == 0 and shared.gAreaDATFileLoaded[0] == true then
if not MissionActive() and GetTimer() - nTimerStarted > 120000 then
if not MissionActive() and gPausedClock then
if not MissionActive() and not ClockIsPaused() and not IsMissionAvailable("3_08") and not IsMissionAvailable("6_01") then
if not MissionActive() and not ClockIsPaused() then
if not MissionActive() and not IsMissionCompleated("1_E01") and not PlayerIsInTrigger(TRIGGER._PLAYER_ROOM) and not bLaunchErrandTut and IsMissionCompleated("1_05") and ClockGet() >= 8 and ClockGet() <= 18 then
if not MissionActive() and shared.gCurrentAmbientScenario == nil and not ClothingIsWearingOutfit("Mascot") then
if not MissionActive() or not bMissionRunning then
if not MissionActive() or shared.gMissionEventFunction == nil then
if not MissionActive() then
if not PedInConversation(gPlayer) and not MissionActive() then
if PedIsValid(ScenarioPed) == true and AreaGetVisible() == 0 and PedGetFlag(ScenarioPed, 110) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and F_PedIsDead(ScenarioPed) == false and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedGetFlag(ScenarioPed, 110) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and (AreaGetVisible() == 2 or AreaGetVisible() == 8) and OutOfRange == false and bFailDueToLackOfRoll == false then
if PedIsValid(ScenarioPed) == true and PedGetFlag(ScenarioPed, 110) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and bAlarmAlreadyOn == false and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedGetFlag(ScenarioPed, 110) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and bSpotted == false and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedGetFlag(ScenarioPed, 110) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and F_CheckIfPlayerHasEggs() == true and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedGetFlag(ScenarioPed, 110) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and leftArea == false and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedGetFlag(ScenarioPed, 110) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedGetFlag(ScenarioPed, 110) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(gPlayer) == false and PedIsDead(ScenarioPed) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedGetFlag(ScenarioPed, 110) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(ScenarioPed) == false and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and F_CheckIfPlayerHasChocolates() == true and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedGetFlag(ScenarioPed, 110) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(ScenarioPed) == false and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedGetFlag(ScenarioPed, 110) == true and PedIsDead(ScenarioPed) == false and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedGetWhoHitMeLast(ScenarioPed) ~= gPlayer and PedGetFlag(ScenarioPed, 110) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and F_CheckIfPlayerHasCherryBomb() == true and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedHasPOI(ScenarioPed) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and shared.gBusTransition == nil and OutOfRange == false then
if shared.bMovieTicketLine and (not (not MissionActive() and PlayerIsInAreaXYZ(346.873, 218.43, 4.95147, 55, 0)) or not IsMissionAvailable("2_06")) then
if shared.gRefreshRacePosters and not MissionActive() then
if shared.passed1_02C == true and GetMissionAttemptCount("C_Chem_1") == 0 and not MissionActive() then
while bMissionRunning and MissionActive() do
while bMissionRunning and waveCount > processedCount and MissionActive() do
while gMissionState == MISSION_RUNNING and MissionActive() do
while mission_running and MissionActive() do
while MissionActive() and AreaGetVisible() ~= 2 do
while MissionActive() and bBreakerAlive do
while MissionActive() and bMonitorPlayersHealth do
while MissionActive() and bNotGotEverything do
while MissionActive() and bPlayerHitGord == false do
while MissionActive() do
while not (not (MissionActive() and bGetBack) or PlayerIsInAreaXYZ(theaterX, theaterY, theaterZ, 7.5, 0)) do
while not (not (MissionActive() and PedIsValid(gFatty)) or bPointOfNoReturn) do
while not (not (MissionActive() and PedIsValid(idNemesis)) or PedIsInTrigger(idNemesis, TRIGGER._1_04_NEMSITDOWN) or bHasFailedElsewhere) do
while not (not MissionActive() or bDoorDead) do
while not (not MissionActive() or bEuniceShmecked or bFailedDueToViolence) do
while not (not MissionActive() or bFailedDueToViolence) do
while not (not MissionActive() or bFattyInTheCan) do
while not (not MissionActive() or bFoundJohnny) and AreaGetVisible() == 38 do
while not (not MissionActive() or bGetIntoAsylum or bFailedDueToViolence) do
while not (not MissionActive() or bGetToGalloway or bFailedDueToViolence) do
while not (not MissionActive() or bGotInfo) do
while not (not MissionActive() or bHasFailedElsewhere) do
while not (not MissionActive() or bHitFromTree or bHasFailedElsewhere) do
while not (not MissionActive() or bKeyCodeGiven) do
while not (not MissionActive() or bLightsOut or bFailedDueToViolence) do
while not (not MissionActive() or bOnSpudCannon) do
while not (not MissionActive() or bottles_all_broken or bHasFailedElsewhere) do
while not (not MissionActive() or bPlayerHasOutfit) do
while not (not MissionActive() or bPlayerSpotted or gTreeFailure or bHasFailedElsewhere) do
while not (not MissionActive() or bS2M1Destroyed and bS2M2Destroyed) do
while not (not MissionActive() or bS3M1Destroyed and bS3M2Destroyed) do
while not (not MissionActive() or bStoleBike or bFailedDueToViolence) do
while not (not MissionActive() or bUnlockLine) do
while not (not MissionActive() or bWave01Engaged) do
while not (not MissionActive() or bWave02Engaged) do
while not (not MissionActive() or bWave03Engaged) do
while not (not MissionActive() or bWave04Engaged) do
while not (not MissionActive() or bWave3Dead) do
while not (not MissionActive() or gSleepingOrderly == nil or bPlayerSpotted) do
while not (not MissionActive() or missionOver) do
while not (not MissionActive() or PlayerIsInTrigger(TRIGGER._4_S12_MSPHILLIPS)) do
mov ecx, 0x20C3CA0
call 0x6AA7E0
push eax
mov eax, dword ptr [esp+0x8]
push eax
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
ret
elseif F_AnyRaceFinished() and not MissionActiveSpecific("2_04") then
elseif MissionActiveSpecific("1_02A") then
elseif MissionActiveSpecific("1_02B") and PlayerIsInAreaXYZ(-604, -304.8, 0, 5, 0) then
elseif not MissionActiveSpecific("5_05") then
elseif shared.BoxingSuccess == 0 and not MissionActiveSpecific(gFightMission) then
elseif shared.DodgeballSuccess == 0 and not MissionActiveSpecific("C_Dodgeball_5") then
if (MissionActiveSpecific("2_03") or MissionActiveSpecific2("2_R11_Chad") or MissionActiveSpecific2("2_R11_Justin") or MissionActiveSpecific2("2_R11_Parker") or MissionActiveSpecific2("2_R11_Bryce") or MissionActiveSpecific2("2_R11_Random") or MissionActiveSpecific("3_R09_P3") or MissionActiveSpecific("2_09") or MissionActiveSpecific("2_B")) and EventsKilled == false then
if IsMissionCompleated("3_08") or not IsMissionCompleated("Chapt2Trans") and not MissionActiveSpecific("Chapt2Trans") then
if IsMissionCompleated("5_01") or MissionActiveSpecific("5_02") then
if IsMissionCompleated(entry.race) or MissionActiveSpecific(entry.race) then
if MissionActiveSpecific("1_02A") or MissionActiveSpecific("1_11X1") then
if MissionActiveSpecific("1_11X1") then
if MissionActiveSpecific("2_03") or MissionActiveSpecific2("2_R11_Chad") or MissionActiveSpecific2("2_R11_Justin") or MissionActiveSpecific2("2_R11_Parker") or MissionActiveSpecific2("2_R11_Bryce") or MissionActiveSpecific2("2_R11_Random") or MissionActiveSpecific("3_R09_P3") or MissionActiveSpecific("2_09") or MissionActiveSpecific("2_B") then
if MissionActiveSpecific("2_07") and Area == 29 and shared.gCutsceneRunning then
if MissionActiveSpecific("2_08") and bLetPlayerIn and shared.gBif and PedIsValid(shared.gBif) then
if MissionActiveSpecific("2_08") and shared.gBif and PedIsValid(shared.gBif) then
if MissionActiveSpecific("2_08") and shared.gBif ~= nil and PedIsPlaying(shared.gBif, "/Global/PrepHouse/OpenFoyeurDoor/DoAnim", true) then
if MissionActiveSpecific("2_08") or MissionActiveSpecific("6_03") then
if MissionActiveSpecific("2_08") or MissionActiveSpecific2("2_08") then
if MissionActiveSpecific("2_08") then
if MissionActiveSpecific("2_G2") then
if MissionActiveSpecific("2_S06") or MissionActiveSpecific("4_01") or MissionActiveSpecific("6_03") then
if MissionActiveSpecific("3_08") then
if MissionActiveSpecific("3_08_Launch") then
if MissionActiveSpecific("4_03") or IsMissionCompleated("4_03") then
if MissionActiveSpecific("4_06") or MissionActiveSpecific("6_03") then
if MissionActiveSpecific("6_03") and shared.g6_03_GreasersAlive == true then
if MissionActiveSpecific("6_03") and shared.g6_03_JocksAlive == true then
if MissionActiveSpecific("6_03") and shared.g6_03_NerdsAlive == true then
if MissionActiveSpecific("6_03") and shared.g6_03_PreppiesAlive == true then
if MissionActiveSpecific("6_03") then
if MissionActiveSpecific("MGDunkTank") or MissionActiveSpecific2("MGDunkTank") then
if MissionActiveSpecific(entry) then
if not bResetting and MissionActiveSpecific("5_07a") then
if not IsMissionCompleated("BIKEPARK4X") and not MissionActiveSpecific("BIKEPARK4X") then
if not IsMissionCompleated("TRESPASSX") and not MissionActiveSpecific("TRESPASSX") then
if not MissionActiveSpecific("1_01") and not MissionActiveSpecific("1_02") and shared.gPrincipalCheck == true and SecretaryActive == true and BitchModelLoad == true then
if not MissionActiveSpecific("1_01") then
if not MissionActiveSpecific("1_06_01") then
if not MissionActiveSpecific("2_04") or not not MissionActiveSpecific("3_G3") then
if not MissionActiveSpecific("6_02") then
if not MissionActiveSpecific("6_03") then
if not MissionActiveSpecific("Chapt1Trans") and not MissionActiveSpecific("6_03") then
if not shared.hoboGateIndex and not MissionActiveSpecific("1_06_01") then
if shared.BoxingSuccess == 1 and not MissionActiveSpecific(gFightMission) then
if shared.ConSumoFinished and not MissionActiveSpecific("TrainASumo") then
if shared.DodgeballSuccess == 1 and not MissionActiveSpecific("C_Dodgeball_5") then
local m2g2Active = MissionActiveSpecific("2_G2")
storeAvailable = not IsMissionAvailable("3_R09_N") and not MissionActiveSpecific("3_R09_N")
while MissionActiveSpecific("6_PassAll") do
while not MissionActiveSpecific("3_08") do
while not MissionActiveSpecific("6_01") do
while not MissionActiveSpecific("6_PassAll") do
push ecx
push esi
push edi
mov edi, dword ptr [esp+0x10]
push 0x0
push edi
call LuaParam::GetString
add esp, 0x8
push eax
lea ecx, ptr [esp+0xC]
call 0x5FA910
lea eax, ptr [esp+0x8]
push eax
mov ecx, 0x20C3CA0
call 0x6A9FD0
mov ecx, 0x20C3CA0
mov esi, eax
call 0x6AA680
mov ecx, eax
call 0x6AA3F0
test al, al
jz 0x14
mov ecx, 0x20C3CA0
call 0x6AA680
cmp dword ptr [eax], esi
jnz 0x6
push 0x1
jmp 0x4
push 0x0
push edi
call LuaParam::PushBool
add esp, 0x8
lea ecx, ptr [esp+0x8]
call 0x49A650
pop edi
mov eax, 0x1
pop esi
pop ecx
ret
if (MissionActiveSpecific("2_03") or MissionActiveSpecific2("2_R11_Chad") or MissionActiveSpecific2("2_R11_Justin") or MissionActiveSpecific2("2_R11_Parker") or MissionActiveSpecific2("2_R11_Bryce") or MissionActiveSpecific2("2_R11_Random") or MissionActiveSpecific("3_R09_P3") or MissionActiveSpecific("2_09") or MissionActiveSpecific("2_B")) and EventsKilled == false then
if (not MissionActiveSpecific2("3_S11") or not MissionActiveSpecific("5_03")) and PlayerIsInTrigger(TRIGGER._ASYLUMPATROLS) then
if MissionActiveSpecific("2_03") or MissionActiveSpecific2("2_R11_Chad") or MissionActiveSpecific2("2_R11_Justin") or MissionActiveSpecific2("2_R11_Parker") or MissionActiveSpecific2("2_R11_Bryce") or MissionActiveSpecific2("2_R11_Random") or MissionActiveSpecific("3_R09_P3") or MissionActiveSpecific("2_09") or MissionActiveSpecific("2_B") then
if MissionActiveSpecific("2_08") or MissionActiveSpecific2("2_08") then
if MissionActiveSpecific("MGDunkTank") or MissionActiveSpecific2("MGDunkTank") then
push ecx
push esi
push edi
mov edi, dword ptr [esp+0x10]
push 0x0
push edi
call LuaParam::GetString
add esp, 0x8
push eax
lea ecx, ptr [esp+0xC]
call 0x5FA910
lea eax, ptr [esp+0x8]
push eax
mov ecx, 0x20C3CA0
call 0x6A9FD0
mov ecx, 0x20C3CA0
mov esi, eax
call 0x6AA690
mov ecx, eax
call 0x6AA3F0
test al, al
jz 0x14
mov ecx, 0x20C3CA0
call 0x6AA690
cmp dword ptr [eax], esi
jnz 0x6
push 0x1
jmp 0x4
push 0x0
push edi
call LuaParam::PushBool
add esp, 0x8
lea ecx, ptr [esp+0x8]
call 0x49A650
pop edi
mov eax, 0x1
pop esi
pop ecx
ret
MissionAllowAmbientTransitions(false)
MissionAllowAmbientTransitions(true)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetBool
mov byte ptr [0xC2B3A0], al
add esp, 0x8
xor eax, eax
ret
MissionAllowConcurrentMissions(false)
MissionAllowConcurrentMissions(true)
mov ecx, 0x20C3CA0
call 0x6AA680
mov ecx, eax
call 0x6AA430
test al, al
jz 0x22
mov eax, dword ptr [esp+0x4]
push ebx
push 0x0
push eax
call LuaParam::GetBool
add esp, 0x8
mov ecx, 0x20C3CA0
mov bl, al
call 0x6AA680
mov byte ptr [eax+0x1E], bl
pop ebx
xor eax, eax
ret
if MissionAskUserToStart() then
push ecx
push 0x1
mov ecx, 0x20C3CA0
call 0x6AC0F0
mov edx, dword ptr [esp+0x8]
test eax, eax
setz al
mov byte ptr [esp], al
mov ecx, dword ptr [esp]
push ecx
push edx
call LuaParam::PushBool
mov eax, 0x1
add esp, 0xC
ret
-- never used
push ecx
mov eax, dword ptr [esp+0x8]
push esi
push edi
push 0x0
push eax
call LuaParam::GetString
add esp, 0x8
push eax
lea ecx, ptr [esp+0xC]
call 0x5FA910
lea ecx, ptr [esp+0x8]
push ecx
mov ecx, 0x20C3CA0
call 0x6A9FD0
mov esi, eax
push esi
mov ecx, 0x20C3CA0
call 0x6AA7C0
movzx edi, word ptr [eax]
push esi
mov ecx, 0x20C3CA0
call 0x6AA7C0
add edi, 0x1
lea ecx, ptr [esp+0x8]
mov word ptr [eax], di
call 0x49A650
pop edi
xor eax, eax
pop esi
pop ecx
ret
MissionClearDisablePedTypes()
mov ecx, dword ptr [0xC2C108]
call 0x49C610
xor eax, eax
ret
MissionDisablePedType(11, true)
push ebx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetInt
mov ebx, dword ptr [0xC2C108]
push 0x1
push esi
mov edi, eax
call LuaParam::GetBool
add esp, 0x10
mov ecx, ebx
push eax
push edi
call 0x49C5F0
pop edi
pop esi
xor eax, eax
pop ebx
ret
MissionDontFadeIn()
mov ecx, 0x20C3CA0
call 0x6AA710
mov byte ptr [eax+0x11], 0x1
xor eax, eax
ret
MissionDontFadeInAfterCompetion()
mov ecx, 0x20C3CA0
call 0x6AA710
mov byte ptr [eax+0x12], 0x1
xor eax, eax
ret
--DebugPrint("call MissionFail()")
--DebugPrint("retfrom MissionFail()")
--print(">>>[RUI]", "MAIN MissionFail(true, false)")
--print(">>>[RUI]", "MAIN MissionFail(true, false, gFailMessage)")
--print(">>>[RUI]", "MAIN MissionFail(true, true, gFailMessage)")
--print(">>>[RUI]", "MissionFail handled")
MissionFail()
MissionFail(fade, true)
MissionFail(fadeout, true)
MissionFail(fadeout, true, gFailMessage)
MissionFail(false)
MissionFail(false, false)
MissionFail(false, false, "3_R09_Sfail")
MissionFail(false, false, "3_R09_Tournament")
MissionFail(false, false, false)
MissionFail(false, true)
MissionFail(false, true, "1_02C_FAIL_01")
MissionFail(false, true, "1_04_BURTON_KO")
MissionFail(false, true, "1_04_KO_GARY")
MissionFail(false, true, "1_04_SPOTTED")
MissionFail(false, true, "1_04_TREE_FAIL")
MissionFail(false, true, "1_04_WRONG_GUN")
MissionFail(false, true, "1_05_FAIL_01")
MissionFail(false, true, "1_05_FAIL_02")
MissionFail(false, true, "1_05_FAIL_03")
MissionFail(false, true, "1_08_BEAHIT")
MissionFail(false, true, "1_08_BEAKO")
MissionFail(false, true, "1_11X2_FAIL_01")
MissionFail(false, true, "2_02_FAIL_01")
MissionFail(false, true, "2_02_FAIL_02")
MissionFail(false, true, "2_04_FAILOWNER")
MissionFail(false, true, "2_04_FAILPETE")
MissionFail(false, true, "2_04_FAILRACER")
MissionFail(false, true, "2_06_GORDKO")
MissionFail(false, true, "2_06_PINKYHURT")
MissionFail(false, true, "2_06_VIOLENCE")
MissionFail(false, true, "2_07_FAIL")
MissionFail(false, true, "2_G2_FAIL_01")
MissionFail(false, true, "2_G2_FAIL_02")
MissionFail(false, true, "2_G2_FAIL_03")
MissionFail(false, true, "2_G2_FAIL_04")
MissionFail(false, true, "2_G2_FAIL_05")
MissionFail(false, true, "2_S04_FAIL01")
MissionFail(false, true, "2_S06_FAIL_01")
MissionFail(false, true, "2_S06_FAIL_02")
MissionFail(false, true, "3_01A_FAIL_01")
MissionFail(false, true, "3_01A_FAIL_02")
MissionFail(false, true, "3_01A_FAIL_03")
MissionFail(false, true, "3_01C_FAIL_01")
MissionFail(false, true, "3_01D_FAIL_01")
MissionFail(false, true, "3_02_GORDKO")
MissionFail(false, true, "3_02_JOHNNYKO")
MissionFail(false, true, "3_02_OUTOFRANGE")
MissionFail(false, true, "3_02_OUTOFTIME")
MissionFail(false, true, "3_04_FAIL_01")
MissionFail(false, true, "3_04_FAIL_02")
MissionFail(false, true, "3_04_FAIL_03")
MissionFail(false, true, "3_04_FAIL_04")
MissionFail(false, true, "3_05_HITLOLA")
MissionFail(false, true, "3_06_LEFTTRIG")
MissionFail(false, true, "3_06_PEANUTRAN")
MissionFail(false, true, "3_R05B_FAIL_02")
MissionFail(false, true, "3_R09_Left")
MissionFail(false, true, "3_S03_FAIL_01")
MissionFail(false, true, "3_S03_FAIL_02")
MissionFail(false, true, "3_S03_FAIL_03")
MissionFail(false, true, "4_01_FAIL_01")
MissionFail(false, true, "4_01_FAIL_02")
MissionFail(false, true, "4_01_FAIL_03")
MissionFail(false, true, "4_04_FAIL03")
MissionFail(false, true, "4_05_FAIL_01")
MissionFail(false, true, "4_05_FAIL_02")
MissionFail(false, true, "4_G4_FAILLEFT")
MissionFail(false, true, "4_G4_MANDHIT")
MissionFail(false, true, "4_G4_TIMEUP")
MissionFail(false, true, "4_S12_PHILIPS_HURT")
MissionFail(false, true, "5_03_AREAFAIL")
MissionFail(false, true, "5_05_FAILRUN")
MissionFail(false, true, "5_06_09")
MissionFail(false, true, "5_09_FAILSPRAY")
MissionFail(false, true, "5_G5_FAIL_01")
MissionFail(false, true, "5_G5_LOST")
MissionFail(false, true, "6_02_RUSSKO")
MissionFail(false, true, "6_B_FAIL_01")
MissionFail(false, true, "6_B_FAIL_02")
MissionFail(false, true, "6_B_FAIL_03")
MissionFail(false, true, "AS_NO_TIME")
MissionFail(false, true, "CMN_STR_06")
MissionFail(false, true, gFailMessage)
MissionFail(false, true, strFailReason)
MissionFail(false, true, szFailMessage)
MissionFail(false, true, szFailReason)
MissionFail(false, true, szMissionFailReason)
MissionFail(false, true, szMissionReason)
MissionFail(true)
MissionFail(true, false)
MissionFail(true, false, false)
MissionFail(true, false, gFailMessage)
MissionFail(true, true)
MissionFail(true, true, "1_02A_GARYHAR")
MissionFail(true, true, "1_02A_GARYKO")
MissionFail(true, true, "1_02B_FAIL_01")
MissionFail(true, true, "1_02B_FAIL_02")
MissionFail(true, true, "1_02B_FAIL_03")
MissionFail(true, true, "1_02B_FAIL_04")
MissionFail(true, true, "1_02B_FAIL_05")
MissionFail(true, true, "1_11X1_FAIL_01")
MissionFail(true, true, "1_11X2_FAIL_02")
MissionFail(true, true, "3_01D_FAIL_04")
MissionFail(true, true, "3_G3_FAILHIT")
MissionFail(true, true, "3_R09_Dodgeball")
MissionFail(true, true, "3_R09_Failed")
MissionFail(true, true, "3_R09_Nfail")
MissionFail(true, true, "3_XM_FAIL_AREA")
MissionFail(true, true, "3_XM_FAIL_TIME")
MissionFail(true, true, "4_04_FATTYDIED")
MissionFail(true, true, "4_04_THADIED")
MissionFail(true, true, "5_G5_FAIL_01")
MissionFail(true, true, "6_03_FAILLEAVE")
MissionFail(true, true, "6_03_RUSSDIED")
MissionFail(true, true, "6_B_FAIL_02")
MissionFail(true, true, "M_FAIL_DEAD")
MissionFail(true, true, "PUN_02")
MissionFail(true, true, failMessage)
MissionFail(true, true, gFailingMessage)
MissionFail(true, true, gFailMessage)
MissionFail(true, true, gMissionFailMessage)
MissionFail(true, true, szFailReason)
sub esp, 0x8
push esi
mov esi, dword ptr [esp+0x10]
push edi
push esi
mov byte ptr [esp+0xC], 0x1
call LuaParam::GetParamCount
add esp, 0x4
cmp eax, 0x1
jl 0x11
push 0x0
push esi
call LuaParam::GetBool
add esp, 0x8
mov byte ptr [esp+0x8], al
push esi
mov byte ptr [esp+0x10], 0x1
xor edi, edi
call LuaParam::GetParamCount
add esp, 0x4
cmp eax, 0x2
jl 0x11
push 0x1
push esi
call LuaParam::GetBool
add esp, 0x8
mov byte ptr [esp+0xC], al
push esi
call LuaParam::GetParamCount
add esp, 0x4
cmp eax, 0x3
jl 0xF
push 0x2
push esi
call LuaParam::GetString
add esp, 0x8
mov edi, eax
mov ecx, 0x20C3CA0
call 0x6AA710
mov ecx, 0x20C3CA0
mov esi, eax
call 0x6AA680
cmp esi, eax
mov esi, dword ptr [esp+0x8]
jnz 0x43
mov ecx, 0x20C3CA0
call 0x6AA690
mov ecx, eax
call 0x6AA430
test al, al
jz 0x2E
push 0x0
push 0x0
push 0x0
push esi
push 0x0
push 0x0
push 0x0
mov ecx, 0x20C3CA0
call 0x6AA690
mov ecx, eax
call 0x6AA300
mov ecx, 0x20C3CA0
call 0x6AA690
mov byte ptr [eax+0x15], 0x1
mov eax, dword ptr [esp+0xC]
push 0x0
push edi
push eax
push esi
push 0x0
push 0x0
push 0x0
mov ecx, 0x20C3CA0
call 0x6AA710
mov ecx, eax
call 0x6AA300
pop edi
xor eax, eax
pop esi
add esp, 0x8
ret
MissionForceCompleted("1_01")
MissionForceCompleted("1_02")
MissionForceCompleted("1_02A")
MissionForceCompleted("1_02B")
MissionForceCompleted("1_02B_Dummy")
MissionForceCompleted("1_02C")
MissionForceCompleted("1_03")
MissionForceCompleted("1_04")
MissionForceCompleted("1_05")
MissionForceCompleted("1_06_01")
MissionForceCompleted("1_06_02")
MissionForceCompleted("1_06_03")
MissionForceCompleted("1_06_04")
MissionForceCompleted("1_06_07")
MissionForceCompleted("1_06_08")
MissionForceCompleted("1_07")
MissionForceCompleted("1_08")
MissionForceCompleted("1_09")
MissionForceCompleted("1_10")
MissionForceCompleted("1_11_Dummy")
MissionForceCompleted("1_11_HallStrt")
MissionForceCompleted("1_11x1")
MissionForceCompleted("1_11x2")
MissionForceCompleted("1_11x2Unlock")
MissionForceCompleted("1_11xp")
MissionForceCompleted("1_B")
MissionForceCompleted("1_E01")
MissionForceCompleted("1_G1")
MissionForceCompleted("1_S01")
MissionForceCompleted("2_01")
MissionForceCompleted("2_02")
MissionForceCompleted("2_03")
MissionForceCompleted("2_04")
MissionForceCompleted("2_05")
MissionForceCompleted("2_06")
MissionForceCompleted("2_07")
MissionForceCompleted("2_08")
MissionForceCompleted("2_09")
MissionForceCompleted("2_B")
MissionForceCompleted("2_G2")
MissionForceCompleted("2_R03")
MissionForceCompleted("2_R03_X")
MissionForceCompleted("2_R11_Bryce")
MissionForceCompleted("2_R11_Chad")
MissionForceCompleted("2_R11_Justin")
MissionForceCompleted("2_R11_Parker")
MissionForceCompleted("2_R11_Random")
MissionForceCompleted("2_S02")
MissionForceCompleted("2_S04")
MissionForceCompleted("2_S05")
MissionForceCompleted("2_S05B")
MissionForceCompleted("2_S06")
MissionForceCompleted("3_01")
MissionForceCompleted("3_02")
MissionForceCompleted("3_04")
MissionForceCompleted("3_05")
MissionForceCompleted("3_06")
MissionForceCompleted("3_08")
MissionForceCompleted("3_08_Launch")
MissionForceCompleted("3_08_PostDummy")
MissionForceCompleted("3_B")
MissionForceCompleted("3_G3")
MissionForceCompleted("3_R08_Business1")
MissionForceCompleted("3_R08_Business2")
MissionForceCompleted("3_R08_Business3")
MissionForceCompleted("3_R08_Business4")
MissionForceCompleted("3_R08_Poor1")
MissionForceCompleted("3_R08_Poor2")
MissionForceCompleted("3_R08_Rich1")
MissionForceCompleted("3_R08_Rich2")
MissionForceCompleted("3_R08_Rich3")
MissionForceCompleted("3_R08_Rich4")
MissionForceCompleted("3_R08_Rich5")
MissionForceCompleted("3_R08_Rich6")
MissionForceCompleted("3_R08_Rich7")
MissionForceCompleted("3_R08_School1")
MissionForceCompleted("3_R09_D3")
MissionForceCompleted("3_R09_G3")
MissionForceCompleted("3_R09_J3")
MissionForceCompleted("3_R09_N")
MissionForceCompleted("3_R09_P3")
MissionForceCompleted("3_S03")
MissionForceCompleted("3_S10")
MissionForceCompleted("3_S11")
MissionForceCompleted("4_01")
MissionForceCompleted("4_02")
MissionForceCompleted("4_03")
MissionForceCompleted("4_04")
MissionForceCompleted("4_05")
MissionForceCompleted("4_06")
MissionForceCompleted("4_B1")
MissionForceCompleted("4_B2")
MissionForceCompleted("4_G4")
MissionForceCompleted("4_S12")
MissionForceCompleted("5_01")
MissionForceCompleted("5_02")
MissionForceCompleted("5_03")
MissionForceCompleted("5_04")
MissionForceCompleted("5_05")
MissionForceCompleted("5_06")
MissionForceCompleted("5_07a")
MissionForceCompleted("5_09")
MissionForceCompleted("5_B")
MissionForceCompleted("5_G5")
MissionForceCompleted("6_01")
MissionForceCompleted("6_01_Launch")
MissionForceCompleted("6_02")
MissionForceCompleted("6_03")
MissionForceCompleted("6_B")
MissionForceCompleted("6_Dummy")
MissionForceCompleted("6_PassAll")
MissionForceCompleted("Art1X")
MissionForceCompleted("C_Art_1")
MissionForceCompleted("C_Art_2")
MissionForceCompleted("C_Art_3")
MissionForceCompleted("C_Art_4")
MissionForceCompleted("C_Art_5")
MissionForceCompleted("C_Art_5_repeat")
MissionForceCompleted("C_Chem_1")
MissionForceCompleted("C_Chem_2")
MissionForceCompleted("C_Chem_3")
MissionForceCompleted("C_Chem_4")
MissionForceCompleted("C_Chem_5")
MissionForceCompleted("C_Chem_5_repeat")
MissionForceCompleted("C_Dodgeball_1")
MissionForceCompleted("C_Dodgeball_2")
MissionForceCompleted("C_Dodgeball_3")
MissionForceCompleted("C_Dodgeball_4")
MissionForceCompleted("C_Dodgeball_5")
MissionForceCompleted("C_English_1")
MissionForceCompleted("C_English_2")
MissionForceCompleted("C_English_3")
MissionForceCompleted("C_English_4")
MissionForceCompleted("C_English_5")
MissionForceCompleted("C_English_5_unlocked")
MissionForceCompleted("C_Photography_1")
MissionForceCompleted("C_Photography_2")
MissionForceCompleted("C_Photography_3")
MissionForceCompleted("C_Photography_4")
MissionForceCompleted("C_Photography_5")
MissionForceCompleted("C_Shop_1")
MissionForceCompleted("C_Shop_2")
MissionForceCompleted("C_Shop_3")
MissionForceCompleted("C_Shop_4")
MissionForceCompleted("C_Shop_5")
MissionForceCompleted("C_Shop_5_repeat")
MissionForceCompleted("C_Wrestling_1")
MissionForceCompleted("C_Wrestling_2")
MissionForceCompleted("C_Wrestling_3")
MissionForceCompleted("C_Wrestling_4")
MissionForceCompleted("C_Wrestling_5")
MissionForceCompleted("Chapt1Trans")
MissionForceCompleted("Chapt2Trans")
MissionForceCompleted("Chapt3Trans")
MissionForceCompleted("Chapt4Trans")
MissionForceCompleted("Dummy_Wrestling_1")
MissionForceCompleted("Dummy_Wrestling_2")
MissionForceCompleted("Dummy_Wrestling_3")
MissionForceCompleted("Dummy_Wrestling_4")
MissionForceCompleted("Dummy_Wrestling_5")
MissionForceCompleted("GoKart_GP1")
MissionForceCompleted("GoKart_GP2")
MissionForceCompleted("GoKart_GP3")
MissionForceCompleted("GoKart_GP4")
MissionForceCompleted("GoKart_GP5")
MissionForceCompleted("GoKart_SR1")
MissionForceCompleted("GoKart_SR2")
MissionForceCompleted("GoKart_SR3")
MissionForceCompleted("JobLawnMowing1a")
MissionForceCompleted("JobLawnMowing1b")
MissionForceCompleted("JobLawnMowing1c")
MissionForceCompleted("JobLawnMowing2a")
MissionForceCompleted("JobLawnMowing2b")
MissionForceCompleted("JobLawnMowing2c")
MissionForceCompleted("LawnMowing1a")
MissionForceCompleted("LawnMowing1b")
MissionForceCompleted("LawnMowing1c")
MissionForceCompleted("LawnMowing2a")
MissionForceCompleted("LawnMowing2b")
MissionForceCompleted("LawnMowing2c")
MissionForceCompleted("LawnMowing3a")
MissionForceCompleted("LawnMowing3b")
MissionForceCompleted("LawnMowing3c")
MissionForceCompleted("P_Snow1")
MissionForceCompleted("P_Snow2")
MissionForceCompleted("P_Snow3")
MissionForceCompleted("P_Snow4")
MissionForceCompleted("P_Snow5")
MissionForceCompleted("P_Snow6")
MissionForceCompleted("Post_1_03")
push ecx
mov eax, dword ptr [esp+0x8]
push 0x0
push eax
call LuaParam::GetString
add esp, 0x8
push eax
lea ecx, ptr [esp+0x4]
call 0x5FA910
lea ecx, ptr [esp]
push ecx
mov ecx, 0x20C3CA0
call 0x6A9FD0
push eax
mov ecx, 0x20C3CA0
call 0x6AA7C0
or byte ptr [eax+0x4], 0x8
lea ecx, ptr [esp]
call 0x49A650
xor eax, eax
pop ecx
ret
--DebugPrint("******************************* " .. tostring(MissionGetCurrentName()) .. " completed")
--DebugPrint("******************************* " .. tostring(MissionGetCurrentName()) .. " failed")
--print("mission name is " .. tostring(MissionGetCurrentName()))
--print("MissionTesting: Succeed mission", MissionGetCurrentName())
--print("MissionTesting: Wait for mission", MissionGetCurrentName(), "to clean up and end")
local missionName = MissionGetCurrentName()
shared.gHitchHikeMis = MissionGetCurrentName()
TextPrintString("Mission Success: " .. tostring(MissionGetCurrentName()) .. " not yet implemented.", 4, 1)
until MissionGetCurrentName() == nil
until MissionGetCurrentName() ~= nil
mov ecx, 0x20C3CA0
call 0x6AA710
mov ecx, eax
call 0x6AA3F0
test al, al
jnz 0x12
mov eax, dword ptr [esp+0x4]
push eax
call LuaParam::PushNil
add esp, 0x4
xor eax, eax
ret
mov ecx, 0x20C3CA0
call 0x6AA710
mov eax, dword ptr [eax]
push eax
mov ecx, 0x20C3CA0
call 0x6AA660
mov ecx, dword ptr [eax+0x18]
mov edx, dword ptr [esp+0x4]
push ecx
push edx
call LuaParam::PushString
add esp, 0x8
mov eax, 0x1
ret
DebugMissionPassDependant(MissionGetIndex("Chapt1Trans"))
elseif missionId == MissionGetIndex("1_02C") then
elseif missionId == MissionGetIndex("1_03") and not IsMissionCompleated("1_09") then
elseif missionId == MissionGetIndex("1_06_01") then
elseif missionId == MissionGetIndex("1_07") then
elseif missionId == MissionGetIndex("1_08") then
elseif missionId == MissionGetIndex("1_09") then
elseif missionId == MissionGetIndex("1_11_Dummy") then
elseif missionId == MissionGetIndex("1_11x1") then
elseif missionId == MissionGetIndex("1_11xp") then
elseif missionId == MissionGetIndex("1_B") then
elseif missionId == MissionGetIndex("1_S01") then
elseif missionId == MissionGetIndex("2_01") then
elseif missionId == MissionGetIndex("2_03") then
elseif missionId == MissionGetIndex("2_B") then
elseif missionId == MissionGetIndex("2_S06") then
elseif missionId == MissionGetIndex("3_04") then
elseif missionId == MissionGetIndex("3_08_PostDummy") then
elseif missionId == MissionGetIndex("3_B") then
elseif missionId == MissionGetIndex("3_S10") then
elseif missionId == MissionGetIndex("4_02") then
elseif missionId == MissionGetIndex("4_03") then
elseif missionId == MissionGetIndex("4_B1") then
elseif missionId == MissionGetIndex("4_B2") then
elseif missionId == MissionGetIndex("5_01") then
elseif missionId == MissionGetIndex("5_06") then
elseif missionId == MissionGetIndex("C_Photography_1") then
elseif missionId == MissionGetIndex("C_Photography_2") then
elseif missionId == MissionGetIndex("C_Photography_3") then
if missionId == MissionGetIndex("1_01") then
if missionId == MissionGetIndex("1_02A") then
if missionId == MissionGetIndex("1_11x1") then
if missionIndex == MissionGetIndex("2_S04") then
push ecx
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetString
add esp, 0x8
test eax, eax
jnz 0x5
pop edi
pop ecx
ret
push esi
push eax
lea ecx, ptr [esp+0xC]
call 0x5FA910
push eax
mov ecx, 0x20C3CA0
call 0x6A9FD0
lea ecx, ptr [esp+0x8]
mov esi, eax
call 0x49A650
push esi
push edi
call LuaParam::PushInt
add esp, 0x8
pop esi
mov eax, 0x1
pop edi
pop ecx
ret
local missionName = MissionGetName(missionIndex)
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, 0x20C3CA0
call 0x6AA660
mov eax, dword ptr [eax+0x18]
push eax
push esi
call LuaParam::PushString
add esp, 0x8
mov eax, 0x1
pop esi
ret
Response = MissionGetUserStartResponse()
push esi
xor esi, esi
push esi
mov ecx, 0x20C3CA0
call 0x6AC0F0
sub eax, 0x1
jz 0x1E
sub eax, 0x1
jnz 0x1C
mov eax, dword ptr [esp+0x8]
mov esi, 0x1
push esi
push eax
call LuaParam::PushInt
add esp, 0x8
mov eax, esi
pop esi
ret
or esi, 0xFFFFFFFF
mov eax, dword ptr [esp+0x8]
push esi
push eax
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
pop esi
ret
-- never used
mov ecx, 0x20C3CA0
call 0x6AA840
push eax
mov eax, dword ptr [esp+0x8]
push eax
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
ret
bGetBackObj = MissionObjectiveAdd("3_06_Obj05")
bPeanutObj = MissionObjectiveAdd("3_06_FightPeanut")
brawlObjID = MissionObjectiveAdd("3_02_BRAWLOBJ")
chaseDavisObj = MissionObjectiveAdd("1_03_INSTRUC02")
currentObjective = MissionObjectiveAdd("3_XM_CANDLES")
currentObjective = MissionObjectiveAdd("3_XM_CANDYCANES")
currentObjective = MissionObjectiveAdd("3_XM_CASTLE")
currentObjective = MissionObjectiveAdd("3_XM_PRESENTS")
currentObjective = MissionObjectiveAdd("3_XM_SLEIGH")
currentObjective = MissionObjectiveAdd("3_XM_SNOWMAN")
currentObjective = MissionObjectiveAdd("3_XM_SQUARE")
currentObjective = MissionObjectiveAdd("5_T1_OBJ01")
currentObjective = MissionObjectiveAdd("5_T1_OBJ02")
farObjID = MissionObjectiveAdd("3_02_TOOFAR")
findObjID = MissionObjectiveAdd("3_02_FINDOBJ")
gArcObjective = MissionObjectiveAdd("3_R09_ArObj")
gCurrentObjective = MissionObjectiveAdd("5_09_OGETHALL")
gCurrentObjective = MissionObjectiveAdd("5_09_OT_07")
gCurrentObjective = MissionObjectiveAdd("5_09_OTAGCITY")
gCurrentObjective = MissionObjectiveAdd(gCurrentObjectiveText)
getOnObjID = MissionObjectiveAdd("RACE_GETONOBJ", 0, -1)
gFirstObj = MissionObjectiveAdd("1_B_OBJ")
gFirstObj = MissionObjectiveAdd("5_B_obj1")
gMissionObjective = MissionObjectiveAdd(gObjectiveString)
gObjDumbass = MissionObjectiveAdd("5_07A_OBJ10")
gObjective = MissionObjectiveAdd("4_B2_Obj1", 0, -1)
gObjective00 = MissionObjectiveAdd("1_05_MOBJ_00")
gObjective01 = MissionObjectiveAdd("1_02B_MOBJ_01")
gObjective01 = MissionObjectiveAdd("1_02B_MOBJ_02")
gObjective01 = MissionObjectiveAdd("1_05_MOBJ_01")
gObjective01 = MissionObjectiveAdd("1_11X1_MOBJ01")
gObjective01 = MissionObjectiveAdd("1_11X2_MOBJ_01")
gObjective01 = MissionObjectiveAdd("2_02_INSTRUC01")
gObjective01 = MissionObjectiveAdd("2_07_MOBJ_02")
gObjective01 = MissionObjectiveAdd("2_G2_MOBJ_01")
gObjective01 = MissionObjectiveAdd("2_S06_MOBJ_01")
gObjective01 = MissionObjectiveAdd("3_04_MOBJ_01")
gObjective01 = MissionObjectiveAdd("3_S03_MOBJ_01")
gObjective01 = MissionObjectiveAdd("4_01_MOBJ_01")
gObjective01 = MissionObjectiveAdd("4_05_MOBJ_01")
gObjective01 = MissionObjectiveAdd("4_B1_MOBJ_01")
gObjective01 = MissionObjectiveAdd("5_G5_MOBJ01")
gObjective01b = MissionObjectiveAdd("1_11X2_MOBJ_01B")
gObjective01b = MissionObjectiveAdd("4_01_MOBJ_01B")
gObjective01c = MissionObjectiveAdd("4_01_MOBJ_01C")
gObjective02 = MissionObjectiveAdd("1_05_MOBJ_02")
gObjective02 = MissionObjectiveAdd("1_11X1_MOBJ02")
gObjective02 = MissionObjectiveAdd("1_11X2_MOBJ_02")
gObjective02 = MissionObjectiveAdd("2_02_INSTRUC03")
gObjective02 = MissionObjectiveAdd("2_07_MOBJ_End")
gObjective02 = MissionObjectiveAdd("2_G2_MOBJ_02")
gObjective02 = MissionObjectiveAdd("2_S06_MOBJ_02")
gObjective02 = MissionObjectiveAdd("3_04_MOBJ_02")
gObjective02 = MissionObjectiveAdd("3_S03_MOBJ_02")
gObjective02 = MissionObjectiveAdd("4_01_MOBJ_02")
gObjective02 = MissionObjectiveAdd("5_G5_MOBJ02")
gObjective02b = MissionObjectiveAdd("1_05_MOBJ_02B")
gObjective03 = MissionObjectiveAdd("1_02B_MOBJ_03")
gObjective03 = MissionObjectiveAdd("1_05_MOBJ_03")
gObjective03 = MissionObjectiveAdd("1_11X2_MOBJ_03")
gObjective03 = MissionObjectiveAdd("2_02_INSTRUC04")
gObjective03 = MissionObjectiveAdd("2_G2_MOBJ_03")
gObjective03 = MissionObjectiveAdd("2_S06_MOBJ_03")
gObjective03 = MissionObjectiveAdd("3_04_MOBJ_03")
gObjective03 = MissionObjectiveAdd("3_S03_MOBJ_03")
gObjective03 = MissionObjectiveAdd("4_01_MOBJ_03")
gObjective03b = MissionObjectiveAdd("1_02B_GARB_01")
gObjective04 = MissionObjectiveAdd("1_02B_MOBJ_04")
gObjective04 = MissionObjectiveAdd("2_G2_MOBJ_04")
gObjective04 = MissionObjectiveAdd("2_S06_MOBJ_04")
gObjective04 = MissionObjectiveAdd("3_04_MOBJ_04")
gObjective04 = MissionObjectiveAdd("3_S03_MOBJ_04")
gObjective04 = MissionObjectiveAdd("4_01_MOBJ_04")
gObjective04 = MissionObjectiveAdd("4_05_MOBJ_04")
gObjective04a = MissionObjectiveAdd("1_02B_MOBJ_04A")
gObjective04b = MissionObjectiveAdd("1_02B_MOBJ_04B")
gObjective04c = MissionObjectiveAdd("1_02B_MOBJ_04C")
gObjective05 = MissionObjectiveAdd("1_05_MOBJ_05")
gObjective05 = MissionObjectiveAdd("3_04_MOBJ_05")
gObjective05 = MissionObjectiveAdd("3_S03_MOBJ_05")
gObjective05 = MissionObjectiveAdd("4_01_MOBJ_05")
gObjective06 = MissionObjectiveAdd("3_S03_MOBJ_06")
gObjective07 = MissionObjectiveAdd("3_S03_MOBJ_07")
gObjective08 = MissionObjectiveAdd("3_S03_MOBJ_08")
gObjective2 = MissionObjectiveAdd("4_B2_Obj2", 0, -1)
gObjective3b = MissionObjectiveAdd("1_11X2_MOBJ_03B")
gOBjectiveTable[1] = MissionObjectiveAdd("1_S01_42")
gOBjectiveTable[1] = MissionObjectiveAdd("5_06_01")
gOBjectiveTable[2] = MissionObjectiveAdd("1_S01_02")
gOBjectiveTable[2] = MissionObjectiveAdd("5_06_04")
gOBjectiveTable[3] = MissionObjectiveAdd("1_S01_01")
gOBjectiveTable[3] = MissionObjectiveAdd("5_06_05")
gOBjectiveTable[4] = MissionObjectiveAdd("1_S01_03")
gOBjectiveTable[5] = MissionObjectiveAdd("1_S01_56")
gObjs[1] = MissionObjectiveAdd("5_04_11")
gObjs[1] = MissionObjectiveAdd("5_07A_OBJ1")
gObjs[2] = MissionObjectiveAdd("5_04_35")
gObjs[3] = MissionObjectiveAdd("5_04_36")
gObjs[3] = MissionObjectiveAdd("5_07A_OBJ4")
gObjs[4] = MissionObjectiveAdd("5_07A_OBJ5")
gObjs[5] = MissionObjectiveAdd("5_04_12")
gObjs[5] = MissionObjectiveAdd("5_07A_OBJ6")
gObjs[6] = MissionObjectiveAdd("5_07A_OBJ9")
gObjs[7] = MissionObjectiveAdd("5_07A_OBJ7")
gObjsTable.firstObj = MissionObjectiveAdd("4_06_GATENERD")
gObjsTable.opA_01 = MissionObjectiveAdd("4_06_OPA_01")
gObjsTable.opA_02 = MissionObjectiveAdd("4_06_OPA_02")
gObjsTable.opA_03 = MissionObjectiveAdd("4_06_OPA_05")
gObjsTable.opC_01 = MissionObjectiveAdd("4_06_OPC_01")
gObjsTable.opC_03 = MissionObjectiveAdd("4_06_OPC_04")
gObjsTable.opD_01 = MissionObjectiveAdd("4_06_OP_D_01")
gObjsTable.opDos = MissionObjectiveAdd("4_06_NEXT_OP")
gObjsTable.opDos = MissionObjectiveAdd("4_06_NEXT_OP_2")
gObjsTable.opE_01 = MissionObjectiveAdd("4_06_OP_E_01")
gObjsTable.opE_02 = MissionObjectiveAdd("4_06_OP_E_10")
gObjsTable.opF_01 = MissionObjectiveAdd("4_06_OP_F_01")
gObjTrain = MissionObjectiveAdd("5_07A_OBJ8")
gSecondObj = MissionObjectiveAdd("5_B_obj2")
gThirdObj = MissionObjectiveAdd("5_B_obj3", 0, -1)
gunObjective = MissionObjectiveAdd("4_03_22")
local a = MissionObjectiveAdd("TEST1", 2)
local b = MissionObjectiveAdd("TEST2", 2)
local c = MissionObjectiveAdd("TEST3", 2)
local objective = MissionObjectiveAdd("3_05_ORETLOLA")
local objective = MissionObjectiveAdd("4_03_01")
local objective = MissionObjectiveAdd("4_03_21")
local objective = MissionObjectiveAdd("5_05_MEETZOE2")
local objective = MissionObjectiveAdd("5_09_ORETURN")
local objectiveid = MissionObjectiveAdd("1_G1_OBJ1")
local objectiveid = MissionObjectiveAdd("1_G1_OBJ5")
local objGetSledge = MissionObjectiveAdd("3_05_GETSLEDGE", 0, -1)
local objId = MissionObjectiveAdd(reference)
lureObjID = MissionObjectiveAdd("3_02_LUREOBJ")
madObjID = MissionObjectiveAdd("3_02_MADOBJ")
mis_obj00 = MissionObjectiveAdd("3_S11_SECRET")
mis_obj00 = MissionObjectiveAdd("5_03_OPENDOOR")
mis_obj01 = MissionObjectiveAdd("3_S11_MEETP")
mis_obj01 = MissionObjectiveAdd("4_02_NERDS")
mis_obj01 = MissionObjectiveAdd("5_03_94")
mis_obj02 = MissionObjectiveAdd("3_S11_74")
mis_obj02 = MissionObjectiveAdd("4_02_SECDOOR")
mis_obj02 = MissionObjectiveAdd("5_03_37")
mis_obj03 = MissionObjectiveAdd("4_02_KEYCODE")
mis_obj03 = MissionObjectiveAdd("5_03_39")
mis_obj04 = MissionObjectiveAdd("3_S11_94")
mis_obj04 = MissionObjectiveAdd("4_02_48")
mis_obj04 = MissionObjectiveAdd("4_02_52")
mis_obj04 = MissionObjectiveAdd("4_02_GO_OBS")
mis_obj04 = MissionObjectiveAdd("5_03_TALK")
mis_obj05 = MissionObjectiveAdd("3_S11_92")
mis_obj05 = MissionObjectiveAdd("4_02_TRANS")
mis_obj05 = MissionObjectiveAdd("5_03_024")
mis_obj06 = MissionObjectiveAdd("3_S11_16")
mis_obj06 = MissionObjectiveAdd("4_02_GCANNON")
mis_obj07 = MissionObjectiveAdd("4_02_KILLDOORS")
mis_obj07 = MissionObjectiveAdd("5_03_039")
mis_objDoor = MissionObjectiveAdd("4_02_OPENDOOR")
misObj = MissionObjectiveAdd("1_01_08")
misObj = MissionObjectiveAdd("1_01_StandGround")
misObj = MissionObjectiveAdd(gObjectiveText)
misObj1 = MissionObjectiveAdd("C5_02")
MissionObj1 = MissionObjectiveAdd("1_09_TRIGGER")
MissionObj2 = MissionObjectiveAdd("1_09_08")
MissionObjectiveAdd("2_B_11", 0, -1)
MissionObjectiveAdd("5_01_Obj")
MissionObjectiveAdd("C3_01_24")
MissionObjectiveAdd("C3_01_25")
MissionObjectiveAdd("C3_01_26")
MissionObjectiveAdd("C3_01_27")
MissionObjectiveAdd("C4_INST01", 0, -1)
MissionObjectiveAdd("C6_INST01", 0, -1)
MissionObjectiveAdd("TEST10")
MissionObjectiveAdd("TEST4")
MissionObjectiveAdd("TEST5")
MissionObjectiveAdd("TEST6")
MissionObjectiveAdd("TEST7")
MissionObjectiveAdd("TEST8")
MissionObjectiveAdd("TEST9")
newObj = MissionObjectiveAdd(newObjStr)
newObj = MissionObjectiveAdd(newObjStr, 0, -1)
newObj = MissionObjectiveAdd(newObjStr, 1, -1)
newObj = MissionObjectiveAdd(newObjStr, 2, -1)
Obj01 = MissionObjectiveAdd("1_04_OBJ01")
obj01 = MissionObjectiveAdd("4_S12_OBJDRESS")
obj01 = MissionObjectiveAdd("5_09_OT_01")
Obj02 = MissionObjectiveAdd("1_04_BOT")
obj02 = MissionObjectiveAdd("4_S12_OBJNECKLACE")
obj03 = MissionObjectiveAdd("4_S12_OBJPERFUME")
Obj04 = MissionObjectiveAdd("1_04_OBJ02")
obj04 = MissionObjectiveAdd("4_S12_RETURN_ITEMS")
Obj05 = MissionObjectiveAdd("1_04_TREE")
Obj06 = MissionObjectiveAdd("1_04_FIELDOBJ")
objAlly = MissionObjectiveAdd("2_06_ALLEY")
objAlly = MissionObjectiveAdd("2_06_GET_EUNICE")
objCandy = MissionObjectiveAdd("2_S05_O3", 0, -1)
objChoco = MissionObjectiveAdd("2_06_CHOCOGIVE")
objChoco = MissionObjectiveAdd("2_06_CHOCOLATE")
objClimb = MissionObjectiveAdd("2_S05_O6")
objDiary = MissionObjectiveAdd("3_05_ODIARY")
objDinner = MissionObjectiveAdd("2_S05_ODATE1")
objDrugs = MissionObjectiveAdd("2_S05_O4", 0, -1)
objective = MissionObjectiveAdd("1_G1_OBJ3")
objective = MissionObjectiveAdd("2_04_INSTRUC01")
objective = MissionObjectiveAdd("2_04_INSTRUC02")
objective = MissionObjectiveAdd("4_03_07")
objective = MissionObjectiveAdd("4_03_23")
objective01 = MissionObjectiveAdd("2_09_Objective")
objective02 = MissionObjectiveAdd("2_09_Objective2")
objectiveBarber = MissionObjectiveAdd("2_01_O3")
objectiveBike = MissionObjectiveAdd("2_01_O1")
objectiveClothing = MissionObjectiveAdd("2_01_O4")
objectiveGrocery = MissionObjectiveAdd("2_01_O2")
objectiveid = MissionObjectiveAdd("1_G1_OSTAFF")
objectiveReturn = MissionObjectiveAdd("2_01_GOTOBUS")
objectiveReturn = MissionObjectiveAdd("2_01_OBACKEDNA")
objEnter = MissionObjectiveAdd("3_05_OENTER")
objEunice = MissionObjectiveAdd("2_06_EUNICE")
objFirst = MissionObjectiveAdd("2_06_MAIN_OBJ")
objGetAll = MissionObjectiveAdd("3_05_GETITEMS")
objGetBoltCutters = MissionObjectiveAdd("5_05_OGETBOLT")
objGetBoltCutters = MissionObjectiveAdd("5_05_OGETCUTS")
objGetIn = MissionObjectiveAdd("5_03_GETIN")
objGetSpray = MissionObjectiveAdd("5_09_OSPRAY")
objGetTeachersAway = MissionObjectiveAdd("2_S05_O2", 0, -1)
objGord = MissionObjectiveAdd("2_06_STEAL_BIKE")
objID = MissionObjectiveAdd("1_02C_OBJ01")
objId = MissionObjectiveAdd("3_R05B_MOBJ_01")
objId = MissionObjectiveAdd("3_R05B_MOBJ_02", 1)
objId = MissionObjectiveAdd("3_R05B_MOBJ_03")
objId = MissionObjectiveAdd("3_S08_MOBJ_01", 1)
objId = MissionObjectiveAdd("3_S08_MOBJ_03", 1)
objId = MissionObjectiveAdd(tblMissionParams[CurrentMissionIndex][1], 1)
objId = MissionObjectiveAdd(tblMissionParams[CurrentMissionIndex][3], 1)
objId = MissionObjectiveAdd(txtMissionText)
objId_pickup = MissionObjectiveAdd("3_R05B_ASSISTANT", 1)
objKey = MissionObjectiveAdd("3_05_OKEY")
objLaundry = MissionObjectiveAdd("3_05_OLAUND")
objLeave = MissionObjectiveAdd("3_05_OLEAVE")
objLipstick = MissionObjectiveAdd("3_05_OLIPSTICK")
objMeet = MissionObjectiveAdd("3_03_OMEET")
objMeetZoe = MissionObjectiveAdd("5_05_OMEETZOE")
objMission = MissionObjectiveAdd("1_11_XP_OBJ")
objNorton = MissionObjectiveAdd("3_05_ONORTON", 0, -1)
OBJONE = MissionObjectiveAdd("6_B_MOBJ_01")
objPerfume = MissionObjectiveAdd("2_S05_O1", 0, -1)
objPerfume = MissionObjectiveAdd("3_05_OPERF")
objPetey = MissionObjectiveAdd("2_06_PETEY")
objPhotFlow = MissionObjectiveAdd("3_01_PHOTFLOW")
objPhotHand = MissionObjectiveAdd("3_01_PHOTHAND")
objPhotKiss = MissionObjectiveAdd("3_01_PHOTKISS")
objProt = MissionObjectiveAdd("3_03_OPROT")
objPushPotty = MissionObjectiveAdd("5_05_OPUSHPOT")
objRetJohnny = MissionObjectiveAdd("3_01_ORETCASH")
objReturn = MissionObjectiveAdd("2_S05_O5")
objSabotagePotties = MissionObjectiveAdd("5_05_OSABPOT")
objTakePhoto = MissionObjectiveAdd("5_09_OT_09")
objTheater = MissionObjectiveAdd("2_06_GETBACK")
OBJTWO = MissionObjectiveAdd("6_B_MOBJ_02")
objVantage = MissionObjectiveAdd("3_03_OVANT")
photo.objective = MissionObjectiveAdd(photo.text)
race.winObjID = MissionObjectiveAdd("RACE_WINOBJ", 0, -1)
table.insert(gMissionObjective, MissionObjectiveAdd("1_08_FATTYAGAIN"))
table.insert(gMissionObjective, MissionObjectiveAdd("1_08_OBJ01"))
table.insert(gMissionObjective, MissionObjectiveAdd("1_08_OBJ03"))
table.insert(gMissionObjective, MissionObjectiveAdd("1_08_OBJ05"))
table.insert(gMissionObjective, MissionObjectiveAdd("1_08_OBJ07"))
table.insert(gMissionObjective, MissionObjectiveAdd("1_08_OBJ09"))
table.insert(gMissionObjective, MissionObjectiveAdd("1_08_OBJ19"))
table.insert(gMissionObjective, MissionObjectiveAdd("1_08_STINKBOMBS"))
table.insert(gMissionObjectives, MissionObjectiveAdd("3_06_Obj01"))
table.insert(gMissionObjectives, MissionObjectiveAdd("3_06_PENTFLLW"))
table.insert(gObjectives, MissionObjectiveAdd("1_02A_CLOTHOBJ"))
table.insert(gObjectives, MissionObjectiveAdd("1_02A_LOGOBJ04"))
table.insert(gObjectives, MissionObjectiveAdd("1_02A_SODAMACH"))
table.insert(gObjectives, MissionObjectiveAdd("1_06_OBJ01"))
table.insert(gObjectives, MissionObjectiveAdd("1_06_OBJ02"))
table.insert(gObjectives, MissionObjectiveAdd("1_06_OBJ03"))
table.insert(gObjectives, MissionObjectiveAdd("1_06_OBJ04_LG"))
table.insert(gObjectives, MissionObjectiveAdd("1_07_command"))
table.insert(gObjectives, MissionObjectiveAdd("1_07_Objective1"))
table.insert(gObjectives, MissionObjectiveAdd("1_07_Objective2"))
table.insert(gObjectives, MissionObjectiveAdd("1_07_Objective3"))
table.insert(gObjectiveTable, MissionObjectiveAdd("6_02_OBJ1"))
table.insert(gObjectiveTable, MissionObjectiveAdd("6_02_OBJ2"))
table.insert(gObjectiveTable, MissionObjectiveAdd("6_02_OBJ3"))
table.insert(tObjectives, MissionObjectiveAdd("3_01D_OBJ1_01"))
table.insert(tObjectives, MissionObjectiveAdd("3_01D_OBJ1_03"))
table.insert(tObjectives, MissionObjectiveAdd("3_01D_OBJ2_01"))
tblObjective.logID = MissionObjectiveAdd("RACE_GETONOBJ", 0, -1)
push ebx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetString
push esi
mov edi, eax
xor bl, bl
call 0x73AEA0
add esp, 0xC
cmp eax, 0x2
jl 0xF
push 0x1
push esi
call LuaParam::GetInt
add esp, 0x8
mov bl, al
movzx eax, bl
push eax
push edi
mov ecx, 0x20C4420
call 0x6AE270
push esi
mov bl, al
call 0x73AEA0
add esp, 0x4
cmp eax, 0x3
jl 0x1B
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x4], st
add esp, 0x4
mov ecx, 0x20C4420
call 0x6AE580
movzx ecx, bl
push ecx
push esi
call LuaParam::PushInt
add esp, 0x8
pop edi
pop esi
mov eax, 0x1
pop ebx
ret
MissionObjectiveComplete(a)
MissionObjectiveComplete(bGetBackObj)
MissionObjectiveComplete(bPeanutObj)
MissionObjectiveComplete(c)
MissionObjectiveComplete(chaseDavisObj)
MissionObjectiveComplete(currentObjective)
MissionObjectiveComplete(findObjID)
MissionObjectiveComplete(gCurrentObjective)
MissionObjectiveComplete(gFirstObj)
MissionObjectiveComplete(gMissionObjective[table.getn(gMissionObjective)])
MissionObjectiveComplete(gMissionObjectives[1])
MissionObjectiveComplete(gMissionObjectives[2])
MissionObjectiveComplete(gObjDumbass)
MissionObjectiveComplete(gObjective)
MissionObjectiveComplete(gObjective00)
MissionObjectiveComplete(gObjective01)
MissionObjectiveComplete(gObjective01b)
MissionObjectiveComplete(gObjective01c)
MissionObjectiveComplete(gObjective02)
MissionObjectiveComplete(gObjective02b)
MissionObjectiveComplete(gObjective03)
MissionObjectiveComplete(gObjective03b)
MissionObjectiveComplete(gObjective04)
MissionObjectiveComplete(gObjective04c)
MissionObjectiveComplete(gObjective05)
MissionObjectiveComplete(gObjective06)
MissionObjectiveComplete(gObjective07)
MissionObjectiveComplete(gObjectives[1])
MissionObjectiveComplete(gObjectives[2])
MissionObjectiveComplete(gObjectives[3])
MissionObjectiveComplete(gObjectives[table.getn(gObjectives)])
MissionObjectiveComplete(gOBjectiveTable[1])
MissionObjectiveComplete(gObjectiveTable[1])
MissionObjectiveComplete(gObjectiveTable[2])
MissionObjectiveComplete(gOBjectiveTable[2])
MissionObjectiveComplete(gOBjectiveTable[3])
MissionObjectiveComplete(gOBjectiveTable[4])
MissionObjectiveComplete(gObjs[1])
MissionObjectiveComplete(gObjs[2])
MissionObjectiveComplete(gObjs[3])
MissionObjectiveComplete(gObjs[4])
MissionObjectiveComplete(gObjs[5])
MissionObjectiveComplete(gObjs[6])
MissionObjectiveComplete(gObjs[7])
MissionObjectiveComplete(gObjsTable.opA_01)
MissionObjectiveComplete(gObjsTable.opA_02)
MissionObjectiveComplete(gObjsTable.opA_03)
MissionObjectiveComplete(gObjsTable.opC_01)
MissionObjectiveComplete(gObjsTable.opD_01)
MissionObjectiveComplete(gObjsTable.opE_01)
MissionObjectiveComplete(gObjTrain)
MissionObjectiveComplete(gPhotoTargets[pLoc].objective)
MissionObjectiveComplete(gSecondObj)
MissionObjectiveComplete(gThirdObj)
MissionObjectiveComplete(gunObjective)
MissionObjectiveComplete(lureObjID)
MissionObjectiveComplete(madObjID)
MissionObjectiveComplete(mis_obj00)
MissionObjectiveComplete(mis_obj01)
MissionObjectiveComplete(mis_obj02)
MissionObjectiveComplete(mis_obj03)
MissionObjectiveComplete(mis_obj04)
MissionObjectiveComplete(mis_obj05)
MissionObjectiveComplete(mis_obj06)
MissionObjectiveComplete(mis_obj07)
MissionObjectiveComplete(mis_objDoor)
MissionObjectiveComplete(misObj)
MissionObjectiveComplete(obj01)
MissionObjectiveComplete(Obj01)
MissionObjectiveComplete(obj02)
MissionObjectiveComplete(Obj02)
MissionObjectiveComplete(obj03)
MissionObjectiveComplete(Obj04)
MissionObjectiveComplete(obj04)
MissionObjectiveComplete(Obj05)
MissionObjectiveComplete(obj07)
MissionObjectiveComplete(objAlly)
MissionObjectiveComplete(objCandy)
MissionObjectiveComplete(objChoco)
MissionObjectiveComplete(objClimb)
MissionObjectiveComplete(objDinner)
MissionObjectiveComplete(objDrugs)
MissionObjectiveComplete(objective)
MissionObjectiveComplete(objective.id)
MissionObjectiveComplete(objective01)
MissionObjectiveComplete(objective02)
MissionObjectiveComplete(objectiveBarber)
MissionObjectiveComplete(objectiveBike)
MissionObjectiveComplete(objectiveClothing)
MissionObjectiveComplete(objectiveGrocery)
MissionObjectiveComplete(objectiveid)
MissionObjectiveComplete(objectiveReturn)
MissionObjectiveComplete(objEnter)
MissionObjectiveComplete(objEunice)
MissionObjectiveComplete(objGetAll)
MissionObjectiveComplete(objGetBoltCutters)
MissionObjectiveComplete(objGetSledge)
MissionObjectiveComplete(objGetTeachersAway)
MissionObjectiveComplete(objGord)
MissionObjectiveComplete(objGordLure)
MissionObjectiveComplete(objId)
MissionObjectiveComplete(objID)
MissionObjectiveComplete(objId_pickup)
MissionObjectiveComplete(objLaundry)
MissionObjectiveComplete(objLeave)
MissionObjectiveComplete(objMeet)
MissionObjectiveComplete(objMeetZoe)
MissionObjectiveComplete(objMission)
MissionObjectiveComplete(objNorton)
MissionObjectiveComplete(OBJONE)
MissionObjectiveComplete(objPerfume)
MissionObjectiveComplete(objPhotFlow)
MissionObjectiveComplete(objPhotHand)
MissionObjectiveComplete(objPhotKiss)
MissionObjectiveComplete(objPinky)
MissionObjectiveComplete(objProt)
MissionObjectiveComplete(objPushPotty)
MissionObjectiveComplete(objReturn)
MissionObjectiveComplete(objSabotagePotties)
MissionObjectiveComplete(objTakePhoto)
MissionObjectiveComplete(objVantage)
MissionObjectiveComplete(oldObj)
MissionObjectiveComplete(race.winObjID)
MissionObjectiveComplete(target.obj)
MissionObjectiveComplete(tblObjective.logID)
MissionObjectiveComplete(tblPickups[nIndexCount].text)
MissionObjectiveComplete(tObjectives[1])
MissionObjectiveComplete(tObjectives[i])
MissionObjectiveComplete(v)
push ecx
mov eax, dword ptr [esp+0x8]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x8
mov byte ptr [esp], al
mov ecx, dword ptr [esp]
push 0x1
push ecx
mov ecx, 0x20C4420
call 0x6AE450
xor eax, eax
pop ecx
ret
MissionObjectiveReminderTime(-1)
MissionObjectiveReminderTime(1000000)
MissionObjectiveReminderTime(1000000000)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x4], st
add esp, 0x4
mov ecx, 0x20C4420
call 0x6AE580
xor eax, eax
ret
MissionObjectiveRemove(bGetBackObj)
MissionObjectiveRemove(bPeanutObj)
MissionObjectiveRemove(currentObjective)
MissionObjectiveRemove(farObjID)
MissionObjectiveRemove(gCurrentObjective)
MissionObjectiveRemove(getOnObjID)
MissionObjectiveRemove(gMissionObjective[table.getn(gMissionObjective)])
MissionObjectiveRemove(gObjective)
MissionObjectiveRemove(gObjective01)
MissionObjectiveRemove(gObjective01b)
MissionObjectiveRemove(gObjective02)
MissionObjectiveRemove(gObjective04a)
MissionObjectiveRemove(gObjective04b)
MissionObjectiveRemove(gObjsTable.firstObj)
MissionObjectiveRemove(gObjsTable.opA_01)
MissionObjectiveRemove(gObjsTable.opA_02)
MissionObjectiveRemove(gObjsTable.opA_03)
MissionObjectiveRemove(gObjsTable.opC_01)
MissionObjectiveRemove(gObjsTable.opC_03)
MissionObjectiveRemove(gObjsTable.opD_01)
MissionObjectiveRemove(gObjsTable.opDos)
MissionObjectiveRemove(gObjsTable.opE_01)
MissionObjectiveRemove(gObjsTable.opE_02)
MissionObjectiveRemove(gObjsTable.opF_01)
MissionObjectiveRemove(gPhotoTargets[pLoc].objective)
MissionObjectiveRemove(logID)
MissionObjectiveRemove(lureObjID)
MissionObjectiveRemove(mis_obj00)
MissionObjectiveRemove(mis_obj01)
MissionObjectiveRemove(mis_obj02)
MissionObjectiveRemove(mis_obj03)
MissionObjectiveRemove(mis_obj04)
MissionObjectiveRemove(mis_obj05)
MissionObjectiveRemove(mis_obj06)
MissionObjectiveRemove(misObj)
MissionObjectiveRemove(MissionObj1)
MissionObjectiveRemove(MissionObj2)
MissionObjectiveRemove(newObj)
MissionObjectiveRemove(objAlly)
MissionObjectiveRemove(objChoco)
MissionObjectiveRemove(objDiary)
MissionObjectiveRemove(objective.id)
MissionObjectiveRemove(objGetIn)
MissionObjectiveRemove(objGetSpray)
MissionObjectiveRemove(objId)
MissionObjectiveRemove(objKey)
MissionObjectiveRemove(objLaundry)
MissionObjectiveRemove(objLipstick)
MissionObjectiveRemove(objPerfume)
MissionObjectiveRemove(objTheater)
MissionObjectiveRemove(tblObjective.logID)
MissionObjectiveRemove(tObjectiveTable[tableSize].id)
objId = MissionObjectiveRemove(objId)
push ecx
mov eax, dword ptr [esp+0x8]
push 0x0
push eax
call LuaParam::GetInt
mov byte ptr [esp+0x8], al
mov ecx, dword ptr [esp+0x8]
add esp, 0x8
push ecx
mov ecx, 0x20C4420
call 0x6AE480
xor eax, eax
pop ecx
ret
MissionObjectiveUpdateParam(a, 1, "PARAM1")
MissionObjectiveUpdateParam(a, 2, "PARAM2")
MissionObjectiveUpdateParam(b, 1, 3)
MissionObjectiveUpdateParam(b, 2, 7)
MissionObjectiveUpdateParam(c, 1, 3.5)
MissionObjectiveUpdateParam(c, 2, 7.5)
MissionObjectiveUpdateParam(newObj, 1, param)
MissionObjectiveUpdateParam(newObj, 1, percent)
MissionObjectiveUpdateParam(objId, 1, CounterGetMax() - CounterGetCurrent())
MissionObjectiveUpdateParam(objId, 1, countMax)
MissionObjectiveUpdateParam(objId, 1, gMinMailboxes - gMailboxesSmashed)
MissionObjectiveUpdateParam(objId, 1, gMinMailboxes)
sub esp, 0xC
push esi
mov esi, dword ptr [esp+0x14]
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov byte ptr [esp+0x18], al
call LuaParam::GetInt
push 0x2
push esi
mov byte ptr [esp+0x1C], al
call LuaParam::IsInt
add esp, 0x18
test al, al
push 0x2
push esi
jz 0x31
call LuaParam::GetFloat
fstp dword ptr [esp+0x14], st
fld st, dword ptr [esp+0x14]
mov eax, dword ptr [esp+0xC]
mov ecx, dword ptr [esp+0x10]
fstp dword ptr [esp+0x4], st
add esp, 0x4
push eax
push ecx
mov ecx, 0x20C4420
call 0x6AE3D0
xor eax, eax
pop esi
add esp, 0xC
ret
call LuaParam::IsInt
add esp, 0x8
test al, al
push 0x2
push esi
jz 0x26
call LuaParam::GetInt
mov edx, dword ptr [esp+0xC]
add esp, 0x8
push eax
mov eax, dword ptr [esp+0xC]
push edx
push eax
mov ecx, 0x20C4420
call 0x6AE390
xor eax, eax
pop esi
add esp, 0xC
ret
call LuaParam::IsString
add esp, 0x8
test al, al
jz 0x22
push 0x2
push esi
call LuaParam::GetString
mov ecx, dword ptr [esp+0xC]
mov edx, dword ptr [esp+0x10]
add esp, 0x8
push eax
push ecx
push edx
mov ecx, 0x20C4420
call 0x6AE410
xor eax, eax
pop esi
add esp, 0xC
ret
MissionOverrideArrestPoint(tempX, tempY, tempZ, 0, 2)
sub esp, 0x18
push esi
mov esi, dword ptr [esp+0x20]
push 0x0
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0xC], st
push 0x1
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x18], st
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x24], st
fld st, dword ptr [esp+0x1C]
push 0x3
fstp dword ptr [esp+0x2C], st
push esi
fld st, dword ptr [esp+0x28]
fstp dword ptr [esp+0x34], st
fld st, dword ptr [esp+0x2C]
fstp dword ptr [esp+0x38], st
call LuaParam::GetFloat
push 0x4
fstp dword ptr [esp+0x30], st
push esi
call LuaParam::GetInt
fld st, dword ptr [esp+0x34]
add esp, 0x28
push eax
push ecx
lea eax, ptr [esp+0x18]
fstp dword ptr [esp], st
push eax
mov ecx, 0xBD1078
call 0x431530
xor eax, eax
pop esi
add esp, 0x18
ret
MissionOverrideKOPoint(koX, koY, koZ, 0, 30)
MissionOverrideKOPoint(koX, koY, koZ, gFinalHeading, 0)
sub esp, 0x18
push esi
mov esi, dword ptr [esp+0x20]
push 0x0
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0xC], st
push 0x1
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x18], st
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x24], st
fld st, dword ptr [esp+0x1C]
push 0x3
fstp dword ptr [esp+0x2C], st
push esi
fld st, dword ptr [esp+0x28]
fstp dword ptr [esp+0x34], st
fld st, dword ptr [esp+0x2C]
fstp dword ptr [esp+0x38], st
call LuaParam::GetFloat
push 0x4
fstp dword ptr [esp+0x30], st
push esi
call LuaParam::GetInt
fld st, dword ptr [esp+0x34]
add esp, 0x28
push eax
push ecx
lea eax, ptr [esp+0x18]
fstp dword ptr [esp], st
push eax
mov ecx, 0xBD1078
call 0x431570
xor eax, eax
pop esi
add esp, 0x18
ret
MissionPlayActionNode("/Global/5_01/5_01_PoisonEffect0")
MissionPlayActionNode("/Global/5_01/5_01_PoisonEffect1")
MissionPlayActionNode("/Global/5_01/5_01_PoisonEffect1/5_01_PoisonEffect1intro/5_01_PoisonEffect1cycle/5_01_PoisonEffect1outro")
MissionPlayActionNode("/Global/5_01/5_01_PoisonEffect2")
MissionPlayActionNode("/Global/5_01/5_01_PoisonEffect2/5_01_PoisonEffect2intro/5_01_PoisonEffect2cycle/5_01_PoisonEffect2outro")
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetString
push 0x0
push eax
call 0x5F5B10
add esp, 0x10
test eax, eax
jz 0x20
mov ecx, dword ptr [0x20C43DC]
push eax
call 0x5F4A50
push 0x1
push esi
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
pop esi
ret
push 0x0
push esi
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
pop esi
ret
MissionResetRespawnOverrides()
mov ecx, 0xBD1078
call 0x4315B0
xor eax, eax
ret
MissionSetAutoRestart(false)
MissionSetAutoRestart(true)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetBool
add esp, 0x8
mov ecx, 0x20C3CA0
push eax
call 0x6AB010
xor eax, eax
ret
-- never used
xor eax, eax
ret
MissionStartNextClass(true)
push esi
mov ecx, 0x20C3CA0
call 0x6AA030
mov esi, eax
cmp esi, 0xFFFFFFFF
jz 0x1F
mov eax, dword ptr [esp+0x8]
push 0x0
push 0x0
push eax
call LuaParam::GetBool ; optional
add esp, 0xC
mov ecx, 0x20C3CA0
push eax
push esi
call 0x6AD100
xor eax, eax
pop esi
ret
MissionStopActionController()
mov ecx, dword ptr [0x20C43DC]
call 0x5F40A0
mov eax, dword ptr [esp+0x4]
push 0x1
push eax
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
ret
--DebugPrint("call MissionSucceed()")
--DebugPrint("retfrom MissionSucceed()")
MissionSucceed()
MissionSucceed(false)
MissionSucceed(false, false)
MissionSucceed(false, false, false)
MissionSucceed(false, false, false, gReward)
MissionSucceed(false, true, false)
MissionSucceed(false, true, true, 4000)
MissionSucceed(false, true, true, 5000)
MissionSucceed(false, true, true, gAwardMoney)
MissionSucceed(true)
MissionSucceed(true, false)
MissionSucceed(true, false, false)
MissionSucceed(true, true, false)
MissionSucceed(true, true, false, 50)
sub esp, 0x8
push ebx
push esi
mov esi, dword ptr [esp+0x14]
push edi
push 0x1
push 0x0
push esi
call LuaParam::GetBool ; optional
push 0x1
push 0x1
push esi
mov byte ptr [esp+0x28], al
call LuaParam::GetBool ; optional
mov ecx, dword ptr [esp+0x28]
add esp, 0x18
mov byte ptr [esp+0xC], al
mov eax, dword ptr [esp+0xC]
push eax
push ecx
push 0x0
mov ecx, 0x20C3CA0
call 0x6AA710
mov ecx, eax
call 0x6ABF40
fldz
push esi
fstp dword ptr [esp+0x10], st
mov bl, 0x1
xor edi, edi
call LuaParam::GetParamCount
add esp, 0x4
cmp eax, 0x3
jl 0xF
push 0x2
push esi
call LuaParam::GetBool
add esp, 0x8
mov bl, al
push esi
call LuaParam::GetParamCount
add esp, 0x4
cmp eax, 0x4
jl 0x29
push 0x3
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x14], st
push esi
call LuaParam::GetParamCount
add esp, 0xC
cmp eax, 0x5
jl 0xF
push 0x4
push esi
call LuaParam::GetString
add esp, 0x8
mov edi, eax
test bl, bl
jz 0x1E
fld st, dword ptr [esp+0xC]
push 0x0
push 0x0
push edi
push ecx
fstp dword ptr [esp], st
push 0x1
push 0x92681C
call 0x7074E0
add esp, 0x18
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x8
ret
MissionSuccessCountInc("1_01")
MissionSuccessCountInc("1_02")
MissionSuccessCountInc("1_02A")
MissionSuccessCountInc("1_02B")
MissionSuccessCountInc("1_02B_Dummy")
MissionSuccessCountInc("1_02C")
MissionSuccessCountInc("1_03")
MissionSuccessCountInc("1_04")
MissionSuccessCountInc("1_05")
MissionSuccessCountInc("1_06_01")
MissionSuccessCountInc("1_06_02")
MissionSuccessCountInc("1_06_03")
MissionSuccessCountInc("1_06_04")
MissionSuccessCountInc("1_06_07")
MissionSuccessCountInc("1_06_08")
MissionSuccessCountInc("1_07")
MissionSuccessCountInc("1_08")
MissionSuccessCountInc("1_09")
MissionSuccessCountInc("1_10")
MissionSuccessCountInc("1_11_Dummy")
MissionSuccessCountInc("1_11_HallStrt")
MissionSuccessCountInc("1_11x1")
MissionSuccessCountInc("1_11x2")
MissionSuccessCountInc("1_11x2Unlock")
MissionSuccessCountInc("1_11xp")
MissionSuccessCountInc("1_B")
MissionSuccessCountInc("1_E01")
MissionSuccessCountInc("1_G1")
MissionSuccessCountInc("1_S01")
MissionSuccessCountInc("2_01")
MissionSuccessCountInc("2_02")
MissionSuccessCountInc("2_03")
MissionSuccessCountInc("2_04")
MissionSuccessCountInc("2_05")
MissionSuccessCountInc("2_06")
MissionSuccessCountInc("2_07")
MissionSuccessCountInc("2_08")
MissionSuccessCountInc("2_09")
MissionSuccessCountInc("2_B")
MissionSuccessCountInc("2_G2")
MissionSuccessCountInc("2_R03")
MissionSuccessCountInc("2_R03_X")
MissionSuccessCountInc("2_R11_Bryce")
MissionSuccessCountInc("2_R11_Chad")
MissionSuccessCountInc("2_R11_Justin")
MissionSuccessCountInc("2_R11_Parker")
MissionSuccessCountInc("2_R11_Random")
MissionSuccessCountInc("2_S02")
MissionSuccessCountInc("2_S04")
MissionSuccessCountInc("2_S05")
MissionSuccessCountInc("2_S05B")
MissionSuccessCountInc("2_S06")
MissionSuccessCountInc("3_01")
MissionSuccessCountInc("3_02")
MissionSuccessCountInc("3_04")
MissionSuccessCountInc("3_05")
MissionSuccessCountInc("3_06")
MissionSuccessCountInc("3_08")
MissionSuccessCountInc("3_08_Launch")
MissionSuccessCountInc("3_08_PostDummy")
MissionSuccessCountInc("3_B")
MissionSuccessCountInc("3_G3")
MissionSuccessCountInc("3_R08_Business1")
MissionSuccessCountInc("3_R08_Business2")
MissionSuccessCountInc("3_R08_Business3")
MissionSuccessCountInc("3_R08_Business4")
MissionSuccessCountInc("3_R08_Poor1")
MissionSuccessCountInc("3_R08_Poor2")
MissionSuccessCountInc("3_R08_Rich1")
MissionSuccessCountInc("3_R08_Rich2")
MissionSuccessCountInc("3_R08_Rich3")
MissionSuccessCountInc("3_R08_Rich4")
MissionSuccessCountInc("3_R08_Rich5")
MissionSuccessCountInc("3_R08_Rich6")
MissionSuccessCountInc("3_R08_Rich7")
MissionSuccessCountInc("3_R08_School1")
MissionSuccessCountInc("3_R09_D3")
MissionSuccessCountInc("3_R09_G3")
MissionSuccessCountInc("3_R09_J3")
MissionSuccessCountInc("3_R09_N")
MissionSuccessCountInc("3_R09_P3")
MissionSuccessCountInc("3_S03")
MissionSuccessCountInc("3_S10")
MissionSuccessCountInc("3_S11")
MissionSuccessCountInc("4_01")
MissionSuccessCountInc("4_02")
MissionSuccessCountInc("4_03")
MissionSuccessCountInc("4_04")
MissionSuccessCountInc("4_05")
MissionSuccessCountInc("4_06")
MissionSuccessCountInc("4_B1")
MissionSuccessCountInc("4_B2")
MissionSuccessCountInc("4_G4")
MissionSuccessCountInc("4_S12")
MissionSuccessCountInc("5_01")
MissionSuccessCountInc("5_02")
MissionSuccessCountInc("5_03")
MissionSuccessCountInc("5_04")
MissionSuccessCountInc("5_05")
MissionSuccessCountInc("5_06")
MissionSuccessCountInc("5_07a")
MissionSuccessCountInc("5_09")
MissionSuccessCountInc("5_B")
MissionSuccessCountInc("5_G5")
MissionSuccessCountInc("6_01")
MissionSuccessCountInc("6_01_Launch")
MissionSuccessCountInc("6_02")
MissionSuccessCountInc("6_03")
MissionSuccessCountInc("6_B")
MissionSuccessCountInc("6_Dummy")
MissionSuccessCountInc("6_PassAll")
MissionSuccessCountInc("Art1X")
MissionSuccessCountInc("C_Art_1")
MissionSuccessCountInc("C_Art_2")
MissionSuccessCountInc("C_Art_3")
MissionSuccessCountInc("C_Art_4")
MissionSuccessCountInc("C_Art_5")
MissionSuccessCountInc("C_Art_5_repeat")
MissionSuccessCountInc("C_Chem_1")
MissionSuccessCountInc("C_Chem_2")
MissionSuccessCountInc("C_Chem_3")
MissionSuccessCountInc("C_Chem_4")
MissionSuccessCountInc("C_Chem_5")
MissionSuccessCountInc("C_Chem_5_repeat")
MissionSuccessCountInc("C_Dodgeball_1")
MissionSuccessCountInc("C_Dodgeball_2")
MissionSuccessCountInc("C_Dodgeball_3")
MissionSuccessCountInc("C_Dodgeball_4")
MissionSuccessCountInc("C_Dodgeball_5")
MissionSuccessCountInc("C_English_1")
MissionSuccessCountInc("C_English_2")
MissionSuccessCountInc("C_English_3")
MissionSuccessCountInc("C_English_4")
MissionSuccessCountInc("C_English_5")
MissionSuccessCountInc("C_English_5_unlocked")
MissionSuccessCountInc("C_Photography_1")
MissionSuccessCountInc("C_Photography_2")
MissionSuccessCountInc("C_Photography_3")
MissionSuccessCountInc("C_Photography_4")
MissionSuccessCountInc("C_Photography_5")
MissionSuccessCountInc("C_Shop_1")
MissionSuccessCountInc("C_Shop_2")
MissionSuccessCountInc("C_Shop_3")
MissionSuccessCountInc("C_Shop_4")
MissionSuccessCountInc("C_Shop_5")
MissionSuccessCountInc("C_Shop_5_repeat")
MissionSuccessCountInc("C_Wrestling_1")
MissionSuccessCountInc("C_Wrestling_2")
MissionSuccessCountInc("C_Wrestling_3")
MissionSuccessCountInc("C_Wrestling_4")
MissionSuccessCountInc("C_Wrestling_5")
MissionSuccessCountInc("Chapt1Trans")
MissionSuccessCountInc("Chapt2Trans")
MissionSuccessCountInc("Chapt3Trans")
MissionSuccessCountInc("Chapt4Trans")
MissionSuccessCountInc("Dummy_Wrestling_1")
MissionSuccessCountInc("Dummy_Wrestling_2")
MissionSuccessCountInc("Dummy_Wrestling_3")
MissionSuccessCountInc("Dummy_Wrestling_4")
MissionSuccessCountInc("Dummy_Wrestling_5")
MissionSuccessCountInc("GoKart_GP1")
MissionSuccessCountInc("GoKart_GP2")
MissionSuccessCountInc("GoKart_GP3")
MissionSuccessCountInc("GoKart_GP4")
MissionSuccessCountInc("GoKart_GP5")
MissionSuccessCountInc("GoKart_SR1")
MissionSuccessCountInc("GoKart_SR2")
MissionSuccessCountInc("GoKart_SR3")
MissionSuccessCountInc("JobLawnMowing1a")
MissionSuccessCountInc("JobLawnMowing1b")
MissionSuccessCountInc("JobLawnMowing1c")
MissionSuccessCountInc("JobLawnMowing2a")
MissionSuccessCountInc("JobLawnMowing2b")
MissionSuccessCountInc("JobLawnMowing2c")
MissionSuccessCountInc("LawnMowing1a")
MissionSuccessCountInc("LawnMowing1b")
MissionSuccessCountInc("LawnMowing1c")
MissionSuccessCountInc("LawnMowing2a")
MissionSuccessCountInc("LawnMowing2b")
MissionSuccessCountInc("LawnMowing2c")
MissionSuccessCountInc("LawnMowing3a")
MissionSuccessCountInc("LawnMowing3b")
MissionSuccessCountInc("LawnMowing3c")
MissionSuccessCountInc("P_Snow1")
MissionSuccessCountInc("P_Snow2")
MissionSuccessCountInc("P_Snow3")
MissionSuccessCountInc("P_Snow4")
MissionSuccessCountInc("P_Snow5")
MissionSuccessCountInc("P_Snow6")
MissionSuccessCountInc("Post_1_03")
MissionSuccessCountInc(mission.name)
push ecx
mov eax, dword ptr [esp+0x8]
push esi
push edi
push 0x0
push eax
call LuaParam::GetString
add esp, 0x8
push eax
lea ecx, ptr [esp+0xC]
call 0x5FA910
lea ecx, ptr [esp+0x8]
push ecx
mov ecx, 0x20C3CA0
call 0x6A9FD0
mov esi, eax
push esi
mov ecx, 0x20C3CA0
call 0x6AA7C0
movzx eax, word ptr [eax+0x2]
push esi
mov ecx, 0x20C3CA0
lea edi, ptr [eax+0x1]
call 0x6AA7C0
mov ecx, 0x20C3CA0
mov word ptr [eax+0x2], di
call 0x6AA150
lea ecx, ptr [esp+0x8]
call 0x49A650
pop edi
xor eax, eax
pop esi
pop ecx
ret
MissionSurpressMissionNameText()
mov ecx, 0x20C3CA0
call 0x6AA6A0
test al, al
jz 0x13
mov ecx, 0x20C3CA0
call 0x6AA710
mov byte ptr [eax+0x80], 0x1
xor eax, eax
ret
elseif MissionTimerGetTimeRemaining() == 0 and flagGo == false then
elseif MissionTimerGetTimeRemaining() == 1 and flag1 == false then
elseif MissionTimerGetTimeRemaining() == 2 and flag2 == false then
if MissionTimerGetTimeRemaining() <= gMinutesToSmash * 60 / 2 and gStartedHighIntensity == false then
if MissionTimerGetTimeRemaining() == 3 and flag3 == false then
if not bSentZoeToPlantRoom and MissionTimerGetTimeRemaining() <= gMinutesToSmash * 60 / 2 then
local t = duration - MissionTimerGetTimeRemaining()
local time = MissionTimerGetTimeRemaining() + 30
local timeLeft = MissionTimerGetTimeRemaining()
sub esp, 0xC
mov ecx, 0xBF4508
call 0x43F6F0
fnstcw word ptr [esp+0x2]
movzx eax, word ptr [esp+0x2]
mov ecx, dword ptr [esp+0x10]
or eax, 0xC00
mov dword ptr [esp+0x4], eax
fldcw word ptr [esp+0x4]
fistp qword ptr [esp+0x4], st
mov eax, dword ptr [esp+0x4]
push eax
push ecx
fldcw word ptr [esp+0xA]
call LuaParam::PushInt
mov eax, 0x1
add esp, 0x14
ret
elseif MissionTimerHasFinished() then
failureConditions = { MissionTimerHasFinished },
if bBurtonLeavePotty or MissionTimerHasFinished() then
if bTimer and MissionTimerHasFinished() then
if bTimerStarted and MissionTimerHasFinished() then
if bUsingTimer and MissionTimerHasFinished() and QTE_TimerStatus == QTE_STARTED then
if bUsingTimer and MissionTimerHasFinished() then
if gBearTimer and MissionTimerHasFinished() then
if gMissionTimer and MissionTimerHasFinished() then
if gTimerIsOn and MissionTimerHasFinished() then
if MissionTimerHasFinished() == true then
if MissionTimerHasFinished() or gDeliveredPapers >= gMinPapers then
if MissionTimerHasFinished() or gMailboxesSmashed >= gMinMailboxes then
if MissionTimerHasFinished() or not PlayerIsInTrigger(TRIGGER._3_06_FailTrig) then
if MissionTimerHasFinished() or PlayerIsInAreaXYZ(tempX, tempY, tempZ, 2, 0) then
if MissionTimerHasFinished() or PlayerIsInTrigger(TRIGGER._3_S03_FAILALLEY) then
if MissionTimerHasFinished() or PlayerIsInTrigger(TRIGGER._3_S03_FAILGREASER) then
if MissionTimerHasFinished() or PlayerIsInTrigger(TRIGGER._3_S03_FAILPOOL) then
if MissionTimerHasFinished() then
if not bJustLeft and MissionTimerHasFinished() then
if not bSuccess and MissionTimerHasFinished() then
if not MissionTimerHasFinished() then
if PlayerIsInTrigger(TRIGGER._1_04_TREE2_TRIG) and PedIsPlaying(gPlayer, "/Global/TreeClimb/Actions/ON_BOT", false) and not MissionTimerHasFinished() then
return MissionTimerHasFinished() or RaceHasRacerFinished(gPlayer)
while not (MissionTimerHasFinished() or PedIsPlaying(gPlayer, "/Global/WPCANNON/UseSpudCannon", true)) do
while not (MissionTimerHasFinished() or PlayerIsInTrigger(TRIGGER._4_03_OPEN_DOOR)) do
while not (MissionTimerHasFinished() or RaceHasRacerFinished(gPlayer)) do
while not (not MinigameIsActive() or MissionTimerHasFinished() and bUsingTimer) do
while not MissionTimerHasFinished() and bMissionSuccess do
while not MissionTimerHasFinished() do
mov ecx, 0xBF4508
call 0x43F6F0
fcomp st, dword ptr [0x8FF1F0]
fnstsw ax
test ah, 0x41
jp 0x18
mov al, 0x1
push eax
mov eax, dword ptr [esp+0x8]
push eax
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
ret
xor al, al
push eax
mov eax, dword ptr [esp+0x8]
push eax
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
ret
MissionTimerPause(false)
MissionTimerPause(true)
push ecx
mov eax, dword ptr [esp+0x8]
push 0x0
push eax
call LuaParam::GetBool
mov byte ptr [esp+0x8], al
mov ecx, dword ptr [esp+0x8]
add esp, 0x8
push ecx
mov ecx, 0xBF4508
call 0x43F6B0
xor eax, eax
pop ecx
ret
MissionTimerStart(10)
MissionTimerStart(120)
MissionTimerStart(15)
MissionTimerStart(185)
MissionTimerStart(30)
MissionTimerStart(300)
MissionTimerStart(325)
MissionTimerStart(35)
MissionTimerStart(400)
MissionTimerStart(5)
MissionTimerStart(6)
MissionTimerStart(60)
MissionTimerStart(70)
MissionTimerStart(ClassDurationReq)
MissionTimerStart(cTime)
MissionTimerStart(gDuration)
MissionTimerStart(getOnDelay)
MissionTimerStart(gMeetPinkyTime)
MissionTimerStart(gMinRideTime)
MissionTimerStart(gMinutesToSmash * 60)
MissionTimerStart(gMissionTime)
MissionTimerStart(gordTimer)
MissionTimerStart(gTimeLimit)
MissionTimerStart(gTotalTime)
MissionTimerStart(gTreeTime)
MissionTimerStart(GYM_TIME)
MissionTimerStart(MISSION_TIME)
MissionTimerStart(nTimeLeft)
MissionTimerStart(race.finish_delay)
MissionTimerStart(race.get_on_delay)
MissionTimerStart(round_length / 1000)
MissionTimerStart(seconds)
MissionTimerStart(tblRaceInfo.race.finish_delay)
MissionTimerStart(time)
MissionTimerStart(TIME_TO_GET_TO_SQUARE)
MissionTimerStart(timeInSeconds)
MissionTimerStart(timeLeft + gBonusTime)
MissionTimerStart(timeLimit)
MissionTimerStart(timer_start)
MissionTimerStart(toFunhouseTimer)
MissionTimerStart(totalTime)
mov eax, dword ptr [esp+0x4]
push esi
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x8
push 0x1
mov ecx, 0xBF4508
movzx esi, ax
call 0x43F750
movzx ecx, si
push ecx
mov ecx, 0xBF4508
call 0x43F690
xor eax, eax
pop esi
ret
-- never used
push ebx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
movzx edi, ax
call LuaParam::GetInt
push 0x2
push esi
movzx ebx, ax
call LuaParam::GetInt
movzx ecx, byte ptr [0xBCEB4A]
movzx edx, ax
movzx ax, byte ptr [0xBCEB4B]
imul ax, ax, 0x3C
add ax, cx
movzx ecx, byte ptr [0xBCEB48]
imul ax, ax, 0x3C
add ax, cx
movzx ecx, ax
mov eax, edi
shl eax, 0x4
sub eax, edi
lea eax, ptr [ebx+eax*4]
mov esi, eax
shl esi, 0x4
sub esi, eax
lea edx, ptr [edx+esi*4]
movzx esi, dx
add esp, 0x18
cmp si, cx
jnb 0x10
lea eax, ptr [esi+esi*1+0x5180]
sub eax, ecx
movzx esi, ax
jmp 0x4
sub esi, ecx
push 0x1
mov ecx, 0xBF4508
call 0x43F750
movzx ecx, si
push ecx
mov ecx, 0xBF4508
call 0x43F690
pop edi
pop esi
xor eax, eax
pop ebx
ret
completeActions = { MissionTimerStop },
failActions = { MissionTimerStop },
MissionTimerStop()
push 0x0
mov ecx, 0xBF4508
call 0x43F750
xor eax, eax
ret
MissionUpdateActionController()
fldz
push ecx
mov ecx, dword ptr [0x20C43DC]
fstp dword ptr [esp], st
call 0x5F4B00
mov eax, dword ptr [esp+0x4]
push 0x1
push eax
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
ret
ModelNotNeeded(10)
ModelNotNeeded(109)
ModelNotNeeded(11)
ModelNotNeeded(111)
ModelNotNeeded(112)
ModelNotNeeded(12)
ModelNotNeeded(130)
ModelNotNeeded(134)
ModelNotNeeded(18)
ModelNotNeeded(19)
ModelNotNeeded(21)
ModelNotNeeded(22)
ModelNotNeeded(23)
ModelNotNeeded(231)
ModelNotNeeded(232)
ModelNotNeeded(25)
ModelNotNeeded(27)
ModelNotNeeded(28)
ModelNotNeeded(282)
ModelNotNeeded(29)
ModelNotNeeded(299)
ModelNotNeeded(300)
ModelNotNeeded(301)
ModelNotNeeded(302)
ModelNotNeeded(303)
ModelNotNeeded(32)
ModelNotNeeded(331)
ModelNotNeeded(342)
ModelNotNeeded(35)
ModelNotNeeded(37)
ModelNotNeeded(384)
ModelNotNeeded(387)
ModelNotNeeded(388)
ModelNotNeeded(389)
ModelNotNeeded(4)
ModelNotNeeded(400)
ModelNotNeeded(401)
ModelNotNeeded(402)
ModelNotNeeded(490)
ModelNotNeeded(491)
ModelNotNeeded(492)
ModelNotNeeded(8)
ModelNotNeeded(9)
ModelNotNeeded(i)
ModelNotNeeded(model)
mov eax, dword ptr [esp+0x4]
push esi
push 0x0
push eax
call LuaParam::GetInt
mov esi, eax
push esi
call 0x52FF40
add esp, 0xC
push esi
mov ecx, 0xD02850
call 0x5DB940
mov ecx, eax
call 0x5D94A0
xor eax, eax
pop esi
ret
ModelNotNeededAmbient(127)
ModelNotNeededAmbient(134)
ModelNotNeededAmbient(183)
ModelNotNeededAmbient(184)
ModelNotNeededAmbient(185)
ModelNotNeededAmbient(25)
ModelNotNeededAmbient(30)
ModelNotNeededAmbient(327)
ModelNotNeededAmbient(331)
ModelNotNeededAmbient(335)
ModelNotNeededAmbient(346)
ModelNotNeededAmbient(377)
ModelNotNeededAmbient(38)
ModelNotNeededAmbient(381)
ModelNotNeededAmbient(405)
ModelNotNeededAmbient(53)
ModelNotNeededAmbient(82)
ModelNotNeededAmbient(bike)
ModelNotNeededAmbient(biker)
ModelNotNeededAmbient(carc)
ModelNotNeededAmbient(DormPed)
ModelNotNeededAmbient(driverc)
ModelNotNeededAmbient(FootballPed1)
ModelNotNeededAmbient(FootballPed2)
ModelNotNeededAmbient(FootballPed3)
ModelNotNeededAmbient(FootballPed4)
ModelNotNeededAmbient(model)
ModelNotNeededAmbient(ped1)
ModelNotNeededAmbient(ped1_ModelID)
ModelNotNeededAmbient(ped2)
ModelNotNeededAmbient(ped2_ModelID)
ModelNotNeededAmbient(SchoolPed)
ModelNotNeededAmbient(WChoice)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetInt
mov ecx, dword ptr [eax*4+0xC67738]
add esp, 0x8
cmp byte ptr [ecx+0x8], 0x4
push eax
jz 0xD
call 0x52FE40
add esp, 0x4
xor eax, eax
ret
call 0x4D98E0
add esp, 0x4
xor eax, eax
ret
MonitorSetGreyed(0, false)
MonitorSetGreyed(0, true)
sub esp, 0x8
push esi
mov esi, dword ptr [esp+0x10]
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov byte ptr [esp+0x18], al
call LuaParam::GetBool
mov ecx, dword ptr [esp+0x18]
mov byte ptr [esp+0x14], al
mov eax, dword ptr [esp+0x14]
add esp, 0x10
push eax
push ecx
mov ecx, dword ptr [0xC6753C]
call 0x542FE0
xor eax, eax
pop esi
add esp, 0x8
ret
MonitorSetText(0, "")
MonitorSetText(0, "4_04_USEPROP")
MonitorSetText(1, "")
MonitorSetText(2, "")
MonitorSetText(3, "")
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov byte ptr [esp+0x14], al
call LuaParam::GetString
mov ecx, dword ptr [0xC6753C]
add esp, 0x10
push eax
mov eax, dword ptr [esp+0x8]
push eax
call 0x542FB0
xor eax, eax
pop esi
pop ecx
ret
MusicAllowPlayDuringCutscenes(false)
MusicAllowPlayDuringCutscenes(true)
mov eax, dword ptr [esp+0x4]
push 0x0
push 0x0
push eax
call LuaParam::GetBool ; optional
mov byte ptr [0xCF3DA4], al
add esp, 0xC
xor eax, eax
ret
MusicFadeWithCamera(false)
MusicFadeWithCamera(true)
push ecx
mov eax, dword ptr [esp+0x8]
push 0x1
push 0x0
push eax
call LuaParam::GetBool ; optional
mov byte ptr [esp+0xC], al
mov ecx, dword ptr [esp+0xC]
push ecx
push 0x1
call 0x59E5E0
xor eax, eax
add esp, 0x18
ret
A standard Lua 5.0 function without documentation.
NewspaperAddDeliverdPaper()
mov eax, dword ptr [0xC674BC]
add dword ptr [eax+0x50], 0x1
xor eax, eax
ret
-- never used
mov eax, dword ptr [0xC674BC]
mov ecx, dword ptr [eax+0x4C]
mov edx, dword ptr [esp+0x4]
push ecx
push edx
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
ret
-- never used
mov eax, dword ptr [0xC674BC]
mov ecx, dword ptr [eax+0x50]
mov edx, dword ptr [esp+0x4]
push ecx
push edx
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
ret
NewspaperMakeHUDVisible(false)
NewspaperMakeHUDVisible(true)
mov eax, dword ptr [esp+0x4]
push esi
push edi
mov edi, dword ptr [0xC674BC]
mov esi, dword ptr [edi]
push 0x0
push eax
add esi, 0x14
call LuaParam::GetBool
mov edx, dword ptr [esi]
add esp, 0x8
mov ecx, edi
push eax
call 0x5C22F3
pop edi
xor eax, eax
pop esi
ret
NewspaperSetDeliveredPapers(0)
mov eax, dword ptr [esp+0x4]
push esi
mov esi, dword ptr [0xC674BC]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x8
mov dword ptr [esi+0x50], eax
xor eax, eax
pop esi
ret
NewspaperSetMaxPapers(mailboxCount)
mov eax, dword ptr [esp+0x4]
push esi
mov esi, dword ptr [0xC674BC]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x8
mov dword ptr [esi+0x4C], eax
xor eax, eax
pop esi
ret
NewspaperSetPaperVisible(false)
NewspaperSetPaperVisible(true)
mov eax, dword ptr [esp+0x4]
push esi
mov esi, dword ptr [0xC674BC]
push 0x0
push eax
call LuaParam::GetBool
add esp, 0x8
mov byte ptr [esi+0x64], al
xor eax, eax
pop esi
ret
NewspaperThrowPaper()
mov eax, dword ptr [0xC674BC]
mov byte ptr [eax+0x65], 0x1
xor eax, eax
ret
A standard Lua 5.0 function documented on lua.org.
NonMissionPedGenerationDisable()
function NonMissionPedGenerationDisable()
AreaClearAllPeds()
DisablePOI()
AreaOverridePopulation(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
AreaClearAllVehicles()
VehicleOverrideAmbient(0, 0, 0, 0)
end
NonMissionPedGenerationEnable()
function NonMissionPedGenerationEnable()
AreaRevertToDefaultPopulation()
EnablePOI()
VehicleRevertToDefaultAmbient()
end
-- never used
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetBool
mov byte ptr [0xC66B24], al
add esp, 0x8
xor eax, eax
ret
-- never used
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetFloat
fstp dword ptr [0xC66B28], st
add esp, 0x8
xor eax, eax
ret
function NSCall(filename, func, err, arg1, arg2, arg3, arg4, arg5, arg6)
local nst = _nspaces[filename]
if nst == nil then
return nil
end
local fcall = nst.func_env._Call
return fcall(func, err, arg1, arg2, arg3, arg4, arg5, arg6)
end
ObjectBreak(ModelPoolIndex)
push ecx
push ebx
push esi
mov esi, dword ptr [esp+0x10]
push edi
push esi
call 0x73AEA0
push 0x0
push esi
mov edi, eax
call LuaParam::GetInt
add esp, 0xC
cmp edi, 0x2
mov ebx, eax
mov byte ptr [esp+0xC], 0x1
jnz 0x11
push 0x1
push esi
call LuaParam::GetBool
add esp, 0x8
mov byte ptr [esp+0xC], al
push ebx
call 0x44A5B0
mov ecx, dword ptr [esp+0x10]
add esp, 0x4
push ecx
mov ecx, eax
call 0x4D0450
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
LT_GroupObjectCreate(groupName, ObjectCreatePoint, "model", "spawnLocation")
LT_GroupObjectCreate(objectDefaultGroupName, ObjectCreatePoint, "model", "spawnLocation")
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword ptr [esp+0x24]
push edi
xor bl, bl
call 0x73AEA0
add esp, 0x4
cmp eax, 0x3
jnz 0x13
push 0x2
push edi
mov bl, 0x1
call LuaParam::GetInt
add esp, 0x8
mov dword ptr [esp+0x10], eax
push 0x1
push edi
call LuaParam::GetInt
movzx eax, ax
movzx eax, ax
add esp, 0x8
push eax
mov ecx, 0xBC5E7C
call 0x6D6450
mov ebp, eax
mov ecx, ebp
call 0x6D59B0
test bl, bl
mov esi, eax
jz 0x23
mov ebx, 0x1
cmp dword ptr [esp+0x10], ebx
jle 0x18
mov ecx, ebp
call 0x6D59F0
test eax, eax
jz 0xD
add ebx, 0x1
cmp ebx, dword ptr [esp+0x10]
mov esi, eax
jl 0xFFFFFFEC
mov ecx, dword ptr [esi]
mov edx, dword ptr [esi+0x4]
mov eax, dword ptr [esi+0x8]
push 0x0
push edi
mov dword ptr [esp+0x1C], ecx
mov dword ptr [esp+0x20], edx
mov dword ptr [esp+0x24], eax
call LuaParam::GetInt
fld st, dword ptr [esp+0x24]
fstp dword ptr [esp+0x4], st
movzx eax, ax
fld st, dword ptr [esp+0x20]
fstp dword ptr [esp], st
push ecx
fld st, dword ptr [esp+0x20]
fstp dword ptr [esp], st
push eax
push edi
call 0x5C35E0
movzx eax, ax
movzx esi, ax
add esp, 0x14
push esi
mov ecx, 0xD02850
call 0x5DB940
mov ecx, eax
call 0x5D97D0
push esi
push edi
call LuaParam::PushInt
add esp, 0x8
pop edi
pop esi
pop ebp
mov eax, 0x1
pop ebx
add esp, 0x10
ret
-- never used
sub esp, 0xC
push esi
mov esi, dword ptr [esp+0x14]
push edi
push 0x0
push esi
call LuaParam::IsString
add esp, 0x8
test al, al
push 0x0
push esi
jz 0x12
call LuaParam::GetString
push eax
call 0x51C330
add esp, 0xC
jmp 0xA
call LuaParam::GetInt
add esp, 0x8
push 0x1
push esi
mov edi, eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x18], st
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x1C], st
push 0x3
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x20], st
fld st, dword ptr [esp+0x20]
add esp, 0xC
fstp dword ptr [esp+0x8], st
fld st, dword ptr [esp+0x18]
fstp dword ptr [esp+0x4], st
fld st, dword ptr [esp+0x1C]
fstp dword ptr [esp], st
push edi
push esi
call 0x5C35E0
movzx eax, ax
movzx edi, ax
add esp, 0x14
push edi
mov ecx, 0xD02850
call 0x5DB940
mov ecx, eax
call 0x5D97D0
push edi
push esi
call LuaParam::PushInt
add esp, 0x8
pop edi
mov eax, 0x1
pop esi
add esp, 0xC
ret
ObjectDelete(prop.id)
mov eax, dword ptr [esp+0x4]
push esi
push 0x0
push eax
call LuaParam::GetInt
movzx esi, ax
push esi
call 0x5C2A10
movzx ecx, si
add esp, 0xC
push ecx
mov ecx, 0xD02850
call 0x5DB940
mov ecx, eax
call 0x5D97F0
xor eax, eax
pop esi
ret
-- never used
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x8
xor eax, eax
ret
CLIENT
Sets an object's heading in degrees. Resets the object's pitch and roll to 0.
if ObjectFindInArea(tpX, tpY, tpZ, 1.75) then
sub esp, 0x1C
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x2C]
push edi
xor edi, edi
push edi
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x24], st
push 0x1
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x28], st
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x2C], st
push 0x3
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x30], st
fld st, dword ptr [esp+0x30]
add esp, 0x8
fst dword ptr [esp+0x14], st
lea eax, ptr [esp+0x38]
fst dword ptr [esp+0x10], st
mov dword ptr [esp+0x38], edi
fstp dword ptr [esp+0xC], st
mov dword ptr [esp+0x3C], edi
fld st, dword ptr [esp+0x2C]
mov dword ptr [esp+0x40], edi
fstp dword ptr [esp+0x8], st
fld st, dword ptr [esp+0x30]
fstp dword ptr [esp+0x4], st
fld st, dword ptr [esp+0x34]
fstp dword ptr [esp], st
push eax
call 0x5C25A0
mov byte ptr [esp+0x38], al
mov ecx, dword ptr [esp+0x38]
push ecx
push esi
call LuaParam::PushBool
mov ebx, dword ptr [esp+0x4C]
mov ebp, dword ptr [esp+0x44]
add esp, 0x24
cmp ebx, edi
jbe 0x1D
lea ebx, ptr [ebx]
mov edx, dword ptr [ebp+edi*4]
push edx
push esi
call LuaParam::PushInt
add edi, 0x1
add esp, 0x8
cmp edi, ebx
jb 0xFFFFFFED
test ebp, ebp
lea esi, ptr [ebx+0x1]
jz 0xB
push ebp
call 0x5EEAB0
add esp, 0x4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x1C
ret
CLIENT
Returns true if an object's entity flag is set. Flags are in the range [0, 58].
gBusWindow = ObjectGetModelIndex("BusWindow")
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetString
push eax
call 0x51C330
push eax
push esi
call LuaParam::PushInt
add esp, 0x14
mov eax, 0x1
pop esi
ret
CLIENT
Returns an object's rotation in radians. May take an optional rotation order.
-- never used
sub esp, 0x8
push ebx
push ebp
mov ebp, dword ptr [esp+0x14]
push edi
push ebp
call 0x73AEA0
push 0x0
push ebp
call LuaParam::GetUserData
mov edi, dword ptr [0xC0F614]
mov ebx, dword ptr [edi+0x8]
add esp, 0xC
xor edx, edx
test ebx, ebx
mov dword ptr [esp+0x10], eax
mov dword ptr [esp+0xC], 0xFFFFFFFF
jle 0x42
mov eax, dword ptr [edi+0x4]
push esi
lea ebx, ptr [ebx]
test byte ptr [eax+edx*1], 0x80
jnz 0x24
mov esi, edx
sar esi, 0x8
cmp byte ptr [eax+esi*1], dl
jnz 0xC
mov ecx, dword ptr [edi+0xC]
imul ecx, esi
add ecx, dword ptr [edi]
jmp 0x4
xor ecx, ecx
mov esi, dword ptr [esp+0x14]
cmp dword ptr [ecx+0x228], esi
jz 0xB
add edx, 0x1
cmp edx, ebx
jl 0xFFFFFFD3
jmp 0x6
mov dword ptr [esp+0x10], edx
pop esi
mov eax, dword ptr [esp+0xC]
push eax
push ebp
call LuaParam::PushInt
add esp, 0x8
pop edi
pop ebp
mov eax, 0x1
pop ebx
add esp, 0x8
ret
if not plant.bDestroyed and ObjectIsDestroyed(plant.id) then
if not prop.destroyed and prop.OnDestroyed ~= nil and ObjectIsDestroyed(prop.id) then
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push 0x0
push esi
mov byte ptr [esp+0xC], 0x0
call LuaParam::GetInt
mov ecx, dword ptr [0xC0F614]
movzx edx, ax
mov eax, dword ptr [ecx+0x8]
shr edx, 0x8
add esp, 0x8
cmp edx, eax
jl 0x17
cmp dword ptr [ecx+0x10], 0x0
jz 0x2A
mov ecx, dword ptr [ecx+0x10]
push 0x1
sub edx, eax
push edx
call 0x435BD0
jmp 0xA
mov eax, dword ptr [ecx+0xC]
imul eax, edx
add eax, dword ptr [ecx]
test eax, eax
jz 0xF
mov edx, dword ptr [eax]
mov ecx, eax
mov eax, dword ptr [edx+0x78]
call 0x5C3163
mov byte ptr [esp+0x4], al
mov ecx, dword ptr [esp+0x4]
push ecx
push esi
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
pop esi
pop ecx
ret
-- never used
sub esp, 0x30
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x40]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov dword ptr [esp+0x34], eax
call LuaParam::GetInt
push 0x2
push esi
movzx edi, ax
call LuaParam::GetInt
push 0x3
push esi
mov ebp, eax
call LuaParam::GetFloat
push 0x4
fstp dword ptr [esp+0x44], st
push esi
call LuaParam::GetInt
push esi
mov dword ptr [esp+0x48], eax
mov byte ptr [esp+0x44], 0x0
or ebx, 0xFFFFFFFF
mov byte ptr [esp+0x40], 0x0
call LuaParam::GetParamCount
add esp, 0x2C
cmp eax, 0x6
jl 0xF
push 0x5
push esi
call LuaParam::GetInt
add esp, 0x8
mov ebx, eax
push esi
call LuaParam::GetParamCount
add esp, 0x4
cmp eax, 0x7
jl 0x11
push 0x6
push esi
call LuaParam::GetBool
add esp, 0x8
mov byte ptr [esp+0x14], al
fldz
push esi
fstp dword ptr [esp+0x14], st
call LuaParam::GetParamCount
add esp, 0x4
cmp eax, 0x8
jl 0x1D
push 0x7
push esi
call LuaParam::GetFloat
fmul st, qword ptr [0x900160]
add esp, 0x8
fdiv st, qword ptr [0x900158]
fstp dword ptr [esp+0x10], st
cmp ebp, 0x3
movzx edi, di
jnbe 0xD4
jmp dword ptr [ebp*4+0x5C2F20]
mov ecx, dword ptr [0xC0F614]
push edi
call 0x5C1470
jmp 0x3A
push edi
call 0x44A580
add esp, 0x4
jmp 0x2F
push ecx
mov eax, esp
push edi
mov dword ptr [eax], 0x2
call 0x5C7380
add esp, 0x8
jmp 0x7
mov eax, dword ptr [0xC1AEA8]
test eax, eax
jz 0x93
mov ecx, dword ptr [eax+0x1554]
test ecx, ecx
jz 0x4
mov eax, ecx
test eax, eax
jz 0x7F
push ebp
lea eax, ptr [esp+0x38]
push edi
push eax
call 0x5C2970
fldz
mov ecx, dword ptr [esp+0x20]
fst dword ptr [esp+0x34], st
mov eax, dword ptr [esp+0x28]
fstp dword ptr [esp+0x38], st
fld st, dword ptr [esp+0x1C]
add esp, 0xC
push 0x1
fstp dword ptr [esp+0x34], st
fld st, dword ptr [esp+0x24]
push 0x0
push ecx
mov ecx, dword ptr [esp+0x30]
push 0xFFFFFFFF
push ebx
lea edx, ptr [esp+0x3C]
push edx
push eax
sub esp, 0x1C
fst dword ptr [esp+0x18], st
mov eax, esp
fst dword ptr [esp+0x14], st
mov dword ptr [eax], 0x0
fstp dword ptr [esp+0x10], st
fld st, dword ptr [esp+0x74]
fstp dword ptr [esp+0xC], st
fld st, dword ptr [esp+0x70]
fstp dword ptr [esp+0x8], st
fld st, dword ptr [esp+0x6C]
fstp dword ptr [esp+0x4], st
push ecx
push 0x1
call 0x5C2A70
add esp, 0x40
mov byte ptr [esp+0x18], al
mov edx, dword ptr [esp+0x18]
push edx
push esi
call LuaParam::PushBool
add esp, 0x8
pop edi
pop esi
pop ebp
mov eax, 0x1
pop ebx
add esp, 0x30
ret
-- never used
sub esp, 0x20
push ebx
push esi
mov esi, dword ptr [esp+0x2C]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
movzx edi, ax
call LuaParam::GetFloat
push 0x2
push esi
fstp dword ptr [esp+0x34], st
call LuaParam::GetFloat
push 0x3
fstp dword ptr [esp+0x34], st
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x34], st
push 0x4
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x38], st
push 0x5
push esi
call LuaParam::GetInt
fldz
push esi
fstp dword ptr [esp+0x40], st
mov ebx, eax
call LuaParam::GetParamCount
add esp, 0x34
cmp eax, 0x7
jl 0x1D
push 0x6
push esi
call LuaParam::GetFloat
fmul st, qword ptr [0x900160]
add esp, 0x8
fdiv st, qword ptr [0x900158]
fstp dword ptr [esp+0xC], st
fldz
push 0x1
push 0x0
push 0x0
push 0xFFFFFFFF
push ecx
mov eax, esp
mov dword ptr [eax], 0xFFFFFFFF
fst dword ptr [esp+0x34], st
fstp dword ptr [esp+0x38], st
lea eax, ptr [esp+0x34]
fld st, dword ptr [esp+0x20]
push eax
fstp dword ptr [esp+0x40], st
push ebx
fld st, dword ptr [esp+0x2C]
sub esp, 0x1C
fst dword ptr [esp+0x18], st
movzx ecx, di
fst dword ptr [esp+0x14], st
mov eax, esp
fstp dword ptr [esp+0x10], st
mov dword ptr [eax], 0x0
fld st, dword ptr [esp+0x4C]
fstp dword ptr [esp+0xC], st
fld st, dword ptr [esp+0x50]
fstp dword ptr [esp+0x8], st
fld st, dword ptr [esp+0x54]
fstp dword ptr [esp+0x4], st
push ecx
push 0x1
call 0x5C2A70
mov byte ptr [esp+0x5C], al
mov edx, dword ptr [esp+0x5C]
push edx
push esi
call LuaParam::PushBool
add esp, 0x48
pop edi
pop esi
mov eax, 0x1
pop ebx
add esp, 0x20
ret
-- never used
push ebx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
movzx edi, ax
call LuaParam::GetInt
movzx ebx, ax
movzx eax, di
push eax
call 0x44A5B0
movsx ecx, word ptr [eax+0x10E]
movzx edx, bx
cmp ecx, edx
setz al
push eax
push esi
call LuaParam::PushBool
add esp, 0x1C
pop edi
pop esi
mov eax, 0x1
pop ebx
ret
CLIENT
Returns true if the argument is a number referring to a valid object.
ObjectMakeTargetable(pedGreaserC03.id, false)
push ebx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
movzx edi, ax
call LuaParam::GetBool
add esp, 0x10
push 0x0
push 0x1
push ecx
mov bl, al
mov eax, esp
mov dword ptr [eax], 0x0
movzx eax, di
push eax
call 0x5C28D0
add esp, 0x10
movzx ecx, bl
pop edi
pop esi
mov dword ptr [eax+0xC0], ecx
xor eax, eax
pop ebx
ret
--print("DPI_pDoorBrk01: ", tostring(ObjectNameToHashID("isc_prep_DPI_pDoorBrk01")))
--print("DPI_pDoorBrk02: ", tostring(ObjectNameToHashID("isc_prep_DPI_pDoorBrk02")))
--print("DPI_prepWinBrk01: ", tostring(ObjectNameToHashID("isc_prep_DPI_prepWinBrk01")))
--print("DPI_prepWinBrk: ", tostring(ObjectNameToHashID("isc_prep_DPI_prepWinBrk")))
AreaSetSavePointLocation(ObjectNameToHashID("SAVEBOOKBOYSDORM"), -491.6, 310.3, 31.4, 76.2, 14, -494.703, 312.915, 33.918)
AreaSetSavePointLocation(ObjectNameToHashID("SAVEBOOKDROPOUTS"), -655, 248, 15.2, 82.4, 57, -658.078, 251.332, 17.823)
AreaSetSavePointLocation(ObjectNameToHashID("SAVEBOOKGREASERS"), -696.8, 352.6, 3.3, -176.7, 61, -697.463, 348.687, 4.366)
AreaSetSavePointLocation(ObjectNameToHashID("SAVEBOOKJOCKS"), -742.3, 348.3, 3.5, 70.1, 59, -746.004, 347.044, 5.191)
AreaSetSavePointLocation(ObjectNameToHashID("SAVEBOOKNERDS"), -733.8, 36.2, -2.3, -82.5, 30, -730.373, 34.04, 0.277)
AreaSetSavePointLocation(ObjectNameToHashID("SAVEBOOKPREPS"), -778, 357.6, 6.4, -160.3, 60, -775.002, 355.134, 8.7)
AreaSetSavePointLocation(ObjectNameToHashID("SAVEBOOKSCHOOL"), -634.1, -289.3, 5.5, -170.9, 2, -636.276, -292.447, 7.498)
elseif ObjectNameToHashID("isc_prep_DPI_pDoorBrk01") == HashID then
elseif ObjectNameToHashID("isc_prep_DPI_pDoorBrk02") == HashID then
elseif ObjectNameToHashID("isc_prep_DPI_prepWinBrk") == HashID then
entry.hash = ObjectNameToHashID(entry.name)
entry.hash = ObjectNameToHashID(entry.object)
entry.id = ObjectNameToHashID(entry.name)
hash = ObjectNameToHashID("iware_Armor01"),
hash = ObjectNameToHashID("iware_Armor02"),
hash = ObjectNameToHashID("iware_Armor03"),
hash = ObjectNameToHashID("iware_Armor05"),
hash = ObjectNameToHashID("iware_CargoBox13"),
hash = ObjectNameToHashID("iware_DPE_BenchB"),
hash = ObjectNameToHashID("iware_DPE_BenchB02"),
hash = ObjectNameToHashID("iware_DPE_BenchB06"),
hash = ObjectNameToHashID("iware_DPE_BirdBath"),
hash = ObjectNameToHashID("iware_DPE_BirdBath01"),
hash = ObjectNameToHashID("iware_DPE_BirdBath06"),
hash = ObjectNameToHashID("iware_DPE_BirdBath07"),
hash = ObjectNameToHashID("iware_DPE_BirdBath09"),
hash = ObjectNameToHashID("iware_DPE_Detour04"),
hash = ObjectNameToHashID("iware_DPE_Detour06"),
hash = ObjectNameToHashID("iware_DPE_Detour08"),
hash = ObjectNameToHashID("iware_DPE_Detour11"),
hash = ObjectNameToHashID("iware_DPE_Detour12"),
hash = ObjectNameToHashID("iware_DPE_Detour14"),
hash = ObjectNameToHashID("iware_DPE_Detour16"),
hash = ObjectNameToHashID("iware_DPE_Detour17"),
hash = ObjectNameToHashID("iware_DPE_GlassCart01"),
hash = ObjectNameToHashID("iware_DPE_GlassCart02"),
hash = ObjectNameToHashID("iware_DPE_GnomeA"),
hash = ObjectNameToHashID("iware_DPE_GnomeA03"),
hash = ObjectNameToHashID("iware_DPE_GnomeB"),
hash = ObjectNameToHashID("iware_DPE_GnomeB02"),
hash = ObjectNameToHashID("iware_DPE_HatSVase02"),
hash = ObjectNameToHashID("iware_DPE_HatSVase04"),
hash = ObjectNameToHashID("iware_DPE_HatVase02"),
hash = ObjectNameToHashID("iware_DPE_HatVase03"),
hash = ObjectNameToHashID("iware_DPE_HatVase04"),
hash = ObjectNameToHashID("iware_DPE_HatVase05"),
hash = ObjectNameToHashID("iware_DPE_Hcolumn01"),
hash = ObjectNameToHashID("iware_DPE_Hcolumn02"),
hash = ObjectNameToHashID("iware_DPE_Hcolumn06"),
hash = ObjectNameToHashID("iware_DPI_AsyTable"),
hash = ObjectNameToHashID("iware_DPI_AsyTable02"),
hash = ObjectNameToHashID("iware_DPI_AsyTable03"),
hash = ObjectNameToHashID("iware_DPI_CardBox"),
hash = ObjectNameToHashID("iware_DPI_CardBox01"),
hash = ObjectNameToHashID("iware_DPI_CardBox02"),
hash = ObjectNameToHashID("iware_DPI_CardBox03"),
hash = ObjectNameToHashID("iware_DPI_ChairPile"),
hash = ObjectNameToHashID("iware_DPI_ChairPile01"),
hash = ObjectNameToHashID("iware_DPI_ChairPile02"),
hash = ObjectNameToHashID("iware_DPI_ChairPile05"),
hash = ObjectNameToHashID("iware_DPI_ChairPile06"),
hash = ObjectNameToHashID("iware_DPI_ChairPile07"),
hash = ObjectNameToHashID("iware_DPI_ChairPile08"),
hash = ObjectNameToHashID("iware_DPI_CrateBrk151"),
hash = ObjectNameToHashID("iware_DPI_CrateBrk155"),
hash = ObjectNameToHashID("iware_DPI_CrateBrk156"),
hash = ObjectNameToHashID("iware_DPI_CrateBrk157"),
hash = ObjectNameToHashID("iware_DPI_CrateBrk158"),
hash = ObjectNameToHashID("iware_DPI_CrateBrk162"),
hash = ObjectNameToHashID("iware_DPI_CrateBrk163"),
hash = ObjectNameToHashID("iware_DPI_CrateBrk164"),
hash = ObjectNameToHashID("iware_DPI_CrateBrk165"),
hash = ObjectNameToHashID("iware_DPI_CrateBrk166"),
hash = ObjectNameToHashID("iware_DPI_CrateBrk167"),
hash = ObjectNameToHashID("iware_DPI_CrateBrk168"),
hash = ObjectNameToHashID("iware_DPI_CrateBrk169"),
hash = ObjectNameToHashID("iware_DPI_CrateBrk170"),
hash = ObjectNameToHashID("iware_DPI_CrateBrk171"),
hash = ObjectNameToHashID("iware_DPI_CrateBrk173"),
hash = ObjectNameToHashID("iware_DPI_CrateBrk175"),
hash = ObjectNameToHashID("iware_DPI_LampMini"),
hash = ObjectNameToHashID("iware_DPI_LampMini01"),
hash = ObjectNameToHashID("iware_DPI_LampMini07"),
hash = ObjectNameToHashID("iware_DPI_LampMini08"),
hash = ObjectNameToHashID("iware_DPI_LampMini09"),
hash = ObjectNameToHashID("iware_DPI_Lcrate141"),
hash = ObjectNameToHashID("iware_DPI_Lcrate142"),
hash = ObjectNameToHashID("iware_DPI_Lcrate143"),
hash = ObjectNameToHashID("iware_DPI_Lcrate144"),
hash = ObjectNameToHashID("iware_DPI_Lcrate145"),
hash = ObjectNameToHashID("iware_DPI_Lcrate147"),
hash = ObjectNameToHashID("iware_DPI_Lcrate149"),
hash = ObjectNameToHashID("iware_DPI_Lcrate150"),
hash = ObjectNameToHashID("iware_DPI_Lcrate152"),
hash = ObjectNameToHashID("iware_DPI_Lcrate153"),
hash = ObjectNameToHashID("iware_DPI_Lcrate154"),
hash = ObjectNameToHashID("iware_DPI_Lcrate155"),
hash = ObjectNameToHashID("iware_DPI_Lcrate157"),
hash = ObjectNameToHashID("iware_DPI_Lcrate158"),
hash = ObjectNameToHashID("iware_DPI_Lcrate159"),
hash = ObjectNameToHashID("iware_DPI_pCabDoor01"),
hash = ObjectNameToHashID("iware_DPI_pCabDoor02"),
hash = ObjectNameToHashID("iware_DPI_pCabDoor03"),
hash = ObjectNameToHashID("iware_DPI_pCabDoor04"),
hash = ObjectNameToHashID("iware_DPI_pDoorBrk01"),
hash = ObjectNameToHashID("iware_DPI_pDoorBrk02"),
hash = ObjectNameToHashID("iware_DPI_PlanterB"),
hash = ObjectNameToHashID("iware_DPI_PlanterB01"),
hash = ObjectNameToHashID("iware_DPI_PlanterB02"),
hash = ObjectNameToHashID("iware_DPI_PlanterB03"),
hash = ObjectNameToHashID("iware_DPI_Planters01"),
hash = ObjectNameToHashID("iware_DPI_Planters03"),
hash = ObjectNameToHashID("iware_DPI_Planters06"),
hash = ObjectNameToHashID("iware_DPI_pPlant"),
hash = ObjectNameToHashID("iware_DPI_pPlant01"),
hash = ObjectNameToHashID("iware_DPI_pPlant03"),
hash = ObjectNameToHashID("iware_DPI_pPlant04"),
hash = ObjectNameToHashID("iware_DPI_pPlant05"),
hash = ObjectNameToHashID("iware_DPI_pPlant06"),
hash = ObjectNameToHashID("iware_DPI_prepFlwrGls01"),
hash = ObjectNameToHashID("iware_DPI_pVase01"),
hash = ObjectNameToHashID("iware_DPI_pVase06"),
hash = ObjectNameToHashID("iware_DPI_pVase08"),
hash = ObjectNameToHashID("iware_DPI_StableS"),
hash = ObjectNameToHashID("iware_DPI_StableS01"),
hash = ObjectNameToHashID("iware_DPI_Stool04"),
hash = ObjectNameToHashID("iware_DPI_Stool2"),
hash = ObjectNameToHashID("iware_DPI_TerriumsL01"),
hash = ObjectNameToHashID("iware_DPI_TerriumsL02"),
hash = ObjectNameToHashID("iware_DPI_TerriumsS01"),
hash = ObjectNameToHashID("iware_DPI_TerriumsS02"),
hash = ObjectNameToHashID("iware_DPI_TVmini"),
hash = ObjectNameToHashID("iware_DPI_TVmini01"),
hash = ObjectNameToHashID("iware_DPI_VFlytrap02"),
hash = ObjectNameToHashID("iware_DPI_VFlytrap03"),
hash = ObjectNameToHashID("iware_DPI_VFlytrap04"),
hash = ObjectNameToHashID("iware_DPI_VFlytrap05"),
hash = ObjectNameToHashID("iware_DPI_VFlytrap06"),
hash = ObjectNameToHashID("iware_ExoticPlant1"),
hash = ObjectNameToHashID("iware_ExoticPlant25"),
hash = ObjectNameToHashID("iware_Statuebust_03"),
hash = ObjectNameToHashID("iware_Statuebust_05"),
hash = ObjectNameToHashID("iware_Statuebust_07"),
hash = ObjectNameToHashID("iware_Statuebust_08"),
hash = ObjectNameToHashID("iware_Statuebust_1"),
hash = ObjectNameToHashID("iware_Statuebust_10"),
hash = ObjectNameToHashID("iware_Statuebust_11"),
hash = ObjectNameToHashID("iware_Statuebust_13"),
hash = ObjectNameToHashID("iware_Statuebust_14"),
hash = ObjectNameToHashID("iware_Statuebust_16"),
hash = ObjectNameToHashID("iware_Statuebust_17"),
hash = ObjectNameToHashID("iware_Statuebust_2"),
hash = ObjectNameToHashID("iware_StatueHorse_1"),
hash = ObjectNameToHashID("iware_StatueHorse_12"),
hash = ObjectNameToHashID("iware_StatueHorse_13"),
hash = ObjectNameToHashID("iware_StatueHorse_14"),
hash = ObjectNameToHashID("iware_StatueHorse_16"),
hash = ObjectNameToHashID("iware_StatueHorse_17"),
hash = ObjectNameToHashID("iware_StatueHorse_18"),
hash = ObjectNameToHashID("iware_StatueHorse_2"),
hash = ObjectNameToHashID("iware_StatueHorse_3"),
hash = ObjectNameToHashID("iware_Statuemask"),
hash = ObjectNameToHashID("iware_Statuemask01"),
hash = ObjectNameToHashID("iware_Statuemask02"),
hash = ObjectNameToHashID("iware_Statuemask03"),
hash = ObjectNameToHashID("iware_Statuemask05"),
hash = ObjectNameToHashID("iware_Statuemask06"),
hash = ObjectNameToHashID("iware_Statuemask07"),
hash = ObjectNameToHashID("iware_Statuemask08"),
hash = ObjectNameToHashID("iware_StatuePrinc"),
hash = ObjectNameToHashID("iware_StatuePrinc03"),
hash = ObjectNameToHashID("iware_StatuePrinc05"),
hash = ObjectNameToHashID("iware_StatuePrinc06"),
hash = ObjectNameToHashID("iware_TruckSidewind"),
hash = ObjectNameToHashID("iware_TruckSidewind01"),
hash = ObjectNameToHashID("iware_TruckSidewind02"),
hash = ObjectNameToHashID("iware_TruckSidewind03"),
hash = ObjectNameToHashID("iware_ware_glaswin"),
hash = ObjectNameToHashID("iware_ware_glaswin01"),
hash = ObjectNameToHashID("iware_ware_glaswin02"),
hash = ObjectNameToHashID("iware_ware_glaswin03"),
hash = ObjectNameToHashID("iware_ware_glaswin04"),
hash = ObjectNameToHashID("iware_ware_glaswin05"),
hash = ObjectNameToHashID("iware_WH_Crates"),
hash = ObjectNameToHashID("iware_WH_Crates01"),
hash = ObjectNameToHashID("iware_WH_Crates02"),
hash = ObjectNameToHashID("iware_WH_Crates03"),
hash = ObjectNameToHashID("iware_WH_Crates05"),
hash = ObjectNameToHashID("iware_WH_Crates11"),
hash = ObjectNameToHashID("iware_WH_Crates20"),
hash = ObjectNameToHashID("iware_WH_Crates24"),
hash = ObjectNameToHashID("iware_WH_Crates25"),
hash = ObjectNameToHashID("iware_WH_Crates26"),
hash = ObjectNameToHashID("iware_WH_dresser2"),
hash = ObjectNameToHashID("iware_WH_Lcardboxes"),
hash = ObjectNameToHashID("iware_WH_Lcardboxes01"),
hash = ObjectNameToHashID("iware_WH_Lcardboxes02"),
hash = ObjectNameToHashID("iware_WH_Lcardboxes03"),
hash = ObjectNameToHashID("iware_WH_Lcardboxes04"),
hash = ObjectNameToHashID("iware_WH_Lcardboxes05"),
hash = ObjectNameToHashID("iware_WH_Lcardboxes13"),
hash = ObjectNameToHashID("iware_WH_Lcardboxes16"),
hash = ObjectNameToHashID("iware_WH_Lcardboxes25"),
hash = ObjectNameToHashID("iware_WH_Lcardboxes26"),
hash = ObjectNameToHashID("iware_WH_Lcardboxes29"),
hash = ObjectNameToHashID("iware_WH_Lcardboxes35"),
hash = ObjectNameToHashID("iware_WH_Lcardboxes36"),
hash = ObjectNameToHashID("iware_WH_Lcardboxes37"),
hash = ObjectNameToHashID("iware_WH_Lcardboxes38"),
hash = ObjectNameToHashID("iware_WH_Lcardboxes40"),
hash = ObjectNameToHashID("iware_WH_Lcardboxes42"),
hash = ObjectNameToHashID("iware_WH_Lcardboxes43"),
hash = ObjectNameToHashID("iware_WH_Lcardboxes45"),
hash = ObjectNameToHashID("iware_WH_Lcardboxes46"),
hash = ObjectNameToHashID("iware_WH_Lcardboxes47"),
hash = ObjectNameToHashID("iware_WH_Lcardboxes49"),
hash = ObjectNameToHashID("iware_WH_Lcardboxes50"),
hash = ObjectNameToHashID("iware_WH_Mcardboxes"),
hash = ObjectNameToHashID("iware_WH_Mcardboxes01"),
hash = ObjectNameToHashID("iware_WH_Mcardboxes02"),
hash = ObjectNameToHashID("iware_WH_Mcardboxes05"),
hash = ObjectNameToHashID("iware_WH_Mcardboxes07"),
hash = ObjectNameToHashID("iware_WH_Mcardboxes08"),
hash = ObjectNameToHashID("iware_WH_Mcardboxes11"),
hash = ObjectNameToHashID("iware_WH_Mcardboxes12"),
hash = ObjectNameToHashID("iware_WH_Mcardboxes14"),
hash = ObjectNameToHashID("iware_WH_Mcardboxes15"),
hash = ObjectNameToHashID("iware_WH_Mcardboxes17"),
hash = ObjectNameToHashID("iware_WH_Mcardboxes21"),
hash = ObjectNameToHashID("iware_WH_Mcardboxes22"),
hash = ObjectNameToHashID("iware_WH_Mcardboxes23"),
hash = ObjectNameToHashID("iware_WH_Mcardboxes24"),
hash = ObjectNameToHashID("iware_WH_Whisky02"),
hash = ObjectNameToHashID("iware_WH_Whisky04"),
hash = ObjectNameToHashID("iware_WH_Whisky07"),
hash = ObjectNameToHashID("iware_WHChandalier"),
hash = ObjectNameToHashID("iware_WHChandalier01"),
hash = ObjectNameToHashID("iware_WHChandalier02"),
hash = ObjectNameToHashID("iware_WHChandalier03"),
hash = ObjectNameToHashID("iware_WHChandalier04"),
hash = ObjectNameToHashID("iware_WHChandalier05"),
hash = ObjectNameToHashID("iware_WHChesterF"),
hash = ObjectNameToHashID("iware_WHChesterF02"),
hash = ObjectNameToHashID("iware_WHChesterF03"),
hash = ObjectNameToHashID("iware_WHChesterF04"),
hash = ObjectNameToHashID("iware_WHChesterF05"),
hash = ObjectNameToHashID("iware_WHChesterF06"),
hash = ObjectNameToHashID("iware_WHCoffTbl"),
hash = ObjectNameToHashID("iware_WHCoffTbl03"),
hash = ObjectNameToHashID("iware_WHCoffTbl05"),
hash = ObjectNameToHashID("iware_WHCoffTbl07"),
hash = ObjectNameToHashID("iware_WHCoffTbl09"),
hash = ObjectNameToHashID("iware_WHCoffTbl2"),
hash = ObjectNameToHashID("iware_WhiskyCrate09"),
hash = ObjectNameToHashID("iware_WhiskyCrate11"),
hash = ObjectNameToHashID("iware_WhiskyCrate12"),
hash = ObjectNameToHashID("iware_WhiskyCrate13"),
hash = ObjectNameToHashID("iware_WhiskyCrate23"),
hash = ObjectNameToHashID("iware_WhiskyCrate25"),
hash = ObjectNameToHashID("iware_WhiskyCrate27"),
hash = ObjectNameToHashID("iware_WhiskyCrate28"),
hash = ObjectNameToHashID("iware_WhiskyCrate29"),
hash = ObjectNameToHashID("iware_WhiskyCrate30"),
hash = ObjectNameToHashID("iware_WhiskyCrate31"),
hash = ObjectNameToHashID("iware_WHRichChair08"),
hash = ObjectNameToHashID("iware_WHRichChair10"),
hash = ObjectNameToHashID("iware_WHRichChair11"),
hash = ObjectNameToHashID("iware_WHRichChair13"),
hash = ObjectNameToHashID("iware_WHRichChair14"),
hash = ObjectNameToHashID("iware_WHRichChair16"),
hash = ObjectNameToHashID("iware_WHRichChair20"),
hash = ObjectNameToHashID("iware_WHRichChair22"),
hash = ObjectNameToHashID("iware_WHRichChair23"),
hash = ObjectNameToHashID("iware_WHseedbag03"),
hash = ObjectNameToHashID("iware_WHseedbag04"),
hash = ObjectNameToHashID("iware_WHseedbag05"),
hash = ObjectNameToHashID("iware_WHseedbag06"),
hash = ObjectNameToHashID("iware_WHseedbag08"),
hash = ObjectNameToHashID("iware_WHseedbag1"),
hash = ObjectNameToHashID("iware_WHseedbag13"),
hash = ObjectNameToHashID("iware_WHseedbag14"),
hash = ObjectNameToHashID("iware_WHseedbag15"),
hash = ObjectNameToHashID("iware_WHseedbag16"),
hash = ObjectNameToHashID("iware_WHseedbag18"),
hash = ObjectNameToHashID("iware_WHseedbag27"),
hash = ObjectNameToHashID("iware_WHseedbag28"),
hash = ObjectNameToHashID("iware_WHseedbag29"),
hash = ObjectNameToHashID("iware_WHseedbag30"),
hash = ObjectNameToHashID("iware_WHseedbag31"),
hash = ObjectNameToHashID("iware_WHseedbag32"),
hash = ObjectNameToHashID("trich_DPE_BirdBath05")
hash = ObjectNameToHashID("trich_DPE_BirdBath06")
hash = ObjectNameToHashID("trich_DPE_BirdBath07")
hash = ObjectNameToHashID("trich_DPE_BirdBath08")
HATTRICK_GATE = ObjectNameToHashID("HATTRICK_GATE")
if chestMdl == ObjectNameToHashID("R_Sweater1") or chestMdl == ObjectNameToHashID("R_Sweater5") then
if ClothingGetPlayer(1) == ObjectNameToHashID("S_Sweater5") then
if ClothingGetPlayer(1) == ObjectNameToHashID(shared.gUniformTorso) and not shared.PlayerInClothingManager then
if ClothingGetPlayer(1) == ObjectNameToHashID(shared.gUniformTorso) then
if ClothingGetPlayer(4) == ObjectNameToHashID("S_Pants1") then
if hairMdl == ObjectNameToHashID("R_GoodBoy_01") or hairMdl == ObjectNameToHashID("R_GoodBoy_02") or hairMdl == ObjectNameToHashID("R_GoodBoy_03") or hairMdl == ObjectNameToHashID("R_GoodBoy_04") or hairMdl == ObjectNameToHashID("R_Hwood_01") or hairMdl == ObjectNameToHashID("R_Hwood_02") or hairMdl == ObjectNameToHashID("R_Hwood_03") or hairMdl == ObjectNameToHashID("R_Hwood_04") or hairMdl == ObjectNameToHashID("R_HThrob_01") or hairMdl == ObjectNameToHashID("R_HThrob_02") or hairMdl == ObjectNameToHashID("R_HThrob_03") or hairMdl == ObjectNameToHashID("R_HThrob_04") or hairMdl == ObjectNameToHashID("R_SShag_01") or hairMdl == ObjectNameToHashID("R_SShag_02") or hairMdl == ObjectNameToHashID("R_SShag_03") or hairMdl == ObjectNameToHashID("R_SShag_04") or hairMdl == ObjectNameToHashID("R_ILeague_01") or hairMdl == ObjectNameToHashID("R_ILeague_02") or hairMdl == ObjectNameToHashID("R_ILeague_03") or hairMdl == ObjectNameToHashID("R_ILeague_04") or hairMdl == ObjectNameToHashID("R_SSmart_01") or hairMdl == ObjectNameToHashID("R_SSmart_02") or hairMdl == ObjectNameToHashID("R_SSmart_03") or hairMdl == ObjectNameToHashID("R_SSmart_04") then
if ObjectNameToHashID("isc_prep_DPI_prepWinBrk01") == HashID then
if PlayerClothes ~= ObjectNameToHashID("SP_Mascot_H") then
local shirt2MI = ObjectNameToHashID("R_Sweater5")
local shirtMI = ObjectNameToHashID("PreppyVest")
local shirtMI = ObjectNameToHashID("R_Sweater1")
local XmasTreeHashID = ObjectNameToHashID("WALKABLE_buWallsOP")
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_Gramophone"), 3, -1)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_Gramophone"), 3, CB_Floor1HeardNoise)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pChair"), 3, -1)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pChair"), 3, CB_Floor2HeardNoise)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pChair01"), 3, -1)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pChair01"), 3, CB_Floor2HeardNoise)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pChair02"), 3, -1)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pChair02"), 3, CB_Floor2HeardNoise)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pChair03"), 3, -1)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pChair03"), 3, CB_Floor2HeardNoise)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pChair04"), 3, -1)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pChair04"), 3, CB_Floor2HeardNoise)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pChair07"), 3, -1)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pChair07"), 3, CB_Floor2HeardNoise)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pChair08"), 3, -1)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pChair08"), 3, CB_Floor2HeardNoise)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pChair09"), 3, -1)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pChair09"), 3, CB_Floor2HeardNoise)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pChair10"), 3, -1)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pChair10"), 3, CB_Floor2HeardNoise)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pChair11"), 3, -1)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pChair11"), 3, CB_Floor2HeardNoise)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pChair12"), 3, -1)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pChair12"), 3, CB_Floor2HeardNoise)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pDoorBrk01"), 3, -1)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pDoorBrk01"), 3, CB_EnablePath)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pDoorBrk02"), 3, -1)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pDoorBrk02"), 3, CB_EnablePath)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_PokerTbl"), 3, -1)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_PokerTbl"), 3, CB_Floor2HeardNoise)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_PokerTbl01"), 3, -1)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_PokerTbl01"), 3, CB_Floor2HeardNoise)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_PokerTbl02"), 3, CB_Floor2HeardNoise)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pPlant02"), 3, -1)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pPlant02"), 3, CB_Floor3HeardNoise)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pPlant03"), 3, -1)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pPlant03"), 3, CB_Floor3HeardNoise)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pPlant04"), 3, -1)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pPlant04"), 3, CB_Floor3HeardNoise)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pPlant05"), 3, -1)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pPlant05"), 3, CB_Floor3HeardNoise)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_prepWinBrk"), 3, -1)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_prepWinBrk"), 3, CB_EnablePath)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_prepWinBrk01"), 3, -1)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_prepWinBrk01"), 3, CB_EnablePath)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pVase06"), 3, -1)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pVase06"), 3, CB_Floor3HeardNoise)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pVase07"), 3, -1)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pVase07"), 3, CB_Floor3HeardNoise)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pVase08"), 3, -1)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pVase08"), 3, CB_Floor3HeardNoise)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_SCfern03"), 3, -1)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_SCfern03"), 3, CB_Floor1HeardNoise)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_StableS02"), 3, -1)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_StableS02"), 3, CB_Floor2HeardNoise)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_StableS03"), 3, -1)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_StableS03"), 3, CB_Floor2HeardNoise)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_StableS04"), 3, -1)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_StableS04"), 3, CB_Floor1HeardNoise)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_StableS05"), 3, -1)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_StableS05"), 3, CB_Floor1HeardNoise)
SpeakerTable[i].id = ObjectNameToHashID(SpeakerTable[i].name)
TRICH_TADGATES = ObjectNameToHashID("TRICH_TADGATES")
TRICH_TADGATES01 = ObjectNameToHashID("TRICH_TADGATES01")
push esi
mov esi, dword ptr [esp+0x8]
push esi
call 0x73AEA0
push 0x0
push esi
call LuaParam::GetString
push eax
call 0x576ED0
push eax
push esi
call LuaParam::PushHashID
add esp, 0x18
mov eax, 0x1
pop esi
ret
SERVER
Returns a hash (light userdata) given a string, just like ObjectNameToHashID in the base game.
eggTotal = ObjectNumProjectileImpacts(BoyDorm, 312) - gStartingEggCount
eggTotal = ObjectNumProjectileImpacts(GirlDorm, 312) - gStartingEggCount
eggTotal = ObjectNumProjectileImpacts(TRIGGER._PO_HOUSE, 312)
gStartingEggCount = ObjectNumProjectileImpacts(BoyDorm, 312)
gStartingEggCount = ObjectNumProjectileImpacts(GirlDorm, 312)
local currentImpacts = ObjectNumProjectileImpacts(TRIGGER._TESTPROJDETECTIONWALL, 312)
local impactCount = ObjectNumProjectileImpacts(trigger.id, trigger.projectile)
local numHitsBySlingshot = ObjectNumProjectileImpacts(TRIGGER._1_04_BOTTLEZONE, 304)
trigger.numProjectile = ObjectNumProjectileImpacts(trigger.id, trigger.projectile)
push ebx
push ebp
push esi
push edi
mov edi, dword ptr [esp+0x14]
push 0x0
push edi
call LuaParam::GetInt
push 0x1
push edi
mov esi, eax
call LuaParam::GetInt
add esp, 0x10
test esi, esi
jnl 0x6
xor ebp, ebp
jmp 0x1F
mov edx, dword ptr [0x20C7C48]
mov ecx, dword ptr [edx+0x4]
test byte ptr [esi+ecx*1], 0x80
jz 0x6
xor ecx, ecx
jmp 0xA
mov ecx, dword ptr [edx+0xC]
imul ecx, esi
add ecx, dword ptr [edx]
mov ebp, ecx
mov edx, dword ptr [eax*4+0xC67738]
mov esi, dword ptr [edx+0x18]
xor ebx, ebx
test esi, esi
jz 0x73
mov ecx, esi
call 0x7282A0
cmp dword ptr [esi+0x80], ebx
jz 0x64
mov ecx, esi
call 0x7282A0
mov edi, dword ptr [esi+0x80]
mov ecx, edi
call 0x728430
movzx eax, word ptr [edi+0x150]
movzx ecx, ax
cmp ecx, 0xFFFFFFFF
jz 0x10
push ebp
push eax
mov ecx, 0xCF1F60
call 0x561060
mov ebx, eax
mov ecx, esi
call 0x7282A0
mov esi, dword ptr [esi+0x80]
mov ecx, esi
call 0x728430
movzx eax, word ptr [esi+0x152]
movzx edx, ax
cmp edx, 0xFFFFFFFF
jz 0x10
push ebp
push eax
mov ecx, 0xCF1F60
call 0x561060
add ebx, eax
mov eax, dword ptr [esp+0x14]
push ebx
push eax
call LuaParam::PushInt
add esp, 0x8
pop edi
pop esi
pop ebp
mov eax, 0x1
pop ebx
ret
ObjectPedNoTarget(ModelPoolIndex)
mov eax, dword ptr [esp+0x4]
push esi
push 0x0
push eax
call LuaParam::GetInt
push eax
call 0x44A5B0
mov esi, eax
add esp, 0xC
test esi, esi
jz 0x19
mov edx, dword ptr [esi]
mov eax, dword ptr [edx+0x7C]
mov ecx, esi
call 0x5C2585
test al, al
jz 0xC
mov dword ptr [esi+0x104], 0x1
xor eax, eax
pop esi
ret
ObjectRemovePickupsInTrigger(TRIGGER._1_02_POPULATIONTRIG)
ObjectRemovePickupsInTrigger(TRIGGER._1_11X2_SHITTARGET)
ObjectRemovePickupsInTrigger(TRIGGER._4_06_DUFFLE_BAG)
ObjectRemovePickupsInTrigger(TRIGGER._5_05_CLEARMOWER)
ObjectRemovePickupsInTrigger(TRIGGER._FIGHTINGAREA)
ObjectRemovePickupsInTrigger(TRIGGER._FOOTBALLFIELD)
ObjectRemovePickupsInTrigger(TRIGGER._FOOTBALLFIELD, 331)
sub esp, 0x408
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x418]
push edi
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x8
test eax, eax
jnl 0xA
xor edi, edi
mov dword ptr [esp+0x14], edi
jmp 0x23
mov edx, dword ptr [0x20C7C48]
mov ecx, dword ptr [edx+0x4]
test byte ptr [eax+ecx*1], 0x80
jz 0x6
xor ecx, ecx
jmp 0xA
mov ecx, dword ptr [edx+0xC]
imul ecx, eax
add ecx, dword ptr [edx]
mov dword ptr [esp+0x14], ecx
mov edi, ecx
push esi
mov dword ptr [esp+0x14], 0x0
or ebp, 0xFFFFFFFF
call 0x73AEA0
add esp, 0x4
cmp eax, 0x1
jle 0xF
push 0x1
push esi
call LuaParam::GetInt
add esp, 0x8
mov ebp, eax
mov esi, 0xC0A130
mov bl, 0x8
test byte ptr [esi+0x16], bl
jz 0x2B
cmp ebp, 0xFFFFFFFF
jz 0xD
xor eax, eax
cmp ebp, dword ptr [esi]
setz al
test eax, eax
jz 0x1B
lea edx, ptr [esi-0x28]
push edx
mov ecx, edi
call 0x6D6FA0
test al, al
jz 0xC
push 0x1
lea ecx, ptr [esi-0x30]
call 0x444A10
add esi, 0x48
cmp esi, 0xC0F590
jl 0xFFFFFFC9
mov ebx, dword ptr [0xC0F618]
mov ecx, ebx
xor edi, edi
call 0x435BB0
test eax, eax
jle 0x90
mov eax, dword ptr [ebx+0x8]
xor esi, esi
cmp edi, eax
jl 0x19
mov ecx, dword ptr [ebx+0x10]
test ecx, ecx
jz 0x1A
mov edx, edi
push 0x1
sub edx, eax
push edx
call 0x435BD0
mov esi, eax
jmp 0xA
mov esi, dword ptr [ebx+0xC]
imul esi, edi
add esi, dword ptr [ebx]
mov eax, dword ptr [ebx+0x4]
test byte ptr [edi+eax*1], 0x80
jnz 0x49
test esi, esi
jz 0x45
cmp ebp, 0xFFFFFFFF
jz 0x14
movsx ecx, word ptr [esi+0x10E]
xor eax, eax
cmp ebp, ecx
setz al
test eax, eax
jz 0x2E
mov eax, dword ptr [esi+0x14]
test eax, eax
jz 0x7
add eax, 0x30
jmp 0x5
lea eax, ptr [esi+0x4]
mov ecx, dword ptr [esp+0x14]
push eax
call 0x6D6FA0
test al, al
jz 0x11
mov eax, dword ptr [esp+0x10]
mov dword ptr [esp+eax*4+0x18], esi
add eax, 0x1
mov dword ptr [esp+0x10], eax
mov ecx, ebx
add edi, 0x1
call 0x435BB0
cmp edi, eax
jl 0xFFFFFF7C
mov ebx, dword ptr [esp+0x10]
xor edi, edi
test ebx, ebx
jle 0x30
lea ebx, ptr [ebx]
mov esi, dword ptr [esp+edi*4+0x18]
push esi
call 0x45DD70
push esi
call 0x45E690
add esp, 0x8
test esi, esi
jz 0xC
mov edx, dword ptr [esi]
mov eax, dword ptr [edx]
push 0x1
mov ecx, esi
call 0x5C3491
add edi, 0x1
cmp edi, ebx
jl 0xFFFFFFDA
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x408
ret
CLIENT
Sets an object's entity flag on or off. Flags are in the range [0, 58].
CLIENT
Sets an object's rotation in radians. May take an optional rotation order.
ObjectToggleVulnerability(gBusWindow, false)
ObjectToggleVulnerability(gBusWindow, true)
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x10]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov ebp, eax
call LuaParam::GetBool
mov esi, dword ptr [0xC0F614]
mov edi, dword ptr [esi+0x8]
add esp, 0x10
cmp dword ptr [esi+0x10], 0x0
mov bl, al
jz 0xC
mov ecx, dword ptr [esi+0x10]
call 0x435BB0
add edi, eax
test edi, edi
jz 0x66
lea esp, ptr [esp]
mov ecx, dword ptr [esi+0x8]
sub edi, 0x1
xor eax, eax
cmp edi, ecx
jl 0x18
cmp dword ptr [esi+0x10], eax
jz 0x1B
mov eax, edi
sub eax, ecx
mov ecx, dword ptr [esi+0x10]
push 0x1
push eax
call 0x435BD0
jmp 0xA
mov eax, dword ptr [esi+0xC]
imul eax, edi
add eax, dword ptr [esi]
mov ecx, dword ptr [esi+0x4]
test byte ptr [edi+ecx*1], 0x80
jnz 0x2B
test eax, eax
jz 0x27
movsx edx, word ptr [eax+0x10E]
cmp edx, ebp
jnz 0x1C
mov cl, bl
shl cl, 0x6
xor cl, byte ptr [eax+0x209]
and cl, 0x40
xor byte ptr [eax+0x209], cl
mov esi, dword ptr [0xC0F614]
test edi, edi
jnz 0xFFFFFFA2
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
if not marblesField01 and 0 < ObjectTypeIsInTrigger(349, TRIGGER._4_06_FIELD01) then
if not marblesField02 and 0 < ObjectTypeIsInTrigger(349, TRIGGER._4_06_FIELD02) then
if not marblesField03 and 0 < ObjectTypeIsInTrigger(349, TRIGGER._4_06_FIELD03) then
if ObjectTypeIsInTrigger(302, TRIGGER._DUNKBACKBOARD) or ObjectTypeIsInTrigger(302, TRIGGER._DUNKTANK) then
if ObjectTypeIsInTrigger(399, TRIGGER._1_11X2_SHITTARGET) == 1 then
sub esp, 0x8
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x18]
push edi
xor edi, edi
push edi
push esi
call LuaParam::GetInt
push 0x1
push esi
mov dword ptr [esp+0x24], eax
call LuaParam::GetInt
add esp, 0x10
cmp eax, edi
jnl 0x8
mov dword ptr [esp+0x10], edi
jmp 0x21
mov edx, dword ptr [0x20C7C48]
mov ecx, dword ptr [edx+0x4]
test byte ptr [eax+ecx*1], 0x80
jz 0x6
xor ecx, ecx
jmp 0xA
mov ecx, dword ptr [edx+0xC]
imul ecx, eax
add ecx, dword ptr [edx]
mov dword ptr [esp+0x10], ecx
mov esi, dword ptr [0xC0F614]
mov ebx, dword ptr [esi+0x8]
xor ebp, ebp
cmp dword ptr [esi+0x10], edi
jz 0xC
mov ecx, dword ptr [esi+0x10]
call 0x435BB0
add ebx, eax
test ebx, ebx
jle 0x76
lea ebx, ptr [ebx]
mov ecx, dword ptr [esi+0x8]
xor eax, eax
cmp edi, ecx
jl 0x18
cmp dword ptr [esi+0x10], eax
jz 0x1B
mov edx, edi
sub edx, ecx
mov ecx, dword ptr [esi+0x10]
push 0x1
push edx
call 0x435BD0
jmp 0xA
mov eax, dword ptr [esi+0xC]
imul eax, edi
add eax, dword ptr [esi]
mov ecx, dword ptr [esi+0x4]
test byte ptr [edi+ecx*1], 0x80
jnz 0x39
test eax, eax
jz 0x35
movsx edx, word ptr [eax+0x10E]
cmp edx, dword ptr [esp+0x14]
jnz 0x28
mov ecx, dword ptr [eax+0x14]
test ecx, ecx
jz 0x7
lea eax, ptr [ecx+0x30]
jmp 0x5
add eax, 0x4
mov ecx, dword ptr [esp+0x10]
push eax
call 0x6D6FA0
test al, al
mov esi, dword ptr [0xC0F614]
jz 0x5
add ebp, 0x1
add edi, 0x1
cmp edi, ebx
jl 0xFFFFFF94
mov edi, dword ptr [0xC0F618]
mov ecx, dword ptr [edi+0x10]
test ecx, ecx
mov ebx, dword ptr [edi+0x8]
jz 0x9
call 0x435BB0
add ebx, eax
xor esi, esi
test ebx, ebx
jle 0x6E
jmp 0x5
lea ecx, ptr [ecx]
mov edx, dword ptr [edi+0x8]
xor eax, eax
cmp esi, edx
jl 0x17
mov ecx, dword ptr [edi+0x10]
test ecx, ecx
jz 0x18
mov eax, esi
push 0x1
sub eax, edx
push eax
call 0x435BD0
jmp 0xA
mov eax, dword ptr [edi+0xC]
imul eax, esi
add eax, dword ptr [edi]
mov ecx, dword ptr [edi+0x4]
test byte ptr [esi+ecx*1], 0x80
jnz 0x33
test eax, eax
jz 0x2F
movsx edx, word ptr [eax+0x10E]
cmp edx, dword ptr [esp+0x14]
jnz 0x22
mov ecx, dword ptr [eax+0x14]
test ecx, ecx
jz 0x7
lea eax, ptr [ecx+0x30]
jmp 0x5
add eax, 0x4
mov ecx, dword ptr [esp+0x10]
push eax
call 0x6D6FA0
test al, al
jz 0x5
add ebp, 0x1
add esi, 0x1
cmp esi, ebx
jl 0xFFFFFF9B
mov eax, dword ptr [esp+0x1C]
push ebp
push eax
call LuaParam::PushInt
add esp, 0x8
pop edi
pop esi
pop ebp
mov eax, 0x1
pop ebx
add esp, 0x8
ret
--print("ObjectTypeSetPickupListOverride CALLED!!!")
ObjectTypeSetPickupListOverride("DPE_CrateBrk", "PickupListCrate")
ObjectTypeSetPickupListOverride("DPE_CrateBrk", "PickupListCrateBRockets")
ObjectTypeSetPickupListOverride("DPE_CrateBrk", "PickupListCrateHEALTH")
ObjectTypeSetPickupListOverride("DPE_CrateBrk", "PickupListCrateSprayCan")
ObjectTypeSetPickupListOverride("DPE_CrateBrk", "PickupListCrateSpudGuns")
ObjectTypeSetPickupListOverride("DPI_CardBox", "PickupListCrateHEALTH")
ObjectTypeSetPickupListOverride("DPI_CardBox", "PickupListMailBox")
ObjectTypeSetPickupListOverride("DPI_CardBox", "PickupListMailBoxSprayCan")
ObjectTypeSetPickupListOverride("DPI_CrateBrk", "PickupListCrate")
ObjectTypeSetPickupListOverride("DPI_CrateBrk", "PickupListCrateBRockets")
ObjectTypeSetPickupListOverride("DPI_CrateBrk", "PickupListCrateHEALTH")
ObjectTypeSetPickupListOverride("DPI_CrateBrk", "PickupListCrateSprayCan")
ObjectTypeSetPickupListOverride("DPI_CrateBrk", "PickupListCrateSpudGuns")
sub esp, 0x14
push esi
mov esi, dword ptr [esp+0x1C]
push edi
push 0x0
push esi
call LuaParam::GetString
push eax
call 0x51C330
push eax
call 0x4D0CA0
add esp, 0x10
push 0x1B653A0
lea ecx, ptr [esp+0x14]
mov edi, eax
call 0x5FA880
push 0x1B6538C
lea ecx, ptr [esp+0x18]
call 0x5FA880
push 0x1
push esi
call LuaParam::GetString
add esp, 0x8
push eax
lea ecx, ptr [esp+0x1C]
call 0x5FA910
lea eax, ptr [esp+0x10]
push eax
push 0x3
lea ecx, ptr [esp+0x10]
call 0x5FA8C0
lea ecx, ptr [esp+0x8]
push 0x1B65390
push ecx
call 0x72AEA0
mov dword ptr [edi+0x2C], eax
add esp, 0x8
lea esi, ptr [esp+0x1C]
mov edi, 0x2
sub esi, 0x4
mov ecx, esi
call 0x49A650
sub edi, 0x1
jns 0xFFFFFFF3
pop edi
xor eax, eax
pop esi
add esp, 0x14
ret
ObjTimerSetText(timerText)
mov eax, dword ptr [esp+0x4]
push esi
mov esi, dword ptr [0xC674AC]
push 0x0
push eax
call LuaParam::GetString
push 0x20
push eax
add esi, 0x44
push esi
call 0x85C7D0
add esp, 0x14
xor eax, eax
pop esi
ret
SHARED
Returns a file object. Mode can be "w" for write, "r" for read, or "a" for update.
The size of the file is also returned, which you can use to read the whole file with ReadFile.
A standard Lua 5.0 function documented on lua.org.
A standard Lua 5.0 function documented on lua.org.
A standard Lua 5.0 function documented on lua.org.
A standard Lua 5.0 function documented on lua.org.
A standard Lua 5.0 function documented on lua.org.
A standard Lua 5.0 function documented on lua.org.
A standard Lua 5.0 function documented on lua.org.
A standard Lua 5.0 function documented on lua.org.
A standard Lua 5.0 function documented on lua.org.
A standard Lua 5.0 function documented on lua.org.
A standard Lua 5.0 function documented on lua.org.
SHARED
Returns a string with all arguments encoded to later be unpacked with UnpackData. If only packing a single table, use PackTable instead.
SHARED
Returns a string with the table encoded to later be unpacked with UnpackTable. This is a lower level version of PackData.
PAnimApplyDamage("Scaffold", 178.173, -73.1613, 30.5194, 251)
PAnimApplyDamage("Scaffold", 178.173, -73.1613, 35.2763, 251)
PAnimApplyDamage("Scaffold", 178.173, -73.1613, 40.1403, 251)
PAnimApplyDamage("scFieldObsGate", 0.821367, -113.954, 2.055, 9000)
PAnimApplyDamage("scFieldObsGate", 0.881498, -111.463, 2.00091, 9000)
PAnimApplyDamage(CurrentTarget, 5000)
PAnimApplyDamage(TRIGGER._6_02G_VASE01, 100)
PAnimApplyDamage(TRIGGER._6_02G_VASE02, 100)
PAnimApplyDamage(TRIGGER._6_02G_VASE03, 100)
push ecx
push esi
push edi
mov edi, dword ptr [esp+0x10]
lea eax, ptr [esp+0x8]
push eax
push 0x1
push edi
mov dword ptr [esp+0x14], 0xFFFFFFFF
call 0x5C4570
mov esi, eax
add esp, 0xC
test esi, esi
jz 0x55
mov ecx, dword ptr [esp+0x8]
push ecx
push edi
call LuaParam::GetInt
fldz
add esp, 0x8
push 0x0
push ecx
fst dword ptr [esp], st
push 0xFFFFFFFF
push 0x0
push 0x1
push 0x0
sub esp, 0x8
fst dword ptr [esp+0x4], st
mov edx, dword ptr [esi]
fst dword ptr [esp], st
push 0x0
push 0x0
push 0x0
push 0x0
push 0x0
push 0x0
push 0xFFFFFFFF
push 0x0
sub esp, 0x8
fstp dword ptr [esp+0x4], st
mov dword ptr [esp+0x50], eax
fild st, dword ptr [esp+0x50]
mov eax, dword ptr [edx+0x3C]
mov ecx, esi
fstp dword ptr [esp], st
call 0x5C4F58
pop edi
xor eax, eax
pop esi
pop ecx
ret
-- never used
sub esp, 0x6C
mov eax, dword ptr [esp+0x70]
push ebx
push ebp
push esi
push edi
push 0x0
push eax
call LuaParam::GetInt
mov ebx, dword ptr [0xC0F608]
mov ebp, dword ptr [ebx+0x8]
mov dword ptr [esp+0x1C], eax
mov eax, dword ptr [0x20C7C48]
mov ecx, dword ptr [eax+0x4]
add esp, 0x8
test byte ptr [ecx], 0x80
jz 0xC
mov dword ptr [esp+0x10], 0x0
jmp 0x8
mov edx, dword ptr [eax]
mov dword ptr [esp+0x10], edx
test ebp, ebp
jz 0x78
mov eax, dword ptr [ebx+0x4]
sub ebp, 0x1
test byte ptr [eax+ebp*1], 0x80
jnz 0x68
mov esi, dword ptr [ebx+0xC]
imul esi, ebp
add esi, dword ptr [ebx]
jz 0x5E
mov edi, dword ptr [esi+0x23C]
test edi, edi
jz 0x54
cmp edi, dword ptr [esp+0x10]
jz 0x4E
test byte ptr [edi+0x3F], 0x1
jnz 0x48
movsx ecx, byte ptr [edi+0x3C]
cmp ecx, dword ptr [esp+0x14]
jz 0x3E
cmp byte ptr [edi+0x3D], 0x5
jz 0x38
cmp dword ptr [esi+0x18], 0x0
jz 0x9
mov ecx, esi
call 0x4667A0
mov edx, dword ptr [esi]
mov eax, dword ptr [edx+0xC]
mov ecx, esi
call 0x5C5046
push esi
call 0x45DD70
push esi
call 0x45E690
mov edx, dword ptr [esi]
mov eax, dword ptr [edx]
add esp, 0x8
push 0x1
mov ecx, esi
call 0x5C505F
mov dword ptr [edi+0x1C], 0x0
test ebp, ebp
jnz 0xFFFFFF8C
push 0x2
call 0x5EF0A0
add esp, 0x4
mov ecx, 0x20C7E98
call 0x6D70A0
movsx ebp, ax
mov ebx, 0x1
cmp ebp, ebx
mov edi, ebx
jle 0x1BB
mov ecx, dword ptr [0x20C7C48]
test edi, edi
jl 0x1A3
mov edx, dword ptr [ecx+0x4]
test byte ptr [edi+edx*1], 0x80
jnz 0x196
mov esi, dword ptr [ecx+0xC]
imul esi, edi
add esi, dword ptr [ecx]
jz 0x188
test byte ptr [esi+0x3F], bl
jnz 0x17F
mov eax, dword ptr [esi+0x20]
mov eax, dword ptr [eax+0x10]
cmp eax, 0xFFFFFFFF
jz 0x170
movsx edx, byte ptr [esi+0x3C]
cmp edx, dword ptr [esp+0x14]
jnz 0x162
cmp byte ptr [esi+0x3D], 0x5
jz 0x158
mov ecx, dword ptr [eax*4+0xC67738]
call 0x5201D0
cmp byte ptr [eax+0x74], 0x0
mov cl, byte ptr [0xA147E0]
jz 0xF
movzx edx, cl
cmp dword ptr [edx*4+0xA147EC], 0x0
jz 0x42
cmp byte ptr [eax+0x75], 0x0
jz 0xE
movzx edx, cl
cmp dword ptr [edx*4+0xA147EC], ebx
jz 0x30
cmp byte ptr [eax+0x77], 0x0
jz 0xF
movzx edx, cl
cmp dword ptr [edx*4+0xA147EC], 0x3
jz 0x1D
cmp byte ptr [eax+0x76], 0x0
jz 0xFE
movzx eax, cl
cmp dword ptr [eax*4+0xA147EC], 0x2
jnz 0xED
fld1
mov ecx, dword ptr [esi+0x10]
fst dword ptr [esp+0x78], st
mov dword ptr [esp+0x18], ecx
fldz
mov edx, dword ptr [esi+0x14]
fst dword ptr [esp+0x24], st
mov eax, dword ptr [esi+0x18]
fst dword ptr [esp+0x28], st
push 0x0
fst dword ptr [esp+0x34], st
push ecx
fst dword ptr [esp+0x40], st
lea ecx, ptr [esp+0x2C]
fst dword ptr [esp+0x48], st
mov dword ptr [esp+0x24], edx
fstp dword ptr [esp+0x4C], st
lea edx, ptr [esp+0x50]
mov dword ptr [esp+0x28], eax
fst dword ptr [esp+0x34], st
fst dword ptr [esp+0x3C], st
fstp dword ptr [esp+0x44], st
fld st, dword ptr [esp+0x20]
fld st, dword ptr [esi+0x38]
fmul st, qword ptr [0x900158]
fdiv st, qword ptr [0x900160]
fsubp st(1), st
fstp dword ptr [esp+0x18], st
fld st, dword ptr [esp+0x18]
fstp dword ptr [esp], st
push ecx
push edx
call 0x415EB0
fld st, dword ptr [esp+0x2C]
add esp, 0x10
push 0x2
push ecx
lea eax, ptr [esp+0x38]
fstp dword ptr [esp], st
push eax
lea ecx, ptr [esp+0x54]
push ecx
call 0x415EB0
fld st, dword ptr [esp+0x30]
add esp, 0x10
push 0x2
push ecx
lea edx, ptr [esp+0x44]
fstp dword ptr [esp], st
push edx
lea eax, ptr [esp+0x54]
push eax
call 0x415EB0
push 0x2
lea ecx, ptr [esi+0x4]
push ecx
lea edx, ptr [esp+0x60]
push edx
call 0x415F50
fldz
mov ecx, dword ptr [esi+0x20]
mov ecx, dword ptr [ecx+0x10]
movsx eax, byte ptr [esi+0x3C]
add esp, 0x1C
push 0x0
push ebx
push esi
push ecx
lea edx, ptr [esp+0x58]
fstp dword ptr [esp], st
push edx
push eax
push ecx
call 0x44CE70
push eax
call 0x45D6B0
add esp, 0x20
mov ecx, dword ptr [0x20C7C48]
add edi, ebx
cmp edi, ebp
jl 0xFFFFFE57
call 0x5EF100
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x6C
ret
PAnimBreakLight("JanMotorLight02", -694.123, 64.948, 29.031)
PAnimBreakLight("JanMotorLight02", -694.166, 86.012, 29.031)
PAnimBreakLight("JanMotorLight02", -698.455, 64.948, 29.031)
PAnimBreakLight("JanMotorLight02", -698.497, 86.012, 29.031)
PAnimBreakLight("JanMotorLight02", -706.751, 73.261, 29.031)
PAnimBreakLight("JanMotorLight02", -706.751, 77.592, 29.031)
sub esp, 0x18
push esi
mov esi, dword ptr [esp+0x20]
push edi
push 0x0
push esi
call LuaParam::IsString
add esp, 0x8
test al, al
push 0x0
push esi
jz 0x12
call LuaParam::GetString
push eax
call 0x51C330
add esp, 0xC
jmp 0xA
call LuaParam::GetInt
add esp, 0x8
push 0x1
push esi
mov edi, eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x10], st
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x1C], st
push 0x3
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x28], st
add esp, 0x18
cmp edi, 0xFFFFFFFF
jz 0x4F
fld st, dword ptr [esp+0x8]
push 0x1
fstp dword ptr [esp+0x18], st
push ecx
fld st, dword ptr [esp+0x14]
lea eax, ptr [esp+0x1C]
fstp dword ptr [esp+0x20], st
fld st, dword ptr [esp+0x18]
fstp dword ptr [esp+0x24], st
fld1
fstp dword ptr [esp], st
push eax
push edi
call 0x4607A0
mov esi, eax
add esp, 0x10
mov ecx, esi
call 0x512760
test al, al
jz 0x14
cmp dword ptr [esi+0xCC], 0x0
jnz 0xB
push esi
call 0x46AAF0
add esp, 0x4
pop edi
xor eax, eax
pop esi
add esp, 0x18
ret
PAnimClearWhenDoneRotation("RoundHStrain", -2.35955, -398.84, 2.36308)
PAnimClearWhenDoneRotation(train.poolIndex, train.type)
PAnimClearWhenDoneRotation(TRIGGER._BUS_BUS)
push ecx
mov ecx, dword ptr [esp+0x8]
lea eax, ptr [esp]
push eax
push 0x0
push ecx
call 0x5C4570
add esp, 0xC
test eax, eax
jz 0xF
push 0x1
push eax
mov ecx, 0xD13730
call 0x5EBE30
xor eax, eax
pop ecx
ret
PAnimCloseDoor(10029, -628, -327, 1)
PAnimCloseDoor(10030, -628, -327, 1)
PAnimCloseDoor(prop.id)
PAnimCloseDoor(tblEntry.idDoor)
PAnimCloseDoor(trigger)
PAnimCloseDoor(TRIGGER._5_B_CHEM_DOOR)
PAnimCloseDoor(TRIGGER._5_B_CHEM_DOOR_2)
PAnimCloseDoor(TRIGGER._ASYDOORS12)
PAnimCloseDoor(TRIGGER._ASYDOORS14)
PAnimCloseDoor(TRIGGER._ASYLUM_FRONT_GATE_DOOR)
PAnimCloseDoor(TRIGGER._BUSDOORS)
PAnimCloseDoor(TRIGGER._CELLDOOR12)
PAnimCloseDoor(TRIGGER._DOOR_PREPHOUSE_STAIRS)
PAnimCloseDoor(TRIGGER._DT_GYM_DOORL)
PAnimCloseDoor(TRIGGER._DT_ISCHOOL_ART)
PAnimCloseDoor(TRIGGER._DT_LIBRARYEXITR)
PAnimCloseDoor(TRIGGER._DT_TSCHOOL_LIBRARYL)
PAnimCloseDoor(TRIGGER._FMDOORN)
PAnimCloseDoor(TRIGGER._FMDOORN01)
PAnimCloseDoor(TRIGGER._FUNTEETH)
PAnimCloseDoor(TRIGGER._GDORM_UPPERDOORSTORAGE)
PAnimCloseDoor(TRIGGER._HATTRICK_GATE)
PAnimCloseDoor(TRIGGER._IBOXING_ESCDOORL)
PAnimCloseDoor(TRIGGER._IBOXING_ESCDOORL01)
PAnimCloseDoor(TRIGGER._IBOXING_ESCDOORR)
PAnimCloseDoor(TRIGGER._IBOXING_ESCDOORR01)
PAnimCloseDoor(TRIGGER._JANDOORS00)
PAnimCloseDoor(TRIGGER._JANDOORS01)
PAnimCloseDoor(TRIGGER._JANDOORS02)
PAnimCloseDoor(TRIGGER._JANDOORS03B)
PAnimCloseDoor(TRIGGER._NERDPATH_BRDOOR)
PAnimCloseDoor(TRIGGER._SCGATE_OBSERVATORY)
PAnimCloseDoor(TRIGGER._SCGRDOOR)
PAnimCloseDoor(TRIGGER._STALDOOR02)
PAnimCloseDoor(TRIGGER._STALDOOR11)
PAnimCloseDoor(TRIGGER._TSCHOOL_PARKINGGATE)
push ecx
mov ecx, dword ptr [esp+0x8]
lea eax, ptr [esp]
push eax
push 0x0
push ecx
call 0x5C4570
add esp, 0xC
test eax, eax
jz 0xB
push 0x0
mov ecx, eax
call 0x4EEEC0
xor eax, eax
pop ecx
ret
gCrate = PAnimCreate(TRIGGER._TP_CRATE)
gDumpster01 = PAnimCreate(TRIGGER._3_S09_DUMPSTER01)
PAnimCreate(anim)
PAnimCreate(anim, true, false)
PAnimCreate(door.ID)
PAnimCreate(e.id)
PAnimCreate(event)
PAnimCreate(event.trigger)
PAnimCreate(gBonusTrigger)
PAnimCreate(mailbox.id)
PAnimCreate(prop.id, prop.bStreamNormal, prop.bGenerateObstacle)
PAnimCreate(tag.id)
PAnimCreate(tag.id, false)
PAnimCreate(tag.poster)
PAnimCreate(tag.poster, false)
PAnimCreate(tree.id)
PAnimCreate(TRIGGER._1_03_BARELLAD)
PAnimCreate(TRIGGER._1_07_GATE_T)
PAnimCreate(TRIGGER._1_07_TOOLBOX01)
PAnimCreate(TRIGGER._1_G1_MATHPROXY, false, false)
PAnimCreate(TRIGGER._2_08_PLANTTARGET)
PAnimCreate(TRIGGER._2_S04_TRASHCAN)
PAnimCreate(TRIGGER._2_S05_TRASHCAN1, true)
PAnimCreate(TRIGGER._2_S05_TRASHCAN2, true)
PAnimCreate(TRIGGER._2_S05_TRASHCAN3, true)
PAnimCreate(TRIGGER._3_S09_COVER01)
PAnimCreate(TRIGGER._3_S09_COVER02)
PAnimCreate(TRIGGER._3_S09_COVER03)
PAnimCreate(TRIGGER._4_02_OBSDOOR)
PAnimCreate(TRIGGER._4_03_BAR_05_01, false, true)
PAnimCreate(TRIGGER._4_03_BAR_05_02, false, true)
PAnimCreate(TRIGGER._4_05CUT_FAKEDOOR)
PAnimCreate(TRIGGER._4_06_BENCH_01)
PAnimCreate(TRIGGER._4_06_BENCH_01A)
PAnimCreate(TRIGGER._4_06_BENCH_02)
PAnimCreate(TRIGGER._4_06_BENCH_02A)
PAnimCreate(TRIGGER._4_06_BENCH_03)
PAnimCreate(TRIGGER._4_06_BENCH_03A)
PAnimCreate(TRIGGER._4_06_BENCH_04)
PAnimCreate(TRIGGER._4_06_BENCH_04A)
PAnimCreate(TRIGGER._4_06_COOLER)
PAnimCreate(TRIGGER._4_06_DUFFLE_BAG)
PAnimCreate(TRIGGER._4_06_HACK_SWITCH)
PAnimCreate(TRIGGER._5_06_RUSSELLGATE)
PAnimCreate(TRIGGER._5_09_CITYHALL_TAG)
PAnimCreate(TRIGGER._5_09_CITYHALLTAG2)
PAnimCreate(TRIGGER._5_09_CITYHALLTAG3)
PAnimCreate(TRIGGER._5_B_SECDOOR1)
PAnimCreate(TRIGGER._5_B_SECDOOR2)
PAnimCreate(TRIGGER._BITCHDICE)
PAnimCreate(TRIGGER._BONUSTARGET, true, false)
PAnimCreate(TRIGGER._BUS_BUS)
PAnimCreate(TRIGGER._C6_SHOPBIKE)
PAnimCreate(TRIGGER._DRBRACE)
PAnimCreate(TRIGGER._DRBRACE01)
PAnimCreate(TRIGGER._DUNKBTTN)
PAnimCreate(TRIGGER._DUNKSEAT)
PAnimCreate(TRIGGER._HSDINGER)
PAnimCreate(TRIGGER._JANELECTRICPROXY)
PAnimCreate(TRIGGER._JANSTEAMPROXY)
PAnimCreate(TRIGGER._PLAT_NORTH)
PAnimCreate(TRIGGER._PLAT_SOUTH)
PAnimCreate(TRIGGER._PLAT_WEST)
PAnimCreate(TRIGGER._SCGRDOOR)
PAnimCreate(TRIGGER._SCGRDOOR01)
PAnimCreate(TRIGGER._SCGRDOOR02)
PAnimCreate(TRIGGER._ST_CRATE_01)
PAnimCreate(TRIGGER._ST_CRATE_02)
PAnimCreate(TRIGGER._ST_CRATE_03)
PAnimCreate(TRIGGER._TBARRELS_SBARELS1)
PAnimCreate(TRIGGER._TINDUST_BAR_DOOR_01)
PAnimCreate(TRIGGER._TINDUST_BAR_DOOR_02)
PAnimCreate(TRIGGER._TINDUST_BAR_DOOR_03)
PAnimCreate(TRIGGER._TSCHOOL_FRONTGATE)
PAnimCreate(TRIGGER._TSCHOOL_PARKINGGATE)
PAnimCreate(TRIGGER._TURRET_TOP)
prop.id = PAnimCreate(prop.trigger)
propVase01 = PAnimCreate(TRIGGER._6_02G_VASE01)
propVase02 = PAnimCreate(TRIGGER._6_02G_VASE02)
propVase03 = PAnimCreate(TRIGGER._6_02G_VASE03)
snow.id = PAnimCreate(snow.trigger)
trashCan.id = PAnimCreate(trashCan.trigger, true)
sub esp, 0xD4
push ebp
push esi
mov esi, dword ptr [esp+0xE0]
push edi
push esi
call LuaParam::GetParamCount
push 0x0
push esi
call LuaParam::GetInt
add esp, 0xC
test eax, eax
jnl 0x6
xor ebp, ebp
jmp 0x1D
mov ecx, dword ptr [0x20C7C48]
mov edx, dword ptr [ecx+0x4]
test byte ptr [eax+edx*1], 0x80
jz 0x6
xor ebp, ebp
jmp 0xA
mov ebp, dword ptr [ecx+0xC]
imul ebp, eax
add ebp, dword ptr [ecx]
push esi
mov byte ptr [esp+0x10], 0x1
call LuaParam::GetParamCount
add esp, 0x4
cmp eax, 0x3
jl 0x11
push 0x2
push esi
call LuaParam::GetBool
add esp, 0x8
mov byte ptr [esp+0xC], al
fld1
push 0x0
fst dword ptr [esp+0x78], st
fldz
mov eax, dword ptr [ebp+0x10]
fst dword ptr [esp+0x30], st
mov dword ptr [esp+0x18], eax
fst dword ptr [esp+0x34], st
mov ecx, dword ptr [ebp+0x14]
fst dword ptr [esp+0x24], st
mov edx, dword ptr [ebp+0x18]
fst dword ptr [esp+0x2C], st
push ecx
fst dword ptr [esp+0x44], st
lea eax, ptr [esp+0x34]
fstp dword ptr [esp+0x48], st
mov dword ptr [esp+0x20], ecx
lea ecx, ptr [esp+0x4C]
mov dword ptr [esp+0x24], edx
fst dword ptr [esp+0x3C], st
fst dword ptr [esp+0x2C], st
fstp dword ptr [esp+0x40], st
fld st, dword ptr [esp+0x1C]
fld st, dword ptr [ebp+0x38]
fmul st, qword ptr [0x900158]
fdiv st, qword ptr [0x900160]
fsubp st(1), st
fstp dword ptr [esp+0x18], st
fld st, dword ptr [esp+0x18]
fstp dword ptr [esp], st
push eax
push ecx
call 0x415EB0
fld st, dword ptr [esp+0x28]
add esp, 0x10
push 0x2
push ecx
lea edx, ptr [esp+0x28]
fstp dword ptr [esp], st
push edx
lea eax, ptr [esp+0x50]
push eax
call 0x415EB0
fld st, dword ptr [esp+0x2C]
add esp, 0x10
push 0x2
push ecx
lea ecx, ptr [esp+0x40]
fstp dword ptr [esp], st
push ecx
lea edx, ptr [esp+0x50]
push edx
call 0x415EB0
fld1
add esp, 0x10
fstp dword ptr [esp+0xA8], st
lea ecx, ptr [esp+0x78]
call 0x770920
mov eax, dword ptr [ebp+0x4]
mov ecx, dword ptr [ebp+0x8]
mov edx, dword ptr [ebp+0xC]
mov dword ptr [esp+0x9C], eax
mov dword ptr [esp+0xA0], ecx
lea eax, ptr [esp+0x44]
push eax
lea ecx, ptr [esp+0xB0]
push ecx
lea ecx, ptr [esp+0x80]
mov dword ptr [esp+0xAC], edx
call 0x406830
mov esi, eax
mov ecx, 0xD
lea edi, ptr [esp+0x44]
rep movsd dword ptr [edi], dword ptr [esi]
mov edx, dword ptr [ebp+0x20]
mov eax, dword ptr [edx+0x10]
cmp eax, 0xFFFFFFFF
jz 0xBB
mov edx, dword ptr [esp+0xC]
fldz
movsx ecx, byte ptr [ebp+0x3C]
push 0x0
push edx
push ebp
push ecx
lea edx, ptr [esp+0x54]
fstp dword ptr [esp], st
push edx
push ecx
push eax
call 0x44CE70
mov edi, eax
push edi
call 0x45D6B0
mov eax, dword ptr [ebp+0x20]
mov esi, dword ptr [eax+0x10]
mov ebp, dword ptr [esi*4+0xC67738]
push esi
call 0x52DD30
add esp, 0x24
cmp byte ptr [eax+0x4], 0x1
jz 0x6A
push 0x16
push esi
call 0x532020
push 0x0
push 0x90250C
push 0x927180
call 0x43C4F0
push 0x0
call 0x533EE0
mov ecx, dword ptr [ebp+0xC]
movzx eax, word ptr [ecx+0x30]
add esp, 0x18
test ax, ax
jz 0x29
movzx eax, ax
movzx edx, ax
push edx
call 0x56F450
add esp, 0x4
test al, al
jnz 0x16
mov eax, dword ptr [ebp+0xC]
movzx ecx, word ptr [eax+0x30]
push 0x0
push 0x0
push ecx
call 0x56FAC0
add esp, 0xC
push esi
mov ecx, 0xD02850
call 0x5DB940
mov ecx, eax
call 0x5D9450
test edi, edi
jz 0x9
mov ecx, edi
call 0x4EF570
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0xD4
ret
PAnimDelete(anim)
PAnimDelete(door.ID)
PAnimDelete(gDestroyLamp)
PAnimDelete(mailbox.id)
PAnimDelete(prop.id)
PAnimDelete(propId)
PAnimDelete(snow.trigger)
PAnimDelete(tag.id)
PAnimDelete(tag.poster)
PAnimDelete(trashCan.trigger)
PAnimDelete(tree.id)
PAnimDelete(TRIGGER._1_03_BARELLAD)
PAnimDelete(TRIGGER._1_07_GATE_T)
PAnimDelete(TRIGGER._1_G1_MATHPROXY)
PAnimDelete(TRIGGER._2_08_PLANTTARGET)
PAnimDelete(TRIGGER._2_S04_TRASHCAN)
PAnimDelete(TRIGGER._4_06_DUFFLE_BAG)
PAnimDelete(TRIGGER._5_02_TROPHYPILE)
PAnimDelete(TRIGGER._5_09_CITYHALL_TAG)
PAnimDelete(TRIGGER._5_09_CITYHALLTAG2)
PAnimDelete(TRIGGER._5_09_CITYHALLTAG3)
PAnimDelete(TRIGGER._BITCHDICE)
PAnimDelete(TRIGGER._BUS_BUS)
PAnimDelete(TRIGGER._CELLDOOR13)
PAnimDelete(TRIGGER._DOOR_PREPHOUSE_FOYEROUT)
PAnimDelete(TRIGGER._DRBRACE)
PAnimDelete(TRIGGER._DRBRACE01)
PAnimDelete(TRIGGER._DT_TSCHOOL_POOLL)
PAnimDelete(TRIGGER._DUNKBTTN)
PAnimDelete(TRIGGER._DUNKSEAT)
PAnimDelete(TRIGGER._JANELECTRICPROXY)
PAnimDelete(TRIGGER._JANSTEAMPROXY)
PAnimDelete(TRIGGER._PLAT_SOUTH)
PAnimDelete(TRIGGER._SCGRDOOR)
PAnimDelete(TRIGGER._SCHOOL_TURRET)
PAnimDelete(TRIGGER._SCHOOL_TURRETTRIPOD)
PAnimDelete(TRIGGER._TINDUST_BAR_DOOR_01)
PAnimDelete(TRIGGER._TINDUST_BAR_DOOR_02)
PAnimDelete(TRIGGER._TINDUST_BAR_DOOR_03)
PAnimDelete(TRIGGER._TSCHOOL_FRONTGATE)
PAnimDelete(TRIGGER._TURRET_TOP)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x8
test eax, eax
jl 0x4D
mov ecx, dword ptr [0x20C7C48]
mov edx, dword ptr [ecx+0x4]
test byte ptr [eax+edx*1], 0x80
jnz 0x3E
push esi
mov esi, dword ptr [ecx+0xC]
imul esi, eax
add esi, dword ptr [ecx]
jz 0x2F
push edi
mov edi, dword ptr [esi+0x1C]
test edi, edi
jz 0x1B
push edi
call 0x45DD70
push edi
call 0x45E690
mov eax, dword ptr [edi]
mov edx, dword ptr [eax]
add esp, 0x8
push 0x1
mov ecx, edi
call 0x5C4ADE
pop edi
mov dword ptr [esi+0x1C], 0x0
xor eax, eax
pop esi
ret
local pedDestroyer = PAnimDestroyedByPed(ModelPoolIndex, 0)
ped = PAnimDestroyedByPed(idProp, bPropPool)
pedDestroyer = PAnimDestroyedByPed(ModelPoolIndex, 0)
push ebx
push esi
mov esi, dword ptr [esp+0xC]
push esi
xor ebx, ebx
call LuaParam::GetParamCount
add esp, 0x4
cmp eax, 0x1
jnz 0x33
push ebx
push esi
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, 0x20C7E98
call 0x6D7B10
test eax, eax
jz 0x73
mov ebx, dword ptr [eax+0x238]
push ebx
push esi
call LuaParam::PushInt
add esp, 0x8
pop esi
mov eax, 0x1
pop ebx
ret
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetInt
add esp, 0x10
test eax, eax
jnz 0x28
push edi
call 0x44A5B0
add esp, 0x4
test eax, eax
jz 0x33
mov ebx, dword ptr [eax+0x224]
pop edi
push ebx
push esi
call LuaParam::PushInt
add esp, 0x8
pop esi
mov eax, 0x1
pop ebx
ret
cmp eax, 0x5
jnz 0x15
push edi
call 0x44A5E0
add esp, 0x4
test eax, eax
jz 0x8
mov ebx, dword ptr [eax+0x238]
pop edi
push ebx
push esi
call LuaParam::PushInt
add esp, 0x8
pop esi
mov eax, 0x1
pop ebx
ret
PAnimDoorStayOpen(door)
PAnimDoorStayOpen(tblEntry.idDoor)
PAnimDoorStayOpen(tblEntry.idDoor2)
PAnimDoorStayOpen(TRIGGER._5_B_CHEM_DOOR)
PAnimDoorStayOpen(TRIGGER._5_B_CHEM_DOOR_2)
PAnimDoorStayOpen(TRIGGER._ASYDOORS14)
PAnimDoorStayOpen(TRIGGER._ASYDOORS15)
PAnimDoorStayOpen(TRIGGER._ASYLUM_FRONT_GATE_DOOR)
PAnimDoorStayOpen(TRIGGER._CELLDOOR17)
PAnimDoorStayOpen(TRIGGER._CELLDOOR18)
PAnimDoorStayOpen(TRIGGER._CELLDOOR19)
PAnimDoorStayOpen(TRIGGER._CELLDOOR20)
PAnimDoorStayOpen(TRIGGER._CELLDOOR21)
PAnimDoorStayOpen(TRIGGER._DOOR_PREPHOUSE_FOYER)
PAnimDoorStayOpen(TRIGGER._DOOR_PREPHOUSE_STAIRS)
PAnimDoorStayOpen(TRIGGER._FMDOORN)
PAnimDoorStayOpen(TRIGGER._FMDOORN01)
PAnimDoorStayOpen(TRIGGER._FUNTEETH)
PAnimDoorStayOpen(TRIGGER._GDORM_UPPERDOOR)
PAnimDoorStayOpen(TRIGGER._GDORM_UPPERDOORSTORAGE)
PAnimDoorStayOpen(TRIGGER._ICOMSHP_BASEMENT)
PAnimDoorStayOpen(TRIGGER._JANDOORS00)
PAnimDoorStayOpen(TRIGGER._JANDOORS01)
PAnimDoorStayOpen(TRIGGER._JANDOORS02)
PAnimDoorStayOpen(TRIGGER._JANDOORS03B)
PAnimDoorStayOpen(TRIGGER._SCGATE_OBSERVATORY)
PAnimDoorStayOpen(TRIGGER._STALDOOR01)
PAnimDoorStayOpen(TRIGGER._STALDOOR02)
PAnimDoorStayOpen(TRIGGER._STALDOOR11)
PAnimDoorStayOpen(TRIGGER._TSCHOOL_PARKINGGATE)
push ecx
mov ecx, dword ptr [esp+0x8]
lea eax, ptr [esp]
push eax
push 0x0
push ecx
call 0x5C4570
add esp, 0xC
test eax, eax
jz 0xD
push 0x1
push 0x10
mov ecx, eax
call 0x4EA450
xor eax, eax
pop ecx
ret
PAnimEnableStreaming(mailbox.id, false)
push edi
mov edi, dword ptr [esp+0x8]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x8
test eax, eax
jl 0x37
mov ecx, dword ptr [0x20C7C48]
mov edx, dword ptr [ecx+0x4]
test byte ptr [eax+edx*1], 0x80
jnz 0x28
push esi
mov esi, dword ptr [ecx+0xC]
imul esi, eax
add esi, dword ptr [ecx]
jz 0x18
push 0x1
push edi
call LuaParam::GetBool
shl al, 0x4
xor al, byte ptr [esi+0x3F]
add esp, 0x8
and al, 0x10
xor byte ptr [esi+0x3F], al
pop esi
xor eax, eax
pop edi
ret
elseif not tag.bCheckTag and PAnimExists(tag.poster) then
elseif PAnimExists(TRIGGER._FUNTEETH) and PAnimIsPlayingNode(TRIGGER._FUNTEETH, "Closed") then
if not PAnimExists(TRIGGER._TINDUST_BAR_DOOR_01) then
if not PAnimExists(TRIGGER._TINDUST_BAR_DOOR_02) then
if not PAnimExists(TRIGGER._TINDUST_BAR_DOOR_03) then
if PAnimExists(trigger) then
if PAnimExists(TRIGGER._DOOR_PREPHOUSE_FOYEROUT) then
if PAnimExists(TRIGGER._DOOR_PREPHOUSE_STAIRS) then
if PAnimExists(TRIGGER._DT_GYM_DOORL) then
if PAnimExists(TRIGGER._DT_POOL_DOORL) then
if PAnimExists(TRIGGER._FUNTEETH) then
if PAnimExists(TRIGGER._NLOCK02B06) then
if PAnimExists(TRIGGER._PANIM_FLYTRAP) then
if PAnimExists(TRIGGER._TSCHOOL_FRONTGATE) then
if tag.id and PAnimExists(tag.id) then
while not PAnimExists(TRIGGER._NLOCK01A) do
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push 0x0
push esi
mov byte ptr [esp+0xC], 0x0
call LuaParam::GetInt
add esp, 0x8
test eax, eax
jl 0x3A
mov edx, dword ptr [0x20C7C48]
mov ecx, dword ptr [edx+0x4]
test byte ptr [eax+ecx*1], 0x80
jnz 0x2B
mov ecx, dword ptr [edx+0xC]
imul ecx, eax
add ecx, dword ptr [edx]
jz 0x21
mov ecx, dword ptr [ecx+0x1C]
test ecx, ecx
jz 0x1A
mov ecx, dword ptr [ecx+0x114]
test ecx, ecx
jz 0x10
cmp dword ptr [ecx+0x94], 0x0
jz 0x7
mov byte ptr [esp+0x4], 0x1
mov edx, dword ptr [esp+0x4]
push edx
push esi
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
pop esi
pop ecx
ret
--print("passed PAnimFollowPath")
PAnimFollowPath(elevatorindex, gelevator, PATH._5_B_ELEVATOR_DOWN, false)
PAnimFollowPath(elevatorindex, gelevator, PATH._5_B_ELEVATOR_DOWN, false, CB_ElevatorDone)
PAnimFollowPath(elevatorindex, gelevator, PATH._5_B_ELEVATOR_UP, false)
PAnimFollowPath(ElevDoorCIndex, gElevDoorC, PATH._5_B_EC_CLOSE, false)
PAnimFollowPath(ElevDoorCIndex, gElevDoorC, PATH._5_B_ELEVATOR_C, false)
PAnimFollowPath(ElevDoorDIndex, gElevDoorD, PATH._5_B_ED_CLOSE, false)
PAnimFollowPath(ElevDoorDIndex, gElevDoorD, PATH._5_B_ELEVATOR_D, false)
PAnimFollowPath(entity.poolIndex, entity.type, entity.path, false, F_TrainSoundCallback)
PAnimFollowPath(gateIndex, gateObject, PATH._CM_GATEPATH, false)
PAnimFollowPath(tblTrain.poolIndex, tblTrain.type, tblTrain.path, false, F_Nil)
PAnimFollowPath(ThePipeIndex, ThePipeType, PATH._3_B_LEAD_PIPE_PATH, false)
PAnimFollowPath(trigger, PATH._BASEBALLTOSS_ROWONEPATH, false, CbRowOne)
PAnimFollowPath(trigger, PATH._BASEBALLTOSS_ROWTHREEPATH, false, CbRowThree)
PAnimFollowPath(trigger, PATH._BASEBALLTOSS_ROWTWOPATH, false, CbRowTwo)
PAnimFollowPath(trigger, pathId, false, CbRowOne)
PAnimFollowPath(trigger, pathId, false, CbRowThree)
PAnimFollowPath(trigger, pathId, false, CbRowTwo)
PAnimFollowPath(TRIGGER._5_B_SECDOOR1, PATH._5_B_DOORA_OPEN, false, F_DoorsOpenClosed_Callback)
PAnimFollowPath(TRIGGER._5_B_SECDOOR2, PATH._5_B_DOORB_OPEN, false, F_DoorsOpenClosed_Callback)
PAnimFollowPath(TRIGGER._6_02G_VASE01, PATH._6_02G_VASE01, false, F_prouteVase01)
PAnimFollowPath(TRIGGER._6_02G_VASE02, PATH._6_02G_VASE02, false, F_prouteVase02)
PAnimFollowPath(TRIGGER._6_02G_VASE03, PATH._6_02G_VASE03, false, F_prouteVase03)
PAnimFollowPath(TRIGGER._BUS_BUS, path, true)
PAnimFollowPath(TRIGGER._HSDINGER, PATH._HS_DINGER_PATH, false, cbDingerPath)
PAnimFollowPath(TRIGGER._TP_CRATE, PATH._TP_SIDEWAYS, false)
PAnimFollowPath(TRIGGER._TP_CRATE, PATH._TP_UP_DIRECTION, false)
push ecx
push ebx
push esi
push edi
mov edi, dword ptr [esp+0x14]
push 0x2
push edi
call LuaParam::IsBool
push 0x0
push edi
call LuaParam::GetInt
push 0x2
push edi
mov ebx, eax
mov esi, 0x1
call LuaParam::IsInt
add esp, 0x18
test al, al
jz 0x1A
push esi
push edi
call LuaParam::GetInt
push eax
push ebx
mov esi, 0x2
call 0x44A660
add esp, 0x10
jmp 0xD
push ebx
mov ecx, 0x20C7E98
call 0x6D7B10
mov ebx, eax
test ebx, ebx
jz 0x73
push ebp
push esi
push edi
call LuaParam::GetInt
mov ecx, dword ptr [0xD13CB4]
add esp, 0x8
push eax
add esi, 0x1
call 0x5ED4F0
push esi
push edi
mov ebp, eax
call LuaParam::GetBool
add esp, 0x8
mov byte ptr [esp+0x10], al
mov eax, dword ptr [esp+0x10]
push eax
push ebp
push ebx
mov ecx, 0xD13730
add esi, 0x1
call 0x5EC130
push edi
call 0x73AEA0
add esp, 0x4
cmp eax, esi
pop ebp
jle 0x27
push ebx
mov ecx, 0xD13730
call 0x5EBC70
test al, al
jz 0x18
push ebx
mov ecx, 0xD13730
call 0x5EBA30
push eax
push esi
push edi
call 0x5D9FD0
add esp, 0xC
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
PAnimFollowPathReset(elevatorindex, gelevator)
PAnimFollowPathReset(ElevDoorCIndex, gElevDoorC)
PAnimFollowPathReset(ElevDoorDIndex, gElevDoorD)
PAnimFollowPathReset(TRIGGER._TP_CRATE)
push esi
mov esi, dword ptr [esp+0x8]
push edi
push 0x0
push esi
call LuaParam::GetInt
push esi
mov edi, eax
call 0x73AEA0
add esp, 0xC
cmp eax, 0x2
jnz 0x24
push 0x1
push esi
call LuaParam::GetInt
push eax
push edi
call 0x44A660
add esp, 0x10
push eax
mov ecx, 0xD13730
call 0x5EBCB0
pop edi
xor eax, eax
pop esi
ret
push edi
mov ecx, 0x20C7E98
call 0x6D7B10
test eax, eax
jz 0xD
push eax
mov ecx, 0xD13730
call 0x5EBCB0
pop edi
xor eax, eax
pop esi
ret
PAnimFollowPathSoundLoop(train.poolIndex, train.type, "")
PAnimFollowPathSoundLoop(train.poolIndex, train.type, "TrainLoop")
push ebx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetInt
push esi
mov ebx, eax
mov edi, 0x1
call LuaParam::GetParamCount
add esp, 0xC
cmp eax, 0x2
jl 0x37
push 0x0
push esi
call LuaParam::IsInt
add esp, 0x8
test al, al
jz 0x28
push edi
push esi
call LuaParam::IsInt
add esp, 0x8
test al, al
jz 0x1A
push edi
push esi
call LuaParam::GetInt
push eax
push ebx
mov edi, 0x2
call 0x44A660
add esp, 0x10
jmp 0xD
push ebx
mov ecx, 0x20C7E98
call 0x6D7B10
mov ebx, eax
test ebx, ebx
jz 0x3C
push ebp
push edi
push esi
call LuaParam::GetString
push esi
mov ebp, eax
add edi, 0x1
call LuaParam::GetParamCount
lea ecx, ptr [edi+0x1]
add esp, 0xC
cmp eax, ecx
jnz 0x12
push edi
push esi
call LuaParam::GetBool
add esp, 0x8
test al, al
jz 0x4
xor ebp, ebp
push ebp
push ebx
mov ecx, 0xD13730
call 0x5EBE70
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
ret
PAnimForceCreate(prop, offx, offy, offz, 0, AreaGetVisible())
sub esp, 0x5C
push esi
mov esi, dword ptr [esp+0x64]
push esi
call LuaParam::GetParamCount
add esp, 0x4
cmp eax, 0x6
jnz 0x2EC
push 0x1
push esi
call LuaParam::IsInt
add esp, 0x8
test al, al
jz 0x2D9
push 0x2
push esi
call LuaParam::IsInt
add esp, 0x8
test al, al
jz 0x2C6
push 0x3
push esi
call LuaParam::IsInt
add esp, 0x8
test al, al
jz 0x2B3
push 0x4
push esi
call LuaParam::IsInt
add esp, 0x8
test al, al
jz 0x2A0
push 0x5
push esi
call LuaParam::IsInt
add esp, 0x8
test al, al
jz 0x28D
push edi
push 0x0
push esi
call LuaParam::IsString
add esp, 0x8
test al, al
push 0x0
push esi
jz 0x12
call LuaParam::GetString
push eax
call 0x51C330
add esp, 0xC
jmp 0x1D
call LuaParam::IsInt
add esp, 0x8
test al, al
jz 0x252
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x8
mov edi, eax
push ebp
mov ebp, dword ptr [edi*4+0xC67738]
push edi
call 0x4151E0
add esp, 0x4
test al, al
jnz 0x42
push edi
call 0x4151C0
add esp, 0x4
test al, al
jnz 0x1A
push edi
call 0x450C00
add esp, 0x4
test al, al
jnz 0xD
push 0x16
push edi
call 0x532020
add esp, 0x8
push 0x0
push 0x90250C
push 0x927200
call 0x43C4F0
push 0x0
call 0x533EE0
add esp, 0x10
fldz
push ebx
mov ebx, dword ptr [ebp+0xC]
test ebx, ebx
jz 0x5F
cmp word ptr [ebx+0x30], 0x0
jz 0x32
movzx eax, word ptr [ebx+0x30]
fstp st(0), st
add eax, 0x56B8
push 0x16
push eax
call 0x532020
push 0x0
push 0x90250C
push 0x9271E4
call 0x43C4F0
push 0x0
call 0x533EE0
fldz
add esp, 0x18
mov ecx, dword ptr [ebx+0x10]
mov eax, dword ptr [ebx+0x18]
mov edx, dword ptr [ebx+0x14]
mov dword ptr [esp+0x28], ecx
mov ecx, dword ptr [ebx+0x1C]
mov dword ptr [esp+0x30], eax
fld st, dword ptr [esp+0x30]
fstp dword ptr [esp+0x10], st
mov dword ptr [esp+0x2C], edx
mov dword ptr [esp+0x34], ecx
jmp 0x6
fst dword ptr [esp+0x10], st
fst dword ptr [esp+0x1C], st
push 0x1
fstp dword ptr [esp+0x24], st
push esi
fld1
fstp dword ptr [esp+0x2C], st
call LuaParam::GetFloat
fstp dword ptr [esp+0x1C], st
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x28], st
fld st, dword ptr [esp+0x24]
push 0x3
fstp dword ptr [esp+0x3C], st
push esi
fld st, dword ptr [esp+0x30]
fstp dword ptr [esp+0x44], st
call LuaParam::GetFloat
fadd dword ptr [esp+0x28]
push 0x4
push esi
fstp dword ptr [esp+0x50], st
call LuaParam::GetFloat
push 0x5
fstp dword ptr [esp+0x3C], st
push esi
call LuaParam::GetInt
fld1
add esp, 0x28
fstp dword ptr [esp+0x68], st
fld st, dword ptr [esp+0x18]
push 0x0
push ecx
fstp dword ptr [esp], st
lea edx, ptr [esp+0x24]
mov esi, eax
push edx
lea eax, ptr [esp+0x44]
push eax
call 0x415EB0
push 0x2
lea ecx, ptr [esp+0x3C]
push ecx
lea edx, ptr [esp+0x50]
push edx
call 0x415F50
fldz
add esp, 0x1C
push 0x0
push 0x0
push 0x0
push ecx
fstp dword ptr [esp], st
lea eax, ptr [esp+0x48]
push eax
push esi
push edi
call 0x44CE70
mov edi, eax
push edi
call 0x45D6B0
add esp, 0x20
mov ecx, ebp
call 0x520370
movsx esi, ax
cmp esi, 0xFFFFFFFF
pop ebx
jz 0x4F
push esi
call 0x4151E0
add esp, 0x4
test al, al
jnz 0x42
push esi
call 0x4151C0
add esp, 0x4
test al, al
jnz 0x1A
push esi
call 0x450C00
add esp, 0x4
test al, al
jnz 0xD
push 0x0
push esi
call 0x532020
add esp, 0x8
push 0x0
push 0x90250C
push 0x9271C8
call 0x43C4F0
push 0x0
call 0x533EE0
add esp, 0x10
mov ecx, ebp
call 0x5201D0
mov esi, dword ptr [eax+0x88]
cmp esi, 0xFFFFFFFF
pop ebp
jz 0x4F
push esi
call 0x4151E0
add esp, 0x4
test al, al
jnz 0x42
push esi
call 0x4151C0
add esp, 0x4
test al, al
jnz 0x1A
push esi
call 0x450C00
add esp, 0x4
test al, al
jnz 0xD
push 0x0
push esi
call 0x532020
add esp, 0x8
push 0x0
push 0x90250C
push 0x9271AC
call 0x43C4F0
push 0x0
call 0x533EE0
add esp, 0x10
mov edx, dword ptr [edi]
mov eax, dword ptr [edx+0x28]
push 0x1
push 0x1
mov ecx, edi
call 0x5C5B68
pop edi
xor eax, eax
pop esi
add esp, 0x5C
ret
-- never used
push ecx
mov ecx, dword ptr [esp+0x8]
push esi
lea eax, ptr [esp+0x4]
push eax
push 0x0
push ecx
call 0x5C4570
mov esi, eax
add esp, 0xC
test esi, esi
jz 0x1B
push esi
call 0x45DD70
push esi
call 0x45E690
mov edx, dword ptr [esi]
mov eax, dword ptr [edx]
add esp, 0x8
push 0x1
mov ecx, esi
call 0x5C5BB5
xor eax, eax
pop esi
pop ecx
ret
elseif gWindowsStage == 2 and PAnimGetHealth(TRIGGER._DT_OBSERVATORY) <= 0.5 and PAnimGetHealth(TRIGGER._DT_OBSERVATORY) >= 0.25 then
elseif gWindowsStage == 3 and PAnimGetHealth(TRIGGER._DT_OBSERVATORY) <= 0.2 and PAnimGetHealth(TRIGGER._DT_OBSERVATORY) >= 0 then
elseif PAnimGetHealth(TRIGGER._4_03_BAR_05_02) == 0 then
elseif PAnimGetHealth(TRIGGER._DT_OBSERVATORY) == 0 then
if gWindowsStage == 1 and PAnimGetHealth(TRIGGER._DT_OBSERVATORY) <= 0.75 and PAnimGetHealth(TRIGGER._DT_OBSERVATORY) >= 0.55 then
if not bHoboAttack and 1 > PAnimGetHealth(entry) then
if PAnimGetHealth("PortaPoo", entry.x, entry.y, entry.z) < 1 or PAnimIsPlaying("PortaPoo", entry.x, entry.y, entry.z, 2, "/Global/StealthDoor/NotUseable/Damaged", true) then
if PAnimGetHealth(CurrentTarget) <= 0 then
if PAnimGetHealth(TRIGGER._PANIM_FLYTRAP) <= 0.15 then
while not bLeftHarrington and PAnimGetHealth(TRIGGER._PANIM_FLYTRAP) > 0.15 do
push ecx
push esi
mov esi, dword ptr [esp+0xC]
lea eax, ptr [esp+0x4]
push eax
push 0x0
push esi
call 0x5C4570
fldz
add esp, 0xC
fstp dword ptr [esp+0x4], st
test eax, eax
jz 0xD
mov ecx, eax
call 0x4EDD80
fstp dword ptr [esp+0x4], st
fld st, dword ptr [esp+0x4]
push ecx
fstp dword ptr [esp], st
push esi
call LuaParam::PushFloat
add esp, 0x8
mov eax, 0x1
pop esi
pop ecx
ret
local speed = PAnimGetPathFollowSpeed(idTrigger)
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetInt
push esi
mov edi, eax
call 0x73AEA0
add esp, 0xC
cmp eax, 0x2
jnz 0x3D
push 0x1
push esi
call LuaParam::GetInt
push eax
push edi
call 0x44A660
add esp, 0x10
push eax
mov ecx, 0xD13730
call 0x5EBD00
fstp dword ptr [esp+0x8], st
fld st, dword ptr [esp+0x8]
push ecx
fstp dword ptr [esp], st
push esi
call LuaParam::PushFloat
add esp, 0x8
pop edi
mov eax, 0x1
pop esi
pop ecx
ret
push edi
mov ecx, 0x20C7E98
call 0x6D7B10
test eax, eax
jnz 0xFFFFFFCA
pop edi
pop esi
pop ecx
ret
elevatorindex, gelevator = PAnimGetPoolIndex("CH_Elevator", -761.366, 92.5378, 46.8435, 5)
ElevDoorCIndex, gElevDoorC = PAnimGetPoolIndex("CH_ElevDoorC", -761.79, 91.7649, 7.61579, 5)
ElevDoorDIndex, gElevDoorD = PAnimGetPoolIndex("CH_ElevDoorD", -760.941, 91.7649, 7.6158, 5)
idProp, bPropPool = PAnimGetPoolIndex(prop.trigger, prop.x, prop.y, prop.z, 1.2)
index_g1, simplePool_g1 = PAnimGetPoolIndex("DPI_TrophyGlsC", -627.861, -293.856, 6.95912, 1)
index_g2, simplePool_g2 = PAnimGetPoolIndex("DPI_TrophyGlsA,", -629.372, -293.856, 6.56114, 1)
index_g3, simplePool_g3 = PAnimGetPoolIndex("DPI_TrophyGlsB", -629.372, -293.856, 7.18237, 1)
index_g4, simplePool_g4 = PAnimGetPoolIndex("DPI_TrophyGlsC", -628.579, -293.856, 6.95912, 1)
index_g5, simplePool_g5 = PAnimGetPoolIndex("DPI_TrophyGlsB", -627.083, -293.856, 7.18237, 1)
index_g6, simplePool_g6 = PAnimGetPoolIndex("DPI_TrophyGlsA", -627.083, -293.856, 6.56114, 1)
item.index, item.pool = PAnimGetPoolIndex(item.name, item.x, item.y, item.z, 1)
local elevatorindex, gelevator = PAnimGetPoolIndex("CH_Elevator", -761.366, 92.5378, 46.8435, 5)
local ElevDoorCIndex, gElevDoorC = PAnimGetPoolIndex("CH_ElevDoorC", -761.79, 91.7649, 7.61579, 5)
local ElevDoorDIndex, gElevDoorD = PAnimGetPoolIndex("CH_ElevDoorD", -760.941, 91.7649, 7.6158, 5)
local garageIndex, garagePool = PAnimGetPoolIndex("SBikeGar", 302.107, -421.098, 2.92139, 1)
local index_light, simplePool_light = PAnimGetPoolIndex("SC_ObservTrans", 33.1794, -130.376, 10.681, 1)
mailbox.index, mailbox.pool = PAnimGetPoolIndex("RMailbox", x, y, z, 1)
sub esp, 0x1C
push esi
mov esi, dword ptr [esp+0x24]
push edi
push 0x0
push esi
call LuaParam::GetString
push 0x1
push esi
mov edi, eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x18], st
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x24], st
push 0x3
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x30], st
push 0x4
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x3C], st
push edi
call 0x51C330
fld st, dword ptr [esp+0x34]
fstp dword ptr [esp+0x44], st
add esp, 0x2C
fld st, dword ptr [esp+0xC]
push 0x9
fstp dword ptr [esp+0x20], st
push ecx
fld st, dword ptr [esp+0x18]
lea ecx, ptr [esp+0x20]
fstp dword ptr [esp+0x28], st
fld st, dword ptr [esp+0x1C]
fstp dword ptr [esp], st
push ecx
push eax
call 0x4607A0
or ecx, 0xFFFFFFFF
add esp, 0x10
or edi, ecx
test eax, eax
jz 0x60
mov dl, byte ptr [eax+0x108]
and dl, 0x7
cmp dl, 0x6
jnz 0xF
mov ecx, dword ptr [0xC0F608]
mov edi, 0x5
jmp 0x33
cmp dl, 0x4
jnz 0x1E
mov ecx, dword ptr [0xC0F614]
sub eax, dword ptr [ecx]
cdq
idiv dword ptr [ecx+0xC]
mov ecx, dword ptr [ecx+0x4]
movzx ecx, byte ptr [ecx+eax*1]
shl eax, 0x8
add ecx, eax
xor edi, edi
jmp 0x24
cmp dl, 0x1
jnz 0x1F
mov ecx, dword ptr [0xC0F5F8]
mov edi, 0x4
sub eax, dword ptr [ecx]
cdq
idiv dword ptr [ecx+0xC]
mov edx, dword ptr [ecx+0x4]
movzx ecx, byte ptr [edx+eax*1]
shl eax, 0x8
add ecx, eax
push ecx
push esi
call LuaParam::PushInt
push edi
push esi
call LuaParam::PushInt
add esp, 0x10
pop edi
mov eax, 0x2
pop esi
add esp, 0x1C
ret
dx, dy, dz = PAnimGetPosition(TRIGGER._HSDINGER)
sx, sy, sz = PAnimGetPosition(trigger)
sub esp, 0xC
push esi
mov esi, dword ptr [esp+0x14]
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, 0x20C7E98
call 0x6D7B10
test eax, eax
jnz 0x7
pop esi
add esp, 0xC
ret
mov ecx, dword ptr [eax+0x14]
test ecx, ecx
jz 0x7
add ecx, 0x30
jmp 0x5
lea ecx, ptr [eax+0x4]
mov edx, dword ptr [ecx]
mov dword ptr [esp+0x4], edx
mov edx, dword ptr [ecx+0x4]
mov dword ptr [esp+0x8], edx
mov ecx, dword ptr [ecx+0x8]
lea edx, ptr [esp+0x4]
push edx
mov dword ptr [esp+0x10], ecx
push eax
mov ecx, 0xD13730
call 0x5EBDC0
fld st, dword ptr [esp+0x4]
push ecx
fstp dword ptr [esp], st
push esi
call LuaParam::PushFloat
fld st, dword ptr [esp+0x10]
add esp, 0x4
fstp dword ptr [esp], st
push esi
call LuaParam::PushFloat
fld st, dword ptr [esp+0x14]
add esp, 0x4
fstp dword ptr [esp], st
push esi
call LuaParam::PushFloat
add esp, 0x8
mov eax, 0x3
pop esi
add esp, 0xC
ret
-- never used
sub esp, 0x8
push esi
push edi
mov edi, dword ptr [esp+0x14]
lea eax, ptr [esp+0x8]
push eax
push 0x1
push edi
mov byte ptr [esp+0x18], 0x0
mov dword ptr [esp+0x14], 0xFFFFFFFF
call 0x5C4570
mov esi, eax
add esp, 0xC
test esi, esi
jz 0x21
mov ecx, dword ptr [esp+0x8]
push ecx
push edi
call LuaParam::GetInt
lea eax, ptr [esi+eax*4+0x160]
add esp, 0x8
cmp dword ptr [eax], 0x0
setnz dl
mov byte ptr [esp+0xC], dl
mov eax, dword ptr [esp+0xC]
push eax
push edi
call LuaParam::PushBool
add esp, 0x8
pop edi
mov eax, 0x1
pop esi
add esp, 0x8
ret
-- never used
sub esp, 0x40
push esi
push edi
mov edi, dword ptr [esp+0x4C]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, 0x20C7E98
call 0x6D7B10
mov esi, eax
mov eax, dword ptr [esi+0x14]
test eax, eax
jz 0x7
add eax, 0x30
jmp 0x5
lea eax, ptr [esi+0x4]
mov ecx, dword ptr [eax]
mov edx, dword ptr [eax+0x4]
mov eax, dword ptr [eax+0x8]
push 0x1
push edi
mov dword ptr [esp+0x10], ecx
mov dword ptr [esp+0x14], edx
mov dword ptr [esp+0x18], eax
call LuaParam::GetString
push eax
call 0x576ED0
fld1
push 0x1
fstp dword ptr [esp+0x54], st
lea ecx, ptr [esp+0x24]
push ecx
push eax
push esi
call 0x467D80
add esp, 0x1C
test al, al
jz 0x1A
mov edx, dword ptr [esp+0x38]
mov eax, dword ptr [esp+0x3C]
mov ecx, dword ptr [esp+0x40]
mov dword ptr [esp+0x8], edx
mov dword ptr [esp+0xC], eax
mov dword ptr [esp+0x10], ecx
fld st, dword ptr [esp+0x8]
push ecx
fstp dword ptr [esp], st
push edi
call LuaParam::PushFloat
fld st, dword ptr [esp+0x14]
add esp, 0x4
fstp dword ptr [esp], st
push edi
call LuaParam::PushFloat
fld st, dword ptr [esp+0x18]
add esp, 0x4
fstp dword ptr [esp], st
push edi
call LuaParam::PushFloat
add esp, 0x8
pop edi
mov eax, 0x3
pop esi
add esp, 0x40
ret
PAnimHideHealthBar()
PAnimHideHealthBar(fire.trigger)
PAnimHideHealthBar(fireId)
PAnimHideHealthBar(tblEntry.propTrigger)
PAnimHideHealthBar(tblEntry.trigger)
PAnimHideHealthBar(TRIGGER._5_04_BANNERS_03)
PAnimHideHealthBar(TRIGGER._DT_OBSERVATORY)
PAnimHideHealthBar(TRIGGER._PANIM_FLYTRAP)
push esi
mov esi, dword ptr [0xC674D0]
push 0x0
mov ecx, esi
call 0x5538C0
mov eax, dword ptr [esi]
mov edx, dword ptr [eax+0x14]
push 0x0
mov ecx, esi
call 0x5C3B8B
mov esi, dword ptr [esp+0x8]
push esi
call 0x73AEA0
add esp, 0x4
cmp eax, 0x1
jnz 0x27
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, 0x20C7E98
call 0x6D7B10
test eax, eax
jz 0xD
push 0x0
push 0x3
mov ecx, eax
call 0x4EA450
xor eax, eax
pop esi
ret
elseif PAnimIsDestroyed(prop.id, prop.x, prop.y, prop.z) then
if not bS1M1Destroyed and PAnimIsDestroyed("OBSMotor", -700.137, 86.2676, 29.2188) then
if not bS1M2Destroyed and PAnimIsDestroyed("OBSMotor", -692.547, 86.2075, 29.2906) then
if not bS2M1Destroyed and PAnimIsDestroyed("OBSMotor", -706.995, 79.206, 29.291) then
if not bS2M2Destroyed and PAnimIsDestroyed("OBSMotor", -706.986, 71.6268, 29.291) then
if not bS3M1Destroyed and PAnimIsDestroyed("OBSMotor", -692.507, 64.7766, 29.291) then
if not bS3M2Destroyed and PAnimIsDestroyed("OBSMotor", -700.087, 64.7677, 29.291) then
if not PAnimIsDestroyed(TRIGGER._DRBRACE) then
if not PAnimIsDestroyed(TRIGGER._DRBRACE01) then
if not snow.removed and PAnimIsDestroyed(snow.trigger) then
if PAnimIsDestroyed(entry) then
if PAnimIsDestroyed(gWatcherBox, gWatcherBoxObject) and not bFailedDueToViolence then
if PAnimIsDestroyed(index_light, simplePool_light) then
if PAnimIsDestroyed(item.index, item.pool) == true then
if PAnimIsDestroyed(mailbox.index, mailbox.pool) == true and mailbox.destroyed == false then
if PAnimIsDestroyed(prop.id) then
if PAnimIsDestroyed(tblEntry.propTrigger) then
if PAnimIsDestroyed(tOne.id) and tOne.alive then
if PAnimIsDestroyed(trashCan.trigger) == true and trashCan.destroyed == false then
if PAnimIsDestroyed(TRIGGER._DT_OBSERVATORY) then
if PAnimIsDestroyed(TRIGGER._ST_CRATE_01) then
if PAnimIsDestroyed(TRIGGER._ST_CRATE_02) then
if PAnimIsDestroyed(TRIGGER._ST_CRATE_03) then
if PAnimIsDestroyed(tThree.id) and tThree.alive then
if PAnimIsDestroyed(tTwo.id) and tTwo.alive then
if prop.bGeo == true and not prop.destroyed and PAnimIsDestroyed(prop.id, prop.x, prop.y, prop.z) then
while not PAnimIsDestroyed("Scaffold", 178.173, -73.1613, 30.5194) do
while not PAnimIsDestroyed("Scaffold", 178.173, -73.1613, 35.2763) do
while not PAnimIsDestroyed("Scaffold", 178.173, -73.1613, 40.1403) do
push ecx
push esi
mov esi, dword ptr [esp+0xC]
lea eax, ptr [esp+0x4]
push eax
push 0x0
push esi
call 0x5C4570
add esp, 0xC
test eax, eax
mov byte ptr [esp+0x4], 0x0
jz 0xF
mov edx, dword ptr [eax]
mov ecx, eax
mov eax, dword ptr [edx+0x78]
call 0x5C4B28
mov byte ptr [esp+0x4], al
mov ecx, dword ptr [esp+0x4]
push ecx
push esi
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
pop esi
pop ecx
ret
elseif not PAnimIsOpen(prop.id) and prop.bIsOpen == true then
if gDoorsClosed and (PAnimIsOpen(TRIGGER._IBOXING_ESCDOORL) or PAnimIsOpen(TRIGGER._IBOXING_ESCDOORR) or PAnimIsOpen(TRIGGER._IBOXING_ESCDOORL01) or PAnimIsOpen(TRIGGER._IBOXING_ESCDOORR01)) then
if nodeid == 11 and PAnimIsOpen(TRIGGER._CELLDOOR15) then
if nodeid == 14 and PAnimIsOpen(TRIGGER._CELLDOOR14) then
if nodeid == 5 and PAnimIsOpen(TRIGGER._CELLDOOR) then
if nodeid == 8 and PAnimIsOpen(TRIGGER._CELLDOOR16) then
if not PAnimIsOpen(TRIGGER._BUSDOORS) then
if not PAnimIsOpen(TRIGGER._NERDPATH_BRDOOR) then
if not PAnimIsOpen(TRIGGER._TSCHOOL_PARKINGGATE) then
if PAnimIsOpen(prop.id) and prop.bIsOpen == false then
if PAnimIsOpen(TRIGGER._JANDOORS03B) then
return (PlayerIsInTrigger(TRIGGER._2_05_FRONTGATE) or PlayerIsInTrigger(TRIGGER._2_05_BACKGATE)) and (PAnimIsOpen(TRIGGER._TRICH_TADGATES) or PAnimIsOpen(TRIGGER._TRICH_TADGATES01))
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, 0x20C7E98
call 0x6D7B10
test eax, eax
jz 0x1D
cmp dword ptr [eax+0x184], 0x0
setnz al
push eax
push esi
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
pop esi
ret
xor al, al
push eax
push esi
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
pop esi
ret
elseif PAnimIsPlaying(Benches[i].trigger, "/Global/GlueBench/NotUseable", true) then
elseif PAnimIsPlaying(TRIGGER._4_06_DUFFLE_BAG, "/Global/DuffBag/Useable", true) then
elseif PAnimIsPlaying(TRIGGER._DRBRACE01, "/Global/DRBrace/Falling", false) then
elseif tag.bIsTagged and not tag.bIsCleaned and PAnimIsPlaying(tag.id, tblTagTypes[6], false) then
if AreaGetVisible() == 0 and tag.bCheckTag and (not tag.id or not PAnimIsPlaying(tag.id, "/Global/TagSmall/NotUseable/Tagged/VandalTag", false)) then
if entry.blipState == BLIPSTATE_OCCUPIED and PAnimIsPlaying("PortaPoo", entry.x, entry.y, entry.z, 2, "/Global/StealthDoor/Unoccupied", false) then
if gCurrentReaper == 1 and not PAnimIsPlaying(gReapers[gCurrentReaper].reaper, "/Global/FunReapr/Oneshot/Stay", false) and not PAnimIsPlaying(gReapers[gCurrentReaper].reaper, "/Global/FunReapr/Oneshot", false) and PedIsInTrigger(gTablePeds[gCurrentJock].id, gReapers[gCurrentReaper].trigger) then
if not bUsedScythe and IsButtonPressed(7, 0) and not PAnimIsPlaying(gReapers[gCurrentReaper].reaper, "/Global/FunReapr/Oneshot/Stay", false) and not PAnimIsPlaying(gReapers[gCurrentReaper].reaper, "/Global/FunReapr/Oneshot", false) then
if not LacedDrink and PAnimIsPlaying(TRIGGER._4_06_COOLER, "/Global/GatClr/NotUseable", true) then
if not PAnimIsPlaying(gReapers[gCurrentReaper].reaper, "/Global/FunReapr/Oneshot/Stay", false) and not PAnimIsPlaying(gReapers[gCurrentReaper].reaper, "/Global/FunReapr/Oneshot", false) then
if not part1Switches[1] and PAnimIsPlaying(TRIGGER._TINDUST_POWER_SWITCH_01, "/Global/BRSwitch/Active", false) then
if not part1Switches[2] and PAnimIsPlaying(TRIGGER._TINDUST_POWER_SWITCH_02, "/Global/BRSwitch/Active", false) then
if not RiggedBallPlanted and PAnimIsPlaying(TRIGGER._4_06_DUFFLE_BAG, "/Global/DuffBag/NotUseable", true) then
if not tag.bCleaned and not PAnimIsPlaying(tag.id, "/Global/Tags/NotUseable/Tagged", true) and not PAnimIsPlaying(tag.id, "/Global/WBrush/Tagged", true) then
if PAnimGetHealth("PortaPoo", entry.x, entry.y, entry.z) < 1 or PAnimIsPlaying("PortaPoo", entry.x, entry.y, entry.z, 2, "/Global/StealthDoor/NotUseable/Damaged", true) then
if PAnimIsPlaying("AsySwtch", -690.115, 493.604, 2.00141, 1, "/Global/AsySwtch/Active", true) then
if PAnimIsPlaying("PortaPoo", entry.x, entry.y, entry.z, 2, "/Global/StealthDoor/Occupied", false) then
if PAnimIsPlaying(Benches[i].trigger, "/Global/GlueBench/NotUseable", true) or PAnimIsPlaying(Benches[i].trigger2, "/Global/GlueBench/NotUseable", true) then
if PAnimIsPlaying(Benches[i].trigger2, "/Global/GlueBench/NotUseable", true) then
if PAnimIsPlaying(tag.id, "/Global/TagSmall/NotUseable/Tagged/VandalTag", false) then
if PAnimIsPlaying(tag.id, "/Global/WBrush/NotUseable/CleanedUp", true) then
if PAnimIsPlaying(tag.id, tag.taggedSmall, true) or PAnimIsPlaying(tag.id, tag.taggedMedium, true) then
if PAnimIsPlaying(tblPotty[1], x, y, z, 2, "/Global/StealthDoor/NotUseable/Damaged", false) then
if PAnimIsPlaying(TRIGGER._4_06_DUFFLE_BAG, "/Global/DuffBag/NotUseable", true) then
if PAnimIsPlaying(TRIGGER._4_06_HACK_SWITCH, "/Global/CtrlBx/NotUseable", false) then
if PAnimIsPlaying(TRIGGER._DRBRACE, "/Global/DRBrace/Falling", false) then
if PAnimIsPlaying(TRIGGER._IFUNHOUS_REEPER00, "/Global/FunReapr/Oneshot/Stay", false) and PAnimIsPlaying(TRIGGER._IFUNHOUS_REEPER00B, "/Global/FunReapr/Oneshot/Stay", false) and PAnimIsPlaying(TRIGGER._IFUNHOUS_REEPER01, "/Global/FunReapr/Oneshot/Stay", false) and PAnimIsPlaying(TRIGGER._IFUNHOUS_REEPER01B, "/Global/FunReapr/Oneshot/Stay", false) and PAnimIsPlaying(TRIGGER._IFUNHOUS_REEPER02, "/Global/FunReapr/Oneshot/Stay", false) and PAnimIsPlaying(TRIGGER._IFUNHOUS_REEPER02B, "/Global/FunReapr/Oneshot/Stay", false) then
if PAnimIsPlaying(TRIGGER._JANSWTCH00, "/Global/AsySwtch/Active", true) then
if PAnimIsPlaying(TRIGGER._JANSWTCH01, "/Global/AsySwtch/Active", true) then
if part1Switches[2] and part1Switches[1] and not part1Switches[4] and PAnimIsPlaying(TRIGGER._TINDUST_GATE_SWITCH, "/Global/BRSwitch/NotUseable", false) then
if PedIsValid(gNerds[2]) and PAnimIsPlaying(TRIGGER._4_G4_SCHOOLTAG2, "/Global/TagSmall/NotUseable/Tagged/VandalTag", false) and PedIsPlaying(gPlayer, "/Global/TagSmall/PedPropsActions/IsPlayer/DrawVandalTag/ParametricTagging/Finished", false) then
if PlayerIsInAreaXYZ(Locker_x, Locker_y, Locker_z, 1, 0) and PAnimIsPlaying(TRIGGER._NLOCK01B05, "/Global/NLockA/Locked", false) then
if PlayerIsInAreaXYZ(Locker_x, Locker_y, Locker_z, 1, 0) and PAnimIsPlaying(TRIGGER._NLOCK02B03, "/Global/NLockA/Locked", false) then
if PlayerIsInAreaXYZ(Locker_x, Locker_y, Locker_z, 2, 0) and not PAnimIsPlaying(TRIGGER._NLOCK01B05, "/Global/NLockA/Locked", false) then
if PlayerIsInAreaXYZ(Locker_x, Locker_y, Locker_z, 2, 0) and not PAnimIsPlaying(TRIGGER._NLOCK02B03, "/Global/NLockA/Locked", false) then
if PlayerIsInAreaXYZ(x, y, z, 2, 0) and PAnimIsPlaying(tag, "/Global/Tags/NotUseable/Tagged/", false) then
if PlayerIsInTrigger(TRIGGER._BathroomExit) and shared.gAreaDATFileLoaded[13] == true and AreaGetVisible() == 13 and not PAnimIsPlaying(TRIGGER._LCKRGYMM, "/Global/NLockA/Locked1_08", false) then
if PlayerIsInTrigger(TRIGGER._JANSWTCH03A) and PAnimIsPlaying(TRIGGER._JANSWTCH03A, "/Global/AsySwtch/Active", true) and bElectricArcsOn then
if tag.bIsTagDone and not tag.bIsCleaned and PAnimIsPlaying(tag.id, "/Global/TagSmall/Useable", false) then
local bPlaying = PAnimIsPlaying(prop.id, prop.actNode, prop.bRecursive)
return PAnimIsPlaying(idTrigger, tblTagTypes[idTagType], true)
while not PAnimIsPlaying(TRIGGER._PANIM_FLYTRAP, "/Global/VFlyTrap/Death/Dead/DeadHold", false) do
while PAnimIsPlaying(TRIGGER._ASYBARS, "/Global/AsyBars/Executes/CloseBreak", false) do
sub esp, 0x1C
push ebx
push esi
mov esi, dword ptr [esp+0x28]
push edi
push esi
call 0x73AEA0
add esp, 0x4
cmp eax, 0x3
jnz 0xF8
push 0x0
push esi
call LuaParam::IsInt
add esp, 0x8
test al, al
jnz 0x15
push 0x0
push esi
call LuaParam::IsHashID
add esp, 0x8
test al, al
jz 0x268
push 0x1
push esi
call LuaParam::IsString
add esp, 0x8
test al, al
jz 0x255
push 0x2
push esi
call LuaParam::IsBool
add esp, 0x8
test al, al
jz 0x242
push 0x1
push esi
call LuaParam::GetString
mov ebx, eax
mov al, byte ptr [ebx]
add esp, 0x8
cmp al, 0x5C
jz 0xA
cmp al, 0x2F
jnz 0x227
push 0x0
push esi
call LuaParam::IsInt
add esp, 0x8
test al, al
push 0x0
push esi
jz 0x17
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, 0x20C7E98
call 0x6D7B10
jmp 0x23
call LuaParam::IsHashID
add esp, 0x8
test al, al
jz 0x1F0
push 0x0
push esi
call LuaParam::GetUserData
push eax
call 0x44A610
add esp, 0xC
mov edi, eax
test edi, edi
jz 0x1D5
mov ecx, edi
call 0x4ED940
push 0x2
push esi
call LuaParam::GetBool
add esp, 0x8
lea ecx, ptr [edi+0x128]
push eax
push ebx
call 0x5F3D50
mov byte ptr [esp+0xC], al
mov eax, dword ptr [esp+0xC]
push eax
push esi
call LuaParam::PushBool
add esp, 0x8
pop edi
pop esi
mov eax, 0x1
pop ebx
add esp, 0x1C
ret
push esi
call 0x73AEA0
add esp, 0x4
cmp eax, 0x7
jnz 0x186
push 0x0
push esi
call LuaParam::IsInt
add esp, 0x8
test al, al
push 0x0
push esi
jz 0xC
call LuaParam::GetInt
add esp, 0x8
jmp 0x23
call LuaParam::IsString
add esp, 0x8
test al, al
jz 0x15A
push 0x0
push esi
call LuaParam::GetString
push eax
call 0x51C330
add esp, 0xC
push 0x1
push esi
mov edi, eax
call LuaParam::IsInt
add esp, 0x8
test al, al
jz 0x134
push 0x2
push esi
call LuaParam::IsInt
add esp, 0x8
test al, al
jz 0x121
push 0x3
push esi
call LuaParam::IsInt
add esp, 0x8
test al, al
jz 0x10E
push 0x4
push esi
call LuaParam::IsInt
add esp, 0x8
test al, al
jz 0xFB
push 0x5
push esi
call LuaParam::IsString
add esp, 0x8
test al, al
jz 0xE8
push 0x6
push esi
call LuaParam::IsBool
add esp, 0x8
test al, al
jz 0xD5
push 0x5
push esi
call LuaParam::GetString
mov ebx, eax
mov al, byte ptr [ebx]
add esp, 0x8
cmp al, 0x5C
jz 0xA
cmp al, 0x2F
jnz 0xBA
push 0x1
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x14], st
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x20], st
push 0x3
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x2C], st
push 0x4
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x38], st
fld st, dword ptr [esp+0x2C]
add esp, 0x20
fstp dword ptr [esp+0x1C], st
push 0x8
fld st, dword ptr [esp+0x14]
push ecx
fstp dword ptr [esp+0x28], st
lea ecx, ptr [esp+0x24]
fld st, dword ptr [esp+0x1C]
fstp dword ptr [esp+0x2C], st
fld st, dword ptr [esp+0x20]
fstp dword ptr [esp], st
push ecx
push edi
call 0x4607A0
mov edi, eax
add esp, 0x10
test edi, edi
jz 0x4D
mov dl, byte ptr [edi+0x108]
and dl, 0x7
cmp dl, 0x6
jnz 0x3F
mov ecx, edi
call 0x4ED940
push 0x6
push esi
call LuaParam::GetBool
add esp, 0x8
lea ecx, ptr [edi+0x128]
push eax
push ebx
call 0x5F3D50
mov byte ptr [esp+0x18], al
mov eax, dword ptr [esp+0x18]
push eax
push esi
call LuaParam::PushBool
add esp, 0x8
pop edi
pop esi
mov eax, 0x1
pop ebx
add esp, 0x1C
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1C
ret
elseif PAnimExists(TRIGGER._FUNTEETH) and PAnimIsPlayingNode(TRIGGER._FUNTEETH, "Closed") then
sub esp, 0x8
push esi
push edi
mov edi, dword ptr [esp+0x14]
lea eax, ptr [esp+0x8]
push eax
push 0x1
push edi
mov byte ptr [esp+0x18], 0x0
mov dword ptr [esp+0x14], 0xFFFFFFFF
call 0x5C4570
mov esi, eax
add esp, 0xC
test esi, esi
jz 0x3D
mov cl, byte ptr [esi+0x108]
and cl, 0x7
cmp cl, 0x6
jnz 0x2F
mov edx, dword ptr [esp+0x8]
push ebx
push edx
push edi
call LuaParam::GetString
add esp, 0x8
mov ecx, esi
mov ebx, eax
call 0x4ED940
push 0x1
push 0x1
push ebx
lea ecx, ptr [esi+0x128]
call 0x5F49A0
mov byte ptr [esp+0x10], al
pop ebx
mov eax, dword ptr [esp+0xC]
push eax
push edi
call LuaParam::PushBool
add esp, 0x8
pop edi
mov eax, 0x1
pop esi
add esp, 0x8
ret
if not prop.used and (prop.bGeo == nil or prop.bGeo == false) and PAnimIsUsed(prop.id) then
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, 0x20C7E98
call 0x6D7B10
test eax, eax
jz 0x1D
cmp dword ptr [eax+0x170], 0x0
setnz al
push eax
push esi
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
pop esi
ret
xor al, al
push eax
push esi
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
pop esi
ret
PAnimMakeTargetable("OBSMotor", -692.507, 64.7766, 29.291, false)
PAnimMakeTargetable("OBSMotor", -692.507, 64.7766, 29.291, true)
PAnimMakeTargetable("OBSMotor", -692.547, 86.2075, 29.2906, false)
PAnimMakeTargetable("OBSMotor", -692.547, 86.2075, 29.2906, true)
PAnimMakeTargetable("OBSMotor", -700.087, 64.7677, 29.291, false)
PAnimMakeTargetable("OBSMotor", -700.087, 64.7677, 29.291, true)
PAnimMakeTargetable("OBSMotor", -700.137, 86.2676, 29.2188, false)
PAnimMakeTargetable("OBSMotor", -700.137, 86.2676, 29.2188, true)
PAnimMakeTargetable("OBSMotor", -706.986, 71.6268, 29.291, false)
PAnimMakeTargetable("OBSMotor", -706.986, 71.6268, 29.291, true)
PAnimMakeTargetable("OBSMotor", -706.995, 79.206, 29.291, false)
PAnimMakeTargetable("OBSMotor", -706.995, 79.206, 29.291, true)
PAnimMakeTargetable(anim, false)
PAnimMakeTargetable(Benches[i].trigger, false)
PAnimMakeTargetable(Benches[i].trigger2, false)
PAnimMakeTargetable(e.id, false)
PAnimMakeTargetable(gBonusTrigger, false)
PAnimMakeTargetable(item.name, item.x, item.y, item.z, true)
PAnimMakeTargetable(mailbox.id, false)
PAnimMakeTargetable(mailbox.id, true)
PAnimMakeTargetable(TRIGGER._1_03_BARELLAD, false)
PAnimMakeTargetable(TRIGGER._2_08_PLANTTARGET, false)
PAnimMakeTargetable(TRIGGER._4_02_BAR_01, false)
PAnimMakeTargetable(TRIGGER._4_02_BAR_02, false)
PAnimMakeTargetable(TRIGGER._4_02_BAR_03, false)
PAnimMakeTargetable(TRIGGER._BONUSTARGET, false)
PAnimMakeTargetable(TRIGGER._DRBRACE, false)
PAnimMakeTargetable(TRIGGER._DRBRACE, true)
PAnimMakeTargetable(TRIGGER._DRBRACE01, false)
PAnimMakeTargetable(TRIGGER._DRBRACE01, true)
PAnimMakeTargetable(TRIGGER._DT_OBSERVATORY, false)
PAnimMakeTargetable(TRIGGER._DT_OBSERVATORY, true)
PAnimMakeTargetable(TRIGGER._SMALLCRATE2, false)
PAnimMakeTargetable(TRIGGER._TBARRELS_SBARELS1, false)
push ecx
push esi
push edi
mov edi, dword ptr [esp+0x10]
lea eax, ptr [esp+0x8]
push eax
push 0x1
push edi
mov dword ptr [esp+0x14], 0xFFFFFFFF
call 0x5C4570
mov esi, eax
add esp, 0xC
test esi, esi
jz 0x1D
mov ecx, dword ptr [esp+0x8]
push ecx
push edi
call LuaParam::GetBool
add esp, 0x8
neg al
sbb eax, eax
add eax, 0x1
mov dword ptr [esi+0xC0], eax
pop edi
xor eax, eax
pop esi
pop ecx
ret
PAnimMakeVisuallyTargetable(anim, true)
PAnimMakeVisuallyTargetable(gBonusTrigger, true)
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, 0x20C7E98
call 0x6D7B10
mov esi, eax
test esi, esi
jz 0x1A
push 0x1
push edi
call LuaParam::GetBool
add esp, 0x8
neg al
sbb eax, eax
add eax, 0x1
mov dword ptr [esi+0xF8], eax
pop edi
xor eax, eax
pop esi
ret
PAnimModelNeeded(gRideId)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x8
test eax, eax
jnl 0x6
xor ecx, ecx
jmp 0x1D
mov edx, dword ptr [0x20C7C48]
mov ecx, dword ptr [edx+0x4]
test byte ptr [eax+ecx*1], 0x80
jz 0x6
xor ecx, ecx
jmp 0xA
mov ecx, dword ptr [edx+0xC]
imul ecx, eax
add ecx, dword ptr [edx]
mov edx, dword ptr [ecx+0x20]
push esi
mov esi, dword ptr [edx+0x10]
cmp esi, 0xFFFFFFFF
jz 0x1D
push esi
call 0x52E720
add esp, 0x4
push esi
mov ecx, 0xD02850
call 0x5DB940
mov ecx, eax
call 0x5D9450
xor eax, eax
pop esi
ret
if not gPlayerBrokeStuff and (PAnimNumDestroyed(gDestroyAreaTrigger) > 0 or PedHasAggressed(gPlayer)) then
if not gTrophySetup and (PlayerIsInTrigger(TRIGGER._1_S01_TROPHYSETUP) or PAnimNumDestroyed(TRIGGER._1_S01_GLASS) > 0) then
if not shared.g3_R09_N and not gPlayerBrokeStuff and (PAnimNumDestroyed(gAreaTrigger) > 0 or PedHasAggressed(gPlayer)) then
if not trophy_bottle and PAnimNumDestroyed(TRIGGER._1_S01_GLASS) > 0 then
if PAnimNumDestroyed(TRIGGER._1_S01_GLASS) > 0 then
if PAnimNumDestroyed(TRIGGER._2_S02_HATTRICKYARD) >= 0 then
NewBreakablesBrokenEvent = PAnimNumDestroyed(TRIGGER._2_S02_HATTRICKYARD)
sub esp, 0x1C
push ebx
push ebp
mov ebp, dword ptr [esp+0x28]
push esi
push edi
push 0x0
push ebp
call LuaParam::GetInt
push ebp
mov esi, eax
or ebx, 0xFFFFFFFF
call 0x73AEA0
add esp, 0xC
cmp eax, 0x2
jnz 0x1C
push 0x1
push ebp
call LuaParam::GetString
add esp, 0x8
test eax, eax
jz 0xD
push eax
call 0x51C330
add esp, 0x4
mov ebx, eax
test esi, esi
jnl 0x6
xor edi, edi
jmp 0x1F
mov ecx, dword ptr [0x20C7C48]
mov eax, dword ptr [ecx+0x4]
test byte ptr [esi+eax*1], 0x80
jz 0x6
xor eax, eax
jmp 0xA
mov eax, dword ptr [ecx+0xC]
imul eax, esi
add eax, dword ptr [ecx]
mov edi, eax
lea ecx, ptr [esp+0x18]
push ecx
mov ecx, edi
call 0x6D6F10
lea edx, ptr [esp+0x18]
push edx
mov ecx, edi
call 0x6D6F40
fstp dword ptr [esp+0x14], st
fld st, dword ptr [esp+0x18]
push 0x409
fstp dword ptr [esp+0x24], st
push 0xC1AA80
fld st, dword ptr [esp+0x24]
push 0xFA
fstp dword ptr [esp+0x30], st
lea eax, ptr [esp+0x1C]
fldz
push eax
push ecx
fstp dword ptr [esp+0x3C], st
fld st, dword ptr [esp+0x28]
lea ecx, ptr [esp+0x34]
fstp dword ptr [esp], st
mov dword ptr [esp+0x24], 0xFFFFFFFF
push ecx
push ebx
call 0x45E0D0
xor esi, esi
add esp, 0x1C
xor ebx, ebx
cmp word ptr [esp+0x10], si
jle 0x45
mov ecx, dword ptr [esi*4+0xC1AA80]
mov edx, dword ptr [ecx]
mov eax, dword ptr [edx+0x78]
call 0x5C4C32
test al, al
jz 0x27
mov eax, dword ptr [esi*4+0xC1AA80]
mov ecx, dword ptr [eax+0x14]
test ecx, ecx
jz 0x7
lea eax, ptr [ecx+0x30]
jmp 0x5
add eax, 0x4
push eax
mov ecx, edi
call 0x6D6FA0
test al, al
jz 0x5
add ebx, 0x1
movsx ecx, word ptr [esp+0x10]
add esi, 0x1
cmp esi, ecx
jl 0xFFFFFFBF
push ebx
push ebp
call LuaParam::PushInt
add esp, 0x8
pop edi
pop esi
pop ebp
mov eax, 0x1
pop ebx
add esp, 0x1C
ret
PAnimOpenDoor(door)
PAnimOpenDoor(tblEntry.idDoor)
PAnimOpenDoor(tblEntry.idDoor2)
PAnimOpenDoor(TRIGGER._4_05CUT_FAKEDOOR)
PAnimOpenDoor(TRIGGER._5_B_CHEM_DOOR)
PAnimOpenDoor(TRIGGER._5_B_CHEM_DOOR_2)
PAnimOpenDoor(TRIGGER._ASYDOORS12)
PAnimOpenDoor(TRIGGER._ASYDOORS13)
PAnimOpenDoor(TRIGGER._ASYDOORS14)
PAnimOpenDoor(TRIGGER._ASYDOORS15)
PAnimOpenDoor(TRIGGER._BUSDOORS)
PAnimOpenDoor(TRIGGER._CELLDOOR12)
PAnimOpenDoor(TRIGGER._CELLDOOR17)
PAnimOpenDoor(TRIGGER._CELLDOOR18)
PAnimOpenDoor(TRIGGER._CELLDOOR19)
PAnimOpenDoor(TRIGGER._CELLDOOR20)
PAnimOpenDoor(TRIGGER._CELLDOOR21)
PAnimOpenDoor(TRIGGER._DOOR_PREPHOUSE_FOYER)
PAnimOpenDoor(TRIGGER._DOOR_PREPHOUSE_STAIRS)
PAnimOpenDoor(TRIGGER._DT_LIBRARYEXITR)
PAnimOpenDoor(TRIGGER._FMDOOR)
PAnimOpenDoor(TRIGGER._FMDOOR07)
PAnimOpenDoor(TRIGGER._FMDOOR08)
PAnimOpenDoor(TRIGGER._FMDOORN)
PAnimOpenDoor(TRIGGER._FMDOORN01)
PAnimOpenDoor(TRIGGER._FUNTEETH)
PAnimOpenDoor(TRIGGER._GDORM_UPPERDOOR)
PAnimOpenDoor(TRIGGER._HATTRICK_GATE)
PAnimOpenDoor(TRIGGER._IBOXING_ESCDOORL)
PAnimOpenDoor(TRIGGER._IBOXING_ESCDOORL01)
PAnimOpenDoor(TRIGGER._IBOXING_ESCDOORR)
PAnimOpenDoor(TRIGGER._IBOXING_ESCDOORR01)
PAnimOpenDoor(TRIGGER._ICOMSHP_BASEMENT)
PAnimOpenDoor(TRIGGER._JANDOORS00)
PAnimOpenDoor(TRIGGER._JANDOORS01)
PAnimOpenDoor(TRIGGER._JANDOORS02)
PAnimOpenDoor(TRIGGER._JANDOORS03B)
PAnimOpenDoor(TRIGGER._NERDPATH_BRDOOR)
PAnimOpenDoor(TRIGGER._SCGATE_OBSERVATORY)
PAnimOpenDoor(TRIGGER._STALDOOR01)
PAnimOpenDoor(TRIGGER._STALDOOR02)
PAnimOpenDoor(TRIGGER._STALDOOR06)
PAnimOpenDoor(TRIGGER._STALDOOR07)
PAnimOpenDoor(TRIGGER._STALDOOR11)
PAnimOpenDoor(TRIGGER._TRICH_TADGATES01)
PAnimOpenDoor(TRIGGER._TSCHOOL_FRONTGATE)
PAnimOpenDoor(TRIGGER._TSCHOOL_PARKINGGATE)
push ecx
mov ecx, dword ptr [esp+0x8]
lea eax, ptr [esp]
push eax
push 0x0
push ecx
call 0x5C4570
add esp, 0xC
test eax, eax
jz 0xF
push 0x0
push 0x0
push 0x0
mov ecx, eax
call 0x4EED10
xor eax, eax
pop ecx
ret
-- never used
push ecx
mov ecx, dword ptr [esp+0x8]
lea eax, ptr [esp]
push eax
push 0x0
push ecx
call 0x5C4570
add esp, 0xC
test eax, eax
jz 0xF
push 0x1
push 0x0
push 0x0
mov ecx, eax
call 0x4EED10
xor eax, eax
pop ecx
ret
PAnimOpenDoors(x, y, z, 0, "StalDoor")
PAnimOpenDoors(x, y, z, 2)
sub esp, 0x40
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x50]
push edi
push 0x0
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x30], st
push 0x1
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x34], st
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x38], st
fld st, dword ptr [esp+0x40]
push esi
fstp dword ptr [esp+0x54], st
mov dword ptr [esp+0x34], 0xFFFFFFFF
fld st, dword ptr [esp+0x40]
fstp dword ptr [esp+0x58], st
fld st, dword ptr [esp+0x3C]
fstp dword ptr [esp+0x5C], st
fldz
fstp dword ptr [esp+0x2C], st
call LuaParam::GetParamCount
add esp, 0x1C
cmp eax, 0x4
jl 0x11
push 0x3
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x18], st
add esp, 0x8
push esi
call LuaParam::GetParamCount
add esp, 0x4
cmp eax, 0x5
jl 0x17
push 0x4
push esi
call LuaParam::GetString
push eax
call 0x51C330
add esp, 0xC
mov dword ptr [esp+0x18], eax
fld st, dword ptr [0x8FF34C]
mov dword ptr [esp+0x28], 0x0
fstp dword ptr [esp+0x1C], st
fld st, dword ptr [esp+0x38]
fld st, st(0)
fld st, dword ptr [esp+0x10]
fld st, st(0)
faddp st(2), st
fxch st, st(1)
fstp dword ptr [esp+0x30], st
fld st, dword ptr [esp+0x3C]
fld st, st(0)
fsub st, st(2)
fstp dword ptr [esp+0x2C], st
fadd st, st(1)
fstp dword ptr [esp+0x34], st
fsubp st(1), st
fstp dword ptr [esp+0x24], st
fld st, dword ptr [esp+0x24]
fld st, qword ptr [0x900AA0]
fdiv st(1), st
fld st, qword ptr [0x900A98]
fadd st(2), st
fxch st, st(2)
call 0x85C720
mov dword ptr [esp+0x24], eax
fild st, dword ptr [esp+0x24]
fstp dword ptr [esp+0x24], st
fldz
fld st, dword ptr [esp+0x24]
fcom st, st(1)
fnstsw ax
test ah, 0x41
jnz 0x8
fstp dword ptr [esp+0x14], st
jmp 0x8
fstp st(0), st
fst dword ptr [esp+0x14], st
fld st, dword ptr [esp+0x14]
call 0x85C720
fld st, dword ptr [esp+0x2C]
fdiv st, st(2)
mov ebp, eax
mov dword ptr [esp+0x20], ebp
fadd st, st(3)
call 0x85C720
mov dword ptr [esp+0x2C], eax
fild st, dword ptr [esp+0x2C]
fstp dword ptr [esp+0x2C], st
fld st, dword ptr [esp+0x2C]
fcom st, st(1)
fnstsw ax
test ah, 0x41
jnz 0x6
fstp st(1), st
jmp 0x4
fstp st(0), st
fstp dword ptr [esp+0x14], st
fld st, dword ptr [esp+0x14]
call 0x85C720
fld st, dword ptr [esp+0x30]
fdiv st, st(1)
mov edi, eax
fadd st, st(2)
call 0x85C720
mov dword ptr [esp+0x30], eax
fild st, dword ptr [esp+0x30]
fstp dword ptr [esp+0x30], st
fld st, dword ptr [0x900A94]
fld st, dword ptr [esp+0x30]
fcom st, st(1)
fnstsw ax
test ah, 0x5
jp 0x8
fstp dword ptr [esp+0x14], st
jmp 0x8
fstp st(0), st
fst dword ptr [esp+0x14], st
fld st, dword ptr [esp+0x14]
call 0x85C720
fld st, dword ptr [esp+0x34]
fdivrp st(2), st
mov ebx, eax
mov dword ptr [esp+0x30], ebx
fxch st, st(1)
faddp st(2), st
fxch st, st(1)
call 0x85C720
mov dword ptr [esp+0x34], eax
fild st, dword ptr [esp+0x34]
fstp dword ptr [esp+0x34], st
fld st, dword ptr [esp+0x34]
fcom st, st(1)
fnstsw ax
test ah, 0x5
jp 0x6
fstp st(1), st
jmp 0x4
fstp st(0), st
fstp dword ptr [esp+0x14], st
fld st, dword ptr [esp+0x14]
call 0x85C720
cmp word ptr [0xC1AE88], 0xFFFF
mov esi, eax
jnb 0xC
add word ptr [0xC1AE88], 0x1
jmp 0x10
call 0x45D840
mov word ptr [0xC1AE88], 0x1
cmp edi, esi
jnle 0x19F
lea eax, ptr [edi+edi*8]
lea eax, ptr [ebp+eax*4]
lea ecx, ptr [eax+eax*4]
sub esi, edi
lea edx, ptr [ecx*4+0xC1B17C]
add esi, 0x1
mov dword ptr [esp+0x14], edx
mov dword ptr [esp+0x24], esi
mov edi, edi
cmp ebp, ebx
jnle 0x164
sub ebx, dword ptr [esp+0x20]
mov ebp, dword ptr [esp+0x14]
add ebx, 0x1
mov edi, dword ptr [ebp]
test edi, edi
jz 0x13A
mov edi, edi
mov eax, dword ptr [edi]
mov ecx, eax
shr ecx, 0x4
and ecx, 0x3FFF
push ecx
and eax, 0xF
push eax
call 0x44A3E0
mov esi, eax
mov eax, dword ptr [edi]
shr eax, 0x12
add esp, 0x8
cmp eax, 0x3FFF
jnz 0x6
xor edi, edi
jmp 0xB
mov edx, dword ptr [0xC0F788]
lea edi, ptr [edx+eax*4]
mov eax, dword ptr [esp+0x18]
cmp eax, 0xFFFFFFFF
jz 0x11
movsx ecx, word ptr [esi+0x10E]
cmp eax, ecx
jnz 0xE3
mov dx, word ptr [esi+0x10A]
cmp dx, word ptr [0xC1AE88]
jz 0xCF
mov al, byte ptr [esi+0x108]
and al, 0x7
cmp al, 0x6
jnz 0xBF
movsx ecx, word ptr [esi+0x10E]
mov ecx, dword ptr [ecx*4+0xC67738]
call 0x520440
test al, al
jz 0xA4
mov eax, dword ptr [esi+0x14]
test eax, eax
mov dx, word ptr [0xC1AE88]
mov word ptr [esi+0x10A], dx
jz 0x7
add eax, 0x30
jmp 0x5
lea eax, ptr [esi+0x4]
lea ecx, ptr [esp+0x38]
push ecx
push eax
lea edx, ptr [esp+0x4C]
push edx
call 0x414B70
fld st, dword ptr [eax+0x4]
fld st, dword ptr [eax]
add esp, 0xC
fld st, dword ptr [eax+0x8]
fld st, st(1)
fmulp st(2), st
fld st, st(2)
fmulp st(3), st
fxch st, st(1)
faddp st(2), st
fmul st(0), st
faddp st(1), st
fstp dword ptr [esp+0x34], st
fld st, dword ptr [esp+0x34]
fabs
fstp dword ptr [esp+0x34], st
fld st, dword ptr [esp+0x34]
call 0x85C500
fstp dword ptr [esp+0x34], st
fld st, dword ptr [esp+0x34]
fstp dword ptr [esp+0x34], st
fld st, dword ptr [esp+0x34]
fld st, dword ptr [esp+0x1C]
fcomp st, st(1)
fnstsw ax
test ah, 0x41
jnz 0xA
fst dword ptr [esp+0x1C], st
mov dword ptr [esp+0x28], esi
fld st, dword ptr [esp+0x10]
fcompp
fnstsw ax
test ah, 0x41
jnz 0xF
push 0x0
push 0x0
push 0x0
mov ecx, esi
call 0x4EED10
test edi, edi
jnz 0xFFFFFED4
add ebp, 0x14
sub ebx, 0x1
jnz 0xFFFFFEBB
mov ebp, dword ptr [esp+0x20]
mov ebx, dword ptr [esp+0x30]
add dword ptr [esp+0x14], 0x2D0
sub dword ptr [esp+0x24], 0x1
jnz 0xFFFFFE8D
fldz
pop edi
fcomp st, dword ptr [esp+0xC]
pop esi
pop ebp
pop ebx
fnstsw ax
test ah, 0x44
jp 0x15
mov ecx, dword ptr [esp+0x18]
test ecx, ecx
jz 0xD
push 0x0
push 0x0
push 0x0
call 0x4EED10
xor eax, eax
add esp, 0x40
ret
PAnimOverrideDamage(anim, 1)
PAnimOverrideDamage(gBonusTrigger, 1)
PAnimOverrideDamage(prop.id, prop.hp)
PAnimOverrideDamage(TRIGGER._4_03_BAR_05_01, 500)
PAnimOverrideDamage(TRIGGER._4_03_BAR_05_02, 500)
PAnimOverrideDamage(TRIGGER._DT_OBSERVATORY, 1200)
PAnimOverrideDamage(TRIGGER._DT_OBSERVATORY, 180)
PAnimOverrideDamage(TRIGGER._DT_OBSERVATORY, 300)
PAnimOverrideDamage(TRIGGER._DUNKBTTN, 500)
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, 0x20C7E98
call 0x6D7B10
mov esi, eax
test esi, esi
jz 0x14
push 0x1
push edi
call LuaParam::GetInt
add esp, 0x8
mov word ptr [esi+0x120], ax
pop edi
xor eax, eax
pop esi
ret
-- never used
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, 0x20C7E98
call 0x6D7B10
mov esi, eax
test esi, esi
jz 0x14
push 0x1
push edi
call LuaParam::GetInt
add esp, 0x8
mov word ptr [esi+0x122], ax
pop edi
xor eax, eax
pop esi
ret
if not PAnimRequest(anim) then
PAnimRequest(TRIGGER._4_06_DUFFLE_BAG)
PAnimRequest(TRIGGER._4_06_HACK_SWITCH)
while not (AreaGetVisible() ~= 0 or PAnimRequest(trash.trigger)) do
while not PAnimRequest(prop.trigger) do
while not PAnimRequest(TRIGGER._4_02_OBSDOOR) do
while not PAnimRequest(TRIGGER._5_09_CITYHALL_TAG) do
while not PAnimRequest(TRIGGER._BUS_BUS) do
while not PAnimRequest(TRIGGER._DT_OBSERVATORY) do
while not PAnimRequest(TRIGGER._TINDUST_BAR_DOOR_01) do
while not PAnimRequest(TRIGGER._TINDUST_BAR_DOOR_02) do
while not PAnimRequest(TRIGGER._TINDUST_BAR_DOOR_03) do
push ecx
push ebp
mov ebp, dword ptr [esp+0xC]
push esi
push 0x0
push ebp
call LuaParam::GetInt
add esp, 0x8
test eax, eax
jnl 0x6
xor ecx, ecx
jmp 0x1D
mov edx, dword ptr [0x20C7C48]
mov ecx, dword ptr [edx+0x4]
test byte ptr [eax+ecx*1], 0x80
jz 0x6
xor ecx, ecx
jmp 0xA
mov ecx, dword ptr [edx+0xC]
imul ecx, eax
add ecx, dword ptr [edx]
mov edx, dword ptr [ecx+0x20]
mov esi, dword ptr [edx+0x10]
cmp esi, 0xFFFFFFFF
jnz 0x14
push 0x1
push ebp
call LuaParam::PushBool
add esp, 0x8
lea eax, ptr [esi+0x2]
pop esi
pop ebp
pop ecx
ret
push edi
mov edi, dword ptr [esi*4+0xC67738]
push esi
mov byte ptr [esp+0x10], 0x1
call 0x52DD30
add esp, 0x4
cmp byte ptr [eax+0x4], 0x1
jz 0x7
push 0x1E
push esi
jmp 0x3C
mov eax, dword ptr [edi+0xC]
test eax, eax
jz 0x42
movzx eax, word ptr [eax+0x30]
test ax, ax
jz 0x39
movzx eax, ax
movzx eax, ax
add eax, 0x56B8
push eax
call 0x52DD30
add esp, 0x4
cmp byte ptr [eax+0x4], 0x1
jz 0x1F
mov ecx, dword ptr [edi+0xC]
movzx edx, word ptr [ecx+0x30]
push 0x16
add edx, 0x56B8
push edx
call 0x532020
mov byte ptr [esp+0x14], 0x0
add esp, 0x8
push esi
mov ecx, 0xD02850
call 0x5DB940
mov ecx, eax
call 0x5D9450
mov eax, dword ptr [esp+0xC]
push eax
push ebp
call LuaParam::PushBool
add esp, 0x8
pop edi
pop esi
mov eax, 0x1
pop ebp
pop ecx
ret
PAnimReset("Scaffold", 178.173, -73.1613, 30.5194)
PAnimReset("Scaffold", 178.173, -73.1613, 35.2763)
PAnimReset("Scaffold", 178.173, -73.1613, 40.1403)
PAnimReset("SCBell", 186.275, -71.1643, 46.4597)
PAnimReset("SCBell", 186.275, -73.4447, 46.4597)
PAnimReset("SCBell", 191.725, -73.4447, 46.4597)
PAnimReset("SCBell", 191.725, -75.7203, 46.4597)
PAnimReset("SCBell", 197.159, -75.7203, 46.4597)
PAnimReset("SCBell2", 186.275, -75.7203, 46.4597)
PAnimReset("SCBell2", 191.725, -71.1643, 46.4597)
PAnimReset("SCBell2", 197.159, -71.1643, 46.4597)
PAnimReset("SCBell2", 197.159, -73.4447, 46.4597)
PAnimReset("WheelBrl", 183.545, -80.2706, 41.078)
PAnimReset("WheelBrl", 204.582, -68.0396, 35.6995)
PAnimReset(prop.id)
PAnimReset(tblEntry.propTrigger)
PAnimReset(trigger)
PAnimReset(TRIGGER._HSDINGER)
PAnimReset(triggerId)
push ecx
mov ecx, dword ptr [esp+0x8]
lea eax, ptr [esp]
push eax
push 0x0
push ecx
call 0x5C4570
add esp, 0xC
test eax, eax
jz 0x9
mov ecx, eax
call 0x4EF570
xor eax, eax
pop ecx
ret
PAnimResetAllDamageable()
PAnimResetAllDamageable(true)
push ecx
mov eax, dword ptr [0xC0F608]
push ebx
push ebp
mov ebp, dword ptr [0xC0F614]
push esi
push edi
mov ecx, ebp
mov dword ptr [esp+0x10], eax
xor edi, edi
call 0x435BB0
test eax, eax
jle 0x5A
mov eax, dword ptr [ebp+0x8]
xor esi, esi
cmp edi, eax
jl 0x19
mov ecx, dword ptr [ebp+0x10]
test ecx, ecx
jz 0x1B
mov edx, edi
push 0x1
sub edx, eax
push edx
call 0x435BD0
mov esi, eax
jmp 0xB
mov esi, dword ptr [ebp+0xC]
imul esi, edi
add esi, dword ptr [ebp]
mov eax, dword ptr [ebp+0x4]
test byte ptr [edi+eax*1], 0x80
jnz 0x1A
test esi, esi
jz 0x16
mov edx, dword ptr [esi]
mov eax, dword ptr [edx+0x7C]
mov ecx, esi
call 0x5C4DD0
test al, al
jz 0x9
mov ecx, esi
call 0x4CFCE0
mov ecx, ebp
add edi, 0x1
call 0x435BB0
cmp edi, eax
jl 0xFFFFFFAA
mov esi, dword ptr [esp+0x18]
push esi
xor bl, bl
call LuaParam::GetParamCount
add esp, 0x4
cmp eax, 0x1
jnz 0xF
push 0x0
push esi
call LuaParam::GetBool
add esp, 0x8
mov bl, al
mov ebp, dword ptr [esp+0x10]
xor edi, edi
cmp dword ptr [ebp+0x8], edi
jle 0x44
mov ecx, dword ptr [ebp+0x4]
test byte ptr [edi+ecx*1], 0x80
jnz 0x33
mov esi, dword ptr [ebp+0xC]
imul esi, edi
add esi, dword ptr [ebp]
jz 0x28
mov edx, dword ptr [esi]
mov eax, dword ptr [edx+0x7C]
mov ecx, esi
call 0x5C4E32
test al, al
jnz 0x6
test bl, bl
jz 0x17
mov ecx, esi
call 0x4EF570
test bl, bl
jz 0xC
mov dword ptr [esi+0xD0], 0x0
add edi, 0x1
cmp edi, dword ptr [ebp+0x8]
jl 0xFFFFFFC0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
PAnimRotate("RoundHStrain", -2.35955, -398.84, 2.36308, -64, -20)
PAnimRotate("RoundHStrain", -2.35955, -398.84, 2.36308, 64, -20)
PAnimRotate("RoundHStrain", -2.35955, -398.84, 2.36308, 64, 20)
PAnimRotate(TRIGGER._BUS_BUS, rotate, rotate)
sub esp, 0x8
push ebx
push edi
mov edi, dword ptr [esp+0x14]
lea eax, ptr [esp+0x8]
push eax
push 0x2
push edi
mov dword ptr [esp+0x14], 0xFFFFFFFF
call 0x5C4570
mov ebx, eax
add esp, 0xC
test ebx, ebx
jz 0x40
push esi
mov esi, dword ptr [esp+0xC]
mov eax, esi
push eax
push edi
add esi, 0x1
call LuaParam::GetFloat
fstp dword ptr [esp+0x18], st
push esi
push edi
call LuaParam::GetFloat
fstp dword ptr [esp+0x1C], st
fld st, dword ptr [esp+0x1C]
add esp, 0x8
fstp dword ptr [esp+0x4], st
mov ecx, 0xD13730
fld st, dword ptr [esp+0x18]
fstp dword ptr [esp], st
push ebx
call 0x5EC180
pop esi
pop edi
xor eax, eax
pop ebx
add esp, 0x8
ret
PAnimSetActionNode("BarrGate", 150.232, -483.16, 2.05389, 125, "/Global/5_07a/NIS/Gate/GateExplodes", "Act/Conv/5_07a.act")
PAnimSetActionNode("BarrGate", 150.232, -483.16, 2.05389, 125, "/Global/5_07a/NIS/Gate/GateStanding", "Act/Conv/5_07a.act")
PAnimSetActionNode("PortaPoo", 483.007, 267.632, 19.8585, 2, "/Global/StealthDoor/Falldown", "Act/Props/StealthDoor.act")
PAnimSetActionNode("PortaPoo", 483.007, 267.632, 19.8585, 2, "/Global/StealthDoor/Mission505/Idle", "Act/Props/StealthDoor.act")
PAnimSetActionNode("PortaPoo", entry.x, entry.y, entry.z, 2, "/Global/StealthDoor", false)
PAnimSetActionNode("pxDormTV", -691.518, 356.414, 3.30094, 125, "/Global/DormTV/On/PlayShow", "Act/Props/DormTV.act")
PAnimSetActionNode("pxLad3M", -725.666, -400.031, 9.59475, 0.1, "/Global/Ladder/NotUseable", "Act/Props/Ladder.act")
PAnimSetActionNode("pxLad3M", -761.738, -449.879, 15.1089, 0.1, "/Global/Ladder/NotUseable", "Act/Props/Ladder.act")
PAnimSetActionNode("SBikeGar", 302.107, -421.098, 2.92139, 5, "/Global/Door/DoorFunctions/Closing/BIKEGAR", "Act/Props/Door.act")
PAnimSetActionNode("SBikeGar", 302.107, -421.098, 2.92139, 5, "/Global/Door/DoorFunctions/Opening/BIKEGAR", "Act/Props/Door.act")
PAnimSetActionNode("SCBell", 186.275, -71.1643, 46.4597, 1, "/Global/SCBELL/Idle/DoDamage", "Act/Props/SCBell.act")
PAnimSetActionNode("SCBell", 186.275, -71.1643, 46.4597, 1, "/Global/SCBELL/Idle/IdleAnimationChooser/animstart9", "Act/Props/SCBell.act")
PAnimSetActionNode("SCBell", 186.275, -73.4447, 46.4597, 1, "/Global/SCBELL/Idle/DoDamage", "Act/Props/SCBell.act")
PAnimSetActionNode("SCBell", 186.275, -73.4447, 46.4597, 1, "/Global/SCBELL/Idle/IdleAnimationChooser/animstart8", "Act/Props/SCBell.act")
PAnimSetActionNode("SCBell", 191.725, -73.4447, 46.4597, 1, "/Global/SCBELL/Idle/DoDamage", "Act/Props/SCBell.act")
PAnimSetActionNode("SCBell", 191.725, -73.4447, 46.4597, 1, "/Global/SCBELL/Idle/IdleAnimationChooser/animstart5", "Act/Props/SCBell.act")
PAnimSetActionNode("SCBell", 191.725, -75.7203, 46.4597, 1, "/Global/SCBELL/Idle/DoDamage", "Act/Props/SCBell.act")
PAnimSetActionNode("SCBell", 191.725, -75.7203, 46.4597, 1, "/Global/SCBELL/Idle/IdleAnimationChooser/animstart4", "Act/Props/SCBell.act")
PAnimSetActionNode("SCBell", 197.159, -75.7203, 46.4597, 1, "/Global/SCBELL/Idle/DoDamage", "Act/Props/SCBell.act")
PAnimSetActionNode("SCBell", 197.159, -75.7203, 46.4597, 1, "/Global/SCBELL/Idle/IdleAnimationChooser/animstart1", "Act/Props/SCBell.act")
PAnimSetActionNode("SCBell2", 186.275, -75.7203, 46.4597, 1, "/Global/SCBELL/Idle/IdleAnimationChooser/animstart7", "Act/Props/SCBell.act")
PAnimSetActionNode("SCBell2", 191.725, -71.1643, 46.4597, 1, "/Global/SCBELL/Idle/IdleAnimationChooser/animstart6", "Act/Props/SCBell.act")
PAnimSetActionNode("SCBell2", 197.159, -71.1643, 46.4597, 1, "/Global/SCBELL/Idle/IdleAnimationChooser/animstart3", "Act/Props/SCBell.act")
PAnimSetActionNode("SCBell2", 197.159, -73.4447, 46.4597, 1, "/Global/SCBELL/Idle/IdleAnimationChooser/animstart2", "Act/Props/SCBell.act")
PAnimSetActionNode("tbusines_pxSink", 553.77, -76.201, 12.5949, 2, "/Global/WaterFaucet/Off", "Act/Props/WaterFaucet.act")
PAnimSetActionNode(Benches[i].trigger, "/Global/GlueBench/NotUseable/NoEffect", "Act/Prop/GlueBnch.act")
PAnimSetActionNode(Benches[i].trigger2, "/Global/GlueBench/NotUseable/NoEffect", "Act/Prop/GlueBnch.act")
PAnimSetActionNode(door.ID, door.closeAction, "Act/Conv/1_03.act")
PAnimSetActionNode(door.ID, door.openAction, "Act/Conv/1_03.act")
PAnimSetActionNode(entry.LockerTrig, "/Global/NLockA/Locked", "Act/Props/NLockA.act")
PAnimSetActionNode(entry.LockerTrig, "/Global/NLockA/RandomLockState", "Act/Props/NLockA.act")
PAnimSetActionNode(gLampId, "/Global/AGymLght/Damage/Fall", "Act/Props/AGymLght.act")
PAnimSetActionNode(gReapers[gCurrentReaper].reaper, "/Global/FunReapr/Oneshot", "Act/Props/FunReapr.act")
PAnimSetActionNode(gRideId, gRideActiveActionNode, gRideActionFile)
PAnimSetActionNode(gRideId, gRideResetNode, gRideActionFile)
PAnimSetActionNode(idTrigger, strNode, strFile)
PAnimSetActionNode(propId.id, "/Global/Switch/NotUseable", "Act/Props/Switch.act")
PAnimSetActionNode(shared.gPOIKidsPlayingDice[4].dice1, "/Global/AniDice/IdleDice/Idle", "Act/Props/AniDice.act")
PAnimSetActionNode(shared.gPOIKidsPlayingDice[4].dice1, "/Global/AniDice/RollDice/Roll", "Act/Props/AniDice.act")
PAnimSetActionNode(shared.gPOIKidsPlayingDice[4].dice2, "/Global/AniDice/IdleDice/Idle", "Act/Props/AniDice.act")
PAnimSetActionNode(shared.gPOIKidsPlayingDice[4].dice2, "/Global/AniDice/RollDice/Roll", "Act/Props/AniDice.act")
PAnimSetActionNode(shutter, "/Global/TadShutters/Close_StayClosed", "Act/Props/tadshud.act")
PAnimSetActionNode(tag.id, "/Global/TagSmall/NotUseable", "Act/Props/TagSmall.act")
PAnimSetActionNode(tag.id, "/Global/TagSmall/NotUseable/Tagged/VandalTag", "/Act/Props/TagSmall.act")
PAnimSetActionNode(tag.id, "/Global/TagSmall/Useable", "/Act/Props/TagSmall.act")
PAnimSetActionNode(tag.id, tag.activeNode, tag.startFile)
PAnimSetActionNode(tag.id, tag.clearNode, tag.clearFile)
PAnimSetActionNode(tag.id, tag.factionTag, "Act/Props/WBrush.act")
PAnimSetActionNode(tag.id, tag.startNode, tag.startFile)
PAnimSetActionNode(tblDoors.Garage2.ID, "/Global/1_03/ParametricDoor/POpenUp/Close/Closing/NotUseable/propClosed", "Act/Conv/1_03.act")
PAnimSetActionNode(tblDoors.Garage2.ID, openAction, "Act/Conv/1_03.act")
PAnimSetActionNode(tblEntry.idDoor, tblEntry.idCloseNode, tblEntry.idFile)
PAnimSetActionNode(tblEntry.idDoor, tblEntry.idOpenNode, tblEntry.idFile)
PAnimSetActionNode(tblProp.id, tblProp.notUseable, "Act/Props/BRSwitch.act")
PAnimSetActionNode(tree.id, "/Global/TreeFall/Damage/Fall", "Act/Props/TreeFall.act")
PAnimSetActionNode(trigger, "/Global/BRSwitch/NotUseable", "Act/Props/BRSwitch.act")
PAnimSetActionNode(TRIGGER._1_03_BARELLAD, "/Global/BarellLadder/Destroyed", "Act/Props/barrelLad.act")
PAnimSetActionNode(TRIGGER._1_07_GATE_T, "/Global/1_07/CloseGate/PropClosed", "Act/Conv/1_07.act")
PAnimSetActionNode(TRIGGER._1_07_GATE_T, "/Global/1_07/OpenGate", "Act/Conv/1_07.act")
PAnimSetActionNode(TRIGGER._1_07_GATE_T, "/Global/1_07/OpenGate/PropOpened", "Act/Conv/1_07.act")
PAnimSetActionNode(TRIGGER._1_07_GATE_T, "/Global/1_07/OpenTSGate", "Act/Conv/1_07.act")
PAnimSetActionNode(TRIGGER._1_07_GATE_T, "/Global/1_07/POpenSide/Gate/startOpen", "Act/Conv/1_07.act")
PAnimSetActionNode(TRIGGER._1_07_TOOLBOX01, "/Global/ToolBox/NotUseable", "Act/Props/ToolBox.act")
PAnimSetActionNode(TRIGGER._1_07_TOOLBOX01, "/Global/ToolBox/Useable", "Act/Props/ToolBox.act")
PAnimSetActionNode(TRIGGER._4_03_OBSDOOR, "/Global/OBSDoor/PlayOpenAnim", "Act/Props/OBSDoor.act")
PAnimSetActionNode(TRIGGER._4_06_DUFFLE_BAG, "/Global/DuffBag/NotUseable", "Act/Props/DuffBag.act")
PAnimSetActionNode(TRIGGER._4_06_DUFFLE_BAG, "/Global/DuffBag/Useable", "Act/Props/DuffBag.act")
PAnimSetActionNode(TRIGGER._4_06_HACK_SWITCH, "/Global/CtrlBx/Useable", "Act/Props/CtrlBx.act")
PAnimSetActionNode(TRIGGER._4_G4_TILTTAG1, "/Global/TagSmall/NotUseable/Tagged/Executes/SetTagDone", "Act/Props/TagSmall.act")
PAnimSetActionNode(TRIGGER._5_04_DOOR_HACK, "/Global/TreeFall/Damage/Fall", "Act/Props/TreeFall.act")
PAnimSetActionNode(TRIGGER._5_04_GYMHOOP, "/Global/GymHoop/Damage/Fall", "Act/Props/GymHoop.act")
PAnimSetActionNode(TRIGGER._5_04_GYMWALL, "/Global/GymWLad/Damage/Fall", "Act/Props/GymWLad.act")
PAnimSetActionNode(TRIGGER._5_04_GYMWALL, "/Global/GymWLad/Damage/Fall/OnGround/Useable", "Act/Props/GymWLad.act")
PAnimSetActionNode(TRIGGER._5_06_RUSSELLGATE, "/Global/RSGrDoor/GarageOpens", "Act/Props/RSGrDoor.act")
PAnimSetActionNode(TRIGGER._5_09_CITYHALL_TAG, "/Global/CityHallTag/BigTag/NotUseable/Tagged/Bull")
PAnimSetActionNode(TRIGGER._5_09_CITYHALL_TAG2, "/Global/CityHallTag/BigTag/NotUseable/Tagged/Worth")
PAnimSetActionNode(TRIGGER._5_09_CITYHALL_TAG3, "/Global/CityHallTag/BigTag/NotUseable/Tagged/Less")
PAnimSetActionNode(TRIGGER._ASYBARS, "/Global/AsyBars/Executes/CloseBreak", "Act/Props/AsyBars.act")
PAnimSetActionNode(TRIGGER._ASYBARS, "/Global/AsyBars/Executes/Open", "Act/Props/AsyBars.act")
PAnimSetActionNode(TRIGGER._ASYBARS01, "/Global/AsyBars/Executes/Close5_03", "Act/Props/AsyBars.act")
PAnimSetActionNode(TRIGGER._ASYBARS01, "/Global/AsyBars/Executes/Open", "Act/Props/AsyBars.act")
PAnimSetActionNode(TRIGGER._ASYBARS02, "/Global/AsyBars/Executes/Close5_03", "Act/Props/AsyBars.act")
PAnimSetActionNode(TRIGGER._ASYBARS02, "/Global/AsyBars/Executes/Open", "Act/Props/AsyBars.act")
PAnimSetActionNode(TRIGGER._ASYDOORB, "/Global/5_03/5_03_Crazy_Door/Door/Door_Open", "Act/Conv/5_03.act")
PAnimSetActionNode(TRIGGER._BA_BMXGARAGE, "/Global/Door/DoorFunctions/Closing/BIKEGAR", "Act/Props/Door.act")
PAnimSetActionNode(TRIGGER._BA_BMXGARAGE, "/Global/Door/DoorFunctions/Opening/BIKEGAR", "Act/Props/Door.act")
PAnimSetActionNode(TRIGGER._BIGTAG1, "/Global/CityHallTag/BigTag/NotUseable/invisible", "Act/Prop/pxTagLRG.act")
PAnimSetActionNode(TRIGGER._BIGTAG1, "/Global/CityHallTag/BigTag/Useable", "Act/Prop/pxTagLRG.act")
PAnimSetActionNode(TRIGGER._BIGTAG2, "/Global/CityHallTag/BigTag/NotUseable/invisible", "Act/Prop/pxTagLRG.act")
PAnimSetActionNode(TRIGGER._BIGTAG2, "/Global/CityHallTag/BigTag/Useable", "Act/Prop/pxTagLRG.act")
PAnimSetActionNode(TRIGGER._BIGTAG3, "/Global/CityHallTag/BigTag/NotUseable/invisible", "Act/Prop/pxTagLRG.act")
PAnimSetActionNode(TRIGGER._BIGTAG3, "/Global/CityHallTag/BigTag/Useable", "Act/Prop/pxTagLRG.act")
PAnimSetActionNode(TRIGGER._BITCHDICE, "/Global/AniDice/DiceRolled/Rolled", "Act/Props/AniDice.act")
PAnimSetActionNode(TRIGGER._BITCHDICE, "/Global/AniDice/IdleDice", "Act/Props/AniDice.act")
PAnimSetActionNode(TRIGGER._BITCHDICE, "/Global/AniDice/RollDice/Roll", "Act/Props/AniDice.act")
PAnimSetActionNode(TRIGGER._BMX_GARAGEDOOR, "/Global/Door/DoorFunctions/Closing/BIKEGAR", "Act/Props/Door.act")
PAnimSetActionNode(TRIGGER._BMX_GARAGEDOOR, "/Global/Door/DoorFunctions/Opening/BIKEGAR", "Act/Props/Door.act")
PAnimSetActionNode(TRIGGER._DRBRACE, "/Global/DRBrace/NotUseable/NotMoving", "Act/Props/DRBrace.act")
PAnimSetActionNode(TRIGGER._DRBRACE, "/Global/DRBrace/Useable", "Act/Props/DRBrace.act")
PAnimSetActionNode(TRIGGER._DRBRACE01, "/Global/DRBrace/NotUseable/NotMoving", "Act/Props/DRBrace.act")
PAnimSetActionNode(TRIGGER._DRBRACE01, "/Global/DRBrace/Useable", "Act/Props/DRBrace.act")
PAnimSetActionNode(TRIGGER._DT_OBSERVATORY, "/Global/scObsDr/Functions/Close", "/Act/Props/scObsDr.act")
PAnimSetActionNode(TRIGGER._DT_OBSERVATORY, "/Global/scObsDr/Functions/Open", "Act/Props/scObsDr.act")
PAnimSetActionNode(TRIGGER._DT_TENEMENT_WINDOW, "/Global/ExtWind/NotUseable", "Act/Props/ExtWind.act")
PAnimSetActionNode(TRIGGER._DT_TENEMENT_WINDOW, "/Global/ExtWind/Reset", "Act/Props/ExtWind.act")
PAnimSetActionNode(TRIGGER._DUNKSEAT, "/Global/DunkBench/Collapsing", "Act/Props/DunkBench.act")
PAnimSetActionNode(TRIGGER._FUNCURTN, "/Global/FunCurtn/Close", "Act/Prop/FunCurtn.act")
PAnimSetActionNode(TRIGGER._FUNCURTN, "/Global/FunCurtn/Open", "Act/Props/FunCurtn.act")
PAnimSetActionNode(TRIGGER._FUNCURTN01, "/Global/FunCurtn/Close", "Act/Prop/FunCurtn.act")
PAnimSetActionNode(TRIGGER._FUNCURTN01, "/Global/FunCurtn/Open", "Act/Props/FunCurtn.act")
PAnimSetActionNode(TRIGGER._GREASERTAG, "/Global/3_S10_Tags/TutorialTags/NotUseable/invisible", "Act/Prop/3_S10_Tags.act")
PAnimSetActionNode(TRIGGER._GREASERTAG, "/Global/3_S10_Tags/TutorialTags/Useable", "Act/Prop/3_S10_Tags.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_FLBBOOK, "/Global/FunBook/Inactive", "Act/Props/FunBook.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_FLBBOOK, "/Global/FunBook/NotUseable", "Act/Props/FunBook.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_FLBLADER, "/Global/Ladder/AnimatedLadder/NotUseable", "Act/Props/Ladder.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_FLBLADER, "/Global/Ladder/AnimatedLadder/NotUsed", "Act/Props/Ladder.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_FMTRAPDR00L, "/Global/FMTrapDr/CloseToEnd", "Act/Prop/FMTrapDr.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_FMTRAPDR00L, "/Global/FMTrapDr/CloseToEndQuick", "Act/Prop/FMTrapDr.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_FMTRAPDR00L, "/Global/FMTrapDr/OpenToEnd", "Act/Prop/FMTrapDr.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_FMTRAPDR00O, "/Global/FMTrapDr/CloseToEnd", "Act/Prop/FMTrapDr.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_FMTRAPDR00O, "/Global/FMTrapDr/OpenToEnd", "Act/Prop/FMTrapDr.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_FMTRAPDR00O, "/Global/FMTrapDr/OpenToEndQuick", "Act/Prop/FMTrapDr.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_FMTRAPDR01L, "/Global/FMTrapDr/CloseToEnd", "Act/Prop/FMTrapDr.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_FMTRAPDR01L, "/Global/FMTrapDr/CloseToEndQuick", "Act/Prop/FMTrapDr.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_FMTRAPDR01L, "/Global/FMTrapDr/OpenToEnd", "Act/Prop/FMTrapDr.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_FMTRAPDR01O, "/Global/FMTrapDr/CloseToEnd", "Act/Prop/FMTrapDr.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_FMTRAPDR01O, "/Global/FMTrapDr/OpenToEnd", "Act/Prop/FMTrapDr.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_FMTRAPDR01O, "/Global/FMTrapDr/OpenToEndQuick", "Act/Prop/FMTrapDr.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_FMTRAPDR02L, "/Global/FMTrapDr/CloseToEnd", "Act/Prop/FMTrapDr.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_FMTRAPDR02L, "/Global/FMTrapDr/CloseToEndQuick", "Act/Prop/FMTrapDr.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_FMTRAPDR02L, "/Global/FMTrapDr/OpenToEnd", "Act/Prop/FMTrapDr.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_FMTRAPDR02O, "/Global/FMTrapDr/CloseToEnd", "Act/Prop/FMTrapDr.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_FMTRAPDR02O, "/Global/FMTrapDr/OpenToEnd", "Act/Prop/FMTrapDr.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_FMTRAPDR02O, "/Global/FMTrapDr/OpenToEndQuick", "Act/Prop/FMTrapDr.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_FMTRAPDR03L, "/Global/FMTrapDr/CloseToEnd", "Act/Prop/FMTrapDr.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_FMTRAPDR03L, "/Global/FMTrapDr/CloseToEndQuick", "Act/Prop/FMTrapDr.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_FMTRAPDR03L, "/Global/FMTrapDr/OpenToEnd", "Act/Prop/FMTrapDr.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_FMTRAPDR03O, "/Global/FMTrapDr/CloseToEnd", "Act/Prop/FMTrapDr.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_FMTRAPDR03O, "/Global/FMTrapDr/OpenToEnd", "Act/Prop/FMTrapDr.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_FMTRAPDR03O, "/Global/FMTrapDr/OpenToEndQuick", "Act/Prop/FMTrapDr.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_FMTRAPSW, "/Global/Switch/Inactive", "Act/Prop/Switch.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_FMTRAPSW01, "/Global/Switch/Inactive", "Act/Prop/Switch.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_FMTRAPSW01B, "/Global/Switch/Inactive", "Act/Prop/Switch.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_FMTRAPSW02, "/Global/Switch/Inactive", "Act/Prop/Switch.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_FMTRAPSW02B, "/Global/Switch/Inactive", "Act/Prop/Switch.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_FMTRAPSW03, "/Global/Switch/Inactive", "Act/Prop/Switch.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_FMTRAPSW03B, "/Global/Switch/Inactive", "Act/Prop/Switch.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_FMTRAPSW04, "/Global/Switch/Inactive", "Act/Prop/Switch.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_FMTRAPSW04B, "/Global/Switch/Inactive", "Act/Prop/Switch.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_FMTRAPSW05, "/Global/Switch/Inactive", "Act/Prop/Switch.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_FMTRAPSW05B, "/Global/Switch/Inactive", "Act/Prop/Switch.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_FMTRAPSW06, "/Global/Switch/Inactive", "Act/Prop/Switch.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_FMTRAPSW06B, "/Global/Switch/Inactive", "Act/Prop/Switch.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_FMTRAPSW07, "/Global/Switch/Inactive", "Act/Prop/Switch.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_FMTRAPSW07B, "/Global/Switch/Inactive", "Act/Prop/Switch.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_FMTRAPSWB, "/Global/Switch/Inactive", "Act/Prop/Switch.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_FUNMINERB, "/Global/FunMiner/Active", "Act/Prop/FunMiner.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_FUNMINERB, "/Global/FunMiner/HoldOpen", "Act/Props/FunMiner.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_FUNMINERB, "/Global/FunMiner/ShutOff", "Act/Props/FunMiner.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_FUNMINERD, "/Global/FunMiner/Active", "Act/Prop/FunMiner.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_FUNMINERD, "/Global/FunMiner/HoldOpen", "Act/Props/FunMiner.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_FUNMINERD, "/Global/FunMiner/ShutOff", "Act/Props/FunMiner.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_FUNMINERG, "/Global/FunMiner/Active", "Act/Prop/FunMiner.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_FUNMINERG, "/Global/FunMiner/HoldOpen", "Act/Props/FunMiner.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_FUNMINERG, "/Global/FunMiner/ShutOff", "Act/Props/FunMiner.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_FUNMINERH, "/Global/FunMiner/Active", "Act/Prop/FunMiner.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_FUNMINERH, "/Global/FunMiner/HoldOpen", "Act/Props/FunMiner.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_FUNMINERH, "/Global/FunMiner/ShutOff", "Act/Props/FunMiner.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_FUNMINERI, "/Global/FunMiner/Active", "Act/Prop/FunMiner.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_FUNMINERI, "/Global/FunMiner/HoldOpen", "Act/Props/FunMiner.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_FUNMINERI, "/Global/FunMiner/ShutOff", "Act/Props/FunMiner.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_FUNMINERX1, "/Global/FunMiner/Active", "Act/Prop/FunMiner.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_FUNMINERX1, "/Global/FunMiner/HoldOpen", "Act/Props/FunMiner.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_FUNMINERX1, "/Global/FunMiner/ShutOff", "Act/Props/FunMiner.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_FUNMINERX2, "/Global/FunMiner/Active", "Act/Prop/FunMiner.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_FUNMINERX2, "/Global/FunMiner/HoldOpen", "Act/Props/FunMiner.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_FUNMINERX2, "/Global/FunMiner/ShutOff", "Act/Props/FunMiner.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_FUNMINERX3, "/Global/FunMiner/Active", "Act/Prop/FunMiner.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_FUNMINERX3, "/Global/FunMiner/HoldOpen", "Act/Props/FunMiner.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_FUNMINERX3, "/Global/FunMiner/ShutOff", "Act/Props/FunMiner.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_FUNMINERX4, "/Global/FunMiner/Active", "Act/Prop/FunMiner.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_FUNMINERX4, "/Global/FunMiner/HoldOpen", "Act/Props/FunMiner.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_FUNMINERX4, "/Global/FunMiner/ShutOff", "Act/Props/FunMiner.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_REEPER00, "/Global/FunReapr/Active", "Act/Props/FunReapr.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_REEPER00, "/Global/FunReapr/PowerDown", "Act/Props/FunReapr.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_REEPER00B, "/Global/FunReapr/Active", "Act/Props/FunReapr.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_REEPER00B, "/Global/FunReapr/PowerDown", "Act/Props/FunReapr.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_REEPER01, "/Global/FunReapr/Active", "Act/Props/FunReapr.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_REEPER01, "/Global/FunReapr/PowerDown", "Act/Props/FunReapr.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_REEPER01B, "/Global/FunReapr/Active", "Act/Props/FunReapr.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_REEPER01B, "/Global/FunReapr/PowerDown", "Act/Props/FunReapr.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_REEPER02, "/Global/FunReapr/Active", "Act/Props/FunReapr.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_REEPER02, "/Global/FunReapr/PowerDown", "Act/Props/FunReapr.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_REEPER02B, "/Global/FunReapr/Active", "Act/Props/FunReapr.act")
PAnimSetActionNode(TRIGGER._IFUNHOUS_REEPER02B, "/Global/FunReapr/PowerDown", "Act/Props/FunReapr.act")
PAnimSetActionNode(TRIGGER._JANSWTCH00, "/Global/AsySwtch/NotUseable", "Act/Props/AsySwtch.act")
PAnimSetActionNode(TRIGGER._JANSWTCH01, "/Global/AsySwtch/NotUseable", "Act/Props/AsySwtch.act")
PAnimSetActionNode(TRIGGER._JANSWTCH02, "/Global/AsySwtch/NotUseable", "Act/Props/AsySwtch.act")
PAnimSetActionNode(TRIGGER._JANSWTCH03A, "/Global/AsySwtch/Inactive", "Act/Props/AsySwtch.act")
PAnimSetActionNode(TRIGGER._JANSWTCH03A, "/Global/AsySwtch/NotUseable", "Act/Props/AsySwtch.act")
PAnimSetActionNode(TRIGGER._LCKRGYMM, "/Global/NLockA/Locked1_08", "Global/Props/NLockA.act")
PAnimSetActionNode(TRIGGER._LCKRGYMM, "/Global/NLockA/Unlocked/Default", "Global/Props/NLockA.act")
PAnimSetActionNode(TRIGGER._NLOCK01A, "/Global/NLockA/Locked", "Act/Props/NLockA.act")
PAnimSetActionNode(TRIGGER._NLOCK01A, "/Global/NLockA/Unlocked/Default", "Act/Props/NLockA.act")
PAnimSetActionNode(TRIGGER._NLOCK01B05, "/Global/NLockA/Locked", "Global/Props/NLockA.act")
PAnimSetActionNode(TRIGGER._NLOCK01B05, "/Global/NLockA/Unlocked", "Act/Props/NLockA.act")
PAnimSetActionNode(TRIGGER._NLOCK02B03, "/Global/NLockA/Locked", "Global/Props/NLockA.act")
PAnimSetActionNode(TRIGGER._NLOCK02B03, "/Global/NLockA/Unlocked", "Act/Props/NLockA.act")
PAnimSetActionNode(TRIGGER._NLOCK02B06, "/Global/NLockA/Unlocked/Default", "Act/Props/NLockA.act")
PAnimSetActionNode(TRIGGER._NLOCK02B06, "/Global/NLockA/Unlocked/NotUseable", "Act/Props/NLockA.act")
PAnimSetActionNode(TRIGGER._NLOCK02B06, "/Global/NLockA/Unlocked/Scripted/SaveAlgieBooks", "Act/Props/NLockA.act")
PAnimSetActionNode(TRIGGER._PANIM_FLYTRAP, "/Global/VFlyTrap/Death/Dead", "Act/Props/VFlyTrap.act")
PAnimSetActionNode(TRIGGER._PANIM_FLYTRAP, "/Global/VFlyTrap/Idle", "Act/Props/VFlyTrap.act")
PAnimSetActionNode(TRIGGER._PLAT_NORTH, "/Global/4_B1/Platform/CollapseNorth", "Act/Conv/4_B1.act")
PAnimSetActionNode(TRIGGER._PLAT_NORTH, "/Global/4_B1/Platform/RumbleNorth", "Act/Conv/4_B1.act")
PAnimSetActionNode(TRIGGER._PLAT_WEST, "/Global/4_B1/Platform/CollapseWest", "Act/Conv/4_B1.act")
PAnimSetActionNode(TRIGGER._PLAT_WEST, "/Global/4_B1/Platform/RumbleWest", "Act/Conv/4_B1.act")
PAnimSetActionNode(TRIGGER._SCGRDOOR01, "/Global/1_07/ParametricDoor/POpenUp/Closed/NotUseable/BeingLifted/HandleSoundCalls/DoorOnGround", "Act/Conv/1_07.act")
PAnimSetActionNode(TRIGGER._SCGRDOOR02, "/Global/1_07/ParametricDoor/POpenUp/Close/Closing/NotUseable/propClosed/ClosedIdle", "Act/Conv/1_07.act")
PAnimSetActionNode(TRIGGER._SCGRDOOR02, "/Global/1_07/ParametricDoor/POpenUp/Closed", "Act/Conv/1_07.act")
PAnimSetActionNode(TRIGGER._SCGRDOOR02, "/Global/1_07/ParametricDoor/POpenUp/Closed/NotUseable/BeingLifted/HandleSoundCalls/DoorOnGround", "Act/Conv/1_07.act")
PAnimSetActionNode(TRIGGER._TAG1, node, "Act/Prop/3_S10_Tags.act")
PAnimSetActionNode(TRIGGER._TBARRELS_SBARELS1, "/Global/sbarels1/DeadCollisionOff", "Act/Props/sBarels1.act")
PAnimSetActionNode(TRIGGER._TBARRELS_SBARELS1, "/Global/sbarels1/Destroy", "Act/Props/SBarels1.act")
PAnimSetActionNode(TRIGGER._TBARRELS_SBARELS1, "/Global/sbarels1/InitCollisionOn", "Act/Props/SBarels1.act")
PAnimSetActionNode(TRIGGER._TBARRELS_SBARELS1, "/Global/sbarels1/InitCollisionOn", "Act/Props/sBarels1.act")
PAnimSetActionNode(TRIGGER._TBARRELS_SBARELS1, "/Global/sbarels1/Rumble", "Act/Props/SBarels1.act")
PAnimSetActionNode(TRIGGER._TINDUST_ELECTRIC_SHUTOFF, "/Global/AsySwtch/NotUseable", "Act/Props/AsySwtch.act")
PAnimSetActionNode(TRIGGER._TINDUST_GATE_SWITCH, "/Global/BRSwitch/Inactive", "Act/Props/BRSwitch.act")
PAnimSetActionNode(TRIGGER._TINDUST_GATE_SWITCH, "/Global/BRSwitch/NotUseable", "Act/Props/BRSwitch.act")
PAnimSetActionNode(TRIGGER._TINDUST_REDSTAR_GATE_01, "/Global/Door/Closed", "Act/Props/Door.act")
PAnimSetActionNode(TRIGGER._TINDUST_REDSTAR_GATE_01, "/Global/TSGate/Closed", "Act/Props/TSGate.act")
PAnimSetActionNode(TRIGGER._TSCHOOL_FRONTGATE, "/Global/1_01/Gates/BarUpHold", "Act/Conv/1_01.act")
PAnimSetActionNode(TRIGGER._TSCHOOL_FRONTGATE, "/Global/1_01/Gates/OpenHold", "Act/Conv/1_01.act")
PAnimSetActionNode(TRIGGER._TURRET_TOP, "/Global/4_B1/Cannon/Fall", "Act/Conv/4_B1.act")
sub esp, 0x1C
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x2C]
push edi
push esi
call 0x73AEA0
add esp, 0x4
cmp eax, 0x3
jnz 0xB3
push 0x0
push esi
call LuaParam::IsInt
add esp, 0x8
test al, al
jnz 0x15
push 0x0
push esi
call LuaParam::IsHashID
add esp, 0x8
test al, al
jz 0x275
push 0x1
push esi
call LuaParam::IsString
add esp, 0x8
test al, al
jz 0x262
push 0x2
push esi
call LuaParam::IsString
add esp, 0x8
test al, al
jz 0x24F
push 0x0
push esi
call LuaParam::IsInt
add esp, 0x8
test al, al
push 0x0
push esi
jz 0x2A
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, 0x20C7E98
call 0x415FD0
test eax, eax
mov edi, 0x1
jz 0x21D
mov ebp, dword ptr [eax+0x1C]
jmp 0x177
call LuaParam::IsHashID
add esp, 0x8
test al, al
jz 0x205
push 0x0
push esi
call LuaParam::GetUserData
push eax
call 0x44A610
add esp, 0xC
mov edi, 0x1
jmp 0x14A
push esi
call 0x73AEA0
add esp, 0x4
cmp eax, 0x7
jnz 0x1D8
push 0x0
push esi
call LuaParam::IsInt
add esp, 0x8
test al, al
push 0x0
push esi
jz 0xC
call LuaParam::GetInt
add esp, 0x8
jmp 0x23
call LuaParam::IsString
add esp, 0x8
test al, al
jz 0x1AC
push 0x0
push esi
call LuaParam::GetString
push eax
call 0x51C330
add esp, 0xC
push 0x1
push esi
mov ebx, eax
call LuaParam::IsInt
add esp, 0x8
test al, al
jz 0x186
push 0x2
push esi
call LuaParam::IsInt
add esp, 0x8
test al, al
jz 0x173
push 0x3
push esi
call LuaParam::IsInt
add esp, 0x8
test al, al
jz 0x160
push 0x4
push esi
call LuaParam::IsInt
add esp, 0x8
test al, al
jz 0x14D
push 0x5
push esi
call LuaParam::IsString
add esp, 0x8
test al, al
jz 0x13A
push 0x6
push esi
call LuaParam::IsString
add esp, 0x8
test al, al
jz 0x127
push 0x1
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x18], st
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x24], st
push 0x3
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x30], st
push 0x4
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x3C], st
fld st, dword ptr [esp+0x30]
add esp, 0x20
fstp dword ptr [esp+0x20], st
push 0x8
fld st, dword ptr [esp+0x18]
push ecx
fstp dword ptr [esp+0x2C], st
lea eax, ptr [esp+0x28]
fld st, dword ptr [esp+0x20]
mov edi, 0x5
fstp dword ptr [esp+0x30], st
fld st, dword ptr [esp+0x24]
fstp dword ptr [esp], st
push eax
push ebx
call 0x4607A0
add esp, 0x10
test eax, eax
jz 0xB7
mov cl, byte ptr [eax+0x108]
and cl, 0x7
cmp cl, 0x6
jnz 0xA5
mov ebp, eax
test ebp, ebp
jz 0x9B
push edi
push esi
call LuaParam::GetString
mov ebx, eax
mov al, byte ptr [ebx]
add esp, 0x8
add edi, 0x1
cmp al, 0x5C
jz 0x6
cmp al, 0x2F
jnz 0x7E
push edi
push esi
call LuaParam::GetString
push 0x0
push eax
call 0x520960
push 0x0
push ebx
movsx edi, ax
call 0x5F5B10
mov esi, eax
add esp, 0x18
test esi, esi
jnz 0x3B
cmp edi, 0xFFFFFFFF
jz 0x56
lea edx, ptr [edi+0x5D41]
push 0x13
push edx
call 0x532020
push esi
push 0x90250C
push 0x927194
call 0x43C4F0
push esi
call 0x533EE0
push esi
push ebx
call 0x5F5B10
mov esi, eax
add esp, 0x20
test esi, esi
jz 0x22
cmp edi, 0xFFFFFFFF
jz 0x14
push edi
mov ecx, 0xD02850
call 0x5DB940
mov ecx, eax
call 0x5D9AF0
push edi
push esi
mov ecx, ebp
call 0x4EF340
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1C
ret
-- never used
push ecx
push esi
push edi
mov edi, dword ptr [esp+0x10]
lea eax, ptr [esp+0x8]
push eax
push 0x1
push edi
mov dword ptr [esp+0x14], 0xFFFFFFFF
call 0x5C4570
mov esi, eax
add esp, 0xC
test esi, esi
jz 0x17
mov ecx, dword ptr [esp+0x8]
push ecx
push edi
call LuaParam::GetInt
add esp, 0x8
mov word ptr [esi+0x250], ax
pop edi
xor eax, eax
pop esi
pop ecx
ret
PAnimSetInvulnerable(TRIGGER._4_02_BAR_01, true)
PAnimSetInvulnerable(TRIGGER._4_02_BAR_02, true)
PAnimSetInvulnerable(TRIGGER._4_02_BAR_03, true)
PAnimSetInvulnerable(TRIGGER._DT_OBSERVATORY, false)
PAnimSetInvulnerable(TRIGGER._DT_OBSERVATORY, true)
push ecx
push esi
push edi
mov edi, dword ptr [esp+0x10]
lea eax, ptr [esp+0x8]
push eax
push 0x1
push edi
mov dword ptr [esp+0x14], 0xFFFFFFFF
call 0x5C4570
mov esi, eax
add esp, 0xC
test esi, esi
jz 0x4C
mov ecx, dword ptr [esp+0x8]
push ecx
push edi
call LuaParam::GetBool
mov cl, byte ptr [esi+0x108]
and cl, 0x7
add esp, 0x8
cmp cl, 0x4
mov byte ptr [esp+0x8], al
jnz 0x19
shl al, 0x6
xor al, byte ptr [esi+0x209]
pop edi
and al, 0x40
xor byte ptr [esi+0x209], al
xor eax, eax
pop esi
pop ecx
ret
cmp cl, 0x6
jnz 0x10
mov edx, dword ptr [esp+0x8]
push edx
push 0x2
mov ecx, esi
call 0x4EA450
pop edi
xor eax, eax
pop esi
pop ecx
ret
-- never used
push ecx
push esi
push edi
mov edi, dword ptr [esp+0x10]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, 0x20C7E98
call 0x6D7B10
mov esi, eax
test esi, esi
jz 0x1F
push 0x1
push edi
call LuaParam::GetBool
mov byte ptr [esp+0x10], al
mov eax, dword ptr [esp+0x10]
add esp, 0x8
push eax
push 0x1
mov ecx, esi
call 0x4EA450
pop edi
xor eax, eax
pop esi
pop ecx
ret
--print("passed PAnimSetPathFollowSpeed")
PAnimSetPathFollowSpeed(elevatorindex, gelevator, 1)
PAnimSetPathFollowSpeed(elevatorindex, gelevator, 5.55)
PAnimSetPathFollowSpeed(ElevDoorCIndex, gElevDoorC, 0.5)
PAnimSetPathFollowSpeed(ElevDoorDIndex, gElevDoorD, 0.5)
PAnimSetPathFollowSpeed(entity.poolIndex, entity.type, 0)
PAnimSetPathFollowSpeed(gateIndex, gateObject, -1.2)
PAnimSetPathFollowSpeed(gateIndex, gateObject, 1.2)
PAnimSetPathFollowSpeed(tblTrain.poolIndex, tblTrain.type, tblTrain.speed)
PAnimSetPathFollowSpeed(ThePipeIndex, ThePipeType, 3.5)
PAnimSetPathFollowSpeed(train.poolIndex, train.type, train.speed)
PAnimSetPathFollowSpeed(trigger, gPathSpeeds[1])
PAnimSetPathFollowSpeed(trigger, gPathSpeeds[1].sMin)
PAnimSetPathFollowSpeed(trigger, gPathSpeeds[2])
PAnimSetPathFollowSpeed(trigger, gPathSpeeds[2].sMin)
PAnimSetPathFollowSpeed(trigger, gPathSpeeds[3])
PAnimSetPathFollowSpeed(trigger, speed)
PAnimSetPathFollowSpeed(TRIGGER._5_B_SECDOOR1, -0.5)
PAnimSetPathFollowSpeed(TRIGGER._5_B_SECDOOR1, 0)
PAnimSetPathFollowSpeed(TRIGGER._5_B_SECDOOR1, 0.5)
PAnimSetPathFollowSpeed(TRIGGER._5_B_SECDOOR2, -0.5)
PAnimSetPathFollowSpeed(TRIGGER._5_B_SECDOOR2, 0)
PAnimSetPathFollowSpeed(TRIGGER._5_B_SECDOOR2, 0.5)
PAnimSetPathFollowSpeed(TRIGGER._6_02G_VASE01, 8)
PAnimSetPathFollowSpeed(TRIGGER._6_02G_VASE02, 8)
PAnimSetPathFollowSpeed(TRIGGER._6_02G_VASE03, 8)
PAnimSetPathFollowSpeed(TRIGGER._6_02G_VASE03, 9)
PAnimSetPathFollowSpeed(TRIGGER._BUS_BUS, 0)
PAnimSetPathFollowSpeed(TRIGGER._BUS_BUS, nStartSpeed)
PAnimSetPathFollowSpeed(TRIGGER._HSDINGER, -1)
PAnimSetPathFollowSpeed(TRIGGER._HSDINGER, 4)
PAnimSetPathFollowSpeed(TRIGGER._TP_CRATE, 1)
push ecx
push ebx
push esi
mov esi, dword ptr [esp+0x10]
push edi
push 0x0
push esi
call LuaParam::GetInt
push esi
mov edi, eax
mov ebx, 0x1
call 0x73AEA0
add esp, 0xC
cmp eax, 0x3
jnz 0x1A
push ebx
push esi
call LuaParam::GetInt
push eax
push edi
mov ebx, 0x2
call 0x44A660
add esp, 0x10
jmp 0xD
push edi
mov ecx, 0x20C7E98
call 0x6D7B10
mov edi, eax
test edi, edi
jz 0x22
push ebx
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x14], st
fld st, dword ptr [esp+0x14]
add esp, 0x4
fstp dword ptr [esp], st
push edi
mov ecx, 0xD13730
call 0x5EBD50
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
PAnimSetPropFlag("OBSMotor", -692.507, 64.7766, 29.291, 2, false)
PAnimSetPropFlag("OBSMotor", -692.507, 64.7766, 29.291, 2, true)
PAnimSetPropFlag("OBSMotor", -692.547, 86.2075, 29.2906, 2, false)
PAnimSetPropFlag("OBSMotor", -692.547, 86.2075, 29.2906, 2, true)
PAnimSetPropFlag("OBSMotor", -700.087, 64.7677, 29.291, 2, false)
PAnimSetPropFlag("OBSMotor", -700.087, 64.7677, 29.291, 2, true)
PAnimSetPropFlag("OBSMotor", -700.137, 86.2676, 29.2188, 2, false)
PAnimSetPropFlag("OBSMotor", -700.137, 86.2676, 29.2188, 2, true)
PAnimSetPropFlag("OBSMotor", -706.986, 71.6268, 29.291, 2, false)
PAnimSetPropFlag("OBSMotor", -706.986, 71.6268, 29.291, 2, true)
PAnimSetPropFlag("OBSMotor", -706.995, 79.206, 29.291, 2, false)
PAnimSetPropFlag("OBSMotor", -706.995, 79.206, 29.291, 2, true)
PAnimSetPropFlag("pxSitStl", 445.251, 192.463, 8.37797, 11, false)
PAnimSetPropFlag("pxSitStl", 445.251, 192.463, 8.37797, 11, true)
PAnimSetPropFlag("pxSitStl", 445.251, 196.917, 8.37797, 11, false)
PAnimSetPropFlag("pxSitStl", 445.251, 196.917, 8.37797, 11, true)
PAnimSetPropFlag("pxSitStl", 445.268, 193.507, 8.37797, 11, false)
PAnimSetPropFlag("pxSitStl", 445.268, 193.507, 8.37797, 11, true)
PAnimSetPropFlag("pxSitStl", 445.268, 197.961, 8.37797, 11, false)
PAnimSetPropFlag("pxSitStl", 445.268, 197.961, 8.37797, 11, true)
PAnimSetPropFlag("pxSitStl", 446.444, 192.463, 8.37797, 11, false)
PAnimSetPropFlag("pxSitStl", 446.444, 192.463, 8.37797, 11, true)
PAnimSetPropFlag("pxSitStl", 446.444, 193.507, 8.37797, 11, false)
PAnimSetPropFlag("pxSitStl", 446.444, 193.507, 8.37797, 11, true)
PAnimSetPropFlag("pxSitStl", 446.444, 196.917, 8.37797, 11, false)
PAnimSetPropFlag("pxSitStl", 446.444, 196.917, 8.37797, 11, true)
PAnimSetPropFlag("pxSitStl", 446.444, 197.961, 8.37797, 11, false)
PAnimSetPropFlag("pxSitStl", 446.444, 197.961, 8.37797, 11, true)
PAnimSetPropFlag("pxSitStl", 448.608, 193.507, 8.37797, 11, false)
PAnimSetPropFlag("pxSitStl", 448.608, 193.507, 8.37797, 11, true)
PAnimSetPropFlag("pxSitStl", 448.608, 197.932, 8.37797, 11, false)
PAnimSetPropFlag("pxSitStl", 448.608, 197.932, 8.37797, 11, true)
PAnimSetPropFlag("pxSitStl", 448.61, 192.463, 8.37797, 11, false)
PAnimSetPropFlag("pxSitStl", 448.61, 192.463, 8.37797, 11, true)
PAnimSetPropFlag("pxSitStl", 448.61, 196.888, 8.37797, 11, false)
PAnimSetPropFlag("pxSitStl", 448.61, 196.888, 8.37797, 11, true)
PAnimSetPropFlag("pxSitStl", 449.93, 192.463, 8.37797, 11, false)
PAnimSetPropFlag("pxSitStl", 449.93, 192.463, 8.37797, 11, true)
PAnimSetPropFlag("pxSitStl", 449.93, 196.888, 8.37797, 11, false)
PAnimSetPropFlag("pxSitStl", 449.93, 196.888, 8.37797, 11, true)
PAnimSetPropFlag("pxSitStl", 449.953, 193.507, 8.37797, 11, false)
PAnimSetPropFlag("pxSitStl", 449.953, 193.507, 8.37797, 11, true)
PAnimSetPropFlag("pxSitStl", 449.953, 197.932, 8.37797, 11, false)
PAnimSetPropFlag("pxSitStl", 449.953, 197.932, 8.37797, 11, true)
PAnimSetPropFlag(entry.LockerTrig, 11, false)
PAnimSetPropFlag(entry.LockerTrig, 11, true)
PAnimSetPropFlag(entry.LockerTrig, 19, false)
PAnimSetPropFlag(entry.LockerTrig, 19, true)
PAnimSetPropFlag(entry.LockerTrig, 22, false)
PAnimSetPropFlag(entry.LockerTrig, 22, true)
PAnimSetPropFlag(TRIGGER._DT_INDOOR_WHOUSEFRONT, 11, false)
PAnimSetPropFlag(TRIGGER._DT_INDOOR_WHOUSEFRONT, 11, true)
PAnimSetPropFlag(TRIGGER._DT_INDOOR_WHOUSEROOF, 11, false)
PAnimSetPropFlag(TRIGGER._DT_INDOOR_WHOUSEROOF, 11, true)
PAnimSetPropFlag(TRIGGER._DT_ISCHOOL_STAFF, 22, false)
PAnimSetPropFlag(TRIGGER._DT_ISCHOOL_STAFF, 22, true)
PAnimSetPropFlag(TRIGGER._LCKRGYMM, 11, false)
PAnimSetPropFlag(TRIGGER._LCKRGYMM, 19, true)
PAnimSetPropFlag(TRIGGER._LCKRGYMM, 22, false)
PAnimSetPropFlag(TRIGGER._LCKRGYMM, 22, true)
PAnimSetPropFlag(TRIGGER._NLOCK01A, 11, true)
PAnimSetPropFlag(TRIGGER._NLOCK01A, 19, false)
PAnimSetPropFlag(TRIGGER._NLOCK01A, 19, true)
PAnimSetPropFlag(TRIGGER._NLOCK01A, 22, false)
PAnimSetPropFlag(TRIGGER._NLOCK01A, 22, true)
PAnimSetPropFlag(TRIGGER._NLOCK01A, 7, false)
PAnimSetPropFlag(TRIGGER._NLOCK01A, 7, true)
PAnimSetPropFlag(TRIGGER._NLOCK02B06, 11, false)
PAnimSetPropFlag(TRIGGER._NLOCK02B06, 11, true)
PAnimSetPropFlag(TRIGGER._NLOCK02B06, 19, false)
PAnimSetPropFlag(TRIGGER._NLOCK02B06, 19, true)
PAnimSetPropFlag(TRIGGER._PLAT_NORTH, 2, true)
PAnimSetPropFlag(TRIGGER._PLAT_SOUTH, 2, true)
PAnimSetPropFlag(TRIGGER._PLAT_WEST, 2, true)
PAnimSetPropFlag(TRIGGER._TURRET_TOP, 2, true)
push ecx
push ebp
push edi
mov edi, dword ptr [esp+0x10]
lea eax, ptr [esp+0x8]
push eax
push 0x2
push edi
mov dword ptr [esp+0x14], 0xFFFFFFFF
call 0x5C4570
mov ebp, eax
add esp, 0xC
test ebp, ebp
jz 0x33
push ebx
push esi
mov esi, dword ptr [esp+0x10]
mov eax, esi
push eax
push edi
add esi, 0x1
call LuaParam::GetInt
push esi
push edi
mov ebx, eax
call LuaParam::GetBool
add esp, 0x10
mov byte ptr [esp+0x10], al
mov ecx, dword ptr [esp+0x10]
push ecx
push ebx
mov ecx, ebp
call 0x4EA450
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
pop ecx
ret
PAnimSetPulsateLight(TRIGGER._DRBRACE, false)
PAnimSetPulsateLight(TRIGGER._DRBRACE01, false)
push ecx
push esi
push edi
mov edi, dword ptr [esp+0x10]
lea eax, ptr [esp+0x8]
push eax
push 0x1
push edi
mov dword ptr [esp+0x14], 0xFFFFFFFF
call 0x5C4570
mov ecx, dword ptr [esp+0x14]
push ecx
push edi
mov esi, eax
call LuaParam::GetBool
add esp, 0x14
test al, al
mov byte ptr [esi+0x258], al
jnz 0xA
fld1
fstp dword ptr [esi+0x25C], st
pop edi
xor eax, eax
pop esi
pop ecx
ret
PAnimShowHealthBar(tblFireEntry.propTrigger, false)
PAnimShowHealthBar(TRIGGER._4_03_BAR_05_02, true, "4_03_14")
PAnimShowHealthBar(TRIGGER._DT_OBSERVATORY, true, "4_02_47")
PAnimShowHealthBar(TRIGGER._DT_OBSERVATORY, true, "4_02_OBSDOOR", true)
PAnimShowHealthBar(TRIGGER._PANIM_FLYTRAP, true, "2_08_PLANT", true)
push ecx
push ebx
push edi
mov edi, dword ptr [esp+0x10]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, 0x20C7E98
call 0x6D7B10
mov ebx, eax
test ebx, ebx
jz 0x9B
push esi
push 0x1
push edi
call LuaParam::GetBool
add esp, 0x8
test al, al
jz 0x7B
mov esi, dword ptr [0xC674D0]
push ebp
push ebx
mov ecx, esi
call 0x5538C0
mov eax, dword ptr [esi]
mov edx, dword ptr [eax+0x14]
push 0x1
mov ecx, esi
call 0x5C40D1
push edi
mov dword ptr [esp+0x14], 0x0
xor bl, bl
call 0x73AEA0
mov ebp, eax
add esp, 0x4
cmp ebp, 0x3
jl 0x11
push 0x2
push edi
call LuaParam::GetString
add esp, 0x8
mov dword ptr [esp+0x10], eax
cmp ebp, 0x4
pop ebp
jl 0xF
push 0x3
push edi
call LuaParam::GetBool
add esp, 0x8
mov bl, al
mov eax, dword ptr [esp+0xC]
push eax
mov ecx, esi
call 0x5514D0
test bl, bl
mov byte ptr [esi+0xBA], bl
jnz 0x1A
mov byte ptr [esi+0xBB], bl
pop esi
pop edi
xor eax, eax
pop ebx
pop ecx
ret
push 0x1
push 0x3
mov ecx, ebx
call 0x4EA450
pop esi
pop edi
xor eax, eax
pop ebx
pop ecx
ret
PAnimStopFollowPath(triggerId)
push esi
mov esi, dword ptr [esp+0x8]
push edi
push 0x0
push esi
call LuaParam::GetInt
push esi
mov edi, eax
call 0x73AEA0
add esp, 0xC
cmp eax, 0x2
jnz 0x24
push 0x1
push esi
call LuaParam::GetInt
push eax
push edi
call 0x44A660
add esp, 0x10
push eax
mov ecx, 0xD13730
call 0x5EC0E0
pop edi
xor eax, eax
pop esi
ret
push edi
mov ecx, 0x20C7E98
call 0x6D7B10
test eax, eax
jz 0xD
push eax
mov ecx, 0xD13730
call 0x5EC0E0
pop edi
xor eax, eax
pop esi
ret
-- never used
push esi
mov esi, dword ptr [esp+0x8]
push edi
push 0x0
push esi
call LuaParam::GetString
push eax
call 0x51C330
mov edi, dword ptr [eax*4+0xC67738]
push 0x1
push esi
call LuaParam::GetString
add esp, 0x14
push eax
mov ecx, edi
call 0x520530
pop edi
xor eax, eax
pop esi
ret
--print("Last Node: ", PathGetLastNode(gCurrentPath))
elseif gLackey[35].pPoint ~= nil and (gLackey[35].pPoint == PATH._MANDYTOTOILET or gLackey[35].pPoint == PATH._SECONDSTALL) and gLackey[35].currentNode == PathGetLastNode(gLackey[35].pPoint) and gMandy ~= nil then
elseif node == PathGetLastNode(path) then
elseif nodeID == PathGetLastNode(pathID) - 1 then
elseif nodeId == PathGetLastNode(pathId) then
elseif PathGetLastNode(pathId) == pathNode then
elseif pathId == PATH._2_S04_FLEE4 and pathNode >= PathGetLastNode(pathId) then
if gLackey[8].nCurrentNode + 1 <= PathGetLastNode(PATH._KITCHENLADY) then
if gSecPathNode == PathGetLastNode(PATH._1_01_SECPATH) and gSecretary and PedIsValid(gSecretary) and not PedIsDead(gSecretary) then
if nJocksCurrentNode == PathGetLastNode(gCurrentPath) - 1 then
if node == PathGetLastNode(PATH._6_02_PLAYERRUN) then
if node == PathGetLastNode(PATH._6_02_RUSSELLRUNAWAY) then
if nodeId == PathGetLastNode(PATH._4_04_NERDL0) then
if nodeId == PathGetLastNode(PATH._4_04_NERDR0) then
if nodeId == PathGetLastNode(pathId) and pedId == perv1 then
if nodeId == PathGetLastNode(pathId) and pedId == perv2 then
if nodeId == PathGetLastNode(pathId) then
if nodeID == PathGetLastNode(pathID) then
if nodeid == PathGetLastNode(pathid) then
if pathNode == PathGetLastNode(pathId) and F_PedExists(gFatty) and pedId == gFatty then
if pathNode == PathGetLastNode(pathId) and pedId == gHealthNerd then
if pathNode == PathGetLastNode(pathId) then
if pathNode >= PathGetLastNode(pathId) then
if pedId == gBucky and pathNode == PathGetLastNode(pathId) then
if pedId == gCarny and pathNode == PathGetLastNode(pathId) then
if pedId == gChad and PathGetLastNode(pathId) == pathNode then
if pedId == gGary and PathGetLastNode(pathId) == pathNode then
if pedId == gGary and pathNode == PathGetLastNode(pathId) then
if pedId == gHattrick and pathNode == PathGetLastNode(pathId) then
if pedId == gMelvin and PathGetLastNode(pathId) == pathNode then
if pedId == gPlayer and PathGetLastNode(pathId) == pathNode then
if pedId == idBucky and pathNode == PathGetLastNode(pathId) then
if pedId == sheet1Bruiser and pathNode == PathGetLastNode(pathId) then
if pedId == tblTad.id and pathNode == PathGetLastNode(tblTad.roomToInvestigate.window.pathTo) then
if runner == gDavis and node == PathGetLastNode(path) then
while gCurrentRussellNode ~= PathGetLastNode(PATH._RUSSELLTOGATE) do
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetInt
mov ecx, dword ptr [0xD13CB4]
add esp, 0x8
push eax
call 0x5ED3A0
mov esi, eax
test esi, esi
jz 0x29
mov ecx, esi
call 0x5EC670
test eax, eax
jbe 0x1E
mov ecx, esi
call 0x5EC670
sub eax, 0x1
push eax
push edi
call LuaParam::PushInt
add esp, 0x8
pop edi
mov eax, 0x1
pop esi
ret
push edi
call LuaParam::PushNil
add esp, 0x4
pop edi
mov eax, 0x1
pop esi
ret
PauseGameClock()
push 0x1
call 0x425EA0
add esp, 0x4
xor eax, eax
ret
-- never used
fldz
push 0x1
mov ecx, 0xC1AEA8
fstp dword ptr [0xC1A9A8], st
call 0x445DA0
push 0x0
mov ecx, 0xA45A30
call 0x50DFA0
mov eax, dword ptr [0xC1AEA8]
mov ecx, dword ptr [eax+0x2E0]
call 0x5F3A40
mov ecx, dword ptr [0xC1AEA8]
call 0x474570
mov ecx, dword ptr [0xC1AEA8]
mov eax, dword ptr [ecx+0x2E0]
mov edx, dword ptr [eax]
mov dword ptr [eax+0xC], edx
mov ecx, dword ptr [eax+0x4]
mov dword ptr [eax+0x10], ecx
mov edx, dword ptr [eax+0x8]
mov dword ptr [eax+0x14], edx
xor eax, eax
ret
A standard Lua 5.0 function documented on lua.org.
PedActionControllerUpdate(gPlayer)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
jz 0x1D
fld st, dword ptr [0x90CF18]
push ecx
mov ecx, dword ptr [eax+0x2E0]
fstp dword ptr [esp], st
add ecx, 0x258
call 0x5F4B00
xor eax, eax
ret
PedAddBroadcastStimulus(16)
PedAddBroadcastStimulus(5)
PedAddBroadcastStimulus(59, shared.gSchoolFAlarmTime / 1000)
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetInt
push esi
mov edi, eax
call 0x73AEA0
add esp, 0xC
cmp eax, 0x2
jnz 0x27
push 0x1
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x10], st
fld st, dword ptr [esp+0x10]
add esp, 0x4
fstp dword ptr [esp], st
push edi
call 0x4A6220
add esp, 0x8
pop edi
xor eax, eax
pop esi
pop ecx
ret
fldz
push ecx
fstp dword ptr [esp], st
push edi
call 0x4A6220
add esp, 0x8
pop edi
xor eax, eax
pop esi
pop ecx
ret
PedAddCover(p.point, 100, 35, 2, 0, 0, 3, 3, 0, 0, 1, 1, true, 0.5)
push ecx
push ebp
mov ebp, dword ptr [esp+0xC]
push esi
push 0x0
push ebp
call LuaParam::GetInt
movzx eax, ax
movzx eax, ax
add esp, 0x8
push eax
mov ecx, 0xBC5E7C
call 0x6D6450
mov esi, eax
test esi, esi
jz 0x18A
push ebx
push ebp
mov ecx, 0xD02850
call 0x5DBD50
push eax
mov ecx, 0xC2B210
call 0x4883A0
mov ecx, esi
mov ebx, eax
call 0x6D59B0
mov ecx, dword ptr [eax]
mov dword ptr [ebx+0x8], ecx
mov edx, dword ptr [eax+0x4]
mov dword ptr [ebx+0xC], edx
mov ecx, dword ptr [eax+0x8]
mov dword ptr [ebx+0x10], ecx
fld st, dword ptr [eax+0x1C]
fmul st, qword ptr [0x900160]
push ecx
fdiv st, qword ptr [0x900158]
fstp dword ptr [esp+0x10], st
fld st, dword ptr [esp+0x10]
fstp dword ptr [esp], st
call 0x4333A0
fstp dword ptr [ebx+0x20], st
add esp, 0x4
mov ecx, esi
call 0x6D59F0
test eax, eax
jz 0x19
mov dword ptr [ebx+0x4], 0x2
mov edx, dword ptr [eax]
mov dword ptr [ebx+0x14], edx
mov ecx, dword ptr [eax+0x4]
mov dword ptr [ebx+0x18], ecx
mov edx, dword ptr [eax+0x8]
jmp 0x18
mov eax, dword ptr [ebx+0x8]
mov ecx, dword ptr [ebx+0xC]
mov edx, dword ptr [ebx+0x10]
mov dword ptr [ebx+0x14], eax
mov dword ptr [ebx+0x4], 0x1
mov dword ptr [ebx+0x18], ecx
push 0x1
push ebp
mov dword ptr [ebx+0x1C], edx
call LuaParam::IsString
add esp, 0x8
test al, al
jz 0x41
push edi
push 0x1
push ebp
call LuaParam::GetString
add esp, 0x8
push eax
mov ecx, 0xC2B210
call 0x487F70
fld1
mov esi, eax
lea edi, ptr [ebx+0x24]
mov ecx, 0x12
rep movsd dword ptr [edi], dword ptr [esi]
push ecx
fstp dword ptr [esp], st
push 0x2
push ebp
call LuaParam::GetFloat ; optional
fstp dword ptr [ebx+0x6C], st
add esp, 0xC
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
pop ecx
ret
push 0x1
push ebp
call LuaParam::GetFloat
fstp dword ptr [ebx+0x3C], st
push 0x2
push ebp
call LuaParam::GetFloat
fstp dword ptr [ebx+0x40], st
push 0x3
push ebp
call LuaParam::GetFloat
fstp dword ptr [ebx+0x44], st
push 0x4
push ebp
call LuaParam::GetFloat
fstp dword ptr [ebx+0x48], st
push 0x5
push ebp
call LuaParam::GetFloat
fstp dword ptr [ebx+0x4C], st
push 0x6
push ebp
call LuaParam::GetFloat
fstp dword ptr [ebx+0x50], st
push 0x7
push ebp
call LuaParam::GetFloat
fstp dword ptr [ebx+0x54], st
push 0x8
push ebp
call LuaParam::GetInt
add esp, 0x40
push 0x9
push ebp
mov dword ptr [ebx+0x58], eax
call LuaParam::GetInt
push 0xA
push ebp
mov dword ptr [ebx+0x5C], eax
call LuaParam::GetInt
push 0xB
push ebp
mov dword ptr [ebx+0x60], eax
call LuaParam::GetInt
push 0xC
push ebp
mov dword ptr [ebx+0x64], eax
call LuaParam::GetBool
fld1
add esp, 0x1C
fstp dword ptr [esp], st
push 0xD
push ebp
mov byte ptr [ebx+0x68], al
call LuaParam::GetFloat ; optional
fstp dword ptr [ebx+0x6C], st
add esp, 0xC
pop ebx
pop esi
xor eax, eax
pop ebp
pop ecx
ret
L_PedExec(nil, PedAddPedToIgnoreList, "id", gPlayer)
PedAddPedToIgnoreList(algie, gPlayer)
PedAddPedToIgnoreList(Boy, Girl)
PedAddPedToIgnoreList(car.driver, gPlayer)
PedAddPedToIgnoreList(dude.id, gPlayer)
PedAddPedToIgnoreList(edna, gPlayer)
PedAddPedToIgnoreList(Edna, gPlayer)
PedAddPedToIgnoreList(EnemyTable[index].handle, gPlayer)
PedAddPedToIgnoreList(frMidget01, gPlayer)
PedAddPedToIgnoreList(frMidget02, gPlayer)
PedAddPedToIgnoreList(gBlockBOrderly01, gJohnny)
PedAddPedToIgnoreList(gBlockBOrderly02, gJohnny)
PedAddPedToIgnoreList(gControlOrderly, gJohnny)
PedAddPedToIgnoreList(gCop1, gRussell)
PedAddPedToIgnoreList(gCop2, gPlayer)
PedAddPedToIgnoreList(gCop2, gRussell)
PedAddPedToIgnoreList(gDavis, gPlayer)
PedAddPedToIgnoreList(gGary, gPlayer)
PedAddPedToIgnoreList(gHattrick, gPlayer)
PedAddPedToIgnoreList(Girl, Boy)
PedAddPedToIgnoreList(gJohnny, gBlockBOrderly01)
PedAddPedToIgnoreList(gJohnny, gBlockBOrderly02)
PedAddPedToIgnoreList(gJohnny, gControlOrderly)
PedAddPedToIgnoreList(gOrderly01, gPlayer)
PedAddPedToIgnoreList(gOrderly02, gPlayer)
PedAddPedToIgnoreList(gOrderly03, gPlayer)
PedAddPedToIgnoreList(gOrderly04, gPlayer)
PedAddPedToIgnoreList(gPrefect, gBully01)
PedAddPedToIgnoreList(gPrefect, gRussell)
PedAddPedToIgnoreList(idNemesis, gPlayer)
PedAddPedToIgnoreList(Mascot, gPlayer)
PedAddPedToIgnoreList(nemesis, gPlayer)
PedAddPedToIgnoreList(ped, fleePed)
PedAddPedToIgnoreList(pedTad.id, pedGreaserC03.id)
PedAddPedToIgnoreList(ScenarioPed, gPlayer)
PedAddPedToIgnoreList(sheet1Bruiser, gPlayer)
PedAddPedToIgnoreList(sheet4Guard, gPlayer)
PedAddPedToIgnoreList(tblGreaser.id, gPlayer)
PedAddPedToIgnoreList(tblGreaser.id, pedLola.id)
push ebx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetInt
add esp, 0xC
mov ebx, eax
mov eax, esp
push edi
mov dword ptr [eax], 0x2
call 0x5C7380
add esp, 0x4
mov esi, eax
mov eax, esp
push ebx
mov dword ptr [eax], 0x2
call 0x5C7380
add esp, 0x8
test esi, esi
jz 0x12
test eax, eax
jz 0xE
push eax
lea ecx, ptr [esi+0x3BC]
call 0x48C0D0
pop edi
pop esi
xor eax, eax
pop ebx
ret
-- never used
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x13
push 0x1
push edi
call LuaParam::GetBool
movzx eax, al
add esp, 0x8
mov dword ptr [esi+0x60], eax
pop edi
xor eax, eax
pop esi
ret
PedAlwaysUpdateAnimation(gLackey[8].ped, true)
PedAlwaysUpdateAnimation(gord, true)
PedAlwaysUpdateAnimation(idBurton, true)
PedAlwaysUpdateAnimation(lola, true)
PedAlwaysUpdateAnimation(ped, true)
PedAlwaysUpdateAnimation(pedGirl01, true)
PedAlwaysUpdateAnimation(pedGirl02, true)
PedAlwaysUpdateAnimation(pedGirl03, true)
PedAlwaysUpdateAnimation(pedSexyGirl.id, true)
PedAlwaysUpdateAnimation(pedZoe.id, true)
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x16
push 0x1
push edi
call LuaParam::GetBool
movzx eax, al
add esp, 0x8
mov dword ptr [esi+0xE4], eax
pop edi
xor eax, eax
pop esi
ret
PedApplyDamage(Earnest, nEarnestDamage)
PedApplyDamage(Earnest, nMascotDamageRate)
PedApplyDamage(rat.id, damage)
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x18], st
add esp, 0xC
mov eax, esp
push edi
mov dword ptr [eax], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x69
fld st, dword ptr [esp+0x8]
push 0x0
push ecx
mov ecx, esi
fstp dword ptr [esp], st
call 0x47B800
fld st, dword ptr [0x900A88]
fcomp st, dword ptr [esi+0x1CB8]
fnstsw ax
test ah, 0x1
jnz 0x45
fldz
push 0x0
push ecx
fst dword ptr [esp], st
push 0xFFFFFFFF
push 0x0
push 0x1
push 0x0
mov eax, dword ptr [esi]
sub esp, 0x8
fst dword ptr [esp+0x4], st
mov edx, dword ptr [eax+0x3C]
fst dword ptr [esp], st
push 0x0
push 0x0
push 0x0
push 0x0
push 0x0
push 0x0
push 0xFFFFFFFF
push 0x0
sub esp, 0x8
fstp dword ptr [esp+0x4], st
mov ecx, esi
fld st, dword ptr [0x900490]
fstp dword ptr [esp], st
call 0x5CC3BE
pop edi
xor eax, eax
pop esi
pop ecx
ret
if PedAreaClearOfPedsInXYZ(x, testY1, z) == false or PedAreaClearOfPedsInXYZ(x, testY2, z) == false then
sub esp, 0x10
push esi
mov esi, dword ptr [esp+0x18]
push 0xBCC564
push 0x0
lea eax, ptr [esp+0x10]
push esi
push eax
call LuaParam::GetVector ; optional
fld st, dword ptr [esp+0x18]
fld st, dword ptr [0xBCC564]
add esp, 0x10
fucompp
mov byte ptr [esp+0x4], 0x0
fnstsw ax
test ah, 0x44
jp 0x28
fld st, dword ptr [esp+0xC]
fld st, dword ptr [0xBCC568]
fucompp
fnstsw ax
test ah, 0x44
jp 0x15
fld st, dword ptr [esp+0x10]
fld st, dword ptr [0xBCC56C]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x21
fld st, dword ptr [0x900484]
push 0x0
push 0xFFFFFFFF
push ecx
lea ecx, ptr [esp+0x14]
fstp dword ptr [esp], st
push ecx
call 0x48C990
add esp, 0x10
mov byte ptr [esp+0x4], al
mov edx, dword ptr [esp+0x4]
push edx
push esi
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
pop esi
add esp, 0x10
ret
-- never used
push ecx
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x14]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetString
push 0x2
push esi
mov ebx, eax
call LuaParam::GetString
add esp, 0x14
mov ebp, eax
mov eax, esp
push edi
mov dword ptr [eax], 0x2
call 0x5C7380
add esp, 0x8
lea ecx, ptr [esp+0x10]
mov esi, eax
mov eax, dword ptr [esi+0x114]
mov edi, dword ptr [eax+0x94]
push ecx
push ebx
call 0x576ED0
add esp, 0x4
push eax
mov ecx, edi
call 0x465580
mov ecx, dword ptr [0xB6F1E8]
push ebp
call 0x667B60
mov edx, dword ptr [esp+0x10]
mov ecx, dword ptr [esi+0x2E4]
movzx eax, ax
movzx eax, ax
push edx
push eax
call 0x468770
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
L_PedExec(group1, PedAttack, "id", gPlayer, 1)
L_PedExec(group1, PedAttack, "id", idBucky, 1)
L_PedExec(groupProcess, PedAttack, "id", gPlayer, 0)
L_PedExec(nil, PedAttack, "id", gPlayer)
L_PedExec(nil, PedAttack, "id", gPlayer, true, false)
L_PedExec(p_wave_scout3, PedAttack, gPlayer, 3)
PedAttack(bExtraGuy, gPlayer, 1)
PedAttack(bGreaserBoss, gPlayer, 1)
PedAttack(bJockBoss, gPlayer, 1)
PedAttack(bNerdBoss, gPlayer, 1)
PedAttack(boxer, gPlayer, 3)
PedAttack(Boxer1, Boxer2, 3)
PedAttack(Boxer2, Boxer1, 3)
PedAttack(Boxer3, PB3, 0)
PedAttack(bPreppyBoss, gPlayer, 1)
PedAttack(buddyPerv.id, gPlayer, 3)
PedAttack(buddyPervbuddy.id, gPlayer, 3)
PedAttack(dataTable[1].id, gPlayer, 0)
PedAttack(dog, gPlayer)
PedAttack(dog, gPlayer, 1)
PedAttack(dog.id, gPlayer, 1, true)
PedAttack(earnest, gPlayer, 3)
PedAttack(edgar, gPlayer, 3)
PedAttack(edgar, gPlayer, true, false)
PedAttack(egger.id, gPlayer, 3)
PedAttack(Elf1, gPlayer, 1)
PedAttack(Elf2, gPlayer, 1)
PedAttack(Elf4, gPlayer, 1)
PedAttack(Elf5, gPlayer, 1)
PedAttack(enemy, gPlayer)
PedAttack(enemy01.id, gPlayer, 3)
PedAttack(enemy02.id, gPlayer, 3)
PedAttack(entry.id, gPlayer)
PedAttack(entry.id, gPlayer, 3)
PedAttack(frMidget01, frMidget02, 3, true)
PedAttack(frMidget02, frMidget01, 3, true)
PedAttack(gAttacker, gPlayer, 3)
PedAttack(gBaddie.id, gBaddie02.id, 1)
PedAttack(gBaddie.id, gBaddie03.id, 1)
PedAttack(gBaddie.id, gPlayer, 1)
PedAttack(gBaddie02.id, gBaddie03.id, 1)
PedAttack(gBaddie02.id, gBaddie04.id, 1)
PedAttack(gBaddie02.id, gPlayer, 1)
PedAttack(gBaddie03.id, gBaddie04.id, 1)
PedAttack(gBaddie03.id, gPlayer, 1)
PedAttack(gBaddie04.id, gBaddie05.id, 1)
PedAttack(gBaddie04.id, gPlayer, 1)
PedAttack(gBaddie05.id, gBaddie06.id, 1)
PedAttack(gBaddie05.id, gPlayer, 1)
PedAttack(gBaddie06.id, gBaddie.id, 1)
PedAttack(gBaddie06.id, gBaddie05.id, 1)
PedAttack(gBaddie06.id, gPlayer, 1)
PedAttack(gBlockBOrderly01, gDOThug03, 1, true)
PedAttack(gBlockBOrderly02, gDOThug01, 1, true)
PedAttack(gBully01, gPlayer, 3)
PedAttack(gBully1, gGary)
PedAttack(gBully2, gPlayer, 1)
PedAttack(gBully3, gPlayer, 1)
PedAttack(gControlOrderly, gDOThug02, 1, true)
PedAttack(gCops[1], gPlayer, 1)
PedAttack(gCops[1], greaser1, 1, true)
PedAttack(gCops[2], gPlayer, 1)
PedAttack(gCops[3], greaser2, 1, true)
PedAttack(gFatty, gPlayer, 3)
PedAttack(gFTPed, gPlayer, 0)
PedAttack(gFTPed, gPlayer, 1)
PedAttack(gFTPed, gPlayer, 2)
PedAttack(gFTPed, gPlayer, 3)
PedAttack(gGas, gPlayer, 3)
PedAttack(gGreaser1, gPrep1, 1)
PedAttack(gGreaser2, gPrep2, 1)
PedAttack(gGreaser4, gPlayer, 1)
PedAttack(gGreaserAttacker, gPlayer, 3)
PedAttack(gGreaserAttacker, gPrep2, 1)
PedAttack(gHattrick, gPlayer)
PedAttack(gHobo, gPlayer, 3)
PedAttack(gKeyMaster, gPlayer, 1)
PedAttack(gLackey[10].ped, gPlayer, 3)
PedAttack(gLackey[8].ped, gPlayer, 0)
PedAttack(gMandy, gPlayer, 1)
PedAttack(gNerds[1], gPlayer, 1)
PedAttack(gNerds[1].id, gTablePeds[1].id, 1)
PedAttack(gNerds[1].id, gTablePeds[2].id, 1)
PedAttack(gNerds[2], gPlayer, 1)
PedAttack(gNerds[2].id, gTablePeds[1].id, 1)
PedAttack(gNerds[2].id, gTablePeds[2].id, 1)
PedAttack(gObserver, gPlayer, 3)
PedAttack(gOrderly03, gCrazy03, 3)
PedAttack(gOrderly04, gCrazy04, 3)
PedAttack(gPeanut, gPlayer, 1)
PedAttack(gPedroBully, gPedro, 3)
PedAttack(gPrep1, gGreaser1, 1)
PedAttack(gPrep2, gGreaser2, 1)
PedAttack(gRooftopPeds1[1], gPlayer, 1)
PedAttack(gRooftopPeds1[2], gPlayer, 1)
PedAttack(gRussell, bGreaserBoss, 1)
PedAttack(gRussell, bJockBoss, 1)
PedAttack(gRussell, bNerdBoss, 1)
PedAttack(gRussell, bPreppyBoss, 1)
PedAttack(gRussell, lackey1, 1)
PedAttack(gRussell, lackey2, 1)
PedAttack(gTablePeds[1].id, gNerds[1].id, 1)
PedAttack(gTablePeds[1].id, gNerds[2].id, 1)
PedAttack(gTablePeds[1].id, gPlayer, 1)
PedAttack(gTablePeds[2].id, gNerds[1].id, 1)
PedAttack(gTablePeds[2].id, gNerds[2].id, 1)
PedAttack(gTablePeds[2].id, gPlayer, 1)
PedAttack(gTablePeds[3].id, gPlayer, 1)
PedAttack(gTad, gPlayer, 3)
PedAttack(gThad, gPlayer, 3)
PedAttack(gTorch, gPlayer, 3)
PedAttack(id2ndMan, idBucky, 1)
PedAttack(idGetOffBike, pedTad.id, 3)
PedAttack(idHitMan, idBucky, 1)
PedAttack(idNorton, gPlayer, true, false)
PedAttack(idPed, gPlayer, 1)
PedAttack(idPed, idBucky, 1)
PedAttack(item.ped, gPlayer, 3)
PedAttack(lackey1, gPlayer, 1)
PedAttack(lackey1, gRussell, 1)
PedAttack(lackey2, gPlayer, 1)
PedAttack(lackey2, gRussell, 1)
PedAttack(MailMan.id, gPlayer, 1, true)
PedAttack(norton, gPlayer)
PedAttack(norton, gPlayer, true, false)
PedAttack(ped, gPlayer)
PedAttack(ped, gPlayer, 3)
PedAttack(ped, gPlayer, true, false)
PedAttack(ped.id, gPlayer, 1)
PedAttack(ped.id, gPlayer, 3)
PedAttack(ped.id, target.id, 1)
PedAttack(ped1, gPlayer)
PedAttack(ped1, gPlayer, 3)
PedAttack(ped1, melvin, 3)
PedAttack(ped1, ped2, 1)
PedAttack(ped1, ped3, 1)
PedAttack(ped2, bucky, 3)
PedAttack(ped2, gPlayer)
PedAttack(ped2, gPlayer, 3)
PedAttack(ped2, gPlayer, true, false)
PedAttack(ped2, ped, 3)
PedAttack(ped2, ped1, 1)
PedAttack(ped3, donald, 3)
PedAttack(ped4, cornelius, 3)
PedAttack(ped4, gPlayer, 3)
PedAttack(pedBulliesLeft03.id, pedAlgie.id, 1)
PedAttack(pedBulliesRight02.id, pedAlgie.id, 1)
PedAttack(pedChad.id, pedGary.id, 1)
PedAttack(pedCutBo.id, pedCutThad.id, 3)
PedAttack(pedCutBucky.id, pedCutBo.id, 3)
PedAttack(pedCutBucky.id, pedCutJuri.id, 3)
PedAttack(pedCutCasey.id, pedCutCornelius.id, 3)
PedAttack(pedCutCornelius.id, pedCutCasey.id, 3)
PedAttack(pedCutJuri.id, pedCutBucky.id, 3)
PedAttack(pedCutThad.id, pedCutBo.id, 3)
PedAttack(pedCutThad.id, pedCutJuri.id, 3)
PedAttack(pedFirstBully.id, pedAlgie.id, 1)
PedAttack(pedGreaser01.id, pedChad.id, 3)
PedAttack(pedGreaser02.id, pedChad.id, 3)
PedAttack(pedGreaser03.id, pedCornelius.id, 1)
PedAttack(pedGreaser03.id, pedCornelius.id, 3)
PedAttack(pedGreaser04.id, pedChad.id, 3)
PedAttack(pedGreaser04.id, pedCornelius.id, 1)
PedAttack(pedGreaser04.id, pedCornelius.id, 3)
PedAttack(pedGreaserA01.id, pedTad.id, false)
PedAttack(pedGreaserA02.id, pedTad.id, false)
PedAttack(pedGreaserC01.id, pedTad.id, 3)
PedAttack(pedGreaserC02.id, pedTad.id, 3)
PedAttack(pedGreaserC03.id, pedTad.id, 0)
PedAttack(pedGreaserJump1.id, pedTad.id, 3)
PedAttack(pedGreaserJump2.id, pedTad.id, 3)
PedAttack(PedID, Earnest, 3, true)
PedAttack(pedId, gPlayer, 1)
PedAttack(pedID, gPlayer, 2, true)
PedAttack(pedid, gPlayer, 3)
PedAttack(pedID, pedTad.id, 3)
PedAttack(pedID, pedTad.id, false)
PedAttack(pedID, pedTad.id, true)
PedAttack(PedID, PropCrim, 0, true, true)
PedAttack(pedJockBathroomFirstFloor01.id, pedAlgie.id, 1)
PedAttack(pedJockBathroomFirstFloor02.id, pedAlgie.id, 1)
PedAttack(pedJockBathroomSecondFloor01.id, gPlayer, 3)
PedAttack(pedJockBathroomSecondFloor02.id, gPlayer, 3)
PedAttack(pedJockPack_01.id, pedAlgie.id, 1)
PedAttack(pedJockPack_02.id, pedAlgie.id, 1)
PedAttack(pedJockPack_03.id, pedAlgie.id, 1)
PedAttack(perv.id, gPlayer, 3)
PedAttack(russell, gPlayer, 3)
PedAttack(shared.gBif, gPlayer, 1)
PedAttack(shared.gBif, gPlayer, 3)
PedAttack(shared.gdormHeadID, gPlayer, 3, true)
PedAttack(sheet2Guard, gPlayer, 1)
PedAttack(sheet3Guard, gPlayer)
PedAttack(sheet4Guard, gPlayer, 3)
PedAttack(StealthPedID, gPlayer, 3)
PedAttack(Student1, gPlayer, 1, true, true)
PedAttack(Student2, gPlayer, 1, true, true)
PedAttack(tempPed, pedChad.id, 3)
PedAttack(tEnemyID[i], tEnemyID[target], 1)
PedAttack(TestPed, gPlayer)
PedAttack(testPed[1].id, gPlayer, true, false)
PedAttack(Thug, Victim, 0, true)
PedAttack(Thug, Victim, 1, true)
PedAttack(tSecondFloorTable.justin.id, gPlayer, 1)
PedAttack(tSecondFloorTable.tad.id, gPlayer, 1)
PedAttack(tThirdFloorTable.bryce.id, gPlayer, 1)
PedAttack(tThirdFloorTable.chad.id, gPlayer, 1)
PedAttack(Victim, Thug, 0, true)
PedAttack(Victim, Thug, 1, true)
sub esp, 0xC
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x1C]
push edi
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov edi, eax
add esp, 0x8
test edi, edi
jz 0x10B
push 0x1
push esi
call LuaParam::GetInt
add esp, 0x8
test eax, eax
jnz 0x9
mov eax, dword ptr [0xC1AEA8]
jmp 0x14
push ecx
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
mov dword ptr [esp+0x10], eax
jz 0xD7
push 0x2
push esi
xor bl, bl
call LuaParam::IsInt
add esp, 0x8
test al, al
jz 0x1D
push 0x2
push esi
call LuaParam::GetInt
push 0x0
push 0x3
push esi
mov ebp, eax
call LuaParam::GetBool ; optional
add esp, 0x14
mov bl, al
jmp 0x37
push 0x1
push 0x2
push esi
call LuaParam::GetBool ; optional
push 0x1
push 0x3
push esi
mov byte ptr [esp+0x30], al
call LuaParam::GetBool ; optional
mov edx, dword ptr [esp+0x30]
mov byte ptr [esp+0x2C], al
mov ecx, dword ptr [esp+0x2C]
push ecx
push edx
lea eax, ptr [esp+0x38]
push eax
call 0x496AF0
mov ebp, dword ptr [eax]
add esp, 0x24
push 0x4
push esi
call LuaParam::IsBool
add esp, 0x8
test al, al
jz 0x1A
push 0x1
push 0x4
push esi
call LuaParam::GetBool ; optional
movzx ecx, al
add esp, 0xC
mov dword ptr [edi+0x1404], ecx
jmp 0xC
mov dword ptr [edi+0x1404], 0x0
push 0x1C
call 0x5EEAA0
add esp, 0x4
test eax, eax
jz 0x12
mov edx, dword ptr [esp+0x10]
push ebp
push edx
push edi
mov ecx, eax
call 0x470D60
jmp 0x4
xor eax, eax
test bl, bl
push eax
lea ecx, ptr [edi+0x5F0]
jz 0x11
call 0x471470
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xC
ret
call 0x471390
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xC
ret
-- never used
push ebx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov edi, dword ptr [0xC0F5F4]
push 0x1
push esi
mov ebx, eax
call LuaParam::GetInt
mov edx, dword ptr [edi+0x4]
mov ecx, eax
sar ecx, 0x8
add esp, 0x10
cmp byte ptr [ecx+edx*1], al
jnz 0x43
mov esi, dword ptr [edi+0xC]
imul esi, ecx
add esi, dword ptr [edi]
jz 0x39
push 0x14
call 0x5EEAA0
add esp, 0x4
test eax, eax
jz 0x1D
push esi
push ebx
mov ecx, eax
call 0x470DB0
push eax
lea ecx, ptr [ebx+0x5F0]
call 0x471390
xor eax, eax
pop edi
pop esi
pop ebx
ret
xor eax, eax
push eax
lea ecx, ptr [ebx+0x5F0]
call 0x471390
pop edi
pop esi
xor eax, eax
pop ebx
ret
-- never used
mov eax, dword ptr [esp+0x4]
push esi
push edi
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
fld st, dword ptr [0x900BEC]
add esp, 0x8
push 0x0
push 0x1
push 0xFFFFFFFF
push ecx
mov esi, eax
fstp dword ptr [esp], st
push esi
call 0x4D33F0
mov edi, eax
add esp, 0x14
test edi, edi
jz 0x38
push 0x14
call 0x5EEAA0
add esp, 0x4
test eax, eax
jz 0x1C
push edi
push esi
mov ecx, eax
call 0x470DB0
push eax
lea ecx, ptr [esi+0x5F0]
call 0x471390
xor eax, eax
pop edi
pop esi
ret
xor eax, eax
push eax
lea ecx, ptr [esi+0x5F0]
call 0x471390
pop edi
xor eax, eax
pop esi
ret
L_PedExec("ambush03", PedAttackPlayer, "id")
L_PedExec("first_wave", PedAttackPlayer, "id")
L_PedExec(strGroup, PedAttackPlayer, "id")
name = "PedAttackPlayer",
PedAttackPlayer(attacker.id)
PedAttackPlayer(candyPed1)
PedAttackPlayer(candyPed2)
PedAttackPlayer(currentPed.id, 0)
PedAttackPlayer(edgar)
PedAttackPlayer(enemy, 3)
PedAttackPlayer(enemy.id)
PedAttackPlayer(fatty, 3)
PedAttackPlayer(gAngryJock01)
PedAttackPlayer(gAngryJock02)
PedAttackPlayer(gCannonNerd, 3)
PedAttackPlayer(gCSBully)
PedAttackPlayer(gDuncan, 1)
PedAttackPlayer(gEdnaGuard, 0, true)
PedAttackPlayer(gEnemy01)
PedAttackPlayer(gEnemy02)
PedAttackPlayer(gEnemy03)
PedAttackPlayer(gGary)
PedAttackPlayer(gHallMon, 0, true)
PedAttackPlayer(gHattrick, 0, true)
PedAttackPlayer(gHattrick, 1, true)
PedAttackPlayer(gJV_OnGround, 3, true)
PedAttackPlayer(gLeon, 1)
PedAttackPlayer(GreaserThief.id, 3)
PedAttackPlayer(GreaserThief.id1, 3)
PedAttackPlayer(GreaserThief.id2, 3)
PedAttackPlayer(GreaserThief.id3, 3)
PedAttackPlayer(GreaserThief.id4, 3)
PedAttackPlayer(gSidelines[1])
PedAttackPlayer(gSidelines[4], 3)
PedAttackPlayer(gSidelines[7], 3)
PedAttackPlayer(gSpawned01, 3)
PedAttackPlayer(gSpawned02, 3)
PedAttackPlayer(gSpawned03, 3)
PedAttackPlayer(gSpawned04, 3)
PedAttackPlayer(gSpawned05, 3)
PedAttackPlayer(gSpawned06, 3)
PedAttackPlayer(gTed)
PedAttackPlayer(guy, 1)
PedAttackPlayer(guy, 3)
PedAttackPlayer(guy.id, 3)
PedAttackPlayer(idBryce.id, 3, true)
PedAttackPlayer(idDarby)
PedAttackPlayer(idDO, 3)
PedAttackPlayer(idGord.id, 3, true)
PedAttackPlayer(idHobo, 0)
PedAttackPlayer(idJustin.id, 3, true)
PedAttackPlayer(idOmar)
PedAttackPlayer(idPed)
PedAttackPlayer(idPreppy, 1)
PedAttackPlayer(iGreaser01)
PedAttackPlayer(iGreaser02)
PedAttackPlayer(iGreaser03)
PedAttackPlayer(item.elf, 3)
PedAttackPlayer(nerd.id, 3)
PedAttackPlayer(opponent)
PedAttackPlayer(ped)
PedAttackPlayer(ped, 1)
PedAttackPlayer(ped, 3)
PedAttackPlayer(pedBryce, 1)
PedAttackPlayer(pedBryce, 3)
PedAttackPlayer(pedBulliesLeft01.id, 1)
PedAttackPlayer(pedBulliesLeft02.id, 1)
PedAttackPlayer(pedBulliesRight01.id, 1)
PedAttackPlayer(pedBulliesRight02.id, 1)
PedAttackPlayer(pedConstantine.id, 3)
PedAttackPlayer(pedEunice.id, 3)
PedAttackPlayer(pedGalloway.id, 3)
PedAttackPlayer(pedGord, 1)
PedAttackPlayer(pedGreaser01.id, 3)
PedAttackPlayer(pedGreaser02.id, 3)
PedAttackPlayer(pedGreaser04.id, 3)
PedAttackPlayer(pedGreaser06.id, 3)
PedAttackPlayer(pedHattrick.id, 3)
PedAttackPlayer(pedHeadmistress.id, 3)
PedAttackPlayer(pedId)
PedAttackPlayer(pedId, 0)
PedAttackPlayer(pedid, 1)
PedAttackPlayer(pedID, 3)
PedAttackPlayer(pedJock.id, 3)
PedAttackPlayer(pedJockBathroomFirstFloor01.id, 1)
PedAttackPlayer(pedJockPushup01.id, 3)
PedAttackPlayer(pedJockSmoke.id, 3)
PedAttackPlayer(pedJockSprint01.id, 3)
PedAttackPlayer(pedKlepto.id, 3)
PedAttackPlayer(pedMascot.id, 3)
PedAttackPlayer(pedNorton.id, 3)
PedAttackPlayer(pedPrefectKarl.id, 3)
PedAttackPlayer(pedPrep.id, 3)
PedAttackPlayer(pGord)
PedAttackPlayer(prepId)
PedAttackPlayer(rider01, 3)
PedAttackPlayer(rider02, 3)
PedAttackPlayer(runningGreaser)
PedAttackPlayer(shared.idDog, 0)
PedAttackPlayer(sheet1Bruiser)
PedAttackPlayer(sheet1Guard)
PedAttackPlayer(sheet2Goon1, 1)
PedAttackPlayer(tblEntry.id)
PedAttackPlayer(tblGord.id, 3)
PedAttackPlayer(tblPeanut.id, 3)
PedAttackPlayer(tblPeanut.id2, 3)
PedAttackPlayer(tblPrep1.id, 3)
PedAttackPlayer(tdo)
PedAttackPlayer(treePedID, 3)
sub esp, 0x8
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x18]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
xor bl, bl
call LuaParam::IsInt
add esp, 0x10
test al, al
push 0x1
jz 0x1B
push esi
call LuaParam::GetInt
push 0x0
push 0x2
push esi
mov ebp, eax
call LuaParam::GetBool ; optional
add esp, 0x14
mov bl, al
jmp 0x35
push 0x1
push esi
call LuaParam::GetBool ; optional
push 0x1
push 0x2
push esi
mov byte ptr [esp+0x2C], al
call LuaParam::GetBool ; optional
mov ecx, dword ptr [esp+0x2C]
mov byte ptr [esp+0x28], al
mov eax, dword ptr [esp+0x28]
push eax
push ecx
lea edx, ptr [esp+0x34]
push edx
call 0x496AF0
mov ebp, dword ptr [eax]
add esp, 0x24
push ecx
mov eax, esp
push edi
mov dword ptr [eax], 0x2
call 0x5C7380
add esp, 0x4
mov esi, eax
mov eax, esp
push 0x0
mov dword ptr [eax], 0x3
call 0x5C7380
push 0x1C
mov edi, eax
call 0x5EEAA0
add esp, 0xC
test eax, eax
jz 0xE
push ebp
push edi
push esi
mov ecx, eax
call 0x470D60
jmp 0x4
xor eax, eax
test bl, bl
push eax
lea ecx, ptr [esi+0x5F0]
jz 0x11
call 0x471470
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8
ret
call 0x471390
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x8
ret
PedAttackProp(entry.id, newTargetProp)
PedAttackProp(iGreaser01, TRIGGER._3_S09_DUMPSTER01)
PedAttackProp(iGreaser02, TRIGGER._3_S09_DUMPSTER01)
PedAttackProp(iGreaser03, TRIGGER._3_S09_DUMPSTER01)
PedAttackProp(ped, targetProp)
PedAttackProp(ped1, TRIGGER._SMALLCRATE10)
PedAttackProp(ped1, TRIGGER._SMALLCRATE3)
PedAttackProp(ped1, TRIGGER._SMALLCRATE5)
sub esp, 0x8
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x18]
push edi
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
mov dword ptr [esp+0x10], eax
jz 0xFE
push 0x1
push esi
call LuaParam::GetInt
add esp, 0x8
test eax, eax
jnl 0x6
xor ecx, ecx
jmp 0x1D
mov edx, dword ptr [0x20C7C48]
mov ecx, dword ptr [edx+0x4]
test byte ptr [eax+ecx*1], 0x80
jz 0x6
xor ecx, ecx
jmp 0xA
mov ecx, dword ptr [edx+0xC]
imul ecx, eax
add ecx, dword ptr [edx]
push ecx
call 0x4EA3C0
add esp, 0x4
test eax, eax
mov dword ptr [esp+0x14], eax
jz 0xBB
push 0x2
push esi
xor bl, bl
mov edi, 0x3
call LuaParam::IsInt
add esp, 0x8
test al, al
jz 0x1B
push 0x2
push esi
call LuaParam::GetInt
push 0x0
push 0x3
push esi
mov edi, eax
call LuaParam::GetBool ; optional
add esp, 0x14
mov bl, al
push 0x28
call 0x5EEAA0
mov ebp, eax
add esp, 0x4
test ebp, ebp
jz 0x53
fldz
push ecx
fstp dword ptr [esp], st
push 0x6
push esi
call LuaParam::GetFloat ; optional
fstp dword ptr [esp+0x8], st
fldz
add esp, 0x4
fstp dword ptr [esp], st
push 0x5
push esi
call LuaParam::GetFloat ; optional
fstp dword ptr [esp+0x8], st
fldz
add esp, 0x4
fstp dword ptr [esp], st
push 0x4
push esi
call LuaParam::GetFloat ; optional
fstp dword ptr [esp+0x8], st
mov edx, dword ptr [esp+0x28]
mov esi, dword ptr [esp+0x24]
add esp, 0x8
push edi
push edx
push esi
mov ecx, ebp
call 0x470E50
jmp 0x8
mov esi, dword ptr [esp+0x10]
xor eax, eax
test bl, bl
push eax
lea ecx, ptr [esi+0x5F0]
jz 0x11
call 0x471470
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8
ret
call 0x471390
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x8
ret
--print(">>>[RUI]", "!!PedAttackPropOffset tx, ty: " .. tostring(tx) .. ", " .. tostring(ty))
PedAttackPropOffset(gPlayer, TRIGGER._DUNKBTTN, tx, ty)
sub esp, 0x40
push ebx
push esi
push edi
mov edi, dword ptr [esp+0x50]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x190
push 0x1
push edi
call LuaParam::GetInt
add esp, 0x8
test eax, eax
jnl 0x6
xor ecx, ecx
jmp 0x1D
mov edx, dword ptr [0x20C7C48]
mov ecx, dword ptr [edx+0x4]
test byte ptr [eax+ecx*1], 0x80
jz 0x6
xor ecx, ecx
jmp 0xA
mov ecx, dword ptr [edx+0xC]
imul ecx, eax
add ecx, dword ptr [edx]
push ecx
call 0x4EA3C0
mov ebx, eax
add esp, 0x4
test ebx, ebx
jz 0x14F
push 0x2
push edi
call LuaParam::GetFloat
fstp dword ptr [esp+0x14], st
push 0x3
push edi
call LuaParam::GetFloat
fstp dword ptr [esp+0x28], st
mov eax, dword ptr [esi+0x14]
add esp, 0x10
test eax, eax
jz 0x18
mov edx, dword ptr [eax]
mov dword ptr [esp+0x1C], edx
mov ecx, dword ptr [eax+0x4]
mov dword ptr [esp+0x20], ecx
mov edx, dword ptr [eax+0x8]
mov dword ptr [esp+0x24], edx
jmp 0xF
lea eax, ptr [esp+0x1C]
push eax
lea ecx, ptr [esi+0x4]
call 0x473600
fld st, dword ptr [esp+0x1C]
mov eax, dword ptr [esi+0x14]
test eax, eax
fld st, dword ptr [esp+0xC]
fld st, st(0)
fmulp st(2), st
fxch st, st(1)
fstp dword ptr [esp+0xC], st
fld st, dword ptr [esp+0x20]
fmul st, st(1)
fstp dword ptr [esp+0x10], st
fmul st, dword ptr [esp+0x24]
fstp dword ptr [esp+0x14], st
fld st, dword ptr [esp+0xC]
fstp dword ptr [esp+0x34], st
fld st, dword ptr [esp+0x10]
fstp dword ptr [esp+0x38], st
fld st, dword ptr [esp+0x14]
fstp dword ptr [esp+0x3C], st
jz 0x19
mov ecx, dword ptr [eax+0x20]
mov edx, dword ptr [eax+0x24]
mov eax, dword ptr [eax+0x28]
mov dword ptr [esp+0x1C], ecx
mov dword ptr [esp+0x20], edx
mov dword ptr [esp+0x24], eax
jmp 0x12
fldz
fst dword ptr [esp+0x1C], st
fstp dword ptr [esp+0x20], st
fld1
fstp dword ptr [esp+0x24], st
fld st, dword ptr [esp+0x1C]
lea ecx, ptr [esp+0x28]
fld st, dword ptr [esp+0x18]
push ecx
fld st, st(0)
lea edx, ptr [esp+0x38]
fmulp st(2), st
push edx
fxch st, st(1)
lea eax, ptr [esp+0x48]
push eax
fstp dword ptr [esp+0x24], st
fld st, dword ptr [esp+0x2C]
fmul st, st(1)
fstp dword ptr [esp+0x20], st
fmul st, dword ptr [esp+0x30]
fstp dword ptr [esp+0x1C], st
fld st, dword ptr [esp+0x24]
fstp dword ptr [esp+0x34], st
fld st, dword ptr [esp+0x20]
fstp dword ptr [esp+0x38], st
fld st, dword ptr [esp+0x1C]
fstp dword ptr [esp+0x3C], st
call 0x4129A0
push 0x28
call 0x5EEAA0
add esp, 0x10
test eax, eax
jz 0x30
fld st, dword ptr [esp+0x48]
sub esp, 0x10
fstp dword ptr [esp+0xC], st
mov edx, esp
fld st, dword ptr [esp+0x54]
mov ecx, eax
fstp dword ptr [esp+0x8], st
fld st, dword ptr [esp+0x50]
mov dword ptr [edx], 0x3
fstp dword ptr [esp+0x4], st
push ebx
push esi
call 0x470E50
jmp 0x4
xor eax, eax
push eax
lea ecx, ptr [esi+0x5F0]
call 0x471390
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x40
ret
PedAutoCover(guy, gPlayer)
push esi
mov esi, dword ptr [esp+0x8]
push edi
push 0x0
push esi
call LuaParam::IsInt
add esp, 0x8
test al, al
jnz 0x6
xor edi, edi
jmp 0x20
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
mov edi, eax
push 0x1
push esi
call LuaParam::IsInt
add esp, 0x8
test al, al
jz 0x1E
push 0x1
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
test edi, edi
jz 0x44
push 0x6C
call 0x5EEAA0
add esp, 0x4
test eax, eax
jz 0x28
push 0x0
push ecx
mov edx, esp
push 0x0
push edi
mov ecx, eax
mov dword ptr [edx], 0x3
call 0x4710B0
push eax
lea ecx, ptr [edi+0x5F0]
call 0x471390
xor eax, eax
pop edi
pop esi
ret
xor eax, eax
push eax
lea ecx, ptr [edi+0x5F0]
call 0x471390
pop edi
xor eax, eax
pop esi
ret
PedBikeBrawl(ped.id)
PedBikeBrawl(tblGordWH.id)
PedBikeBrawl(tblGreaser1WH.id)
PedBikeBrawl(tblGreaser2WH.id)
PedBikeBrawl(tblJohnnyWH.id)
PedBikeBrawl(tblPrep1WH.id)
PedBikeBrawl(tblPrep2WH.id)
mov eax, dword ptr [esp+0x4]
push esi
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x36
push 0x10
call 0x5EEAA0
add esp, 0x4
test eax, eax
jz 0x1A
push esi
mov ecx, eax
call 0x46FF00
push eax
lea ecx, ptr [esi+0x5F0]
call 0x471470
xor eax, eax
pop esi
ret
xor eax, eax
push eax
lea ecx, ptr [esi+0x5F0]
call 0x471470
xor eax, eax
pop esi
ret
CLIENT
Returns true if a ped should be able to get into a vehicle. If no seat is given, zero is assumed.
It is possible for multiple peds to be warped into the same vehicle and corrupt memory, so use this before warping.
bPlayerIsSpotted = PedCanSeeObject(gord, gPlayer, 3) or PedCanSeeObject(lola, gPlayer, 3)
elseif not bJock2Fight and (PedCanSeeObject(gTablePeds[2].id, gPlayer, 3) or PedIsHit(gTablePeds[2].id, 2, 1000)) then
elseif not bJock3Fight and (PedCanSeeObject(gTablePeds[3].id, gPlayer, 3) or PedIsHit(gTablePeds[3].id, 2, 1000)) then
elseif PedCanSeeObject(entry, gPlayer, 3) and PlayerIsInTrigger(TRIGGER._TRIGGERBACKALLEY) then
elseif PedCanSeeObject(gOrderly02, gPlayer, 3) then
elseif PedCanSeeObject(gOrderly03, gPlayer, 3) then
elseif PedCanSeeObject(gOrderly04, gPlayer, 3) then
elseif PedCanSeeObject(pedLibrarian.id, gPlayer, 3) or PedIsHit(pedLibrarian.id, 2, 500) then
if bBustPlayer and AreaGetVisible() == 35 and PedIsValid(shared.gdormHeadID) and (PedCanSeeObject(shared.gdormHeadID, gPlayer, 3) or PedIsHit(shared.gdormHeadID, 2, 500)) then
if DistanceBetweenCoords2d(Px, Py, Gx, Gy) >= 15 and not PedCanSeeObject(gPlayer, idNemesis, 2) then
if not attacking and ped2 ~= nil and not PedIsDead(ped2) and PedCanSeeObject(ped2, gPlayer, 3) then
if not bAlgieWasAttackedAgain and bAlgieCleanupTags and (PedCanSeeObject(gPlayer, algie, 2) and PlayerIsInAreaObject(algie, 2, 10, 0) or PedIsHit(algie, 2, 1000) and PedGetWhoHitMeLast(algie) == gPlayer) and 0 < PedGetHealth(algie) then
if not bBuckyHiding and (PedIsValid(gGateBully01) and PedCanSeeObject(idBucky, gGateBully01, 2) or PedIsValid(gGateBully02) and PedCanSeeObject(idBucky, gGateBully02, 2)) then
if not bCrazy01Caught and PedCanSeeObject(Crazy01, gPlayer, 2) and not bCrazy01SpotPlayer then
if not bCrazy02Caught and PedCanSeeObject(Crazy02, gPlayer, 2) and not bCrazy02SpotPlayer then
if not bJock1Fight and (PedCanSeeObject(gTablePeds[1].id, gPlayer, 3) or PedIsHit(gTablePeds[1].id, 2, 1000)) then
if not bNerd1Dance and PedCanSeeObject(gPlayer, gNerds[1].id, 2) then
if not bNerd2Dance and PedCanSeeObject(gPlayer, gNerds[2].id, 2) then
if not bPrepAttackedPlayer and PedIsValid(pedPrep.id) and PedCanSeeObject(pedPrep.id, gPlayer, 3) then
if not bSeenJimmyEunice and PedCanSeeObject(idPinky.id, gPlayer, 2) and PedCanSeeObject(idPinky.id, idEunice.id, 2) then
if not gEdnaAfterPlayer and not PedGetFlag(gLackey[8].ped, 33) and (gTurnEdnaIntoStealth or not PedCanSeeObject(gLackey[8].ped, gPlayer, 3)) then
if not PedCanSeeObject(gPlayer, RoguePed, 2) then
if ped1 ~= nil and not PedIsDead(ped1) and PedCanSeeObject(ped1, gPlayer, 3) then
if PedCanSeeObject(enemy, gPlayer, 3) then
if PedCanSeeObject(gFrontDeskOrderly, gPlayer, 3) then
if PedCanSeeObject(gInOrderly01, gPlayer, 3) then
if PedCanSeeObject(gInOrderly02, gPlayer, 3) then
if PedCanSeeObject(gMandy, gPlayer, 3) then
if PedCanSeeObject(gOrderly01, gPlayer, 3) then
if PedCanSeeObject(gPlayer, prank.id, 2) then
if PedCanSeeObject(pedID, gPlayer, 3) then
if PedCanSeeObject(shared.gdormHeadID, gPlayer, 3) or PedIsHit(shared.gdormHeadID, 2, 500) then
if PedIsValid(pedTad.id) and PedCanSeeObject(pedTad.id, gPlayer, 3) and PlayerIsInTrigger(TRIGGER._TRIGGERBACKALLEY) then
while not (PedCanSeeObject(ped1, gPlayer, 3) or PedIsHit(ped1, 2, 1000) or PlayerIsInTrigger(TRIGGER._3_05_STARTCATWALK)) do
while PedCanSeeObject(gord, gPlayer, 3) or PedCanSeeObject(lola, gPlayer, 3) do
push ecx
push ebx
push esi
mov esi, dword ptr [esp+0x10]
push edi
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov edi, eax
add esp, 0x8
test edi, edi
jnz 0x7
pop edi
pop esi
pop ebx
pop ecx
ret
push 0x1
push esi
call LuaParam::GetInt
push 0x2
push esi
mov ebx, eax
call LuaParam::GetInt
push 0x0
push 0x0
push eax
push ebx
call 0x5C28D0
add esp, 0x20
push eax
lea ecx, ptr [edi+0xA64]
call 0x48D470
mov byte ptr [esp+0xC], al
mov eax, dword ptr [esp+0xC]
push eax
push esi
call LuaParam::PushBool
add esp, 0x8
pop edi
pop esi
mov eax, 0x1
pop ebx
pop ecx
ret
PedCanTeleportOnAreaTransition(CrateCheerer, false)
PedCanTeleportOnAreaTransition(gInOrderly01, false)
PedCanTeleportOnAreaTransition(gInOrderly02, false)
PedCanTeleportOnAreaTransition(LastJumper01, false)
PedCanTeleportOnAreaTransition(LastJumper02, false)
PedCanTeleportOnAreaTransition(LastRunner01, false)
PedCanTeleportOnAreaTransition(LastRunner02, false)
PedCanTeleportOnAreaTransition(pedBulliesLeft01.id, false)
PedCanTeleportOnAreaTransition(pedBulliesLeft02.id, false)
PedCanTeleportOnAreaTransition(pedBulliesLeft03.id, false)
PedCanTeleportOnAreaTransition(pedBulliesRight01.id, false)
PedCanTeleportOnAreaTransition(pedBulliesRight02.id, false)
PedCanTeleportOnAreaTransition(pedFirstBully.id, false)
PedCanTeleportOnAreaTransition(pedLibrarian.id, false)
push esi
mov esi, dword ptr [esp+0x8]
push edi
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
push 0x1
push esi
mov edi, eax
call LuaParam::GetBool
add esp, 0x10
mov byte ptr [edi+0x1C99], al
pop edi
xor eax, eax
pop esi
ret
-- never used
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x28]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov ebx, eax
call LuaParam::GetInt
add esp, 0x10
push eax
mov ecx, 0xBC5E7C
call 0x6D6450
mov edi, eax
mov ecx, edi
call 0x6D59B0
mov ecx, edi
mov ebp, eax
call 0x6D59B0
fld st, dword ptr [eax+0x1C]
fstp dword ptr [esp+0x1C], st
movsx edi, byte ptr [edi+0xC]
fld st, dword ptr [esp+0x1C]
push 0x2
fmul st, qword ptr [0x900160]
push esi
fdiv st, qword ptr [0x900158]
fstp dword ptr [esp+0x20], st
call LuaParam::GetFloat
fstp dword ptr [esp+0x1C], st
push 0x3
push esi
call LuaParam::GetString
push 0x4
push esi
mov dword ptr [esp+0x28], eax
call LuaParam::GetString
fld st, dword ptr [esp+0x2C]
add esp, 0x18
push 0x0
push 0xFFFFFFFF
push 0x0
push 0xFFFFFFFF
push 0x0
push 0x0
push 0x0
push ecx
mov ecx, esp
push 0x0
push 0x0
push 0xFFFFFFFF
push 0x5
push ecx
mov dword ptr [ecx], 0x0
mov ecx, esp
push eax
mov eax, dword ptr [esp+0x48]
push eax
sub esp, 0x8
fstp dword ptr [esp+0x4], st
mov dword ptr [ecx], 0x0
fld st, dword ptr [esp+0x5C]
mov ecx, 0xBCD098
fstp dword ptr [esp], st
push ebp
push edi
push ebx
call 0x4246E0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
-- never used
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x28]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov ebx, eax
call LuaParam::GetInt
add esp, 0x10
push eax
mov ecx, 0xBC5E7C
call 0x6D6450
mov edi, eax
mov ecx, edi
call 0x6D59B0
mov ecx, edi
mov ebp, eax
call 0x6D59B0
fld st, dword ptr [eax+0x1C]
fstp dword ptr [esp+0x1C], st
movsx edi, byte ptr [edi+0xC]
fld st, dword ptr [esp+0x1C]
push 0x2
fmul st, qword ptr [0x900160]
push esi
fdiv st, qword ptr [0x900158]
fstp dword ptr [esp+0x20], st
call LuaParam::GetFloat
fstp dword ptr [esp+0x1C], st
push 0x3
push esi
call LuaParam::GetString
push 0x4
push esi
mov dword ptr [esp+0x28], eax
call LuaParam::GetString
fld st, dword ptr [esp+0x2C]
add esp, 0x18
push 0x0
push 0xFFFFFFFF
push 0x0
push 0xFFFFFFFF
push 0x0
push 0x0
push 0x0
push ecx
mov ecx, esp
push 0x0
push 0x0
push 0xFFFFFFFF
push 0x5
push ecx
mov dword ptr [ecx], 0x0
mov ecx, esp
push eax
mov eax, dword ptr [esp+0x48]
push eax
sub esp, 0x8
fstp dword ptr [esp+0x4], st
mov dword ptr [ecx], 0x0
fld st, dword ptr [esp+0x5C]
mov ecx, 0xBCD098
fstp dword ptr [esp], st
push ebp
push edi
push ebx
call 0x4246E0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
L_PedExec("ambush01", PedClearAllWeapons, "id")
L_PedExec("ambush02", PedClearAllWeapons, "id")
L_PedExec("ambush03", PedClearAllWeapons, "id")
L_PedExec("ambush05", PedClearAllWeapons, "id")
L_PedExec("gymjocks", PedClearAllWeapons, "id")
L_PedExec("spectator", PedClearAllWeapons, "id")
L_PedExec(enemyteamGroup, PedClearAllWeapons, "id")
L_PedExec(myteamGroup, PedClearAllWeapons, "id")
L_PedExec(nil, PedClearAllWeapons, "id")
L_PedExec(p_wave1, PedClearAllWeapons, "id")
L_PedExec(p_wave2, PedClearAllWeapons, "id")
L_PedExec(p_wave3, PedClearAllWeapons, "id")
L_PedExec(p_wave4, PedClearAllWeapons, "id")
PedClearAllWeapons(algie)
PedClearAllWeapons(Boy)
PedClearAllWeapons(char)
PedClearAllWeapons(char2)
PedClearAllWeapons(char3)
PedClearAllWeapons(char4)
PedClearAllWeapons(charID)
PedClearAllWeapons(climber)
PedClearAllWeapons(Crazy01)
PedClearAllWeapons(Crazy02)
PedClearAllWeapons(driver)
PedClearAllWeapons(egger.id)
PedClearAllWeapons(endPed)
PedClearAllWeapons(entry)
PedClearAllWeapons(entry.id)
PedClearAllWeapons(frMidget01)
PedClearAllWeapons(frMidget02)
PedClearAllWeapons(gBucky)
PedClearAllWeapons(gCannonNerd)
PedClearAllWeapons(gClerk)
PedClearAllWeapons(gDo07[1])
PedClearAllWeapons(gDo07[2])
PedClearAllWeapons(gDo08[1])
PedClearAllWeapons(gDo08[2])
PedClearAllWeapons(gDOThug01)
PedClearAllWeapons(gDOThug02)
PedClearAllWeapons(gDOThug03)
PedClearAllWeapons(gDuncan)
PedClearAllWeapons(gEnemies[index].id)
PedClearAllWeapons(gEnemy01)
PedClearAllWeapons(gEnemy02)
PedClearAllWeapons(gEnemy03)
PedClearAllWeapons(gFenwick)
PedClearAllWeapons(gGreaser1)
PedClearAllWeapons(Girl)
PedClearAllWeapons(gLeon)
PedClearAllWeapons(gNerds[1].id)
PedClearAllWeapons(gNerds[2].id)
PedClearAllWeapons(gPeds[4])
PedClearAllWeapons(gPlayer)
PedClearAllWeapons(gPrefect1)
PedClearAllWeapons(gTablePeds[1].id)
PedClearAllWeapons(gTablePeds[2].id)
PedClearAllWeapons(gTed)
PedClearAllWeapons(idBucky)
PedClearAllWeapons(idConst.id)
PedClearAllWeapons(idDarby)
PedClearAllWeapons(idDO)
PedClearAllWeapons(idGord.id)
PedClearAllWeapons(idPed)
PedClearAllWeapons(idPetey.id)
PedClearAllWeapons(Janitor)
PedClearAllWeapons(jock1)
PedClearAllWeapons(jock2)
PedClearAllWeapons(Mascot)
PedClearAllWeapons(nerd.id)
PedClearAllWeapons(newKid)
PedClearAllWeapons(newParent)
PedClearAllWeapons(outroPedA)
PedClearAllWeapons(outroPedB)
PedClearAllWeapons(outroPedC)
PedClearAllWeapons(Ped)
PedClearAllWeapons(ped)
PedClearAllWeapons(ped.id)
PedClearAllWeapons(ped1)
PedClearAllWeapons(ped2)
PedClearAllWeapons(pedCornelius.id)
PedClearAllWeapons(pedCutBo.id)
PedClearAllWeapons(pedCutCasey.id)
PedClearAllWeapons(pedCutDan.id)
PedClearAllWeapons(pedCutJuri.id)
PedClearAllWeapons(pedCutKirby.id)
PedClearAllWeapons(pedGary.id)
PedClearAllWeapons(pedGord)
PedClearAllWeapons(pedGreaser01.id)
PedClearAllWeapons(pedGreaser02.id)
PedClearAllWeapons(pedJockBathroomSecondFloor01.id)
PedClearAllWeapons(pedJockBathroomSecondFloor02.id)
PedClearAllWeapons(pedKlepto.id)
PedClearAllWeapons(pedMascot.id)
PedClearAllWeapons(pedPoolPrep.id)
PedClearAllWeapons(prank.id)
PedClearAllWeapons(puker)
PedClearAllWeapons(racer.id)
PedClearAllWeapons(ScenarioPed)
PedClearAllWeapons(scout)
PedClearAllWeapons(scout2)
PedClearAllWeapons(sheet1Bruiser)
PedClearAllWeapons(sheet1Guard)
PedClearAllWeapons(sheet3Guard)
PedClearAllWeapons(spud_nerd)
PedClearAllWeapons(tableEntry.id)
PedClearAllWeapons(tblPrank[PrankToCreate].id)
PedClearAllWeapons(tblRaceInfo.race.countdown_ped.id)
PedClearAllWeapons(Thug)
PedClearAllWeapons(tPed)
mov eax, dword ptr [esp+0x4]
push esi
push edi
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x4
mov edx, eax
neg edx
sbb edx, edx
mov ecx, esp
add edx, 0x3
push eax
mov dword ptr [ecx], edx
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x62
mov ecx, dword ptr [esi+0x1D0]
call 0x4D9410
mov eax, dword ptr [esi+0x2E0]
cmp byte ptr [eax+0x33C], 0x0
lea edi, ptr [eax+0x300]
jz 0x25
lea ecx, ptr [eax+0x258]
call 0x5F40A0
mov eax, dword ptr [esi+0x2E0]
mov ecx, dword ptr [eax+0x4B0]
push ecx
mov ecx, edi
call 0x5F3830
mov byte ptr [edi+0x3C], 0x0
mov ecx, dword ptr [esi+0x1C4]
call 0x45D190
mov edx, dword ptr [esi+0x2E0]
or eax, 0xFFFFFFFF
mov dword ptr [edx+0x18], eax
mov dword ptr [esi+0x1574], eax
pop edi
xor eax, eax
pop esi
ret
-- never used
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
jz 0xD
lea ecx, ptr [eax+0x358]
call 0x499B70
xor eax, eax
ret
PedClearFocus(gRussell.id)
PedClearFocus(pedGary.id)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
jz 0xF
push 0x0
lea ecx, ptr [eax+0x3BC]
call 0x48C4C0
xor eax, eax
ret
-- never used
mov eax, dword ptr [esp+0x4]
push esi
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
jz 0x1E
lea esi, ptr [eax+0x1E08]
mov eax, dword ptr [esi]
test eax, eax
jz 0x12
push esi
push eax
call 0x4657E0
add esp, 0x8
mov dword ptr [esi], 0x0
xor eax, eax
pop esi
ret
PedClearHasAggressed(gPlayer)
PedClearHasAggressed(ped)
PedClearHasAggressed(pedid)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
jz 0x9
mov byte ptr [eax+0x5D8], 0x0
xor eax, eax
ret
PedClearHitRecord(gCrazy01)
PedClearHitRecord(gFatty)
PedClearHitRecord(gMandy)
PedClearHitRecord(idBucky)
PedClearHitRecord(idGord.id)
PedClearHitRecord(lVictim[vIndex])
PedClearHitRecord(ped)
PedClearHitRecord(pedID)
PedClearHitRecord(shared.gEdnaID)
PedClearHitRecord(sweater_guard)
mov eax, dword ptr [esp+0x4]
push esi
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x43
mov edx, dword ptr [esi]
mov eax, dword ptr [edx+0x40]
mov ecx, esi
call 0x5CFF70
mov eax, dword ptr [eax+0x10]
mov byte ptr [eax+0x68], 0x0
mov dword ptr [eax+0x64], 0x0
mov byte ptr [eax+0x34], 0x0
mov edx, dword ptr [esi]
mov eax, dword ptr [edx+0x40]
mov ecx, esi
call 0x5CFF8B
mov esi, dword ptr [eax+0x10]
mov eax, dword ptr [esi+0x4]
add esi, 0x4
test eax, eax
jz 0x12
push esi
push eax
call 0x4657E0
add esp, 0x8
mov dword ptr [esi], 0x0
xor eax, eax
pop esi
ret
-- never used
push ebx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetInt
add esp, 0xC
mov ebx, eax
mov eax, esp
push edi
mov dword ptr [eax], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x17
push ebx
lea ecx, ptr [esi+0x5F0]
call 0x470200
push 0x0
mov ecx, esi
call 0x497520
pop edi
pop esi
xor eax, eax
pop ebx
ret
L_PedExec(group1, PedClearObjectives, "id")
name = "PedClearObjectives",
PedClearObjectives(a)
PedClearObjectives(algie)
PedClearObjectives(ambientLola)
PedClearObjectives(attacker.id)
PedClearObjectives(beatrice)
PedClearObjectives(bioTeacher)
PedClearObjectives(boxer)
PedClearObjectives(Bum)
PedClearObjectives(bum)
PedClearObjectives(buster)
PedClearObjectives(char)
PedClearObjectives(chemTeach)
PedClearObjectives(client.id)
PedClearObjectives(climber)
PedClearObjectives(clint)
PedClearObjectives(CoachBurton.id)
PedClearObjectives(Crazy01)
PedClearObjectives(Crazy02)
PedClearObjectives(currentPed.id)
PedClearObjectives(damon)
PedClearObjectives(dan)
PedClearObjectives(DirtyCop)
PedClearObjectives(Dog)
PedClearObjectives(dude)
PedClearObjectives(edgar)
PedClearObjectives(Edna)
PedClearObjectives(edna)
PedClearObjectives(enemy02.id)
PedClearObjectives(EnemyTable[i].handle)
PedClearObjectives(entry.id)
PedClearObjectives(FireMan)
PedClearObjectives(FireManS2)
PedClearObjectives(frMidget01)
PedClearObjectives(frMidget02)
PedClearObjectives(galloway)
PedClearObjectives(GateNerd.id)
PedClearObjectives(gBaddie.id)
PedClearObjectives(gBaddie02.id)
PedClearObjectives(gBaddie03.id)
PedClearObjectives(gBaddie04.id)
PedClearObjectives(gBaddie05.id)
PedClearObjectives(gBaddie06.id)
PedClearObjectives(gBeatrice)
PedClearObjectives(gBucky)
PedClearObjectives(gBully01)
PedClearObjectives(gCannonNerd)
PedClearObjectives(gChaseCarDriver)
PedClearObjectives(gCheater01)
PedClearObjectives(gCheater02)
PedClearObjectives(gControlOrderly)
PedClearObjectives(gCop1)
PedClearObjectives(gCop2)
PedClearObjectives(gCorn)
PedClearObjectives(gCrazy01)
PedClearObjectives(gCrazy02)
PedClearObjectives(gCrazy03)
PedClearObjectives(gCrazy04)
PedClearObjectives(gCSBully)
PedClearObjectives(gCurrentBully01)
PedClearObjectives(gCurrentBully02)
PedClearObjectives(gDavis)
PedClearObjectives(gEdgar)
PedClearObjectives(gEnemy01)
PedClearObjectives(gEnemy02)
PedClearObjectives(gEnemy03)
PedClearObjectives(gFatty)
PedClearObjectives(gFTPed)
PedClearObjectives(gGary)
PedClearObjectives(gGreaserAttacker)
PedClearObjectives(gHobo)
PedClearObjectives(gJohnny)
PedClearObjectives(gJV_OnBike)
PedClearObjectives(gLackey[10].ped)
PedClearObjectives(gLackey[8].ped)
PedClearObjectives(gLuis)
PedClearObjectives(gMandy)
PedClearObjectives(gMelvin)
PedClearObjectives(gNerd03)
PedClearObjectives(gNerds[1])
PedClearObjectives(gNerds[2])
PedClearObjectives(gord)
PedClearObjectives(gOrderly01)
PedClearObjectives(gOrderly02)
PedClearObjectives(gOrderly03)
PedClearObjectives(gOrderly04)
PedClearObjectives(gPlayer)
PedClearObjectives(gPrefect)
PedClearObjectives(greaser1)
PedClearObjectives(greaser2)
PedClearObjectives(GreaserThief.id1)
PedClearObjectives(GreaserThief.id2)
PedClearObjectives(GreaserThief.id3)
PedClearObjectives(GreaserThief.id4)
PedClearObjectives(gRussell)
PedClearObjectives(gSecretary)
PedClearObjectives(gSleepingOrderly)
PedClearObjectives(gTablePeds[1].id)
PedClearObjectives(gTablePeds[2].id)
PedClearObjectives(gTablePeds[3].id)
PedClearObjectives(gTablePeds[gCurrentJock].id)
PedClearObjectives(gTargetBoy)
PedClearObjectives(gTed)
PedClearObjectives(gThad)
PedClearObjectives(guy)
PedClearObjectives(guy.id)
PedClearObjectives(gZoe)
PedClearObjectives(hattrick)
PedClearObjectives(id)
PedClearObjectives(idBucky)
PedClearObjectives(idBurton)
PedClearObjectives(idDarby)
PedClearObjectives(idDO)
PedClearObjectives(idEunice.id)
PedClearObjectives(idGord.id)
PedClearObjectives(idLola)
PedClearObjectives(idLola.id)
PedClearObjectives(idNorton)
PedClearObjectives(idOmar)
PedClearObjectives(idPed)
PedClearObjectives(idRussell)
PedClearObjectives(idZoe)
PedClearObjectives(insultBoy)
PedClearObjectives(item.kid)
PedClearObjectives(item.parent)
PedClearObjectives(item.ped)
PedClearObjectives(janitor.id)
PedClearObjectives(johnny)
PedClearObjectives(key.handle)
PedClearObjectives(kirby)
PedClearObjectives(librarian)
PedClearObjectives(lola)
PedClearObjectives(lVictim[vIndex])
PedClearObjectives(mandy)
PedClearObjectives(Mascot)
PedClearObjectives(melvin)
PedClearObjectives(MotelOwner)
PedClearObjectives(musicTeach)
PedClearObjectives(newKid)
PedClearObjectives(newParent)
PedClearObjectives(opponent)
PedClearObjectives(outroPedA)
PedClearObjectives(ped)
PedClearObjectives(ped.id)
PedClearObjectives(pedAlgie.id)
PedClearObjectives(pedBeatrice.id)
PedClearObjectives(pedBryce)
PedClearObjectives(pedBurtonStage3.id)
PedClearObjectives(pedChad)
PedClearObjectives(pedConstantine.id)
PedClearObjectives(pedCutBo.id)
PedClearObjectives(pedCutCasey.id)
PedClearObjectives(pedCutJuri.id)
PedClearObjectives(pedDog.id)
PedClearObjectives(pedEarnest.id)
PedClearObjectives(pedEunice.id)
PedClearObjectives(pedFirstBully.id)
PedClearObjectives(pedGary.id)
PedClearObjectives(pedGord)
PedClearObjectives(pedGreaser03.id)
PedClearObjectives(pedGreaser04.id)
PedClearObjectives(pedHeadmistress)
PedClearObjectives(pedid)
PedClearObjectives(pedId)
PedClearObjectives(PedID)
PedClearObjectives(pedJockBathroomFirstFloor01.id)
PedClearObjectives(pedJockBathroomFirstFloor02.id)
PedClearObjectives(pedKlepto.id)
PedClearObjectives(pedMascot.id)
PedClearObjectives(pedParker)
PedClearObjectives(pedPinky.id)
PedClearObjectives(pedPrefectKarl.id)
PedClearObjectives(pedPrep.id)
PedClearObjectives(pedRussell.id)
PedClearObjectives(pedStoreOwner.id)
PedClearObjectives(pedZoe.id)
PedClearObjectives(pGord)
PedClearObjectives(phillips)
PedClearObjectives(Players[i].Player)
PedClearObjectives(prefect)
PedClearObjectives(Prefect1)
PedClearObjectives(racer.id)
PedClearObjectives(referee)
PedClearObjectives(russell)
PedClearObjectives(santa)
PedClearObjectives(ScenarioPed)
PedClearObjectives(shared.gBif)
PedClearObjectives(shared.gdormHeadID)
PedClearObjectives(shared.gEdnaID)
PedClearObjectives(shared.ped1)
PedClearObjectives(shared.ped2)
PedClearObjectives(shared.vendettaClerk)
PedClearObjectives(sheet1Bruiser)
PedClearObjectives(sheet1Guard)
PedClearObjectives(sheet4Guard)
PedClearObjectives(shopTeach)
PedClearObjectives(spud_nerd)
PedClearObjectives(tableBikerPeds[i])
PedClearObjectives(tableBikerPeds[tableMarkForDelete[i]])
PedClearObjectives(tableEntry.id)
PedClearObjectives(tableExtraJocks[i])
PedClearObjectives(tblEntry.id)
PedClearObjectives(tblFamilyList[i].kid)
PedClearObjectives(tblFamilyList[i].parent)
PedClearObjectives(tblGuardPaths[4].id)
PedClearObjectives(tblLineupList[i])
PedClearObjectives(tblPrank[8].id)
PedClearObjectives(tblTad.id)
PedClearObjectives(tdo)
PedClearObjectives(teacher)
PedClearObjectives(Teacher)
PedClearObjectives(testPed[1].id)
PedClearObjectives(thad)
PedClearObjectives(tSecondFloorTable.justin.id)
PedClearObjectives(tSecondFloorTable.tad.id)
PedClearObjectives(Victim)
PedClearObjectives(watts)
mov eax, dword ptr [esp+0x4]
push esi
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x27
lea ecx, ptr [esi+0x5F0]
call 0x470350
push 0x0
mov ecx, esi
call 0x497520
mov ecx, dword ptr [esi+0x2E0]
add ecx, 0x290
call 0x5F40A0
xor eax, eax
pop esi
ret
PedClearPOI(char)
PedClearPOI(ped1)
PedClearPOI(ped2)
PedClearPOI(pedBulliesRight01.id)
PedClearPOI(pedBulliesRight02.id)
PedClearPOI(pedId)
PedClearPOI(Petey)
PedClearPOI(rider)
PedClearPOI(ScenarioPed)
PedClearPOI(Student1)
PedClearPOI(Student2)
PedClearPOI(tbl.id)
PedClearPOI(tblPrank[1].id)
PedClearPOI(tblPrank[2].id)
PedClearPOI(tblPrank[3].id)
PedClearPOI(tblPrank[4].id)
PedClearPOI(tblPrank[5].id)
PedClearPOI(tblPrank[6].id)
PedClearPOI(tblPrank[7].id)
PedClearPOI(tblPrank[8].id)
PedClearPOI(tSecondFloorTable.justin.id)
PedClearPOI(tSecondFloorTable.tad.id)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
jz 0x12
mov ecx, dword ptr [eax+0x1D24]
test ecx, ecx
jz 0x8
push eax
call 0x4475D0
xor eax, eax
ret
PedClearPOIForAllPeds()
push esi
push edi
mov edi, dword ptr [0xC0F5F0]
mov esi, dword ptr [edi+0x8]
test esi, esi
jz 0x2D
nop
mov eax, dword ptr [edi+0x4]
sub esi, 0x1
test byte ptr [esi+eax*1], 0x80
jnz 0x1C
mov ecx, dword ptr [edi+0xC]
imul ecx, esi
add ecx, dword ptr [edi]
jz 0x12
cmp dword ptr [ecx+0x1D24], 0x0
jz 0x9
push 0x1
call 0x473250
test esi, esi
jnz 0xFFFFFFD8
pop edi
xor eax, eax
pop esi
ret
PedClearTether(defender)
PedClearTether(dog.id)
PedClearTether(entry.id)
PedClearTether(gBully01)
PedClearTether(gDavis)
PedClearTether(gDuncan)
PedClearTether(gHattrick)
PedClearTether(gLeon)
PedClearTether(gPrincipal)
PedClearTether(gTed)
PedClearTether(guy.id)
PedClearTether(idBucky)
PedClearTether(idBurton)
PedClearTether(librarian)
PedClearTether(MailMan.id)
PedClearTether(ped)
PedClearTether(pedAlgie.id)
PedClearTether(pedConstantine.id)
PedClearTether(pedEarnest.id)
PedClearTether(pedTad.id)
PedClearTether(pedZoe.id)
PedClearTether(prefect)
PedClearTether(tblGord.id)
PedClearTether(tblPrep1.id)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
jz 0xD
lea ecx, ptr [eax+0x358]
call 0x499A40
xor eax, eax
ret
PedClearWeapon(gDavis, 303)
PedClearWeapon(gPeanut, 323)
PedClearWeapon(gPlayer, 321)
PedClearWeapon(gPlayer, 426)
PedClearWeapon(gPlayer, PedGetWeapon(gPlayer))
PedClearWeapon(gRooftopPeds1[2], 323)
PedClearWeapon(gVance, 323)
PedClearWeapon(pedZoe.id, 418)
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x3E
push 0x1
push edi
call LuaParam::GetInt
mov ecx, dword ptr [esi+0x1C4]
add esp, 0x8
mov edi, eax
push 0x3E8
push edi
call 0x45D0C0
mov eax, dword ptr [esi+0x1D0]
movsx ecx, word ptr [eax+0x10E]
cmp ecx, edi
jnz 0xF
mov edx, dword ptr [esi+0x2E0]
mov dword ptr [edx+0x18], 0xFFFFFFFF
pop edi
xor eax, eax
pop esi
ret
PedClimbLadder(climber, POINTLIST._PEDLOCATION, 2)
PedClimbLadder(gGary, POINTLIST._6_B_LADDERS, 1)
PedClimbLadder(gGary, POINTLIST._6_B_LADDERS, 2)
sub esp, 0x10
push esi
mov esi, dword ptr [esp+0x18]
push edi
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
fldz
mov edi, eax
fst dword ptr [esp+0x14], st
push 0x1
fst dword ptr [esp+0x1C], st
lea eax, ptr [esp+0x14]
fstp dword ptr [esp+0x20], st
push eax
lea ecx, ptr [esp+0x1C]
push ecx
mov eax, 0x1
mov ecx, esi
call 0x5C6E90
push 0x20
call 0x5EEAA0
mov esi, eax
add esp, 0x18
test esi, esi
jz 0x54
push edi
push ecx
mov eax, esp
mov ecx, esi
mov dword ptr [eax], 0x1C
call 0x46FA90
fldz
mov edx, dword ptr [esp+0xC]
mov eax, dword ptr [esp+0x10]
mov ecx, dword ptr [esp+0x14]
mov dword ptr [esi], 0x928A8C
fst dword ptr [esi+0x10], st
fst dword ptr [esi+0x14], st
push esi
fstp dword ptr [esi+0x18], st
mov dword ptr [esi+0x10], edx
fld st, dword ptr [esp+0xC]
mov dword ptr [esi+0x14], eax
mov dword ptr [esi+0x18], ecx
fstp dword ptr [esi+0x1C], st
lea ecx, ptr [edi+0x5F0]
call 0x471390
xor eax, eax
pop edi
pop esi
add esp, 0x10
ret
xor esi, esi
push esi
lea ecx, ptr [edi+0x5F0]
call 0x471390
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret
PedClimbWall(pedID, POINTLIST._EASTWALL, 1)
PedClimbWall(pedID, POINTLIST._EASTWALL, 2)
sub esp, 0x10
push esi
mov esi, dword ptr [esp+0x18]
push edi
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
fldz
push 0x1
fst dword ptr [esp+0x18], st
push 0x2
fst dword ptr [esp+0x20], st
push esi
fstp dword ptr [esp+0x28], st
mov edi, eax
call LuaParam::GetInt ; optional
push eax
lea eax, ptr [esp+0x20]
push eax
lea ecx, ptr [esp+0x28]
push ecx
mov eax, 0x1
mov ecx, esi
call 0x5C6E90
push 0x34
call 0x5EEAA0
add esp, 0x24
test eax, eax
jz 0x37
fld st, dword ptr [0x90FB9C]
sub esp, 0x8
fstp dword ptr [esp+0x4], st
lea edx, ptr [esp+0x14]
fld st, dword ptr [esp+0x10]
mov ecx, eax
fstp dword ptr [esp], st
push edx
push edi
call 0x5C61D0
push eax
lea ecx, ptr [edi+0x5F0]
call 0x471390
xor eax, eax
pop edi
pop esi
add esp, 0x10
ret
xor eax, eax
push eax
lea ecx, ptr [edi+0x5F0]
call 0x471390
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret
PedCoverSet(c, gPlayer, POINTLIST._TFIGHT01_E_01, 50, 50, 5, 5, 10, 1, 1, 1, 1, 1, 1, true)
PedCoverSet(c, gPlayer, POINTLIST._TFIGHT01_NE_01, 50, 50, 5, 0, 0, 1, 1, 1, 1, 1, 1, true)
PedCoverSet(c, gPlayer, POINTLIST._TFIGHT01_SE_01, 50, 50, 5, 0, 0, 1, 1, 1, 1, 1, 1, true)
PedCoverSet(c, gPlayer, POINTLIST._TFIGHT01_W_01, 50, 50, 5, 5, 10, 1, 1, 1, 1, 1, 1, true)
PedCoverSet(damon, nil, POINTLIST._3_R06_COVER2_1, 1, 40, 1, 1, 2, 1, 1, 1, 1, 1, 1, false)
PedCoverSet(damon, nil, POINTLIST._3_R06_COVER2_1, 1, 40, 1, 1, 2, 2, 2, 1, 1, 1, 1, false)
PedCoverSet(damon, nil, POINTLIST._3_R06_COVER2_3, 1, 40, 1, 6, 10, 1, 1, 1, 1, 1, 1, false)
PedCoverSet(damon, nil, POINTLIST._3_R06_COVER2_3, 1, 40, 1, 6, 10, 2, 2, 1, 1, 1, 1, false)
PedCoverSet(damon, nil, POINTLIST._3_R06_COVER2_5, 1, 40, 1, 1, 2, 1, 1, 1, 1, 1, 1, false)
PedCoverSet(damon, nil, POINTLIST._3_R06_COVER2_5, 1, 40, 1, 1, 2, 2, 2, 1, 1, 1, 1, false)
PedCoverSet(damon, nil, POINTLIST._3_R06_COVER2_6, 1, 40, 1, 1, 2, 1, 1, 1, 1, 1, 1, false)
PedCoverSet(damon, nil, POINTLIST._3_R06_COVER2_6, 1, 40, 1, 1, 2, 2, 2, 1, 1, 1, 1, false)
PedCoverSet(dan, nil, POINTLIST._3_R06_COVER2_1, 1, 40, 1, 1, 2, 1, 1, 1, 1, 1, 1, false)
PedCoverSet(dan, nil, POINTLIST._3_R06_COVER2_1, 1, 40, 1, 5, 7, 2, 2, 1, 1, 1, 1, false)
PedCoverSet(dan, nil, POINTLIST._3_R06_COVER2_3, 1, 40, 1, 6, 10, 1, 1, 1, 1, 1, 1, false)
PedCoverSet(dan, nil, POINTLIST._3_R06_COVER2_3, 1, 40, 1, 6, 10, 2, 2, 1, 1, 1, 1, false)
PedCoverSet(dan, nil, POINTLIST._3_R06_COVER2_5, 1, 40, 1, 1, 2, 1, 1, 1, 1, 1, 1, false)
PedCoverSet(dan, nil, POINTLIST._3_R06_COVER2_5, 1, 40, 1, 5, 7, 2, 2, 1, 1, 1, 1, false)
PedCoverSet(dan, nil, POINTLIST._3_R06_COVER2_6, 1, 40, 1, 1, 2, 1, 1, 1, 1, 1, 1, false)
PedCoverSet(dan, nil, POINTLIST._3_R06_COVER2_6, 1, 40, 1, 5, 7, 2, 2, 1, 1, 1, 1, false)
PedCoverSet(egger.id, gPlayer, egger.point, 1, 15, 1, 0, 0, 0, 3, 0, 0, 1, 1, true)
PedCoverSet(EnemyTable[index].handle, Earnest, EnemyTable[index].cpoint, 0, 100, 0, 1, 1, 0.5, 0.5, 99, 99, 99, 99, true)
PedCoverSet(entry.id, nil, entry.cover, 100, 35, 2, 0, 1, 1, 0, 1, 1, 0, 0, bNeverLeave)
PedCoverSet(gDavis, gPlayer, POINTLIST._1_03_BARRELSTOP, 1, 20, 1, 0, 0, 2, 1, 0, 0, 1, 1, true)
PedCoverSet(gDo07[1], gPlayer, POINTLIST._5_07_COVER07_02, 100, 100, 2, 1, 2, 0.5, 1, 1, 2, 0, 0, false)
PedCoverSet(gDo08[1], gPlayer, POINTLIST._5_07_COVER08_01, 100, 100, 2, 1, 2, 0.5, 1, 1, 2, 0, 0, false)
PedCoverSet(gDo08[2], gPlayer, POINTLIST._5_07_COVER08_03, 100, 100, 2, 1, 2, 0.5, 1, 1, 2, 0, 0, false)
PedCoverSet(kirby, kirbytarget, POINTLIST._3_R06_COVER2_3, 1, 40, 1, 6, 10, 2, 2, 1, 1, 1, 1, false)
PedCoverSet(kirby, nil, POINTLIST._3_R06_COVER2_1, 1, 40, 1, 1, 2, 1, 1, 1, 1, 1, 1, false)
PedCoverSet(kirby, nil, POINTLIST._3_R06_COVER2_1, 1, 40, 1, 3, 5, 2, 2, 1, 1, 1, 1, false)
PedCoverSet(kirby, nil, POINTLIST._3_R06_COVER2_3, 1, 40, 1, 6, 10, 1, 1, 1, 1, 1, 1, false)
PedCoverSet(kirby, nil, POINTLIST._3_R06_COVER2_5, 1, 40, 1, 1, 2, 1, 1, 1, 1, 1, 1, false)
PedCoverSet(kirby, nil, POINTLIST._3_R06_COVER2_5, 1, 40, 1, 3, 5, 2, 2, 1, 1, 1, 1, false)
PedCoverSet(kirby, nil, POINTLIST._3_R06_COVER2_6, 1, 40, 1, 1, 2, 1, 1, 1, 1, 1, 1, false)
PedCoverSet(kirby, nil, POINTLIST._3_R06_COVER2_6, 1, 40, 1, 5, 7, 2, 2, 1, 1, 1, 1, false)
PedCoverSet(melvin, nil, POINTLIST._3_R06_COVER1_2, 1, 40, 1, 6, 10, 2, 2, 1, 1, 1, 1, false)
PedCoverSet(melvin, nil, POINTLIST._3_R06_COVER1_4, 1, 40, 1, 1, 2, 2, 2, 1, 1, 1, 1, false)
PedCoverSet(melvin, nil, POINTLIST._3_R06_COVER1_5, 1, 40, 1, 3, 5, 2, 2, 1, 1, 1, 1, false)
PedCoverSet(melvin, nil, POINTLIST._3_R06_COVER1_6, 1, 40, 1, 3, 5, 2, 2, 1, 1, 1, 1, false)
PedCoverSet(ped, nil, coverPoint, 100, 35, 2, 0, 1, 1, 1, 1, 1, 0, 0, true)
PedCoverSet(ped.id, gPlayer, ped.point, 1, 20, 3, 2, 3, 2, 1, 1, 1, 1, 1, false)
PedCoverSet(pedGreaserC03.id, pedTad.id, POINTLIST._POINTENEMYWINDOW, 100, 50, 5, 0, 0, 1, 1, 1, 1, 0, 0, true)
PedCoverSet(pedId, gPlayer, pTable.coverId, 1, 40, 1, 1, 2, 2, 2, 1, 1, 1, 1, false)
PedCoverSet(tblFirstGrease[5], gPlayer, POINTLIST._3_05_COVERPOINT1, 1, 20, 1, 0, 0, 2, 1, 0, 0, 1, 1, true)
PedCoverSet(tblFirstGrease[6], gPlayer, POINTLIST._3_05_COVERPOINT2, 1, 20, 1, 0, 0, 2, 1, 0, 0, 1, 1, true)
PedCoverSet(tblSecondGrease[2], gPlayer, POINTLIST._3_05_COVERPOINT3, 1, 20, 1, 0, 0, 2, 1, 0, 0, 1, 1, false)
PedCoverSet(tblSecondGrease[3], gPlayer, POINTLIST._3_05_COVERPOINT4, 1, 20, 1, 0, 0, 2, 1, 0, 0, 1, 1, false)
PedCoverSet(tblSecondGrease[4], gPlayer, POINTLIST._3_05_COVERPOINT5, 1, 20, 1, 0, 0, 2, 1, 0, 0, 1, 1, false)
PedCoverSet(thad, nil, POINTLIST._3_R06_COVER1_2, 1, 40, 1, 6, 10, 2, 2, 1, 1, 1, 1, false)
PedCoverSet(thad, nil, POINTLIST._3_R06_COVER1_4, 1, 40, 1, 3, 5, 2, 2, 1, 1, 1, 1, false)
PedCoverSet(thad, nil, POINTLIST._3_R06_COVER1_5, 1, 40, 1, 3, 5, 2, 2, 1, 1, 1, 1, false)
PedCoverSet(thad, nil, POINTLIST._3_R06_COVER1_6, 1, 40, 1, 5, 7, 2, 2, 1, 1, 1, 1, false)
push ebx
push ebp
push esi
push edi
mov edi, dword ptr [esp+0x14]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov ebx, eax
add esp, 0x8
test ebx, ebx
jz 0x125
push 0x2
push edi
call LuaParam::GetInt
movzx eax, ax
movzx eax, ax
add esp, 0x8
push eax
mov ecx, 0xBC5E7C
call 0x6D6450
mov ebp, eax
test ebp, ebp
jz 0xFF
push 0x1
push edi
xor esi, esi
call LuaParam::IsInt
add esp, 0x8
test al, al
jz 0x2D
push 0x1
push edi
call LuaParam::GetInt
add esp, 0x8
test eax, eax
jnz 0xA
mov esi, dword ptr [0xC1AEA8]
jmp 0x16
push ecx
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
mov esi, eax
push 0x6C
call 0x5EEAA0
add esp, 0x4
test eax, eax
jz 0x19
push ebp
push ecx
mov edx, esp
push esi
push ebx
mov ecx, eax
mov dword ptr [edx], 0x3
call 0x4710B0
mov esi, eax
jmp 0x4
xor esi, esi
push 0x3
push edi
call LuaParam::GetFloat
fstp dword ptr [esi+0x38], st
push 0x4
push edi
call LuaParam::GetFloat
fstp dword ptr [esi+0x3C], st
push 0x5
push edi
call LuaParam::GetFloat
fstp dword ptr [esi+0x40], st
push 0x6
push edi
call LuaParam::GetFloat
fstp dword ptr [esi+0x44], st
push 0x7
push edi
call LuaParam::GetFloat
fstp dword ptr [esi+0x48], st
push 0x8
push edi
call LuaParam::GetFloat
fstp dword ptr [esi+0x4C], st
push 0x9
push edi
call LuaParam::GetFloat
fstp dword ptr [esi+0x50], st
push 0xA
push edi
call LuaParam::GetInt
add esp, 0x40
push 0xB
push edi
mov dword ptr [esi+0x54], eax
call LuaParam::GetInt
push 0xC
push edi
mov dword ptr [esi+0x58], eax
call LuaParam::GetInt
push 0xD
push edi
mov dword ptr [esi+0x5C], eax
call LuaParam::GetInt
push 0xE
push edi
mov dword ptr [esi+0x60], eax
call LuaParam::GetBool
add esp, 0x20
push esi
lea ecx, ptr [ebx+0x5F0]
mov byte ptr [esi+0x64], al
call 0x471390
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
L_PedExec(p_wave1, PedCoverSetFromProfile, "id", "target", "cover", "cover_file")
L_PedExec(p_wave2, PedCoverSetFromProfile, "id", "target", "cover", "cover_file")
L_PedExec(p_wave3, PedCoverSetFromProfile, "id", "target", "cover", "cover_file")
L_PedExec(p_wave4, PedCoverSetFromProfile, "id", "target", "cover", "cover_file")
PedCoverSetFromProfile(idPed, gPlayer, POINTLIST._4_02_O_R1_2, "4_02_window_cover")
PedCoverSetFromProfile(idPed, gPlayer, POINTLIST._4_02_O_R2_2, "4_02_window_cover")
PedCoverSetFromProfile(idPed, gPlayer, POINTLIST._4_02_O_WN1_2, "4_02_window_cover")
PedCoverSetFromProfile(idPed, gPlayer, POINTLIST._4_02_O_WN2_2, "4_02_window_cover")
PedCoverSetFromProfile(idPed, gPlayer, POINTLIST._4_02_O_WN3_2, "4_02_window_cover")
PedCoverSetFromProfile(idPed, gPlayer, POINTLIST._4_02_O_WN4_2, "4_02_window_cover")
PedCoverSetFromProfile(nerd.id, nerd.target, nerd.cover, nerd.cover_file)
PedCoverSetFromProfile(scout, -1, POINTLIST._4_02_NERD_SCOUT_03, "4_02_p1_scout_cover")
PedCoverSetFromProfile(scout2, gPlayer, POINTLIST._4_02_NERD_SCOUT2_01, "4_02_p1_scout_cover")
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x28]
push edi
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov ebp, eax
add esp, 0x8
test ebp, ebp
jz 0xD5
push 0x2
push esi
call LuaParam::GetInt
movzx eax, ax
movzx eax, ax
add esp, 0x8
push eax
mov ecx, 0xBC5E7C
call 0x6D6450
mov ebx, eax
test ebx, ebx
jz 0xAF
push 0x1
push esi
xor edi, edi
call LuaParam::IsInt
add esp, 0x8
test al, al
jz 0x2F
push 0x1
push esi
call LuaParam::GetInt
add esp, 0x8
test eax, eax
jl 0x20
jnz 0xA
mov edi, dword ptr [0xC1AEA8]
jmp 0x16
push ecx
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
mov edi, eax
push 0x3
push esi
call LuaParam::GetString
add esp, 0x8
lea edx, ptr [esp+0x10]
mov cl, byte ptr [eax]
mov byte ptr [edx], cl
add eax, 0x1
add edx, 0x1
test cl, cl
jnz 0xFFFFFFF4
push 0x6C
call 0x5EEAA0
add esp, 0x4
test eax, eax
jz 0x19
push ebx
push ecx
mov edx, esp
push edi
push ebp
mov ecx, eax
mov dword ptr [edx], 0x3
call 0x4710B0
mov ebx, eax
jmp 0x4
xor ebx, ebx
lea ecx, ptr [esp+0x10]
push ecx
mov ecx, 0xC2B210
call 0x487F70
mov esi, eax
lea edi, ptr [ebx+0x20]
mov ecx, 0x12
rep movsd dword ptr [edi], dword ptr [esi]
push ebx
lea ecx, ptr [ebp+0x5F0]
call 0x471390
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
-- never used
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
jz 0x26
lea ecx, ptr [eax+0x5F0]
call 0x470340
test eax, eax
jz 0x17
cmp dword ptr [eax+0x8], 0x10
jnz 0x11
add eax, 0x68
push eax
push 0x1
push esi
call 0x5D9FD0
add esp, 0xC
xor eax, eax
pop esi
ret
algie = PedCreatePoint(7, POINTLIST._4_G4_PEDALGIESTART)
assistant = PedCreatePoint(11, POINTLIST._3_09_ASSISTANT, 1)
attacker.id = PedCreatePoint(attacker.model, attacker.spawn)
aud1 = PedCreatePoint(23, POINTLIST._1_10_AUDIENCE, 1)
aud2 = PedCreatePoint(10, POINTLIST._1_10_AUDIENCE, 2)
aud3 = PedCreatePoint(19, POINTLIST._1_10_AUDIENCE, 3)
aud4 = PedCreatePoint(37, POINTLIST._1_10_AUDIENCE, 4)
beatrice = PedCreatePoint(3, POINTLIST._1_G1_BEASPAWN)
bExtraGuy = PedCreatePoint(30, POINTLIST._2_08_SECONDFLOORPED, 1)
bGreaserBoss = PedCreatePoint(217, POINTLIST._GIRLSDORM, 3)
bioTeacher = PedCreatePoint(64, POINTLIST._C8_BIOTEACHER)
bJockBoss = PedCreatePoint(216, POINTLIST._LIBPEDS, 1)
bNerdBoss = PedCreatePoint(215, POINTLIST._GARAGEROOF, 2)
boxer = PedCreatePoint(opponents[shared.gBoxingOpponent].model, POINTLIST._Boxing_EnemyStart)
Boxer1 = PedCreatePoint(118, POINTLIST._BOXING_PLAYERSTART1)
Boxer2 = PedCreatePoint(117, POINTLIST._BOXING_ENEMYSTART1)
Boxer3 = PedCreatePoint(36, POINTLIST._PUNCHBAGPREP)
bPreppyBoss = PedCreatePoint(218, POINTLIST._HARRINGTONHOUSE, 2)
bucky = PedCreatePoint(8, POINTLIST._4_03_NIS_NERDS, 1)
Bum = PedCreatePoint(87, POINTLIST._1_07_BUM)
bum = PedCreatePoint(bumSantaModel, POINTLIST._3_XM_BUMSCENE)
burton = PedCreatePoint(55, POINTLIST._C3_BURTON_START)
c = PedCreatePoint(28, POINTLIST._TFIGHT01_E_01)
c = PedCreatePoint(28, POINTLIST._TFIGHT01_NE_01)
c = PedCreatePoint(28, POINTLIST._TFIGHT01_SE_01)
c = PedCreatePoint(28, POINTLIST._TFIGHT01_W_01)
camcoach = PedCreatePoint(55, POINTLIST._DBALLCAM_COACH)
car.driver = PedCreatePoint(RandomTableElement(gDrivers), POINTLIST._PR_DRIVERSPAWN, 1)
carnie = PedCreatePoint(115, point)
char = PedCreatePoint(FootballPed1, POINTLIST._FOOTBALLOUTSIDE)
char2 = PedCreatePoint(FootballPed2, POINTLIST._FOOTBALLINSIDE)
char3 = PedCreatePoint(FootballPed3, POINTLIST._FOOTBALLOUTSIDE2)
char4 = PedCreatePoint(FootballPed4, POINTLIST._FOOTBALLINSIDE2)
CharID = PedCreatePoint(Objectives[5].model, Objectives[5].loc)
CharID = PedCreatePoint(Objectives[i].model, Objectives[i].loc)
chemTeach = PedCreatePoint(106, POINTLIST._C4_TEACH)
classmate01 = PedCreatePoint(24, POINTLIST._C6_CLASSMATE01)
classmate02 = PedCreatePoint(27, POINTLIST._C6_CLASSMATE02)
classmate03 = PedCreatePoint(26, POINTLIST._C6_CLASSMATE03)
climber = PedCreatePoint(24, POINTLIST._PEDLOCATION, 1)
clint = PedCreatePoint(45, POINTLIST._5_T1_CLINTSTART)
CoachBurton.id = PedCreatePoint(CoachBurton.model, CoachBurton.point)
cop = PedCreatePoint(83, POINTLIST._6_02_OUTSIDECOPS, 3)
cop = PedCreatePoint(83, POINTLIST._COPS, 1)
cop = PedCreatePoint(97, POINTLIST._5_07_NIS_COPCAR, 3)
cop = PedCreatePoint(97, POINTLIST._6_02_CHASECOPS, 2)
cop = PedCreatePoint(97, POINTLIST._6_02_OUTSIDECOPS, 4)
cop = PedCreatePoint(97, POINTLIST._COPS, 2)
cop = PedCreatePoint(97, POINTLIST._INDUS_POINTS, 8)
cop1 = PedCreatePoint(83, POINTLIST._5_04_COP_END, 1)
cop2 = PedCreatePoint(97, POINTLIST._5_04_COP_END, 2)
cop3 = PedCreatePoint(82, POINTLIST._5_04_COP_END, 3)
cop6 = PedCreatePoint(97, POINTLIST._2_S02_COP6)
cornelius = PedCreatePoint(9, POINTLIST._4_03_NIS_NERDS, 3)
CrateCheerer = PedCreatePoint(24, POINTLIST._CRATES_CHEERER)
CrateCheerer02 = PedCreatePoint(28, POINTLIST._CRATES_CHEERER02)
CrateJumper01 = PedCreatePoint(27, POINTLIST._CRATES_JUMPER01)
CrateJumper02 = PedCreatePoint(21, POINTLIST._CRATES_JUMPER02)
CrateJumper03 = PedCreatePoint(28, POINTLIST._CRATES_JUMPER03)
CS_Dude = PedCreatePoint(46, POINTLIST._BMX_CS_DUDE)
Dancer01 = PedCreatePoint(257, POINTLIST._3_01C_DANCER01)
Dancer02 = PedCreatePoint(256, POINTLIST._3_01C_DANCER02)
Dancer03 = PedCreatePoint(258, POINTLIST._3_01C_DANCER03)
dId[i] = PedCreatePoint(F_GetDropOutModel(), pointList, i)
dog = PedCreatePoint(219, POINTLIST._3_01D_JIMMYPHOTO)
Dog.id = PedCreatePoint(Dog.model, Dog.point)
dog.id = PedCreatePoint(RandomTableElement(gDogModels), dog.point, 1)
donald = PedCreatePoint(11, POINTLIST._4_03_NIS_NERDS, 2)
dude.id = PedCreatePoint(dude.model, dude.point)
Earnest = PedCreatePoint(10, POINTLIST._1_09_EARNEST)
earnest = PedCreatePoint(10, POINTLIST._4_03_NIS_NERDS, 4)
earnest = PedCreatePoint(10, POINTLIST._TESTSPUDCANNON_EARNEST)
edgar = PedCreatePoint(91, POINTLIST._5_B_EDGAR)
edgar = PedCreatePoint(91, POINTLIST._5_B_END, 2)
Edna = PedCreatePoint(58, POINTLIST._2_01_EDNA)
Edna = PedCreatePoint(58, POINTLIST._2_01_EDNAFIN)
edna = PedCreatePoint(nEdnaModel, POINTLIST._2_S05_DINNEREDNA, 1)
edna = PedCreatePoint(nEdnaModel, POINTLIST._2_S05_OUTSIDECAFE)
edna = PedCreatePoint(nEdnaModel, POINTLIST._2_S05_OUTSIDECAFE, 2)
egger.id = PedCreatePoint(30, egger.point, 1)
egger.id = PedCreatePoint(egger.model, egger.point, 1)
Elf1 = PedCreatePoint(MODELENUM._TO_ElfM, POINTLIST._3_01D_ELF1)
Elf2 = PedCreatePoint(MODELENUM._TO_ElfF, POINTLIST._3_01D_ELF2)
Elf4 = PedCreatePoint(MODELENUM._TO_ElfM, POINTLIST._3_01D_ELF1)
Elf5 = PedCreatePoint(MODELENUM._TO_ElfF, POINTLIST._3_01D_ELF2)
elf_01 = PedCreatePoint(elfModel_01, POINTLIST._3_XM_MIDGETSTART, 1)
elf_02 = PedCreatePoint(elfModel_02, POINTLIST._3_XM_MIDGETSTART, 2)
elf_03 = PedCreatePoint(elfModel_01, POINTLIST._3_XM_MIDGETSTART, 3)
elf_04 = PedCreatePoint(elfModel_02, POINTLIST._3_XM_MIDGETSTART, 4)
enemy = PedCreatePoint(15, POINTLIST._TFIGHT01_E_01)
enemy = PedCreatePoint(24, POINTLIST._TFIGHT01_NE_01)
enemy.id = PedCreatePoint(enemy.model, enemy.spawn)
enemy01.id = PedCreatePoint(enemy01.model, enemy01.point)
enemy02.id = PedCreatePoint(enemy02.model, enemy02.point)
EnemyTable[index].handle = PedCreatePoint(EnemyTable[index].model, EnemyTable[index].point)
entry.handle = PedCreatePoint(entry.model, POINTLIST._1_09_SEATEDPOINTS, entry.element)
entry.id = PedCreatePoint(entry.model, entry.point)
Entry.id = PedCreatePoint(Entry.model, Entry.point)
entry.id = PedCreatePoint(entry.model, entry.point, 0)
entry.id = PedCreatePoint(entry.model, entry.point, entry.element)
entry.id = PedCreatePoint(entry.model, POINTLIST._1_04_FIELDSPAWN, entry.element)
entry.id = PedCreatePoint(theModel, entry.point, entry.element)
FireMan = PedCreatePoint(82, POINTLIST._DORMFAPT1)
FireManS2 = PedCreatePoint(82, POINTLIST._SCHOOLMAINFAPT9)
frBeardedWoman = PedCreatePoint(191, POINTLIST._FRS_BEARDEDWOMAN)
frMermaid = PedCreatePoint(192, POINTLIST._FRS_MERMAID)
frMidget01 = PedCreatePoint(188, POINTLIST._FRS_MIDGET01)
frMidget02 = PedCreatePoint(189, POINTLIST._FRS_MIDGET02)
frPaintedMan = PedCreatePoint(194, POINTLIST._FRS_PAINTEDMAN)
frSiamese02 = PedCreatePoint(193, POINTLIST._FRS_SIAMESE02)
frSkeletonMan = PedCreatePoint(190, POINTLIST._FRS_SKELETONMAN)
galloway = PedCreatePoint(57, POINTLIST._C7_GALLOWAY)
gAngryJock01 = PedCreatePoint(15, POINTLIST._5_04_ANGRY_JOCKS_01, 1)
gAngryJock02 = PedCreatePoint(18, POINTLIST._5_04_ANGRY_JOCKS_01, 2)
gAsylumTable.ped1 = PedCreatePoint(53, POINTLIST._ASYLUMSPAWNPOINTS, 1)
gAsylumTable.ped2 = PedCreatePoint(53, POINTLIST._ASYLUMSPAWNPOINTS, 2)
GateNerd.id = PedCreatePoint(GateNerd.model, GateNerd.point)
gAttacker = PedCreatePoint(102, POINTLIST._GTPLAYERSTART, 1)
gawker.id = PedCreatePoint(gawker.model, POINTLIST._5_09_GAWKERS, i)
gBaddie.id = PedCreatePoint(gBaddie.model, gBaddie.point, 1)
gBaddie02.id = PedCreatePoint(gBaddie02.model, gBaddie02.point, 1)
gBaddie03.id = PedCreatePoint(gBaddie03.model, gBaddie03.point, 1)
gBaddie04.id = PedCreatePoint(gBaddie04.model, gBaddie04.point, 1)
gBaddie05.id = PedCreatePoint(gBaddie05.model, gBaddie05.point, 1)
gBaddie06.id = PedCreatePoint(gBaddie06.model, gBaddie06.point, 1)
gBlockAOrderly01 = PedCreatePoint(158, POINTLIST._5_03_1STFLOOR_ORDERLY1)
gBlockAOrderly02 = PedCreatePoint(53, POINTLIST._5_03_1STFLOOR_ORDERLY2)
gBlockBOrderly01 = PedCreatePoint(53, POINTLIST._5_03_1F_BW_ORDERLY1)
gBlockBOrderly02 = PedCreatePoint(158, POINTLIST._5_03_1F_BW_ORDERLY3)
gBoxerIds[i] = PedCreatePoint(boxer, POINTLIST._3_R09_BOXERS, i)
gBucky = PedCreatePoint(8, POINTLIST._2_S04_SHEET3_1)
gBully01 = PedCreatePoint(146, POINTLIST._1_02_NISLOCATIONS, 4)
gBully01 = PedCreatePoint(146, POINTLIST._1_02_PLAYERNISLOCS, 2)
gBully01 = PedCreatePoint(85, POINTLIST._1_01_CHEERPOINTS, 2)
gBully01 = PedCreatePoint(85, POINTLIST._1_02_BDORMBULLIES, 1)
gBully02 = PedCreatePoint(102, POINTLIST._1_02_BDORMBULLIES, 2)
gBully02 = PedCreatePoint(102, POINTLIST._1_02_BULLIESMID, 1)
gBully02 = PedCreatePoint(102, POINTLIST._1_02_NIS_BULLIES, 3)
gBully03 = PedCreatePoint(146, POINTLIST._1_02_BDORMBULLIES, 3)
gBully03 = PedCreatePoint(85, POINTLIST._1_02_BULLIESMID, 2)
gBully03 = PedCreatePoint(85, POINTLIST._1_02_NIS_BULLIES, 4)
gBully1 = PedCreatePoint(102, POINTLIST._1_10BULLY01)
gBully2 = PedCreatePoint(99, POINTLIST._1_10BULLY02A)
gBully3 = PedCreatePoint(85, POINTLIST._1_10BULLY02B)
gCannonNerd = PedCreatePoint(10, POINTLIST._4_02_SPUD_NERD01)
gCarnie = PedCreatePoint(143, POINTLIST._HS_CARNIE, 1)
gCarny = PedCreatePoint(143, POINTLIST._MGS_CLERK, 1)
gChaseCarDriver = PedCreatePoint(97, POINTLIST._3B_COPSPAWN)
gClerk = PedCreatePoint(114, POINTLIST._BASEBALLTOSS_MINIGAME_CLERK)
gClerk = PedCreatePoint(56, POINTLIST._CM_CLERK)
gClerk = PedCreatePoint(82, POINTLIST.BASEBALLTOSS_MINIGAME_CLERK)
gClerk = PedCreatePoint(gStoreOwnerModel, gStoreOwnerPoint)
gControlOrderly = PedCreatePoint(53, POINTLIST._5_03_CR_ORDERLY_1)
gCop1 = PedCreatePoint(83, POINTLIST._6_02_COPSBACKENTRANCE, 2)
gCop1 = PedCreatePoint(83, POINTLIST._6_02_COPSFRONTENTRANCE, 1)
gCop1 = PedCreatePoint(97, POINTLIST._2_S02_COP1)
gCop1 = PedCreatePoint(97, POINTLIST._3_10_BIKER01, 1)
gCop1 = PedCreatePoint(97, POINTLIST._6_02_COPSNIS, 1)
gCop2 = PedCreatePoint(83, POINTLIST._6_02_COPSNIS, 2)
gCop2 = PedCreatePoint(97, POINTLIST._2_S02_COP2)
gCop2 = PedCreatePoint(97, POINTLIST._6_02_COPSBACKENTRANCE, 3)
gCop2 = PedCreatePoint(97, POINTLIST._6_02_COPSFRONTENTRANCE, 3)
gCop3 = PedCreatePoint(97, POINTLIST._2_S02_COP3)
gCop4 = PedCreatePoint(83, POINTLIST._2_S02_COP4)
gCop5 = PedCreatePoint(83, POINTLIST._2_S02_COP5)
gCorn = PedCreatePoint(9, POINTLIST._4_02_LIBCORNY)
gCSBully = PedCreatePoint(146, POINTLIST._1_03_BULLY1)
gCurrentBully01 = PedCreatePoint(145, POINTLIST._1_07_BULLYENDNIS, 1)
gCurrentBully02 = PedCreatePoint(102, POINTLIST._1_07_BULLYENDNIS, 2)
gDarby = PedCreatePoint(37, POINTLIST._5_02_DARBYBOXING, 1)
gDarby = PedCreatePoint(37, POINTLIST._5_02_WALKOFFBEG, 1)
gDefenders[1] = PedCreatePoint(112, POINTLIST._DEFENSIVELINE01, 1)
gDefenders[2] = PedCreatePoint(231, POINTLIST._DEFENSIVELINE01, 2)
gDefenders[3] = PedCreatePoint(232, POINTLIST._DEFENSIVELINE01, 3)
gDOThug01 = PedCreatePoint(154, POINTLIST._5_03_PATIENT02)
gDOThug02 = PedCreatePoint(150, POINTLIST._5_03_DO_THUG02)
gDOThug03 = PedCreatePoint(153, POINTLIST._5_03_DO_THUG03)
gDuncan = PedCreatePoint(44, POINTLIST._5_02_WHDROPOUTS, 2)
gEdgar = PedCreatePoint(45, POINTLIST._3_S08_SCENEPLAYER)
gEdgar = PedCreatePoint(91, POINTLIST._6_03_ENDNIS, 2)
gEdgar = PedCreatePoint(91, POINTLIST._SIDESCHOOLPOINTS, 1)
gEdna = PedCreatePoint(58, POINTLIST._1_S01_EDNA)
gEdnaGuard = PedCreatePoint(50, POINTLIST._1_S01_EDNA_GUARD)
gEnemies[index].id = PedCreatePoint(141, pointList, index)
gEnemies[index].id = PedCreatePoint(RandomTableElement(gSpawnModels), pointList, index)
gEnemy01 = PedCreatePoint(gCutsceneGuys[1], POINTLIST._3_R09_FIRST, 1)
gEnemy02 = PedCreatePoint(gCutsceneGuys[2], POINTLIST._3_R09_FIRST, 2)
gEnemy03 = PedCreatePoint(gCutsceneGuys[3], POINTLIST._3_R09_FIRST, 3)
gEunice = PedCreatePoint(74, POINTLIST._PRINCIPALROOM, 2)
gFatty = PedCreatePoint(5, POINTLIST._2_S04_SHEET2_N2)
gFatty = PedCreatePoint(5, POINTLIST._4_02_LIBFATTY)
gFenwick = PedCreatePoint(125, POINTLIST._5_03_PATIENT01)
gFirstEventPed = PedCreatePoint(69, POINTLIST._C5_PEDEVENT01)
gFMidget = PedCreatePoint(140, POINTLIST._2_GN_MIDGETHANG, 1)
gFrontDeskOrderly = PedCreatePoint(53, POINTLIST._3_S11_DOOR_GUARD1)
gFrontOrderly = PedCreatePoint(53, POINTLIST._5_03_CLERK_ORDERLY)
gGalloway = PedCreatePoint(129, POINTLIST._3_S11_GALLOWAY)
gGalloway = PedCreatePoint(129, POINTLIST._3_S11_OUTRONIS_WALK, 1)
gGary = PedCreatePoint(130, POINTLIST._6_B_GARYPOSITION)
gGary = PedCreatePoint(130, POINTLIST._6_B_GARYSTART)
gGary = PedCreatePoint(130, POINTLIST._BEGGINING, 1)
gGary = PedCreatePoint(130, POINTLIST._INBEDROOM, 1)
gGreaser1 = PedCreatePoint(22, POINTLIST._3_S10_GREASERS, 1)
gGreaser1 = PedCreatePoint(27, POINTLIST._5_02_GREASERS, 1)
gGreaser2 = PedCreatePoint(21, POINTLIST._5_02_GREASERS, 2)
gGreaser2 = PedCreatePoint(24, POINTLIST._3_S10_GREASERS, 2)
gGreaser3 = PedCreatePoint(29, POINTLIST._5_02_GREASERS, 3)
gGreaserAttacker = PedCreatePoint(28, POINTLIST._INTRONIS, 10)
gGuy1 = PedCreatePoint(33, POINTLIST._5_02_DARBYBOXING, 2)
gGuy1 = PedCreatePoint(33, POINTLIST._5_02_WALKOFFBEG, 2)
gHallMon = PedCreatePoint(54, POINTLIST._1_S01_BROOM_PREFECT)
gHattrick = PedCreatePoint(61, POINTLIST._1_S01_CRABBLE, 2)
gHattrick = PedCreatePoint(61, POINTLIST._2_S02_HATTRICK_DRIVER, 1)
gHattrick = PedCreatePoint(61, POINTLIST._2_S02_HATTRICK_DRIVER, 2)
gHealthNerd = PedCreatePoint(3, POINTLIST._2_S04_SHEET2_N4)
gHobo = PedCreatePoint(87, POINTLIST._1_06BEGIN, 1)
gHobo = PedCreatePoint(87, POINTLIST._1_S01_HOBO, 1)
gHobo = PedCreatePoint(87, POINTLIST._ENDHOBONIS, 1)
gInOrderly01 = PedCreatePoint(53, POINTLIST._3_S11_I_ORDERLY1)
gInOrderly02 = PedCreatePoint(158, POINTLIST._3_S11_I_ORDERLY2)
gInPatient = PedCreatePoint(125, POINTLIST._3_S11_I_PATIENT)
gInPatient = PedCreatePoint(125, POINTLIST._3_S11_I_PATIENT2)
Girl1 = PedCreatePoint(67, POINTLIST._PUNISHTEST_P1)
gJerry = PedCreatePoint(41, POINTLIST._5_02_RATPATROL, 2)
gJogger = PedCreatePoint(55, POINTLIST._PR_JOGGER, 1)
gJohnny = PedCreatePoint(23, POINTLIST._5_03_JOHNNY_END)
gJohnny = PedCreatePoint(23, POINTLIST._5_03_JOHNNY_START)
gJohnnyV = PedCreatePoint(23, POINTLIST._JOHNNY_FIRSTSTART)
gJV_OnBike = PedCreatePoint(23, POINTLIST._3_B_JOHNNY_SPAWN)
gKeyMaster1 = PedCreatePoint(34, POINTLIST._2_03_FRONT_GATE_LOCKER)
gKeyMaster2 = PedCreatePoint(34, POINTLIST._2_03_BACK_GATE_LOCKER)
gLackey[8].ped = PedCreatePoint(58, POINTLIST._EDNAPOINT, 1)
gLackey[9].ped = PedCreatePoint(38, POINTLIST._GYMCUTSCENELOCATIONS, 3)
gLeon = PedCreatePoint(43, POINTLIST._5_02_WHDROPOUTS, 1)
gLola = PedCreatePoint(25, POINTLIST._5_03_LOLA)
gLuis = PedCreatePoint(16, gPedCreatePoint)
gMailmanID = PedCreatePoint(127, minpoint)
gMandy = PedCreatePoint(14, POINTLIST._1_S01_BROOM_GIRL)
gMandy = PedCreatePoint(14, POINTLIST._GYMCUTSCENELOCATIONS, 10)
gMelvin = PedCreatePoint(6, POINTLIST._2_S04_MELVIN)
gMsPhillips = PedCreatePoint(63, POINTLIST._3_S11_OUTRONIS, 1)
gMsPhillips = PedCreatePoint(63, POINTLIST._3_S11_PHILLIPS)
gNerd01 = PedCreatePoint(186, POINTLIST._3_R09_FIRST, 1)
gNerd02 = PedCreatePoint(4, POINTLIST._3_R09_FIRST, 2)
gNerd03 = PedCreatePoint(8, POINTLIST._3_R09_FIRST, 3)
gNewsMan = PedCreatePoint(116, POINTLIST._2_R03_VENDOR)
gNorton = PedCreatePoint(29, POINTLIST._5_03_NORTON)
gOldLady = PedCreatePoint(185, oldlady, 1)
gord = PedCreatePoint(30, gDest.dest, 1)
gOrderly = PedCreatePoint(53, orderly, 1)
gOtto = PedCreatePoint(42, POINTLIST._5_02_RATPATROL, 1)
gPartierB01 = PedCreatePoint(RandomTableElement(gDropoutModels), POINTLIST._5_02_DOPARTIERS02, 1)
gPartierB02 = PedCreatePoint(RandomTableElement(gDropoutModels), POINTLIST._5_02_DOPARTIERS02, 2)
gPartierFire = PedCreatePoint(RandomTableElement(gDropoutModels), POINTLIST._5_02_DOFIREBARREL01, 1)
gPeanut = PedCreatePoint(21, POINTLIST._3_06_GREASERS, 4)
gPeanut = PedCreatePoint(21, POINTLIST._FINALFIGHT, 5)
gPed = PedCreatePoint(model, POINTLIST._GRAFFITITESTSPAWN, spot)
gPedro = PedCreatePoint(69, POINTLIST._1_01_KIDRUN, 2)
gPedroBully = PedCreatePoint(102, POINTLIST._1_01_KIDRUN, 1)
gPeds[1] = PedCreatePoint(236, POINTLIST._C3T_CONSTRUCTION, 1)
gPeds[2] = PedCreatePoint(237, POINTLIST._C3T_CONSTRUCTION, 2)
gPeds[3] = PedCreatePoint(195, POINTLIST._C3T_CONSTRUCTION, 3)
gPeds[4] = PedCreatePoint(123, POINTLIST._C3T_CONSTRUCTION, 5)
gPeds[5] = PedCreatePoint(131, POINTLIST._C3T_PEDESTRIANS, 1)
gPeds[6] = PedCreatePoint(97, POINTLIST._C3T_PEDESTRIANS, 2)
gPete = PedCreatePoint(134, POINTLIST._BEGGINING, 2)
gPeter = PedCreatePoint(134, POINTLIST._1_03_PETER)
gPeter = PedCreatePoint(134, POINTLIST._3_B_HELPER_SPAWN)
gPetey = PedCreatePoint(134, POINTLIST._PETEY)
gPeteyPier = PedCreatePoint(134, POINTLIST._PETEYPIER)
gPrefect = PedCreatePoint(51, POINTLIST._1_02_NISLOCATIONS, 3)
gPrefect = PedCreatePoint(61, POINTLIST._1_02_NISLOCATIONS, 2)
gPrepIds[i] = PedCreatePoint(pedModel, POINTLIST._BOXING_CROWD, i)
gPrincipal = PedCreatePoint(65, POINTLIST._1_S01_CRABBLE, 1)
gPushers[1] = PedCreatePoint(99, POINTLIST._1_02_NIS_BULLIES, 1)
gPushers[2] = PedCreatePoint(145, POINTLIST._1_02_NIS_BULLIES, 2)
Greaser1 = PedCreatePoint(24, POINTLIST._PUNISHTEST_P2)
greaser1 = PedCreatePoint(26, POINTLIST._TEST_HEADING_PED)
greaser1 = PedCreatePoint(29, POINTLIST._3B_ALLEYGREASER, 1)
greaser2 = PedCreatePoint(28, POINTLIST._3B_ALLEYGREASER, 2)
GreaserThief.id = PedCreatePoint(GreaserThief.model, GreaserThief.point)
GreaserThief.id1 = PedCreatePoint(GreaserThief.model1, GreaserThief.point, 2)
GreaserThief.id2 = PedCreatePoint(GreaserThief.model2, GreaserThief.point, 3)
GreaserThief.id3 = PedCreatePoint(GreaserThief.model3, GreaserThief.point, 4)
GreaserThief.id4 = PedCreatePoint(GreaserThief.model4, GreaserThief.point, 5)
gRetirementTable.ped1 = PedCreatePoint(53, POINTLIST._SPAWNRETIREMENT1)
gRetirementTable.ped1 = PedCreatePoint(53, POINTLIST._SPAWNRETIREMENT1, 1)
gRetirementTable.ped2 = PedCreatePoint(183, POINTLIST._OLDFOLKSSPAWN1)
gRetirementTable.ped2 = PedCreatePoint(53, POINTLIST._SPAWNRETIREMENT2)
gRetirementTable.ped3 = PedCreatePoint(184, POINTLIST._OLDFOLKSSPAWN2)
gRetirementTable.ped4 = PedCreatePoint(185, POINTLIST._OLDFOLKSSPAWN3)
gRichM01 = PedCreatePoint(183, POINTLIST._3_09_PAK01, 1)
gRichM02 = PedCreatePoint(55, POINTLIST._3_09_PAK02, 1)
gRichM03 = PedCreatePoint(151, POINTLIST._3_09_PAK03, 1)
gRichM04 = PedCreatePoint(131, POINTLIST._3_09_PAK04, 1)
gRichM05 = PedCreatePoint(132, POINTLIST._3_09_PAK05, 1)
gRudy = PedCreatePoint(252, POINTLIST._3_10_RUDYSCENE01, 1)
gRussell = PedCreatePoint(176, POINTLIST._INDUS_POINTS, 6)
gRussell = PedCreatePoint(176, POINTLIST._SIDESCHOOLPOINTS, 4)
gRussell = PedCreatePoint(75, POINTLIST._1_02_NISLOCATIONS, 3)
gRussell.id = PedCreatePoint(gRussell.model, gRussell.point)
gSecondEventPedA = PedCreatePoint(73, POINTLIST._C5_PEDEVENT02, 2)
gSecondEventPedB = PedCreatePoint(74, POINTLIST._C5_PEDEVENT02, 1)
gSecretary = PedCreatePoint(59, POINTLIST._1_01_SECRETARY, 1)
gSecretary = PedCreatePoint(59, POINTLIST._SECRETARY)
gSidelines[1] = PedCreatePoint(111, POINTLIST._SIDELINE, 1)
gSidelines[2] = PedCreatePoint(232, POINTLIST._SIDELINE, 2)
gSidelines[3] = PedCreatePoint(231, POINTLIST._SIDELINE, 3)
gSidelines[4] = PedCreatePoint(109, POINTLIST._SIDELINE, 4)
gSidelines[5] = PedCreatePoint(231, POINTLIST._SIDELINE, 5)
gSidelines[6] = PedCreatePoint(232, POINTLIST._SIDELINE, 6)
gSidelines[7] = PedCreatePoint(111, POINTLIST._SIDELINE, 7)
gSleepingOrderly = PedCreatePoint(53, POINTLIST._5_03_1F_RECRM_ORDERLY2)
gSpawned01 = PedCreatePoint(5, POINTLIST._4_02_O_WN4_2)
gSpawned02 = PedCreatePoint(6, POINTLIST._4_02_O_WN2_2)
gSpawned03 = PedCreatePoint(7, POINTLIST._4_02_O_WN3_2)
gSpawned04 = PedCreatePoint(11, POINTLIST._4_02_O_WN1_2)
gSpawned05 = PedCreatePoint(9, POINTLIST._4_02_O_R1_1)
gSpawned06 = PedCreatePoint(8, POINTLIST._4_02_O_R2_1)
gStationOrderly = PedCreatePoint(158, POINTLIST._5_03_STATION1_ORDERLY)
gTargetBoy = PedCreatePoint(70, POINTLIST._PEDTARGETLOCATION)
gTed = PedCreatePoint(110, POINTLIST._TED)
gThad = PedCreatePoint(7, POINTLIST._2_S04_SHEET2_N1)
gThad = PedCreatePoint(7, POINTLIST._4_02_GATEKEEPER)
gTheo = PedCreatePoint(53, POINTLIST._3_S11_GATE_ORDERLY)
gThirdEventPed = PedCreatePoint(71, POINTLIST._C5_PEDEVENT03)
guy = PedCreatePoint(model, point, index)
guy = PedCreatePoint(spawn.model, POINTLIST._2_05_FRONTDOOR)
guy.id = PedCreatePoint(guy.model, chaserSpawn, guy.pos)
gVance = PedCreatePoint(27, POINTLIST._FINALFIGHT, 2)
gVance = PedCreatePoint(27, POINTLIST._FINALFIGHT, 3)
hattrick = PedCreatePoint(61, POINTLIST._C9_HATTRICK)
iCheer01 = PedCreatePoint(181, POINTLIST._C3_SPECT_07)
iCheer02 = PedCreatePoint(180, POINTLIST._C3_SPECT_08)
iCheer03 = PedCreatePoint(180, POINTLIST._C3_SPECT_01)
iCheer04 = PedCreatePoint(181, POINTLIST._C3_SPECT_02)
iCheer05 = PedCreatePoint(182, POINTLIST._C3_SPECT_03)
id = PedCreatePoint(13, POINTLIST._4_04_MINEJOCKS, 3)
id = PedCreatePoint(13, POINTLIST._4_04_UDR_JOCK_02, 1)
id = PedCreatePoint(15, POINTLIST._4_04_JOCKRESTARTPOINTS, 2),
id = PedCreatePoint(16, POINTLIST._4_04_MINEJOCKS, 1)
id = PedCreatePoint(17, POINTLIST._4_04_JOCKRESTARTPOINTS, 3),
id = PedCreatePoint(18, POINTLIST._4_04_MINEJOCKS, 2)
id = PedCreatePoint(18, POINTLIST._4_04_UDR_JOCK_01, 1)
id = PedCreatePoint(20, POINTLIST._4_04_JOCKRESTARTPOINTS, 1),
id = PedCreatePoint(5, pointlist2, 1),
id = PedCreatePoint(8, pointlist1, 1),
id = PedCreatePoint(F_GetAvailableJock(), POINTLIST._4_04_MAZEJOCKS, 1)
id = PedCreatePoint(F_GetAvailableJock(), POINTLIST._4_04_MAZEJOCKS, 2)
id = PedCreatePoint(F_GetAvailableJock(), POINTLIST._4_04_MAZEJOCKS, 3)
idBiff = PedCreatePoint(133, POINTLIST._2_B_BIFF)
idBryce.id = PedCreatePoint(idBryce.model, POINTLIST._2_06_OTHERWAITERS, 1)
idBucky = PedCreatePoint(8, POINTLIST._1_07_BUCKY, 1)
idBucky = PedCreatePoint(8, POINTLIST._1_07_BUCKY_PEANUTCUT, 2)
idBurton = PedCreatePoint(55, POINTLIST._1_04_FIELDSPAWN, 7)
idBurton = PedCreatePoint(55, POINTLIST._5_05_BURTONPOOPED, 1)
idBurton = PedCreatePoint(55, POINTLIST._5_05_BURTONSTART, 1)
idBurton = PedCreatePoint(55, POINTLIST._5_05_CHECKPOT1, 1)
idConst.id = PedCreatePoint(idConst.model, POINTLIST._2_06_OTHERWAITERS, 2)
idCop = PedCreatePoint(83, POINTLIST._5_09_COPCAR, 2)
idCop = PedCreatePoint(97, POINTLIST._5_06_COPEVENT, 3)
idDarby = PedCreatePoint(37, POINTLIST._2_B_DARBY_START)
idDO = PedCreatePoint(DO_MODEL, POINTLIST._5_04_GYM_DOSTART)
idEunice.id = PedCreatePoint(idEunice.model, POINTLIST._2_06_WAITERS, 1)
idGord = PedCreatePoint(30, POINTLIST._TPHOTO_PED)
idGord = PedCreatePoint(30, POINTLIST._TPHOTO_PEDG)
idGord.id = PedCreatePoint(idGord.model, POINTLIST._2_06_WAITERS, 1)
idJustin.id = PedCreatePoint(idJustin.model, POINTLIST._2_06_OTHERWAITERS, 2)
idLittleBoy = PedCreatePoint(69, POINTLIST._5_04_DO_BIKE, 2)
idLola = PedCreatePoint(25, POINTLIST._3_05_LOLAEND)
idLola.id = PedCreatePoint(idLola.model, POINTLIST._2_06_WAITERS, 2)
idNemesis = PedCreatePoint(130, POINTLIST._1_04_PLAYERSTART, 2)
idNorton = PedCreatePoint(29, POINTLIST._3_05_BOSSBATTLEJASON)
idNorton = PedCreatePoint(29, POINTLIST._3_05_NORTKNOCK)
idOmar = PedCreatePoint(47, POINTLIST._5_07_DROPOUT_10, 3)
idPete = PedCreatePoint(134, POINTLIST._5_06_PLAYERSTART, 2)
idPeter = PedCreatePoint(134, POINTLIST._2_04_PETEYSPAWN, 1)
idPeter = PedCreatePoint(134, POINTLIST._2_04_RESTARTPLAYER, 4)
idPeter = PedCreatePoint(134, POINTLIST._5_09_PETEY)
idPetey.id = PedCreatePoint(idPetey.model, POINTLIST._2_06_OTHERWAITERS, 1)
idPinky.id = PedCreatePoint(idPinky.model, POINTLIST._2_06_PINKYWAITS, 1)
idPreppy = PedCreatePoint(F_GetPreppyModel(), spawnLocation)
idRussell = PedCreatePoint(176, POINTLIST._5_07_RUSSELLBURNT, 1)
idRussell = PedCreatePoint(75, POINTLIST._5_06_NISRECRUITRUSSELL, 2)
idRussell = PedCreatePoint(75, POINTLIST._5_06_RUSSELLNIS, 3)
idTeacher = PedCreatePoint(106, POINTLIST._2_S05_PLAYERKICKEDOUT)
idTeacher = PedCreatePoint(63, POINTLIST._4324_TEACHER, 1)
idTeacher2 = PedCreatePoint(64, POINTLIST._2_S05_PLAYERKICKEDOUT, 2)
idWorker = PedCreatePoint(123, POINTLIST._5_06_COPEVENT, 2)
idZoe = PedCreatePoint(48, POINTLIST._5_05_CHECKPOT2, 2)
idZoe = PedCreatePoint(48, POINTLIST._5_05_ZOEPOTTY, 1)
idZoe = PedCreatePoint(48, POINTLIST._5_05_ZOESTART, 1)
idZoe = PedCreatePoint(48, POINTLIST._5_07_ZSTART)
iGreaser01 = PedCreatePoint(24, POINTLIST._3_S09_INITIALGREASERS, 1)
iGreaser01 = PedCreatePoint(28, POINTLIST._3_S09_INITIALGREASERS, 1)
iGreaser02 = PedCreatePoint(27, POINTLIST._3_S09_INITIALGREASERS, 2)
iGreaser03 = PedCreatePoint(28, POINTLIST._3_S09_INITIALGREASERS, 3)
iPrincipal = PedCreatePoint(65, POINTLIST._C5_PRINCIPALSTART)
item.ped = PedCreatePoint(item.pedModel, item.pedPoint)
Janitor = PedCreatePoint(56, POINTLIST._CHAPT4TRANS_MOW, 1)
jock01 = PedCreatePoint(204, POINTLIST._3_R09_UNLOCKPEDS, 2)
jock02 = PedCreatePoint(17, POINTLIST._3_R09_UNLOCKPEDS, 3)
jock03 = PedCreatePoint(207, POINTLIST._3_R09_UNLOCKPEDS, 4)
johnny = PedCreatePoint(23, POINTLIST._3_01_JOHNNYSPAWN, 1)
Justin = PedCreatePoint(34, POINTLIST._3_07_JUSTIN)
kid_01 = PedCreatePoint(kidModel_01, POINTLIST._3_XM_KIDSTART, 1)
kid_02 = PedCreatePoint(kidModel_02, POINTLIST._3_XM_KIDSTART, 2)
kid_03 = PedCreatePoint(kidModel_03, POINTLIST._3_XM_KIDSTART, 3)
kidActive = PedCreatePoint(69, POINTLIST._3_01D_RUDYTHRONE)
kidActive = PedCreatePoint(tKidSet[Kid_Index].model, POINTLIST._3_01D_LINE6)
kissGirl = PedCreatePoint(39, POINTLIST._C2_GIRLSPAWN)
lackey1 = PedCreatePoint(12, POINTLIST._LIBPEDS, 2)
lackey1 = PedCreatePoint(21, POINTLIST._GIRLSDORM, 1)
lackey1 = PedCreatePoint(32, POINTLIST._HARRINGTONHOUSE, 1)
lackey1 = PedCreatePoint(8, POINTLIST._GARAGEROOF, 1)
lackey2 = PedCreatePoint(11, POINTLIST._GARAGEROOF, 3)
lackey2 = PedCreatePoint(18, POINTLIST._LIBPEDS, 3)
lackey2 = PedCreatePoint(22, POINTLIST._GIRLSDORM, 2)
lackey2 = PedCreatePoint(35, POINTLIST._HARRINGTONHOUSE, 3)
LastJumper01 = PedCreatePoint(24, POINTLIST._LAST_JUMPER01)
LastJumper02 = PedCreatePoint(27, POINTLIST._LAST_JUMPER02)
LastRunner01 = PedCreatePoint(27, POINTLIST._LAST_RUNNER01)
LastRunner02 = PedCreatePoint(29, POINTLIST._LAST_RUNNER02)
librarian = PedCreatePoint(62, POINTLIST._5_01_LIBRARIAN)
Librarian = PedCreatePoint(62, POINTLIST._LIBRARIANPOINT)
local allyId = PedCreatePoint(RandomTableElement(gAllyModels), pointList, index)
local Boy = PedCreatePoint(ped1, POINTLIST._KISSYKISSY, 2)
local cop = PedCreatePoint(83, POINTLIST._6_02_CHASECOPS, 1)
local cop = PedCreatePoint(83, POINTLIST._INDUS_POINTS, 7)
local cop = PedCreatePoint(97, point, i)
local davis = PedCreatePoint(99, POINTLIST._1_03_DAVISSTART)
local dog = PedCreatePoint(69, POINTLIST.DOGSPAWN, 1)
local dog = PedCreatePoint(69, POINTLIST.SECONDDOG, 1)
local driver = PedCreatePoint(236, POINTLIST._CHAPT4TRANS_DRIVER, 1)
local earnie = PedCreatePoint(10, POINTLIST._2_S05_BPLAYERSTART, 1)
local edna = PedCreatePoint(58, POINTLIST._EDNAPOINT, 1)
local endPed = PedCreatePoint(gEndPed, POINTLIST._3_R09_ENDSEQUENCE, 2)
local enemy = PedCreatePoint(15, POINTLIST._TFIGHT01_N_01)
local gAlgernon = PedCreatePoint(4, POINTLIST._C5T_ALGERNON, 1)
local gBully01 = PedCreatePoint(99, POINTLIST._6_03_ENDNISBULLIES, 1)
local gBully02 = PedCreatePoint(85, POINTLIST._6_03_ENDNISBULLIES, 2)
local gBully03 = PedCreatePoint(145, POINTLIST._6_03_ENDNISBULLIES, 3)
local gCafeteria = PedCreatePoint(58, POINTLIST._C5T_CAFETERIA, 1)
local gDarby = PedCreatePoint(37, POINTLIST._C5T_DARBY, 1)
local gEarnest = PedCreatePoint(10, POINTLIST._C5T_EARNEST, 1)
local gEdgar = PedCreatePoint(91, POINTLIST._C5T_EDGAR, 1)
local gFatgirl = PedCreatePoint(74, POINTLIST._C5T_GN_FATGIRL, 1)
local gGalloway = PedCreatePoint(57, POINTLIST._C5T_GALLOWAY, 1)
local gGary = PedCreatePoint(130, POINTLIST._6_03_ENDNIS, 6)
local gGary = PedCreatePoint(130, POINTLIST._BEATRICECUTSCENE, 4)
local gGreaser1 = PedCreatePoint(26, POINTLIST._3_06_GREASERS, 1)
local gGreaser1 = PedCreatePoint(26, POINTLIST._INTRONIS, 7)
local gGreaser1 = PedCreatePoint(29, POINTLIST._3_06_GREASERS, 1)
local gGreaser2 = PedCreatePoint(24, POINTLIST._3_06_GREASERS, 2)
local gGreaser2 = PedCreatePoint(24, POINTLIST._INTRONIS, 8)
local gGreaser4 = PedCreatePoint(26, POINTLIST._3_06_GREASERS, 3)
local gGreaser4 = PedCreatePoint(29, POINTLIST._3_06_GREASERS, 3)
local Girl = PedCreatePoint(ped2, POINTLIST._KISSYKISSY, 3)
local girlfriend = PedCreatePoint(62, POINTLIST._3_S09_GIRLFRIEND)
local gJohnny = PedCreatePoint(23, POINTLIST._C5T_JOHNNY, 1)
local gMandy = PedCreatePoint(14, POINTLIST._C5T_MANDY, 1)
local gPeter = PedCreatePoint(134, POINTLIST._C5T_PETER, 1)
local gPhillips = PedCreatePoint(63, POINTLIST._C5T_PHILLIPS, 1)
local gPrefect1 = PedCreatePoint(50, POINTLIST._6_03_ENDNIS, 5)
local gPrefect2 = PedCreatePoint(49, POINTLIST._6_03_ENDNIS, 4)
local gPrep1 = PedCreatePoint(31, POINTLIST._3_06_PREPS, 1)
local gPrep1 = PedCreatePoint(31, POINTLIST._INITIALPREPS, 1)
local gPrep2 = PedCreatePoint(32, POINTLIST._3_06_PREPS, 2)
local gPrep2 = PedCreatePoint(32, POINTLIST._INITIALPREPS, 2)
local gRunnerId = PedCreatePoint(232, POINTLIST._4_06_BALL_GUARD, 2)
local gRussell = PedCreatePoint(75, POINTLIST._C5T_RUSSELL, 1)
local gTeacher = PedCreatePoint(63, POINTLIST._STAFFROOM_ANGRYSTAFF)
local gTed = PedCreatePoint(19, POINTLIST._C5T_TED, 1)
local guard = PedCreatePoint(50, pos, 1)
local guard = PedCreatePoint(model, pos, 1)
local guy = PedCreatePoint(22, POINTLIST._SITTINGDOWN, 2)
local guy = PedCreatePoint(RandomTableElement(gMailboxPedModels), point, 1)
local gZoe = PedCreatePoint(2, POINTLIST._C5T_ZOE, 1)
local hattrick = PedCreatePoint(61, POINTLIST._2_S02_HATTRICKINHOUSE, 1)
local id = PedCreatePoint(31, point)
local id = PedCreatePoint(35, point)
local id = PedCreatePoint(DormPed, key.Point, count)
local id = PedCreatePoint(SchoolPed, key.Point, count)
local idFireman = PedCreatePoint(82, POINTLIST._2_R04_CORONA)
local insultBoy = PedCreatePoint(70, POINTLIST._C7_UNLOCKPED, 3)
local insultBoy = PedCreatePoint(70, POINTLIST._C7_UNLOCKPED, 5)
local insultBoy = PedCreatePoint(75, POINTLIST._C7_UNLOCKPED, 3)
local Lefty = PedCreatePoint(24, POINTLIST._LOWSITTEST1)
local manager = PedCreatePoint(76, POINTLIST._3_S09_MANAGER)
local nEnemy = PedCreatePoint(nPedType, nSpawn, 1)
local outroPedA = PedCreatePoint(13, POINTLIST._4_06_JOCKSPAWN, 1)
local outroPedA = PedCreatePoint(13, POINTLIST._4_06_OPAEND_PED, 1)
local outroPedA = PedCreatePoint(20, POINTLIST._4_06_OPDENDPED, 1)
local outroPedA = PedCreatePoint(232, POINTLIST._4_06_JOCKSPAWN, 1)
local outroPedB = PedCreatePoint(109, POINTLIST._4_06_OPDENDPED, 2)
local outroPedB = PedCreatePoint(12, POINTLIST._4_06_OPAEND_PED, 2)
local outroPedB = PedCreatePoint(15, POINTLIST._4_06_JOCKSPAWN, 1)
local outroPedB = PedCreatePoint(232, POINTLIST._4_06_JOCKSPAWN, 1)
local outroPedC = PedCreatePoint(14, POINTLIST._4_06_OPAEND_PED, 3)
local outroPedC = PedCreatePoint(232, POINTLIST._4_06_JOCKSPAWN, 1)
local outroPedC = PedCreatePoint(232, POINTLIST._4_06_OPDENDPED, 3)
local ped = PedCreatePoint(102, POINTLIST._TESTAVOIDPED01, 1)
local ped = PedCreatePoint(15, POINTLIST._TFIGHT01_E_01)
local ped = PedCreatePoint(42, POINTLIST._SIDESCHOOLPOINTS, 3)
local ped = PedCreatePoint(46, POINTLIST._SIDESCHOOLPOINTS, 2)
local ped = PedCreatePoint(69, POINTLIST._CHAPT3TRANSFLEE, 1)
local ped = PedCreatePoint(73, POINTLIST._CHAPTTRANSPLACEMENT, 1)
local ped = PedCreatePoint(83, POINTLIST._COPS, 3)
local ped = PedCreatePoint(83, POINTLIST._COPS, 5)
local ped = PedCreatePoint(88, POINTLIST._2_S05_SURPRISE)
local ped = PedCreatePoint(97, POINTLIST._COPS, 4)
local ped = PedCreatePoint(entry, pointlist, element)
local ped = PedCreatePoint(model, point, 1)
local ped = PedCreatePoint(model, point, element)
local ped = PedCreatePoint(model, point, pointNum)
local ped = PedCreatePoint(RandomTableElement(gReinforcementModels), POINTLIST._RESPAWN, 1)
local ped1 = PedCreatePoint(22, POINTLIST._3_05_CATRUNNERS, 1)
local ped2 = PedCreatePoint(102, POINTLIST._CHAPT3TRANSFLEE, 2)
local ped2 = PedCreatePoint(145, POINTLIST._CHAPT1CHASE, 2)
local ped2 = PedCreatePoint(26, POINTLIST._3_05_CATWALKB, 1)
local ped4 = PedCreatePoint(27, POINTLIST._3_05_CATWALKA, 1)
local pete = PedCreatePoint(134, POINTLIST._CHAPT2TRANS, 2)
local prefect = PedCreatePoint(50, POINTLIST._C7_LASTPREFECT)
local prefect = PedCreatePoint(50, POINTLIST._GYMCUTSCENELOCATIONS, 4)
local principal = PedCreatePoint(65, POINTLIST.SPAWN, 2)
local rider = PedCreatePoint(model, bikePt, 2)
local Student = PedCreatePoint(72, POINTLIST._HIGHSITTEST1)
local student = PedCreatePoint(model, POINTLIST._C2_STUDENTS, point)
local teacher = PedCreatePoint(106, POINTLIST._2_S05_TEACHERSPAWN)
local tempPed = PedCreatePoint(randModel, POINTLIST._4_05_SPAWNJOCKS, 1)
local tempPed = PedCreatePoint(randPedModel, POINTLIST._3_04_BIKEATTACKERS, node)
local townie = PedCreatePoint(model, point, index)
local tPed = PedCreatePoint(model, pointlist, pointNo)
lola = PedCreatePoint(25, gDest.dest, 2)
lVictim[VictimCounter] = PedCreatePoint(tblPedModels[math.random(2, 6)], tblVictimInfo[VictimCounter].STARTFLG)
MailMan.id = PedCreatePoint(127, MailMan.point, 1)
mandy = PedCreatePoint(14, POINTLIST._4G4_MANDYEND)
mandy = PedCreatePoint(14, POINTLIST._MANDYPOINT, 1)
Mascot = PedCreatePoint(88, POINTLIST._1_09_STAGERIGHT)
melvin = PedCreatePoint(6, POINTLIST._4_03_MELVIN)
MomTalker = PedCreatePoint(80, POINTLIST._3_01D_MOTHER)
musicTeach = PedCreatePoint(249, POINTLIST._3_01C_MSPETERS)
musicTeach = PedCreatePoint(249, POINTLIST._CM_TEACHERSPEAK)
nemesis = PedCreatePoint(130, POINTLIST._1_10_NEMESIS_MM)
nemesis = PedCreatePoint(130, POINTLIST._PP_NEM)
nerd.id = PedCreatePoint(nerd.model, nerd.point)
newElf = PedCreatePoint(elfModel_01, POINTLIST._3_XM_ELFSPAWN01)
newElf = PedCreatePoint(elfModel_01, POINTLIST._3_XM_ELFSPAWN03)
newElf = PedCreatePoint(elfModel_02, POINTLIST._3_XM_ELFSPAWN02)
newKid = PedCreatePoint(kidModel, POINTLIST._3_XM_KIDSPAWN, spawnPos)
newParent = PedCreatePoint(parentModel, POINTLIST._3_XM_PARSPAWN, spawnPos)
norton = PedCreatePoint(29, POINTLIST._TFIGHT01_NE_01)
norton = PedCreatePoint(99, POINTLIST._PP_PEDSTART)
opponent = PedCreatePoint(opponentModel, POINTLIST._C3_ESTART)
opponent = PedCreatePoint(opponentModel, POINTLIST._C3_PLAYERVICTORY, 2)
parent_01 = PedCreatePoint(parentModel_01, POINTLIST._3_XM_PARENTSTART, 1)
parent_02 = PedCreatePoint(parentModel_02, POINTLIST._3_XM_PARENTSTART, 2)
parent_03 = PedCreatePoint(parentModel_03, POINTLIST._3_XM_PARENTSTART, 3)
PB1 = PedCreatePoint(233, POINTLIST._PUNCHBAGS, 1)
PB2 = PedCreatePoint(233, POINTLIST._PUNCHBAGS, 2)
PB3 = PedCreatePoint(233, POINTLIST._PUNCHBAGS, 3)
ped = PedCreatePoint(0, pedpoint, 1)
ped = PedCreatePoint(102, POINTLIST._TESTAVOIDPED01, 2)
ped = PedCreatePoint(102, POINTLIST._TESTAVOIDPED02, 1)
ped = PedCreatePoint(102, POINTLIST._TESTAVOIDPED02, 2)
ped = PedCreatePoint(102, POINTLIST._TESTCOLLIDE, 1)
ped = PedCreatePoint(102, POINTLIST._TESTCOLLIDE, 2)
ped = PedCreatePoint(102, POINTLIST._TESTFOLLOW, 1)
ped = PedCreatePoint(102, POINTLIST._TESTPEDONSPOT, 1)
ped = PedCreatePoint(102, POINTLIST._TESTPEDONSPOT, 2)
ped = PedCreatePoint(102, POINTLIST._TESTPROPUSE, 1)
ped = PedCreatePoint(102, POINTLIST._TESTPROPUSE, 2)
ped = PedCreatePoint(3, POINTLIST._CHAPTTRANSPLACEMENT, 5)
ped = PedCreatePoint(30, POINTLIST._CHAPTTRANSPLACEMENT, 3)
ped = PedCreatePoint(35, POINTLIST._CHAPTTRANSPLACEMENT, 4)
ped = PedCreatePoint(39, POINTLIST._CHAPT3TRANSCOUPLE, 2)
ped = PedCreatePoint(5, POINTLIST._CHAPT3TRANSCOUPLE, 1)
ped = PedCreatePoint(69, POINTLIST._CHAPT1CHASE, 1)
ped = PedCreatePoint(70, POINTLIST._CHAPTTRANSPLACEMENT, 2)
ped = PedCreatePoint(71, POINTLIST._CHAPT3TRANSFATTY, 1)
ped = PedCreatePoint(79, POINTLIST._ENTERCAR_PLAYER)
ped = PedCreatePoint(85, POINTLIST._CHAPT3TRANSFATTY, 2)
ped = PedCreatePoint(gPedModels[i], POINTLIST._CHARACTERS, i)
ped = PedCreatePoint(i, pedpoint, 1)
ped = PedCreatePoint(model, point)
ped = PedCreatePoint(model, point, element)
ped = PedCreatePoint(model, POINTLIST._ENTERCAR_PLAYER)
ped = PedCreatePoint(modelNum, point, pointNum)
ped = PedCreatePoint(RandomTableElement({
ped = PedCreatePoint(tblPed[i], pedpoint, 1)
ped = PedCreatePoint(tblPed[pedchoice], pedpoint, 1)
ped.id = PedCreatePoint(ped.model, ped.point)
ped1 = PedCreatePoint(110, POINTLIST._4_03_CAMFAILJOCKS, 1)
ped1 = PedCreatePoint(30, POINTLIST._2_04_PREP1, 1)
ped1 = PedCreatePoint(85, POINTLIST._REMEMBERSETUP, 3)
ped1 = PedCreatePoint(85, POINTLIST._REMEMBERSETUP, 6)
ped2 = PedCreatePoint(111, POINTLIST._4_03_CAMFAILJOCKS, 2)
ped2 = PedCreatePoint(32, POINTLIST._2_04_PREP2, 1)
ped2 = PedCreatePoint(5, POINTLIST._REMEMBERSETUP, 2)
ped3 = PedCreatePoint(109, POINTLIST._4_03_CAMFAILJOCKS, 3)
ped3 = PedCreatePoint(139, POINTLIST._REMEMBERSETUP, 1)
ped3 = PedCreatePoint(31, POINTLIST._2_04_PREP3, 1)
ped4 = PedCreatePoint(111, POINTLIST._4_03_CAMFAILJOCKS, 4)
pedAlgie.id = PedCreatePoint(pedAlgie.model, pedAlgie.spawn, pedAlgie.element)
pedAlgie.id = PedCreatePoint(pedAlgie.model, POINTLIST._3_04_SPAWNALGIESTG3, pedAlgie.element)
pedAlgie.id = PedCreatePoint(pedAlgie.model, POINTLIST._3_04_STG3WARPALGIE, 1)
pedAlgie.id = PedCreatePoint(pedAlgie.model, POINTLIST._3_04_STG4_SPAWNALGIE, 1)
pedAngieGym.id = PedCreatePoint(pedAngieGym.model, pedAngieGym.spawn, pedAngieGym.element)
pedArtTeacher.id = PedCreatePoint(pedArtTeacher.model, pedArtTeacher.spawn, pedArtTeacher.element)
pedAsianGirl.id = PedCreatePoint(pedAsianGirl.model, pedAsianGirl.spawn, pedAsianGirl.element)
pedAsianGirl.id = PedCreatePoint(pedAsianGirl.model, POINTLIST._2_S06B_PANICASIANGIRL, pedAsianGirl.element)
pedBathroomWierdo02.id = PedCreatePoint(pedBathroomWierdo02.model, pedBathroomWierdo02.spawn, pedBathroomWierdo02.element)
pedBeatrice.id = PedCreatePoint(pedBeatrice.model, pedBeatrice.spawn, pedBeatrice.element)
pedBeatrice.id = PedCreatePoint(pedBeatrice.model, POINTLIST._2_S06B_BEATRICERUNIN, 1)
pedBeatrice.id = PedCreatePoint(pedBeatrice.model, POINTLIST._2_S06B_BEATRICERUNIN, 2)
pedBeatrice.id = PedCreatePoint(pedBeatrice.model, POINTLIST._2_S06B_BEATRICERUNIN, 3)
pedBeatrice.id = PedCreatePoint(pedBeatrice.model, POINTLIST._2_S06B_BEATRICERUNIN, 4)
pedBeatrice.id = PedCreatePoint(pedBeatrice.model, POINTLIST._2_S06B_BEATRICERUNIN, 5)
pedBeatrice.id = PedCreatePoint(pedBeatrice.model, POINTLIST._2_S06B_CUTBEATRICE, pedBeatrice.element)
pedBryce = PedCreatePoint(35, POINTLIST._2_07_LAST_THUGS)
pedBulliesLeft01.id = PedCreatePoint(pedBulliesLeft01.model, pedBulliesLeft01.spawn, pedBulliesLeft01.element)
pedBulliesLeft02.id = PedCreatePoint(pedBulliesLeft02.model, pedBulliesLeft02.spawn, pedBulliesLeft02.element)
pedBulliesLeft03.id = PedCreatePoint(pedBulliesLeft03.model, pedBulliesLeft03.spawn, pedBulliesLeft03.element)
pedBulliesRight01.id = PedCreatePoint(pedBulliesRight01.model, pedBulliesRight01.spawn, pedBulliesRight01.element)
pedBulliesRight02.id = PedCreatePoint(pedBulliesRight02.model, pedBulliesRight02.spawn, pedBulliesRight02.element)
pedBully01.id = PedCreatePoint(pedBully01.model, pedBully01.spawn, pedBully01.element)
pedBully02.id = PedCreatePoint(pedBully02.model, pedBully02.spawn, pedBully02.element)
pedBurton.id = PedCreatePoint(pedBurton.model, pedBurton.spawn, pedBurton.element)
pedBurtonStage3.id = PedCreatePoint(pedBurtonStage3.model, pedBurtonStage3.spawn, pedBurtonStage3.element)
pedCamera.id = PedCreatePoint(pedCamera.model, pedCamera.spawn, pedCamera.element)
pedChad.id = PedCreatePoint(pedChad.model, pedChad.spawn, pedChad.element)
pedChad.id = PedCreatePoint(pedChad.model, POINTLIST._3_04_STG4_SPAWNCHAD, 1)
pedCheerleader01.id = PedCreatePoint(pedCheerleader01.model, pedCheerleader01.spawn, pedCheerleader01.element)
pedCheerleader02.id = PedCreatePoint(pedCheerleader02.model, pedCheerleader02.spawn, pedCheerleader02.element)
pedChristyDorm.id = PedCreatePoint(pedChristyDorm.model, pedChristyDorm.spawn, pedChristyDorm.element)
pedChristyGym.id = PedCreatePoint(pedChristyGym.model, pedChristyGym.spawn, pedChristyGym.element)
pedConstantine.id = PedCreatePoint(pedConstantine.model, pedConstantine.spawn, pedConstantine.element)
pedCornelius.id = PedCreatePoint(pedCornelius.model, pedCornelius.spawn, pedCornelius.element)
pedCornelius.id = PedCreatePoint(pedCornelius.model, POINTLIST._3_04_STG4_SPAWNCORNELIUS, 1)
pedCrabbleSnitch.id = PedCreatePoint(pedCrabbleSnitch.model, pedCrabbleSnitch.spawn, pedCrabbleSnitch.element)
pedCutBo.id = PedCreatePoint(pedCutBo.model, pedCutBo.spawn, pedCutBo.element)
pedCutBo.id = PedCreatePoint(pedCutBo.model, POINTLIST._4_05CUT_ENDBO, 1)
pedCutBucky.id = PedCreatePoint(pedCutBucky.model, pedCutBucky.spawn, pedCutBucky.element)
pedCutBucky.id = PedCreatePoint(pedCutBucky.model, POINTLIST._4_05CUT_ENDBUCKY, 1)
pedCutCasey.id = PedCreatePoint(pedCutCasey.model, pedCutCasey.spawn, pedCutCasey.element)
pedCutCasey.id = PedCreatePoint(pedCutCasey.model, POINTLIST._4_05CUT_ENDCASEY, 1)
pedCutCornelius.id = PedCreatePoint(pedCutCornelius.model, pedCutCornelius.spawn, pedCutCornelius.element)
pedCutCornelius.id = PedCreatePoint(pedCutCornelius.model, POINTLIST._4_05CUT_ENDCORNELIUS, 1)
pedCutDan.id = PedCreatePoint(pedCutDan.model, pedCutDan.spawn, pedCutDan.element)
pedCutJuri.id = PedCreatePoint(pedCutJuri.model, pedCutJuri.spawn, pedCutJuri.element)
pedCutJuri.id = PedCreatePoint(pedCutJuri.model, POINTLIST._4_05CUT_ENDJURI, 1)
pedCutKirby.id = PedCreatePoint(pedCutKirby.model, pedCutKirby.spawn, pedCutKirby.element)
pedCutThad.id = PedCreatePoint(pedCutThad.model, pedCutThad.spawn, pedCutThad.element)
pedCutThad.id = PedCreatePoint(pedCutThad.model, POINTLIST._4_05CUT_ENDTHAD, 1)
pedDeadMascot = PedCreatePoint(88, POINTLIST._4_05CUT_POOLCONST, 1)
pedDog.id = PedCreatePoint(pedDog.model, pedDog.spawn, pedDog.element)
pedDog.id = PedCreatePoint(pedDog.model, POINTLIST._1_11X2_CUTPOOPDOG, 1)
pedEarnest.id = PedCreatePoint(pedEarnest.model, pedEarnest.spawn, pedEarnest.element)
pedEarnest.id = PedCreatePoint(pedEarnest.model, POINTLIST._3_04_STG4_SPAWNEARNEST, 1)
pedEunice.id = PedCreatePoint(pedEunice.model, pedEunice.spawn, pedEunice.element)
pedEunice.id = PedCreatePoint(pedEunice.model, POINTLIST._2_S06B_SPAWNEUNICEDOWNSTAIRS, pedEunice.element)
pedFirstBully.id = PedCreatePoint(pedFirstBully.model, pedFirstBully.spawn, pedFirstBully.element)
pedGalloway.id = PedCreatePoint(pedGalloway.model, pedGalloway.spawn, pedGalloway.element)
pedGalloway.id = PedCreatePoint(pedGalloway.model, POINTLIST._3_S03_OUTROGALLOWAY, 1)
pedGary.id = PedCreatePoint(pedGary.model, pedGary.spawn, pedGary.element)
pedGary.id = PedCreatePoint(pedGary.model, POINTLIST._1_11X2_CUTPOOPGARY, 1)
pedGary.id = PedCreatePoint(pedGary.model, POINTLIST._1_11X2_DEBUGSPAWNGARY, pedGary.element)
pedGirl01 = PedCreatePoint(38, POINTLIST._TESTSTUDGIRL1, 1)
pedGirl02 = PedCreatePoint(74, POINTLIST._TESTSTUDGIRL2, 1)
pedGirl03 = PedCreatePoint(137, POINTLIST._TESTSTUDGIRL3, 1)
pedGirlsShower_01.id = PedCreatePoint(pedGirlsShower_01.model, pedGirlsShower_01.spawn, pedGirlsShower_01.element)
pedGirlsShower_02.id = PedCreatePoint(pedGirlsShower_02.model, pedGirlsShower_02.spawn, pedGirlsShower_02.element)
pedGord = PedCreatePoint(30, POINTLIST._2_07_GORDFOOTRUN)
pedGreaser01.id = PedCreatePoint(pedGreaser01.model, pedGreaser01.spawn, pedGreaser01.element)
pedGreaser01.id = PedCreatePoint(pedGreaser01.model, POINTLIST._3_04_HILLPED01, 1)
pedGreaser01.id = PedCreatePoint(pedGreaser01.model, POINTLIST._3_04_SPAWNGPED01, pedGreaser01.element)
pedGreaser02.id = PedCreatePoint(pedGreaser02.model, pedGreaser02.spawn, pedGreaser02.element)
pedGreaser02.id = PedCreatePoint(pedGreaser02.model, POINTLIST._3_04_SPAWNGPED02, pedGreaser02.element)
pedGreaser03.id = PedCreatePoint(pedGreaser03.model, pedGreaser03.spawn, pedGreaser03.element)
pedGreaser04.id = PedCreatePoint(pedGreaser04.model, pedGreaser04.spawn, pedGreaser04.element)
pedGreaser04.id = PedCreatePoint(pedGreaser04.model, POINTLIST._3_04_HILLPED02, 1)
pedGreaser05.id = PedCreatePoint(pedGreaser05.model, pedGreaser05.spawn, pedGreaser05.element)
pedGreaser06.id = PedCreatePoint(pedGreaser06.model, pedGreaser06.spawn, pedGreaser06.element)
pedHattrick.id = PedCreatePoint(pedHattrick.model, pedHattrick.spawn, pedHattrick.element)
pedHattrick.id = PedCreatePoint(pedHattrick.model, POINTLIST._3_S03_OUTROHATTRICK, 1)
pedHeadmistress = PedCreatePoint(54, POINTLIST._GDORM_HEADSPAWN, 1)
pedHeadmistress.id = PedCreatePoint(pedHeadmistress.model, pedHeadmistress.spawn, 1)
pedJock.id = PedCreatePoint(pedJock.model, pedJock.spawn, pedJock.element)
pedJockBathroomFirstFloor01.id = PedCreatePoint(pedJockBathroomFirstFloor01.model, pedJockBathroomFirstFloor01.spawn, pedJockBathroomFirstFloor01.element)
pedJockBathroomFirstFloor02.id = PedCreatePoint(pedJockBathroomFirstFloor02.model, pedJockBathroomFirstFloor02.spawn, pedJockBathroomFirstFloor02.element)
pedJockBathroomSecondFloor01.id = PedCreatePoint(pedJockBathroomSecondFloor01.model, pedJockBathroomSecondFloor01.spawn, pedJockBathroomSecondFloor01.element)
pedJockBathroomSecondFloor02.id = PedCreatePoint(pedJockBathroomSecondFloor02.model, pedJockBathroomSecondFloor02.spawn, pedJockBathroomSecondFloor02.element)
pedJockPushup01.id = PedCreatePoint(pedJockPushup01.model, pedJockPushup01.spawn, pedJockPushup01.element)
pedJockSmoke.id = PedCreatePoint(pedJockSmoke.model, pedJockSmoke.spawn, pedJockSmoke.element)
pedJockSprint01.id = PedCreatePoint(pedJockSprint01.model, pedJockSprint01.spawn, pedJockSprint01.element)
pedJohnny.id = PedCreatePoint(pedJohnny.model, pedJohnny.spawn, pedJohnny.element)
pedKaren.id = PedCreatePoint(pedKaren.model, pedKaren.spawn, pedKaren.element)
pedKlepto.id = PedCreatePoint(pedKlepto.model, pedKlepto.spawn, pedKlepto.element)
pedLibrarian.id = PedCreatePoint(pedLibrarian.model, pedLibrarian.spawn, pedLibrarian.element)
pedLola.id = PedCreatePoint(pedLola.model, pedLola.spawn, pedLola.element)
pedLola.id = PedCreatePoint(pedLola.model, POINTLIST._SPAWNLOLAALLEY, pedLola.element)
pedMandy.id = PedCreatePoint(pedMandy.model, pedMandy.spawn, pedMandy.element)
pedMandyBedroom.id = PedCreatePoint(pedMandyBedroom.model, pedMandyBedroom.spawn, pedMandyBedroom.element)
pedMandyGym.id = PedCreatePoint(pedMandyGym.model, pedMandyGym.spawn, pedMandyGym.element)
pedMandyShower.id = PedCreatePoint(pedMandyShower.model, pedMandyShower.spawn, pedMandyShower.element)
pedMascot.id = PedCreatePoint(pedMascot.model, pedMascot.spawn, pedMascot.element)
pedMascot.id = PedCreatePoint(pedMascot.model, POINTLIST._4_05_SPAWNMASCOTPOOL, 1)
pedMascot.id = PedCreatePoint(pedMascot.model, POINTLIST._4_05CUT_SPAWNMASCOT, 1)
pedNorton.id = PedCreatePoint(pedNorton.model, pedNorton.spawn, pedNorton.element)
pedParker = PedCreatePoint(40, POINTLIST._2_07_LAST_THUGS, 1)
pedPete.id = PedCreatePoint(pedPete.model, pedPete.spawn, pedPete.element)
pedPinky.id = PedCreatePoint(pedPinky.model, pedPinky.spawn, pedPinky.element)
pedPinkyGym.id = PedCreatePoint(pedPinkyGym.model, pedPinkyGym.spawn, pedPinkyGym.element)
pedPinkyUW.id = PedCreatePoint(pedPinkyUW.model, POINTLIST._2_S06B_PANICPINKYUW, pedPinkyUW.element)
pedPoolPrep.id = PedCreatePoint(pedPoolPrep.model, pedPoolPrep.spawn, pedPoolPrep.element)
pedPrefect.id = PedCreatePoint(pedPrefect.model, pedPrefect.spawn, pedPrefect.element)
pedPrefectKarl.id = PedCreatePoint(pedPrefectKarl.model, pedPrefectKarl.spawn, pedPrefectKarl.element)
pedPrep.id = PedCreatePoint(pedPrep.model, pedPrep.spawn, pedPrep.element)
pedPrep.id = PedCreatePoint(pedPrep.model, POINTLIST._3_S03_SPAWNPREPALLEY, pedPrep.element)
pedRicky = PedCreatePoint(28, POINTLIST._2_07_GREASER_START)
Pedro = PedCreatePoint(69, POINTLIST._3_07_PEDRO)
pedRussell.id = PedCreatePoint(pedRussell.model, pedRussell.spawn, pedRussell.element)
pedSexyGirl.id = PedCreatePoint(pedSexyGirl.model, pedSexyGirl.spawn, pedSexyGirl.element)
pedSexyGirl.id = PedCreatePoint(pedSexyGirl.model, POINTLIST._2_S06B_PANICSEXYGIRL, pedSexyGirl.element)
pedStage4JockNearLibrary01.id = PedCreatePoint(pedStage4JockNearLibrary01.model, pedStage4JockNearLibrary01.spawn, pedStage4JockNearLibrary01.element)
pedStage4JockNearLibrary02.id = PedCreatePoint(pedStage4JockNearLibrary02.model, pedStage4JockNearLibrary02.spawn, pedStage4JockNearLibrary02.element)
pedStg1Jock.id = PedCreatePoint(pedStg1Jock.model, pedStg1Jock.spawn, pedStg1Jock.element)
pedStg1Pref.id = PedCreatePoint(pedStg1Pref.model, pedStg1Pref.spawn, pedStg1Pref.element)
pedStg3Girl01.id = PedCreatePoint(pedStg3Girl01.model, pedStg3Girl01.spawn, pedStg3Girl01.element)
pedStg3Girl02.id = PedCreatePoint(pedStg3Girl02.model, pedStg3Girl02.spawn, pedStg3Girl02.element)
pedStg3Girl03.id = PedCreatePoint(pedStg3Girl03.model, pedStg3Girl03.spawn, pedStg3Girl03.element)
pedStg3Girl04.id = PedCreatePoint(pedStg3Girl04.model, pedStg3Girl04.spawn, pedStg3Girl04.element)
pedStg3Girl05.id = PedCreatePoint(pedStg3Girl05.model, pedStg3Girl05.spawn, pedStg3Girl05.element)
pedStoreOwner.id = PedCreatePoint(pedStoreOwner.model, pedStoreOwner.spawn, pedStoreOwner.element)
pedStrikerJock01.id = PedCreatePoint(pedStrikerJock01.model, POINTLIST._2_G2_INTROJOCK1, pedStrikerJock01.element)
pedStrikerJock02.id = PedCreatePoint(pedStrikerJock02.model, POINTLIST._2_G2_INTROJOCK2, pedStrikerJock02.element)
pedStrippedKid = PedCreatePoint(235, POINTLIST._4_05CUT_POOLCONST, 1)
pedTad.id = PedCreatePoint(pedTad.model, pedTad.spawn, pedTad.element)
pedZoe.id = PedCreatePoint(pedZoe.model, pedZoe.spawn, pedZoe.element)
pete = PedCreatePoint(134, POINTLIST._CHAPT3ENDPETE, 1)
pete = PedCreatePoint(134, POINTLIST._CHAPT3TRANSPED, 2)
pete = PedCreatePoint(134, POINTLIST._CHAPT4TRANS, 2)
phillips = PedCreatePoint(63, POINTLIST._1_S01_PHILLIPS)
Players[1].Player = PedCreatePoint(255, POINTLIST._3_01C_BAND02)
prank.id = PedCreatePoint(prank.model, prank.point, 1)
prefect = PedCreatePoint(prefectModel, POINTLIST._PREFECTLOC)
Prefect1 = PedCreatePoint(13, POINTLIST._PUNISHTEST_P1)
Prefect1 = PedCreatePoint(50, POINTLIST._PUNISHTEST_P1)
principal = PedCreatePoint(65, POINTLIST._PRIOFF_SPAWN, 2)
race.countdown_ped.id = PedCreatePoint(race.countdown_ped.model, race.countdown_ped.point)
racer.id = PedCreatePoint(racer.model, racer.start_pos)
rat = PedCreatePoint(136, POINTLIST._5_02_RATS, i)
rat = PedCreatePoint(136, POINTLIST._5_02AMBIENTRATS, i)
return PedCreatePoint(model, point, element)
Rudy = PedCreatePoint(252, POINTLIST._3_01D_RUDYSTART)
russell = PedCreatePoint(75, POINTLIST._1_B_RUSSELL)
santa = PedCreatePoint(santaModel, POINTLIST._3_XM_BUMSCENE)
shared.gBif = PedCreatePoint(33, POINTLIST._PREPHS_BIF, 1)
shared.gBif = PedCreatePoint(33, POINTLIST._PREPHS_BIFMOVED, 1)
shared.gEdnaID = PedCreatePoint(nEdnaModel, POINTLIST._AMBLUNCHLADY)
shared.gGary = PedCreatePoint(160, POINTLIST._1_11XP_PLAYERSTART, 2)
shared.gGary = PedCreatePoint(pedGary.model, pedGary.spawn, pedGary.element)
shared.gPetey = PedCreatePoint(165, POINTLIST._1_11XP_PLAYERSTART, 3)
shared.gPetey = PedCreatePoint(pedPete.model, pedPete.spawn, pedPete.element)
shared.gSecretaryID = PedCreatePoint(59, POINTLIST._1_01_SECRETARYINOFFICE, 1)
shared.gSecretaryID = PedCreatePoint(59, POINTLIST._PRINCIPALROOM, 2)
shared.gSecretaryID = PedCreatePoint(59, POINTLIST._SECRETARY)
shared.idDog = PedCreatePoint(141, POINTLIST._5_05_PPDOG, 1)
sheet1Bruiser = PedCreatePoint(102, POINTLIST._2_S04_SHEET1BRUISER)
sheet1Guard = PedCreatePoint(85, POINTLIST._2_S04_SHEET1)
sheet2Goon1 = PedCreatePoint(102, POINTLIST._2_S04_SHEET2_G1)
sheet2Guard = PedCreatePoint(99, POINTLIST._2_S04_SHEET2)
sheet3Guard = PedCreatePoint(102, POINTLIST._2_S04_SHEET3)
sheet4Guard = PedCreatePoint(99, POINTLIST._2_S04_SHEET4)
shopTeach = PedCreatePoint(126, POINTLIST._C6_TEACHER)
spud_nerd = PedCreatePoint(7, POINTLIST._4_02_SPUD_NERD01)
Student = PedCreatePoint(24, POINTLIST._PUNISHTEST_P2)
student = PedCreatePoint(ped1, POINTLIST._CAFELINEUP1, i)
student = PedCreatePoint(ped1, POINTLIST._CAFELINEUP2, i)
Student01 = PedCreatePoint(70, POINTLIST._CM_STUDENT01)
Student02 = PedCreatePoint(74, POINTLIST._CM_STUDENT02)
Student1 = PedCreatePoint(102, POINTLIST._PUNISHTEST_P1)
student1 = PedCreatePoint(3, POINTLIST._C4_STUDENTS, 1)
student1 = PedCreatePoint(3, POINTLIST._C7_STUDENTS, 1)
student1 = PedCreatePoint(3, POINTLIST._C8_STUDENTS, 1)
student1 = PedCreatePoint(3, POINTLIST._C9_STUDENTS, 1)
student2 = PedCreatePoint(35, POINTLIST._C7_STUDENTS, 2)
student2 = PedCreatePoint(35, POINTLIST._C8_STUDENTS, 2)
student2 = PedCreatePoint(35, POINTLIST._C9_STUDENTS, 2)
student2 = PedCreatePoint(66, POINTLIST._C4_STUDENTS, 2)
Student2 = PedCreatePoint(99, POINTLIST._PUNISHTEST_P2)
student3 = PedCreatePoint(66, POINTLIST._C7_STUDENTS, 3)
student3 = PedCreatePoint(66, POINTLIST._C8_STUDENTS, 3)
student3 = PedCreatePoint(66, POINTLIST._C9_STUDENTS, 3)
sweater_guard = PedCreatePoint(31, POINTLIST._IBOXING_TAD_SWEATER)
table.insert(gBlockers1, PedCreatePoint(145, POINTLIST._1_02_FIRSTSET, 3))
table.insert(gBlockers1, PedCreatePoint(99, POINTLIST._1_02_FIRSTSET, 1))
table.insert(gNerds, PedCreatePoint(11, POINTLIST._4G4_NERDLIBRARY, 2))
table.insert(gNerds, PedCreatePoint(4, POINTLIST._4G4_NERDLIBRARY, 1))
table.insert(gPushers, PedCreatePoint(102, POINTLIST._1_01_BEGGININGBULLIES, 1))
table.insert(gPushers, PedCreatePoint(145, POINTLIST._1_01_BEGGININGBULLIES, 3))
table.insert(gPushers, PedCreatePoint(145, POINTLIST._1_01_SECSPAWN, 3))
table.insert(gPushers, PedCreatePoint(145, POINTLIST._1_02_BULLIESMID, 3))
table.insert(gPushers, PedCreatePoint(145, POINTLIST._1_02_BULLIESMID, 4))
table.insert(gPushers, PedCreatePoint(99, POINTLIST._1_01_BEGGININGBULLIES, 2))
table.insert(gPushers, PedCreatePoint(99, POINTLIST._1_01_CHEERPOINTS, 1))
table.insert(gPushers, PedCreatePoint(99, POINTLIST._1_02_BULLIESMID, 2))
table.insert(gPushers, PedCreatePoint(99, POINTLIST._1_02_BULLIESMID, 3))
table.insert(gRooftopPeds1, PedCreatePoint(24, POINTLIST._FINALFIGHT, 3))
table.insert(gRooftopPeds1, PedCreatePoint(24, POINTLIST._FINALFIGHT, 4))
table.insert(tableToPutThemIn, PedCreatePoint(F_GetGreaserModel(), pointlist, i))
tableEntry.id = PedCreatePoint(tableEntry.model, tableEntry.point, tableEntry.pvalue)
tbl.id = PedCreatePoint(tbl.model, tbl.point)
tblGord.id = PedCreatePoint(tblGord.model, tblGord.point)
tblGordWH.id = PedCreatePoint(30, POINTLIST._3_02_WHGORD)
tblGreaser.id = PedCreatePoint(tblGreaser.model, tblGreaser.spawn, tblGreaser.element)
tblGreaser1WH.id = PedCreatePoint(24, POINTLIST._3_02_GREASERSCUT, 1)
tblGreaser1WH.id = PedCreatePoint(24, POINTLIST._3_02_WHGR1)
tblGreaser2WH.id = PedCreatePoint(27, POINTLIST._3_02_GREASERSCUT, 2)
tblGreaser2WH.id = PedCreatePoint(27, POINTLIST._3_02_WHGR2)
tblJohnnyWH.id = PedCreatePoint(23, POINTLIST._3_02_JOHNNYENDCUT)
tblJohnnyWH.id = PedCreatePoint(23, POINTLIST._3_02_WHJOHN)
tblMsPhillips.id = PedCreatePoint(tblMsPhillips.model, POINTLIST._4_S12_MSPHILLIPS)
tblPeanut.id = PedCreatePoint(tblPeanut.model, POINTLIST._4_S12_PEANUTSTART, 1)
tblPeanut.id2 = PedCreatePoint(tblPeanut.model, POINTLIST._4_S12_PEANUTSTART, 2)
tblPed.id = PedCreatePoint(tblPed.model, tblPed.point)
tblPrank[PrankToCreate].id = PedCreatePoint(tblPrank[PrankToCreate].model, tblPrank[PrankToCreate].point, 1)
tblPrep1WH.id = PedCreatePoint(31, POINTLIST._3_02_WHPREP1)
tblPrep2WH.id = PedCreatePoint(34, POINTLIST._3_02_WHPREP2)
tblRaceInfo.race.countdown_ped.id = PedCreatePoint(86, POINTLIST._2_04_OWNER)
tblTad.id = PedCreatePoint(tblTad.model, tblTad.point)
tblTad.patrolToSend.id = PedCreatePoint(tblTad.patrolToSend.model, tblTad.patrolToSend.point)
teacher = PedCreatePoint(248, POINTLIST._C7_GALLOWAY)
teacher = PedCreatePoint(55, POINTLIST._3_S09_TEACHERSTART)
teacher = PedCreatePoint(63, POINTLIST._C2_TEACHER, 1)
teacher = PedCreatePoint(63, POINTLIST._C5_ENDINGPOINTS, 1)
teacher = PedCreatePoint(63, POINTLIST._C5_TEACHERSTART)
tempGirl01 = PedCreatePoint(tableRandomGirl[math.random(1, table.getn(tableRandomGirl))], POINTLIST._6_02G_SPAWNGIRL, 1)
tempGirl02 = PedCreatePoint(tableRandomGirl[math.random(1, table.getn(tableRandomGirl))], POINTLIST._6_02G_SPAWNGIRL, 1)
tempGirl03 = PedCreatePoint(tableRandomGirl[math.random(1, table.getn(tableRandomGirl))], POINTLIST._6_02G_SPAWNGIRL, 1)
tEnemyID[i] = PedCreatePoint(tEnemies[i].model, tEnemies[i].point)
testPed = PedCreatePoint(18, POINTLIST._JSTART)
tFirstFloorTable.gord.id = PedCreatePoint(tFirstFloorTable.gord.model, tFirstFloorTable.gord.point, tFirstFloorTable.gord.num)
tFirstFloorTable.parker.id = PedCreatePoint(tFirstFloorTable.parker.model, tFirstFloorTable.parker.point, tFirstFloorTable.parker.num)
thad = PedCreatePoint(7, POINTLIST._4_03_MELVIN, 2)
Trevor = PedCreatePoint(73, POINTLIST._3_07_TREVOR)
tSecondFloorTable.justin.id = PedCreatePoint(tSecondFloorTable.justin.model, tSecondFloorTable.justin.point, tSecondFloorTable.justin.num)
tSecondFloorTable.tad.id = PedCreatePoint(tSecondFloorTable.tad.model, tSecondFloorTable.tad.point, tSecondFloorTable.tad.num)
tThirdFloorTable.bryce.id = PedCreatePoint(tThirdFloorTable.bryce.model, tThirdFloorTable.bryce.point, tThirdFloorTable.bryce.num)
tThirdFloorTable.chad.id = PedCreatePoint(tThirdFloorTable.chad.model, tThirdFloorTable.chad.point, tThirdFloorTable.chad.num)
watts = PedCreatePoint(106, POINTLIST._2_S05_DINNEREDNA, 2)
sub esp, 0x1C
push ebx
push ebp
mov ebp, dword ptr [esp+0x28]
push esi
push ebp
xor bl, bl
call 0x73AEA0
add esp, 0x4
cmp eax, 0x3
jnz 0x16
push 0x2
push ebp
mov bl, 0x1
call LuaParam::GetInt
movzx eax, ax
add esp, 0x8
mov dword ptr [esp+0x10], eax
push 0x0
push ebp
call LuaParam::GetInt
push 0x1
push ebp
mov dword ptr [esp+0x28], eax
call LuaParam::GetInt
add esp, 0x10
push eax
mov ecx, 0xBC5E7C
call 0x6D6450
mov ecx, eax
mov dword ptr [esp+0x14], eax
call 0x6D59B0
test bl, bl
mov esi, eax
jz 0x28
movzx ebx, word ptr [esp+0x10]
push edi
mov edi, 0x1
cmp ebx, edi
jle 0x18
mov ecx, dword ptr [esp+0x18]
call 0x6D59F0
test eax, eax
jz 0xB
add edi, 0x1
cmp edi, ebx
mov esi, eax
jl 0xFFFFFFEC
pop edi
mov eax, dword ptr [esi+0x8]
mov ecx, dword ptr [esi]
mov edx, dword ptr [esi+0x4]
mov dword ptr [esp+0x24], eax
fld st, dword ptr [esp+0x24]
fadd qword ptr [0x8FF1D8]
mov dword ptr [esp+0x1C], ecx
push 0x1
lea ecx, ptr [esp+0x13]
fstp dword ptr [esp+0x18], st
push ecx
fld st, dword ptr [esp+0x1C]
sub esp, 0xC
fstp dword ptr [esp+0x8], st
mov dword ptr [esp+0x34], edx
fld st, dword ptr [esp+0x34]
mov byte ptr [esp+0x23], 0x0
fstp dword ptr [esp+0x4], st
fld st, dword ptr [esp+0x30]
fstp dword ptr [esp], st
call 0x4636B0
add esp, 0x14
fstp dword ptr [esp+0x14], st
cmp byte ptr [esp+0xF], 0x0
jz 0xA
fld st, dword ptr [esp+0x14]
fstp dword ptr [esp+0x24], st
fld st, dword ptr [esp+0x24]
mov edx, dword ptr [esp+0x18]
fadd qword ptr [0x900D30]
push 0x1
sub esp, 0x10
fstp dword ptr [esp+0x38], st
fld st, dword ptr [esi+0x1C]
fstp dword ptr [esp+0x28], st
fld st, dword ptr [esp+0x28]
fsub st, qword ptr [0x900AB8]
fmul st, qword ptr [0x900160]
fdiv st, qword ptr [0x900158]
fstp dword ptr [esp+0x28], st
fld st, dword ptr [esp+0x28]
fstp dword ptr [esp+0xC], st
fld st, dword ptr [esp+0x38]
fstp dword ptr [esp+0x8], st
fld st, dword ptr [esp+0x34]
fstp dword ptr [esp+0x4], st
fld st, dword ptr [esp+0x30]
fstp dword ptr [esp], st
push edx
push ebp
call 0x5CF810
mov esi, eax
add esp, 0x1C
cmp esi, 0xFFFFFFFF
jz 0x14
push esi
mov ecx, 0xD02850
call 0x5DB940
mov ecx, eax
call 0x5D9630
push esi
push ebp
call LuaParam::PushInt
add esp, 0x8
pop esi
pop ebp
mov eax, 0x1
pop ebx
add esp, 0x1C
ret
gBeatrice = PedCreatePointWithAdjustedHeading(3, POINTLIST._BEATRICECUTSCENE, 1)
gFatty = PedCreatePointWithAdjustedHeading(155, POINTLIST._BUCKYCUTSCENE, 1)
gLackey[20].ped = PedCreatePointWithAdjustedHeading(13, gLackey[20].pPoint, gLackey[20].pPointNum)
gLackey[21].ped = PedCreatePointWithAdjustedHeading(15, gLackey[21].pPoint, gLackey[21].pPointNum)
sub esp, 0x18
push ebx
push ebp
mov ebp, dword ptr [esp+0x24]
push esi
push ebp
xor bl, bl
call 0x73AEA0
add esp, 0x4
cmp eax, 0x3
jnz 0x16
push 0x2
push ebp
mov bl, 0x1
call LuaParam::GetInt
movzx eax, ax
add esp, 0x8
mov dword ptr [esp+0xC], eax
push 0x0
push ebp
call LuaParam::GetInt
push 0x1
push ebp
mov dword ptr [esp+0x24], eax
call LuaParam::GetInt
movzx eax, ax
movzx ecx, ax
add esp, 0x10
push ecx
mov ecx, 0xBC5E7C
call 0x6D6450
mov ecx, eax
mov dword ptr [esp+0x10], eax
call 0x6D59B0
test bl, bl
mov esi, eax
jz 0x28
movzx ebx, word ptr [esp+0xC]
push edi
mov edi, 0x1
cmp ebx, edi
jle 0x18
mov ecx, dword ptr [esp+0x14]
call 0x6D59F0
test eax, eax
jz 0xB
add edi, 0x1
cmp edi, ebx
mov esi, eax
jl 0xFFFFFFEC
pop edi
fld st, dword ptr [esi+0x1C]
mov ecx, dword ptr [esi+0x8]
fstp dword ptr [esp+0x10], st
mov eax, dword ptr [esi+0x4]
fld st, dword ptr [esp+0x10]
mov edx, dword ptr [esi]
fsub st, qword ptr [0x900AB8]
sub esp, 0x10
mov dword ptr [esp+0x30], ecx
mov dword ptr [esp+0x2C], eax
fmul st, qword ptr [0x900160]
mov dword ptr [esp+0x28], edx
mov edx, dword ptr [esp+0x24]
fdiv st, qword ptr [0x900158]
fstp dword ptr [esp+0x20], st
fld st, dword ptr [esp+0x20]
fstp dword ptr [esp+0xC], st
fld st, dword ptr [esp+0x30]
fstp dword ptr [esp+0x8], st
fld st, dword ptr [esp+0x2C]
fstp dword ptr [esp+0x4], st
fld st, dword ptr [esp+0x28]
fstp dword ptr [esp], st
push edx
push ebp
call 0x5D04C0
mov esi, eax
add esp, 0x18
cmp esi, 0xFFFFFFFF
jz 0x14
push esi
mov ecx, 0xD02850
call 0x5DB940
mov ecx, eax
call 0x5D9630
push esi
push ebp
call LuaParam::PushInt
add esp, 0x8
pop esi
pop ebp
mov eax, 0x1
pop ebx
add esp, 0x18
ret
char = PedCreatePOIPoint(56, POIInfo, 0, 0, 0)
char = PedCreatePOIPoint(ped1, POIInfo, 0, 0, 0)
cheerleader1 = PedCreatePOIPoint(ped1, POIInfo, 1, 0, 0)
cheerleader2 = PedCreatePOIPoint(ped2, POIInfo, 0, 1, 0)
cheerleader3 = PedCreatePOIPoint(ped3, POIInfo, -1, 0, 0)
curPed = PedCreatePOIPoint(pedModel, POIInfo, -1.5, 0, 0)
curPed = PedCreatePOIPoint(pedModel, POIInfo, 0, 0, 0)
curPed = PedCreatePOIPoint(pedModel, POIInfo, 0, 1.5, 0)
curPed = PedCreatePOIPoint(pedModel, POIInfo, 1.5, 0, 0)
dog = PedCreatePOIPoint(ped1, POIInfo, 0, 0, 0)
jock1 = PedCreatePOIPoint(ped1, POIInfo, 0, 1, 0)
jock2 = PedCreatePOIPoint(ped2, POIInfo, 0, -1, 0)
local Boy = PedCreatePOIPoint(ped1, POIInfo, 0, 0, 0)
local char = PedCreatePOIPoint(136, POIInfo, math.random(-1, 1), math.random(-1, 1), 0)
local char = PedCreatePOIPoint(173, POIInfo, 0, 0, 0)
local char = PedCreatePOIPoint(195, POIInfo, 0, 0, 0)
local char = PedCreatePOIPoint(222, POIInfo, 0, 0, 0)
local char = PedCreatePOIPoint(charchoice, POIInfo, 0, 0, 0)
local char = PedCreatePOIPoint(model, POIInfo, 0, 0, 0)
local char = PedCreatePOIPoint(ped1, POIInfo, 0, 0, 0)
local Dog = PedCreatePOIPoint(ped2, POIInfo, 0, -1, 0)
local Girl = PedCreatePOIPoint(ped2, POIInfo, -1, 0, 0)
local Girl = PedCreatePOIPoint(ped2, POIInfo, 1.5, 0, 0)
local ped = PedCreatePOIPoint(model, POIInfo, 0, 0, 0)
local ped1 = PedCreatePOIPoint(ped1_ModelID, POIInfo, 0, 3.5, 0)
local ped2 = PedCreatePOIPoint(ped2_ModelID, POIInfo, 0, -3.5, 0)
local Teacher = PedCreatePOIPoint(ped1, POIInfo, 1, 0, 0)
local Thug = PedCreatePOIPoint(ped1, POIInfo, 0, -0.5, 0)
local Thug = PedCreatePOIPoint(ped1, POIInfo, 0, 0, 0)
local Thug = PedCreatePOIPoint(ped1, POIInfo, 1, 0, 0)
local Victim = PedCreatePOIPoint(ped2, POIInfo, 0, 0, 0)
local Victim = PedCreatePOIPoint(ped2, POIInfo, 0, 1, 0)
local Victim = PedCreatePOIPoint(ped2, POIInfo, 1, 0, 0)
local Victim = PedCreatePOIPoint(VictimChoice, POIInfo, 0, 0, 0)
local Walker = PedCreatePOIPoint(ped1, POIInfo, 0, 0, 0)
local Walker2 = PedCreatePOIPoint(ped2, POIInfo, 0, -1, 0)
local worker1 = PedCreatePOIPoint(ped1, POIInfo, 0, 1, 0)
local worker2 = PedCreatePOIPoint(ped2, POIInfo, 0, -1, 0)
ped2 = PedCreatePOIPoint(ped1, POIInfo, 0, 0, 0)
ped3 = PedCreatePOIPoint(53, POIInfo, -1, 0, 0)
ped3 = PedCreatePOIPoint(copmodel, POIInfo, -2, 0, 0)
puker = PedCreatePOIPoint(char, POIInfo, 0, 0, 0)
ScenarioPed = PedCreatePOIPoint(107, POIInfo)
ScenarioPed = PedCreatePOIPoint(127, POIInfo)
ScenarioPed = PedCreatePOIPoint(137, POIInfo)
ScenarioPed = PedCreatePOIPoint(138, POIInfo)
ScenarioPed = PedCreatePOIPoint(144, POIInfo)
ScenarioPed = PedCreatePOIPoint(149, POIInfo)
ScenarioPed = PedCreatePOIPoint(157, POIInfo)
ScenarioPed = PedCreatePOIPoint(158, POIInfo)
ScenarioPed = PedCreatePOIPoint(17, POIInfo)
ScenarioPed = PedCreatePOIPoint(173, POIInfo)
ScenarioPed = PedCreatePOIPoint(185, POIInfo)
ScenarioPed = PedCreatePOIPoint(195, POIInfo)
ScenarioPed = PedCreatePOIPoint(222, POIInfo)
ScenarioPed = PedCreatePOIPoint(234, POIInfo)
ScenarioPed = PedCreatePOIPoint(236, POIInfo)
ScenarioPed = PedCreatePOIPoint(237, POIInfo)
ScenarioPed = PedCreatePOIPoint(238, POIInfo)
ScenarioPed = PedCreatePOIPoint(27, POIInfo)
ScenarioPed = PedCreatePOIPoint(34, POIInfo)
ScenarioPed = PedCreatePOIPoint(4, POIInfo)
ScenarioPed = PedCreatePOIPoint(42, POIInfo)
ScenarioPed = PedCreatePOIPoint(49, POIInfo)
ScenarioPed = PedCreatePOIPoint(66, POIInfo)
ScenarioPed = PedCreatePOIPoint(67, POIInfo)
ScenarioPed = PedCreatePOIPoint(68, POIInfo)
ScenarioPed = PedCreatePOIPoint(69, POIInfo)
ScenarioPed = PedCreatePOIPoint(70, POIInfo)
ScenarioPed = PedCreatePOIPoint(76, POIInfo)
ScenarioPed = PedCreatePOIPoint(77, POIInfo)
ScenarioPed = PedCreatePOIPoint(81, POIInfo)
ScenarioPed = PedCreatePOIPoint(83, POIInfo)
ScenarioPed = PedCreatePOIPoint(86, POIInfo)
shared.gDunkMidget = PedCreatePOIPoint(charchoice, POIInfo, 0, 0, 0)
student = PedCreatePOIPoint(ped1, POIInfo, 0, 0, 0)
Thug = PedCreatePOIPoint(ped1, POIInfo, 0, 0, 0)
Thug = PedCreatePOIPoint(ThugChoice, POIInfo, 0, count * 2, 0)
Thug = PedCreatePOIPoint(ThugChoice, POIInfo, count, count * -0.5, 0)
Victim = PedCreatePOIPoint(VictimChoice, POIInfo, count, count, 0)
sub esp, 0x5C
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x6C]
push edi
push 0x0
push esi
mov byte ptr [esp+0x1B], 0x1
call LuaParam::GetInt
push 0x1
push esi
mov dword ptr [esp+0x24], eax
call LuaParam::GetInt
mov ecx, dword ptr [0xC0F5E4]
add esp, 0x10
push eax
mov dword ptr [esp+0x1C], 0xFFFFFFFF
call 0x448DC0
mov ecx, dword ptr [0xC2C108]
test ecx, ecx
mov ebp, eax
jz 0x2F
test ebp, ebp
jz 0x1D
cmp byte ptr [ebp+0xA3], 0x0
jz 0x14
movsx esi, byte ptr [ebp+0xA1]
call 0x49C2F0
cmp eax, esi
jle 0x12
jmp 0xB
call 0x49E9E0
test al, al
jnz 0x7
mov byte ptr [esp+0x13], 0x0
mov edi, dword ptr [0xC0F5F0]
mov ecx, dword ptr [edi+0x8]
xor edx, edx
xor eax, eax
test ecx, ecx
jle 0x15
mov esi, dword ptr [edi+0x4]
test byte ptr [esi+eax*1], 0x80
jnz 0x5
add edx, 0x1
add eax, 0x1
cmp eax, ecx
jl 0xFFFFFFF2
mov eax, ecx
sub eax, edx
cmp eax, 0x4
jnl 0x7
mov byte ptr [esp+0x13], 0x0
test ecx, ecx
jz 0x54
mov edx, dword ptr [edi+0x4]
mov esi, dword ptr [0xBF42DC]
sub ecx, 0x1
test byte ptr [edx+ecx*1], 0x80
jnz 0x3E
mov eax, dword ptr [edi+0xC]
imul eax, ecx
add eax, dword ptr [edi]
jz 0x34
cmp byte ptr [eax+0x1C98], 0x0
jnz 0x2B
movsx eax, word ptr [eax+0x10E]
cmp eax, esi
jz 0x20
cmp eax, dword ptr [0xBF42D4]
jz 0x18
cmp eax, dword ptr [0xBF42D0]
jz 0x10
cmp eax, dword ptr [0xBF42CC]
jz 0x8
cmp eax, dword ptr [esp+0x14]
jz 0x2C
test ecx, ecx
jnz 0xFFFFFFB9
cmp byte ptr [esp+0x13], 0x0
jz 0x211
test ebp, ebp
jz 0x209
mov eax, dword ptr [0xC1AEA8]
cmp dword ptr [eax+0x14], 0x0
jz 0x14
mov eax, dword ptr [eax+0x14]
add eax, 0x30
jmp 0xF
mov byte ptr [esp+0x13], 0x0
jmp 0x1EB
add eax, 0x4
mov esi, dword ptr [eax]
fldz
mov edi, dword ptr [eax+0x4]
mov ebx, dword ptr [eax+0x8]
fst dword ptr [esp+0x2C], st
mov edx, dword ptr [esp+0x70]
fst dword ptr [esp+0x30], st
lea ecx, ptr [esp+0x2C]
fstp dword ptr [esp+0x34], st
push ecx
push 0x2
push edx
lea eax, ptr [esp+0x44]
push eax
call LuaParam::GetVector ; optional
mov eax, dword ptr [0xBCC56C]
mov ecx, dword ptr [0xBCC564]
mov edx, dword ptr [0xBCC568]
mov dword ptr [esp+0x38], eax
mov eax, dword ptr [ebp+0x14]
add esp, 0x10
test eax, eax
mov dword ptr [esp+0x20], ecx
mov dword ptr [esp+0x24], edx
lea ecx, ptr [eax+0x30]
jnz 0x5
lea ecx, ptr [ebp+0x4]
test eax, eax
fld st, dword ptr [ecx]
fadd dword ptr [esp+0x38]
lea ecx, ptr [eax+0x30]
fstp dword ptr [esp+0x20], st
jnz 0x5
lea ecx, ptr [ebp+0x4]
test eax, eax
fld st, dword ptr [ecx+0x4]
fadd dword ptr [esp+0x3C]
fstp dword ptr [esp+0x24], st
jz 0x7
add eax, 0x30
jmp 0x5
lea eax, ptr [ebp+0x4]
fld st, dword ptr [eax+0x8]
mov ecx, dword ptr [0xC0F5E4]
fadd dword ptr [esp+0x40]
sub esp, 0xC
mov eax, esp
mov dword ptr [eax], esi
fstp dword ptr [esp+0x34], st
mov dword ptr [eax+0x4], edi
fldz
push ebp
fst dword ptr [esp+0x54], st
mov dword ptr [esp+0x60], 0x0
fst dword ptr [esp+0x58], st
mov dword ptr [eax+0x8], ebx
fst dword ptr [esp+0x5C], st
fst dword ptr [esp+0x64], st
fst dword ptr [esp+0x68], st
fstp dword ptr [esp+0x6C], st
fld st, dword ptr [0x9009B8]
fstp dword ptr [esp+0x78], st
call 0x448730
fld st, dword ptr [0x906520]
push 0x0
push 0x4
lea ecx, ptr [esp+0x24]
push ecx
lea edx, ptr [esp+0x50]
push edx
push ecx
mov bl, al
fstp dword ptr [esp], st
lea eax, ptr [esp+0x34]
push eax
call 0x4629C0
add esp, 0x18
test al, al
jnz 0xA6
test bl, bl
jz 0x9E
fld st, dword ptr [ebp+0x68]
push ecx
fstp dword ptr [esp], st
call 0x4333A0
mov ecx, dword ptr [esp+0x18]
fstp dword ptr [esp+0x1C], st
fld st, dword ptr [esp+0x1C]
mov edx, dword ptr [esp+0x74]
add esp, 0x4
push 0x0
sub esp, 0x10
fstp dword ptr [esp+0xC], st
fld st, dword ptr [esp+0x3C]
fstp dword ptr [esp+0x8], st
fld st, dword ptr [esp+0x38]
fstp dword ptr [esp+0x4], st
fld st, dword ptr [esp+0x34]
fstp dword ptr [esp], st
push ecx
push edx
call 0x5CF810
mov esi, eax
add esp, 0x1C
cmp esi, 0xFFFFFFFF
mov dword ptr [esp+0x18], esi
jz 0x3F
push esi
mov ecx, 0xD02850
call 0x5DB940
mov ecx, eax
call 0x5D9630
push ecx
mov eax, esp
push esi
mov dword ptr [eax], 0x2
call 0x5C7380
mov esi, eax
mov eax, dword ptr [esi+0x18]
push 0x1
push eax
call 0x5F2B00
add esp, 0x10
push 0x1
push esi
mov ecx, ebp
call 0x447410
jmp 0x24
mov byte ptr [esp+0x13], 0x0
jmp 0x1D
mov eax, dword ptr [ebp+0x70]
cmp eax, 0x2
mov byte ptr [esp+0x13], 0x0
jle 0x10
cmp eax, 0x10
jnl 0xB
push 0x0
mov ecx, ebp
call 0x4478F0
mov eax, dword ptr [esp+0x50]
test eax, eax
jz 0x1F
cmp eax, dword ptr [0xC2A8E8]
jnz 0x9
lea ecx, ptr [esp+0x50]
push ecx
jmp 0x7
lea edx, ptr [esp+0x50]
push edx
push eax
call 0x4657E0
add esp, 0x8
mov eax, dword ptr [esp+0x14]
push eax
call 0x52FE40
add esp, 0x4
cmp byte ptr [esp+0x13], 0x0
jnz 0xB
mov ecx, dword ptr [esp+0x70]
push 0xFFFFFFFF
push ecx
jmp 0xC
mov edx, dword ptr [esp+0x18]
mov eax, dword ptr [esp+0x70]
push edx
push eax
call LuaParam::PushInt
add esp, 0x8
pop edi
pop esi
pop ebp
mov eax, 0x1
pop ebx
add esp, 0x5C
ret
CLIENT
Returns a ped just like PedCreateXYZ, but doesn't attach the ped to a script. Also allows an initial heading to be set in degrees.
Usually not ideal, but it was created in case the ped limit is raised someday since scripts have a maximum of 50 peds.
PedCreateStimulus(gPlayer, CameraTarget, 65)
PedCreateStimulus(gPlayer, gHattrick, 2)
PedCreateStimulus(gPlayer, photoEntity, 65)
sub esp, 0xC
push ebx
push esi
push edi
mov edi, dword ptr [esp+0x1C]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov edx, eax
neg edx
sbb edx, edx
mov ecx, esp
add edx, 0x3
push eax
mov dword ptr [ecx], edx
call 0x5C7380
push 0x1
push edi
mov esi, eax
call LuaParam::GetInt
add esp, 0xC
mov edx, eax
neg edx
sbb edx, edx
mov ecx, esp
add edx, 0x3
push eax
mov dword ptr [ecx], edx
call 0x5C7380
push 0x2
push edi
mov ebx, eax
call LuaParam::GetInt
mov ecx, 0xD
add esp, 0x10
cmp dword ptr [esi+0x1310], ecx
jz 0x24
cmp dword ptr [ebx+0x1310], ecx
jz 0x1C
cmp dword ptr [esi+0xBB0], 0x0
jz 0x13
cmp dword ptr [esi+0xBB4], 0x0
jz 0xA
cmp dword ptr [ebx+0xBB4], esi
jnz 0x48
mov ecx, dword ptr [esi+0x14]
test ecx, ecx
jz 0x7
add ecx, 0x30
jmp 0x5
lea ecx, ptr [esi+0x4]
mov edx, dword ptr [ecx]
fld st, dword ptr [0x9009AC]
sub esp, 0x8
mov dword ptr [esp+0x14], edx
fst dword ptr [esp+0x4], st
mov edx, dword ptr [ecx+0x4]
fstp dword ptr [esp], st
mov dword ptr [esp+0x18], edx
mov ecx, dword ptr [ecx+0x8]
lea edx, ptr [esp+0x14]
push edx
push ebx
push esi
mov dword ptr [esp+0x28], ecx
mov ecx, dword ptr [0xC2C1A0]
push eax
call 0x4A6670
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xC
ret
Beatrice = PedCreateXYZ(3, BeX, BeY, BeZ)
Crazy01 = PedCreateXYZ(150, c1x, c1y, c1z)
Crazy02 = PedCreateXYZ(154, c2x, c2y, c2z)
DirtyCop = PedCreateXYZ(97, dirtyCop_x, dirtyCop_y, dirtyCop_z)
Dog = PedCreateXYZ(141, x, y, z)
Dropout1 = PedCreateXYZ(47, d1x, d1y, d1z)
gBoyFriend = PedCreateXYZ(70, bx, by, bz)
gBully = PedCreateXYZ(146, bullyX, bullyY, bullyZ)
gCheater01 = PedCreateXYZ(144, cheater01_x, cheater01_y, cheater01_z)
gCheater02 = PedCreateXYZ(78, cheater02_x, cheater02_y, cheater02_z)
gGordTicket = PedCreateXYZ(30, 345.847, 221.686, 4.95147)
gHobo = PedCreateXYZ(87, hx, hy, hz)
gLolaTicket = PedCreateXYZ(25, 345.98, 220.851, 4.95147)
gPinkyTicket = PedCreateXYZ(38, 342.93, 224.62, 4.90147)
gRat01 = PedCreateXYZ(136, x, y + 1, z + 1)
gRat02 = PedCreateXYZ(136, x, y - 1, z + 1)
Greaser1 = PedCreateXYZ(26, 214.743, -371.495, 2.63845)
Greaser1 = PedCreateXYZ(26, 549.9, -10.6, 10.8)
Greaser2 = PedCreateXYZ(27, 547.7, -13, 10.8)
Greaser2 = PedCreateXYZ(28, 215.078, -373.027, 2.64038)
gSpazzMan = PedCreateXYZ(222, delX, delY, delZ)
idPreppy = PedCreateXYZ(30, x, y, z)
idPreppy = PedCreateXYZ(40, x, y, z)
idPreppy = PedCreateXYZ(F_GetPreppyModel(), x, y, z)
local actor = PedCreateXYZ(15, x, y, z)
local ally = PedCreateXYZ(model, x + 1, y + 1, z)
local ally1 = PedCreateXYZ(model2, x + 1, y + 1, z)
local dog = PedCreateXYZ(69, x, y, z)
local driver = PedCreateXYZ(driverc, x + 4, y, z)
local ped = PedCreateXYZ(model, x, y, z)
local ped1 = PedCreateXYZ(model, x, y, z)
local ped2 = PedCreateXYZ(model, x, y, z)
local pedId = PedCreateXYZ(64, px - 4, py, pz)
local rider = PedCreateXYZ(biker, x, y, z + 1)
MotelOwner = PedCreateXYZ(108, motelOwner_x, motelOwner_y, motelOwner_z)
myPed = PedCreateXYZ(24, x + 10, y, z)
ped = PedCreateXYZ(24, 0, 0, 0)
ped.id = PedCreateXYZ(ped.model, ped.x, ped.y, ped.z)
ped.id = PedCreateXYZ(pedmodel, s1x, s1y, s1z)
ped.id = PedCreateXYZ(pedmodel, s4x, s4y, s4z)
ped1 = PedCreateXYZ(15, x - 5, y + 5, z + 0.5)
ped1 = PedCreateXYZ(15, x - 5, y + 7, z + 0.5)
ped1 = PedCreateXYZ(30, x + 10, y - 2, z)
ped2 = PedCreateXYZ(15, x + 5, y + 7, z + 0.5)
ped2 = PedCreateXYZ(30, x + 3, y, z)
ped3 = PedCreateXYZ(30, x + 2, y + 2, z)
ped4 = PedCreateXYZ(30, x, y + 3, z)
Petey = PedCreateXYZ(134, PeX, PeY, PeZ)
Prep1 = PedCreateXYZ(34, 203.36, -40.4, 6.72)
Prep2 = PedCreateXYZ(40, 202.26, -40.33, 6.72)
racers[i].id = PedCreateXYZ(racers[i].model, Xp + dX, Yp - dY, z)
rat.id = PedCreateXYZ(136, rat.x_coord, rat.y_coord, rat.z_coord)
Receiver1 = PedCreateXYZ(236, r1x, r1y, r1z)
Receiver1 = PedCreateXYZ(86, x, y, z)
Receiver2 = PedCreateXYZ(76, x, y, z)
Receiver3 = PedCreateXYZ(144, r3x, r3y, r3z)
Receiver3 = PedCreateXYZ(144, x, y, z)
shared.gGary = PedCreateXYZ(160, x1, y1, z1)
shared.gPetey = PedCreateXYZ(165, x2, y2, z2)
shared.ped1 = PedCreateXYZ(97, 314.7, -74.2, 5.1)
shared.PedLineupTable[ped].handle = PedCreateXYZ(shared.PedLineupTable[ped].model, offX, offY, offZ, 2)
tblRats[r + 9] = PedCreateXYZ(136, x + 1, y, z)
tblRats[r] = PedCreateXYZ(136, x, y, z)
testJock = PedCreateXYZ(16, x + 2, y + 2, z)
TestPed = PedCreateXYZ(28, x, y + 3, z)
sub esp, 0xC
push esi
mov esi, dword ptr [esp+0x14]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x20], st
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x24], st
push 0x3
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x28], st
fldz
add esp, 0x20
push 0x1
sub esp, 0x10
fstp dword ptr [esp+0xC], st
fld st, dword ptr [esp+0x1C]
fstp dword ptr [esp+0x8], st
fld st, dword ptr [esp+0x20]
fstp dword ptr [esp+0x4], st
fld st, dword ptr [esp+0x24]
fstp dword ptr [esp], st
push edi
push esi
call 0x5CF810
mov edi, eax
add esp, 0x1C
cmp edi, 0xFFFFFFFF
jz 0x14
push edi
mov ecx, 0xD02850
call 0x5DB940
mov ecx, eax
call 0x5D9630
push edi
push esi
call LuaParam::PushInt
add esp, 0x8
pop edi
mov eax, 0x1
pop esi
add esp, 0xC
ret
L_PedExec("ambush01", PedDelete, "id")
L_PedExec("ambush02", PedDelete, "id")
L_PedExec("ambush03", PedDelete, "id")
L_PedExec("ambush05", PedDelete, "id")
L_PedExec(p_wave1, PedDelete, "id")
L_PedExec(p_wave2, PedDelete, "id")
L_PedExec(p_wave3, PedDelete, "id")
L_PedExec(p_wave_scout2, PedDelete, "id")
L_PedExec(p_wave_scout3, PedDelete, "id")
PedDelete(attacker.id)
PedDelete(boxer)
PedDelete(Boxer1)
PedDelete(Boxer2)
PedDelete(Boxer3)
PedDelete(Bum)
PedDelete(chemTeach)
PedDelete(clerk)
PedDelete(client.id)
PedDelete(clint)
PedDelete(CoachBurton.id)
PedDelete(cop)
PedDelete(curPed)
PedDelete(Dancer01)
PedDelete(Dancer02)
PedDelete(Dancer03)
PedDelete(dataTable[1].id)
PedDelete(driver)
PedDelete(edgar)
PedDelete(edna)
PedDelete(elf)
PedDelete(endPed)
PedDelete(EnemyTable[i].handle)
PedDelete(entity)
PedDelete(entry)
PedDelete(entry.id)
PedDelete(frBeardedWoman)
PedDelete(frMermaid)
PedDelete(frMidget01)
PedDelete(frMidget02)
PedDelete(frPaintedMan)
PedDelete(frSiamese02)
PedDelete(frSkeletonMan)
PedDelete(gAmbientEventTable.tCop1)
PedDelete(gAmbientEventTable.tCop2)
PedDelete(gAmbientEventTable.tCop3)
PedDelete(gAmbientEventTable.tVandal)
PedDelete(gAsylumTable.ped1)
PedDelete(gAsylumTable.ped2)
PedDelete(gAttacker)
PedDelete(gBeatrice)
PedDelete(gBlockAOrderly01)
PedDelete(gBlockAOrderly02)
PedDelete(gBlockBOrderly01)
PedDelete(gBlockBOrderly02)
PedDelete(gBully01)
PedDelete(gBully02)
PedDelete(gBully03)
PedDelete(gCannonNerd)
PedDelete(gChaser01)
PedDelete(gChaser02)
PedDelete(gClerk)
PedDelete(gControlOrderly)
PedDelete(gCop1)
PedDelete(gCrazy01)
PedDelete(gCrazy02)
PedDelete(gCrazy03)
PedDelete(gCrazy04)
PedDelete(gCSBully)
PedDelete(gCurrentBully01)
PedDelete(gCurrentBully02)
PedDelete(gDarby)
PedDelete(gDavis)
PedDelete(gDOThug01)
PedDelete(gDOThug02)
PedDelete(gDOThug03)
PedDelete(gEdgar)
PedDelete(gEnemy01)
PedDelete(gEnemy02)
PedDelete(gEnemy03)
PedDelete(gEunice)
PedDelete(gFatty)
PedDelete(gFenwick)
PedDelete(gFirstImmortalPrep)
PedDelete(gFMidget)
PedDelete(gFrontDeskOrderly)
PedDelete(gFrontOrderly)
PedDelete(gGalloway)
PedDelete(gGary)
PedDelete(gGreaser1)
PedDelete(gGreaser2)
PedDelete(gGreaser3)
PedDelete(gGuy1)
PedDelete(gHattrick)
PedDelete(gHobo)
PedDelete(gInOrderly01)
PedDelete(gInOrderly02)
PedDelete(gInPatient)
PedDelete(girlfriend)
PedDelete(gJerry)
PedDelete(gJockArrived)
PedDelete(gJohnny)
PedDelete(gLackey[10].ped)
PedDelete(gLackey[11].ped)
PedDelete(gLackey[12].ped)
PedDelete(gLackey[1].ped)
PedDelete(gLackey[20].ped)
PedDelete(gLackey[21].ped)
PedDelete(gLackey[22])
PedDelete(gLackey[2].ped)
PedDelete(gLackey[30].ped)
PedDelete(gLackey[31].ped)
PedDelete(gLackey[32].ped)
PedDelete(gLackey[33].ped)
PedDelete(gLackey[35])
PedDelete(gLackey[36])
PedDelete(gLackey[37])
PedDelete(gLackey[38])
PedDelete(gLackey[39])
PedDelete(gLackey[3].ped)
PedDelete(gLackey[40].ped)
PedDelete(gLackey[4].ped)
PedDelete(gLackey[5].ped)
PedDelete(gLackey[6].ped)
PedDelete(gLackey[7].ped)
PedDelete(gLackey[8].ped)
PedDelete(gLackey[9].ped)
PedDelete(gLackey[i].ped)
PedDelete(gLola)
PedDelete(gMailmanID)
PedDelete(gMandy)
PedDelete(gMelvin)
PedDelete(gMsPhillips)
PedDelete(gNerds[1])
PedDelete(gNerds[1].id)
PedDelete(gNerds[2])
PedDelete(gNerds[2].id)
PedDelete(gNorton)
PedDelete(gOrderly01)
PedDelete(gOrderly02)
PedDelete(gOrderly03)
PedDelete(gOrderly04)
PedDelete(gOrderlyABlock)
PedDelete(gOrderlyBBlock)
PedDelete(gOrderlyFrontD)
PedDelete(gOrderlyRecRoom)
PedDelete(gOrderlyShower)
PedDelete(gOtto)
PedDelete(gPeanut)
PedDelete(gPed)
PedDelete(gPeds[1])
PedDelete(gPeds[2])
PedDelete(gPeds[3])
PedDelete(gPeds[4])
PedDelete(gPeds[5])
PedDelete(gPeds[6])
PedDelete(gPete)
PedDelete(gPetey)
PedDelete(gPrefect)
PedDelete(gPrincipal)
PedDelete(gPushers[1])
PedDelete(gPushers[2])
PedDelete(gRichM01)
PedDelete(gRichM02)
PedDelete(gRichM03)
PedDelete(gRichM04)
PedDelete(gRichM05)
PedDelete(gRooftopPeds1[2])
PedDelete(gRudy)
PedDelete(gRunnerId)
PedDelete(gRussell)
PedDelete(gSecondImmortalPrep)
PedDelete(gSecondReinforcement)
PedDelete(gSecretary)
PedDelete(gSidelines[1])
PedDelete(gSidelines[4])
PedDelete(gSleepingOrderly)
PedDelete(gStationOrderly)
PedDelete(gTablePeds[1].id)
PedDelete(gTablePeds[2].id)
PedDelete(gTablePeds[3].id)
PedDelete(gTheo)
PedDelete(gurney)
PedDelete(guy.id)
PedDelete(gVance)
PedDelete(id)
PedDelete(idBryce.id)
PedDelete(idBucky)
PedDelete(idBurton)
PedDelete(idFireman)
PedDelete(idGord)
PedDelete(idGord.id)
PedDelete(idJustin.id)
PedDelete(idLola.id)
PedDelete(idNorton)
PedDelete(idPed)
PedDelete(idPeter)
PedDelete(idRussell)
PedDelete(idZoe)
PedDelete(insultBoy)
PedDelete(item.ped)
PedDelete(Janitor)
PedDelete(jock.id)
PedDelete(johnny)
PedDelete(kissGirl)
PedDelete(LastKid)
PedDelete(librarian)
PedDelete(manager)
PedDelete(mandy)
PedDelete(Mascot)
PedDelete(musicTeach)
PedDelete(nerd)
PedDelete(nerd.id)
PedDelete(opponent)
PedDelete(otto)
PedDelete(outroPedA)
PedDelete(outroPedB)
PedDelete(outroPedC)
PedDelete(ped)
PedDelete(ped.id)
PedDelete(ped1)
PedDelete(ped2)
PedDelete(ped3)
PedDelete(ped4)
PedDelete(pedAlgie.id)
PedDelete(pedBeatrice.id)
PedDelete(pedBurton.id)
PedDelete(pedChad.id)
PedDelete(pedCornelius.id)
PedDelete(pedCrabbleSnitch.id)
PedDelete(pedCutDan.id)
PedDelete(pedCutKirby.id)
PedDelete(pedDeadMascot)
PedDelete(pedDog.id)
PedDelete(pedEarnest.id)
PedDelete(pedGalloway.id)
PedDelete(pedGary.id)
PedDelete(pedGreaser01.id)
PedDelete(pedGreaser02.id)
PedDelete(pedGreaser03.id)
PedDelete(pedGreaser04.id)
PedDelete(pedGreaserA03.id)
PedDelete(pedHattrick.id)
PedDelete(pedID)
PedDelete(pedJockBathroomSecondFloor01.id)
PedDelete(pedJockBathroomSecondFloor02.id)
PedDelete(pedJohnny.id)
PedDelete(pedLola.id)
PedDelete(pedMandyGym.id)
PedDelete(pedMandyShower.id)
PedDelete(pedMascot.id)
PedDelete(pedNorton.id)
PedDelete(pedPete.id)
PedDelete(pedPinky.id)
PedDelete(pedPoolPrep.id)
PedDelete(pedStg1Jock.id)
PedDelete(pedStg1Pref.id)
PedDelete(pedStoreOwner.id)
PedDelete(pedStrikerJock01.id)
PedDelete(pedStrikerJock02.id)
PedDelete(pedTad.id)
PedDelete(pete)
PedDelete(phillips)
PedDelete(Pirate)
PedDelete(Players[1].Player)
PedDelete(prank.id)
PedDelete(prefect)
PedDelete(prep)
PedDelete(prepId)
PedDelete(principal)
PedDelete(racer.id)
PedDelete(rat)
PedDelete(RoguePed)
PedDelete(Rudy)
PedDelete(santa)
PedDelete(ScenarioPed)
PedDelete(shared.gdormHeadID)
PedDelete(shared.gDunkMidget)
PedDelete(shared.gEdnaID)
PedDelete(shared.gGary)
PedDelete(shared.gPetey)
PedDelete(shared.gSecretaryID)
PedDelete(shared.idDog)
PedDelete(shared.PedLineupTable[ped].handle)
PedDelete(sheet1Bruiser)
PedDelete(sheet1Guard)
PedDelete(spud_nerd)
PedDelete(Student01)
PedDelete(Student02)
PedDelete(sweater_guard)
PedDelete(tblEntry.id)
PedDelete(tblGord.bike.id)
PedDelete(tblGord.id)
PedDelete(tblGordWH.id)
PedDelete(tblGreaser1WH.id)
PedDelete(tblGreaser2WH.id)
PedDelete(tblJohnnyWH.id)
PedDelete(tblMsPhillips.id)
PedDelete(tblPeanut.id)
PedDelete(tblPeanut.id2)
PedDelete(tblPrep1.bike.id)
PedDelete(tblPrep1.id)
PedDelete(tblPrep1WH.id)
PedDelete(tblPrep2WH.id)
PedDelete(tblRaceInfo.race.countdown_ped.id)
PedDelete(tblSecondGrease[1])
PedDelete(tblTad.id)
PedDelete(Teacher)
PedDelete(teacher)
PedDelete(tempGirl01)
PedDelete(tempGirl02)
PedDelete(tempGirl03)
PedDelete(tFirstFloorTable.gord.id)
PedDelete(tFirstFloorTable.parker.id)
PedDelete(thad)
PedDelete(Victim)
PedDelete(watts)
mov eax, dword ptr [esp+0x4]
push esi
push 0x0
push eax
call LuaParam::GetInt
mov esi, eax
add esp, 0x4
mov eax, esp
push esi
mov dword ptr [eax], 0x2
call 0x5C73E0
add esp, 0x8
push esi
mov ecx, 0xD02850
call 0x5DB940
mov ecx, eax
call 0x5D9680
xor eax, eax
pop esi
ret
PedDeleteWeaponInventorySnapshot(gPlayer)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov ecx, dword ptr [eax+0x1C4]
add esp, 0x8
call 0x45C9B0
xor eax, eax
ret
L_PedExec(p_wave1, PedDestroyWeapon, "id", WEAPON_YARDSTICK)
L_PedExec(p_wave2, PedDestroyWeapon, "id", WEAPON_YARDSTICK)
L_PedExec(p_wave3, PedDestroyWeapon, "id", WEAPON_YARDSTICK)
L_PedExec(p_wave4, PedDestroyWeapon, "id", WEAPON_YARDSTICK)
PedDestroyWeapon(entry.handle, 312)
PedDestroyWeapon(gCannonNerd, 299)
PedDestroyWeapon(gJV_OnBike, 418)
PedDestroyWeapon(gPlayer, 300)
PedDestroyWeapon(gPlayer, 302)
PedDestroyWeapon(gPlayer, 303)
PedDestroyWeapon(gPlayer, 306)
PedDestroyWeapon(gPlayer, 312)
PedDestroyWeapon(gPlayer, 320)
PedDestroyWeapon(gPlayer, 321)
PedDestroyWeapon(gPlayer, 328)
PedDestroyWeapon(gPlayer, 342)
PedDestroyWeapon(gPlayer, 363)
PedDestroyWeapon(gPlayer, 378)
PedDestroyWeapon(gPlayer, 381)
PedDestroyWeapon(gPlayer, 391)
PedDestroyWeapon(gPlayer, 395)
PedDestroyWeapon(gPlayer, 399)
PedDestroyWeapon(gPlayer, 400)
PedDestroyWeapon(gPlayer, 403)
PedDestroyWeapon(gPlayer, 411)
PedDestroyWeapon(gPlayer, 426)
PedDestroyWeapon(gPlayer, 432)
PedDestroyWeapon(gPlayer, modelCuttersWeapon)
PedDestroyWeapon(gPlayer, MODELENUM._WBRUSH)
PedDestroyWeapon(gPlayer, weapon)
PedDestroyWeapon(gTed, 400)
PedDestroyWeapon(idHobo, 327)
PedDestroyWeapon(idNorton, 324)
PedDestroyWeapon(idPed, 299)
PedDestroyWeapon(idPed, WEAPON_YARDSTICK)
PedDestroyWeapon(idZoe, 412)
PedDestroyWeapon(idZoe, modelCuttersWeapon)
PedDestroyWeapon(nerd.id, 299)
PedDestroyWeapon(pedGary.id, 399)
PedDestroyWeapon(pedGord, 385)
PedDestroyWeapon(pedRicky, 303)
PedDestroyWeapon(scout, WEAPON_YARDSTICK)
PedDestroyWeapon(scout2, WEAPON_YARDSTICK)
PedDestroyWeapon(sheet4Guard, 349)
PedDestroyWeapon(spud_nerd, WEAPON_YARDSTICK)
PedDestroyWeapon(Victim, 300)
PedDestroyWeapon(Victim, 312)
push ebx
push esi
push edi
mov edi, dword ptr [esp+0x10]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov edx, eax
neg edx
sbb edx, edx
mov ecx, esp
add edx, 0x3
push eax
mov dword ptr [ecx], edx
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0xB0
push 0x1
push edi
call LuaParam::GetInt
mov ecx, dword ptr [esi+0x1C4]
add esp, 0x8
mov ebx, eax
push 0x3E8
push ebx
call 0x45D0C0
mov ecx, dword ptr [esi+0x1D0]
movsx eax, word ptr [ecx+0x10E]
cmp eax, ebx
jnz 0x56
call 0x4D9410
mov eax, dword ptr [esi+0x2E0]
cmp byte ptr [eax+0x33C], 0x0
lea edi, ptr [eax+0x300]
jz 0x25
lea ecx, ptr [eax+0x258]
call 0x5F40A0
mov ecx, dword ptr [esi+0x2E0]
mov edx, dword ptr [ecx+0x4B0]
push edx
mov ecx, edi
call 0x5F3830
mov byte ptr [edi+0x3C], 0x0
mov eax, dword ptr [esi+0x2E0]
mov dword ptr [esi+0x1574], 0xFFFFFFFF
mov dword ptr [eax+0x18], 0xFFFFFFFF
cmp dword ptr [esi+0x1310], 0xD
jnz 0x20
mov esi, dword ptr [0xC674F0]
cmp dword ptr [esi+0xC0], ebx
jnz 0x12
push 0xFFFFFFFF
mov ecx, esi
call 0x55C840
mov ecx, esi
call 0x55C8D0
pop edi
pop esi
xor eax, eax
pop ebx
ret
-- never used
push ecx
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x14]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetString
push 0x2
push esi
mov ebx, eax
call LuaParam::GetString
add esp, 0x14
mov ebp, eax
mov eax, esp
push edi
mov dword ptr [eax], 0x2
call 0x5C7380
add esp, 0x8
lea ecx, ptr [esp+0x10]
mov esi, eax
mov eax, dword ptr [esi+0x114]
mov edi, dword ptr [eax+0x94]
push ecx
push ebx
call 0x576ED0
add esp, 0x4
push eax
mov ecx, edi
call 0x465580
mov ecx, dword ptr [0xB6F1E8]
push ebp
call 0x667B60
mov edx, dword ptr [esp+0x10]
mov ecx, dword ptr [esi+0x2E4]
movzx eax, ax
movzx eax, ax
push edx
push eax
call 0x468820
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
CLIENT
Detach a ped from a vehicle. Useful when trying to warp out of bikes.
PedDisableMoveOutOfWay(pedChad.id, true)
PedDisableMoveOutOfWay(pedConstantine.id, false)
PedDisableMoveOutOfWay(pedConstantine.id, true)
PedDisableMoveOutOfWay(pedEunice.id, false)
PedDisableMoveOutOfWay(pedEunice.id, true)
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x16
push 0x1
push edi
call LuaParam::GetBool
movzx eax, al
add esp, 0x8
mov dword ptr [esi+0x1584], eax
pop edi
xor eax, eax
pop esi
ret
PedDismissAllAllies(gPlayer)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
lea ecx, ptr [eax+0x2F0]
call 0x485A40
xor eax, eax
ret
PedDismissAlly(Crazy01, followerFollower)
PedDismissAlly(Crazy02, followerFollower)
PedDismissAlly(gord, lola)
PedDismissAlly(gPlayer, gGary)
PedDismissAlly(gPlayer, gJohnny)
PedDismissAlly(gPlayer, gNerds[1].id)
PedDismissAlly(gPlayer, gNerds[2].id)
PedDismissAlly(gPlayer, gRussell)
PedDismissAlly(gPlayer, gThad)
PedDismissAlly(gPlayer, idBucky)
PedDismissAlly(gPlayer, idEunice.id)
PedDismissAlly(gPlayer, idRussell)
PedDismissAlly(gPlayer, ped)
PedDismissAlly(gPlayer, pedAlgie.id)
PedDismissAlly(gPlayer, pedCornelius.id)
PedDismissAlly(gPlayer, pedGary.id)
PedDismissAlly(gPlayer, pedID)
PedDismissAlly(gPlayer, pedPinky.id)
PedDismissAlly(gPlayer, pedRicky)
PedDismissAlly(gPlayer, Receiver1)
PedDismissAlly(gPlayer, ScenarioPed)
PedDismissAlly(idGord.id, idLola.id)
PedDismissAlly(outroPedB, outroPedC)
PedDismissAlly(pedDog.id, pedGary.id)
PedDismissAlly(tblFamilyList[i].parent, tblFamilyList[i].kid)
push ebx
push esi
push edi
mov edi, dword ptr [esp+0x10]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
push 0x1
push edi
mov esi, eax
call LuaParam::GetInt
add esp, 0xC
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
test esi, esi
mov ebx, eax
jz 0x12
test ebx, ebx
jz 0xE
push ebx
lea ecx, ptr [esi+0x2F0]
call 0x4859D0
push edi
call 0x73AEA0
add esp, 0x4
cmp eax, 0x3
jnz 0x2D
push 0x2
push edi
call LuaParam::GetBool
add esp, 0x8
test esi, esi
jz 0xB
movzx ecx, al
mov dword ptr [esi+0x14EC], ecx
test ebx, ebx
jz 0xB
movzx edx, al
mov dword ptr [ebx+0x14EC], edx
xor eax, eax
pop edi
pop esi
pop ebx
ret
PedDontCleanup(attacker.id)
PedDontCleanup(gCarnie)
PedDontCleanup(gCSBully)
push ecx
mov eax, dword ptr [esp+0x8]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
xor eax, eax
add esp, 0xC
ret
PedEnableGiftRequirement(idEunice.id, false)
PedEnableGiftRequirement(ScenarioPed, false)
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x32
push 0x1
push edi
call LuaParam::GetBool
add esp, 0x8
test al, al
jz 0x1A
push esi
mov ecx, 0x20C3698
call 0x6A9A20
push eax
mov ecx, esi
call 0x474B40
xor eax, eax
pop edi
pop esi
ret
push 0xFFFFFFFF
mov ecx, esi
call 0x474B40
pop edi
xor eax, eax
pop esi
ret
name = "PedEnterVehicle",
PedEnterVehicle(gJV_OnBike, gJV_Bike)
PedEnterVehicle(idDO, idBike)
PedEnterVehicle(idDO, idDOBike)
PedEnterVehicle(idGord.id, idBike.id)
PedEnterVehicle(idPed, idBike)
PedEnterVehicle(idRussell, idBike)
PedEnterVehicle(L_PedGetIDByIndex(nil, 1), bike)
PedEnterVehicle(ped, car)
PedEnterVehicle(pedAlgie.id, vehicleBikeAlgie.id)
PedEnterVehicle(pedChad.id, vehicleBikeChad.id)
PedEnterVehicle(pedId, DropoutBike.id)
PedEnterVehicle(pedLola.id, vehicleLolaBike.id)
PedEnterVehicle(racer.id, racer.bike)
PedEnterVehicle(rider, bike)
PedEnterVehicle(ScenarioPed, Bike01)
PedEnterVehicle(testPed[1].id, testPed[1].bike.id)
push esi
mov esi, dword ptr [esp+0x8]
push edi
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov edi, eax
add esp, 0x8
test edi, edi
jz 0x89
push 0xFFFFFFFF
push 0x1
push esi
call LuaParam::GetInt ; optional
add esp, 0xC
cmp eax, 0xFFFFFFFF
jz 0xF
push eax
call 0x44A580
add esp, 0x4
mov esi, eax
jmp 0x21
fld st, dword ptr [0x900E6C]
push 0x0
push 0x1
push 0x1
push ecx
fstp dword ptr [esp], st
push edi
call 0x4D33F0
mov esi, eax
add esp, 0x14
test esi, esi
jz 0x47
lea eax, ptr [edi+0x430]
push eax
push esi
mov dword ptr [eax], esi
call 0x4657D0
push 0x14
call 0x5EEAA0
add esp, 0xC
test eax, eax
jz 0x1C
push esi
push edi
mov ecx, eax
call 0x46FBA0
push eax
lea ecx, ptr [edi+0x5F0]
call 0x471390
xor eax, eax
pop edi
pop esi
ret
xor eax, eax
push eax
lea ecx, ptr [edi+0x5F0]
call 0x471390
pop edi
xor eax, eax
pop esi
ret
name = "PedExitVehicle",
PedExitVehicle(driver)
PedExitVehicle(gCop1)
PedExitVehicle(gCop2)
PedExitVehicle(gMsPhillips)
PedExitVehicle(gPeanut)
PedExitVehicle(gRussell.id)
PedExitVehicle(idCop)
PedExitVehicle(idDO)
PedExitVehicle(idGetOffBike)
PedExitVehicle(idGord.id)
PedExitVehicle(Janitor)
PedExitVehicle(ped)
PedExitVehicle(tableBikerPeds[i])
PedExitVehicle(testPed[1].id)
mov eax, dword ptr [esp+0x4]
push esi
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x36
push 0x10
call 0x5EEAA0
add esp, 0x4
test eax, eax
jz 0x1A
push esi
mov ecx, eax
call 0x46FC40
push eax
lea ecx, ptr [esi+0x5F0]
call 0x471470
xor eax, eax
pop esi
ret
xor eax, eax
push eax
lea ecx, ptr [esi+0x5F0]
call 0x471470
xor eax, eax
pop esi
ret
name = "PedFaceHeading",
PedFaceHeading(a, 90, 0)
PedFaceHeading(bExtraGuy, 0, 0)
PedFaceHeading(bioTeacher, 0, 0)
PedFaceHeading(chemTeach, 180, 0)
PedFaceHeading(Earnest, 180, 0)
PedFaceHeading(EnemyTable[i].handle, 90, 0)
PedFaceHeading(EnemyTable[index].handle, 90, 0)
PedFaceHeading(entry.id, 0, 0)
PedFaceHeading(frMidget01, 0, 0)
PedFaceHeading(frMidget02, 0, 0)
PedFaceHeading(galloway, 0, 0)
PedFaceHeading(GateNerd.id, 90, 1)
PedFaceHeading(gCarny, 270, 0)
PedFaceHeading(gClerk, 330, 0)
PedFaceHeading(gCurrentBully01, 270, 0)
PedFaceHeading(gCurrentBully02, 270, 0)
PedFaceHeading(gDavis, 180, 0)
PedFaceHeading(gFatty, 60, 0)
PedFaceHeading(gGary, 0, 0)
PedFaceHeading(gGary, 0, 1)
PedFaceHeading(gGary, hdg + 180, 0)
PedFaceHeading(gPinkyTicket, 120, 0)
PedFaceHeading(gPlayer, 0, 0)
PedFaceHeading(gPlayer, 1, 0)
PedFaceHeading(gPlayer, 170, 1)
PedFaceHeading(gPlayer, 180, 0)
PedFaceHeading(gPlayer, 315, 0)
PedFaceHeading(gPlayer, head - 90, 0)
PedFaceHeading(guy, 270, 0)
PedFaceHeading(hattrick, 0, 0)
PedFaceHeading(idBucky, 39, 1)
PedFaceHeading(idBurton, 146, 1)
PedFaceHeading(idDarby, heading - 90, 0)
PedFaceHeading(idLola.id, 210, 0)
PedFaceHeading(idNemesis, 167.8, 1)
PedFaceHeading(idNemesis, 90, 0)
PedFaceHeading(musicTeach, 0, 0)
PedFaceHeading(musicTeach, 45, 0)
PedFaceHeading(musicTeach, 60, 0)
PedFaceHeading(ped, 0, 1)
PedFaceHeading(ped, 270, 1)
PedFaceHeading(ped, 90, 1)
PedFaceHeading(ped, head, 0)
PedFaceHeading(pedAlgie.id, -180, 0)
PedFaceHeading(pedAlgie.id, 270, 0)
PedFaceHeading(pedBryce, 330, 0)
PedFaceHeading(pedDog.id, 115, 0)
PedFaceHeading(pedEunice.id, 290, 1)
PedFaceHeading(pedGord, 320, 0)
PedFaceHeading(pedid, 150, 0)
PedFaceHeading(pedMandyShower.id, 45, 0)
PedFaceHeading(pedMascot.id, 10, 0)
PedFaceHeading(pedMascot.id, 250, 0)
PedFaceHeading(pedPinky.id, 0, 0)
PedFaceHeading(pedPinky.id, 180, 0)
PedFaceHeading(pedPrefect.id, 0, 0)
PedFaceHeading(pedStg3Girl01.id, 90, 1)
PedFaceHeading(pedStg3Girl02.id, 90, 1)
PedFaceHeading(pedStg3Girl03.id, 90, 1)
PedFaceHeading(referee, 90, 0)
PedFaceHeading(shared.gBif, 270, 0)
PedFaceHeading(shared.gBif, 90, 1)
PedFaceHeading(tblGoonDex[1].id, 180, 1)
PedFaceHeading(tblGoonDex[2].id, 180, 1)
PedFaceHeading(tblGoonDex[3].id, 180, 1)
PedFaceHeading(tblGoonDex[4].id, 180, 1)
PedFaceHeading(tblGoonDex[5].id, 180, 1)
PedFaceHeading(tblGoonDex[6].id, 180, 1)
PedFaceHeading(teacher, 0, 0)
PedFaceHeading(teacher, 90, 1)
PedFaceHeading(testPed[1].id, testPed[1].angle, 1)
PedFaceHeading(Thug, head, 0)
PedFaceHeading(tThirdFloorTable.bryce.id, 270, 0)
PedFaceHeading(tThirdFloorTable.bryce.id, 90, 0)
PedFaceHeading(tThirdFloorTable.chad.id, 90, 0)
push ecx
push esi
push edi
mov edi, dword ptr [esp+0x10]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x3E
push 0x1
push edi
call LuaParam::GetFloat
fstp dword ptr [esp+0x10], st
push 0x2
push edi
call LuaParam::GetInt
fld st, dword ptr [esp+0x18]
fmul st, qword ptr [0x900160]
add esp, 0xC
fdiv st, qword ptr [0x900158]
fstp dword ptr [esp+0xC], st
fld st, dword ptr [esp+0xC]
fstp dword ptr [esp], st
push eax
push esi
call 0x5C7440
add esp, 0xC
pop edi
xor eax, eax
pop esi
pop ecx
ret
L_PedExec("ambush01", PedFaceObject, "id", TRIGGER._5_04_DOOR_HACK, 0, 0)
PedFaceObject(actor, gPlayer, 2, 1)
PedFaceObject(ambientLola, gPlayer, 3, 0)
PedFaceObject(assistant, gPlayer, 3, 0)
PedFaceObject(aud1, gPlayer, 3, 1)
PedFaceObject(aud2, gPlayer, 3, 1)
PedFaceObject(aud3, gPlayer, 3, 1)
PedFaceObject(aud4, gPlayer, 3, 1)
PedFaceObject(beatrice, gPlayer, 3, 1)
PedFaceObject(bGreaserBoss, gPlayer, 3, 0)
PedFaceObject(bJockBoss, gPlayer, 3, 0)
PedFaceObject(bNerdBoss, gPlayer, 3, 0)
PedFaceObject(boxer, gPlayer, 3, 0, false)
PedFaceObject(Boy, Girl, 2, 1)
PedFaceObject(burton, gPlayer, 3, 0, false)
PedFaceObject(burton, gPlayer, 3, 1, false)
PedFaceObject(burton, opponent, 2, 1, false)
PedFaceObject(buster, gPlayer, 3, 1, false)
PedFaceObject(chemTeach, gPlayer, 3, 0)
PedFaceObject(clerk, gPlayer, 3, 1)
PedFaceObject(clint, gPlayer, 3, 1)
PedFaceObject(cop3, gPlayer, 2, 1)
PedFaceObject(dude, gPlayer, 3, 0)
PedFaceObject(edgar, gPlayer, 3, 0)
PedFaceObject(edgar, gPlayer, 3, 1)
PedFaceObject(Edna, gPlayer, 3, 1)
PedFaceObject(endPed, gPlayer, 3, 0)
PedFaceObject(gAlgie, gPlayer, 3, 0)
PedFaceObject(gBeatrice, gPlayer, 3, 1)
PedFaceObject(gBlockAOrderly01, gBlockAOrderly02, 2, 0)
PedFaceObject(gBlockAOrderly02, gBlockAOrderly01, 2, 0)
PedFaceObject(gBlockers1[1], gPlayer, 3, 1)
PedFaceObject(gBlockers1[2], gPlayer, 3, 1)
PedFaceObject(gBucky, gPlayer, 2, 0)
PedFaceObject(gBucky, gPlayer, 3, 0)
PedFaceObject(gBully01, gPlayer, 2, 1)
PedFaceObject(gBully01, gPlayer, 3, 0)
PedFaceObject(gBully01, gPlayer, 3, 1)
PedFaceObject(gBully1, gGary, 2, 1, true)
PedFaceObject(gBully2, gGary, 2, 1, true)
PedFaceObject(gBully3, gGary, 2, 1, true)
PedFaceObject(gCarnie, gPlayer, 3, 1, false)
PedFaceObject(gCarny, gPlayer, 3, 0)
PedFaceObject(gChad, gPlayer, 3, 0)
PedFaceObject(gClerk, gPlayer, 2, 0)
PedFaceObject(gClerk, gPlayer, 3, 0)
PedFaceObject(gCrazy01, gPlayer, 3, 0)
PedFaceObject(gCrazy01, gPlayer, 3, 1)
PedFaceObject(gCSBully, gDavis, 2, 0)
PedFaceObject(gDavis, gCSBully, 2, 0)
PedFaceObject(gDefenders[1], gPlayer, 3, 0)
PedFaceObject(gEdgar, gPlayer, 3, 1, false)
PedFaceObject(gEnemy01, gPlayer, 2, 0)
PedFaceObject(gEnemy01, gPlayer, 3, 1)
PedFaceObject(gEnemy02, gPlayer, 2, 0)
PedFaceObject(gEnemy02, gPlayer, 3, 0)
PedFaceObject(gEnemy02, gPlayer, 3, 1)
PedFaceObject(gEnemy03, gPlayer, 3, 0)
PedFaceObject(gEnemy03, gPlayer, 3, 1)
PedFaceObject(gFatty, gPlayer, 3, 0)
PedFaceObject(gGary, gBully1, 2, 1)
PedFaceObject(gGary, gPlayer, 3, 0, true)
PedFaceObject(gGary, gPlayer, 3, 1, false)
PedFaceObject(gGord, gPlayer, 3, 0)
PedFaceObject(gGreaser1, gPlayer, 3, 0, false, false)
PedFaceObject(gGreaser2, gPlayer, 3, 0, false, false)
PedFaceObject(gGreaser3, gPlayer, 3, 0, false, false)
PedFaceObject(gHattrick, gPrincipal, 2, 0)
PedFaceObject(gHobo, gPlayer, 2, 0)
PedFaceObject(gHobo, gPlayer, 3, 0)
PedFaceObject(gHobo, gPlayer, 3, 1)
PedFaceObject(gHobo, gPlayer, 3, 1, false)
PedFaceObject(Girl, Boy, 2, 1)
PedFaceObject(gJohnny, gPlayer, 3, 0)
PedFaceObject(gJohnny, gPlayer, 3, 1)
PedFaceObject(gJohnnyV, gPlayer, 3, 1, false)
PedFaceObject(gJV_OnBike, gPlayer, 3, 0)
PedFaceObject(gLackey[8].ped, gPlayer, 3, 0)
PedFaceObject(gLuis, gPlayer, 2, 0)
PedFaceObject(gLuis, gPlayer, 3, 1)
PedFaceObject(gMandyArrived, gPlayer, 3, 1, false)
PedFaceObject(gMsPhillips, gPlayer, 3, 1)
PedFaceObject(gNerd01, gPlayer, 3, 1)
PedFaceObject(gNerd01, gPlayer, 3, 1, false)
PedFaceObject(gNerd01, gPlayer, 3, 1, true)
PedFaceObject(gNerd02, gPlayer, 3, 1)
PedFaceObject(gNerd02, gPlayer, 3, 1, false)
PedFaceObject(gNerd02, gPlayer, 3, 1, true)
PedFaceObject(gNerd03, gPlayer, 3, 1)
PedFaceObject(gNerd03, gPlayer, 3, 1, false)
PedFaceObject(gNerds[1].id, gPlayer, 3, 1, false)
PedFaceObject(gNerds[2].id, gPlayer, 3, 1, false)
PedFaceObject(gord, gPlayer, 3, 1, false)
PedFaceObject(gord, gPlayer, 3, 1, true)
PedFaceObject(gord, lola, 2, 1)
PedFaceObject(gord, lola, 2, 1, true)
PedFaceObject(gPeanut, gPlayer, 3, 0)
PedFaceObject(gPeter, gPlayer, 3, 0)
PedFaceObject(gPlayer, ambientLola, 2, 1)
PedFaceObject(gPlayer, assistant, 2, 0)
PedFaceObject(gPlayer, beatrice, 2, 1)
PedFaceObject(gPlayer, bioTeacher, 2, 0)
PedFaceObject(gPlayer, boxer, 2, 1)
PedFaceObject(gPlayer, Bum, 2, 0)
PedFaceObject(gPlayer, buster, 2, 1)
PedFaceObject(gPlayer, dude, 2, 0)
PedFaceObject(gPlayer, edgar, 2, 0)
PedFaceObject(gPlayer, edgar, 2, 1)
PedFaceObject(gPlayer, Edna, 2, 1)
PedFaceObject(gPlayer, frMidget01, 2, 0)
PedFaceObject(gPlayer, galloway, 2, 0)
PedFaceObject(gPlayer, GateNerd.id, 2, 0)
PedFaceObject(gPlayer, gBeatrice, 2, 1)
PedFaceObject(gPlayer, gBully01, 2, 0)
PedFaceObject(gPlayer, gBully01, 2, 1)
PedFaceObject(gPlayer, gControlOrderly, 2, 1)
PedFaceObject(gPlayer, gCrazy01, 2, 1)
PedFaceObject(gPlayer, gDavis, 2, 0)
PedFaceObject(gPlayer, gDavis, 2, 1)
PedFaceObject(gPlayer, gEdgar, 2, 1, false)
PedFaceObject(gPlayer, gEnemy01, 3, 0)
PedFaceObject(gPlayer, gFatty, 2, 1, true)
PedFaceObject(gPlayer, gGary, 2, 0)
PedFaceObject(gPlayer, gGary, 2, 1)
PedFaceObject(gPlayer, gGreaser1, 2, 0)
PedFaceObject(gPlayer, gHobo, 2, 0)
PedFaceObject(gPlayer, gHobo, 2, 1)
PedFaceObject(gPlayer, gJohnny, 2, 0)
PedFaceObject(gPlayer, gJV_OnBike, 3, 0)
PedFaceObject(gPlayer, gLuis, 2, 0)
PedFaceObject(gPlayer, gMsPhillips, 2, 1)
PedFaceObject(gPlayer, gNerd03, 2, 0)
PedFaceObject(gPlayer, gPeanut, 2, 1)
PedFaceObject(gPlayer, gPeter, 3, 0)
PedFaceObject(gPlayer, gPushers[1], 2, 0)
PedFaceObject(gPlayer, gRussell, 2, 1)
PedFaceObject(gPlayer, gRussell.id, 2, 0)
PedFaceObject(gPlayer, gTed, 2, 0)
PedFaceObject(gPlayer, gTed, 2, 1, true)
PedFaceObject(gPlayer, hattrick, 2, 0)
PedFaceObject(gPlayer, idCop, 2, 1, true)
PedFaceObject(gPlayer, idEunice.id, 2, 1)
PedFaceObject(gPlayer, idLola, 2, 1)
PedFaceObject(gPlayer, idPetey.id, 2, 1)
PedFaceObject(gPlayer, idRussell, 2, 0)
PedFaceObject(gPlayer, idRussell, 2, 1)
PedFaceObject(gPlayer, idZoe, 2, 1)
PedFaceObject(gPlayer, insultBoy, 2, 0)
PedFaceObject(gPlayer, insultBoy, 2, 1, true)
PedFaceObject(gPlayer, johnny, 2, 1)
PedFaceObject(gPlayer, kissGirl, 2, 1, true)
PedFaceObject(gPlayer, librarian, 2, 0)
PedFaceObject(gPlayer, librarian, 2, 1)
PedFaceObject(gPlayer, manager, 2, 1)
PedFaceObject(gPlayer, mandy, 2, 0)
PedFaceObject(gPlayer, mandy, 2, 1)
PedFaceObject(gPlayer, mower, 1, 1)
PedFaceObject(gPlayer, Objectives[1].id, 2, 1)
PedFaceObject(gPlayer, Objectives[2].id, 2, 1)
PedFaceObject(gPlayer, Objectives[3].id, 2, 1)
PedFaceObject(gPlayer, Objectives[4].id, 2, 1)
PedFaceObject(gPlayer, Objectives[5].id, 2, 1)
PedFaceObject(gPlayer, opponent, 2, 0)
PedFaceObject(gPlayer, opponent, 2, 0, true)
PedFaceObject(gPlayer, opponent, 2, 1, true)
PedFaceObject(gPlayer, pedAlgie.id, 2, 0)
PedFaceObject(gPlayer, pedAlgie.id, 2, 1)
PedFaceObject(gPlayer, pedAlgie.id, 2, 1, false)
PedFaceObject(gPlayer, pedBeatrice.id, 2, 0)
PedFaceObject(gPlayer, pedBurtonStage3.id, 2, 1)
PedFaceObject(gPlayer, pedDog.id, 2, 0)
PedFaceObject(gPlayer, pedEarnest.id, 2, 1)
PedFaceObject(gPlayer, pedEunice.id, 2, 0)
PedFaceObject(gPlayer, pedEunice.id, 2, 1)
PedFaceObject(gPlayer, pedFocus, 2, 0)
PedFaceObject(gPlayer, pedGreaser01.id, 2, 1)
PedFaceObject(gPlayer, pedJohnny.id, 2, 0)
PedFaceObject(gPlayer, pedJohnny.id, 2, 1)
PedFaceObject(gPlayer, pedLola.id, 2, 1)
PedFaceObject(gPlayer, pedPinky.id, 2, 1)
PedFaceObject(gPlayer, pedPrefectKarl.id, 2, 1)
PedFaceObject(gPlayer, pedPrep.id, 2, 0)
PedFaceObject(gPlayer, pedRussell.id, 2, 0)
PedFaceObject(gPlayer, pedZoe.id, 2, 0)
PedFaceObject(gPlayer, Petey, 2, 0)
PedFaceObject(gPlayer, phillips, 2, 1)
PedFaceObject(gPlayer, prefect, 2, 0)
PedFaceObject(gPlayer, prefect, 2, 1)
PedFaceObject(gPlayer, russell, 2, 1)
PedFaceObject(gPlayer, shared.gdormHeadID, 2, 0)
PedFaceObject(gPlayer, sheet1Guard, 2, 0)
PedFaceObject(gPlayer, sheet1Guard, 2, 1)
PedFaceObject(gPlayer, shopkeep, 2, 1)
PedFaceObject(gPlayer, tblRaceInfo.race.countdown_ped.id, 2, 1)
PedFaceObject(gPlayer, teacher, 2, 0)
PedFaceObject(gPlayer, teacher, 2, 0, true)
PedFaceObject(gPlayer, teacher, 2, 1)
PedFaceObject(gPrefect, gPlayer, 2, 0)
PedFaceObject(gPrefect, gPlayer, 3, 1, false)
PedFaceObject(gPrefect, gRussell, 2, 0)
PedFaceObject(gPrincipal, gHattrick, 2, 0)
PedFaceObject(gPushers[1], gPlayer, 3, 0)
PedFaceObject(gPushers[1], gPlayer, 3, 1)
PedFaceObject(gPushers[2], gPlayer, 3, 0)
PedFaceObject(gPushers[2], gPlayer, 3, 1)
PedFaceObject(gPushers[3], gPlayer, 3, 0)
PedFaceObject(gRooftopPeds1[2], gPlayer, 3, 0)
PedFaceObject(gRudy, gPlayer, 3, 1)
PedFaceObject(gRussell, gPlayer, 3, 1)
PedFaceObject(gRussell, gPlayer, 3, 1, false, false)
PedFaceObject(gSecretary, gPlayer, 3, 1)
PedFaceObject(gSidelines[currentPasser.id], gTed, 2, 1)
PedFaceObject(gSidelines[gPasserA.id], gTed, 2, 1)
PedFaceObject(gTad, gPlayer, 3, 0)
PedFaceObject(gTargetBoy, gPlayer, 3, 0)
PedFaceObject(gTeacher, gPlayer, 3, 0)
PedFaceObject(gTeacher, gPlayer, 3, 1)
PedFaceObject(gTed, gPlayer, 3, 0)
PedFaceObject(gTed, gSidelines[currentPasser.id], 2, 1)
PedFaceObject(gTed, gSidelines[gPasserA.id], 2, 1)
PedFaceObject(gVance, gPlayer, 3, 0)
PedFaceObject(id2ndMan, gPlayer, 2, 0)
PedFaceObject(id2ndMan, idBucky, 2, 0)
PedFaceObject(id2ndMan, idBucky, 2, 1)
PedFaceObject(idBucky, Bum, 2, 0)
PedFaceObject(idBucky, gPlayer, 3, 1)
PedFaceObject(idConst.id, gPlayer, 2, 1)
PedFaceObject(idDarby, gPlayer, 2, 1)
PedFaceObject(idDO, gPlayer, 3, 0)
PedFaceObject(idEunice.id, gPlayer, 3, 1)
PedFaceObject(idHitMan, gPlayer, 2, 0)
PedFaceObject(idHitMan, gPlayer, 3, 1)
PedFaceObject(idHitMan, idBucky, 2, 0)
PedFaceObject(idHitMan, idBucky, 2, 1)
PedFaceObject(idLola, gPlayer, 3, 1)
PedFaceObject(idOmar, gPlayer, 3, 1)
PedFaceObject(idPetey.id, gPlayer, 2, 1)
PedFaceObject(idRussell, idCop, 2, 1, true)
PedFaceObject(idZoe, gPlayer, 2, 0)
PedFaceObject(idZoe, gPlayer, 3, 1)
PedFaceObject(insultBoy, gPlayer, 3, 1, true)
PedFaceObject(jock01, gPlayer, 2, 0)
PedFaceObject(johnny, gPlayer, 3, 1)
PedFaceObject(kid, santa, 2, 1)
PedFaceObject(kissGirl, gPlayer, 3, 1, true)
PedFaceObject(lackey1, gPlayer, 3, 0)
PedFaceObject(lackey2, gPlayer, 3, 0)
PedFaceObject(librarian, gPlayer, 3, 0)
PedFaceObject(lola, gord, 2, 1)
PedFaceObject(lola, gord, 2, 1, true)
PedFaceObject(lola, gPlayer, 3, 1, false)
PedFaceObject(lola, gPlayer, 3, 1, true)
PedFaceObject(manager, gPlayer, 2, 1)
PedFaceObject(mandy, gPlayer, 3, 0, false)
PedFaceObject(mandy, gPlayer, 3, 1)
PedFaceObject(mandy, gPlayer, 3, 1, false)
PedFaceObject(Objectives[1].id, gPlayer, 3, 1)
PedFaceObject(Objectives[2].id, gPlayer, 3, 1)
PedFaceObject(Objectives[3].id, gPlayer, 3, 1)
PedFaceObject(Objectives[4].id, gPlayer, 3, 1)
PedFaceObject(Objectives[5].id, gPlayer, 3, 1)
PedFaceObject(opponent, gPlayer, 3, 0)
PedFaceObject(outroPedA, outroPedB, 2, 1)
PedFaceObject(outroPedB, outroPedA, 2, 1)
PedFaceObject(ped, gPlayer, 3, 0)
PedFaceObject(pedAlgie.id, gPlayer, 3, 0)
PedFaceObject(pedAlgie.id, gPlayer, 3, 1)
PedFaceObject(pedArtTeacher.id, gPlayer, 3, 1)
PedFaceObject(pedBurtonStage3.id, gPlayer, 3, 1)
PedFaceObject(pedChad.id, gPlayer, 3, 0)
PedFaceObject(pedChad.id, pedLola.id, 2, 0)
PedFaceObject(pedCornelius.id, gPlayer, 3, 1)
PedFaceObject(pedCornelius.id, pedJohnny.id, 2, 1)
PedFaceObject(pedCutBo.id, gPlayer, 2, 0)
PedFaceObject(pedCutCasey.id, gPlayer, 2, 0)
PedFaceObject(pedCutJuri.id, gPlayer, 2, 0)
PedFaceObject(pedEarnest.id, gPlayer, 3, 0)
PedFaceObject(pedEarnest.id, gPlayer, 3, 1)
PedFaceObject(pedEunice.id, gPlayer, 3, 0)
PedFaceObject(pedEunice.id, gPlayer, 3, 1)
PedFaceObject(pedFocus, gPlayer, 2, 0)
PedFaceObject(pedGary.id, gPlayer, 2, 0)
PedFaceObject(pedGary.id, pedBurton.id, 2, 1)
PedFaceObject(pedGary.id, pedCornelius.id, 2, 0)
PedFaceObject(pedGary.id, pedCornelius.id, 2, 1)
PedFaceObject(pedGary.id, pedDog.id, 2, 0)
PedFaceObject(pedGreaser01.id, pedCornelius.id, 2, 0)
PedFaceObject(pedGreaser02.id, pedCornelius.id, 2, 0)
PedFaceObject(pedGreaser03.id, pedCornelius.id, 2, 0)
PedFaceObject(pedGreaser04.id, pedCornelius.id, 2, 0)
PedFaceObject(pedID, gPlayer, 3, 0)
PedFaceObject(pedId, gPlayer, 3, 1)
PedFaceObject(pedID, gPlayer, 3, 1)
PedFaceObject(pedID, pedCutBucky.id, 2, 0)
PedFaceObject(pedID, pedCutCornelius.id, 2, 0)
PedFaceObject(pedID, pedCutThad.id, 2, 0)
PedFaceObject(pedJockBathroomFirstFloor01.id, gPlayer, 3, 1)
PedFaceObject(pedJockBathroomFirstFloor02.id, gPlayer, 3, 1)
PedFaceObject(pedJohnny.id, gPlayer, 3, 1)
PedFaceObject(pedLola.id, gPlayer, 3, 1)
PedFaceObject(pedLola.id, pedTad.id, 2, 1)
PedFaceObject(pedMandy.id, gPlayer, 3, 1)
PedFaceObject(pedMandyBedroom.id, gPlayer, 3, 0)
PedFaceObject(pedMandyShower.id, gPlayer, 3, 0)
PedFaceObject(pedMascot.id, gPlayer, 3, 0)
PedFaceObject(pedPinky.id, gPlayer, 3, 1)
PedFaceObject(pedRicky, gPlayer, 3, 1)
PedFaceObject(pedStg3Girl01.id, gPlayer, 3, 1)
PedFaceObject(pedStg3Girl02.id, gPlayer, 3, 1)
PedFaceObject(pedStg3Girl03.id, gPlayer, 3, 1)
PedFaceObject(pedZoe.id, gPlayer, 3, 0)
PedFaceObject(Petey, gPlayer, 2, 0)
PedFaceObject(phillips, gPlayer, 3, 1)
PedFaceObject(prefect, gPlayer, 3, 0)
PedFaceObject(prefect, gPlayer, 3, 1, false)
PedFaceObject(russell, gPlayer, 2, 1)
PedFaceObject(santa, gPlayer, 3, 1)
PedFaceObject(santa, santaKid, 2, 1)
PedFaceObject(santaKid, santa, 2, 1)
PedFaceObject(shared.vendettaClerk, gPlayer, 3, 0)
PedFaceObject(sheet1Bruiser, gPlayer, 3, 1)
PedFaceObject(sheet1Guard, gPlayer, 3, 1)
PedFaceObject(sheet4Guard, gPlayer, 3, 0)
PedFaceObject(shopkeep, gPlayer, 2, 1)
PedFaceObject(tableEntry.id, gPlayer, 3, 1)
PedFaceObject(tblCutscenePed.lola.id, gPlayer, 3, 0)
PedFaceObject(tblParentPosList[i].parent, santa, 2, 1)
PedFaceObject(tblRaceInfo.race.countdown_ped.id, gPlayer, 3, 1)
PedFaceObject(tDO, idZoe, 2, 0, true)
PedFaceObject(teacher, gPlayer, 2, 1)
PedFaceObject(worker1, worker2, 2, 0)
PedFaceObject(worker2, worker1, 2, 0)
sub esp, 0x8
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x18]
push edi
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov ebp, eax
add esp, 0x8
test ebp, ebp
jz 0xBF
push 0x1
push esi
call LuaParam::GetInt
push 0x2
push esi
mov edi, eax
call LuaParam::GetInt
push 0x3
push esi
mov ebx, eax
call LuaParam::GetInt
push 0x0
push 0x0
push ebx
push edi
mov dword ptr [esp+0x3C], eax
call 0x5C28D0
mov edi, eax
add esp, 0x28
test edi, edi
jz 0x87
push esi
mov byte ptr [esp+0x14], 0x1
call 0x73AEA0
add esp, 0x4
cmp eax, 0x5
jl 0x11
push 0x4
push esi
call LuaParam::GetBool
add esp, 0x8
mov byte ptr [esp+0x10], al
cmp dword ptr [esp+0x14], 0x0
jnz 0x2E
mov eax, dword ptr [edi+0x14]
test eax, eax
jz 0x7
lea edi, ptr [eax+0x30]
jmp 0x5
add edi, 0x4
push edi
push ecx
mov eax, esp
push ebp
mov dword ptr [eax], 0x0
call 0x5C7520
add esp, 0xC
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8
ret
PedFaceObjectNow(algie, gPlayer, 2)
PedFaceObjectNow(Beatrice, gPlayer, 2)
PedFaceObjectNow(beatrice, gPlayer, 3)
PedFaceObjectNow(Boy, Girl, 2)
PedFaceObjectNow(DirtyCop, MotelOwner, 2)
PedFaceObjectNow(entry.id, edna, 2)
PedFaceObjectNow(entry.id, gPlayer, 3)
PedFaceObjectNow(gDavis, gPlayer, 3)
PedFaceObjectNow(gEdgar, gPlayer, 2)
PedFaceObjectNow(gEdgar, gRussell, 2)
PedFaceObjectNow(gGary, gPlayer, 3)
PedFaceObjectNow(Girl, Boy, 2)
PedFaceObjectNow(gMelvin, gPlayer, 3)
PedFaceObjectNow(gNewsMan, gPlayer, 2)
PedFaceObjectNow(gPeanut, gPlayer, 2)
PedFaceObjectNow(gPeds[1], gPlayer, 2)
PedFaceObjectNow(gPeds[1], gRussell, 2)
PedFaceObjectNow(gPeds[2], gPlayer, 2)
PedFaceObjectNow(gPeds[2], gRussell, 2)
PedFaceObjectNow(gPlayer, beatrice, 2)
PedFaceObjectNow(gPlayer, bNerdBoss, 2)
PedFaceObjectNow(gPlayer, buster, 2)
PedFaceObjectNow(gPlayer, gCrazy01, 2)
PedFaceObjectNow(gPlayer, gEdgar, 2)
PedFaceObjectNow(gPlayer, gLeon, 2)
PedFaceObjectNow(gPlayer, gMelvin, 2)
PedFaceObjectNow(gPlayer, gNewsMan, 2)
PedFaceObjectNow(gPlayer, gPrefect, 2)
PedFaceObjectNow(gPlayer, gPrefect1, 2)
PedFaceObjectNow(gPlayer, gVance, 2)
PedFaceObjectNow(gPlayer, idNorton, 2)
PedFaceObjectNow(gPlayer, idPinky.id, 2)
PedFaceObjectNow(gPlayer, pedCrabbleSnitch.id, 2)
PedFaceObjectNow(gPlayer, pedRussell.id, 2)
PedFaceObjectNow(gPlayer, pedTable[1].id, 2)
PedFaceObjectNow(gPlayer, tblCutscenePed.johnny.id, 2)
PedFaceObjectNow(gPlayer, tblCutscenePed.lola.id, 2)
PedFaceObjectNow(gPlayer, tblJohnnyWH.id, 2)
PedFaceObjectNow(gPlayer, tblRaceInfo.race.countdown_ped.id, 2)
PedFaceObjectNow(gPrefect, gPlayer, 3)
PedFaceObjectNow(gPrefect1, gPlayer, 3)
PedFaceObjectNow(gPrefect1, gRussell, 2)
PedFaceObjectNow(gPrefect2, gRussell, 2)
PedFaceObjectNow(gRooftopPeds1[2], gPlayer, 2)
PedFaceObjectNow(gRussell, bNerdBoss, 2)
PedFaceObjectNow(gRussell, gPlayer, 3)
PedFaceObjectNow(gRussell, gPrefect1, 2)
PedFaceObjectNow(gRussell, lackey2, 2)
PedFaceObjectNow(gVance, gPlayer, 2)
PedFaceObjectNow(id, gPlayer, 2)
PedFaceObjectNow(idBurton, guy.id, 2)
PedFaceObjectNow(idDarby, gPlayer, 3)
PedFaceObjectNow(idNorton, gPlayer, 3)
PedFaceObjectNow(idZoe, gPlayer, 3)
PedFaceObjectNow(MotelOwner, DirtyCop, 2)
PedFaceObjectNow(ped.id, gPlayer, 2)
PedFaceObjectNow(ped2, ped3, 2)
PedFaceObjectNow(ped3, ped2, 2)
PedFaceObjectNow(PedID, gPlayer, 2)
PedFaceObjectNow(pedRussell.id, gPlayer, 2)
PedFaceObjectNow(pedTable[1].id, gPlayer, 2)
PedFaceObjectNow(pete, gPlayer, 3)
PedFaceObjectNow(tblCutscenePed.johnny.id, gPlayer, 2)
PedFaceObjectNow(tblCutscenePed.lola.id, gPlayer, 2)
PedFaceObjectNow(tblCutscenePed.lucky.id, gPlayer, 2)
PedFaceObjectNow(tblCutscenePed.ricky.id, gPlayer, 2)
PedFaceObjectNow(tblGreaser1WH.id, gPlayer, 3)
PedFaceObjectNow(tblGreaser2WH.id, gPlayer, 3)
PedFaceObjectNow(tblJohnnyWH.id, gPlayer, 3)
PedFaceObjectNow(tblRaceInfo.race.countdown_ped.id, gPlayer, 2)
PedFaceObjectNow(Teacher, Victim, 2)
PedFaceObjectNow(Thug, Victim, 2)
PedFaceObjectNow(Victim, Teacher, 2)
PedFaceObjectNow(Victim, Thug, 2)
sub esp, 0x1C
push ebx
push esi
push edi
mov edi, dword ptr [esp+0x2C]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x65
push 0x1
push edi
call LuaParam::GetInt
push 0x2
push edi
mov ebx, eax
call LuaParam::GetInt
push 0x0
push 0x0
push eax
push ebx
call 0x5C28D0
add esp, 0x20
push 0x1
push eax
push esi
lea ecx, ptr [esp+0x18]
call 0x470C10
lea ecx, ptr [esp+0xC]
call 0x470C90
push ecx
mov ecx, esi
fstp dword ptr [esp], st
call 0x475730
mov ecx, esi
call 0x443AA0
mov eax, dword ptr [esi+0x114]
mov ecx, dword ptr [eax+0xC]
push ecx
call 0x6C9AF0
add esp, 0x4
lea ecx, ptr [esp+0xC]
call 0x470C60
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1C
ret
PedFaceXYZ(algie, x, y, z, 0)
PedFaceXYZ(closestPed, x, y, z, 0)
PedFaceXYZ(curPed, x, y, z, 0)
PedFaceXYZ(gBlockAOrderly01, x1, y1, z1, 0)
PedFaceXYZ(gBully01, x, y, z, 0)
PedFaceXYZ(gBully02, x, y, z, 0)
PedFaceXYZ(gBully03, x, y, z, 0)
PedFaceXYZ(gDavis, x, y, z, 0)
PedFaceXYZ(gInOrderly02, x2, y2, z2, 0)
PedFaceXYZ(gNerds[1].id, x, y, z, 1)
PedFaceXYZ(gNerds[2].id, x, y, z, 1)
PedFaceXYZ(gOrderly04, spx8, spy8, spz8, 1)
PedFaceXYZ(gPlayer, -715.931, 373.532, 295.225, 0)
PedFaceXYZ(gPlayer, tempX, tempY, tempZ, 0)
PedFaceXYZ(gPlayer, x, y, z, 0)
PedFaceXYZ(gPushers[1], x, y, z, 0)
PedFaceXYZ(gPushers[2], x, y, z, 0)
PedFaceXYZ(gRussell, x, y, z, 0)
PedFaceXYZ(ped.id, spx8, spy8, spz8, 1)
PedFaceXYZ(pedGary.id, tempX, tempY, tempZ, 0)
PedFaceXYZ(pedHeadmistress, tempX, tempY, tempZ, 1)
PedFaceXYZ(pedID, spx8, spy8, spz8, 1)
PedFaceXYZ(pedParker, 245.932, 330.695, 2.41994, 0)
PedFaceXYZ(santa, x, y, z, 1)
sub esp, 0x18
push esi
mov esi, dword ptr [esp+0x20]
push edi
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov edi, eax
add esp, 0x8
test edi, edi
jz 0x55
push 0x1
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x10], st
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x1C], st
push 0x3
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x28], st
push 0x4
push esi
call LuaParam::GetInt
fld st, dword ptr [esp+0x28]
fstp dword ptr [esp+0x34], st
lea ecx, ptr [esp+0x34]
fld st, dword ptr [esp+0x2C]
push ecx
fstp dword ptr [esp+0x3C], st
push eax
fld st, dword ptr [esp+0x38]
push edi
fstp dword ptr [esp+0x48], st
call 0x5C7520
add esp, 0x2C
pop edi
xor eax, eax
pop esi
add esp, 0x18
ret
ScenarioPed = PedFindAmbientPedOfModelID(107, 40)
ScenarioPed = PedFindAmbientPedOfModelID(127, 40)
ScenarioPed = PedFindAmbientPedOfModelID(137, 40)
ScenarioPed = PedFindAmbientPedOfModelID(138, 40)
ScenarioPed = PedFindAmbientPedOfModelID(144, 40)
ScenarioPed = PedFindAmbientPedOfModelID(149, 40)
ScenarioPed = PedFindAmbientPedOfModelID(157, 40)
ScenarioPed = PedFindAmbientPedOfModelID(158, 40)
ScenarioPed = PedFindAmbientPedOfModelID(17, 40)
ScenarioPed = PedFindAmbientPedOfModelID(185, 40)
ScenarioPed = PedFindAmbientPedOfModelID(195, 40)
ScenarioPed = PedFindAmbientPedOfModelID(222, 40)
ScenarioPed = PedFindAmbientPedOfModelID(234, 40)
ScenarioPed = PedFindAmbientPedOfModelID(237, 40)
ScenarioPed = PedFindAmbientPedOfModelID(238, 40)
ScenarioPed = PedFindAmbientPedOfModelID(27, 40)
ScenarioPed = PedFindAmbientPedOfModelID(34, 40)
ScenarioPed = PedFindAmbientPedOfModelID(4, 40)
ScenarioPed = PedFindAmbientPedOfModelID(42, 40)
ScenarioPed = PedFindAmbientPedOfModelID(66, 40)
ScenarioPed = PedFindAmbientPedOfModelID(67, 40)
ScenarioPed = PedFindAmbientPedOfModelID(68, 40)
ScenarioPed = PedFindAmbientPedOfModelID(69, 40)
ScenarioPed = PedFindAmbientPedOfModelID(70, 40)
ScenarioPed = PedFindAmbientPedOfModelID(76, 40)
ScenarioPed = PedFindAmbientPedOfModelID(77, 40)
ScenarioPed = PedFindAmbientPedOfModelID(81, 40)
ScenarioPed = PedFindAmbientPedOfModelID(83, 40)
ScenarioPed = PedFindAmbientPedOfModelID(86, 40)
sub esp, 0x8
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x18]
push edi
push 0xFFFFFFFF
push 0x0
push esi
call LuaParam::GetInt ; optional
fld st, dword ptr [0x900FBC]
add esp, 0x8
fstp dword ptr [esp], st
push 0x1
push esi
mov dword ptr [esp+0x1C], eax
call LuaParam::GetFloat ; optional
fstp dword ptr [esp+0x20], st
mov ebp, dword ptr [0xC0F5F0]
mov edi, dword ptr [ebp+0x8]
add esp, 0xC
xor bl, bl
test edi, edi
jz 0x142
jmp 0x9
lea esp, ptr [esp]
mov eax, dword ptr [ebp+0x4]
sub edi, 0x1
test byte ptr [edi+eax*1], 0x80
jz 0x9
xor esi, esi
jmp 0xCF
mov esi, dword ptr [ebp+0xC]
imul esi, edi
add esi, dword ptr [ebp]
jz 0xC1
cmp dword ptr [esi+0x1554], 0x0
jnz 0xB4
cmp dword ptr [esi+0x548], 0x0
jnz 0xA7
mov eax, dword ptr [esi+0x1D24]
test eax, eax
jz 0x13
mov eax, dword ptr [eax+0x70]
cmp eax, 0x2
jle 0xB
cmp eax, 0x10
jl 0x8C
movsx ecx, word ptr [esi+0x10E]
cmp ecx, dword ptr [esp+0x10]
jnz 0x7B
cmp dword ptr [esi+0x14EC], 0x0
jnz 0x72
lea ecx, ptr [esi+0x2F0]
call 0x485560
test eax, eax
jnz 0x63
mov eax, dword ptr [esi+0x14]
test eax, eax
lea edx, ptr [eax+0x30]
jnz 0x5
lea edx, ptr [esi+0x4]
mov ecx, dword ptr [0xC1AEA8]
mov eax, dword ptr [ecx+0x14]
test eax, eax
jz 0x7
add eax, 0x30
jmp 0x5
lea eax, ptr [ecx+0x4]
push edx
push eax
call 0x470110
fld st, dword ptr [esp+0x1C]
fcompp
add esp, 0x8
fnstsw ax
test ah, 0x1
jnz 0x2A
mov eax, dword ptr [esi+0x2E0]
push 0x1
push 0x1
push 0x1B652F0
lea ecx, ptr [eax+0x258]
call 0x5F4800
cmp dword ptr [esi+0x142C], 0x0
setz bl
and bl, al
jnz 0xE
test edi, edi
jnz 0xFFFFFF21
test bl, bl
jz 0x48
test esi, esi
jz 0x44
mov ecx, dword ptr [esi+0x2E0]
add ecx, 0x290
call 0x5F40A0
lea ecx, ptr [esi+0x5F0]
call 0x470350
cmp dword ptr [esi+0x1D24], 0x0
jz 0xB
push 0x1
mov ecx, esi
call 0x473250
mov edx, dword ptr [esi]
mov eax, dword ptr [edx+0xAC]
mov ecx, esi
call 0x5C9DD7
mov ecx, dword ptr [esp+0x1C]
push eax
push ecx
jmp 0x9
mov esi, dword ptr [esp+0x1C]
push 0xFFFFFFFF
push esi
call LuaParam::PushInt
add esp, 0x8
pop edi
pop esi
pop ebp
mov eax, 0x1
pop ebx
add esp, 0x8
ret
local bPeds, ped1, ped2, ped3, ped4, ped5, ped6 = PedFindInAreaObject(pedID, 4)
local peds, id1, id2, id3, id4 = PedFindInAreaObject(idBucky, 1)
local peds, id1, id2, id3, id4 = PedFindInAreaObject(idBucky, 2)
ped1 = PedFindInAreaObject(gPlayer, 4)
pedbool, tblPeds[1], tblPeds[2], tblPeds[3], tblPeds[4], tblPeds[5], tblPeds[6], tblPeds[7], tblPeds[8], tblPeds[9], tblPeds[10], tblPeds[11], tblPeds[12], tblPeds[13], tblPeds[14], tblPeds[15], tblPeds[16], tblPeds[17], tblPeds[18], tblPeds[19], tblPeds[20], tblPeds[21], tblPeds[22], tblPeds[23], tblPeds[24] = PedFindInAreaObject(gPlayer, 100)
peds, vics[1], vics[2], vics[3], vics[4], vics[5], vics[6] = PedFindInAreaObject(gPlayer, 1.5)
peds, vics[1], vics[2], vics[3], vics[4], vics[5], vics[6], vics[7], vics[8], vics[9], vics[10], vics[11], vics[12] = PedFindInAreaObject(gPlayer, 1)
sub esp, 0x1C
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x2C]
push edi
xor ebp, ebp
push ebp
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
cmp eax, ebp
jnz 0xC
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1C
ret
push ebp
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x20], st
add esp, 0xC
mov eax, esp
mov dword ptr [eax], 0x2
lea eax, ptr [esp+0x24]
push edi
push eax
mov dword ptr [esp+0x20], ebp
mov dword ptr [esp+0x24], ebp
mov dword ptr [esp+0x28], ebp
call 0x5C2970
fld st, dword ptr [esp+0x1C]
fst dword ptr [esp+0x8], st
sub esp, 0xC
fst dword ptr [esp+0x10], st
lea ecx, ptr [esp+0x2C]
fstp dword ptr [esp+0xC], st
fld st, dword ptr [esp+0x3C]
fst dword ptr [esp+0x8], st
fstp dword ptr [esp+0x4], st
fld st, dword ptr [esp+0x38]
fstp dword ptr [esp], st
push ecx
call 0x5CF9B0
mov byte ptr [esp+0x2C], al
mov edx, dword ptr [esp+0x2C]
push edx
push esi
call LuaParam::PushBool
mov ebx, dword ptr [esp+0x40]
add esp, 0x24
xor edi, edi
cmp ebx, ebp
mov ebp, dword ptr [esp+0x14]
jbe 0x1A
lea ecx, ptr [ecx]
mov eax, dword ptr [ebp+edi*4]
push eax
push esi
call LuaParam::PushInt
add edi, 0x1
add esp, 0x8
cmp edi, ebx
jb 0xFFFFFFED
test ebp, ebp
lea esi, ptr [ebx+0x1]
jz 0xB
push ebp
call 0x5EEAB0
add esp, 0x4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x1C
ret
bool, peds[1], peds[2], peds[3], peds[4], peds[5], peds[6], peds[7], peds[8], peds[9], peds[10], peds[11], peds[12], peds[13], peds[14] = PedFindInAreaXYZ(x, y, z, 50)
bPedbool, tblCE[1], tblCE[2], tblCE[3], tblCE[4], tblCE[5] = PedFindInAreaXYZ(x, y, z, 1.5)
PedFindInAreaXYZ(bathroomX, bathroomY, bathroomZ, 12)
PedFindInAreaXYZ(x, y, z, 16)
PedFindInAreaXYZ(x, y, z, 5)
PedFindInAreaXYZ(x, y, z, radius)
target, targets[1].target, targets[2].target, targets[3].target = PedFindInAreaXYZ(x2, y2, z2, proximity)
target, targets[1].target, targets[2].target, targets[3].target, targets[4].target, targets[5].target, targets[6].target = PedFindInAreaXYZ(x2, y2, z2, 19)
sub esp, 0x1C
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x2C]
push edi
xor edi, edi
push edi
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x24], st
push 0x1
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x28], st
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x2C], st
push 0x3
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x30], st
fld st, dword ptr [esp+0x30]
add esp, 0x8
fst dword ptr [esp+0x14], st
lea eax, ptr [esp+0x38]
fst dword ptr [esp+0x10], st
mov dword ptr [esp+0x38], edi
fstp dword ptr [esp+0xC], st
mov dword ptr [esp+0x3C], edi
fld st, dword ptr [esp+0x2C]
mov dword ptr [esp+0x40], edi
fstp dword ptr [esp+0x8], st
fld st, dword ptr [esp+0x30]
fstp dword ptr [esp+0x4], st
fld st, dword ptr [esp+0x34]
fstp dword ptr [esp], st
push eax
call 0x5CF9B0
mov byte ptr [esp+0x38], al
mov ecx, dword ptr [esp+0x38]
push ecx
push esi
call LuaParam::PushBool
mov ebx, dword ptr [esp+0x4C]
mov ebp, dword ptr [esp+0x44]
add esp, 0x24
cmp ebx, edi
jbe 0x1D
lea ebx, ptr [ebx]
mov edx, dword ptr [ebp+edi*4]
push edx
push esi
call LuaParam::PushInt
add edi, 0x1
add esp, 0x8
cmp edi, ebx
jb 0xFFFFFFED
test ebp, ebp
lea esi, ptr [ebx+0x1]
jz 0xB
push ebp
call 0x5EEAB0
add esp, 0x4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x1C
ret
FoundPed = PedFindRandomPed(key, 1, -1, 15)
FoundPed = PedFindRandomPed(PedFaction, 1, -1, 25)
kicker = PedFindRandomPed(-1, -1, -1, 40)
push ecx
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x14]
push edi
push 0xFFFFFFFF
push 0x0
push esi
call LuaParam::GetInt ; optional
push 0xFFFFFFFF
push 0x1
push esi
mov edi, eax
call LuaParam::GetInt ; optional
push 0xFFFFFFFF
push 0x2
push esi
mov ebx, eax
call LuaParam::GetInt ; optional
fld st, dword ptr [0x900FBC]
add esp, 0x20
fstp dword ptr [esp], st
push 0x3
push esi
mov ebp, eax
call LuaParam::GetFloat ; optional
fstp dword ptr [esp+0x1C], st
fld st, dword ptr [esp+0x1C]
mov eax, dword ptr [0xC1AEA8]
add esp, 0xC
push 0x0
push ecx
mov ecx, dword ptr [0xC2C108]
fstp dword ptr [esp], st
push eax
push ebp
push ebx
push edi
call 0x49E860
test eax, eax
jnz 0x18
push 0xFFFFFFFF
push esi
call LuaParam::PushInt
add esp, 0x8
pop edi
pop esi
pop ebp
mov eax, 0x1
pop ebx
pop ecx
ret
mov edx, dword ptr [eax]
mov ecx, eax
mov eax, dword ptr [edx+0xAC]
call 0x5C679C
push eax
push esi
call LuaParam::PushInt
add esp, 0x8
pop edi
pop esi
pop ebp
mov eax, 0x1
pop ebx
pop ecx
ret
x, y, z = PedFindRandomSpawnPosition(char)
x, y, z = PedFindRandomSpawnPosition(model)
x, y, z = PedFindRandomSpawnPosition(Walker)
sub esp, 0x30
push esi
push edi
mov edi, dword ptr [esp+0x3C]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jnz 0x8
pop edi
pop esi
add esp, 0x30
ret
fld st, dword ptr [0x90D1C8]
mov eax, dword ptr [0xBCC564]
mov ecx, dword ptr [0xBCC568]
fst dword ptr [esp+0x2C], st
mov edx, dword ptr [0xBCC56C]
fst dword ptr [esp+0x30], st
mov dword ptr [esp+0x14], eax
fstp dword ptr [esp+0x34], st
mov eax, dword ptr [0xC1AEA8]
mov dword ptr [esp+0x18], ecx
mov dword ptr [esp+0x1C], edx
cmp dword ptr [eax+0x14], 0x0
jz 0xA
mov eax, dword ptr [eax+0x14]
add eax, 0x30
jmp 0x5
add eax, 0x4
mov ecx, dword ptr [eax]
fldz
sub esp, 0x8
fst dword ptr [esp+0x4], st
mov dword ptr [esp+0x28], ecx
fstp dword ptr [esp], st
mov edx, dword ptr [eax+0x4]
lea ecx, ptr [esp+0x14]
push ecx
mov ecx, dword ptr [0xC2C108]
mov dword ptr [esp+0x30], edx
mov eax, dword ptr [eax+0x8]
push 0x1
lea edx, ptr [esp+0x24]
mov dword ptr [esp+0x38], eax
push edx
lea eax, ptr [esp+0x34]
push eax
mov dword ptr [esp+0x24], 0x0
call 0x49D860
test al, al
jz 0xA6
fld st, dword ptr [esp+0x1C]
push 0x1
fadd qword ptr [0x8FF1D8]
lea ecx, ptr [esp+0xF]
push ecx
sub esp, 0xC
fstp dword ptr [esp+0x24], st
mov byte ptr [esp+0x1F], 0x0
fld st, dword ptr [esp+0x24]
fstp dword ptr [esp+0x8], st
fld st, dword ptr [esp+0x2C]
fstp dword ptr [esp+0x4], st
fld st, dword ptr [esp+0x28]
fstp dword ptr [esp], st
call 0x4636B0
add esp, 0x14
fstp dword ptr [esp+0x10], st
cmp byte ptr [esp+0xB], 0x0
jz 0xA
fld st, dword ptr [esp+0x10]
fstp dword ptr [esp+0x1C], st
fld st, dword ptr [0x900D38]
push ecx
mov ecx, dword ptr [0xC2C108]
fstp dword ptr [esp], st
push 0x0
push 0x0
lea edx, ptr [esp+0x20]
push edx
call 0x49D040
test al, al
jz 0x31
push 0x1
lea eax, ptr [esp+0x18]
push eax
push esi
mov ecx, 0xC2AB70
call 0x46EFB0
test al, al
jnz 0x1B
lea ecx, ptr [esp+0x14]
push ecx
push edi
call LuaParam::PushVector
mov eax, 0x3
add esp, 0x8
pop edi
pop esi
add esp, 0x30
ret
lea edx, ptr [esp+0x2C]
push edx
push edi
call LuaParam::PushVector
add esp, 0x8
pop edi
mov eax, 0x3
pop esi
add esp, 0x30
ret
L_PedExec("ambush01", PedFlee, "id", gPlayer)
PedFlee(bucky, ped2)
PedFlee(Crazy01, gPlayer)
PedFlee(Crazy02, gPlayer)
PedFlee(donald, ped3)
PedFlee(earnest, ped3)
PedFlee(entry, gPlayer)
PedFlee(entry.id, edna)
PedFlee(gCorn, gPlayer)
PedFlee(gFatty, gPlayer)
PedFlee(gMandy, gPlayer)
PedFlee(greaser1, gCops[1])
PedFlee(greaser2, gCops[3])
PedFlee(gRussell, gPlayer)
PedFlee(gTargetBoy, gPlayer)
PedFlee(idLittleBoy, idDO)
PedFlee(idPed, gPlayer)
PedFlee(item.kid, gPlayer)
PedFlee(item.parent, gPlayer)
PedFlee(lVictim[vIndex], gPlayer)
PedFlee(mandy, gPlayer)
PedFlee(outroPedC, outroPedA)
PedFlee(ped, fleePed)
PedFlee(ped, gPlayer)
PedFlee(ped.id, gPlayer)
PedFlee(ped2, ped3)
PedFlee(pedAlgie.id, pedGary.id)
PedFlee(pedBryce, gPlayer)
PedFlee(pedChad, gPlayer)
PedFlee(pedCheerleader01.id, gPlayer)
PedFlee(pedCheerleader02.id, gPlayer)
PedFlee(pedGord, gPlayer)
PedFlee(pedID, gPlayer)
PedFlee(pedKlepto.id, gPlayer)
PedFlee(pedMandyBedroom.id, gPlayer)
PedFlee(pedMandyShower.id, gPlayer)
PedFlee(pedParker, gPlayer)
PedFlee(pedPoolPrep.id, gPlayer)
PedFlee(pedPrefectKarl.id, gPlayer)
PedFlee(pedPrep.id, gPlayer)
PedFlee(pedRussell.id, gPlayer)
PedFlee(santa, gPlayer)
PedFlee(sheet1Bruiser, gPlayer)
PedFlee(sheet1Guard, gPlayer)
PedFlee(tableBikerPeds[tableMarkForDelete[i]], pedChad.id)
PedFlee(tblEntry.id, gPlayer)
PedFlee(testPed[1].id, gPlayer)
PedFlee(thad, ped1)
{ name = "PedFlee", exec = F_PedFlee },
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
push 0x1
push edi
mov esi, eax
call LuaParam::GetInt
add esp, 0xC
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
test esi, esi
mov edi, eax
jz 0x3C
test edi, edi
jz 0x38
push 0x14
call 0x5EEAA0
add esp, 0x4
test eax, eax
jz 0x1C
push edi
push esi
mov ecx, eax
call 0x48E700
push eax
lea ecx, ptr [esi+0x5F0]
call 0x471390
xor eax, eax
pop edi
pop esi
ret
xor eax, eax
push eax
lea ecx, ptr [esi+0x5F0]
call 0x471390
pop edi
xor eax, eax
pop esi
ret
-- never used
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
jz 0x2B
lea ecx, ptr [eax+0x5F0]
call 0x470340
test eax, eax
jz 0x1C
cmp dword ptr [eax+0x8], 0xD
jnz 0x16
mov eax, dword ptr [eax+0x14]
push eax
push esi
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
pop esi
ret
xor eax, eax
pop esi
ret
name = "PedFleeOnPathOnBike",
PedFleeOnPathOnBike(gRussell.id, PATH._2_05_RUSSELBIKEPATH, 0)
PedFleeOnPathOnBike(idDO, idCurrentPath, 0, startnode)
PedFleeOnPathOnBike(idDO, PATH._5_04_BIKE_ESCAPE_02, 0)
PedFleeOnPathOnBike(idDO, PATH._5_04_BIKE_ESCAPE_03, 0)
PedFleeOnPathOnBike(idRussell, PATH._5_06_MAINBIKEPATH, 0)
PedFleeOnPathOnBike(pedKlepto.id, PATH._2_02_NEWESCAPE, 0)
PedFleeOnPathOnBike(testPed[1].id, testPed[1].pathFlee, 1)
sub esp, 0x8
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x18]
push edi
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov edi, eax
add esp, 0x8
test edi, edi
jz 0x8D
push 0x1
push esi
call LuaParam::GetInt
push 0x2
push esi
mov ebx, eax
call LuaParam::GetInt
push 0x0
push 0x3
push esi
mov dword ptr [esp+0x30], eax
call LuaParam::GetInt ; optional
lea esi, ptr [edi+0x5F0]
add esp, 0x1C
mov ecx, esi
mov dword ptr [esp+0x10], eax
call 0x470350
lea ecx, ptr [edi+0x3BC]
call 0x48C070
push 0x40
mov ebp, eax
call 0x5EEAA0
add esp, 0x4
test eax, eax
jz 0xF
push ebp
push edi
mov ecx, eax
call 0x470FC0
mov edi, eax
jmp 0x4
xor edi, edi
push edi
mov ecx, esi
call 0x471390
mov eax, dword ptr [esp+0x10]
mov dword ptr [edi+0x10], ebx
mov dword ptr [edi+0x14], eax
mov ecx, dword ptr [0xD13CB4]
push ebx
call 0x5ED3A0
test eax, eax
jz 0x9
mov ecx, dword ptr [esp+0x14]
mov dword ptr [edi+0x24], ecx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x8
ret
name = "PedFleeOnRoadOnBike",
PedFleeOnRoadOnBike(testPed[1].id)
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x10]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0xFFFFFFFF
push 0x1
push esi
mov ebx, eax
call LuaParam::GetInt ; optional
add esp, 0x10
mov edi, eax
mov eax, esp
push ebx
mov dword ptr [eax], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x6B
lea ebp, ptr [esi+0x5F0]
mov ecx, ebp
call 0x470350
cmp edi, 0xFFFFFFFF
lea ebx, ptr [esi+0x3BC]
jz 0x1A
push ecx
mov eax, esp
push edi
mov dword ptr [eax], 0x2
call 0x5C7380
mov edi, eax
add esp, 0x8
test edi, edi
jnz 0xB
mov ecx, ebx
call 0x48C070
mov edi, eax
push 0x14
call 0x5EEAA0
add esp, 0x4
test eax, eax
jz 0x1A
push edi
push esi
mov ecx, eax
call 0x471080
push eax
mov ecx, ebp
call 0x471390
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
xor eax, eax
push eax
mov ecx, ebp
call 0x471390
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
name = "PedFollowFocus",
PedFollowFocus(Dog, gPlayer)
PedFollowFocus(Dog, ScenarioPed)
PedFollowFocus(idBryce.id, idGord.id)
PedFollowFocus(idJustin.id, idGord.id)
PedFollowFocus(pedGary.id, pedDog.id)
PedFollowFocus(pedPrefectKarl.id, pedGary.id)
PedFollowFocus(ScenarioPed, Crazy02)
PedFollowFocus(tblPrep1.id, tblGord.id)
PedFollowFocus(testPed[1].id, gPlayer)
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
push 0x1
push edi
mov esi, eax
call LuaParam::GetInt
add esp, 0xC
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
test esi, esi
mov edi, eax
jz 0x48
test edi, edi
jz 0x44
push edi
lea ecx, ptr [esi+0x3BC]
call 0x48C4C0
push 0x14
call 0x5EEAA0
add esp, 0x4
test eax, eax
jz 0x1C
push edi
push esi
mov ecx, eax
call 0x471C10
push eax
lea ecx, ptr [esi+0x5F0]
call 0x470300
xor eax, eax
pop edi
pop esi
ret
xor eax, eax
push eax
lea ecx, ptr [esi+0x5F0]
call 0x470300
pop edi
xor eax, eax
pop esi
ret
-- never used
push ecx
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x14]
push edi
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov ebp, eax
add esp, 0x8
test ebp, ebp
jz 0x70
push 0x1
push esi
call LuaParam::GetInt
push 0x2
push esi
mov edi, eax
call LuaParam::GetInt
push 0x3
push esi
mov ebx, eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x28], st
push 0x0
push 0x0
push ebx
push edi
call 0x5C28D0
push 0x18
mov esi, eax
call 0x5EEAA0
add esp, 0x2C
test eax, eax
jz 0x27
fld st, dword ptr [esp+0x10]
push ecx
fstp dword ptr [esp], st
push esi
push ebp
mov ecx, eax
call 0x470AA0
push eax
lea ecx, ptr [ebp+0x5F0]
call 0x471390
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
xor eax, eax
push eax
lea ecx, ptr [ebp+0x5F0]
call 0x471390
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
name = "PedFollowPath (circular)",
name = "PedFollowPath (to and fro)",
name = "PedFollowPath (to end)",
PedFollowPath(a, PATH._5_04_JOCKPATH01, 0, 1, CbMandyPath)
PedFollowPath(a, PATH._5_04_JOCKPATH02, 0, 1, CbJock01Path)
PedFollowPath(a, PATH._5_04_JOCKPATH03, 0, 1, CbJock01Path)
PedFollowPath(algie, PATH._4G4_ALGIEPATH, 0, 1)
PedFollowPath(algie, tblAlgieTags[currentTrig].path, 0, 1, F_ReachedPathEnd)
PedFollowPath(Bum, PATH._1_07_TOBUSPATH, 0, 0)
PedFollowPath(char, PATH._OUTSIDE_PATH, 1, 1, nil)
PedFollowPath(char2, PATH._INSIDE_PATH, 1, 1, nil)
PedFollowPath(char3, PATH._OUTSIDE_PATH, 1, 1, nil)
PedFollowPath(char4, PATH._INSIDE_PATH, 1, 1, nil)
PedFollowPath(chemTeach, PATH._C4_TEACHER_PATH, 1, 0)
PedFollowPath(classmate02, PATH._C6_CLASSMATE02, 0, 0)
PedFollowPath(classmate03, PATH._C6_CLASSMATE03, 0, 0)
PedFollowPath(cop, PATH._INDUS_COPA, 1, 0)
PedFollowPath(cop, PATH._INDUS_COPB, 1, 0)
PedFollowPath(cop6, PATH._2_S02_COP6_PATH, 1, 0)
PedFollowPath(dog, PATH._BEHINDRETIREMENT, 1, 0)
PedFollowPath(dog, PATH._BESIDEPSYCHO, 2, 0)
PedFollowPath(Earnest, PATH._1_09_FLEEEARNEST, 0, 2)
PedFollowPath(edgar, PATH._5_B_EDGARTOSTAIRS, 0, 2)
PedFollowPath(edgar, PATH._5_B_EDGARTOSTAIRS, 0, 2, CbEdgarToStairs)
PedFollowPath(edna, PATH._2_S05_DINPEDFLEE, 0, 2)
PedFollowPath(Edna, tblEdnaPaths[randomi], 3, 0, F_CBShrug)
PedFollowPath(enemy02.id, enemy02.path, 1, 1, cbRunningMan)
PedFollowPath(EnemyTable[i].handle, EnemyTable[i].path, 0, 1, nil, 2)
PedFollowPath(EnemyTable[i].handle, EnemyTable[i].path, 0, 2, nil, 2)
PedFollowPath(EnemyTable[index].handle, EnemyTable[index].path, 0, 0, EnemyTable[index].cbfunc)
PedFollowPath(EnemyTable[index].handle, EnemyTable[index].path, 0, 2, EnemyTable[index].cbfunc)
PedFollowPath(Entry.id, Entry.path, 1, idSpeed)
PedFollowPath(entry.id, entry.path, 2, 0)
PedFollowPath(Entry.id, Entry.path, 2, idSpeed, F_T1, 0, F_T2, F_T3)
PedFollowPath(entry.id, PATH._2_S05_DINPEDFLEE, 0, 1)
PedFollowPath(FireMan, PATH._DORMFAPATH1, 0, 1, F_FiremanD)
PedFollowPath(gAsylumTable.ped1, PATH._ASYLUMPATH1, 2, 0)
PedFollowPath(gAsylumTable.ped2, PATH._ASYLUMPATH2, 2, 0)
PedFollowPath(GateNerd.id, PATH._4_06_GATEPATH, 0, 0, CbGateNerdPath)
PedFollowPath(gBaddie.id, PATH._BMX_PATHY03, 1, 1)
PedFollowPath(gBaddie02.id, PATH._BMX_PATHY01, 1, 1)
PedFollowPath(gBaddie03.id, PATH._BMX_PATHY01, 1, 1)
PedFollowPath(gBaddie03.id, PATH._BMX_PATHY04, 1, 1)
PedFollowPath(gBaddie04.id, PATH._BMX_PATHY01, 1, 1)
PedFollowPath(gBaddie04.id, PATH._BMX_PATHY02, 1, 1)
PedFollowPath(gBaddie05.id, PATH._BMX_PATHY02, 1, 1)
PedFollowPath(gBaddie06.id, PATH._BMX_PATHY02, 1, 1)
PedFollowPath(gBaddie06.id, PATH._BMX_PATHY04, 1, 1)
PedFollowPath(gBlockAOrderly01, PATH._ASYLUM_PATROL_ABLOCK, 1, 0, CB_F1_O1_Path)
PedFollowPath(gBlockAOrderly01, PATH._ASYLUM_PATROL_ABLOCK, 1, 0, CB_F1_O1_Path, 10)
PedFollowPath(gBlockAOrderly01, PATH._ASYLUM_PATROL_ABLOCK, 1, 0, CB_F1_O1_Path, 2)
PedFollowPath(gBlockAOrderly01, PATH._ASYLUM_PATROL_ABLOCK, 1, 0, CB_F1_O1_Path, 6)
PedFollowPath(gBlockAOrderly02, PATH._5_03_1F_ORDERLY2_PATH1, 1, 1)
PedFollowPath(gBlockBOrderly01, PATH._ASYLUM_PATROL_BBLOCK, 1, 0)
PedFollowPath(gBlockBOrderly02, PATH._ASYLUM_PATROL_SHOWER, 1, 0)
PedFollowPath(gBucky, PATH._2_S04_NERD_LOOP, 0, 2, cbBuckyFinished)
PedFollowPath(gCannonNerd, PATH._4_02_NIS_EARNESTRUN, 0, 2)
PedFollowPath(gCarny, PATH._MGS_CLERKPATH, 0, 1, cbClerkDone)
PedFollowPath(gChad, PATH._2_03_EGGER2COVERPATH, 0, 1, cbChadReadyToEgg)
PedFollowPath(gControlOrderly, PATH._5_03_CONTROL_ORDERLY_PATH, 0, 0, cbControlRoomDoors)
PedFollowPath(gControlOrderly, PATH._5_03_CONTROL_ORDERLY_PATH, 0, 1, nil, 5)
PedFollowPath(gCop1, PATH._2_S02_COP1_PATH, 1, 0)
PedFollowPath(gCop1, PATH._2_S02_COP1STARTER, 0, 1)
PedFollowPath(gCop1, PATH._6_02_COPGOFOLLOW, 0, 2, nil, 2)
PedFollowPath(gCop2, PATH._2_S02_COP2_PATH, 1, 0)
PedFollowPath(gCop2, PATH._6_02_COPGOFOLLOW, 0, 2)
PedFollowPath(gCop3, PATH._2_S02_COP3_PATH, 3, 0)
PedFollowPath(gCop3, PATH._2_S02_HATTRICK_TO_HOUSE, 3, 0)
PedFollowPath(gCop4, PATH._2_S02_COP4_PATH, 1, 0)
PedFollowPath(gCop5, PATH._2_S02_COP5_PATH, 1, 0)
PedFollowPath(gCrazy01, PATH._3_S11_CRAZY6_PATH1, 1, 0)
PedFollowPath(gCrazy01, PATH._3_S11_CRAZY6_PATH1, 1, 1)
PedFollowPath(gCrazy02, PATH._3_S11_CRAZY4_PATH1, 1, 0)
PedFollowPath(gCrazy03, PATH._3_S11_CRAZY5_PATH1, 1, 0)
PedFollowPath(gCrazy04, PATH._3_S11_CRAZY3_PATH1, 1, 0)
PedFollowPath(gCurrentBully01, PATH._1_07_JIMMYPATH, 0, 1)
PedFollowPath(gCurrentBully02, PATH._1_07_BUCKYPATH, 0, 1)
PedFollowPath(gDavis, PATH._1_03_FLEEFROMFOUNTAIN, 0, 3, cbDoneFleeFountain)
PedFollowPath(gDavis, PATH._1_03_FLEEGARAGE, 0, 2, cbFleeGarage)
PedFollowPath(gDavis, PATH._1_03_FLEETOFOUNTAIN, 0, 3, cbDoneFleeToFountain)
PedFollowPath(gDavis, PATH._1_03_FLEETOGARAGE, 0, 3, cbDoneFleeToGarage)
PedFollowPath(gDavis, PATH._1_03_SCHOOLFLEE, 0, 3, cbSchoolFlee)
PedFollowPath(gDo03[3], PATH._5_07_STEALTHPATH02, 2, 0)
PedFollowPath(gDo03[4], PATH._5_07_STEALTHPATH01, 2, 0)
PedFollowPath(gDOThug01, PATH._ASYLUM_PATROL_BBLOCK, 1, 0, nil, 4)
PedFollowPath(gDOThug02, PATH._ASYLUM_PATROL_BBLOCK, 2, 2, nil, 7)
PedFollowPath(gDOThug03, PATH._ASYLUM_PATROL_BBLOCK, 1, 1, nil, 1)
PedFollowPath(gDuncan, PATH._5_02_DOCKDUNCANPATH, 0, 1, cbDuncanAtDocks)
PedFollowPath(gDuncan, PATH._5_02_DUNCANEXITPATH, 0, 1, cbDuncanReachedDoor)
PedFollowPath(gEdgar, PATH._6_03_ENDEDGARPATH, 0, 2)
PedFollowPath(gEdna, PATH._1_S01_EDNA_PATH, 2, 0)
PedFollowPath(gEdnaGuard, PATH._1_S01_EDNA_GUARD_PATH, 2, 0)
PedFollowPath(gEunice, PATH._1_02_EUNICE_WALK, 0, 0)
PedFollowPath(gFatty, PATH._2_S04_NERD_ESCAPE1, 0, 2, cbNerd2Escape)
PedFollowPath(gFatty, PATH._2_S04_NERD_ESCAPE2, 0, 2)
PedFollowPath(gFenwick, PATH._ASYLUM_PATROL_BBLOCK, 2, 2, nil, 3)
PedFollowPath(gFrontDeskOrderly, PATH._ASYLUM_PATROL_FRONTDESK, 2, 0, cbNoPath, 1)
PedFollowPath(gFrontOrderly, PATH._ASYLUM_PATROL_FRONTDESK, 2, 0)
PedFollowPath(gFrontOrderly, PATH._ASYLUM_PATROL_FRONTDESK, 2, 0, cbNoPath, 1)
PedFollowPath(gGalloway, PATH._3_S11_OUTRONIS_WALK, 0, 1)
PedFollowPath(gGary, garyPath, 0, 1, cbGaryRoomPath)
PedFollowPath(gGary, PATH._1_10_ENTERBASEMENT, 0, 1)
PedFollowPath(gGary, PATH._1_10_ENTERHOLE, 0, 1)
PedFollowPath(gGary, PATH._1_10_ROOM00, 0, 1, cbGaryRoomPath)
PedFollowPath(gGary, PATH._1_10_ROOM04, 0, 1, cbGaryRoomPath)
PedFollowPath(gGary, PATH._1_10_ROOM05, 0, 1, cbGaryRoomPath)
PedFollowPath(gGary, PATH._1_10_TO_BASEMENT, 0, 3, cbGaryAtBasementDoor)
PedFollowPath(gGary, PATH._1_10_TO_PARKINGLOT, 0, 3, cbGaryNearBullies)
PedFollowPath(gGary, PATH._6_B_GARYPATH01, 0, 1)
PedFollowPath(gGary, PATH._6_B_GARYPATH02, 0, 1)
PedFollowPath(gGary, PATH._6_B_GARYPATH03, 0, 2, CB_GARYPATH03)
PedFollowPath(gGary, PATH._6_B_MINIPATH, 0, 0)
PedFollowPath(gGary, PATH._6_B_MINIPATH2, 0, 2)
PedFollowPath(gGary, PATH._GARYPATH, 0, 2, nil, 3)
PedFollowPath(gGary, PATH._TOBEDROOM, 0, 0, CB_ReachedBedroom, 3)
PedFollowPath(gGary, PATH._TOSODAMACHINE, 0, 0, CB_ReachedMachine)
PedFollowPath(gGord, PATH._2_03_EGGER1COVERPATH, 0, 1, cbGordReadyToEgg)
PedFollowPath(gHallMon, PATH._1_S01_BROOM_PREFECT_PATH2, 0, 2, CbHallMonitor)
PedFollowPath(gHallMon, PATH._1_S01_BROOMSTALLS, 0, 0, CbCheckingStalls)
PedFollowPath(gHattrick, PATH._1_S01_HATTRICKPATH01, 0, 0, CbHattrickEndPath01)
PedFollowPath(gHattrick, PATH._1_S01_HATTRICKPATH01, 0, 1, CbHattrickEndPath01)
PedFollowPath(gHattrick, PATH._1_S01_HATTRICKPATH02, 0, 0, CbHattrickEndPath02)
PedFollowPath(gHattrick, PATH._1_S01_HATTRICKPATH03, 0, 0, CbHattrickCafeteriaPath)
PedFollowPath(gHattrick, PATH._2_S02_HATTRICK_TO_HOUSE, 0, 0, cbHattrickInHouse)
PedFollowPath(gHattrick, PATH._2_S02_HATTRICKLEAVEHOUSE, 0, 1, cbHattrickOutside)
PedFollowPath(gHealthNerd, PATH._2_S04_NERD_ESCAPE1, 0, 2, cbNerdEscape)
PedFollowPath(gHealthNerd, PATH._2_S04_NERD_ESCAPE2, 0, 2)
PedFollowPath(gHealthNerd, PATH._2_S04_NERDESCAPE3, 0, 1, cbNerdReturn)
PedFollowPath(gHealthNerd, PATH._2_S04_NERDRETURN, 0, 1, cbGiveHealth)
PedFollowPath(gHobo, PATH._1_S01_HOBO_PATH, 0, 0)
PedFollowPath(gInOrderly01, PATH._ASYLUM_PATROL_ABLOCK, 1, 0, CB_Orderly_Path2)
PedFollowPath(gInOrderly01, PATH._ASYLUM_PATROL_ABLOCK, 1, 0, CB_Orderly_Path2, 5)
PedFollowPath(gInOrderly02, PATH._3_S11_I_ORDERLY1_PATH, 0, 0)
PedFollowPath(gInOrderly02, PATH._ASYLUM_PATROL_ABLOCK, 2, 0, CB_Orderly_Path2, 12)
PedFollowPath(gInOrderly02, PATH._ASYLUM_PATROL_ABLOCK, 2, 0, CB_Orderly_Path2, 15)
PedFollowPath(gInOrderly02, PATH._ASYLUM_PATROL_ABLOCK, 2, 0, CB_Orderly_Path2, 6)
PedFollowPath(gInOrderly02, PATH._ASYLUM_PATROL_ABLOCK, 2, 0, CB_Orderly_Path2, 9)
PedFollowPath(gInPatient, PATH._3_S11_CRAZY_ROOM_PATH, 2, 0)
PedFollowPath(gJerry, PATH._5_02RATPATROLB, 1, 0)
PedFollowPath(gJogger, PATH._PR_JOGGERPATH, 2, 2)
PedFollowPath(gJohnny, PATH._5_03_JOHNNY_GOTO_PATH2, 0, 1)
PedFollowPath(gJohnnyV, PATH._JOHNNYFLEE01, 0, 2)
PedFollowPath(gJV_OnBike, PATH._3_B_JV_BIKE_PATH_NE, 1, 4)
PedFollowPath(gJV_OnBike, PATH._3_B_JV_BIKE_PATH_NW, 1, 4)
PedFollowPath(gJV_OnBike, PATH._3_B_JV_BIKE_PATH_SE, 1, 4)
PedFollowPath(gJV_OnBike, PATH._3_B_JV_BIKE_PATH_SW, 1, 4)
PedFollowPath(gJV_OnBike, PATH._3_B_JV_MAGNET_PATH_NE, 2, 4)
PedFollowPath(gJV_OnBike, PATH._3_B_JV_MAGNET_PATH_SW, 2, 4)
PedFollowPath(gLackey[10].ped, PATH._PREFECTPATH, 2, 0, PrefectPatrolling, 0)
PedFollowPath(gLackey[10].ped, PATH._PREFECTPATH, 2, 0, PrefectPatrolling, 6)
PedFollowPath(gLackey[20].ped, PATH._LACKEYPATROL, 2, 0, PatrolReachedEnd)
PedFollowPath(gLackey[8].ped, PATH._KITCHENLADY, 1, 0, cbEdnaKitchen)
PedFollowPath(gLackey[8].ped, PATH._KITCHENLADY, 1, 0, cbEdnaKitchen, gLackey[8].nCurrentNode + 1)
PedFollowPath(gLeon, PATH._5_02_DOCKLEONPATH, 0, 1, cbLeonAtDocks)
PedFollowPath(gLeon, PATH._5_02_LEONEXITPATH, 0, 1, cbLeonReachedDoor)
PedFollowPath(gMandy, PATH._1_S01_BATHROOM_GIRL_PATH, 0, 1)
PedFollowPath(gMandy, PATH._1_S01_BATHROOM_GIRL_PATH, 0, 1, CbMandyRunaway)
PedFollowPath(gMandy, PATH._MANDYFINALPATH, 0, 0, MandyWalking, 0)
PedFollowPath(gMandy, PATH._MANDYTOTOILET, 0, 2, MandyWalking, 0)
PedFollowPath(gMandy, PATH._SECONDSTALL, 0, 2, MandyWalking, 0)
PedFollowPath(gMelvin, PATH._2_S04_TOLIBRARY, 0, 0, cbMelvinInLibrary)
PedFollowPath(gNerds[1].id, PATH._4_04_MINEPATHR1, 0, 1)
PedFollowPath(gNerds[1].id, PATH._4_04_MINEPATHR2, 0, 1)
PedFollowPath(gNerds[1].id, PATH._4_04_MINEPATHR3, 0, 1)
PedFollowPath(gNerds[1].id, PATH._4_04_NERDR0, 0, 1, CB_Nerd1BegginingMinePath)
PedFollowPath(gNerds[1].id, PATH._4_04_RPRPATH1B, 0, 2)
PedFollowPath(gNerds[2].id, PATH._4_04_MINEPATHL1, 0, 1)
PedFollowPath(gNerds[2].id, PATH._4_04_MINEPATHL2, 0, 1)
PedFollowPath(gNerds[2].id, PATH._4_04_MINEPATHL3, 0, 1)
PedFollowPath(gNerds[2].id, PATH._4_04_NERDL0, 0, 1, CB_Nerd2BegginingMinePath)
PedFollowPath(gNerds[2].id, PATH._4_04_RPRPATH1, 0, 2, CB_NerdReaper)
PedFollowPath(gOldLady, oldladyPath, 1, 2)
PedFollowPath(gOrderly01, PATH._ASYLUMPATH1, 2, 0)
PedFollowPath(gOrderly02, PATH._ASYLUMPATH2, 2, 0)
PedFollowPath(gOrderly03, PATH._3_S11_STATUE_PATH, 2, 0)
PedFollowPath(gOrderly04, PATH._3_S11_ORDERLY_PATH1, 2, 0)
PedFollowPath(gOtto, PATH._5_02RATPATROLA, 1, 0)
PedFollowPath(gPeds[1], PATH._C3T_FARLEFT, 0, 0)
PedFollowPath(gPeds[2], PATH._C3T_CENTER, 0, 0)
PedFollowPath(gPeds[3], PATH._C3T_FARRIGHT, 0, 0)
PedFollowPath(gPeds[5], PATH._C3T_PEDESTRIAN2, 0, 0)
PedFollowPath(gPeds[6], PATH._C3T_PEDESTRIAN1, 0, 0)
PedFollowPath(gPeter, gPeterCurrentPath, 0, 1, cbPeterPath)
PedFollowPath(gPlayer, gExitPath, 0, 0)
PedFollowPath(gPlayer, PATH._1_02B_PLAYERTOEUNICE, 0, 0)
PedFollowPath(gPlayer, PATH._1_02B_PLAYERTOTRASH, 0, 2)
PedFollowPath(gPlayer, PATH._1_03_PURSUE, 0, 2, cbIntroPursueDone)
PedFollowPath(gPlayer, PATH._1_08_OUTSIDEGIRLS, 0, 0, CB_FollowPath)
PedFollowPath(gPlayer, PATH._2_01_CINBARBPATH, 0, 0, F_CBPlayerEndPath)
PedFollowPath(gPlayer, PATH._2_01_CINCLOTHPATH, 0, 0, F_CBPlayerEndPath)
PedFollowPath(gPlayer, PATH._2_01_CINGROCPATH, 0, 0, F_CBPlayerEndPath)
PedFollowPath(gPlayer, PATH._2_S02_PLAYERENTERYARD, 0, 0, cbPlayerAtYard)
PedFollowPath(gPlayer, PATH._2_S04_PLAYERENTERPATH, 0, 0, cbEnterRochambeau)
PedFollowPath(gPlayer, PATH._2_S06B_ROUTECUTBOOT, 0, 0)
PedFollowPath(gPlayer, PATH._3_04_CHASEALGIE, 0, 1)
PedFollowPath(gPlayer, PATH._3_04_STG3INTROJIMMY, 0, 1)
PedFollowPath(gPlayer, PATH._3_08_JNISPATH, 0, 0, CB_JimmyHitNode)
PedFollowPath(gPlayer, PATH._3_G3_ECS_LOLA, 0, 0, F_PlayerCallback)
PedFollowPath(gPlayer, PATH._3_R09_PLAYERPATH, 0, 0)
PedFollowPath(gPlayer, PATH._3_R09_TOMACHINE, 0, 1)
PedFollowPath(gPlayer, PATH._3_S11_OUTRONIS_WALK, 0, 1)
PedFollowPath(gPlayer, PATH._3B_PLAYERFLEECOPALLEY, 0, 2, cbPlayerAtBike)
PedFollowPath(gPlayer, PATH._4_01_ROUTECUTBOOT, 0, 0)
PedFollowPath(gPlayer, PATH._4_05CUT_JIMMYFLEE, 0, 2)
PedFollowPath(gPlayer, PATH._4_05CUT_JIMMYTOPOOL, 0, 1, cbFakePlayer)
PedFollowPath(gPlayer, PATH._5_01_ENDINGPATH, 0, 0)
PedFollowPath(gPlayer, PATH._5_01_ENDINGPATH02, 0, 0)
PedFollowPath(gPlayer, PATH._5_01_RETURNWEAPON, 0, 0)
PedFollowPath(gPlayer, PATH._5_04_PLAYERCHARGED, 0, 0)
PedFollowPath(gPlayer, PATH._6_02_PLAYERRUN, 0, 2, CB_PLAYEREND)
PedFollowPath(gPlayer, PATH._6_03_ENDNISJIMMYRUNS, 0, 2, nil, 3)
PedFollowPath(gPlayer, PATH._BUS_POLICEPATH, 0, 0)
PedFollowPath(gPlayer, PATH._BUSTEDPATH, 0, 0)
PedFollowPath(gPlayer, PATH._C2_PLAYERPATH, 0, 0)
PedFollowPath(gPlayer, PATH._C3_PLAYERPATH, 0, 1)
PedFollowPath(gPlayer, PATH._C3T_PLAYER, 0, 0)
PedFollowPath(gPlayer, PATH._C4_PLAYERPATH, 0, 0)
PedFollowPath(gPlayer, PATH._C5_PLAYERPATH, 0, 0)
PedFollowPath(gPlayer, PATH._C6_PLAYERPATH, 0, 0)
PedFollowPath(gPlayer, PATH._C7_PLAYERPATH, 0, 0)
PedFollowPath(gPlayer, PATH._C8_PLAYERPATH, 0, 0)
PedFollowPath(gPlayer, PATH._C9_PLAYERPATH, 0, 0)
PedFollowPath(gPlayer, PATH._CM_JIMMYWALKIN, 0, 0)
PedFollowPath(gPlayer, PATH._ENDCUTSCENEPATH, 0, 0)
PedFollowPath(gPlayer, PATH._GK_ENTERRACE, 0, 0, cbEnterTrack)
PedFollowPath(gPlayer, PATH._TB_PLAYERPATH01, 0, 2, CbPath01)
PedFollowPath(gPlayer, PATH._TB_PLAYERPATH02, 0, 2, CbPath02)
PedFollowPath(gPlayer, paths[pathNumber].path, 0, 3)
PedFollowPath(gPrefect1, PATH._6_03_ENDRUSSPATH, 0, 2)
PedFollowPath(gPrefect2, PATH._6_03_ENDEDGARPATH, 0, 2)
PedFollowPath(GreaserThief.id, GreaserThief.path, 0, 1, cbGreaserThief)
PedFollowPath(gRetirementTable.ped1, PATH._FULLPATHOFRETIREMENT, 1, 0, F_OrderlyCallback)
PedFollowPath(gRetirementTable.ped1, PATH._RIGHTOFRETIREMENT, 1, 0, F_OrderlyCallback)
PedFollowPath(gRetirementTable.ped2, PATH._LEFTOFRETIREMENT, 1, 0, F_OrderlyCallback)
PedFollowPath(gRetirementTable.ped2, PATH._RETOLDFOLKS1, 2, 0)
PedFollowPath(gRetirementTable.ped3, PATH._RETOLDFOLKS1, 2, 0)
PedFollowPath(gRetirementTable.ped4, PATH._RETOLDFOLKS3, 2, 0)
PedFollowPath(gRunnerId, PATH._4_06_DUFFELGUY, 0, 1)
PedFollowPath(gRussell, PATH._6_02_RUSSELLRUNAWAY, 0, 3, CB_RussellPath)
PedFollowPath(gRussell, PATH._6_03_ENDRUSSPATH, 0, 2)
PedFollowPath(gRussell, PATH._RUSSELLTOGATE, 0, 1, CB_RussellNIS)
PedFollowPath(gSecretary, PATH._1_01_SECPATH, 0, 0)
PedFollowPath(gSecretary, PATH._1_01_SECPATH, 0, 0, CB_SecPath)
PedFollowPath(gSecretary, PATH._SECRETARYOFFICEPATH, 2, 0)
PedFollowPath(gSleepingOrderly, PATH._5_03_1F_RECRM_ORDERLY2_PATH1, 2, 0)
PedFollowPath(gTablePeds[1].id, PATH._4_04_MAZPATHJK1, 2, 0, CB_JockSearchingMaze1)
PedFollowPath(gTablePeds[2].id, PATH._4_04_MAZPATHJK2, 2, 0, CB_JockSearchingMaze2)
PedFollowPath(gTablePeds[3].id, PATH._4_04_MAZPATHJK3, 2, 0, CB_JockSearchingMaze3)
PedFollowPath(gTablePeds[gCurrentJock].id, gCurrentPath, 0, 1, CB_JockReaper)
PedFollowPath(gTargetBoy, gPaths[math.random(1, 7)], 3, 1, CbTargetReach)
PedFollowPath(guy, PATH._2_05_FIGHTPATH, 0, 1)
PedFollowPath(guy.id, guy.path, 2, 1, guy.cbJack)
PedFollowPath(id, PATH._3_G3_ECS_LOLA, 0, 0)
PedFollowPath(idBucky, PATH._1_07_BUCKY_COWERS, 0, 1, cbBuckyCower, 2)
PedFollowPath(idBucky, PATH._1_07_PATH2, 0, 1, cbBuckyCower, 1)
PedFollowPath(idBucky, PATH._1_07_PATH3, 0, 1, cbBuckyCower, 1)
PedFollowPath(idBucky, PATH._1_07_SCNDPATH1, 0, 1, cbBuckyCower, 1)
PedFollowPath(idBucky, PATH._1_07_SCNDPATH2, 0, 1, cbBuckyCower, 1)
PedFollowPath(idBucky, PATH._1_07_THRDPATH1, 0, 1, cbBuckyCower, 1)
PedFollowPath(idBucky, PATH._1_07_THRDPATH2, 0, 1, cbBuckyCower, 1)
PedFollowPath(idBucky, PATH._1_07_THRDPATH3, 0, 1, cbBuckyCower, 1)
PedFollowPath(idBucky, PATH._1_07_TOGATEWAIT, 0, 1)
PedFollowPath(idBucky, PATH._1_07_TOTOOLBOX, 0, 1, CB_GrabWhatever, 1)
PedFollowPath(idBucky, PATH._1_07_TOTOOLBOXF, 0, 1, CB_GrabWhatever, 1)
PedFollowPath(idBurton, PATH._5_05_BURTONMAINPATH, 1, 2)
PedFollowPath(idBurton, PATH._5_05_BURTONPOOPED, 0, 2)
PedFollowPath(idBurton, PATH._5_05_BURTONRUNLAST, 0, 1, cbReachedEnd)
PedFollowPath(idBurton, PATH._5_05_CHECKPOT1, 0, 1, cbReachedEnd)
PedFollowPath(idCop, PATH._5_06_BIKEPATH, 0, 0, CbCopBike)
PedFollowPath(idDarby, PATH._2_B_DARBY_FLEE, 0, 2, CbDarbyRun)
PedFollowPath(idDO, idCurrentPath, 0, 3)
PedFollowPath(idDO, PATH._5_04_BIKE_ESCAPE_02, 0, 3)
PedFollowPath(idDO, PATH._5_04_BIKE_ESCAPE_03, 0, 3)
PedFollowPath(idDO, PATH._5_04_CHANGEROOMCHARGE, 0, 2, F_DropoutCharge)
PedFollowPath(idDO, PATH._5_04_DO_ESCAPE_GYM, 0, 3, CbDOEscape)
PedFollowPath(idDO, PATH._5_04_SCHOOL_ESCAPE, 0, 3)
PedFollowPath(idNemesis, PATH._1_04_NEMPATHTOBLEACHERS, 0, 0)
PedFollowPath(idPeter, PATH._2_04_PETEPATH, 0, 1)
PedFollowPath(idRussell, PATH._5_06_RUSSELLBIKE, 0, 0, CbRussellOnBike)
PedFollowPath(idRussell, PATH._5_06_RUSSELLBIKE, 0, 2, CbRussellCrashing)
PedFollowPath(idRussell, PATH._5_07_RUSSELLRUNCOPS, 0, 2)
PedFollowPath(idWorker, PATH._5_06_WORKERPATH, 0, 0)
PedFollowPath(idZoe, PATH._5_05_ZOECUT, 0, 1, cbReachedEnd)
PedFollowPath(idZoe, PATH._5_05_ZOEHIDE, 0, 1)
PedFollowPath(idZoe, PATH._5_05_ZOERUNAWAY, 0, 1, cbFacePlayer)
PedFollowPath(idZoe, PATH._5_07_ZOEPATH1, 0, 2)
PedFollowPath(idZoe, PATH._5_07_ZOEPATH2, 0, 2)
PedFollowPath(idZoe, PATH._5_07_ZOEPATH3, 0, 2)
PedFollowPath(idZoe, PATH._5_07_ZOEPATH4, 0, 2)
PedFollowPath(insultBoy, PATH._C7_SCENE3, 0, 1)
PedFollowPath(iPrincipal, PATH._C5_PRINCIPALPATH01, 1, 0)
PedFollowPath(item.ped, item.path, 1, 0)
PedFollowPath(kissGirl, PATH._C2_GIRLPATH, 0, 0)
PedFollowPath(librarian, PATH._5_01_LIBRARIANEND, 0, 0)
PedFollowPath(Librarian, PATH._LIBRARIANPATH, 2, 0)
PedFollowPath(lVictim[VictimCounter], tblVictimInfo[VictimCounter].PATH, 1, 0)
PedFollowPath(lVictim[VictimCounter], tblVictimInfo[VictimCounter].PATH, 1, 0, F_FinishedRide, tblVictimInfo[VictimCounter].PATHSTART)
PedFollowPath(mandy, PATH._5_04_BURTON_OUT, 0, 1, CbBurtonOut)
PedFollowPath(Mascot, PATH._1_09_MASCOTENTER, 0, 0, F_MascotDance)
PedFollowPath(Mascot, PATH._1_09_MASCOTENTER2, 0, 0, F_MascotDance2)
PedFollowPath(Mascot, PATH._1_09_MASCOTEXIT, 0, 1)
PedFollowPath(nEnemy, nPath, 0, nSpawnSpeed, callbackFunction)
PedFollowPath(NISPed, PATH._, 0, 2)
PedFollowPath(outroPedA, PATH._4_06_OPAEND_PATHA, 0, 0)
PedFollowPath(patrol.id, patrol.path, patrol.followType, patrol.pedSpeed)
PedFollowPath(ped, path, 0, 1, CB_JockReaper)
PedFollowPath(ped, path, 0, 1, cbAnnoy)
PedFollowPath(ped, path, followtype, 0)
PedFollowPath(ped, PATH._2_S05_SURPRISE, 0, 1, cbAnnoyMascot)
PedFollowPath(ped, PATH._BATHROOMLACKEYS, 0, 2, SexyGirlRunning)
PedFollowPath(ped, PATH._C3T_COUPLE1, 0, 0)
PedFollowPath(ped, PATH._C3T_COUPLE2, 0, 0)
PedFollowPath(ped, PATH._C3T_FATBOY, 0, 0)
PedFollowPath(ped, PATH._C3T_FLEE, 0, 3)
PedFollowPath(ped, PATH._CHAPTTRANS_FOLLOW1A, 0, 0)
PedFollowPath(ped, PATH._CHAPTTRANS_FOLLOW1B, 0, 0)
PedFollowPath(ped, PATH._CHAPTTRANS_FOLLOW2A, 0, 0)
PedFollowPath(ped, PATH._CHAPTTRANS_FOLLOW2B, 0, 0)
PedFollowPath(ped, PATH._CHAPTTRANS_FOLLOW3A, 0, 0)
PedFollowPath(ped, PATH._TESTAVOID101, 2, 0)
PedFollowPath(ped, PATH._TESTAVOID102, 2, 0)
PedFollowPath(ped, PATH._TESTAVOID201, 2, 0)
PedFollowPath(ped, PATH._TESTAVOID301, 2, 0)
PedFollowPath(ped, PATH._TESTAVOID401, 2, 0)
PedFollowPath(ped, PATH._TESTAVOID401, 2, 1)
PedFollowPath(ped1, PATH._3_05_HALRUN, 0, 2)
PedFollowPath(pedAlgie.id, PATH._1_05B_ALGIEFLEE, 0, 0)
PedFollowPath(pedAlgie.id, PATH._1_05B_ROUTEALGIELOCKER, 0, 1, F_routeAlgieLocker)
PedFollowPath(pedAlgie.id, PATH._1_05B_ROUTEALGIESTALL, 0, 1, F_routeAlgieStall)
PedFollowPath(pedAlgie.id, PATH._1_05B_ROUTEALGIESTALLTOSINK, 0, 1, F_routeAlgieStallToSink)
PedFollowPath(pedAlgie.id, PATH._1_05B_ROUTEFIRSTFLOORSTALL, 0, 1, F_routeFirstFloorStall)
PedFollowPath(pedAlgie.id, PATH._3_04_ALGIELEAVELOLAS, 0, 4, F_routeAlgieLeaveLolas)
PedFollowPath(pedAlgie.id, PATH._3_04_ALGIETRAPTRAP, 0, 4, F_routeAlgieTrapTrap)
PedFollowPath(pedAngieGym.id, PATH._4_01_GIRLSTOGYMLOCKERROOM, 0, 0, cbGirlsToGymLockerRoom)
PedFollowPath(pedAsianGirl.id, PATH._2_S06B_ROUTEGIRLS_B, 0, 0)
PedFollowPath(pedBathroomWierdo02.id, PATH._1_05B_ROUTEBATHROOMWIERDOS, 0, 1, F_routeBathroomWierdos)
PedFollowPath(pedBeatrice.id, PATH._2_S06B_BEATRICEPANIC, 0, 2, F_routeBeatricePanic)
PedFollowPath(pedBurton.id, PATH._1_11X2_BURTONTOSHIT, 0, 0, F_routeBurtonToShit)
PedFollowPath(pedBurton.id, PATH._2_S06_BURTONLEAVE, 0, 0, F_routeBurtonLeave)
PedFollowPath(pedChad.id, PATH._3_04_BIKEESCAPE, 0, 4, F_routeBikeEscape)
PedFollowPath(pedChad.id, PATH._3_04_BIKEESCAPE02, 0, 4, F_routeBikeEscape02)
PedFollowPath(pedChad.id, PATH._3_04_BIKEESCAPE03, 0, 4, F_routeBikeEscape03)
PedFollowPath(pedChad.id, PATH._3_04_BIKEESCAPE04, 0, 4, F_routeBikeEscape04)
PedFollowPath(pedChristyDorm.id, PATH._4_01_CHRISTYLAUNDRY, 1, 0)
PedFollowPath(pedChristyGym.id, PATH._4_01_GIRLSTOGYMLOCKERROOM, 0, 0, cbGirlsToGymLockerRoom)
PedFollowPath(pedConstantine.id, PATH._1_02B_BULLYFLEE, 0, 1)
PedFollowPath(pedCornelius.id, PATH._3_04_CORNLEAVE, 0, 1, F_routeCornLeave)
PedFollowPath(pedCutBo.id, PATH._4_05CUT_BO, 0, 2, F_cutPathBo)
PedFollowPath(pedCutBo.id, PATH._4_05CUT_JOCKSCHASE02, 0, 2)
PedFollowPath(pedCutCasey.id, PATH._4_05CUT_CASEY, 0, 2, F_cutPathCasey)
PedFollowPath(pedCutCasey.id, PATH._4_05CUT_JOCKSCHASE, 0, 2)
PedFollowPath(pedCutDan.id, PATH._4_05CUT_JOCKSCHASE03, 0, 2)
PedFollowPath(pedCutJuri.id, PATH._4_05CUT_JOCKSCHASE03, 0, 2)
PedFollowPath(pedCutJuri.id, PATH._4_05CUT_JURI, 0, 2, F_cutPathJuri)
PedFollowPath(pedCutKirby.id, PATH._4_05CUT_JOCKSCHASE, 0, 2)
PedFollowPath(pedDog.id, PATH._1_11X2_DOG01, 1, 1)
PedFollowPath(pedDog.id, PATH._1_11X2_DOGGARDEN, 1, 2)
PedFollowPath(pedEarnest.id, PATH._4_B1_NIS_01, 0, 1)
PedFollowPath(pedEarnest.id, PATH._4_B1_NIS_02, 0, 1)
PedFollowPath(pedEarnest.id, PATH._4_B1_TURRETPATH, 0, 0)
PedFollowPath(pedEunice.id, PATH._1_02B_PATHEUNICE, 0, 0)
PedFollowPath(pedEunice.id, PATH._1_05B_ROUTEBATHROOMWIERDOS, 0, 1, F_routeBathroomWierdos)
PedFollowPath(pedEunice.id, PATH._2_S06B_ROUTEGIRLS_E, 0, 0, F_routeGirls_E, 4)
PedFollowPath(pedEunice.id, PATH._4_01_EUNICEDOWNSTAIRS, 0, 0, cbEuniceDownstairs)
PedFollowPath(pedEunice.id, PATH._4_01_EUNICEUPSTAIRS, 0, 0, cbEuniceUpstairs)
PedFollowPath(pedFirstBully.id, PATH._1_05_ROUTEBULLYFLEENEW, 0, 2, F_routeBullyFleeNew, 1)
PedFollowPath(pedFirstBully.id, PATH._1_05_ROUTEFIRSTBULLY, 0, 0, F_routeFirstBully)
PedFollowPath(pedGalloway.id, PATH._3_S03_GALLOWAY, 0, 0)
PedFollowPath(pedGary.id, PATH._1_02B_GARYTOEUNICE, 0, 0)
PedFollowPath(pedGary.id, PATH._1_11X2_GARYHIDE, 0, 2)
PedFollowPath(pedGary.id, PATH._1_11X2_GARYLIGHTPOOP, 0, 1, F_routeGaryLightPoop)
PedFollowPath(pedGary.id, PATH._3_04_JOHNNYLEAVE, 0, 2)
PedFollowPath(pedGord, PATH._2_07_GORD_RUN_TO_BEACH, 0, 2, F_GordToBeach)
PedFollowPath(pedGord, PATH._2_07_LIGHTHOUSE_PATH, 0, 2, F_GordIsInPosition)
PedFollowPath(pedGreaser01.id, PATH._3_04_HILL01, 0, 1)
PedFollowPath(pedGreaser01.id, PATH._3_04_JOHNNYLEAVE, 0, 2)
PedFollowPath(pedGreaser01.id, PATH._3_04_STG3INTROGB1, 0, 1, F_routeStg3CutGB01)
PedFollowPath(pedGreaser02.id, PATH._3_04_JOHNNYLEAVE, 0, 2)
PedFollowPath(pedGreaser02.id, PATH._3_04_STG3INTROGB2, 0, 1, F_routeStg3CutGB02)
PedFollowPath(pedGreaser02.id, PATH._6_02G_LAUNDRY, 0, 1, F_routeLaundry)
PedFollowPath(pedGreaser03.id, PATH._6_02G_LAUNDRY, 0, 1, F_routeLaundry)
PedFollowPath(pedGreaser03.id, PATH._6_02G_LOOP, 1, 1)
PedFollowPath(pedGreaser04.id, PATH._3_04_HILL02, 0, 1)
PedFollowPath(pedGreaserA01.id, PATH._ROUTEGREASER01, 0, 1, F_routeGreaserA01)
PedFollowPath(pedGreaserA02.id, PATH._ROUTEGREASER02, 0, 1, F_routeGreaserA02)
PedFollowPath(pedGreaserA03.id, PATH._ROUTEGREASER03, 0, 1, F_routeGreaserA03)
PedFollowPath(pedGreaserA03.id, PATH._ROUTEGREASER03b, 0, 1, F_routeGreaserA03b)
PedFollowPath(pedGreaserB01.id, PATH._ROUTEGREASERSSOUTH, 0, 1, F_routeGreasersNorth)
PedFollowPath(pedGreaserB02.id, PATH._ROUTEGREASERSSOUTH, 0, 1, F_routeGreasersNorth)
PedFollowPath(pedGreaserB03.id, PATH._ROUTEGREASERSSOUTH, 0, 1, F_routeGreasersNorth)
PedFollowPath(pedGreaserC01.id, PATH._ROUTEGREASERSNORTH, 0, 1, F_routeGreasersNorth)
PedFollowPath(pedGreaserC02.id, PATH._ROUTEGREASERSNORTH, 0, 1, F_routeGreasersNorth)
PedFollowPath(pedGreaserD01.id, PATH._ROUTEGREASERSNORTH, 0, 1, F_routeGreasersNorth)
PedFollowPath(pedGreaserD02.id, PATH._ROUTEGREASERSSOUTH, 0, 1, F_routeGreasersNorth)
PedFollowPath(pedGreaserE01.id, PATH._ROUTEGREASERSNORTH, 0, 1, F_routeGreasersNorth)
PedFollowPath(pedGreaserE02.id, PATH._ROUTEGREASERSNORTH, 0, 1, F_routeGreasersNorth)
PedFollowPath(pedHeadmistress, PATH._GDORM_HEADMISTRESS, 1, 0, F_routeGdormHeadmistress)
PedFollowPath(pedHeadmistress, PATH._GDORM_HEADMISTRESS, 1, 0, F_routeGdormHeadmistress, 16)
PedFollowPath(pedHeadmistress, PATH._GDORM_HEADMISTRESS, 1, 0, F_routeGdormHeadmistress, gLastHeadNode + 1)
PedFollowPath(pedJockBathroomSecondFloor01.id, PATH._1_05B_ROUTESECONDFLOORAMBUSH, 0, 1, F_routeSecondFloorAmbush)
PedFollowPath(pedJockBathroomSecondFloor02.id, PATH._1_05B_ROUTESECONDFLOORAMBUSH, 0, 1, F_routeSecondFloorAmbush)
PedFollowPath(pedJockSprint01.id, PATH._4_05_LAPCLOCKWISE, 1, 1)
PedFollowPath(pedJohnny.id, PATH._3_04_JOHNNYLEAVE, 0, 2)
PedFollowPath(pedLola.id, PATH._ENDLOLARUN, 0, 1)
PedFollowPath(pedLola.id, PATH._INTROLOLARIDEOFF, 0, 1, F_IntroLolaRideOff)
PedFollowPath(pedLola.id, PATH._ROUTELOLARUN, 0, 1, F_routeLolaRun)
PedFollowPath(pedMandyGym.id, PATH._4_01_MANDYEXITGYM, 0, 1, cbMandyExitGym)
PedFollowPath(pedMandyShower.id, PATH._4_01_MANDYEXITSHOWER, 0, 0)
PedFollowPath(pedMascot.id, PATH._4_05CUT_JIMMYTOPOOL, 0, 1)
PedFollowPath(pedMascot.id, PATH._4_05CUT_MASCOTCHASE, 0, 2)
PedFollowPath(pedPete.id, PATH._1_11X2_PETEFLEE, 0, 1)
PedFollowPath(pedPinky.id, PATH._2_G2_INTROPINKY, 0, 1, F_routeIntroPinky)
PedFollowPath(pedPinky.id, PATH._2_G2_PINKYWANTSBEAR, 0, 1)
PedFollowPath(pedPinkyGym.id, PATH._4_01_GIRLSTOGYMLOCKERROOM, 0, 1, cbGirlsToGymLockerRoom)
PedFollowPath(pedPoolPrep.id, PATH._3_S03_PREPLEAVEPOOL, 0, 0, F_CleanupPoopPrep)
PedFollowPath(pedPoolPrep.id, PATH._3_S03_PREPPOOL, 0, 0)
PedFollowPath(pedPrefectKarl.id, PATH._1_02B_KARLPATH, 0, 1)
PedFollowPath(pedPrep.id, PATH._3_S03_DEALDONEPREPLEAVE, 0, 0)
PedFollowPath(pedPrep.id, PATH._3_S03_PREPALLEY01, 0, 0)
PedFollowPath(pedSecondBully.id, PATH._1_05_ROUTESECONDBULLY, 0, 0, F_routeSecondBully)
PedFollowPath(pedStg1Jock.id, PATH._2_S06_STG1BUSTED, 0, 0, F_routeBusted)
PedFollowPath(pedStg1Pref.id, PATH._2_S06_STG1BUSTED, 0, 0, F_routeBusted)
PedFollowPath(pedStg3Girl04.id, PATH._2_S06_GIRLFREAK01, 2, 1)
PedFollowPath(pedStg3Girl05.id, PATH._2_S06_GIRLFREAK02, 2, 2)
PedFollowPath(pedStrikerJock01.id, PATH._2_G2_INTROJOCK1, 0, 0, F_routeIntroJock1)
PedFollowPath(pedStrikerJock02.id, PATH._2_G2_INTROJOCK2, 0, 0, F_routeIntroJock2)
PedFollowPath(pedTad.id, PATH._ENDTADRUN, 0, 1)
PedFollowPath(pedTad.id, PATH._ROUTETAD, 0, 1, F_routeTad)
PedFollowPath(pedZoe.id, PATH._5_G5_ZOE2WAREHOUSE, 0, 3)
PedFollowPath(pedZoe.id, PATH._5_G5_ZOE_TO_STAIRS2, 0, 3)
PedFollowPath(pedZoe.id, PATH._5_G5_ZOE_TO_STAIRS3, 0, 3)
PedFollowPath(pedZoe.id, PATH._5_G5_ZOE_TO_STAIRS4, 0, 3)
PedFollowPath(pedZoe.id, PATH._5_G5_ZOEGODOWNSTAIRS, 0, 3)
PedFollowPath(pedZoe.id, PATH._5_G5_ZOETOEXIT, 0, 2, cbZoeInPlantRoom)
PedFollowPath(perv1, PATH._4G4_PERV1, 0, 0, CB_PedArrivedAtNode)
PedFollowPath(perv2, PATH._4G4_PERV1, 0, 0, CB_PedArrivedAtNode)
PedFollowPath(pete, PATH._C3T_PETEY, 0, 0)
PedFollowPath(phillips, PATH._1_S01_PHILLIPS_PATH, 0, 0)
PedFollowPath(prefect, PATH._PREFECTPATH, 2, 0, PrefectPatrolling, 1)
PedFollowPath(Prefect1, PATH._PUNISHTEST_PATH2, 0, 1)
PedFollowPath(Prefect1, PATH._PUNISHTEST_PATH2, 0, 1, F_CallBack)
PedFollowPath(Prefect1, PATH._PUNISHTEST_PATH2, 2)
PedFollowPath(shared.gBif, PATH._PREPHS_OPENDOORPATH, 0, 0, CB_BifOpeningDoor)
PedFollowPath(shared.gEdnaID, PATH._AMBLUNCHLADYPATH, 1, 0, F_CafCook)
PedFollowPath(shared.gSecretaryID, PATH._SECRETARYOFFICEPATH, 2, 0)
PedFollowPath(sheet1Bruiser, PATH._2_S04_SBPATH, 0, 0, cbBruiserWalk)
PedFollowPath(sheet4Guard, path, 0, 3, cbSheet4ReachedPoint)
PedFollowPath(spud_nerd, PATH._4_02_SPUD_PATH, 0, 2)
PedFollowPath(student, PATH._CAFPATH1, 0, 0, F_CafAmb, pathnode)
PedFollowPath(student, PATH._CAFPATH2, 0, 0, F_CafAmb2, pathnode)
PedFollowPath(Student01, PATH._CM_PSTUDENT01, 0, 0)
PedFollowPath(Student02, PATH._CM_PSTUDENT02, 0, 0)
PedFollowPath(student1, PATH._C4_STUDENT01, 0, 0)
PedFollowPath(student1, PATH._C7_STUDENT1, 0, 0)
PedFollowPath(student1, PATH._C8_STUDENTPATH1, 0, 0)
PedFollowPath(student1, PATH._C9_STUDENT1, 0, 0)
PedFollowPath(student2, PATH._C4_STUDENT02, 0, 0)
PedFollowPath(student2, PATH._C7_STUDENT2, 0, 0)
PedFollowPath(student2, PATH._C8_STUDENTPATH2, 0, 0)
PedFollowPath(student2, PATH._C9_STUDENT2, 0, 0)
PedFollowPath(student3, PATH._C7_STUDENT3, 0, 0)
PedFollowPath(student3, PATH._C8_STUDENTPATH3, 0, 0)
PedFollowPath(student3, PATH._C9_STUDENT3, 0, 0)
PedFollowPath(tableEntry.id, tableEntry.path, 1, 1)
PedFollowPath(tbl.id, tbl.path, 2, 1, tbl.cbJack)
PedFollowPath(tblCutscenePed.lola.id, PATH._3_G3_ECS_LOLA, 0, 0, F_LolaCallback)
PedFollowPath(tblGuardPaths[4].id, PATH._5_05_MEAT04, 3, 0)
PedFollowPath(tblPed.id, tblPed.path, 2, 0)
PedFollowPath(tblRaceInfo.race.countdown_ped.id, PATH._2_04_NIS_END_WALK, 0, 0)
PedFollowPath(tblTad.id, tblTad.roomToInvestigate.window.pathTo, 0, 1, cbWindowEndPath)
PedFollowPath(teacher, PATH._2_S05_TEACHERENTERPATH, 0, 2)
PedFollowPath(tempGirl01, PATH._6_02G_GIRLFLEE, 0, 1, F_GirlFlee)
PedFollowPath(tempGirl02, PATH._6_02G_GIRLFLEE, 0, 1, F_GirlFlee)
PedFollowPath(tempGirl03, PATH._6_02G_GIRLFLEE, 0, 1, F_GirlFlee)
PedFollowPath(testAuthority.id, testAuthority.path, 2, 0)
PedFollowPath(testPed[1].id, testPed[1].path, testPed[1].followType, 0)
PedFollowPath(testPed[1].id, testPed[1].path, testPed[1].followType, 1)
PedFollowPath(testPed[1].id, testPed[1].path, testPed[1].followType, 2)
PedFollowPath(testPed[1].id, testPed[1].pathCircular, 1, 2)
PedFollowPath(testPed[1].id, testPed[1].pathToAndFro, 2, 2)
PedFollowPath(testPed[1].id, testPed[1].pathToEnd, 0, 2)
PedFollowPath(testPed[2].id, testPed[1].path, testPed[1].followType, 0)
PedFollowPath(testPed[2].id, testPed[1].path, testPed[1].followType, 1)
PedFollowPath(testPed[2].id, testPed[1].path, testPed[1].followType, 2)
PedFollowPath(watts, PATH._2_S05_DINWATTSSIT, 0, 0, F_CBSitDown)
PedFollowPath,
sub esp, 0xC
push ebx
push ebp
push esi
push edi
mov edi, dword ptr [esp+0x20]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x15B
push 0x1
push edi
call LuaParam::GetInt
push 0x2
push edi
mov ebx, eax
call LuaParam::GetInt
mov ecx, dword ptr [0xD13CB4]
add esp, 0x10
push ebx
mov dword ptr [esp+0x18], eax
call 0x5ED3A0
mov ebp, eax
test ebp, ebp
mov dword ptr [esp+0x18], ebp
jz 0x128
mov ecx, ebp
call 0x5EC670
test eax, eax
jz 0x119
mov ecx, ebp
call 0x5EC670
cmp eax, 0x1
jnz 0xD
cmp dword ptr [esp+0x14], 0x3
jnz 0x102
push edi
call 0x73AEA0
add esp, 0x4
cmp eax, 0x6
setnl al
test al, al
mov byte ptr [esp+0x13], al
jnz 0x1C
lea ebp, ptr [esi+0x5F0]
mov ecx, ebp
call 0x5CF7D0
test eax, eax
jz 0xB
cmp dword ptr [eax+0x10], ebx
jnz 0x6
mov esi, eax
jmp 0x74
mov ecx, dword ptr [esi+0x2E0]
add ecx, 0x290
call 0x5F40A0
lea ebp, ptr [esi+0x5F0]
mov ecx, ebp
call 0x470350
push 0x40
call 0x5EEAA0
add esp, 0x4
test eax, eax
jz 0xE
push esi
mov ecx, eax
call 0x46FD70
mov esi, eax
jmp 0x4
xor esi, esi
push esi
mov ecx, ebp
call 0x471390
cmp byte ptr [esp+0x13], 0x0
mov dword ptr [esi+0x10], ebx
jz 0x21
push 0x5
push edi
call LuaParam::GetInt
mov ebx, eax
add esp, 0x8
test ebx, ebx
jl 0xB
mov ecx, dword ptr [esp+0x18]
call 0x5EC670
mov dword ptr [esi+0x14], ebx
jmp 0x9
mov dword ptr [esi+0x14], 0x0
push esi
mov ecx, ebp
call 0x471D30
fld st, dword ptr [0x911E30]
mov eax, dword ptr [esp+0x14]
push ecx
fstp dword ptr [esp], st
push 0x3
push edi
mov dword ptr [esi+0x24], eax
call 0x5C62E0
fstp dword ptr [esi+0x3C], st
add esp, 0xC
push edi
mov ecx, 0xD02850
call 0x5DBD50
lea ecx, ptr [esi+0x2C]
push ecx
push 0x4
push edi
call 0x5DA060
lea edx, ptr [esi+0x30]
push edx
push 0x6
push edi
call 0x5DA060
add esi, 0x34
push esi
push 0x7
push edi
call 0x5DA060
add esp, 0x24
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xC
ret
-- never used
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
jz 0xD
lea ecx, ptr [eax+0x358]
call 0x499A40
xor eax, eax
ret
CLIENT
Returns a game ped given a sync id, or -1 if no valid game ped is associated with the sync id.
CLIENT
Returns a game ped given a sync ped, or -1 if no valid game ped is associated with the sync ped.
CLIENT
Returns the action node a ped is playing. All nodes will be in the format #XXXXXXXX unless a node name is found in the translations table.
CLIENT
Returns a string representing the action node a ped is playing. Use GetActionNodeFromData to get an actual node from this data.
CLIENT
Returns the action tree root and action tree file override used by a ped. If the ped is using their default action tree, two empty strings are returned.
if PedGetAllyFollower(gPlayer) == gGary then
if PedGetAllyFollower(gPlayer) == gThad then
if PedHasAlly(gPlayer) and PedGetAllyFollower(gPlayer) == Receiver1 then
local follower = PedGetAllyFollower(gPlayer)
local followerFollower = PedGetAllyFollower(Crazy01)
local followerFollower = PedGetAllyFollower(Crazy02)
local ped = PedGetAllyFollower(gPlayer)
local pedID = PedGetAllyFollower(gPlayer)
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
jz 0xC
mov eax, dword ptr [eax+0x2F8]
test eax, eax
jnz 0x15
xor eax, eax
push eax
push esi
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
pop esi
ret
mov edx, dword ptr [eax]
mov ecx, eax
mov eax, dword ptr [edx+0xAC]
call 0x5CDA3E
push eax
push esi
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
pop esi
ret
-- never used
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
jz 0xC
mov eax, dword ptr [eax+0x2F4]
test eax, eax
jnz 0x15
xor eax, eax
push eax
push esi
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
pop esi
ret
mov edx, dword ptr [eax]
mov ecx, eax
mov eax, dword ptr [edx+0xAC]
call 0x5CD9DE
push eax
push esi
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
pop esi
ret
ammo = PedGetAmmoCount(gPlayer, bGun)
elseif gOutOfMarbles and (PlayerIsInAreaXYZ(mrx, mry, mrz, 1, 0) or PedGetAmmoCount(gPlayer, 349) > 0) then
elseif PedGetAmmoCount(gPlayer, 397) == 0 and PedHasWeapon(gPlayer, 397) then
if (bLitFountain and GetTimer() >= gLitTime + 17000 or bDroppedIt and GetTimer() >= gDropTime + 15000) and PedGetAmmoCount(gPlayer, 397) == 0 and not bOutOfAmmo then
if 5 > PedGetAmmoCount(gPlayer, 301) then
if bDroppedIt and GetTimer() >= gDropTime + 10000 and PedGetAmmoCount(gPlayer, 372) == 0 and not bOutOfAmmo then
if IsMissionCompleated("C_Chem_2") and 5 > PedGetAmmoCount(gPlayer, 309) then
if IsMissionCompleated("C_Chem_3") and PedGetAmmoCount(gPlayer, 394) < 5 then
if IsMissionCompleated("C_Chem_4") and PlayerHasItem(307) and PedGetAmmoCount(gPlayer, 308) < 12 then
if not bOutOfEggs and PedGetAmmoCount(gPlayer, 312) == 0 then
if not gOutOfMarbles and PedGetAmmoCount(gPlayer, 349) <= 0 then
if PedGetAmmoCount(gPlayer, 301) == 0 and not bOutOfAmmo then
if PedGetAmmoCount(gPlayer, 301) == 0 and PlayerIsInAreaObject(tblPrank[4].id, 2, 1, 0) and IsButtonPressed(7, 0) and IsButtonPressed(10, 0) and bGiveWeapon then
if PedGetAmmoCount(gPlayer, 309) == 0 and not bOutOfAmmo then
if PedGetAmmoCount(gPlayer, 309) == 0 and PlayerIsInAreaObject(tblPrank[8].id, 2, 1, 0) and IsButtonPressed(7, 0) and IsButtonPressed(10, 0) and bGiveWeapon then
if PedGetAmmoCount(gPlayer, 312) == 0 and not bOutOfAmmo then
if PedGetAmmoCount(gPlayer, 312) == 0 and PlayerIsInAreaObject(tblPrank[2].id, 2, 1, 0) and IsButtonPressed(7, 0) and IsButtonPressed(10, 0) and bGiveWeapon then
if PedGetAmmoCount(gPlayer, 312) == 0 then
if PedGetAmmoCount(gPlayer, 321) < 3 then
if PedGetAmmoCount(gPlayer, 349) == 0 and not bOutOfAmmo then
if PedGetAmmoCount(gPlayer, 349) == 0 and PlayerIsInAreaObject(tblPrank[7].id, 2, 1, 0) and IsButtonPressed(7, 0) and IsButtonPressed(10, 0) and bGiveWeapon then
if PedGetAmmoCount(gPlayer, 372) == 0 and PlayerIsInAreaObject(tblPrank[6].id, 2, 1, 0) and IsButtonPressed(7, 0) and IsButtonPressed(10, 0) and bGiveWeapon then
if PedGetAmmoCount(gPlayer, 394) == 0 and not bOutOfAmmo then
if PedGetAmmoCount(gPlayer, 394) == 0 and PlayerIsInAreaObject(tblPrank[5].id, 2, 1, 0) and IsButtonPressed(7, 0) and IsButtonPressed(10, 0) and bGiveWeapon then
if PedGetAmmoCount(ped.id, 301) == 0 then
if PedGetAmmoCount(TestPed, 312) < 2 then
PedSetWeaponNow(gPlayer, gPlayersPreviousWeapon, PedGetAmmoCount(gPlayer, gPlayersPreviousWeapon))
PlayerSetWeapon(301, PedGetAmmoCount(gPlayer, 301) + 1)
shared.gAmmoBeforeCut = PedGetAmmoCount(gPlayer, shared.gWeaponBeforeCut)
push ebx
mov ebx, dword ptr [esp+0x8]
push esi
push edi
push 0x0
push ebx
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
xor edi, edi
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x1B
push 0x1
push ebx
call LuaParam::GetInt
mov ecx, dword ptr [esi+0x1C4]
add esp, 0x8
push eax
call 0x45CF40
mov edi, eax
push edi
push ebx
call LuaParam::PushInt
add esp, 0x8
pop edi
pop esi
mov eax, 0x1
pop ebx
ret
CLIENT
Returns the controller being used to control this ped, or -1 if none.
--print("+++++++After Multiplier1 ==" .. PedGetDamageGivenMultiplier(gPlayer, 2))
--print("+++++++After Multiplier2 ==" .. PedGetDamageGivenMultiplier(gPlayer, 2))
--print("+++++++After Multiplier3 ==" .. PedGetDamageGivenMultiplier(gPlayer, 2))
--print("+++++++After Multiplier4 ==" .. PedGetDamageGivenMultiplier(gPlayer, 2))
--print("+++++++Before Multiplier ==" .. PedGetDamageGivenMultiplier(gPlayer, 2))
elseif PedGetDamageGivenMultiplier(gPlayer, 2) <= 1.075 then
elseif PedGetDamageGivenMultiplier(gPlayer, 2) <= 1.15 then
elseif PedGetDamageGivenMultiplier(gPlayer, 2) <= 1.225 then
if PedGetDamageGivenMultiplier(gPlayer, 2) <= 1 then
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jnz 0x5
pop edi
pop esi
ret
push 0x1
push edi
call LuaParam::GetInt
fld st, dword ptr [esi+eax*4+0x1CCC]
add esp, 0x4
fstp dword ptr [esp], st
push edi
call LuaParam::PushFloat
add esp, 0x8
pop edi
mov eax, 0x1
pop esi
ret
-- never used
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jnz 0x5
pop edi
pop esi
ret
push 0x1
push edi
call LuaParam::GetInt
fld st, dword ptr [esi+eax*4+0x1CF4]
add esp, 0x4
fstp dword ptr [esp], st
push edi
call LuaParam::PushFloat
add esp, 0x8
pop edi
mov eax, 0x1
pop esi
ret
CLIENT
Returns the direction a ped is going. The direction is specified by 2 coordinates that represent a direction relative to the world.
CLIENT
Returns true if the ped is affected by gravity. The typo is intentional to stay consistent with PedSetEffectedByGravity.
-- never used
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
push 0x1
push esi
mov edi, eax
call LuaParam::GetInt
add esp, 0xC
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
push 0x0
push 0x0
push 0x0
push eax
lea eax, ptr [esp+0x18]
push eax
lea ecx, ptr [edi+0xB44]
call 0x48EBC0
mov ecx, dword ptr [eax]
push ecx
push esi
call LuaParam::PushInt
add esp, 0x8
pop edi
mov eax, 0x1
pop esi
pop ecx
ret
--print("Setting to Hate Player... " .. PedGetFaction(dataTable[1].id), 2)
elseif PedIsValid(entry) and PedGetFaction(entry) == 1 then
if FoundPed ~= -1 and not PedHasPOI(FoundPed) and PedIsOnScreen(FoundPed) and PedGetFaction(FoundPed) ~= (8 or PedGetFaction(FoundPed) ~= 0 or PedGetFaction(FoundPed) ~= 7) then
if PedGetFaction(dataTable[1].id) == 2 then
local faction = PedGetFaction(Walker)
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
or ecx, 0xFFFFFFFF
test eax, eax
jz 0x8
mov ecx, dword ptr [eax+0x1310]
push ecx
push esi
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
pop esi
ret
--print("Player is in area?", tostring(PedGetFlag(gPlayer, 1)))
flagState = PedGetFlag(gPlayer, 108)
if not bActive and PedGetFlag(ScenarioPed, 110) == false then
if not bTakeMeHome and PedGetFlag(ScenarioPed, 110) == false then
if not gEdnaAfterPlayer and not PedGetFlag(gLackey[8].ped, 33) and (gTurnEdnaIntoStealth or not PedCanSeeObject(gLackey[8].ped, gPlayer, 3)) then
if not IsMissionCompleated("BUSTCOPS") and not PedGetFlag(gPlayer, 103) and not PedGetFlag(gPlayer, 104) then
if not IsMissionCompleated("LOSEWEAPONS") and (PedGetFlag(gPlayer, 103) or PedGetFlag(gPlayer, 104)) then
if not PedGetFlag(gLackey[8].ped, 33) and not gTurnEdnaIntoStealth then
if PedGetFlag(gPlayer, 103) or PedGetFlag(gPlayer, 104) then
if PedGetFlag(ScenarioPed, 110) == false then
if PedIsInAreaObject(gPlayer, Beatrice, 2, 3, 0) and PedGetFlag(gPlayer, 1) then
if PedIsInAreaObject(gPlayer, gSpazzMan, 2, 1.5, 0) and PedGetFlag(gPlayer, 1) then
if PedIsInAreaObject(gPlayer, Receiver1, 2, 1.5, 0) and PedGetFlag(gPlayer, 1) then
if PedIsInAreaObject(gPlayer, Receiver2, 2, 1.5, 0) and PedGetFlag(gPlayer, 1) then
if PedIsInAreaObject(gPlayer, Receiver3, 2, 1.5, 0) and PedGetFlag(gPlayer, 1) then
if PedIsInAreaObject(gPlayer, ScenarioPed, 2, 1.5, 0) and PedGetFlag(gPlayer, 1) then
if PedIsInAreaXYZ(gPlayer, x, y, z, 0.25, 0) and PedGetFlag(gPlayer, 31) == true then
if PedIsValid(Receiver1) and PedIsInAreaObject(gPlayer, Receiver1, 2, 1.5, 0) and PedGetFlag(gPlayer, 1) then
if PedIsValid(Receiver2) and PedIsInAreaObject(gPlayer, Receiver2, 2, 1.5, 0) and PedGetFlag(gPlayer, 1) then
if PedIsValid(Receiver3) and PedIsInAreaObject(gPlayer, Receiver3, 2, 1.5, 0) and PedGetFlag(gPlayer, 1) then
if PedIsValid(ScenarioPed) == true and AreaGetVisible() == 0 and PedGetFlag(ScenarioPed, 110) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedGetFlag(ScenarioPed, 110) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and (AreaGetVisible() == 2 or AreaGetVisible() == 8) and OutOfRange == false and bFailDueToLackOfRoll == false then
if PedIsValid(ScenarioPed) == true and PedGetFlag(ScenarioPed, 110) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and bAlarmAlreadyOn == false and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedGetFlag(ScenarioPed, 110) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and bSpotted == false and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedGetFlag(ScenarioPed, 110) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and F_CheckIfPlayerHasEggs() == true and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedGetFlag(ScenarioPed, 110) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and leftArea == false and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedGetFlag(ScenarioPed, 110) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedGetFlag(ScenarioPed, 110) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(gPlayer) == false and PedIsDead(ScenarioPed) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedGetFlag(ScenarioPed, 110) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(ScenarioPed) == false and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and F_CheckIfPlayerHasChocolates() == true and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedGetFlag(ScenarioPed, 110) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(ScenarioPed) == false and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedGetFlag(ScenarioPed, 110) == true and PedIsDead(ScenarioPed) == false and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedGetWhoHitMeLast(ScenarioPed) ~= gPlayer and PedGetFlag(ScenarioPed, 110) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and F_CheckIfPlayerHasCherryBomb() == true and shared.gBusTransition == nil and OutOfRange == false then
if phillips and PedIsValid(phillips) and PlayerIsInAreaObject(phillips, 2, 3.5, 0) and PedGetFlag(gPlayer, 1) then
if PlayerIsInTrigger(TRIGGER._1_10_CROUCHHINT) and not PedGetFlag(gPlayer, 3) then
push esi
mov esi, dword ptr [esp+0x8]
push edi
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov edi, eax
add esp, 0x8
test edi, edi
jnz 0x5
pop edi
pop esi
ret
push 0x1
push esi
call LuaParam::GetInt
cmp dword ptr [edi+eax*4+0x1314], 0x0
lea eax, ptr [edi+eax*4+0x1314]
setnz al
push eax
push esi
call LuaParam::PushBool
add esp, 0x10
pop edi
mov eax, 0x1
pop esi
ret
if PedGetGrappleTargetPed(gPlayer) == -1 then
pGrapplePed = PedGetGrappleTargetPed(PedID)
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
jnz 0x4
pop esi
ret
mov eax, dword ptr [eax+0x155C]
or ecx, 0xFFFFFFFF
test eax, eax
jz 0x10
mov edx, dword ptr [eax]
mov ecx, eax
mov eax, dword ptr [edx+0xAC]
call 0x5CB810
mov ecx, eax
push ecx
push esi
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
pop esi
ret
elseif PedGetHeading(gJV_OnBike) < -1.5707964 and PedGetHeading(gJV_OnBike) >= -3.1415927 then
elseif PedGetHeading(gJV_OnBike) < -3.1415927 and PedGetHeading(gJV_OnBike) >= -4.712389 then
elseif PedGetHeading(gJV_OnBike) < -4.712389 then
elseif PedGetHeading(gJV_OnBike) >= 0 and PedGetHeading(gJV_OnBike) < 1.5707964 then
elseif PedGetHeading(gJV_OnBike) >= 1.5707964 and PedGetHeading(gJV_OnBike) < 3.1415927 then
elseif PedGetHeading(gJV_OnBike) >= 3.1415927 and PedGetHeading(gJV_OnBike) < 4.712389 then
elseif PedGetHeading(gJV_OnBike) >= 4.712389 then
heading = PedGetHeading(gPlayer)
if PedGetHeading(gJV_OnBike) < 0 and PedGetHeading(gJV_OnBike) >= -1.5707964 then
local h = PedGetHeading(gPlayer) + math.pi / 2
local hdg = PedGetHeading(gGary)
local head = PedGetHeading(ped) + 180
local head = PedGetHeading(Thug) + 180
local heading = PedGetHeading(gPlayer)
playerHeading = PedGetHeading(gPlayer)
VehicleFaceHeading(vehicle, PedGetHeading(curPed))
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
jz 0x1C
fld st, dword ptr [eax+0x1700]
push ecx
fstp dword ptr [esp], st
push esi
call LuaParam::PushFloat
add esp, 0x8
mov eax, 0x1
pop esi
ret
xor eax, eax
pop esi
ret
question_x, question_y, question_z = PedGetHeadPos(ped.id)
x, y, z = PedGetHeadPos(info)
x1, y1, z1 = PedGetHeadPos(Objectives[i].id)
sub esp, 0xC
push esi
mov esi, dword ptr [esp+0x14]
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x8
cmp eax, 0xFFFFFFFF
jz 0x38
push ecx
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
lea ecx, ptr [esp+0x4]
push ecx
lea ecx, ptr [eax+0xA64]
call 0x48D020
push eax
push esi
call LuaParam::PushVector
mov eax, 0x3
add esp, 0x8
pop esi
add esp, 0xC
ret
fldz
lea edx, ptr [esp+0x4]
fst dword ptr [esp+0x4], st
push edx
fst dword ptr [esp+0xC], st
push esi
fstp dword ptr [esp+0x14], st
call LuaParam::PushVector
add esp, 0x8
mov eax, 0x3
pop esi
add esp, 0xC
ret
--print("RUSSEL NEW HEALTH", PedGetHealth(gRussell.id))
--print("RUSSELL's health: ", PedGetHealth(gRussell))
--print("WTF IS THE PED DEAD???", PedGetHealth(gTablePeds[gCurrentJock].id))
Bucky_Current_Health = PedGetHealth(idBucky)
bullyMaxHealth = PedGetHealth(pedFirstBully.id)
DARBY_MAX_HEALTH = PedGetHealth(idDarby)
elseif 0 >= PedGetHealth(gNerds[2].id) then
elseif not ScaffoldTwoBroke and PedGetHealth(gGary) / GaryHealth * 100 < 50 then
elseif PedGetHealth(edgar) <= gEdgarHealth * 2 / 3 then
elseif PedIsDead(frMidget01) or PedGetHealth(frMidget01) <= 0 then
elseif PedIsDead(frMidget02) or PedGetHealth(frMidget02) <= 0 then
elseif PedIsValid(gTablePeds[gCurrentJock].id) and not PedIsDead(gTablePeds[gCurrentJock].id) and 0 < PedGetHealth(gTablePeds[gCurrentJock].id) then
GaryHealth = PedGetHealth(gGary)
gBoxerHealth = PedGetHealth(boxer)
gBuckysPreviousHealth = PedGetHealth(idBucky)
gConstantineHealth = PedGetHealth(pedConstantine.id)
gFattyOriginHealth = PedGetHealth(gFatty)
gMascotHealth = PedGetHealth(pedMascot.id)
gNerds[1].health = PedGetHealth(gNerds[1].id)
gNerds[2].health = PedGetHealth(gNerds[2].id)
gOldHealth = PedGetHealth(opponent)
gOmarHealth = PedGetHealth(idOmar)
gOpponentHealth = PedGetHealth(boxer)
gOriginalBullyHealth = PedGetHealth(gBully01)
gOriginalHealth = PedGetHealth(gHobo)
gPlayerHealth = PedGetHealth(gPlayer)
gPreviousPlayerHealth = PedGetHealth(gPlayer)
gPreviousRussellHealth = PedGetHealth(gRussell)
if (PedIsDead(tblEntry.id) or PedGetHealth(tblEntry.id) <= 0) and tblEntry.id ~= nil and gPleaseCreateSomeHealth then
if 0 >= PedGetHealth(gGary) and gPed ~= gGary then
if 0 >= PedGetHealth(gNerds[1].id) then
if 0 >= PedGetHealth(idBucky) then
if bDarbyFightStarted and idDarby ~= nil and not bPrepsAlive and (PedIsDead(idDarby) or PedGetHealth(idDarby) <= 0) then
if entity.ped and PedIsValid(entity.ped) and (PedIsDead(entity.ped) or PedGetHealth(entity.ped) <= 0) then
if gPlayerImmortal and 0 >= PedGetHealth(gPlayer) then
if idBucky and PedIsValid(idBucky) and (PedGetHealth(idBucky) <= 0 or Bucky_Current_Health <= 0) then
if idDO ~= nil and PedGetHealth(idDO) <= 0 then
if item.elf ~= -1 and PedIsValid(item.elf) == true and PedIsDead(item.elf) == false and 0 < PedGetHealth(item.elf) and item.attacking == false then
if item.elf ~= -1 and PedIsValid(item.elf) and PedIsDead(item.elf) == false and 0 < PedGetHealth(item.elf) then
if not bAlgieWasAttackedAgain and bAlgieCleanupTags and (PedCanSeeObject(gPlayer, algie, 2) and PlayerIsInAreaObject(algie, 2, 10, 0) or PedIsHit(algie, 2, 1000) and PedGetWhoHitMeLast(algie) == gPlayer) and 0 < PedGetHealth(algie) then
if not bBuckyCower and PedGetHealth(idBucky) < gBuckysPreviousHealth and PedGetWhoHitMeLast(idBucky) then
if not bConstantineLostHealth and (gConstantineHealth > PedGetHealth(pedConstantine.id) or PedMePlaying(pedConstantine.id, "Hold_Idle", true)) and PedGetWhoHitMeLast(pedConstantine.id) == gPlayer then
if not bGreaser1KOd and PedIsValid(Greaser1) and PedGetHealth(Greaser1) <= 0 then
if not bGreaser2KOd and PedIsValid(Greaser2) and PedGetHealth(Greaser2) <= 0 then
if not bIsKO and (PedIsDead(idPed) or PedGetHealth(idPed) <= 0) then
if not bRemovedGordsTrophy and 0 >= PedGetHealth(pedGord) then
if not bSetGaryInvulnerable and PedGetHealth(pedChad.id) <= 0 then
if not bStopFleeing and PedGetHealth(pedFirstBully.id) < bullyMaxHealth / 2 then
if not bully.dead and (PedGetHealth(bully.id) <= 0 or PedIsDead(bully.id)) then
if not gCheckingDarby and PedGetHealth(idDarby) <= 0 and PedIsPlaying(idDarby, "/Global/HitTree/Standing/PostHit/Standing/Dead/BoxingStun/StunControl", true) and F_PedIsHitByPlayer(idDarby) then
if not gFirstCheap and PedIsValid(gFirstImmortalPrep) and 0 >= PedGetHealth(gFirstImmortalPrep) then
if not gSecondCheap and PedIsValid(gSecondImmortalPrep) and 0 >= PedGetHealth(gSecondImmortalPrep) then
if not L_PedGetData(idGreaser, "KO") and PedIsValid(idGreaser) and PedGetHealth(idGreaser) <= 0 then
if not ScaffoldThreeBroke and PedGetHealth(gGary) / GaryHealth * 100 < 1 then
if pedGary.id and PedIsValid(pedGary.id) and (PedGetHealth(pedGary.id) / originalHealth) < 0.75 and not IsMissionCompleated("CLIMBING") then
if PedGetHealth(boxer) < PedGetMaxHealth(boxer) then
if PedGetHealth(damon) <= 0 and damon_dead == false then
if PedGetHealth(dan) <= 0 and dan_dead == false then
if PedGetHealth(entry.id) / PedGetMaxHealth(entry.id) < entry.threshold then
if PedGetHealth(entry.id) <= 0 then
if PedGetHealth(gBully01) < gOriginalBullyHealth / 2 then
if PedGetHealth(gBully01) == 5 then
if PedGetHealth(gFatty) <= 25 or bFattyInTheCan then
if PedGetHealth(gGary) / GaryHealth * 100 < 75 then
if PedGetHealth(gPlayer) / gPlayerHealth * 100 > PedGetHealth(boxer) / gOpponentHealth * 100 then
if PedGetHealth(gPlayer) < 150 then
if PedGetHealth(gPlayer) < PedGetMaxHealth(gPlayer) then
if PedGetHealth(gPlayer) <= 0 then
if PedGetHealth(gRussell) <= 0 then
if PedGetHealth(gSCharacter) <= 0 then
if PedGetHealth(idDO) / DO_MAX_HEALTH > 0.5 then
if PedGetHealth(idDO) / DO_MAX_HEALTH > 0.75 then
if PedGetHealth(kirby) <= 0 and kirby_dead == false then
if PedGetHealth(Mascot) < 80 then
if PedGetHealth(melvin) <= 0 and melvin_dead == false then
if PedGetHealth(pedid) < PedGetMaxHealth(pedid) then
if PedGetHealth(pedID) <= 0 or PedIsDead(pedID) then
if PedGetHealth(pedMascot.id) <= gMascotHalfHealth then
if PedGetHealth(rat) <= 0 then
if PedGetHealth(russell) / russellstarthealth * 100 <= 50 then
if PedGetHealth(thad) <= 0 and thad_dead == false then
if PedGetWhoHitMeLast(gFatty) == gPlayer and PedGetHealth(gFatty) < gFattyOriginHealth - 40 or PedIsPlaying(gFatty, "/Global/Actions/Grapples/Front/Grapples", true) then
if PedIsDead(entry.id) or PedGetHealth(entry.id) <= 0 then
if PedIsDead(frMidget01) or PedGetHealth(frMidget01) <= 0 then
if PedIsDead(frMidget02) or PedGetHealth(frMidget02) <= 0 then
if PedIsDead(ped) or PedGetHealth(ped) <= 0 then
if PedIsDead(tblEntry.id) or 0 >= PedGetHealth(tblEntry.id) then
if PedIsHit(algie, 2, 1000) and PedGetWhoHitMeLast(algie) == gPlayer and 0 < PedGetHealth(algie) then
if PedIsValid(fatty) and PedGetHealth(fatty) < PedGetMaxHealth(fatty) and not bHit then
if PedIsValid(gNerds[1].id) and PedGetHealth(gNerds[1].id) <= 0 then
if PedIsValid(gNerds[2].id) and 0 >= PedGetHealth(gNerds[2].id) then
if PedIsValid(id) and PedGetHealth(id) <= 145 or not PedIsValid(id) then
if PedIsValid(item.elf) == true and (PedIsDead(item.elf) == true or 0 >= PedGetHealth(item.elf)) then
if PedIsValid(jock.id) and (PedIsDead(jock.id) or 0 >= PedGetHealth(jock.id)) then
if PedIsValid(pedID) and (PedIsModel(pedID, 53) or PedIsModel(pedID, 158)) and PedGetHealth(pedID) > 1 and not bPlayerHitOrderly and PedGetWhoHitMeLast(pedID) == gPlayer then
if PedIsValid(tblGord.id) and (PedGetHealth(tblGord.id) == 0 or PedIsDead(tblGord.id)) then
if PedIsValid(tblJohnnyWH.id) and (PedGetHealth(tblJohnnyWH.id) <= 0 or PedIsDead(tblJohnnyWH.id)) then
if ratped and ratped.blip and ratped.id and PedGetHealth(ratped.id) <= 0 then
if ratped and ratped.id and PedIsDead(ratped.id) or PedIsValid(ratped.id) and PedGetHealth(ratped.id) <= 0 then
if shared.gSecretaryID ~= nil and PedIsValid(shared.gSecretaryID) and PedGetHealth(shared.gSecretaryID) < 0 then
if tFirstFloorTable.gord.bAlive and 0 < PedGetHealth(tFirstFloorTable.gord.id) then
if tFirstFloorTable.parker.bAlive and PedGetHealth(tFirstFloorTable.parker.id) > 0 then
if tSecondFloorTable.justin.bAlive and 0 < PedGetHealth(tSecondFloorTable.justin.id) then
if tSecondFloorTable.tad.bAlive and PedGetHealth(tSecondFloorTable.tad.id) > 0 then
if tThirdFloorTable.bryce.bAlive and PedGetHealth(tThirdFloorTable.bryce.id) > 0 then
if tThirdFloorTable.chad.bAlive and 0 < PedGetHealth(tThirdFloorTable.chad.id) then
intHealthPercent = PedGetHealth(idDarby) / DARBY_MAX_HEALTH * 100
local damage = PedGetHealth(rat.id)
local gBoxerHealth = PedGetHealth(boxer)
local gGordsHealth = PedGetHealth(pedGord)
local h = PedGetHealth(ped)
local health = PedGetHealth(allyId)
local health = PedGetHealth(gFatty)
local health = PedGetHealth(gThad)
local health = PedGetHealth(rat)
local health = PedGetHealth(shared.gBif) / 100 * 40
local originalHealth = PedGetHealth(pedGary.id)
local ped1 = PedGetHealth(tblJohnnyWH.id)
local ped2 = PedGetHealth(tblGreaser1WH.id)
local ped3 = PedGetHealth(tblGreaser2WH.id)
local ped4 = PedGetHealth(tblGordWH.id)
local ped5 = PedGetHealth(tblPrep1WH.id)
local ped6 = PedGetHealth(tblPrep2WH.id)
local playerhealthcheck = PedGetHealth(gPlayer) / PedGetMaxHealth(gPlayer) * 100
local tempHealth = PedGetHealth(gPlayer)
PedSetHealth(boxer, PedGetHealth(boxer) + healthInc)
PedSetHealth(gNerds[1].id, PedGetHealth(gNerds[1].id) * 2.5)
PedSetHealth(gNerds[2].id, PedGetHealth(gNerds[2].id) * 2.5)
PedSetHealth(gPlayer, PedGetHealth(gPlayer) + healthInc)
PedSetHealth(Greaser1, PedGetHealth(Greaser1) * 2)
PedSetHealth(Greaser2, PedGetHealth(Greaser2) * 2)
PedSetHealth(gRussell, PedGetHealth(gRussell) * 7)
PedSetHealth(gTheo, PedGetHealth(gTheo) * 2)
PedSetHealth(pedCornelius.id, PedGetHealth(pedCornelius.id) * 2)
PedSetHealth(pedGary.id, PedGetHealth(pedGary.id) * 2)
PedSetHealth(pedGreaser01.id, PedGetHealth(pedGreaser01.id) * 2)
PedSetHealth(pedGreaser02.id, PedGetHealth(pedGreaser02.id) * 2)
PedSetHealth(pedGreaser03.id, PedGetHealth(pedGreaser03.id) * 2)
PedSetHealth(pedGreaser04.id, PedGetHealth(pedGreaser04.id) * 2)
PedSetHealth(pedJohnny.id, PedGetHealth(pedJohnny.id) * 2)
PedSetHealth(pedKlepto.id, PedGetHealth(pedKlepto.id) * 1.5)
PedSetHealth(pedMascot.id, PedGetHealth(pedMascot.id) * 3)
PedSetHealth(pedNorton.id, PedGetHealth(pedNorton.id) * 2)
PedSetMaxHealth(pedKlepto.id, PedGetHealth(pedKlepto.id))
PedSetMinHealth(gGary, (PedGetHealth(gGary)))
PedSetMinHealth(pedAlgie.id, PedGetHealth(pedAlgie.id))
return bJohnnyFree and PedGetHealth(gJohnny) <= 0
return bThadCreate and PedGetHealth(gThad) <= 45
return ped and PedIsValid(ped) and not (PedGetHealth(ped) <= 0)
return PedGetHealth(ped) <= 0
return PedGetHealth(pedid) / maxHealth
russellstarthealth = PedGetHealth(russell)
while 0 < PedGetHealth(algie) do
while PedGetHealth(gBully01) > 0 do
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
push ecx
jnz 0x1B
fld st, dword ptr [0x906520]
fstp dword ptr [esp], st
push esi
call LuaParam::PushFloat
mov eax, 0x1
add esp, 0x8
pop esi
ret
fld st, dword ptr [eax+0x1CB8]
fstp dword ptr [esp], st
push esi
call LuaParam::PushFloat
add esp, 0x8
mov eax, 0x1
pop esi
ret
-- never used
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
jnz 0x4
pop esi
ret
mov edx, dword ptr [eax]
mov ecx, eax
mov eax, dword ptr [edx+0x40]
call 0x5C99A0
mov ecx, dword ptr [eax+0x10]
fld st, dword ptr [ecx+0x38]
push ecx
fstp dword ptr [esp], st
push esi
call LuaParam::PushFloat
add esp, 0x8
mov eax, 0x1
pop esi
ret
-- never used
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
jnz 0x13
push eax
push esi
call LuaParam::PushBool
mov eax, 0x1
add esp, 0x8
pop esi
ret
cmp dword ptr [eax+0x13FC], 0x0
setnz al
push eax
push esi
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
pop esi
ret
--print(PedGetLastHitWeapon(earnie))
elseif ped.state ~= STATE_NONE and PedGetLastHitWeapon(ped.id) == 383 then
if not bDog and PedGetLastHitWeapon(pedID) == 312 and PedGetWhoHitMeLast(pedID) == gPlayer then
if not bDog and PedGetLastHitWeapon(pedID) == 394 then
if PedGetLastHitWeapon(gFatty) == 301 or PedGetLastHitWeapon(gFatty) == 308 then
if PedGetLastHitWeapon(pedID) == 301 and PedGetWhoHitMeLast(pedID) == gPlayer then
if PedGetLastHitWeapon(pedID) == 397 and PedGetWhoHitMeLast(pedID) == gPlayer then
if PedGetLastHitWeapon(pedMascot.id) == 309 then
if PedGetWhoHitMeLast(lVictim[vIndex]) == gPlayer and PedGetLastHitWeapon(lVictim[vIndex]) == 313 and tblVictimInfo[vIndex].HasBeenHit == false then
if PedGetWhoHitMeLast(pedID) == gPlayer and PedGetLastHitWeapon(pedID) == 383 then
if pedID == guy.id and guy.hit == false and PedIsValid(guy.id) and (PedGetLastHitWeapon(guy.id) == 304 or PedGetWhoHitMeLast(guy.id) == gPlayer) and b_InTree and guy.hit == false then
if PedIsDoingTask(pedID, "/Global/AI/Reactions/Stimuli/DeadRat", true) or PedGetLastHitWeapon(pedID) == 346 and PedGetWhoHitMeLast(pedID) == gPlayer and PedIsFemale(pedID) then
if PedIsHit(idDarby, 2, 1000) and WeaponGetType(PedGetLastHitWeapon(idDarby)) == 0 then
if PedIsValid(Greaser1) == true and PedGetLastHitWeapon(Greaser1) == 312 then
if PedIsValid(Greaser2) == true and PedGetLastHitWeapon(Greaser2) == 312 then
if PedIsValid(ped) and PedIsHit(ped, 2, 500) and PedGetLastHitWeapon(ped) == weapon then
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov edx, eax
neg edx
sbb edx, edx
mov ecx, esp
add edx, 0x3
push eax
mov dword ptr [ecx], edx
call 0x5C7380
add esp, 0x8
mov ecx, eax
call 0x474BE0
movsx eax, word ptr [eax+0x5E]
push eax
push esi
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
pop esi
ret
bike = PedGetLastVehicle(gPlayer)
bikeBlip = AddBlipForCar(PedGetLastVehicle(gPlayer) or bike, 0, 4)
if VehicleIsValid(racer.bike) and PedGetLastVehicle(gPlayer) ~= racer.bike then
local lastBike = PedGetLastVehicle(gPlayer)
local vehicle = PedGetLastVehicle(gPlayer)
player.bike = PedGetLastVehicle(gPlayer)
vehicle = PedGetLastVehicle(gPlayer)
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov eax, dword ptr [eax+0x1560]
add esp, 0x8
test eax, eax
jz 0x19
push eax
call 0x44CAC0
push eax
push esi
call LuaParam::PushInt
add esp, 0xC
mov eax, 0x1
pop esi
ret
push esi
call LuaParam::PushNil
add esp, 0x4
mov eax, 0x1
pop esi
ret
--print(">>>[RUI]", "cbDavisHit gDavisHitCount == 1 damage: " .. tostring(damage) .. " max: " .. tostring(PedGetMaxHealth(gDavis)))
--print(">>>[RUI]", "cbDavisHit gDavisHitCount == 2 damage: " .. tostring(damage) .. " max: " .. tostring(PedGetMaxHealth(gDavis)))
--print(">>>[RUI]", "cbDavisHit gDavisHitCount == 3 damage: " .. tostring(damage) .. " max: " .. tostring(PedGetMaxHealth(gDavis)))
--print("[RAUL] BOXER INIT --- HEALTH - " .. PedGetMaxHealth(boxer))
gDamonHealth = PedGetMaxHealth(gDefenders[1])
gEdgarHealth = PedGetMaxHealth(edgar)
gMaxHealth = PedGetMaxHealth(gPlayer)
gMaxPlayerHealth = PedGetMaxHealth(gPlayer)
gMaxTargetHealth = PedGetMaxHealth(gTargetBoy)
gMidgetMaxHealth = PedGetMaxHealth(frMidget01)
gPlayerExtraHealth = PedGetMaxHealth(gPlayer)
gPlayerExtraHealth = PedGetMaxHealth(gPlayer) / 2
gPlayerExtraHealth = PedGetMaxHealth(gPlayer) / 4 * 3
gPlayerMaxHealth = PedGetMaxHealth(gPlayer)
healthInc = PedGetMaxHealth(boxer) * 0.1
healthInc = PedGetMaxHealth(boxer) * 0.23
if P_ENTRY_HEALTH < PedGetMaxHealth(gPlayer) then
if PedGetHealth(boxer) < PedGetMaxHealth(boxer) then
if PedGetHealth(entry.id) / PedGetMaxHealth(entry.id) < entry.threshold then
if PedGetHealth(gPlayer) < PedGetMaxHealth(gPlayer) then
if PedGetHealth(pedid) < PedGetMaxHealth(pedid) then
if PedIsValid(fatty) and PedGetHealth(fatty) < PedGetMaxHealth(fatty) and not bHit then
if PlayerGetHealth() / PedGetMaxHealth(gPlayer) < 0.4 then
if PlayerGetHealth() < PedGetMaxHealth(gPlayer) then
local healthInc = PedGetMaxHealth(gPlayer) * 0.24
local mascotHealth = PedGetMaxHealth(pedMascot.id)
local maxHealth = PedGetMaxHealth(pedid)
local newHealth = PedGetMaxHealth(opponent) / 3 * 2
local playerhealthcheck = PedGetHealth(gPlayer) / PedGetMaxHealth(gPlayer) * 100
local playerMax = PedGetMaxHealth(gPlayer)
PedSetHealth(gPlayer, PedGetMaxHealth(gPlayer))
PedSetHealth(pedChad.id, PedGetMaxHealth(pedChad.id) * 2)
PlayerSetHealth(PedGetMaxHealth(gPlayer))
prepHealth = PedGetMaxHealth(idPreppy) / 2
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
push ecx
jnz 0x1B
fld st, dword ptr [0x906520]
fstp dword ptr [esp], st
push esi
call LuaParam::PushFloat
mov eax, 0x1
add esp, 0x8
pop esi
ret
fld st, dword ptr [eax+0x1CA4]
fstp dword ptr [esp], st
push esi
call LuaParam::PushFloat
add esp, 0x8
mov eax, 0x1
pop esi
ret
local player_money = PedGetMoney(gPlayer)
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
jnz 0x13
push eax
push esi
call LuaParam::PushInt
mov eax, 0x1
add esp, 0x8
pop esi
ret
mov eax, dword ptr [eax+0x1CA0]
push eax
push esi
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
pop esi
ret
PhotoSetValid(true, "PHO_MYEARBK", PedGetName(pedId))
PhotoSetValid(true, "PHO_YEARBK", PedGetName(pedId))
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
xor ecx, ecx
test eax, eax
jz 0x1A
movsx eax, word ptr [eax+0x10E]
mov eax, dword ptr [eax*4+0xC67738]
test eax, eax
jz 0x8
lea ecx, ptr [eax+0x98]
push ecx
push esi
call LuaParam::PushString
add esp, 0x8
mov eax, 0x1
pop esi
ret
hashId = PedGetNameHashID(entityId)
hashId = PedGetNameHashID(target)
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
or ecx, 0xFFFFFFFF
test eax, eax
jz 0x24
movsx eax, word ptr [eax+0x10E]
mov eax, dword ptr [eax*4+0xC67738]
test eax, eax
jz 0x12
add eax, 0x98
push eax
call 0x576ED0
add esp, 0x4
mov ecx, eax
push ecx
push esi
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
pop esi
ret
-- never used
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov eax, dword ptr [eax+0x2E0]
fld st, dword ptr [eax+0x260]
add esp, 0x4
fstp dword ptr [esp], st
push esi
call LuaParam::PushFloat
add esp, 0x8
mov eax, 0x1
pop esi
ret
local fx, fy, fz = PedGetOffsetInWorldCoords(gPlayer, 0, 0, 1)
local offX, offY, offZ = PedGetOffsetInWorldCoords(gPlayer, 0, 2, 0)
local offx, offy, offz = PedGetOffsetInWorldCoords(gPlayer, 0, 2, 0)
local px, py, pz = PedGetOffsetInWorldCoords(gPlayer, 1, -2, 0)
local spotX, spotY, spotZ = PedGetOffsetInWorldCoords(buster, 0, 1.5, 1.65)
local spotX, spotY, spotZ = PedGetOffsetInWorldCoords(buster, 0, yOff, zOff)
local x, y, z = PedGetOffsetInWorldCoords(gPlayer, 0, 1, 0)
local x, y, z = PedGetOffsetInWorldCoords(gPlayer, 0, 1, 1.3)
local x, y, z = PedGetOffsetInWorldCoords(gPlayer, 0.9, 1.8, 1)
local x, y, z = PedGetOffsetInWorldCoords(gTablePeds[gCurrentJock].id, 0, 2, 1.4)
local x, y, z = PedGetOffsetInWorldCoords(ScenarioPed, 0, 1.25, 0)
local x1, y1, z1 = PedGetOffsetInWorldCoords(gPlayer, 0.5, 1, 1.2)
local x1, y1, z1 = PedGetOffsetInWorldCoords(pedID, 0.5, 1, 1.7)
local x1, y1, z1 = PedGetOffsetInWorldCoords(pedMascot.id, 1.25, 2.5, 1)
local x2, y2, z2 = PedGetOffsetInWorldCoords(gPlayer, -0.5, -0.7, 1.7)
local x2, y2, z2 = PedGetOffsetInWorldCoords(gTablePeds[gCurrentJock].id, 5, 2, 1.4)
local x2, y2, z2 = PedGetOffsetInWorldCoords(pedID, -0.5, -0.7, 1.7)
local x2, y2, z2 = PedGetOffsetInWorldCoords(pedMascot.id, -1, -0.7, 1.2)
x1, y1, z1 = PedGetOffsetInWorldCoords(pedId, x1, y1, z1)
x2, y2, z2 = PedGetOffsetInWorldCoords(pedId, x2, y2, z2)
x2, y2, z2 = PedGetOffsetInWorldCoords(pedId2, x2, y2, z2)
sub esp, 0x34
push esi
mov esi, dword ptr [esp+0x3C]
push edi
push 0x0
push esi
call LuaParam::IsInt
add esp, 0x8
test al, al
jz 0xCE
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov edi, eax
add esp, 0x8
test edi, edi
jz 0xA8
push 0x1
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x10], st
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x1C], st
push 0x3
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x30], st
add esp, 0x18
mov ecx, edi
call 0x8B6120
fld st, dword ptr [esp+0x8]
fstp dword ptr [esp+0x2C], st
lea ecx, ptr [esp+0x2C]
fld st, dword ptr [esp+0xC]
push ecx
fstp dword ptr [esp+0x34], st
push eax
fld st, dword ptr [esp+0x20]
lea edx, ptr [esp+0x24]
push edx
fstp dword ptr [esp+0x40], st
call 0x4146B0
mov eax, dword ptr [esp+0x28]
mov ecx, dword ptr [esp+0x2C]
mov edx, dword ptr [esp+0x30]
mov dword ptr [esp+0x1C], eax
mov eax, dword ptr [edi+0x14]
add esp, 0xC
test eax, eax
mov dword ptr [esp+0x14], ecx
mov dword ptr [esp+0x18], edx
jz 0x7
add eax, 0x30
jmp 0x5
lea eax, ptr [edi+0x4]
fld st, dword ptr [eax]
fadd dword ptr [esp+0x1C]
fstp dword ptr [esp+0x10], st
fld st, dword ptr [eax+0x4]
fadd dword ptr [esp+0x14]
fstp dword ptr [esp+0x14], st
fld st, dword ptr [eax+0x8]
fadd dword ptr [esp+0x18]
fstp dword ptr [esp+0x18], st
jmp 0x10
fldz
fst dword ptr [esp+0x18], st
fst dword ptr [esp+0x14], st
fstp dword ptr [esp+0x10], st
fld st, dword ptr [esp+0x10]
push ecx
fstp dword ptr [esp], st
push esi
call LuaParam::PushFloat
fld st, dword ptr [esp+0x1C]
add esp, 0x4
fstp dword ptr [esp], st
push esi
call LuaParam::PushFloat
fld st, dword ptr [esp+0x20]
add esp, 0x4
fstp dword ptr [esp], st
push esi
call LuaParam::PushFloat
add esp, 0x8
pop edi
mov eax, 0x3
pop esi
add esp, 0x34
ret
if 0 < PedGetPedCountWithModel(56) and hour < 17 then
if 0 < PedGetPedCountWithModel(charchoice) then
if 0 < PedGetPedCountWithModel(pickedModel) then
if 0 < PedGetUniqueModelStatus(pickedModel) and PedGetPedCountWithModel(pickedModel) >= PedGetUniqueModelStatus(pickedModel) then
if Model == 200 and (PedGetUniqueModelStatus(22) == -1 or PedGetPedCountWithModel(22) > 0) then
if Model == 201 and (PedGetUniqueModelStatus(29) == -1 or 0 < PedGetPedCountWithModel(29)) then
if Model == 203 and (PedGetUniqueModelStatus(27) == -1 or 0 < PedGetPedCountWithModel(27)) then
if Model == 208 and (PedGetUniqueModelStatus(4) == -1 or 0 < PedGetPedCountWithModel(4)) then
if Model == 209 and (PedGetUniqueModelStatus(8) == -1 or 0 < PedGetPedCountWithModel(8)) then
if Model == 210 and (PedGetUniqueModelStatus(7) == -1 or 0 < PedGetPedCountWithModel(7)) then
if Model == 211 and (PedGetUniqueModelStatus(40) == -1 or 0 < PedGetPedCountWithModel(40)) then
if Model == 212 and (PedGetUniqueModelStatus(34) == -1 or 0 < PedGetPedCountWithModel(34)) then
if Model == 213 and (PedGetUniqueModelStatus(31) == -1 or 0 < PedGetPedCountWithModel(31)) then
if Model == 214 and (PedGetUniqueModelStatus(30) == -1 or 0 < PedGetPedCountWithModel(30)) then
if PedGetPedCountWithModel(FootballPed1) == 0 then
if PedGetPedCountWithModel(FootballPed2) == 0 then
if PedGetPedCountWithModel(FootballPed3) == 0 then
if PedGetPedCountWithModel(FootballPed4) == 0 then
if PedGetPedCountWithModel(model) > 0 then
if PedGetPedCountWithModel(ped1) == 0 then
if PedGetPedCountWithModel(ped2) == 0 then
if PedGetPedCountWithModel(pickedModel) > 0 or F_CheckGymModel(pickedModel) == false then
if PedGetPedCountWithModel(pickedModel) > 0 then
local AMCount = PedGetPedCountWithModel(AttackModel)
local pedAlready = PedGetPedCountWithModel(tblPrank[PrankToCreate].model)
push ebp
mov ebp, dword ptr [esp+0x8]
push esi
push edi
push 0x0
push ebp
call LuaParam::GetInt
mov esi, dword ptr [0xC0F5F0]
mov edx, dword ptr [esi+0x8]
add esp, 0x8
xor edi, edi
test edx, edx
jz 0x35
push ebx
mov ebx, dword ptr [esi+0x4]
sub edx, 0x1
test byte ptr [ebx+edx*1], 0x80
jnz 0x23
mov ecx, dword ptr [esi+0xC]
imul ecx, edx
add ecx, dword ptr [esi]
jz 0x19
cmp byte ptr [ecx+0x1C98], 0x0
jnz 0x10
movsx ecx, word ptr [ecx+0x10E]
cmp ecx, eax
jnz 0x5
add edi, 0x1
test edx, edx
jnz 0xFFFFFFD4
pop ebx
push edi
push ebp
call LuaParam::PushInt
add esp, 0x8
pop edi
pop esi
mov eax, 0x1
pop ebp
ret
if PedGetPedToTypeAttitude(char, 13) == 1 or PedGetPedToTypeAttitude(char, 13) == 2 then
if PedIsValid(ScenarioPed) == true and AreaGetVisible() == 0 and PedGetFlag(ScenarioPed, 110) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedGetFlag(ScenarioPed, 110) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and (AreaGetVisible() == 2 or AreaGetVisible() == 8) and OutOfRange == false and bFailDueToLackOfRoll == false then
if PedIsValid(ScenarioPed) == true and PedGetFlag(ScenarioPed, 110) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and bAlarmAlreadyOn == false and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedGetFlag(ScenarioPed, 110) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and bSpotted == false and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedGetFlag(ScenarioPed, 110) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and F_CheckIfPlayerHasEggs() == true and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedGetFlag(ScenarioPed, 110) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and leftArea == false and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedGetFlag(ScenarioPed, 110) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedGetFlag(ScenarioPed, 110) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(gPlayer) == false and PedIsDead(ScenarioPed) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedGetFlag(ScenarioPed, 110) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(ScenarioPed) == false and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and F_CheckIfPlayerHasChocolates() == true and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedGetFlag(ScenarioPed, 110) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(ScenarioPed) == false and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(gPlayer) == false and bTimedOut == false and ObjectiveMet == false and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedGetWhoHitMeLast(ScenarioPed) ~= gPlayer and PedGetFlag(ScenarioPed, 110) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and F_CheckIfPlayerHasCherryBomb() == true and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedHasPOI(ScenarioPed) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and OutOfRange == false then
sheet1BruiserAttitude = PedGetPedToTypeAttitude(sheet1Bruiser, 13)
sheet1GuardAttitude = PedGetPedToTypeAttitude(sheet1Guard, 13)
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov edi, eax
add esp, 0x8
test edi, edi
jnz 0x14
push 0x2
push esi
call LuaParam::PushInt
lea eax, ptr [edi+0x1]
add esp, 0x8
pop edi
pop esi
pop ecx
ret
push 0x1
push esi
call LuaParam::GetInt
add esp, 0x8
push eax
lea eax, ptr [esp+0xC]
push eax
mov ecx, edi
call 0x475380
mov ecx, dword ptr [esp+0x8]
push ecx
push esi
call LuaParam::PushInt
add esp, 0x8
pop edi
mov eax, 0x1
pop esi
pop ecx
ret
cx, cy, cz = PedGetPosXYZ(fCasey)
gKleptoX, gKleptoY = PedGetPosXYZ(pedKlepto.id)
gMusicKleptoX, gMusicKleptoY = PedGetPosXYZ(pedKlepto.id)
gMusicPlayerX, gMusicPlayerY = PedGetPosXYZ(gPlayer)
gPlayerX, gPlayerY = PedGetPosXYZ(gPlayer)
gTX, gTY, gTZ = PedGetPosXYZ(gTed)
hx, hy, hz = PedGetPosXYZ(gHobo)
key_ped_x, key_ped_y, key_ped_z = PedGetPosXYZ(norton)
local bustX, bustY, bustZ = PedGetPosXYZ(buster)
local Gx, Gy, Gz = PedGetPosXYZ(idNemesis)
local hx, hy, hz = PedGetPosXYZ(gHattrick)
local jx, jy, jz = PedGetPosXYZ(gLuis)
local lookX, lookY, lookZ = PedGetPosXYZ(tblCinematicScript[nCurrentStage][index].targetParam)
local nemx, nemy = PedGetPosXYZ(idNemesis)
local nortonx, nortony, nortonz = PedGetPosXYZ(idNorton)
local playerX, playerY, playerZ = PedGetPosXYZ(gPlayer)
local playx, playy = PedGetPosXYZ(gPlayer)
local Px, Py, Pz = PedGetPosXYZ(gPlayer)
local px, py, pz = PedGetPosXYZ(gPlayer)
local px, py, pz = PedGetPosXYZ(pedid)
local tempX, tempY, tempZ = PedGetPosXYZ(pedKlepto.id)
local x, y, z = PedGetPosXYZ(Crazy01)
local x, y, z = PedGetPosXYZ(Crazy02)
local x, y, z = PedGetPosXYZ(DirtyCop)
local x, y, z = PedGetPosXYZ(Dog)
local x, y, z = PedGetPosXYZ(dude)
local x, y, z = PedGetPosXYZ(edgar)
local x, y, z = PedGetPosXYZ(enemy.id)
local x, y, z = PedGetPosXYZ(gItchPowderPed)
local x, y, z = PedGetPosXYZ(gJV_OnBike)
local x, y, z = PedGetPosXYZ(gPlayer)
local x, y, z = PedGetPosXYZ(guy.id)
local x, y, z = PedGetPosXYZ(idDO)
local x, y, z = PedGetPosXYZ(idRussell)
local x, y, z = PedGetPosXYZ(L_PedGetIDByIndex(nil, 1))
local x, y, z = PedGetPosXYZ(mandy)
local x, y, z = PedGetPosXYZ(nerd)
local x, y, z = PedGetPosXYZ(ped.id)
local x, y, z = PedGetPosXYZ(pedID)
local x, y, z = PedGetPosXYZ(rat.id)
local x, y, z = PedGetPosXYZ(Rudy)
local x, y, z = PedGetPosXYZ(ScenarioPed)
local x, y, z = PedGetPosXYZ(tblPrank[1].id)
local x1, y1 = PedGetPosXYZ(gPlayer)
local X1, Y1, _ = PedGetPosXYZ(ped1)
local x1, y1, z1 = PedGetPosXYZ(gPlayer)
local x1, y1, z1 = PedGetPosXYZ(ped1_id)
local x1, y1, z1 = PedGetPosXYZ(ped_id1)
local x1, y1, z1 = PedGetPosXYZ(santa)
local x2, y2 = PedGetPosXYZ(gord)
local X2, Y2, _ = PedGetPosXYZ(ped2)
local x2, y2, z2 = PedGetPosXYZ(kid)
local x2, y2, z2 = PedGetPosXYZ(ped.id)
local x2, y2, z2 = PedGetPosXYZ(ped2_id)
local x2, y2, z2 = PedGetPosXYZ(ped_id2)
local x2, y2, z2 = PedGetPosXYZ(tblParentPosList[i].parent)
local x3, y3, z3 = PedGetPosXYZ(ped)
plx, ply, plz = PedGetPosXYZ(gPlayer)
r1x, r1y, r1z = PedGetPosXYZ(ScenarioPed)
rsx, rsy, rsz = PedGetPosXYZ(idRussell)
spawnX, spawnY, spawnZ = PedGetPosXYZ(ScenarioPed)
tempX, tempY, tempZ = PedGetPosXYZ(pedConstantine.id)
tx, ty, tz = PedGetPosXYZ(gTed)
tx, ty, tz = PedGetPosXYZ(idOmar)
x, y, z = PedGetPosXYZ(curPed)
x, y, z = PedGetPosXYZ(gFatty)
x, y, z = PedGetPosXYZ(gHobo)
x, y, z = PedGetPosXYZ(idPed)
x, y, z = PedGetPosXYZ(info)
x1, y1, z1 = PedGetPosXYZ(gPlayer)
x2, y2 = PedGetPosXYZ(racer.id)
x2, y2, z2 = PedGetPosXYZ(gPlayer)
x2, y2, z2 = PedGetPosXYZ(ped)
sub esp, 0xC
push esi
push edi
mov edi, dword ptr [esp+0x18]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jnz 0x20
fldz
push ecx
fstp dword ptr [esp], st
push edi
call LuaParam::PushFloat
fldz
add esp, 0x4
fstp dword ptr [esp], st
push edi
call LuaParam::PushFloat
fldz
jmp 0x6C
mov ecx, 0xD02850
call 0x5DB940
mov eax, dword ptr [esi+0x1554]
test eax, eax
jz 0x13
mov ecx, dword ptr [eax+0x14]
test ecx, ecx
jz 0x7
lea eax, ptr [ecx+0x30]
jmp 0x16
add eax, 0x4
jmp 0x11
mov eax, dword ptr [esi+0x14]
test eax, eax
jz 0x7
add eax, 0x30
jmp 0x5
lea eax, ptr [esi+0x4]
mov ecx, dword ptr [eax]
mov edx, dword ptr [eax+0x4]
mov eax, dword ptr [eax+0x8]
mov dword ptr [esp+0x8], ecx
fld st, dword ptr [esp+0x8]
push ecx
fstp dword ptr [esp], st
push edi
mov dword ptr [esp+0x18], eax
mov dword ptr [esp+0x14], edx
call LuaParam::PushFloat
fld st, dword ptr [esp+0x14]
add esp, 0x4
fstp dword ptr [esp], st
push edi
call LuaParam::PushFloat
fld st, dword ptr [esp+0x18]
add esp, 0x4
fstp dword ptr [esp], st
push edi
call LuaParam::PushFloat
add esp, 0x8
pop edi
mov eax, 0x3
pop esi
add esp, 0xC
ret
local DormPed = PedGetRandomModelId(PedTypeTable[PedTypeChoice], 1, -1)
local nPedType = PedGetRandomModelId(4, 1, 1)
local SchoolPed = PedGetRandomModelId(PedTypeTable[PedTypeChoice], 1, -1)
nPedType = PedGetRandomModelId(4, 1, 2)
ped1 = PedGetRandomModelId(2, 1, 1)
ped2 = PedGetRandomModelId(6, 2, 1)
pickedModel = PedGetRandomModelId(POIFaction, POIGender, size)
pickedModel = PedGetRandomModelId(possibleFaction, POIGender, size)
push ebx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0xFFFFFFFF
push 0x0
push esi
call LuaParam::GetInt ; optional
push 0xFFFFFFFF
push 0x1
push esi
mov ebx, eax
call LuaParam::GetInt ; optional
add esp, 0x18
xor edi, edi
cmp eax, 0xFFFFFFFF
jz 0x4
mov edi, eax
push 0xFFFFFFFF
push 0x2
push esi
call LuaParam::GetInt ; optional
add esp, 0xC
cmp eax, 0xFFFFFFFF
mov ecx, 0x5
jz 0x4
mov ecx, eax
push ecx
mov ecx, dword ptr [0xC2C108]
push edi
push ebx
call 0x49C230
push eax
push esi
call LuaParam::PushInt
add esp, 0x8
pop edi
pop esi
mov eax, 0x1
pop ebx
ret
-- never used
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
jnz 0x13
push eax
push esi
call LuaParam::PushBool
mov eax, 0x1
add esp, 0x8
pop esi
ret
cmp dword ptr [eax+0x13F8], 0x0
setnz al
push eax
push esi
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
pop esi
ret
-- never used
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
jnz 0x4
pop esi
ret
fld st, dword ptr [eax+0x18C0]
call 0x85C720
push eax
push esi
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
pop esi
ret
CLIENT
Returns a sync id given a game ped, or -1 if no sync entity is associated with the game ped.
CLIENT
Returns a sync ped given a game ped, or nothing if no sync ped is associated with the game ped.
CameraTarget = PedGetTargetPed(gPlayer)
if gAmbientEventTable.tCop1 and PedIsValid(gAmbientEventTable.tCop1) and PedGetTargetPed(gAmbientEventTable.tCop1) == gPlayer then
if gAmbientEventTable.tCop2 and PedIsValid(gAmbientEventTable.tCop2) and PedGetTargetPed(gAmbientEventTable.tCop2) == gPlayer then
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
jnz 0x5
pop edi
pop esi
ret
mov ecx, eax
or esi, 0xFFFFFFFF
call 0x497100
test eax, eax
jz 0x1E
mov cl, byte ptr [eax+0x108]
and cl, 0x7
cmp cl, 0x3
jnz 0x10
mov edx, dword ptr [eax]
mov ecx, eax
mov eax, dword ptr [edx+0xAC]
call 0x5CB7B1
mov esi, eax
push esi
push edi
call LuaParam::PushInt
add esp, 0x8
pop edi
mov eax, 0x1
pop esi
ret
CLIENT
Returns a ped's throttle. Used by some action nodes to determine how fast a ped is moving.
elseif PedGetTypeToTypeAttitude(5, 13) == 4 and (not F_PlayerHasFancyHaircut() or not F_PlayerHasAquaberryClothing()) then
gAttitude = PedGetTypeToTypeAttitude(4, 13)
gGreaserToJockAttitude = PedGetTypeToTypeAttitude(4, 2)
gGreaserToPreppyAttitude = PedGetTypeToTypeAttitude(4, 5)
gJockToGreaserAttitude = PedGetTypeToTypeAttitude(2, 4)
gPreppyToGreaserAttitude = PedGetTypeToTypeAttitude(5, 4)
greaserToPlayerAttitude = PedGetTypeToTypeAttitude(4, 13)
if PedGetTypeToTypeAttitude(5, 13) < 3 and F_PlayerHasFancyHaircut() and F_PlayerHasAquaberryClothing() then
local greaserAttitude = PedGetTypeToTypeAttitude(4, 13)
local greaserToPlayerAttitude = PedGetTypeToTypeAttitude(4, 13)
local oldAttitude = PedGetTypeToTypeAttitude(5, 13)
oldAttitude = PedGetTypeToTypeAttitude(3, 13)
prepToPlayerAttitude = PedGetTypeToTypeAttitude(5, 13)
prepTude = PedGetTypeToTypeAttitude(5, 13)
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetInt
mov ecx, dword ptr [0xC2AF9C]
add esp, 0x10
push eax
push edi
lea eax, ptr [esp+0x10]
push eax
call 0x46F830
mov ecx, dword ptr [esp+0x8]
push ecx
push esi
call LuaParam::PushInt
add esp, 0x8
pop edi
mov eax, 0x1
pop esi
pop ecx
ret
B1PJUniqueValue = PedGetUniqueModelStatus(227)
B1UniqueValue = PedGetUniqueModelStatus(72)
B2PJUniqueValue = PedGetUniqueModelStatus(228)
B2UniqueValue = PedGetUniqueModelStatus(73)
Box1Stat = PedGetUniqueModelStatus(34)
Box2Stat = PedGetUniqueModelStatus(32)
Box3Stat = PedGetUniqueModelStatus(35)
gLolaUniqueNum = PedGetUniqueModelStatus(25)
gMailmanModelStatus = PedGetUniqueModelStatus(127)
gNortonUniqueNum = PedGetUniqueModelStatus(29)
gUniqueStatus = PedGetUniqueModelStatus(rat_model)
gUniqueStatus[i] = PedGetUniqueModelStatus(model)
HBPJUniqueValue = PedGetUniqueModelStatus(226)
HBUniqueValue = PedGetUniqueModelStatus(69)
idConst.unique = PedGetUniqueModelStatus(idConst.model)
idEunice.unique = PedGetUniqueModelStatus(idEunice.model)
idGord.unique = PedGetUniqueModelStatus(idGord.model)
idLola.unique = PedGetUniqueModelStatus(idLola.model)
idPetey.unique = PedGetUniqueModelStatus(idPetey.model)
idPinky.unique = PedGetUniqueModelStatus(idPinky.model)
if 0 < PedGetUniqueModelStatus(pickedModel) and PedGetPedCountWithModel(pickedModel) >= PedGetUniqueModelStatus(pickedModel) then
if Model == 200 and (PedGetUniqueModelStatus(22) == -1 or PedGetPedCountWithModel(22) > 0) then
if Model == 201 and (PedGetUniqueModelStatus(29) == -1 or 0 < PedGetPedCountWithModel(29)) then
if Model == 203 and (PedGetUniqueModelStatus(27) == -1 or 0 < PedGetPedCountWithModel(27)) then
if Model == 204 and PedGetUniqueModelStatus(18) == -1 then
if Model == 206 and PedGetUniqueModelStatus(20) == -1 then
if Model == 207 and PedGetUniqueModelStatus(13) == -1 then
if Model == 208 and (PedGetUniqueModelStatus(4) == -1 or 0 < PedGetPedCountWithModel(4)) then
if Model == 209 and (PedGetUniqueModelStatus(8) == -1 or 0 < PedGetPedCountWithModel(8)) then
if Model == 210 and (PedGetUniqueModelStatus(7) == -1 or 0 < PedGetPedCountWithModel(7)) then
if Model == 211 and (PedGetUniqueModelStatus(40) == -1 or 0 < PedGetPedCountWithModel(40)) then
if Model == 212 and (PedGetUniqueModelStatus(34) == -1 or 0 < PedGetPedCountWithModel(34)) then
if Model == 213 and (PedGetUniqueModelStatus(31) == -1 or 0 < PedGetPedCountWithModel(31)) then
if Model == 214 and (PedGetUniqueModelStatus(30) == -1 or 0 < PedGetPedCountWithModel(30)) then
if PedGetUniqueModelStatus(AttackModel) == -1 then
LBPJUniqueValue = PedGetUniqueModelStatus(225)
LBUniqueValue = PedGetUniqueModelStatus(66)
local nJohnnyMaxUnique = PedGetUniqueModelStatus(23)
local nLolaMaxUnique = PedGetUniqueModelStatus(25)
local nMaxLolaUnique = PedGetUniqueModelStatus(25)
local nMaxUniqueEdna = PedGetUniqueModelStatus(58)
local nMaxZoeUnique = PedGetUniqueModelStatus(48)
local nPeanutMaxUnique = PedGetUniqueModelStatus(21)
local nPinkyMaxUnique = PedGetUniqueModelStatus(38)
numAlgie = PedGetUniqueModelStatus(4)
numBeatrice = PedGetUniqueModelStatus(3)
numBoy01 = PedGetUniqueModelStatus(72)
numBoy02 = PedGetUniqueModelStatus(73)
numBully = PedGetUniqueModelStatus(99)
numBully01 = PedGetUniqueModelStatus(102)
numBully02 = PedGetUniqueModelStatus(99)
numBully03 = PedGetUniqueModelStatus(85)
numBully04 = PedGetUniqueModelStatus(145)
numBully05 = PedGetUniqueModelStatus(146)
numChad = PedGetUniqueModelStatus(32)
numCorny = PedGetUniqueModelStatus(9)
numDamon = PedGetUniqueModelStatus(12)
numEunice = PedGetUniqueModelStatus(74)
numFatty = PedGetUniqueModelStatus(5)
numGreekboy = PedGetUniqueModelStatus(70)
numHispanic = PedGetUniqueModelStatus(69)
numHispanicBoy = PedGetUniqueModelStatus(69)
numJustin = PedGetUniqueModelStatus(34)
numKarl = PedGetUniqueModelStatus(52)
numLefty = PedGetUniqueModelStatus(24)
numLucky = PedGetUniqueModelStatus(26)
numLuis = PedGetUniqueModelStatus(16)
numMandy = PedGetUniqueModelStatus(14)
numMelvin = PedGetUniqueModelStatus(6)
numPedro = PedGetUniqueModelStatus(69)
numRussell = PedGetUniqueModelStatus(75)
numSecretary = PedGetUniqueModelStatus(59)
numSeth = PedGetUniqueModelStatus(50)
numThad = PedGetUniqueModelStatus(7)
numWhiteBoy = PedGetUniqueModelStatus(139)
numWhitey = PedGetUniqueModelStatus(139)
ped.maxNum = PedGetUniqueModelStatus(ped.id)
pedNumberAlgie = PedGetUniqueModelStatus(4)
pedNumberChad = PedGetUniqueModelStatus(32)
pedNumberCornelius = PedGetUniqueModelStatus(9)
pedNumberLola = PedGetUniqueModelStatus(25)
PedSetUniqueModelStatus(14, PedGetUniqueModelStatus(14))
PedSetUniqueModelStatus(74, PedGetUniqueModelStatus(74))
savedState = PedGetUniqueModelStatus(6)
spawnNumberArt = PedGetUniqueModelStatus(63)
spawnNumberBurton = PedGetUniqueModelStatus(55)
spawnNumberChad = PedGetUniqueModelStatus(32)
spawnNumberDog = PedGetUniqueModelStatus(141)
spawnNumberHall = PedGetUniqueModelStatus(54)
spawnNumberLibrarian = PedGetUniqueModelStatus(62)
spawnNumberNurse = PedGetUniqueModelStatus(60)
spawnNumberSecretary = PedGetUniqueModelStatus(59)
tegymuniq = PedGetUniqueModelStatus(55)
ThadPJUniqueValue = PedGetUniqueModelStatus(224)
ThadUniqueValue = PedGetUniqueModelStatus(7)
u = PedGetUniqueModelStatus(m)
Uniqueness = PedGetUniqueModelStatus(102)
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x8
cmp eax, 0xFFFFFFFF
mov ecx, 0xFFFFFFFE
jz 0x17
mov eax, dword ptr [eax*4+0xC67738]
test eax, eax
jz 0xC
mov ecx, eax
call 0x5228D0
movsx ecx, ax
push ecx
push esi
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
pop esi
ret
if PedGetVehicleWhoHitMeLast(idEunice.id) ~= nil then
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x60
mov eax, dword ptr [esi]
mov edx, dword ptr [eax+0x40]
mov ecx, esi
call 0x5C8E81
mov eax, dword ptr [eax+0x10]
add eax, 0x4
cmp dword ptr [eax], 0x0
jz 0x4C
mov eax, dword ptr [esi]
mov edx, dword ptr [eax+0x40]
mov ecx, esi
call 0x5C8E95
mov eax, dword ptr [eax+0x10]
mov ecx, dword ptr [eax+0x4]
add eax, 0x4
call 0x4CE690
test al, al
jz 0x31
mov eax, dword ptr [esi]
mov edx, dword ptr [eax+0x40]
mov ecx, esi
call 0x5C8EB0
mov eax, dword ptr [eax+0x10]
add eax, 0x4
mov eax, dword ptr [eax]
mov eax, dword ptr [eax+0x1554]
push eax
call 0x44CAC0
push eax
push edi
call LuaParam::PushInt
add esp, 0xC
mov eax, 0x1
pop edi
pop esi
ret
pop edi
xor eax, eax
pop esi
ret
bGun = PedGetWeapon(gPlayer)
gPlayersPreviousWeapon = PedGetWeapon(gPlayer)
if F_CheckDistance(assistant, gPlayer) and not PlayerIsInAnyVehicle() and PedGetWeapon(gPlayer) ~= 437 then
if NThug == true and PedGetWeapon(Thug) == -1 then
if PedGetWeapon(gPlayer) == 395 then
if PedGetWeapon(gPlayer) == 411 then
if PlayerIsInAreaXYZ(x, y, z, 2, 0) and not PlayerIsInAnyVehicle() and PedGetWeapon(gPlayer) ~= 437 then
local weapon = PedGetWeapon(gPlayer)
PedClearWeapon(gPlayer, PedGetWeapon(gPlayer))
shared.gWeaponBeforeCut = PedGetWeapon(gPlayer)
weapon = PedGetWeapon(student)
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x8
test eax, eax
jnz 0x9
mov eax, dword ptr [0xC1AEA8]
jmp 0x14
push ecx
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
jz 0x20
mov eax, dword ptr [eax+0x1D0]
movsx ecx, word ptr [eax+0x10E]
push ecx
push esi
call LuaParam::PushInt
mov eax, 0x1
add esp, 0x8
pop esi
ret
push 0xFFFFFFFF
push esi
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
pop esi
ret
elseif (bGordInsulted or PedGetWhoHitMeLast(tblGord.id) == gPlayer or PedGetWhoHitMeLast(tblPrep1.id) == gPlayer) and not tblStageState.playerAttackedPrep then
elseif PedGetWhoHitMeLast(tblPeanut.id2) == gPlayer then
elseif PedIsDead(ScenarioPed) or PedGetWhoHitMeLast(ScenarioPed) == gPlayer and not F_PedIsDead(gPlayer) then
elseif PedIsHit(gNerds[1], 2, 1000) and PedGetWhoHitMeLast(gNerds[1]) or PedIsHit(gNerds[2], 2, 1000) and PedGetWhoHitMeLast(gNerds[2]) then
if (not ((pedID ~= Receiver1 or Receiver1GotDelivery) and (pedID ~= Receiver2 or Receiver2GotDelivery)) or pedID == Receiver3 and not Receiver3GotDelivery) and PedGetWhoHitMeLast(pedID) == gPlayer then
if bActive and PedIsValid(Dog) and (PedIsInCombat(Dog) or PedIsDead(Dog) or PedGetWhoHitMeLast(Dog) == gPlayer or PedIsDoingTask(Dog, "/Global/AI_Dog/GeneralObjectives/FleeObjective", true) and not F_PedIsDead(gPlayer)) then
if bActive and PedIsValid(Dog) and (PedIsInCombat(Dog) or PedIsDead(Dog) or PedGetWhoHitMeLast(Dog) == gPlayer or PedIsDoingTask(Dog, "/Global/AI_Dog/GeneralObjectives/FleeObjective", true)) then
if bSecondFightCreated and gPeanut and (PlayerIsInAreaObject(gPeanut, 2, 20, 0) or PedIsHit(gPeanut, 2, 1000) and PedGetWhoHitMeLast(gPeanut) == gPlayer) then
if client.id ~= nil and PedGetWhoHitMeLast(client.id) == gPlayer then
if F_PedIsDead(idEunice.id) or PedGetWhoHitMeLast(idEunice.id) == gPlayer then
if gBully01 and PedIsValid(gBully01) and PedGetWhoHitMeLast(gBully01) == gPlayer or gBully02 and PedIsValid(gBully02) and PedGetWhoHitMeLast(gBully02) == gPlayer or gBully03 and PedIsValid(gBully03) and PedGetWhoHitMeLast(gBully03) == gPlayer then
if gGreaserAttacker ~= nil and PedIsValid(gGreaserAttacker) and (PlayerIsInAreaObject(gGreaserAttacker, 2, 15, 0) or PedIsHit(gGreaserAttacker, 2, 1000) and PedGetWhoHitMeLast(gGreaserAttacker) == gPlayer) then
if not (not F_PedIsDead(tbl.id) and (not PedIsInCombat(tbl.id) or bPrankCompleted or tbl.bActive)) or PedGetWhoHitMeLast(tbl.id) == gPlayer and not tbl.bActive then
if not bAlgieWasAttackedAgain and bAlgieCleanupTags and (PedCanSeeObject(gPlayer, algie, 2) and PlayerIsInAreaObject(algie, 2, 10, 0) or PedIsHit(algie, 2, 1000) and PedGetWhoHitMeLast(algie) == gPlayer) and 0 < PedGetHealth(algie) then
if not bBuckyCower and PedGetHealth(idBucky) < gBuckysPreviousHealth and PedGetWhoHitMeLast(idBucky) then
if not bConstantineLostHealth and (gConstantineHealth > PedGetHealth(pedConstantine.id) or PedMePlaying(pedConstantine.id, "Hold_Idle", true)) and PedGetWhoHitMeLast(pedConstantine.id) == gPlayer then
if not bCreateThad and (PlayerIsInTrigger(TRIGGER._4_02_GATEKEEPER) or PedGetWhoHitMeLast(gThad) == gPlayer) then
if not bDog and PedGetLastHitWeapon(pedID) == 312 and PedGetWhoHitMeLast(pedID) == gPlayer then
if not bDog and PedGetWhoHitMeLast(pedID) == gPlayer then
if not gLastGroupAttacked and PedIsHit(tdo, 2, 1000) and PedGetWhoHitMeLast(tdo) == gPlayer then
if not gStoreLocked and gClerk and PedIsHit(gClerk, 2, 1000) and PedGetWhoHitMeLast(gClerk) == gPlayer then
if not gThadSaysNoWay and bCreateThad and (PlayerIsInTrigger(TRIGGER._4_02_GATEKEEPER) or PedGetWhoHitMeLast(gThad) == gPlayer) then
if not shared.bBifAttacked and shared.gBif and PedIsValid(shared.gBif) and PedIsHit(shared.gBif, 2, 1000) and PedGetWhoHitMeLast(shared.gBif) == gPlayer then
if ped.bNISPed and PedGetWhoHitMeLast(ped.id) == gPlayer and ped.cbAttacked then
if PedGetLastHitWeapon(pedID) == 301 and PedGetWhoHitMeLast(pedID) == gPlayer then
if PedGetLastHitWeapon(pedID) == 397 and PedGetWhoHitMeLast(pedID) == gPlayer then
if PedGetWhoHitMeLast(gCorn) == gPlayer or bNerdsHit then
if PedGetWhoHitMeLast(gFatty) == gPlayer and PedGetHealth(gFatty) < gFattyOriginHealth - 40 or PedIsPlaying(gFatty, "/Global/Actions/Grapples/Front/Grapples", true) then
if PedGetWhoHitMeLast(gFatty) == gPlayer or bNerdsHit then
if PedGetWhoHitMeLast(gMelvin) == gPlayer or bNerdsHit then
if PedGetWhoHitMeLast(gRussell.id) == gPlayer then
if PedGetWhoHitMeLast(guy.id) == gPlayer and guy.workout then
if PedGetWhoHitMeLast(idLola.id) == gPlayer then
if PedGetWhoHitMeLast(johnny) == gPlayer then
if PedGetWhoHitMeLast(lVictim[vIndex]) == gPlayer and PedGetLastHitWeapon(lVictim[vIndex]) == 313 and tblVictimInfo[vIndex].HasBeenHit == false then
if PedGetWhoHitMeLast(pedID) == gPlayer and PedGetLastHitWeapon(pedID) == 383 then
if PedGetWhoHitMeLast(pedID) == gPlayer then
if PedGetWhoHitMeLast(pedMandyGym.id) == gPlayer then
if PedGetWhoHitMeLast(tableCornBullies[i]) == gPlayer then
if PedGetWhoHitMeLast(tblGordWH.id) == gPlayer then
if PedGetWhoHitMeLast(tblPeanut.id) == gPlayer then
if PedID == gCheater01 and PedGetWhoHitMeLast(gCheater01) ~= gCheater02 then
if PedID == gCheater02 and PedGetWhoHitMeLast(gCheater02) ~= gCheater01 then
if pedID == guy.id and guy.hit == false and PedIsValid(guy.id) and (PedGetLastHitWeapon(guy.id) == 304 or PedGetWhoHitMeLast(guy.id) == gPlayer) and b_InTree and guy.hit == false then
if pedID ~= tblDeadPool[1] and pedID ~= tblDeadPool[2] and pedID ~= tblDeadPool[3] and pedID ~= gPlayer and PedGetWhoHitMeLast(pedID) == gPlayer then
if PedIsDead(ScenarioPed) and PedGetWhoHitMeLast(ScenarioPed) == gPlayer then
if PedIsDoingTask(pedID, "/Global/AI/Reactions/Stimuli/DeadRat", true) or PedGetLastHitWeapon(pedID) == 346 and PedGetWhoHitMeLast(pedID) == gPlayer and PedIsFemale(pedID) then
if PedIsHit(algie, 2, 1000) and PedGetWhoHitMeLast(algie) == gPlayer and 0 < PedGetHealth(algie) then
if PedIsHit(EnemyTable[i].handle, 2, 6) and PedGetWhoHitMeLast(EnemyTable[i].handle) == gPlayer then
if PedIsHit(ped, 2, 500) and PedGetWhoHitMeLast(ped) == gPlayer then
if PedIsHit(ped, 2, time) and PedGetWhoHitMeLast(ped) == gPlayer then
if PedIsHit(pedAlgie.id, 2, 500) and PedGetWhoHitMeLast(pedAlgie.id) == gPlayer then
if PedIsHit(pedAngieGym.id, 2, 500) and PedGetWhoHitMeLast(pedAngieGym.id) == gPlayer then
if PedIsHit(pedChristyGym.id, 2, 500) and PedGetWhoHitMeLast(pedChristyGym.id) == gPlayer then
if PedIsHit(pedCornelius.id, 2, 100) and PedGetWhoHitMeLast(pedCornelius.id) == gPlayer then
if PedIsHit(pedEarnest.id, 2, 100) and PedGetWhoHitMeLast(pedEarnest.id) == gPlayer then
if PedIsHit(pedGreaser02.id, 2, 1000) and PedGetWhoHitMeLast(pedGreaser02.id) == gPlayer then
if PedIsHit(pedGreaser03.id, 2, 10) and PedGetWhoHitMeLast(pedGreaser03.id) == gPlayer then
if PedIsHit(pedGreaser04.id, 2, 10) and PedGetWhoHitMeLast(pedGreaser04.id) == gPlayer then
if PedIsHit(pedMandyBedroom.id, 2, 500) and PedGetWhoHitMeLast(pedMandyBedroom.id) == gPlayer then
if PedIsHit(pedMandyShower.id, 2, 500) and PedGetWhoHitMeLast(pedMandyShower.id) == gPlayer then
if PedIsHit(pedPinkyGym.id, 2, 500) and PedGetWhoHitMeLast(pedPinkyGym.id) == gPlayer then
if PedIsHit(shared.gBif, 2, 500) and PedGetWhoHitMeLast(shared.gBif) == gPlayer then
if PedIsHit(shared.vendettaClerk, 2, 1000) and PedGetWhoHitMeLast(shared.vendettaClerk) == gPlayer then
if PedIsInAreaXYZ(gPlayer, x, y, z, interactRange, corona) or PedGetWhoHitMeLast(ped.id) == gPlayer then
if PedIsModel(pedID, 53) or PedIsModel(pedID, 158) and PedGetWhoHitMeLast(pedID) == gPlayer and not F_PedIsDead(pedID) and bOnGrounds then
if PedIsModel(pedID, 53) or PedIsModel(pedID, 158) and PedGetWhoHitMeLast(pedID) == gPlayer then
if PedIsPlaying(pedID, "/Global/HitTree/Standing/Ranged/Bomb/Stinky/Stinky", true) and PedGetWhoHitMeLast(pedID) == gPlayer then
if PedIsValid(Beatrice) and (F_PedIsDead(Beatrice) or PedGetWhoHitMeLast(Beatrice) == gPlayer) then
if PedIsValid(Edna) and PedGetWhoHitMeLast(Edna) == gPlayer then
if PedIsValid(gord) and PedGetWhoHitMeLast(gord) == gPlayer then
if PedIsValid(idGord.id) and PedGetWhoHitMeLast(idGord.id) == gPlayer and not PedIsPlaying(idGord.id, "/Global/Vehicles/Bikes/ExecuteNodes/Attacks/GrapThorw", true) and not PedIsPlaying(idGord.id, "/Global/Vehicles/Bikes/ExecuteNodes/Attacks/GrapThorwLeft", true) then
if PedIsValid(idGord.id) and PedGetWhoHitMeLast(idGord.id) == gPlayer then
if PedIsValid(lola) and PedGetWhoHitMeLast(lola) == gPlayer then
if PedIsValid(pedID) and (PedIsModel(pedID, 53) or PedIsModel(pedID, 158)) and PedGetHealth(pedID) > 1 and not bPlayerHitOrderly and PedGetWhoHitMeLast(pedID) == gPlayer then
if PedIsValid(ScenarioPed) == true and PedGetWhoHitMeLast(ScenarioPed) ~= gPlayer and PedGetFlag(ScenarioPed, 110) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and F_CheckIfPlayerHasCherryBomb() == true and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(shared.gEdnaID) and PedGetWhoHitMeLast(shared.gEdnaID) == gPlayer then
if PedIsValid(tableGirlsToCheck[i]) and PedIsHit(tableGirlsToCheck[i], 2, 1000) and PedGetWhoHitMeLast(tableGirlsToCheck[i]) == gPlayer then
if PedIsValid(watts) and (PedGetWhoHitMeLast(watts) or PedGetWhoHitMeLast(edna)) == gPlayer then
if perv.id and not PedIsDead(perv.id) and perv.bAttacked == false and PedGetWhoHitMeLast(perv.id) == gPlayer then
if PlayerIsInTrigger(TRIGGER._3_06_FIGHTTRIG) or PlayerIsInTrigger(TRIGGER._3_06_FailTrig) and (gRooftopPeds1[1] and PedIsValid(gRooftopPeds1[1]) and PedGetWhoHitMeLast(gRooftopPeds1[1]) == gPlayer or gRooftopPeds1[2] and PedIsValid(gRooftopPeds1[2]) and PedGetWhoHitMeLast(gRooftopPeds1[2]) == gPlayer or gPeanut and PedIsValid(gPeanut) and PedGetWhoHitMeLast(gPeanut) == gPlayer) then
if tFirstFloorTable.gord.id ~= nil and PedGetWhoHitMeLast(tFirstFloorTable.gord.id) == gPlayer or tFirstFloorTable.parker.id ~= nil and PedGetWhoHitMeLast(tFirstFloorTable.parker.id) == gPlayer and not bFirstFloorFight then
if tSecondFloorTable.tad.id ~= nil and PedGetWhoHitMeLast(tSecondFloorTable.tad.id) == gPlayer or tSecondFloorTable.justin.id ~= nil and PedGetWhoHitMeLast(tSecondFloorTable.justin.id) == gPlayer and not bSecondFloorFight then
if tThirdFloorTable.bryce.id ~= nil and PedGetWhoHitMeLast(tThirdFloorTable.bryce.id) == gPlayer or tThirdFloorTable.chad.id ~= nil and PedGetWhoHitMeLast(tThirdFloorTable.chad.id) == gPlayer and not bThirdFloorFight then
return bThadCreate and PedGetWhoHitMeLast(gThad) == gPlayer and not bNerdsHit and not bPlayerGreets
return PedGetWhoHitMeLast(ped) == gPlayer
return PedIsHit(ped, 2, 500) and PedGetWhoHitMeLast(ped) == gPlayer
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x5B
mov eax, dword ptr [esi]
mov edx, dword ptr [eax+0x40]
mov ecx, esi
call 0x5C8DF1
mov eax, dword ptr [eax+0x10]
add eax, 0x4
cmp dword ptr [eax], 0x0
jz 0x47
mov eax, dword ptr [esi]
mov edx, dword ptr [eax+0x40]
mov ecx, esi
call 0x5C8E05
mov eax, dword ptr [eax+0x10]
add eax, 0x4
mov eax, dword ptr [eax]
test eax, eax
jnz 0x14
push eax
push edi
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
pop edi
pop esi
ret
mov edx, dword ptr [eax]
mov ecx, eax
mov eax, dword ptr [edx+0xAC]
call 0x5C8E2F
push eax
push edi
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
pop edi
pop esi
ret
PedGuardPed(attacker.id, gDavis)
PedGuardPed(ped, gTed)
PedGuardPed(ped2, ped1)
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
push 0x1
push edi
mov esi, eax
call LuaParam::GetInt
add esp, 0xC
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
test esi, esi
mov edi, eax
jz 0x30
mov eax, dword ptr [esi+0x1E08]
add esi, 0x1E08
cmp edi, eax
jz 0x20
test eax, eax
jz 0xC
push esi
push eax
call 0x4657E0
add esp, 0x8
test edi, edi
mov dword ptr [esi], edi
jz 0xC
push esi
push edi
call 0x4657D0
add esp, 0x8
pop edi
xor eax, eax
pop esi
ret
if not gPlayerBrokeStuff and (PAnimNumDestroyed(gDestroyAreaTrigger) > 0 or PedHasAggressed(gPlayer)) then
if not shared.g3_R09_N and not gPlayerBrokeStuff and (PAnimNumDestroyed(gAreaTrigger) > 0 or PedHasAggressed(gPlayer)) then
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
mov byte ptr [esp+0x4], 0x0
jz 0xC
mov al, byte ptr [eax+0x5D8]
mov byte ptr [esp+0x4], al
mov ecx, dword ptr [esp+0x4]
push ecx
push esi
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
pop esi
pop ecx
ret
if bAlgieFollows and PedHasAlly(gPlayer) then
if PedHasAlly(gPlayer) and PedGetAllyFollower(gPlayer) == Receiver1 then
if PedHasAlly(gPlayer) then
if PedHasAlly(idBucky) then
if PedIsValid(idGord.id) and PedHasAlly(idGord.id) then
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
mov byte ptr [esp+0x4], 0x0
jz 0x1E
cmp dword ptr [eax+0x2F4], 0x0
jz 0x7
mov byte ptr [esp+0x4], 0x1
cmp dword ptr [eax+0x2F8], 0x0
jz 0x7
mov byte ptr [esp+0x4], 0x1
mov eax, dword ptr [esp+0x4]
push eax
push esi
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
pop esi
pop ecx
ret
if not PedHasAllyFollower(gPlayer) then
if PedHasAllyFollower(gPlayer) then
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
mov byte ptr [esp+0x4], 0x0
jz 0x10
cmp dword ptr [eax+0x2F8], 0x0
jz 0x7
mov byte ptr [esp+0x4], 0x1
mov eax, dword ptr [esp+0x4]
push eax
push esi
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
pop esi
pop ecx
ret
-- never used
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
mov byte ptr [esp+0x4], 0x0
jz 0x10
cmp dword ptr [eax+0x2F4], 0x0
jz 0x7
mov byte ptr [esp+0x4], 0x1
mov eax, dword ptr [esp+0x4]
push eax
push esi
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
pop esi
pop ecx
ret
bCarHit = PedHasGeneratedStimulusOfType(gPlayer, 27)
elseif PedIsValid(idTeacher2) and PedHasGeneratedStimulusOfType(idTeacher2, 18) then
elseif shared.gBif and PedIsValid(shared.gBif) and (PedHasGeneratedStimulusOfType(shared.gBif, 9) or PedHasGeneratedStimulusOfType(shared.gBif, 55) or shared.bBifAttacked) then
if PedHasGeneratedStimulusOfType(idTeacher, 18) then
local bHumiliated, gPed = PedHasGeneratedStimulusOfType(gPlayer, 49)
playerStimulus, stimtype = PedHasGeneratedStimulusOfType(gPlayer, 24)
tempStimBool, tempStimTarget = PedHasGeneratedStimulusOfType(gPlayer, 49)
tempStimBool, tempStimTarget = PedHasGeneratedStimulusOfType(gPlayer, 55)
push esi
mov esi, dword ptr [esp+0x8]
push edi
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov edi, eax
add esp, 0x8
test edi, edi
jnz 0x5
pop edi
pop esi
ret
push 0x1
push esi
call LuaParam::GetInt
mov ecx, dword ptr [0xC2C1A0]
add esp, 0x8
push 0xFFFFFFFF
push eax
push edi
call 0x4A6150
test eax, eax
jz 0x2A
mov ecx, eax
call 0x4A5CD0
push 0x1
push esi
mov edi, eax
call LuaParam::PushBool
test edi, edi
jz 0x1D
push esi
mov ecx, edi
call 0x5C6250
add esp, 0xC
mov eax, 0x2
pop edi
pop esi
ret
push 0x0
push esi
call LuaParam::PushBool
add esp, 0x8
pop edi
mov eax, 0x1
pop esi
ret
-- never used
push ebx
push esi
push edi
mov edi, dword ptr [esp+0x10]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jnz 0x6
pop edi
pop esi
pop ebx
ret
push 0x1
push edi
call LuaParam::GetInt
add esp, 0x8
mov ebx, eax
mov eax, dword ptr [0xC1A9AC]
push eax
push ecx
mov eax, esp
mov dword ptr [eax], 0x7
mov ecx, dword ptr [0xC2C1A0]
push esi
call 0x4A6150
test eax, eax
jz 0x29
mov ecx, eax
call 0x4A5CD0
test eax, eax
jz 0x1E
cmp dword ptr [eax+0x1310], ebx
jnz 0x16
push 0x1
push edi
call LuaParam::PushBool
mov eax, 0x1
add esp, 0x8
pop edi
pop esi
pop ebx
ret
push 0x0
push edi
call LuaParam::PushBool
add esp, 0x8
pop edi
pop esi
mov eax, 0x1
pop ebx
ret
if FoundPed ~= -1 and not PedHasPOI(FoundPed) and PedIsOnScreen(FoundPed) and PedGetFaction(FoundPed) ~= (8 or PedGetFaction(FoundPed) ~= 0 or PedGetFaction(FoundPed) ~= 7) then
if FoundPed ~= -1 and not PedHasPOI(FoundPed) and PedIsOnScreen(FoundPed) then
if PedHasPOI(pedId) then
if PedIsValid(ScenarioPed) == true and PedHasPOI(ScenarioPed) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and OutOfRange == false then
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
jnz 0x5
pop esi
pop ecx
ret
cmp dword ptr [eax+0x1D24], 0x0
mov byte ptr [esp+0x4], 0x0
jz 0x7
mov byte ptr [esp+0x4], 0x1
mov eax, dword ptr [esp+0x4]
push eax
push esi
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
pop esi
pop ecx
ret
if PedHasReceivedGift(ScenarioPed) == true then
if PedIsValid(fatty) and PedHasReceivedGift(fatty) then
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
movzx eax, byte ptr [eax+0x1E27]
push eax
push esi
call LuaParam::PushBool
add esp, 0x10
mov eax, 0x1
pop esi
ret
elseif PedGetAmmoCount(gPlayer, 397) == 0 and PedHasWeapon(gPlayer, 397) then
if bDroppedIt and PedHasWeapon(gPlayer, 372) then
if bDroppedIt and PedHasWeapon(gPlayer, 397) then
if F_PedExists(egger) and not PedHasWeapon(egger, 312) then
if not bDroppedIt and not PedHasWeapon(gPlayer, 372) then
if not bLitFountain and not bDroppedIt and not PedHasWeapon(gPlayer, 397) then
if not PedHasWeapon(edgar, 342) and PedHasWeapon(edgar, 402) == false and PedHasWeapon(edgar, 401) == false and PedHasWeapon(edgar, 384) == false then
if not PedHasWeapon(gTed, 331) then
if PedHasWeapon(gPlayer, 318) or PedHasWeapon(red1, 318) or PedHasWeapon(red2, 318) or PedHasWeapon(red3, 318) then
if PedHasWeapon(gPlayer, 342) then
if PedHasWeapon(gPlayer, 395) and not shared.bWeedPlantIsDestroyed then
if PedHasWeapon(gPlayer, 395) then
if PedHasWeapon(gTed, 331) then
if PedHasWeapon(gTed, 400) then
if PedHasWeapon(Victim, 300) or PedHasWeapon(Victim, 312) then
if PedHasWeapon(Victim, 300) then
while not PedHasWeapon(edgar, 342) do
while not PedHasWeapon(student, 348) == true do
while PedHasWeapon(gTed, 400) and gMissionActive and gTedCanAttack do
push ecx
push ebx
push esi
mov esi, dword ptr [esp+0x10]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetInt
add esp, 0xC
mov ebx, eax
mov eax, esp
push edi
mov byte ptr [esp+0x14], 0x0
mov dword ptr [eax], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
jz 0x18
mov eax, dword ptr [eax+0x1D0]
movsx ecx, word ptr [eax+0x10E]
cmp ecx, ebx
setz dl
mov byte ptr [esp+0xC], dl
mov eax, dword ptr [esp+0xC]
push eax
push esi
call LuaParam::PushBool
add esp, 0x8
pop edi
pop esi
mov eax, 0x1
pop ebx
pop ecx
ret
PedHideHealthBar()
PedHideHealthBar(gJohnny)
PedHideHealthBar(opponent)
push esi
mov esi, dword ptr [0xC674D0]
push 0x0
push 0x0
mov ecx, esi
call 0x5537E0
mov eax, dword ptr [esi]
mov edx, dword ptr [eax+0x14]
push 0x0
mov ecx, esi
call 0x5C68ED
xor eax, eax
pop esi
ret
-- never used
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x16
push 0x1
push edi
call LuaParam::GetBool
movzx eax, al
add esp, 0x8
mov dword ptr [esi+0x1380], eax
pop edi
xor eax, eax
pop esi
ret
L_PedExec("gymjocks", PedIgnoreAttacks, "id", true)
L_PedExec("spectator", PedIgnoreAttacks, "id", true)
PedIgnoreAttacks(aliveGreaser01, true)
PedIgnoreAttacks(boxer, false)
PedIgnoreAttacks(boxer, true)
PedIgnoreAttacks(car.driver, true)
PedIgnoreAttacks(dataTable[1].id, false)
PedIgnoreAttacks(Earnest, true)
PedIgnoreAttacks(entry, false)
PedIgnoreAttacks(entry.handle, true)
PedIgnoreAttacks(entry.id, false)
PedIgnoreAttacks(gCarny, true)
PedIgnoreAttacks(gChaseCarDriver, true)
PedIgnoreAttacks(gClerk, true)
PedIgnoreAttacks(gDavis, false)
PedIgnoreAttacks(gDavis, true)
PedIgnoreAttacks(gGary, false)
PedIgnoreAttacks(gGary, true)
PedIgnoreAttacks(gHattrick, false)
PedIgnoreAttacks(gMelvin, true)
PedIgnoreAttacks(gord, true)
PedIgnoreAttacks(gPlayer, false)
PedIgnoreAttacks(gPlayer, true)
PedIgnoreAttacks(gTed, true)
PedIgnoreAttacks(guard, false)
PedIgnoreAttacks(hattrick, true)
PedIgnoreAttacks(id, false)
PedIgnoreAttacks(idDO, true)
PedIgnoreAttacks(idEunice.id, true)
PedIgnoreAttacks(idLola, true)
PedIgnoreAttacks(idPed, true)
PedIgnoreAttacks(idPeter, false)
PedIgnoreAttacks(idPeter, true)
PedIgnoreAttacks(idZoe, false)
PedIgnoreAttacks(idZoe, true)
PedIgnoreAttacks(lola, true)
PedIgnoreAttacks(lVictim[VictimCounter], true)
PedIgnoreAttacks(lVictim[vIndex], false)
PedIgnoreAttacks(opponent, false)
PedIgnoreAttacks(opponent, true)
PedIgnoreAttacks(ped, bool)
PedIgnoreAttacks(ped, isSideline)
PedIgnoreAttacks(ped, true)
PedIgnoreAttacks(ped.id, ped.ignoreAttacks)
PedIgnoreAttacks(ped1, false)
PedIgnoreAttacks(ped1, true)
PedIgnoreAttacks(pedAlgie.id, true)
PedIgnoreAttacks(pedChad.id, true)
PedIgnoreAttacks(pedCutBo.id, true)
PedIgnoreAttacks(pedCutCasey.id, true)
PedIgnoreAttacks(pedCutJuri.id, true)
PedIgnoreAttacks(pedDog.id, false)
PedIgnoreAttacks(pedDog.id, true)
PedIgnoreAttacks(pedGary.id, true)
PedIgnoreAttacks(pedGord, false)
PedIgnoreAttacks(pedGord, true)
PedIgnoreAttacks(pedID, false)
PedIgnoreAttacks(pedKlepto.id, true)
PedIgnoreAttacks(pedMascot.id, true)
PedIgnoreAttacks(runningGreaser, false)
PedIgnoreAttacks(sheet4Guard, false)
PedIgnoreAttacks(sheet4Guard, true)
PedIgnoreAttacks(sweater_guard, true)
PedIgnoreAttacks(tblRaceInfo.race.countdown_ped.id, true)
PedIgnoreAttacks(testPed[1].id, true)
PedIgnoreAttacks(testPed[2].id, true)
PedIgnoreAttacks(testPed[3].id, true)
PedIgnoreAttacks(townie, false)
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x16
push 0x1
push edi
call LuaParam::GetBool
movzx eax, al
add esp, 0x8
mov dword ptr [esi+0x1360], eax
pop edi
xor eax, eax
pop esi
ret
L_PedExec("gymjocks", PedIgnoreStimuli, "id", true)
L_PedExec("spectator", PedIgnoreStimuli, "id", true)
L_PedExec(enemyteamGroup, PedIgnoreStimuli, "id", true)
L_PedExec(myteamGroup, PedIgnoreStimuli, "id", true)
PedIgnoreStimuli(algie, false)
PedIgnoreStimuli(algie, true)
PedIgnoreStimuli(beatrice, false)
PedIgnoreStimuli(beatrice, true)
PedIgnoreStimuli(bioTeacher, true)
PedIgnoreStimuli(burton, true)
PedIgnoreStimuli(car.driver, true)
PedIgnoreStimuli(chemTeach, true)
PedIgnoreStimuli(clerk, true)
PedIgnoreStimuli(clint, false)
PedIgnoreStimuli(clint, true)
PedIgnoreStimuli(CoachBurton.id, true)
PedIgnoreStimuli(cop, true)
PedIgnoreStimuli(cop2, true)
PedIgnoreStimuli(currentPed.id, true)
PedIgnoreStimuli(dataTable[1].id, false)
PedIgnoreStimuli(davis, true)
PedIgnoreStimuli(driver, true)
PedIgnoreStimuli(dude, false)
PedIgnoreStimuli(dude, true)
PedIgnoreStimuli(dude.id, true)
PedIgnoreStimuli(Earnest, true)
PedIgnoreStimuli(edgar, false)
PedIgnoreStimuli(edgar, true)
PedIgnoreStimuli(edna, true)
PedIgnoreStimuli(Edna, true)
PedIgnoreStimuli(elf_01, true)
PedIgnoreStimuli(elf_02, true)
PedIgnoreStimuli(elf_03, true)
PedIgnoreStimuli(elf_04, true)
PedIgnoreStimuli(endPed, true)
PedIgnoreStimuli(EnemyTable[i].handle, true)
PedIgnoreStimuli(entry, false)
PedIgnoreStimuli(entry.handle, true)
PedIgnoreStimuli(entry.id, false)
PedIgnoreStimuli(entry.id, true)
PedIgnoreStimuli(Entry.id, true)
PedIgnoreStimuli(frBeardedWoman, true)
PedIgnoreStimuli(frMermaid, true)
PedIgnoreStimuli(frPaintedMan, true)
PedIgnoreStimuli(frSiamese02, true)
PedIgnoreStimuli(frSkeletonMan, true)
PedIgnoreStimuli(galloway, true)
PedIgnoreStimuli(GateNerd.id, false)
PedIgnoreStimuli(GateNerd.id, true)
PedIgnoreStimuli(gBully01, true)
PedIgnoreStimuli(gBully02, true)
PedIgnoreStimuli(gBully03, true)
PedIgnoreStimuli(gCannonNerd, true)
PedIgnoreStimuli(gCarny, false)
PedIgnoreStimuli(gCarny, true)
PedIgnoreStimuli(gChaseCarDriver, true)
PedIgnoreStimuli(gClerk, true)
PedIgnoreStimuli(gCop1, true)
PedIgnoreStimuli(gCop2, true)
PedIgnoreStimuli(gCurrentBully01, true)
PedIgnoreStimuli(gCurrentBully02, true)
PedIgnoreStimuli(gDavis, true)
PedIgnoreStimuli(gEdgar, true)
PedIgnoreStimuli(gEnemy01, false)
PedIgnoreStimuli(gEnemy01, true)
PedIgnoreStimuli(gEnemy02, false)
PedIgnoreStimuli(gEnemy02, true)
PedIgnoreStimuli(gEnemy03, false)
PedIgnoreStimuli(gEnemy03, true)
PedIgnoreStimuli(gFatty, false)
PedIgnoreStimuli(gFatty, true)
PedIgnoreStimuli(gGalloway, true)
PedIgnoreStimuli(gGary, false)
PedIgnoreStimuli(gGary, true)
PedIgnoreStimuli(gHallMon, false)
PedIgnoreStimuli(gHattrick, false)
PedIgnoreStimuli(gHattrick, true)
PedIgnoreStimuli(gHobo, true)
PedIgnoreStimuli(gJohnny, true)
PedIgnoreStimuli(gJohnnyV, true)
PedIgnoreStimuli(gJV_OnBike, true)
PedIgnoreStimuli(gLackey[8].ped, true)
PedIgnoreStimuli(gMandy, false)
PedIgnoreStimuli(gMandy, true)
PedIgnoreStimuli(gMelvin, true)
PedIgnoreStimuli(gMsPhillips, true)
PedIgnoreStimuli(gord, true)
PedIgnoreStimuli(gPeanut, true)
PedIgnoreStimuli(gPeter, true)
PedIgnoreStimuli(gPlayer, false)
PedIgnoreStimuli(gPlayer, true)
PedIgnoreStimuli(gPrefect, false)
PedIgnoreStimuli(gPrefect, true)
PedIgnoreStimuli(gPrefect1, true)
PedIgnoreStimuli(gPushers[1], true)
PedIgnoreStimuli(gPushers[2], true)
PedIgnoreStimuli(greaser1, false)
PedIgnoreStimuli(greaser1, true)
PedIgnoreStimuli(greaser2, false)
PedIgnoreStimuli(greaser2, true)
PedIgnoreStimuli(gRudy, true)
PedIgnoreStimuli(gRunnerId, true)
PedIgnoreStimuli(gTed, true)
PedIgnoreStimuli(gThad, false)
PedIgnoreStimuli(gThad, true)
PedIgnoreStimuli(guard, false)
PedIgnoreStimuli(hattrick, true)
PedIgnoreStimuli(iCheer01, true)
PedIgnoreStimuli(iCheer02, true)
PedIgnoreStimuli(iCheer03, true)
PedIgnoreStimuli(iCheer04, true)
PedIgnoreStimuli(iCheer05, true)
PedIgnoreStimuli(id, false)
PedIgnoreStimuli(id, true)
PedIgnoreStimuli(idBiff, true)
PedIgnoreStimuli(idBurton, true)
PedIgnoreStimuli(idDarby, false)
PedIgnoreStimuli(idDarby, true)
PedIgnoreStimuli(idDO, false)
PedIgnoreStimuli(idDO, true)
PedIgnoreStimuli(idGord.id, true)
PedIgnoreStimuli(idLola, false)
PedIgnoreStimuli(idLola, true)
PedIgnoreStimuli(idNemesis, true)
PedIgnoreStimuli(idPeter, false)
PedIgnoreStimuli(idPeter, true)
PedIgnoreStimuli(idPinky.id, false)
PedIgnoreStimuli(idPinky.id, true)
PedIgnoreStimuli(idRussell, true)
PedIgnoreStimuli(idZoe, false)
PedIgnoreStimuli(idZoe, true)
PedIgnoreStimuli(item.elf, true)
PedIgnoreStimuli(johnny, false)
PedIgnoreStimuli(johnny, true)
PedIgnoreStimuli(kissGirl, false)
PedIgnoreStimuli(librarian, false)
PedIgnoreStimuli(librarian, true)
PedIgnoreStimuli(lola, true)
PedIgnoreStimuli(lVictim[VictimCounter], true)
PedIgnoreStimuli(lVictim[vIndex], false)
PedIgnoreStimuli(mandy, false)
PedIgnoreStimuli(mandy, true)
PedIgnoreStimuli(Mascot, true)
PedIgnoreStimuli(Objectives[1].id, false)
PedIgnoreStimuli(Objectives[1].id, true)
PedIgnoreStimuli(Objectives[2].id, false)
PedIgnoreStimuli(Objectives[2].id, true)
PedIgnoreStimuli(Objectives[3].id, false)
PedIgnoreStimuli(Objectives[3].id, true)
PedIgnoreStimuli(Objectives[4].id, false)
PedIgnoreStimuli(Objectives[4].id, true)
PedIgnoreStimuli(Objectives[5].id, false)
PedIgnoreStimuli(Objectives[5].id, true)
PedIgnoreStimuli(ped, bool)
PedIgnoreStimuli(ped, false)
PedIgnoreStimuli(ped, isSideline)
PedIgnoreStimuli(ped, true)
PedIgnoreStimuli(ped.id, ped.asleep)
PedIgnoreStimuli(ped.id, ped.ignoreStimuli)
PedIgnoreStimuli(ped.id, true)
PedIgnoreStimuli(ped1, false)
PedIgnoreStimuli(ped1, true)
PedIgnoreStimuli(pedAlgie.id, false)
PedIgnoreStimuli(pedAlgie.id, true)
PedIgnoreStimuli(pedAngieGym.id, true)
PedIgnoreStimuli(pedBurton.id, false)
PedIgnoreStimuli(pedBurton.id, true)
PedIgnoreStimuli(pedBurtonStage3.id, false)
PedIgnoreStimuli(pedBurtonStage3.id, true)
PedIgnoreStimuli(pedChristyGym.id, true)
PedIgnoreStimuli(pedCornelius.id, false)
PedIgnoreStimuli(pedCornelius.id, true)
PedIgnoreStimuli(pedDog.id, false)
PedIgnoreStimuli(pedDog.id, true)
PedIgnoreStimuli(pedEarnest.id, false)
PedIgnoreStimuli(pedEarnest.id, true)
PedIgnoreStimuli(pedGary.id, false)
PedIgnoreStimuli(pedGary.id, true)
PedIgnoreStimuli(pedGord, false)
PedIgnoreStimuli(pedGord, true)
PedIgnoreStimuli(pedGreaser01.id, true)
PedIgnoreStimuli(pedGreaser02.id, true)
PedIgnoreStimuli(pedHattrick.id, true)
PedIgnoreStimuli(pedID, false)
PedIgnoreStimuli(pedid, false)
PedIgnoreStimuli(pedid, true)
PedIgnoreStimuli(PedID, true)
PedIgnoreStimuli(pedJock.id, true)
PedIgnoreStimuli(pedKlepto.id, true)
PedIgnoreStimuli(pedMandy.id, true)
PedIgnoreStimuli(pedMandyGym.id, true)
PedIgnoreStimuli(pedMascot.id, true)
PedIgnoreStimuli(pedPinky.id, false)
PedIgnoreStimuli(pedPinkyGym.id, true)
PedIgnoreStimuli(pedPoolPrep.id, true)
PedIgnoreStimuli(pedPrefectKarl.id, false)
PedIgnoreStimuli(pedPrefectKarl.id, true)
PedIgnoreStimuli(pedPrep.id, true)
PedIgnoreStimuli(pedStoreOwner.id, false)
PedIgnoreStimuli(pedStoreOwner.id, true)
PedIgnoreStimuli(pedZoe.id, true)
PedIgnoreStimuli(Petey, false)
PedIgnoreStimuli(Petey, true)
PedIgnoreStimuli(phillips, false)
PedIgnoreStimuli(phillips, true)
PedIgnoreStimuli(prefect, true)
PedIgnoreStimuli(prepId, false)
PedIgnoreStimuli(race.countdown_ped.id, true)
PedIgnoreStimuli(racer.id, true)
PedIgnoreStimuli(referee, true)
PedIgnoreStimuli(russell, true)
PedIgnoreStimuli(santa, true)
PedIgnoreStimuli(ScenarioPed, true)
PedIgnoreStimuli(shared.ped1, true)
PedIgnoreStimuli(sheet1Bruiser, false)
PedIgnoreStimuli(sheet1Bruiser, true)
PedIgnoreStimuli(sheet1Guard, false)
PedIgnoreStimuli(sheet1Guard, true)
PedIgnoreStimuli(sheet4Guard, false)
PedIgnoreStimuli(sheet4Guard, true)
PedIgnoreStimuli(spud_nerd, true)
PedIgnoreStimuli(student1, true)
PedIgnoreStimuli(student2, true)
PedIgnoreStimuli(student3, true)
PedIgnoreStimuli(sweater_guard, true)
PedIgnoreStimuli(tblGordWH.id, true)
PedIgnoreStimuli(tblPrep1WH.id, true)
PedIgnoreStimuli(tblPrep2WH.id, true)
PedIgnoreStimuli(tblRaceInfo.race.countdown_ped.id, false)
PedIgnoreStimuli(tblRaceInfo.race.countdown_ped.id, true)
PedIgnoreStimuli(teacher, true)
PedIgnoreStimuli(townie, false)
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x16
push 0x1
push edi
call LuaParam::GetBool
movzx eax, al
add esp, 0x8
mov dword ptr [esi+0x1370], eax
pop edi
xor eax, eax
pop esi
ret
if not PedInConversation(gPlayer) and not MissionActive() then
if storeAvailable and F_CheckClock() and not PedInConversation(gPlayer) and PlayerIsInAreaXYZ(x, y, z, 0.5, 9) then
while not bSkip and PedInConversation(gPlayer) do
while PedInConversation(gClerk) do
while PedInConversation(gLackey[20].ped) do
while PedInConversation(gPlayer) do
while PedInConversation(gPlayer) or PedInConversation(idFireman) do
while PedInConversation(ped1) or PedInConversation(ped2) do
while PedInConversation(pedFocus) or PedInConversation(gPlayer) do
while PedInConversation(principal) do
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
jnz 0x14
push eax
push esi
call LuaParam::PushBool
mov eax, 0x1
add esp, 0x8
pop esi
pop ecx
ret
push eax
mov ecx, 0xB9DAB8
call 0x683F40
mov byte ptr [esp+0x4], al
mov eax, dword ptr [esp+0x4]
push eax
push esi
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
pop esi
pop ecx
ret
PedInRectangle(opponent, matX1, matY1, matX2, matY2)
sub esp, 0x2C
push esi
mov esi, dword ptr [esp+0x34]
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov edx, eax
neg edx
sbb edx, edx
mov ecx, esp
add edx, 0x3
push eax
mov dword ptr [ecx], edx
call 0x5C7380
fldz
mov ecx, dword ptr [eax+0x14]
fst dword ptr [esp+0x1C], st
add esp, 0x8
fstp dword ptr [esp+0x20], st
test ecx, ecx
jz 0x7
lea eax, ptr [ecx+0x30]
jmp 0x5
add eax, 0x4
mov ecx, dword ptr [eax]
mov edx, dword ptr [eax+0x4]
mov eax, dword ptr [eax+0x8]
push 0x1
push esi
mov dword ptr [esp+0x2C], ecx
mov dword ptr [esp+0x30], edx
mov dword ptr [esp+0x34], eax
call LuaParam::GetFloat
fstp dword ptr [esp+0xC], st
push 0x3
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x18], st
fld st, dword ptr [esp+0x14]
add esp, 0x10
fld st, dword ptr [esp+0x8]
fcom st, st(1)
fnstsw ax
test ah, 0x41
jnz 0x6
fstp st(0), st
jmp 0x4
fstp st(1), st
push 0x2
fstp dword ptr [esp+0x10], st
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x10], st
push 0x4
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x14], st
fld st, dword ptr [esp+0x18]
add esp, 0x10
fld st, dword ptr [esp+0x4]
fcom st, st(1)
fnstsw ax
test ah, 0x41
jnz 0x6
fstp st(0), st
jmp 0x4
fstp st(1), st
push 0x1
fstp dword ptr [esp+0x14], st
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x10], st
push 0x3
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x14], st
fld st, dword ptr [esp+0x18]
add esp, 0x10
fld st, dword ptr [esp+0x4]
fcom st, st(1)
fnstsw ax
test ah, 0x5
jp 0x6
fstp st(0), st
jmp 0x4
fstp st(1), st
push 0x2
fstp dword ptr [esp+0x1C], st
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x10], st
push 0x4
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x14], st
fld st, dword ptr [esp+0x18]
add esp, 0x10
fld st, dword ptr [esp+0x4]
fcom st, st(1)
fnstsw ax
test ah, 0x5
jp 0x6
fstp st(0), st
jmp 0x4
fstp st(1), st
mov eax, dword ptr [esp+0x14]
fstp dword ptr [esp+0x1C], st
fld st, dword ptr [esp+0x24]
mov ecx, dword ptr [esp+0xC]
fld st, dword ptr [esp+0xC]
mov edx, dword ptr [esp+0x10]
mov dword ptr [0xCFB394], eax
fcomp st, st(1)
mov eax, dword ptr [esp+0x20]
mov dword ptr [0xCFB3A0], eax
mov dword ptr [0xCFB38C], ecx
mov ecx, dword ptr [esp+0x18]
fnstsw ax
mov dword ptr [0xCFB390], edx
test ah, 0x41
mov edx, dword ptr [esp+0x1C]
mov dword ptr [0xCFB398], ecx
mov dword ptr [0xCFB39C], edx
jp 0x34
fld st, dword ptr [esp+0x18]
fcompp
fnstsw ax
test ah, 0x1
jnz 0x29
fld st, dword ptr [esp+0x28]
fld st, dword ptr [esp+0x10]
fcomp st, st(1)
fnstsw ax
test ah, 0x41
jp 0x16
fld st, dword ptr [esp+0x1C]
fcompp
fnstsw ax
test ah, 0x1
jnz 0xB
mov byte ptr [esp+0x4], 0x1
jmp 0x9
fstp st(0), st
mov byte ptr [esp+0x4], 0x0
mov ecx, dword ptr [esp+0x4]
push ecx
push esi
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
pop esi
add esp, 0x2C
ret
if not bSleeperAwake and PedIsAlerted(gSleepingOrderly, 2000) and PedIsInAreaObject(gSleepingOrderly, gPlayer, 2, 8, 0) then
while not (not (not PedIsAlerted(idPetey.id, 500) and PedIsInAreaObject(idPetey.id, gPlayer, 2, 8, 0)) or bFailedDueToViolence) do
sub esp, 0x28
push ebx
mov ebx, dword ptr [esp+0x30]
push ebp
push esi
push edi
xor edi, edi
push edi
push ebx
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov ebp, dword ptr [0xC1AEA8]
mov esi, eax
add esp, 0x8
test esi, esi
jnz 0x16
push eax
push ebx
call LuaParam::PushBool
add esp, 0x8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
push ebx
call 0x73AEA0
add esp, 0x4
cmp eax, 0x2
jl 0xF
push 0x1
push ebx
call LuaParam::GetInt
add esp, 0x8
mov edi, eax
push ebp
lea ecx, ptr [esi+0xA64]
call 0x48D470
test al, al
jz 0x3C
cmp dword ptr [esi+0x4D8], 0x0
jnz 0xD
mov eax, dword ptr [0xC1A9B4]
mov dword ptr [esi+0x4D8], eax
mov ecx, dword ptr [esi+0x4D8]
add ecx, edi
cmp dword ptr [0xC1A9B4], ecx
jb 0x22
push ebp
lea ecx, ptr [esi+0x3BC]
call 0x48C480
mov byte ptr [esp+0x10], 0x1
jmp 0x12C
mov dword ptr [esi+0x4D8], 0x0
mov eax, dword ptr [esi+0x14]
test eax, eax
mov edi, dword ptr [0xC1AEA8]
jz 0x7
add eax, 0x30
jmp 0x5
lea eax, ptr [esi+0x4]
mov edx, dword ptr [eax]
mov dword ptr [esp+0x14], edx
mov ecx, dword ptr [eax+0x4]
mov dword ptr [esp+0x18], ecx
mov edx, dword ptr [eax+0x8]
mov dword ptr [esp+0x1C], edx
fld st, dword ptr [esp+0x1C]
fadd qword ptr [0x900980]
fstp dword ptr [esp+0x1C], st
mov eax, dword ptr [edi+0x14]
test eax, eax
jz 0x7
add eax, 0x30
jmp 0x5
lea eax, ptr [edi+0x4]
mov ecx, dword ptr [eax]
mov dword ptr [esp+0x20], ecx
mov edx, dword ptr [eax+0x4]
mov dword ptr [esp+0x24], edx
mov eax, dword ptr [eax+0x8]
mov dword ptr [esp+0x28], eax
fld st, dword ptr [esp+0x28]
fadd qword ptr [0x8FF1D8]
lea ecx, ptr [esp+0x14]
push ecx
lea edx, ptr [esp+0x24]
push edx
fstp dword ptr [esp+0x30], st
lea eax, ptr [esp+0x34]
push eax
call 0x414B70
fld st, dword ptr [eax+0x4]
fld st, dword ptr [eax]
add esp, 0xC
fld st, dword ptr [eax+0x8]
fld st, st(1)
fmulp st(2), st
fld st, st(2)
fmulp st(3), st
fxch st, st(1)
faddp st(2), st
fmul st(0), st
faddp st(1), st
fstp dword ptr [esp+0x10], st
fld st, dword ptr [esp+0x10]
fabs
fstp dword ptr [esp+0x10], st
fld st, dword ptr [esp+0x10]
fstp dword ptr [esp+0x10], st
fld st, dword ptr [esp+0x10]
call 0x85C500
fstp dword ptr [esp+0x10], st
fld st, dword ptr [esp+0x10]
fstp dword ptr [esp+0x10], st
call 0x4A5A90
fld st, dword ptr [esp+0x10]
fcompp
fnstsw ax
test ah, 0x5
jp 0x15
push edi
lea ecx, ptr [esi+0x3BC]
call 0x48C480
mov byte ptr [esp+0x10], 0x1
jmp 0x38
push ebx
mov edi, 0xC8
call 0x73AEA0
add esp, 0x4
cmp eax, 0x3
jl 0xF
push 0x1
push ebx
call LuaParam::GetInt
add esp, 0x8
mov edi, eax
mov ecx, dword ptr [0xC2C1A0]
push edi
push esi
call 0x4A61A0
test eax, eax
setnz cl
mov byte ptr [esp+0x10], cl
mov edx, dword ptr [esp+0x10]
push edx
push ebx
call LuaParam::PushBool
add esp, 0x8
pop edi
pop esi
pop ebp
mov eax, 0x1
pop ebx
add esp, 0x28
ret
-- never used
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
jnz 0x13
push eax
push esi
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
pop esi
ret
push 0x1
push esi
call LuaParam::GetInt
push 0x0
push esi
call LuaParam::PushBool
add esp, 0x10
mov eax, 0x1
pop esi
ret
-- never used
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
push 0x0
push esi
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
pop esi
ret
--print(" GREASER CHECK ", PedIsDead(aliveGreaser01), PedIsDead(aliveGreaser02))
--print(">>>[RUI]", "Chase2_WaitForPathEnd: bDoneFleeGarage or PedIsDead(gDavis)")
elseif blipType == "CHAR" and not PedIsDead(point) then
elseif gBeatrice and PedIsValid(gBeatrice) and PedIsDead(gBeatrice) then
elseif not PedIsDead(idDO) and DistanceBetweenPeds2D(gPlayer, idDO) > 55 then
elseif not PedIsDead(idDO) and DistanceBetweenPeds2D(gPlayer, idDO) > 75 then
elseif not PedIsDead(ped) then
elseif not PedIsDead(tableBathroomPeds[i]) then
elseif not PlayerIsInTrigger(TRIGGER._3_R06_KILL_ZONE) and not PedIsDead(damon) and damontable ~= {} then
elseif not PlayerIsInTrigger(TRIGGER._3_R06_KILL_ZONE) and not PedIsDead(dan) and dantable ~= {} then
elseif not PlayerIsInTrigger(TRIGGER._3_R06_KILL_ZONE) and not PedIsDead(kirby) and kirbytable ~= {} then
elseif PedIsDead(frMidget01) or PedGetHealth(frMidget01) <= 0 then
elseif PedIsDead(frMidget02) or PedGetHealth(frMidget02) <= 0 then
elseif PedIsDead(gBeatrice) then
elseif PedIsDead(iGreaser02) then
elseif PedIsDead(iGreaser03) then
elseif PedIsDead(mandy) then
elseif PedIsDead(ped) then
elseif PedIsDead(pedFirstBully.id) and not bUnlockedStage2 then
elseif PedIsDead(pedGreaser03.id) and PedIsDead(pedGreaser04.id) then
elseif PedIsDead(ScenarioPed) or PedGetWhoHitMeLast(ScenarioPed) == gPlayer and not F_PedIsDead(gPlayer) then
elseif PedIsDead(ScenarioPed) then
elseif PedIsValid(gNerds[2]) and not PedIsDead(gNerds[2]) then
elseif PedIsValid(gSpazzMan) and PedIsDead(gSpazzMan) then
elseif PedIsValid(gTablePeds[gCurrentJock].id) and not PedIsDead(gTablePeds[gCurrentJock].id) and 0 < PedGetHealth(gTablePeds[gCurrentJock].id) then
elseif PedIsValid(gTed) and PedIsDead(gTed) then
elseif shared.gBif and PedIsValid(shared.gBif) and PedIsDead(shared.gBif) then
if (not PedIsValid(gTablePeds[1].id) or PedIsDead(gTablePeds[1].id)) and (not PedIsValid(gTablePeds[2].id) or PedIsDead(gTablePeds[2].id)) then
if (ped.model == 18 or ped.model == 13) and ped.id and PedIsValid(ped.id) and not PedIsDead(ped.id) then
if (PedIsDead(tblEntry.id) or PedGetHealth(tblEntry.id) <= 0) and tblEntry.id ~= nil and gPleaseCreateSomeHealth then
if bActive and PedIsDead(ScenarioPed) and not F_PedIsDead(gPlayer) then
if bActive and PedIsValid(Dog) and (PedIsInCombat(Dog) or PedIsDead(Dog) or PedGetWhoHitMeLast(Dog) == gPlayer or PedIsDoingTask(Dog, "/Global/AI_Dog/GeneralObjectives/FleeObjective", true) and not F_PedIsDead(gPlayer)) then
if bActive and PedIsValid(Dog) and (PedIsInCombat(Dog) or PedIsDead(Dog) or PedGetWhoHitMeLast(Dog) == gPlayer or PedIsDoingTask(Dog, "/Global/AI_Dog/GeneralObjectives/FleeObjective", true)) then
if bDarbyFightStarted and idDarby ~= nil and not bPrepsAlive and (PedIsDead(idDarby) or PedGetHealth(idDarby) <= 0) then
if beatrice ~= nil and not PedIsDead(beatrice) then
if bFightingFirstFloorBathroomJocks and PedIsDead(pedJockBathroomFirstFloor01.id) and PedIsDead(pedJockBathroomFirstFloor02.id) then
if bUpstairsBulliesActive and PedIsDead(pedJockBathroomSecondFloor01.id) and pedJockBathroomSecondFloor02.id then
if entity.ped and PedIsValid(entity.ped) and (PedIsDead(entity.ped) or PedGetHealth(entity.ped) <= 0) then
if F_EnemyActive(enemy) and not PedIsDead(enemy.id) then
if gAsylumTable.ped1 ~= nil and gAsylumTable.ped1 ~= -1 and not PedIsDead(gAsylumTable.ped1) then
if gAsylumTable.ped2 ~= nil and gAsylumTable.ped2 ~= -1 and not PedIsDead(gAsylumTable.ped2) then
if gBeatrice ~= nil and not PedIsDead(gBeatrice) then
if gBully01 and not PedIsDead(gBully01) and PedIsValid(gBully01) then
if gCurrentBully01 and PedIsValid(gCurrentBully01) and not PedIsDead(gCurrentBully01) then
if gCurrentBully02 and PedIsValid(gCurrentBully02) and not PedIsDead(gCurrentBully02) then
if gEnemies[i].id and not PedIsDead(gEnemies[i].id) and gEnemies[i].isRequired then
if gFatty ~= nil and not PedIsDead(gFatty) then
if gGary and PedIsValid(gGary) and PedIsDead(gGary) then
if gHoboDied and PedIsValid(gHobo) and not PedIsDead(gHobo) then
if gLackey[10].ped ~= nil and not PedIsDead(gLackey[10].ped) then
if gLackey[11].ped ~= nil and not PedIsDead(gLackey[11].ped) then
if gLackey[12].ped ~= nil and not PedIsDead(gLackey[12].ped) then
if gLackey[1].ped ~= nil and not PedIsDead(gLackey[1].ped) then
if gLackey[20].ped ~= nil and not PedIsDead(gLackey[20].ped) then
if gLackey[21].ped ~= nil and not PedIsDead(gLackey[21].ped) then
if gLackey[22] ~= nil and not PedIsDead(gLackey[22]) then
if gLackey[2].ped ~= nil and not PedIsDead(gLackey[2].ped) then
if gLackey[30].ped ~= nil and not PedIsDead(gLackey[30].ped) then
if gLackey[31].ped ~= nil and not PedIsDead(gLackey[31].ped) then
if gLackey[32].ped ~= nil and not PedIsDead(gLackey[32].ped) then
if gLackey[33].ped ~= nil and not PedIsDead(gLackey[33].ped) then
if gLackey[35] ~= nil and not PedIsDead(gLackey[35]) then
if gLackey[36] ~= nil and not PedIsDead(gLackey[36]) then
if gLackey[37] ~= nil and not PedIsDead(gLackey[37]) then
if gLackey[38] ~= nil and not PedIsDead(gLackey[38]) then
if gLackey[39] ~= nil and not PedIsDead(gLackey[39]) then
if gLackey[3].ped ~= nil and not PedIsDead(gLackey[3].ped) then
if gLackey[40].ped ~= nil and not PedIsDead(gLackey[40].ped) then
if gLackey[4].ped ~= nil and not PedIsDead(gLackey[4].ped) then
if gLackey[5].ped ~= nil and not PedIsDead(gLackey[5].ped) then
if gLackey[6].ped ~= nil and not PedIsDead(gLackey[6].ped) then
if gLackey[7].ped ~= nil and not PedIsDead(gLackey[7].ped) then
if gLackey[8].ped ~= nil and not PedIsDead(gLackey[8].ped) then
if gLackey[9].ped ~= nil and not PedIsDead(gLackey[9].ped) then
if gLackey[i].bActivated and gLackey[i].ped ~= nil and not PedIsDead(gLackey[i].ped) then
if Greaser1 and PedIsValid(Greaser1) and PedIsDead(Greaser1) or Greaser2 and PedIsValid(Greaser2) and PedIsDead(Greaser2) then
if gRetirementTable.ped1 ~= nil and gRetirementTable.ped1 ~= -1 and not PedIsDead(gRetirementTable.ped1) then
if gRetirementTable.ped2 ~= nil and gRetirementTable.ped2 ~= -1 and not PedIsDead(gRetirementTable.ped2) then
if gRetirementTable.ped3 ~= nil and gRetirementTable.ped3 ~= -1 and not PedIsDead(gRetirementTable.ped3) then
if gRetirementTable.ped4 ~= nil and gRetirementTable.ped4 ~= -1 and not PedIsDead(gRetirementTable.ped4) then
if gRetirementTable.ped5 ~= nil and gRetirementTable.ped5 ~= -1 and not PedIsDead(gRetirementTable.ped5) then
if gRussell and PedIsDead(gRussell) then
if gRussell and PedIsValid(gRussell) and not PedIsDead(gRussell) then
if gSecPathNode == PathGetLastNode(PATH._1_01_SECPATH) and gSecretary and PedIsValid(gSecretary) and not PedIsDead(gSecretary) then
if gSecretary and PedIsValid(gSecretary) and not PedIsDead(gSecretary) then
if gSiloAttack01 and not gPlayerHasKey and PedIsDead(idOmar) then
if gStoreInitiated and gClerk and not PedIsDead(gClerk) then
if id2ndMan and not PedIsDead(id2ndMan) then
if id2ndMan and PedIsValid(id2ndMan) and not PedIsDead(id2ndMan) then
if idHitMan and not PedIsDead(idHitMan) and id2ndMan and not PedIsDead(id2ndMan) then
if idHitMan and not PedIsDead(idHitMan) then
if idHitMan and PedIsValid(idHitMan) and not PedIsDead(idHitMan) then
if idLola ~= nil and not PedIsDead(idLola) then
if idZoe and not PedIsDead(idZoe) then
if item.elf ~= -1 and PedIsValid(item.elf) == true and PedIsDead(item.elf) == false and 0 < PedGetHealth(item.elf) and item.attacking == false then
if item.elf ~= -1 and PedIsValid(item.elf) and PedIsDead(item.elf) == false and 0 < PedGetHealth(item.elf) then
if mandy and (PlayerHasHitPed(mandy) or PedIsDead(mandy)) and gMissionStage ~= "passed" then
if math.random(1, 100) > 50 and not PedIsDead(gDefenders[1]) then
if melvintable ~= {} and not PedIsDead(melvin) then
if not ((not (gRooftopPeds1[1] and PedIsValid(gRooftopPeds1[1])) or PedIsDead(gRooftopPeds1[1])) and (not (gRooftopPeds1[2] and PedIsValid(gRooftopPeds1[2])) or PedIsDead(gRooftopPeds1[2]))) or gPeanut and PedIsValid(gPeanut) and not PedIsDead(gPeanut) then
if not attacking and ped2 ~= nil and not PedIsDead(ped2) and PedCanSeeObject(ped2, gPlayer, 3) then
if not bAlgieLeftBullySpeech and bUnlockedStage2 and bBulliesLeftAttack and PedIsDead(pedBulliesLeft01.id) and PedIsDead(pedBulliesLeft02.id) and PedIsDead(pedBulliesLeft03.id) then
if not bAlgieRightBullySpeech and bUnlockedStage2 and bBulliesRightAttack and PedIsDead(pedBulliesRight01.id) and PedIsDead(pedBulliesRight02.id) then
if not bChocolatesSpawned and not bBullyDead and PedIsDead(pedConstantine.id) then
if not bCostumeSpawned and PedIsDead(pedMascot.id) then
if not bIsKO and (PedIsDead(idPed) or PedGetHealth(idPed) <= 0) then
if not bMovedBif and shared.bWeedPlantIsDestroyed and shared.gBif and not PedIsDead(shared.gBif) then
if not bRecruitedPete and not PedIsDead(shared.gGary) and PlayerIsInTrigger(TRIGGER._1_11X1_PETE) then
if not bully.dead and (PedGetHealth(bully.id) <= 0 or PedIsDead(bully.id)) then
if not gPlayerHasKey and PedIsDead(idOmar) then
if not PedIsDead(aliveGreaser01) and not PedIsDead(aliveGreaser02) then
if not PedIsDead(gBlockAOrderly01) then
if not PedIsDead(gBlockAOrderly02) then
if not PedIsDead(gChaser01) then
if not PedIsDead(gChaser02) then
if not PedIsDead(gCrazy01) then
if not PedIsDead(gGary) then
if not PedIsDead(gLackey[20].ped) then
if not PedIsDead(gPete) then
if not PedIsDead(id) then
if not PedIsDead(idNemesis) then
if not PedIsDead(iGreaser01) then
if not PedIsDead(iGreaser02) then
if not PedIsDead(iGreaser03) then
if not PedIsDead(mandy) then
if not PedIsDead(ped) and not PedIsPlaying(ped, actionNode, true) then
if not PedIsDead(ped.id) then
if not PedIsDead(pedFirstBully.id) then
if not PedIsDead(pedGord) then
if not PedIsDead(pedGreaser01.id) then
if not PedIsDead(pedGreaser02.id) then
if not PedIsDead(pedID) then
if not PedIsDead(Prefect1) and PedIsHit(Prefect1, 2, 0) then
if not PedIsDead(tblGreaser1WH.id) then
if not PedIsDead(tblGreaser2WH.id) then
if not PedIsValid(frMidget01) or PedIsDead(frMidget01) then
if not PedIsValid(frMidget02) or PedIsDead(frMidget02) then
if not PedIsValid(gHobo) or PedIsDead(gHobo) then
if not PedIsValid(gTablePeds[gCurrentJock].id) or PedIsDead(gTablePeds[gCurrentJock].id) then
if not PedIsValid(idGord.id) or PedIsDead(idGord.id) or F_PedIsDead(idGord.id) then
if not tblEntry.KO and PedIsDead(tblEntry.id) then
if ped and not PedIsDead(ped) then
if ped ~= 0 and PedIsValid(ped) and not PedIsDead(ped) and PedIsPlaying(ped, "/Global/NLockA/PedPropsActions/Interact/StuffGrap/RCV", false) then
if ped.id and not PedIsDead(ped.id) and PedIsValid(ped.id) then
if ped.id and PedIsDead(ped.id) then
if ped.id ~= 0 and not PedIsDead(ped.id) then
if ped1 ~= nil and not PedIsDead(ped1) and PedCanSeeObject(ped1, gPlayer, 3) then
if ped1 ~= nil and not PedIsDead(ped1) then
if ped2 ~= nil and not PedIsDead(ped2) then
if PedGetHealth(pedID) <= 0 or PedIsDead(pedID) then
if PedIsDead(bGreaserBoss) and PedIsDead(lackey1) and PedIsDead(lackey2) then
if PedIsDead(bJockBoss) and PedIsDead(lackey1) and PedIsDead(lackey2) then
if PedIsDead(bNerdBoss) and PedIsDead(lackey1) and PedIsDead(lackey2) then
if PedIsDead(boxer) or gPlayerWins then
if PedIsDead(bPreppyBoss) and PedIsDead(lackey1) and PedIsDead(lackey2) then
if PedIsDead(edgar) then
if PedIsDead(enemy01.id) and PedIsDead(enemy02.id) then
if PedIsDead(entry) then
if PedIsDead(entry.id) == false then
if PedIsDead(entry.id) or PedGetHealth(entry.id) <= 0 then
if PedIsDead(frMidget01) or PedGetHealth(frMidget01) <= 0 then
if PedIsDead(frMidget02) or PedGetHealth(frMidget02) <= 0 then
if PedIsDead(gBaddie.id) and not gBaddie.dead then
if PedIsDead(gBaddie02.id) and not gBaddie02.dead then
if PedIsDead(gBaddie03.id) and not gBaddie03.dead then
if PedIsDead(gBaddie04.id) and not gBaddie04.dead then
if PedIsDead(gBaddie05.id) and not gBaddie05.dead then
if PedIsDead(gBaddie06.id) and not gBaddie06.dead then
if PedIsDead(gEnemy01) and PedIsDead(gEnemy02) and PedIsDead(gEnemy03) then
if PedIsDead(gPlayer) then
if PedIsDead(iGreaser01) and PedIsDead(iGreaser02) and PedIsDead(iGreaser03) then
if PedIsDead(iGreaser01) then
if PedIsDead(johnny) == false and (PedIsPlaying(gPlayer, "/Global/HitTree/Standing/PostHit/BellyUp", true) or PedIsPlaying(gPlayer, "/Global/HitTree/Standing/PostHit/BellyDown", true)) or pattern == 2 then
if PedIsDead(opponent) then
if PedIsDead(ped) or PedGetHealth(ped) <= 0 then
if PedIsDead(ped.id) and not ped.isDead then
if PedIsDead(pedChad.id) then
if PedIsDead(pedCornelius.id) then
if PedIsDead(pedFirstBully.id) and PedIsDead(pedBulliesLeft01.id) and PedIsDead(pedBulliesLeft02.id) and PedIsDead(pedBulliesLeft03.id) and not bUnlockedStage2 then
if PedIsDead(pedFirstBully.id) and PedIsDead(pedBulliesLeft01.id) and PedIsDead(pedBulliesLeft02.id) and PedIsDead(pedBulliesLeft03.id) and PedIsDead(pedBulliesRight01.id) and PedIsDead(pedBulliesRight02.id) and not bUnlockedStage2 then
if PedIsDead(pedFirstBully.id) and PedIsDead(pedBulliesRight01.id) and PedIsDead(pedBulliesRight02.id) and not bUnlockedStage2 then
if PedIsDead(pedFirstBully.id) then
if PedIsDead(pedGord) then
if PedIsDead(pedGreaserA01.id) and PedIsDead(pedGreaserA02.id) then
if PedIsDead(pedKlepto.id) then
if PedIsDead(pedNorton.id) then
if PedIsDead(pedPinky.id) then
if PedIsDead(pedTad.id) then
if PedIsDead(pTable.pedId) then
if PedIsDead(rat.id) == true or z <= 0.1 then
if PedIsDead(russell) then
if PedIsDead(ScenarioPed) and PedGetWhoHitMeLast(ScenarioPed) == gPlayer then
if PedIsDead(tableCornBullies[i]) then
if PedIsDead(tblEntry.id) or 0 >= PedGetHealth(tblEntry.id) then
if PedIsDead(value) then
if PedIsValid(gChaser01) and not PedIsDead(gChaser01) then
if PedIsValid(gChaser02) and not PedIsDead(gChaser02) then
if PedIsValid(gCrazy01) and not PedIsDead(gCrazy01) then
if PedIsValid(gCrazy02) and not PedIsDead(gCrazy02) then
if PedIsValid(gCrazy03) and not PedIsDead(gCrazy03) then
if PedIsValid(gCrazy04) and not PedIsDead(gCrazy04) then
if PedIsValid(gNerds[1]) and not PedIsDead(gNerds[1]) then
if PedIsValid(gOrderly01) and not PedIsDead(gOrderly01) then
if PedIsValid(gOrderly02) and not PedIsDead(gOrderly02) then
if PedIsValid(gOrderly03) and not PedIsDead(gOrderly03) then
if PedIsValid(gOrderly04) and not PedIsDead(gOrderly04) then
if PedIsValid(GreaserThief.id1) and not PedIsDead(GreaserThief.id1) then
if PedIsValid(GreaserThief.id2) and not PedIsDead(GreaserThief.id2) then
if PedIsValid(GreaserThief.id3) and not PedIsDead(GreaserThief.id3) then
if PedIsValid(GreaserThief.id4) and not PedIsDead(GreaserThief.id4) then
if PedIsValid(gSpazzMan) and not PedIsDead(gSpazzMan) then
if PedIsValid(guy.id) and not PedIsDead(guy.id) then
if PedIsValid(idBurton) and not PedIsDead(idBurton) then
if PedIsValid(idDarby) and not PedIsDead(idDarby) and PedIsInAreaXYZ(idDarby, x, y, z, 0.5, 0) then
if PedIsValid(idDarby) and not PedIsDead(idDarby) then
if PedIsValid(idNemesis) and not PedIsDead(idNemesis) then
if PedIsValid(idPed) and not PedIsDead(idPed) then
if PedIsValid(idRussell) and (not PedIsInVehicle(idRussell, idBike) or PedIsDead(idRussell)) or not PedIsValid(idRussell) then
if PedIsValid(item.elf) == true and (PedIsDead(item.elf) == true or 0 >= PedGetHealth(item.elf)) then
if PedIsValid(item.elf) == true and PedIsDead(item.elf) == false then
if PedIsValid(jock.id) and (PedIsDead(jock.id) or 0 >= PedGetHealth(jock.id)) then
if PedIsValid(ped) and not PedIsDead(ped) and ped ~= gPlayer and PedIsPlaying(ped, "/Global/Garbagecan/PedPropsActions/StuffGrap/RCV", false) then
if PedIsValid(ped) and not PedIsDead(ped) then
if PedIsValid(Petey) and PedIsDead(Petey) then
if PedIsValid(ScenarioPed) == true and AreaGetVisible() == 0 and PedGetFlag(ScenarioPed, 110) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedGetFlag(ScenarioPed, 110) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and (AreaGetVisible() == 2 or AreaGetVisible() == 8) and OutOfRange == false and bFailDueToLackOfRoll == false then
if PedIsValid(ScenarioPed) == true and PedGetFlag(ScenarioPed, 110) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and bAlarmAlreadyOn == false and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedGetFlag(ScenarioPed, 110) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and bSpotted == false and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedGetFlag(ScenarioPed, 110) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and F_CheckIfPlayerHasEggs() == true and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedGetFlag(ScenarioPed, 110) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and leftArea == false and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedGetFlag(ScenarioPed, 110) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedGetFlag(ScenarioPed, 110) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(gPlayer) == false and PedIsDead(ScenarioPed) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedGetFlag(ScenarioPed, 110) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(ScenarioPed) == false and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and F_CheckIfPlayerHasChocolates() == true and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedGetFlag(ScenarioPed, 110) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(ScenarioPed) == false and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedGetFlag(ScenarioPed, 110) == true and PedIsDead(ScenarioPed) == false and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(gPlayer) == false and bTimedOut == false and ObjectiveMet == false and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedGetWhoHitMeLast(ScenarioPed) ~= gPlayer and PedGetFlag(ScenarioPed, 110) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and F_CheckIfPlayerHasCherryBomb() == true and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedHasPOI(ScenarioPed) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(target.id) and not PedIsDead(target.id) then
if PedIsValid(tblEntry.id) and not PedIsDead(tblEntry.id) then
if PedIsValid(tblGord.id) and (PedGetHealth(tblGord.id) == 0 or PedIsDead(tblGord.id)) then
if PedIsValid(tblJohnnyWH.id) and (PedGetHealth(tblJohnnyWH.id) <= 0 or PedIsDead(tblJohnnyWH.id)) then
if PedIsValid(tblPeanut.id) and not PedIsDead(tblPeanut.id) then
if perv.id and not PedIsDead(perv.id) and perv.bAttacked == false and PedGetWhoHitMeLast(perv.id) == gPlayer then
if perv.id and not PedIsDead(perv.id) and perv.id and taggedPoint == perv.trigger and PedIsInAreaObject(perv.id, gPlayer, 3, 6, 0) and not PedIsDead(perv.id) then
if PlayerIsInTrigger(TRIGGER._3_R06_KILL_ZONE) and not PedIsDead(damon) then
if PlayerIsInTrigger(TRIGGER._3_R06_KILL_ZONE) and not PedIsDead(dan) then
if PlayerIsInTrigger(TRIGGER._3_R06_KILL_ZONE) and not PedIsDead(kirby) then
if prepAlive == false and not PedIsDead(ped.id) then
if ratped and ratped.id and PedIsDead(ratped.id) or PedIsValid(ratped.id) and PedGetHealth(ratped.id) <= 0 then
if tdo and not PedIsDead(tdo) then
if tFirstFloorTable.gord.bAlive and tFirstFloorTable.gord.id and PedIsDead(tFirstFloorTable.gord.id) then
if tFirstFloorTable.gord.id ~= nil and PedIsDead(tFirstFloorTable.gord.id) then
if tFirstFloorTable.gord.id ~= nil and PedIsValid(tFirstFloorTable.gord.bAlive) and PedIsDead(tFirstFloorTable.gord.bAlive) then
if tFirstFloorTable.parker.bAlive and tFirstFloorTable.parker.id and PedIsDead(tFirstFloorTable.parker.id) then
if tFirstFloorTable.parker.id ~= nil and PedIsDead(tFirstFloorTable.parker.id) then
if tFirstFloorTable.parker.id ~= nil and PedIsValid(tFirstFloorTable.parker.bAlive) and PedIsDead(tFirstFloorTable.parker.bAlive) then
if thadtable ~= {} and not PedIsDead(thad) then
if tSecondFloorTable.justin.bAlive and tSecondFloorTable.justin.id and PedIsDead(tSecondFloorTable.justin.id) then
if tSecondFloorTable.justin.id ~= nil and PedIsDead(tSecondFloorTable.justin.id) then
if tSecondFloorTable.justin.id ~= nil and PedIsValid(tSecondFloorTable.justin.bAlive) and PedIsDead(tSecondFloorTable.justin.bAlive) then
if tSecondFloorTable.tad.bAlive and tSecondFloorTable.tad.id and PedIsDead(tSecondFloorTable.tad.id) then
if tSecondFloorTable.tad.id ~= nil and PedIsDead(tSecondFloorTable.tad.id) then
if tSecondFloorTable.tad.id ~= nil and PedIsValid(tSecondFloorTable.tad.bAlive) and PedIsDead(tSecondFloorTable.tad.bAlive) then
if tThirdFloorTable.bryce.bAlive and tThirdFloorTable.bryce.id and PedIsDead(tThirdFloorTable.bryce.id) then
if tThirdFloorTable.bryce.id ~= nil and PedIsDead(tThirdFloorTable.bryce.id) then
if tThirdFloorTable.bryce.id ~= nil and PedIsValid(tThirdFloorTable.bryce.bAlive) and PedIsDead(tThirdFloorTable.bryce.bAlive) then
if tThirdFloorTable.chad.bAlive and tThirdFloorTable.chad.id and PedIsDead(tThirdFloorTable.chad.id) then
if tThirdFloorTable.chad.id ~= nil and PedIsDead(tThirdFloorTable.chad.id) then
if tThirdFloorTable.chad.id ~= nil and PedIsValid(tThirdFloorTable.chad.bAlive) and PedIsDead(tThirdFloorTable.chad.bAlive) then
while not (not (Wave_Counter <= 3) or PedIsDead(pedGord)) do
while not (PedIsDead(melvin) or L_PedAllDead(enemyteamGroup)) do
while not (PedIsDead(thad) or L_PedAllDead(enemyteamGroup)) do
while not PedIsDead(damon) do
while not PedIsDead(dan) do
while not PedIsDead(dog) do
while not PedIsDead(idNorton) do
while not PedIsDead(kirby) do
while not PedIsDead(norton) do
while not PedIsDead(pedCornelius.id) do
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push 0x0
push esi
mov byte ptr [esp+0xC], 0x1
call LuaParam::IsInt
add esp, 0x8
test al, al
jz 0x32
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x8
cmp eax, 0xFFFFFFFF
jz 0x22
push ecx
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
jz 0xC
mov al, byte ptr [eax+0x1C98]
mov byte ptr [esp+0x4], al
mov ecx, dword ptr [esp+0x4]
push ecx
push esi
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
pop esi
pop ecx
ret
elseif PedIsDoingTask(currentPed.id, "/Global/AI/Reactions/Stimuli/CowDanceFail", true) and currentPed.speech then
elseif PedIsDoingTask(ScenarioPed, "/Global/AI/GeneralObjectives/POIPoint/Scenario/ScenarioSeek/ScenarioOpen/ScenarioWait/ScenarioDialog/ScenarioOptions/ScenarioObjective/WaitForObjective/ObjectiveOptions/ObjCompleted", false) then
if bActive and PedIsValid(Dog) and (PedIsInCombat(Dog) or PedIsDead(Dog) or PedGetWhoHitMeLast(Dog) == gPlayer or PedIsDoingTask(Dog, "/Global/AI_Dog/GeneralObjectives/FleeObjective", true) and not F_PedIsDead(gPlayer)) then
if bActive and PedIsValid(Dog) and (PedIsInCombat(Dog) or PedIsDead(Dog) or PedGetWhoHitMeLast(Dog) == gPlayer or PedIsDoingTask(Dog, "/Global/AI_Dog/GeneralObjectives/FleeObjective", true)) then
if PedIsDoingTask(currentPed.id, "/Global/AI/Reactions/Stimuli/CowDance", true) or F_PlayerIsDancing() then
if PedIsDoingTask(currentPed.id, "/Global/AI/Reactions/Stimuli/CowDanceSuccess", true) or playerStimulus then
if PedIsDoingTask(gFatty, "/Global/AI/GeneralObjectives/FleeObjective", true) then
if PedIsDoingTask(idEunice.id, "/Global/AI/GeneralObjectives/FleeObjective/Flee", true) then
if PedIsDoingTask(ped, "/Global/AI/Reactions/Criminal/FindTagSpot", true) or PedIsPlaying(ped, "/Global/Tags/PedPropsActions/PerformTag/PedDrawMedTag", true) then
if PedIsDoingTask(ped.id, ped.AIstate, ped.AIrecurse) then
if PedIsDoingTask(pedID, "/Global/AI/Reactions/Stimuli/DeadRat", true) or PedGetLastHitWeapon(pedID) == 346 and PedGetWhoHitMeLast(pedID) == gPlayer and PedIsFemale(pedID) then
if PedIsDoingTask(Petey, "/Global/AI/GeneralObjectives/POIPoint/Scenario/ScenarioSeek/ScenarioOpen", false) == true then
if PedIsDoingTask(Petey, "/Global/AI/GeneralObjectives/POIPoint/Scenario/ScenarioSeek/ScenarioOpen/ScenarioWait/ScenarioDialog", false) == true then
if PedIsDoingTask(Petey, "/Global/AI/GeneralObjectives/POIPoint/Scenario/ScenarioSeek/ScenarioOpen/ScenarioWait/ScenarioDialog/ScenarioAccepted", true) == true then
if PedIsDoingTask(ScenarioPed, "/Global/AI/GeneralObjectives/POIPoint/Scenario/ScenarioSeek/ScenarioOpen", false) == true then
if PedIsDoingTask(ScenarioPed, "/Global/AI/GeneralObjectives/POIPoint/Scenario/ScenarioSeek/ScenarioOpen/ScenarioWait/ScenarioDialog", false) == true then
if PedIsDoingTask(ScenarioPed, "/Global/AI/GeneralObjectives/POIPoint/Scenario/ScenarioSeek/ScenarioOpen/ScenarioWait/ScenarioDialog/ScenarioAccepted", true) == true then
if PedIsDoingTask(tblPrank[1].id, "/Global/AI/GeneralObjectives/POIPoint/Scenario/ScenarioSeek/ScenarioOpen/ScenarioWait/ScenarioDialog", false) == true then
if PedIsDoingTask(tblPrank[2].id, "/Global/AI/GeneralObjectives/POIPoint/Scenario/ScenarioSeek/ScenarioOpen/ScenarioWait/ScenarioDialog", false) == true then
if PedIsDoingTask(tblPrank[2].id, "/Global/AI/GeneralObjectives/POIPoint/Scenario/ScenarioSeek/ScenarioOpen/ScenarioWait/ScenarioDialog/ScenarioAccepted", true) == true then
if PedIsDoingTask(tblPrank[3].id, "/Global/AI/GeneralObjectives/POIPoint/Scenario/ScenarioSeek/ScenarioOpen/ScenarioWait/ScenarioDialog", false) == true then
if PedIsDoingTask(tblPrank[3].id, "/Global/AI/GeneralObjectives/POIPoint/Scenario/ScenarioSeek/ScenarioOpen/ScenarioWait/ScenarioDialog/ScenarioAccepted", true) == true then
if PedIsDoingTask(tblPrank[4].id, "/Global/AI/GeneralObjectives/POIPoint/Scenario/ScenarioSeek/ScenarioOpen/ScenarioWait/ScenarioDialog", false) == true then
if PedIsDoingTask(tblPrank[5].id, "/Global/AI/GeneralObjectives/POIPoint/Scenario/ScenarioSeek/ScenarioOpen/ScenarioWait/ScenarioDialog", false) == true then
if PedIsDoingTask(tblPrank[5].id, "/Global/AI/GeneralObjectives/POIPoint/Scenario/ScenarioSeek/ScenarioOpen/ScenarioWait/ScenarioDialog/ScenarioAccepted", true) == true then
if PedIsDoingTask(tblPrank[6].id, "/Global/AI/GeneralObjectives/POIPoint/Scenario/ScenarioSeek/ScenarioOpen/ScenarioWait/ScenarioDialog", false) == true then
if PedIsDoingTask(tblPrank[6].id, "/Global/AI/GeneralObjectives/POIPoint/Scenario/ScenarioSeek/ScenarioOpen/ScenarioWait/ScenarioDialog/ScenarioAccepted", true) == true then
if PedIsDoingTask(tblPrank[7].id, "/Global/AI/GeneralObjectives/POIPoint/Scenario/ScenarioSeek/ScenarioOpen/ScenarioWait/ScenarioDialog", false) == true then
if PedIsDoingTask(tblPrank[7].id, "/Global/AI/GeneralObjectives/POIPoint/Scenario/ScenarioSeek/ScenarioOpen/ScenarioWait/ScenarioDialog/ScenarioAccepted", true) == true then
if PedIsDoingTask(tblPrank[8].id, "/Global/AI/GeneralObjectives/POIPoint/Scenario/ScenarioSeek/ScenarioOpen/ScenarioWait/ScenarioDialog", false) == true then
if PedIsDoingTask(tblPrank[8].id, "/Global/AI/GeneralObjectives/POIPoint/Scenario/ScenarioSeek/ScenarioOpen/ScenarioWait/ScenarioDialog/ScenarioAccepted", true) == true then
if PedIsInAnyVehicle(ped.id) and not PedIsDoingTask(ped.id, "/Global/AI/OnBike/BikeGeneralObjectives/BBrawl", false) then
if PedIsValid(item.kid) == true and (PedIsDoingTask(item.kid, "/Global/AI/Reactions/Stimuli/Explosion/FleeReaction", true) or PedIsDoingTask(item.kid, "/Global/AI/GeneralObjectives/FleeObjective/Flee", true)) then
if PedIsValid(tagger) and not PedIsDoingTask(tagger, "/Global/AI/Reactions/Criminal/FindTagSpot", true) and not PedIsPlaying(tagger, "/Global/Tags/PedPropsActions/PerformTag/PedDrawMedTag", true) then
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov edx, eax
neg edx
sbb edx, edx
mov ecx, esp
add edx, 0x3
push eax
mov dword ptr [ecx], edx
call 0x5C7380
mov edi, dword ptr [eax+0x2E0]
push 0x2
push esi
call LuaParam::GetBool
add esp, 0x10
push eax
push 0x1
push esi
call LuaParam::GetString
add esp, 0x8
push eax
lea ecx, ptr [edi+0x290]
call 0x5F3D50
mov byte ptr [esp+0x8], al
mov eax, dword ptr [esp+0x8]
push eax
push esi
call LuaParam::PushBool
add esp, 0x8
pop edi
mov eax, 0x1
pop esi
pop ecx
ret
elseif (not PlayerIsInAreaXYZ(pX, pY, pZ, 1, 0) or not PedIsFacingObject(gPlayer, ScenarioPed, 2, 60)) and bLockThePed then
if not PedIsFacingObject(kid, santa, 2, 40) then
if PedIsFacingObject(santa, gPlayer, 3, 40) == false then
if PlayerIsInAreaXYZ(pX, pY, pZ, 1, 0) and PedIsFacingObject(gPlayer, ScenarioPed, 2, 60) and not bLockThePed then
if tblParentPosList[i].spotTaken == true and tblParentPosList[i].parent ~= nil and PedIsValid(tblParentPosList[i].parent) == true and not PedIsFacingObject(tblParentPosList[i].parent, santa, 2, 40) then
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x24]
push edi
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov ebp, eax
add esp, 0x8
test ebp, ebp
jnz 0x5
push eax
jmp 0x76
push 0x1
push esi
call LuaParam::GetInt
push 0x2
push esi
mov edi, eax
call LuaParam::GetInt
push 0x3
push esi
mov ebx, eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x2C], st
push 0x0
push 0x0
push ebx
push edi
mov byte ptr [esp+0x38], 0x0
call 0x5C28D0
add esp, 0x28
test eax, eax
jz 0x3A
push ebx
lea eax, ptr [esp+0x1C]
push edi
push eax
call 0x5C2970
fld st, dword ptr [esp+0x2C]
fstp dword ptr [esp+0x8], st
fld st, dword ptr [esp+0x28]
fstp dword ptr [esp+0x4], st
fld st, dword ptr [esp+0x24]
fstp dword ptr [esp], st
push ecx
fld st, dword ptr [esp+0x24]
fstp dword ptr [esp], st
push ebp
call 0x5C65C0
add esp, 0x14
mov byte ptr [esp+0x10], al
mov ecx, dword ptr [esp+0x10]
push ecx
push esi
call LuaParam::PushBool
add esp, 0x8
pop edi
pop esi
pop ebp
mov eax, 0x1
pop ebx
add esp, 0x14
ret
-- never used
sub esp, 0x10
push esi
mov esi, dword ptr [esp+0x18]
push edi
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov edi, eax
add esp, 0x8
test edi, edi
jnz 0x15
push eax
push esi
call LuaParam::PushBool
add esp, 0x8
lea eax, ptr [edi+0x1]
pop edi
pop esi
add esp, 0x10
ret
push 0x1
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x18], st
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x1C], st
push 0x3
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x20], st
push 0x4
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x34], st
fld st, dword ptr [esp+0x28]
add esp, 0x10
fstp dword ptr [esp+0xC], st
fld st, dword ptr [esp+0x1C]
fstp dword ptr [esp+0x8], st
fld st, dword ptr [esp+0x20]
fstp dword ptr [esp+0x4], st
fld st, dword ptr [esp+0x24]
fstp dword ptr [esp], st
push edi
call 0x5C65C0
mov byte ptr [esp+0x28], al
mov eax, dword ptr [esp+0x28]
push eax
push esi
call LuaParam::PushBool
add esp, 0x1C
pop edi
mov eax, 0x1
pop esi
add esp, 0x10
ret
if not PedIsFemale(ped) then
if PedIsDoingTask(pedID, "/Global/AI/Reactions/Stimuli/DeadRat", true) or PedGetLastHitWeapon(pedID) == 346 and PedGetWhoHitMeLast(pedID) == gPlayer and PedIsFemale(pedID) then
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
jnz 0x13
push eax
push esi
call LuaParam::PushBool
mov eax, 0x1
add esp, 0x8
pop esi
ret
mov ecx, eax
call 0x477DC0
movzx eax, byte ptr [eax+0x50]
push eax
push esi
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
pop esi
ret
elseif not bJock2Fight and (PedCanSeeObject(gTablePeds[2].id, gPlayer, 3) or PedIsHit(gTablePeds[2].id, 2, 1000)) then
elseif not bJock3Fight and (PedCanSeeObject(gTablePeds[3].id, gPlayer, 3) or PedIsHit(gTablePeds[3].id, 2, 1000)) then
elseif PedCanSeeObject(pedLibrarian.id, gPlayer, 3) or PedIsHit(pedLibrarian.id, 2, 500) then
elseif PedIsHit(boxer, 2, 1500) then
elseif PedIsHit(gNerds[1], 2, 1000) and PedGetWhoHitMeLast(gNerds[1]) or PedIsHit(gNerds[2], 2, 1000) and PedGetWhoHitMeLast(gNerds[2]) then
elseif PedIsHit(gPlayer, 2, 1500) then
elseif PedIsHit(gTheo, 2, 500) then
if bBryceSpawned and not bBryceAttacked and PedIsHit(pedBryce, 2, 100) then
if bBustPlayer and AreaGetVisible() == 35 and PedIsValid(shared.gdormHeadID) and (PedCanSeeObject(shared.gdormHeadID, gPlayer, 3) or PedIsHit(shared.gdormHeadID, 2, 500)) then
if bSecondFightCreated and gPeanut and (PlayerIsInAreaObject(gPeanut, 2, 20, 0) or PedIsHit(gPeanut, 2, 1000) and PedGetWhoHitMeLast(gPeanut) == gPlayer) then
if gBathroomSetup and not gMandyHit and gMandy and (PedIsHit(gMandy, 2, 1000) or shared.gAlarmOn) then
if gGreaserAttacker ~= nil and PedIsValid(gGreaserAttacker) and (PlayerIsInAreaObject(gGreaserAttacker, 2, 15, 0) or PedIsHit(gGreaserAttacker, 2, 1000) and PedGetWhoHitMeLast(gGreaserAttacker) == gPlayer) then
if iGreaser01 and PedIsHit(iGreaser01, 2, 1000) then
if iGreaser02 and PedIsHit(iGreaser02, 2, 1000) then
if iGreaser03 and PedIsHit(iGreaser03, 2, 1000) then
if not bAlgieWasAttackedAgain and bAlgieCleanupTags and (PedCanSeeObject(gPlayer, algie, 2) and PlayerIsInAreaObject(algie, 2, 10, 0) or PedIsHit(algie, 2, 1000) and PedGetWhoHitMeLast(algie) == gPlayer) and 0 < PedGetHealth(algie) then
if not bFightingGord and PedIsHit(pedGord, 2, 100) then
if not bJock1Fight and (PedCanSeeObject(gTablePeds[1].id, gPlayer, 3) or PedIsHit(gTablePeds[1].id, 2, 1000)) then
if not bParkerAttacked and PedIsHit(pedParker, 2, 100) then
if not gLastGroupAttacked and PedIsHit(tdo, 2, 1000) and PedGetWhoHitMeLast(tdo) == gPlayer then
if not gStartingUp and (PlayerHasWeapon(342) or PlayerHasWeapon(402) or PlayerHasWeapon(401) or PlayerHasWeapon(384) or PedIsHit(edgar, 2, 1000) or GetTimer() - gTimeFinalStart > 8000) then
if not gStoreLocked and gClerk and PedIsHit(gClerk, 2, 1000) and PedGetWhoHitMeLast(gClerk) == gPlayer then
if not gTablePeds[1].bFight and (PedIsHit(gTablePeds[1].id, 2, 1000) or PlayerIsInTrigger(TRIGGER._4_04_MONITOR01)) then
if not gTablePeds[2].bFight and (PedIsHit(gTablePeds[2].id, 2, 1000) or PlayerIsInTrigger(TRIGGER._4_04_MONITOR02)) then
if not gTablePeds[3].bFight and (PedIsHit(gTablePeds[3].id, 2, 1000) or PlayerIsInTrigger(TRIGGER._4_04_MONITOR03)) then
if not PedIsDead(Prefect1) and PedIsHit(Prefect1, 2, 0) then
if not shared.bBifAttacked and shared.gBif and PedIsValid(shared.gBif) and PedIsHit(shared.gBif, 2, 1000) and PedGetWhoHitMeLast(shared.gBif) == gPlayer then
if PedCanSeeObject(shared.gdormHeadID, gPlayer, 3) or PedIsHit(shared.gdormHeadID, 2, 500) then
if PedExists(pedId) and (PlayerIsInAreaObject(pedId, 2, 7, 0) or PedIsHit(pedId, 2, 1000)) then
if PedIsHit(algie, 2, 1000) and PedGetWhoHitMeLast(algie) == gPlayer and 0 < PedGetHealth(algie) then
if PedIsHit(Earnest, 2, 0) then
if PedIsHit(Earnest, 2, 1000) then
if PedIsHit(EnemyTable[i].handle, 2, 6) and PedGetWhoHitMeLast(EnemyTable[i].handle) == gPlayer then
if PedIsHit(gCarny, 2, 1000) then
if PedIsHit(gClerk, 2, 1000) then
if PedIsHit(gPlayer, 2, 100) then
if PedIsHit(gPlayer, 3, 1000) then
if PedIsHit(idDarby, 2, 1000) and WeaponGetType(PedGetLastHitWeapon(idDarby)) == 0 then
if PedIsHit(Justin, 2, 1000) then
if PedIsHit(ped, 2, 500) and PedGetWhoHitMeLast(ped) == gPlayer then
if PedIsHit(ped, 2, time) and PedGetWhoHitMeLast(ped) == gPlayer then
if PedIsHit(pedAlgie.id, 2, 500) and PedGetWhoHitMeLast(pedAlgie.id) == gPlayer then
if PedIsHit(pedAngieGym.id, 2, 500) and PedGetWhoHitMeLast(pedAngieGym.id) == gPlayer then
if PedIsHit(pedChristyGym.id, 2, 500) and PedGetWhoHitMeLast(pedChristyGym.id) == gPlayer then
if PedIsHit(pedCornelius.id, 2, 100) and PedGetWhoHitMeLast(pedCornelius.id) == gPlayer then
if PedIsHit(pedEarnest.id, 2, 100) and PedGetWhoHitMeLast(pedEarnest.id) == gPlayer then
if PedIsHit(pedGreaser02.id, 2, 1000) and PedGetWhoHitMeLast(pedGreaser02.id) == gPlayer then
if PedIsHit(pedGreaser03.id, 2, 10) and PedGetWhoHitMeLast(pedGreaser03.id) == gPlayer then
if PedIsHit(pedGreaser04.id, 2, 10) and PedGetWhoHitMeLast(pedGreaser04.id) == gPlayer then
if PedIsHit(pedID, 2, 250) then
if PedIsHit(pedMandyBedroom.id, 2, 500) and PedGetWhoHitMeLast(pedMandyBedroom.id) == gPlayer then
if PedIsHit(pedMandyGym.id, 2, 500) then
if PedIsHit(pedMandyShower.id, 2, 500) and PedGetWhoHitMeLast(pedMandyShower.id) == gPlayer then
if PedIsHit(pedMascot.id, 2, 100) or F_MascotIsTaunted() then
if PedIsHit(pedPinkyGym.id, 2, 500) and PedGetWhoHitMeLast(pedPinkyGym.id) == gPlayer then
if PedIsHit(Pedro, 2, 1000) then
if PedIsHit(shared.gBif, 2, 500) and PedGetWhoHitMeLast(shared.gBif) == gPlayer then
if PedIsHit(shared.vendettaClerk, 2, 1000) and PedGetWhoHitMeLast(shared.vendettaClerk) == gPlayer then
if PedIsHit(shared.vendettaClerk, 2, 1000) then
if PedIsHit(tableCornBullies[i], 2, 10) then
if PedIsHit(Trevor, 2, 1000) then
if PedIsValid(earnie) and PedIsHit(earnie, 2, 1000) then
if PedIsValid(Mascot) and PedIsHit(Mascot, 2, 0) and MascotRun == false then
if PedIsValid(ped) and PedIsHit(ped, 2, 500) and PedGetLastHitWeapon(ped) == weapon then
if PedIsValid(tableGirlsToCheck[i]) and PedIsHit(tableGirlsToCheck[i], 2, 1000) and PedGetWhoHitMeLast(tableGirlsToCheck[i]) == gPlayer then
return PedIsHit(ped, 2, 500) and PedGetWhoHitMeLast(ped) == gPlayer
while not (BackAtDorm or PedIsHit(idPeter, 2, 1000)) do
while not (PedCanSeeObject(ped1, gPlayer, 3) or PedIsHit(ped1, 2, 1000) or PlayerIsInTrigger(TRIGGER._3_05_STARTCATWALK)) do
while not (PlayerIsInTrigger(TRIGGER._3_05_STARTSHOOTING) or PedIsHit(tblFirstGrease[5], 2, 1000) or PedIsHit(tblFirstGrease[6], 2, 1000)) do
while not (PlayerIsInTrigger(TRIGGER._3_05_STARTSHOOTING2) or PedIsHit(tblSecondGrease[2], 2, 1000) or PedIsHit(tblSecondGrease[3], 2, 1000) or PedIsHit(tblSecondGrease[4], 2, 1000)) do
push ecx
push esi
push edi
mov edi, dword ptr [esp+0x10]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x6A
push 0x1
push edi
call LuaParam::GetInt
push 0x2
push edi
call LuaParam::GetInt
movzx eax, ax
mov dword ptr [esp+0x18], eax
mov edx, dword ptr [esi]
mov eax, dword ptr [edx+0x40]
fild st, dword ptr [esp+0x18]
add esp, 0x10
mov ecx, esi
fdiv st, qword ptr [0x900138]
fstp dword ptr [esp+0x8], st
call 0x5C8BFA
fld st, dword ptr [0x9009AC]
mov ecx, dword ptr [eax+0x10]
fcomp st, dword ptr [ecx+0x2C]
fnstsw ax
test ah, 0x44
jnp 0x26
fld st, dword ptr [ecx+0x2C]
fld st, dword ptr [esp+0x8]
fcompp
fnstsw ax
test ah, 0x1
jnz 0x16
push 0x1
push edi
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
pop edi
pop esi
pop ecx
ret
push 0x0
push edi
call LuaParam::PushBool
add esp, 0x8
pop edi
mov eax, 0x1
pop esi
pop ecx
ret
bJohnnyOnBike = PedIsInAnyVehicle(gJV_OnBike)
if not bKleptoDismounted and not PedIsInAnyVehicle(pedKlepto.id) then
if not JohnnyPrepAttack and not F_PedIsDead(gJV_OnBike) and DistanceBetweenPeds2D(gPlayer, gJV_OnBike) <= 2.3 and PedIsInVehicle(gJV_OnBike, gJV_Bike) and PedIsInAnyVehicle(gJV_OnBike) then
if not PedIsInAnyVehicle(gJV_OnBike) then
if not PedIsInAnyVehicle(ped) then
if not PedIsInAnyVehicle(ped.id) then
if not PedIsInAnyVehicle(pedAlgie.id) then
if not PedIsInAnyVehicle(pedChad.id) then
if ped == tblPeanut.id and node ~= -1 and not bPlayerGotIt and not bPeanutGotIt and PedIsInAnyVehicle(tblPeanut.id) then
if PedIsInAnyVehicle(gJV_OnBike) then
if PedIsInAnyVehicle(gPlayer) and not VehicleIsModel(VehicleFromDriver(gPlayer), 276) then
if PedIsInAnyVehicle(gPlayer) then
if PedIsInAnyVehicle(gRussell.id) then
if PedIsInAnyVehicle(idDO) then
if PedIsInAnyVehicle(ped.id) and not PedIsDoingTask(ped.id, "/Global/AI/OnBike/BikeGeneralObjectives/BBrawl", false) then
if PedIsInAnyVehicle(pedID) then
while not PedIsInAnyVehicle(gJV_OnBike) do
while not PedIsInAnyVehicle(gRussell.id) do
while PedIsInAnyVehicle(gPlayer) == true do
while PedIsInAnyVehicle(gRussell.id) do
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
jnz 0x14
push eax
push esi
call LuaParam::PushBool
mov eax, 0x1
add esp, 0x8
pop esi
pop ecx
ret
cmp dword ptr [eax+0x1554], 0x0
setnz al
mov byte ptr [esp+0x4], al
mov ecx, dword ptr [esp+0x4]
push ecx
push esi
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
pop esi
pop ecx
ret
--print("Player is in area?", tostring(PedIsInAreaObject(gPlayer, ScenarioPed, 2, 1.5, 0)))
elseif not bEuniceWithPlayer and PedIsInAreaObject(gPlayer, idEunice.id, 2, 1, 0) then
elseif not PlayerIsInVehicle(Bike01) and not PedIsInAreaObject(ScenarioPed, Bike01, 1, 4, 0) and bToldToGetOff then
elseif PedIsInAreaObject(gPlayer, gFatty, 2, 5, 0) and PedIsPlaying(gFatty, "/Global/1_08/1_08_RollDice", true) then
if bEuniceWithPlayer and not PedIsInAreaObject(gPlayer, idEunice.id, 2, 5, 0) then
if bJohnnyFree and PedIsInAreaObject(gPlayer, gJohnny, 2, 4, 0) then
if BullyAttack == false and PedIsInAreaObject(gPlayer, Student2, 2, 4, 0) then
if bWarnPlayer01 and PedIsInAreaObject(gChaser01, gPlayer, 3, 3, 0) then
if bWarnPlayer02 and PedIsInAreaObject(gChaser02, gPlayer, 3, 3, 0) then
if g01 and iGreaser01 and PedIsInAreaObject(iGreaser01, TRIGGER._3_S09_DUMPSTER01, 0, 5, 0) then
if g02 and iGreaser02 and PedIsInAreaObject(iGreaser02, TRIGGER._3_S09_DUMPSTER01, 0, 5, 0) then
if g03 and iGreaser03 and PedIsInAreaObject(iGreaser03, TRIGGER._3_S09_DUMPSTER01, 0, 5, 0) then
if not bFattyMsg and not bHit and PedIsValid(fatty) and PedIsInAreaObject(gPlayer, fatty, 2, 5, 0) then
if not bGordChasingPlayer and (PlayerIsInVehicle(idBike.id) or not PedIsInAreaObject(idGord.id, idBike.id, 1, 12, 0)) then
if not bSleeperAwake and PedIsAlerted(gSleepingOrderly, 2000) and PedIsInAreaObject(gSleepingOrderly, gPlayer, 2, 8, 0) then
if not PedIsInAreaObject(gPlayer, gFatty, 2, 7, 0) then
if not PedIsInAreaObject(gPlayer, ScenarioPed, 2, 8, 0) then
if not PedIsInAreaObject(idEunice.id, gPlayer, 2, 0.6, 0) then
if not PlayerIsInVehicle(Bike01) and PedIsInAreaObject(ScenarioPed, Bike01, 1, 4, 0) then
if PedIsInAreaObject(gPlayer, Beatrice, 2, 3, 0) and PedGetFlag(gPlayer, 1) then
if PedIsInAreaObject(gPlayer, gSpazzMan, 2, 1.5, 0) and PedGetFlag(gPlayer, 1) then
if PedIsInAreaObject(gPlayer, mandy, 2, 3, 0) then
if PedIsInAreaObject(gPlayer, Receiver1, 2, 1.5, 0) and PedGetFlag(gPlayer, 1) then
if PedIsInAreaObject(gPlayer, Receiver2, 2, 1.5, 0) and PedGetFlag(gPlayer, 1) then
if PedIsInAreaObject(gPlayer, Receiver3, 2, 1.5, 0) and PedGetFlag(gPlayer, 1) then
if PedIsInAreaObject(gPlayer, ScenarioPed, 2, 1.5, 0) and PedGetFlag(gPlayer, 1) then
if PedIsInAreaObject(gPlayer, ScenarioPed, 2, 5, 0) and not bGiveHint then
if PedIsValid(idGord.id) and not PedIsInAreaObject(idGord.id, idBike.id, 1, 5, 0) then
if PedIsValid(Receiver1) and PedIsInAreaObject(gPlayer, Receiver1, 2, 1.5, 0) and PedGetFlag(gPlayer, 1) then
if PedIsValid(Receiver2) and PedIsInAreaObject(gPlayer, Receiver2, 2, 1.5, 0) and PedGetFlag(gPlayer, 1) then
if PedIsValid(Receiver3) and PedIsInAreaObject(gPlayer, Receiver3, 2, 1.5, 0) and PedGetFlag(gPlayer, 1) then
if perv.id and not PedIsDead(perv.id) and perv.id and taggedPoint == perv.trigger and PedIsInAreaObject(perv.id, gPlayer, 3, 6, 0) and not PedIsDead(perv.id) then
if PlayerIsInAreaXYZ(x, y, z, 3, 7) and PedIsInAreaObject(ScenarioPed, Bike01, 1, 4, 0) and not bToldToGetOff and PlayerIsInVehicle(Bike01) then
local pedinarea = PedIsInAreaObject(car.ped, car.id, 1, car.actionRadius, 0)
return PedIsInAreaObject(ScenarioPed, ped, 2, 4, 0)
while not (not (not PedIsAlerted(idPetey.id, 500) and PedIsInAreaObject(idPetey.id, gPlayer, 2, 8, 0)) or bFailedDueToViolence) do
while not (not PedIsValid(idGord.id) or PedIsInAreaObject(idGord.id, idBike.id, 1, 5, 0)) do
while not PedIsInAreaObject(idEunice.id, gPlayer, 2, 0.6, 0) do
while not PedIsInAreaObject(pedRussell.id, gPlayer, 2, 1.5, 0) do
while not PedIsInAreaObject(tblCutscenePed.lola.id, gPlayer, 2, 0.7, 0) do
sub esp, 0x30
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x40]
push edi
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [esp+0x2C], eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
jnz 0x8
push eax
jmp 0x139
push 0x1
push esi
call LuaParam::GetInt
push 0x2
push esi
mov edi, eax
call LuaParam::GetInt
push 0x3
push esi
mov ebp, eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x38], st
push 0x4
push esi
call LuaParam::GetInt
push esi
mov dword ptr [esp+0x40], eax
mov byte ptr [esp+0x3C], 0x0
or ebx, 0xFFFFFFFF
mov byte ptr [esp+0x38], 0x0
call LuaParam::GetParamCount
add esp, 0x24
cmp eax, 0x6
jl 0xF
push 0x5
push esi
call LuaParam::GetInt
add esp, 0x8
mov ebx, eax
push esi
call LuaParam::GetParamCount
add esp, 0x4
cmp eax, 0x7
jl 0x11
push 0x6
push esi
call LuaParam::GetBool
add esp, 0x8
mov byte ptr [esp+0x14], al
fldz
push esi
fstp dword ptr [esp+0x14], st
call LuaParam::GetParamCount
add esp, 0x4
cmp eax, 0x8
jl 0x1D
push 0x7
push esi
call LuaParam::GetFloat
fmul st, qword ptr [0x900160]
add esp, 0x8
fdiv st, qword ptr [0x900158]
fstp dword ptr [esp+0x10], st
push 0x0
push 0x0
push ebp
push edi
call 0x5C28D0
add esp, 0x10
test eax, eax
jz 0x7F
push ebp
lea eax, ptr [esp+0x38]
push edi
push eax
call 0x5C2970
fldz
mov ecx, dword ptr [esp+0x20]
fst dword ptr [esp+0x34], st
mov eax, dword ptr [esp+0x28]
fstp dword ptr [esp+0x38], st
fld st, dword ptr [esp+0x1C]
add esp, 0xC
push 0x1
fstp dword ptr [esp+0x34], st
fld st, dword ptr [esp+0x24]
push 0x0
push ecx
mov ecx, dword ptr [esp+0x30]
push 0xFFFFFFFF
push ebx
lea edx, ptr [esp+0x3C]
push edx
push eax
sub esp, 0x1C
fst dword ptr [esp+0x18], st
mov eax, esp
fst dword ptr [esp+0x14], st
fstp dword ptr [esp+0x10], st
fld st, dword ptr [esp+0x74]
fstp dword ptr [esp+0xC], st
fld st, dword ptr [esp+0x70]
fstp dword ptr [esp+0x8], st
fld st, dword ptr [esp+0x6C]
mov dword ptr [eax], 0x2
fstp dword ptr [esp+0x4], st
push ecx
push 0x1
call 0x5C2A70
add esp, 0x40
mov byte ptr [esp+0x18], al
mov edx, dword ptr [esp+0x18]
push edx
push esi
call LuaParam::PushBool
add esp, 0x8
pop edi
pop esi
pop ebp
mov eax, 0x1
pop ebx
add esp, 0x30
ret
elseif gPlayerNearDog and gRunnerId and PedIsValid(gRunnerId) and PedIsInAreaXYZ(gRunnerId, -21.8766, -16.5356, 2.55495, 1, 0) then
if not caseyDown and PedIsInAreaXYZ(gPlayer, cx, cy, cz, 14, 0) then
if not gEdgarMoved and PedIsInAreaXYZ(edgar, -768.036, 64.8435, 6.19969, 2, 0) then
if not PedIsInAreaXYZ(Earnest, x, y, z, 0.75, 0) then
if not PedIsInAreaXYZ(idPeter, x, y, z, 0.3, 0) then
if not PedIsOnVehicle(tableBikerPeds[i]) or not PedIsInAreaXYZ(tableBikerPeds[i], playerX, playerY, playerZ, 50, 0) then
if not pickup.noGrab and pickup.id and (pickup.ped and not pickup.ped == ped or GetTimer() - pickup.timeSpawned > pickup.grabDelay) and PedIsInAreaXYZ(ped, pickup.x, pickup.y, pickup.z, pickup.grabRadius, 0) then
if PedIsInAreaXYZ(Dog, x, y, z, 3, 0) then
if PedIsInAreaXYZ(gChaser01, x, y, z, 10, 0) then
if PedIsInAreaXYZ(gChaser02, x, y, z, 10, 0) then
if PedIsInAreaXYZ(gPlayer, cheater01_x, cheater01_y, cheater01_z, 55, 0) == true then
if PedIsInAreaXYZ(gPlayer, x, y, z, 0.25, 0) and PedGetFlag(gPlayer, 31) == true then
if PedIsInAreaXYZ(gPlayer, x, y, z, 3, 0) == true then
if PedIsInAreaXYZ(gPlayer, x, y, z, 30, 0) == true then
if PedIsInAreaXYZ(gPlayer, x, y, z, 5, 0) then
if PedIsInAreaXYZ(gPlayer, x, y, z, interactRange, corona) or PedGetWhoHitMeLast(ped.id) == gPlayer then
if PedIsInAreaXYZ(gPlayer, x, y, z, radius, corona) then
if PedIsInAreaXYZ(gPlayer, x1, y1, z1, 1.5, 0) and MinigameIsReady() == true then
if PedIsInAreaXYZ(gPlayer, x1, y1, z1, 1.5, 0) then
if PedIsInAreaXYZ(gPlayer, x1, y1, z1, 1.5, 7) then
if PedIsInAreaXYZ(idDarby, -735.357, 389.926, 298.039, 0.5, 0) then
if PedIsInAreaXYZ(idDarby, x, y, z, 0.5, 0) then
if PedIsInAreaXYZ(ped.id, s2x, s2y, s2z, 1, 0) then
if PedIsInAreaXYZ(ped.id, s3x, s3y, s3z, 1, 0) then
if PedIsInAreaXYZ(ped.id, s5x, s5y, s5z, 1, 0) then
if PedIsInAreaXYZ(ped.id, s6x, s6y, s6z, 1, 0) then
if PedIsInAreaXYZ(runningGreaser, x, y, z, 2, 0) or GetTimer() - runningTime > 10000 then
if PedIsInAreaXYZ(ScenarioPed, areax, areay, areaz, 5, 0) then
if PedIsInAreaXYZ(ScenarioPed, oX, oY, oZ, 3, 7) then
if PedIsInAreaXYZ(ScenarioPed, px, py, pz, 5, 0, 1) then
if PedIsPlaying(gPlayer, "/Global/StealthDoor/PedPropsActions", true) and PedIsInAreaXYZ(gPlayer, entry[2], entry[3], entry[4], 5, 0) then
if PedIsValid(idDarby) and not PedIsDead(idDarby) and PedIsInAreaXYZ(idDarby, x, y, z, 0.5, 0) then
PedIsInAreaXYZ(gPlayer, cx, cy, cz, 1, 7)
PedIsInAreaXYZ(gPlayer, finishX, finishY, finishZ, 1, 7)
PedIsInAreaXYZ(gPlayer, latticeX, latticeY, latticeZ, 1, 7)
PedIsInAreaXYZ(gPlayer, question_x, question_y, question_z, 0, 3)
PedIsInAreaXYZ(gPlayer, x1, y1, z1, 1.5, 7)
return PedIsInAreaXYZ(ped, x, y, z, radius, 0)
while not (PedIsInAreaXYZ(outroPedA, x, y, z, 0.5, 0) and PedIsInAreaXYZ(outroPedB, x2, y2, z2, 0.5, 0)) do
while not PedIsInAreaXYZ(Earnest, x, y, z, 0.75, 0) do
while not PedIsInAreaXYZ(girlfriend, x, y, z, 0.5, 0) do
while not PedIsInAreaXYZ(gJV_OnBike, X, Y, Z, 3.5, 0) do
while not PedIsInAreaXYZ(gPlayer, x, y, z, 1, 0) do
while not PedIsInAreaXYZ(gPlayer, x, y, z, 2, 1) do
while not PedIsInAreaXYZ(gPlayer, x1, y1, z1, 1, 7) do
while not PedIsInAreaXYZ(gTed, x, y, z, 2, 0) do
while not PedIsInAreaXYZ(idZoe, x, y, z, 0.5, 0) do
while not PedIsInAreaXYZ(manager, x, y, z, 0.5, 0) do
while not PedIsInAreaXYZ(outroPedA, x, y, z, 0.5, 0) do
while not PedIsInAreaXYZ(outroPedC, x, y, z, 0.5, 0) do
while not PedIsInAreaXYZ(spud_nerd, snx, sny, snz, 2, 0) do
while not PedIsInAreaXYZ(teacher, x, y, z, 0.5, 0) do
while not PedIsInAreaXYZ(testPed, x, y, z, 0.5, 1) do
sub esp, 0x20
push ebx
push esi
mov esi, dword ptr [esp+0x2C]
push edi
push 0x0
push esi
call LuaParam::GetInt
mov edi, eax
add esp, 0x4
mov eax, esp
push edi
mov dword ptr [eax], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
jnz 0x18
push eax
push esi
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
pop edi
pop esi
pop ebx
add esp, 0x20
ret
push 0x1
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x24], st
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x28], st
push 0x3
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x2C], st
push 0x4
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x30], st
push 0x5
push esi
call LuaParam::GetInt
fldz
push esi
fstp dword ptr [esp+0x38], st
mov ebx, eax
call LuaParam::GetParamCount
add esp, 0x2C
cmp eax, 0x7
jl 0x1D
push 0x6
push esi
call LuaParam::GetFloat
fmul st, qword ptr [0x900160]
add esp, 0x8
fdiv st, qword ptr [0x900158]
fstp dword ptr [esp+0xC], st
fldz
push 0x1
push 0x0
push 0x0
push 0xFFFFFFFF
push ecx
mov eax, esp
mov dword ptr [eax], 0xFFFFFFFF
fst dword ptr [esp+0x34], st
fstp dword ptr [esp+0x38], st
lea eax, ptr [esp+0x34]
fld st, dword ptr [esp+0x20]
push eax
fstp dword ptr [esp+0x40], st
push ebx
fld st, dword ptr [esp+0x2C]
sub esp, 0x1C
fst dword ptr [esp+0x18], st
mov eax, esp
fst dword ptr [esp+0x14], st
mov dword ptr [eax], 0x2
fstp dword ptr [esp+0x10], st
fld st, dword ptr [esp+0x4C]
fstp dword ptr [esp+0xC], st
fld st, dword ptr [esp+0x50]
fstp dword ptr [esp+0x8], st
fld st, dword ptr [esp+0x54]
fstp dword ptr [esp+0x4], st
push edi
push 0x1
call 0x5C2A70
mov byte ptr [esp+0x5C], al
mov ecx, dword ptr [esp+0x5C]
push ecx
push esi
call LuaParam::PushBool
add esp, 0x48
pop edi
pop esi
mov eax, 0x1
pop ebx
add esp, 0x20
ret
if bActive and PedIsValid(Dog) and (PedIsInCombat(Dog) or PedIsDead(Dog) or PedGetWhoHitMeLast(Dog) == gPlayer or PedIsDoingTask(Dog, "/Global/AI_Dog/GeneralObjectives/FleeObjective", true) and not F_PedIsDead(gPlayer)) then
if bActive and PedIsValid(Dog) and (PedIsInCombat(Dog) or PedIsDead(Dog) or PedGetWhoHitMeLast(Dog) == gPlayer or PedIsDoingTask(Dog, "/Global/AI_Dog/GeneralObjectives/FleeObjective", true)) then
if not (not F_PedIsDead(tbl.id) and (not PedIsInCombat(tbl.id) or bPrankCompleted or tbl.bActive)) or PedGetWhoHitMeLast(tbl.id) == gPlayer and not tbl.bActive then
if not tbl.bActive and PedIsInCombat(tbl.id) then
if PedIsInCombat(pedGreaser01.id) then
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
mov byte ptr [esp+0x4], 0x0
jz 0x23
lea ecx, ptr [eax+0x5F0]
call 0x470340
test eax, eax
jz 0x14
mov eax, dword ptr [eax+0x8]
cmp eax, 0x7
jz 0x7
cmp eax, 0x10
jnz 0x7
mov byte ptr [esp+0x4], 0x1
mov eax, dword ptr [esp+0x4]
push eax
push esi
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
pop esi
pop ecx
ret
elseif (not PedIsInTrigger(gNerds[1].id, TRIGGER._4_04_MAZE_HALL_08) or not PedIsInTrigger(gNerds[2].id, TRIGGER._4_04_MAZE_HALL_08)) and not bMazeBlip then
elseif bUsedScythe or not PedIsInTrigger(gTablePeds[gCurrentJock].id, gReapers[gCurrentReaper].trigger) then
elseif gFatty ~= nil and not PedIsInTrigger(gPlayer, TRIGGER._BUCKYTRIGGER) then
elseif not PedIsInTrigger(idTeacher, TRIGGER._2_S05_TEACHERAREA) and not PedIsInTrigger(idTeacher2, TRIGGER._2_S05_TEACHERAREA) then
elseif not PedIsInTrigger(pedGord, TRIGGER._2_07_THEDOCK) then
elseif not PedIsInTrigger(pedMascot.id, TRIGGER._4_05_MASCOTPOI1) then
elseif not PedIsInTrigger(pedMascot.id, TRIGGER._4_05_MASCOTPOI2) then
elseif PedIsInTrigger(entry.id, TRIGGER._2_S05_DISTURBRADIUS) then
elseif PedIsInTrigger(gJV_OnBike, TRIGGER._3_B_BIKE_REGION_NE) then
elseif PedIsInTrigger(gJV_OnBike, TRIGGER._3_B_BIKE_REGION_NW) then
elseif PedIsInTrigger(gJV_OnBike, TRIGGER._3_B_BIKE_REGION_SE) then
elseif PedIsInTrigger(gJV_OnBike, TRIGGER._3_B_BIKE_REGION_SW) then
elseif PedIsInTrigger(gRussell.id, TRIGGER._2_05_RUSSELLOFFBIKE) or bRussellMakeAlly then
elseif PedIsInTrigger(ped, gTethers[3]) then
elseif PedIsInTrigger(pedZoe.id, TRIGGER._5_G5_ZONE03) then
elseif PedIsInTrigger(pedZoe.id, TRIGGER._5_G5_ZONE04) then
elseif PedIsInTrigger(tblEntry.id, TRIGGER._IBOXING_ESCDOORL01) then
if bOpenAllHack and PedIsInTrigger(gDavis, TRIGGER._1_03_FIGHT3) then
if entity and PedIsValid(entity) and PedIsInTrigger(entity, TRIGGER._4_06_DOCKINGTRIGGER) then
if entity and PedIsValid(entity) and PedIsInTrigger(entity, TRIGGER._4_06_INSIDEDOCKINGTRIGGER) then
if F_PedExists(attacker.id) and not PedIsInTrigger(attacker.id, TRIGGER._1_03_KEEPPEDTRIGGER) then
if gCurrentReaper == 1 and not PAnimIsPlaying(gReapers[gCurrentReaper].reaper, "/Global/FunReapr/Oneshot/Stay", false) and not PAnimIsPlaying(gReapers[gCurrentReaper].reaper, "/Global/FunReapr/Oneshot", false) and PedIsInTrigger(gTablePeds[gCurrentJock].id, gReapers[gCurrentReaper].trigger) then
if gFatty == nil and PedIsInTrigger(gPlayer, TRIGGER._BUCKYTRIGGER) then
if idDO ~= nil and PedIsInTrigger(idDO, TRIGGER._5_04_DO_GOAL) then
if not bBulliesLeftAttack and (PedIsInTrigger(gPlayer, TRIGGER._1_05_TRIGGERJOCKPACK) or F_CheckLeftForHit()) then
if not bBulliesRightAttack and (PedIsInTrigger(gPlayer, TRIGGER._1_05_TRIGGERJOCKSNEARFRONT) or F_CheckRightForHit()) then
if not bChadAgro and PedIsInTrigger(pedGary.id, TRIGGER._1_11X2_CHADATTACK) then
if not bEncounterBathroomSecondFloor and not bFightingFirstFloorBathroomJocks and PedIsInTrigger(pedAlgie.id, TRIGGER._1_05B_BATHROOMSECONDFLOOR) then
if not bEncounterJockPackWarning and PedIsInTrigger(gPlayer, TRIGGER._1_05_TRIGGERJOCKPACKWARNING) then
if not bEncounterJocksNearLibrary and PedIsInTrigger(gPlayer, TRIGGER._1_05_TRIGGERJOCKSNEARLIBRARY) then
if not bGoneFarEnough and (not PlayerIsInTrigger(TRIGGER._2_06_BIKEZONE) and PlayerIsInVehicle(idBike.id) or not PedIsInTrigger(idGord.id, TRIGGER._2_06_BIKEZONE)) then
if not bMovedZoeInside and PedIsInTrigger(pedZoe.id, TRIGGER._5_G5_WAREDOORZOE) then
if not bTextPinkyFreak and PedIsInTrigger(pedPinky.id, TRIGGER._2_G2_FREAKSHOW) then
if not bTextPlayDunk and PlayerIsInTrigger(TRIGGER._2_G2_DUNKTANK) and PedIsInTrigger(pedPinky.id, TRIGGER._2_G2_DUNKTANK) and not F_PlayHasEnoughTickets() then
if not bTextPlayShoot and PlayerIsInTrigger(TRIGGER._2_G2_SHOOTINGGALLERY) and PedIsInTrigger(pedPinky.id, TRIGGER._2_G2_SHOOTINGGALLERY) and not F_PlayHasEnoughTickets() then
if not bTextPlayStriker and PlayerIsInTrigger(TRIGGER._2_G2_HIGHSTRIKER) and PedIsInTrigger(pedPinky.id, TRIGGER._2_G2_HIGHSTRIKER) then
if not bTextPlayToss and PlayerIsInTrigger(TRIGGER._2_G2_BALLTOSS) and PedIsInTrigger(pedPinky.id, TRIGGER._2_G2_BALLTOSS) and not F_PlayHasEnoughTickets() then
if not gLastStand and PedIsValid(idDO) and PedIsInTrigger(idDO, TRIGGER._5_04_DO_GOAL) then
if not PedIsInTrigger(idGord.id, TRIGGER._2_06_BIKEZONE) then
if not PedIsInTrigger(tblEntry.id, TRIGGER._2_B_BOSS_FIGHT) then
if PedIsInTrigger(enemy, TRIGGER._3_R09_MAINAREA) then
if PedIsInTrigger(EnemyTable[i].handle, EnemyTable[i].trigger) then
if PedIsInTrigger(gCop1, TRIGGER._2_S02_COP1) or bCop1Spot then
if PedIsInTrigger(gGary, TRIGGER._6_B_GARY_TRIGGER_4) then
if PedIsInTrigger(gJV_OnBike, TRIGGER._3_B_REGION_S) then
if PedIsInTrigger(gNerds[1].id, TRIGGER._4_04_MAZE_HALL_08) and PedIsInTrigger(gNerds[2].id, TRIGGER._4_04_MAZE_HALL_08) and not bMazeBlip then
if PedIsInTrigger(gNerds[1].id, TRIGGER._4_04_MINENERDS1) then
if PedIsInTrigger(gNerds[1].id, TRIGGER._4_04_MINENERDS2) then
if PedIsInTrigger(gNerds[1].id, TRIGGER._4_04_MINENERDS3) then
if PedIsInTrigger(gNerds[2].id, TRIGGER._4_04_MINENERDS1) then
if PedIsInTrigger(gNerds[2].id, TRIGGER._4_04_MINENERDS2) then
if PedIsInTrigger(gNerds[2].id, TRIGGER._4_04_MINENERDS3) then
if PedIsInTrigger(gTablePeds[gCurrentJock].id, gReapers[gCurrentReaper + 1].trigger) then
if PedIsInTrigger(idRussell, TRIGGER._5_06_BARRICADECRASH) then
if PedIsInTrigger(idRussell, TRIGGER._5_06_BIKETRIGGER) then
if PedIsInTrigger(Mascot, TRIGGER._1_09_STAGELEFT) then
if PedIsInTrigger(ped, gTethers[2]) then
if PedIsInTrigger(pedAlgie.id, TRIGGER._1_05B_BATHROOMFIRSTFLOOR) then
if PedIsInTrigger(pedGord, TRIGGER._2_07_BEHINDDOOR) then
if PedIsInTrigger(pedKlepto.id, TRIGGER._2_02_SCHOOLPARKING) then
if PedIsInTrigger(pedMascot.id, TRIGGER._4_05_MASCOTPOI1) then
if PedIsInTrigger(pedMascot.id, TRIGGER._4_05_MASCOTPOI2) then
if PedIsInTrigger(pedMascot.id, TRIGGER._4_05_MASCOTPOI3) then
if PedIsInTrigger(pedMascot.id, TRIGGER._4_05_MASCOTPOI4) then
if PedIsInTrigger(pedMascot.id, TRIGGER._4_05_MASCOTPOI5) then
if PedIsInTrigger(pedZoe.id, TRIGGER._5_G5_ZONE02) or PedIsInTrigger(pedZoe.id, TRIGGER._5_G5_ZONE01) then
if PedIsInTrigger(sheet1Bruiser, TRIGGER._2_S04_TETHERBULLY) then
if PedIsInTrigger(sheet1Guard, TRIGGER._2_S04_TETHERBULLY) then
if PedIsInTrigger(tblEntry.id, TRIGGER._IBOXING_ESCDOORL) then
if PedIsInTrigger(trigger.ped, trigger.trigger) then
if PedIsValid(entry.id) and PedIsInTrigger(entry.id, TRIGGER._4_03_OB_GROUNDS) then
if tblEntry.id ~= nil and PedIsValid(tblEntry.id) and not PedIsInTrigger(tblEntry.id, TRIGGER._2_B_BOSS_FIGHT) then
return bJohnnyFree and PedIsInTrigger(gJohnny, TRIGGER._5_03_JOHNNY_GOTO1)
return PedIsInTrigger(gOtto, TRIGGER._5_02_WAREHOUSEUPSTAIRS) or PedIsInTrigger(gOtto, TRIGGER._5_02_WAREHOUSEUPSTAIRS) or PedIsInTrigger(gJerry, TRIGGER._5_02_WAREHOUSEUPSTAIRS) or PedIsInTrigger(gJerry, TRIGGER._5_02_WAREHOUSEUPSTAIRS)
until PedIsInTrigger(gPeter, TRIGGER._AREA_AROUND_BUTTON)
while not (not (MissionActive() and PedIsValid(idNemesis)) or PedIsInTrigger(idNemesis, TRIGGER._1_04_NEMSITDOWN) or bHasFailedElsewhere) do
while not PedIsInTrigger(edgar, TRIGGER._5_B_GRAB_GOOD) do
while not PedIsInTrigger(gGary, TRIGGER._6_B_GARY_THROW_1) do
while not PedIsInTrigger(gGary, TRIGGER._6_B_GARY_THROW_2) do
while not PedIsInTrigger(gJV_OnBike, TRIGGER._3_B_MAGNET) and bJohnnyOnBike do
while PedIsInTrigger(guy, TRIGGER._TADFRONTDOORR) do
push ecx
push esi
push edi
mov edi, dword ptr [esp+0x10]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jnz 0x13
push eax
push edi
call LuaParam::PushBool
lea eax, ptr [esi+0x1]
add esp, 0x8
pop edi
pop esi
pop ecx
ret
push 0x1
push edi
call LuaParam::GetInt
add esp, 0x8
cmp eax, 0xFFFFFFFF
mov byte ptr [esp+0x8], 0x0
jz 0x43
test eax, eax
jnl 0x6
xor ecx, ecx
jmp 0x1D
mov edx, dword ptr [0x20C7C48]
mov ecx, dword ptr [edx+0x4]
test byte ptr [eax+ecx*1], 0x80
jz 0x6
xor ecx, ecx
jmp 0xA
mov ecx, dword ptr [edx+0xC]
imul ecx, eax
add ecx, dword ptr [edx]
mov eax, dword ptr [esi+0x14]
test eax, eax
jz 0x7
add eax, 0x30
jmp 0x5
lea eax, ptr [esi+0x4]
push eax
call 0x6D6FA0
test al, al
jz 0x7
mov byte ptr [esp+0x8], 0x1
mov edx, dword ptr [esp+0x8]
push edx
push edi
call LuaParam::PushBool
add esp, 0x8
pop edi
mov eax, 0x1
pop esi
pop ecx
ret
elseif blipLastPotty and not PedIsInVehicle(gPlayer, idMower) then
elseif intState ~= 2 or VehicleIsValid(idBike) and PedIsInVehicle(idPed, idBike) then
elseif not PedIsInVehicle(gRussell.id, gRussellBike) or PedIsInVehicle(gPlayer, gRussellBike) then
if F_PedExists(car.driver) and PedIsInVehicle(car.driver, car.id) then
if idBike ~= nil and VehicleIsValid(idBike) and not PedIsInVehicle(gPlayer, idBike) then
if item.retrieved == false and VehicleIsValid(item.bike) and PedIsInVehicle(gPlayer, item.bike) == true then
if not JohnnyPrepAttack and not F_PedIsDead(gJV_OnBike) and DistanceBetweenPeds2D(gPlayer, gJV_OnBike) <= 2.3 and PedIsInVehicle(gJV_OnBike, gJV_Bike) and PedIsInAnyVehicle(gJV_OnBike) then
if not PedIsInVehicle(Dropout1, Bike01) and not bDumped then
if not PedIsInVehicle(gPlayer, entry.id) then
if not PedIsInVehicle(gPlayer, gPlayerBike) then
if not PedIsInVehicle(gPlayer, mower) then
if not PedIsInVehicle(gPlayer, player.car) and bLose == false then
if not PedIsInVehicle(gPlayer, player.car) and bPlayerAbandonedCar == false then
if not PedIsInVehicle(idRussell, idBike) then
if not PedIsInVehicle(racer.id, racer.car) then
if PedIsInVehicle(car.driver, car.id) then
if PedIsInVehicle(gPlayer, idMower) and gObjectiveBlip then
if PedIsInVehicle(gPlayer, mower) then
if PedIsInVehicle(idGord.id, idBike.id) then
if PedIsValid(idRussell) and (not PedIsInVehicle(idRussell, idBike) or PedIsDead(idRussell)) or not PedIsValid(idRussell) then
if PedIsValid(item.ped) == true and VehicleIsValid(item.bike) == true and PedIsInVehicle(item.ped, item.bike) == false and item.pedOffBike == false then
if PedIsValid(ped) and PedIsInVehicle(ped, vehicle) then
if VehicleExists(shared.gGoKart) and not PedIsInVehicle(gPlayer, shared.gGoKart) then
if VehicleIsValid(idBike) and not PedIsInVehicle(idPed, idBike) then
if VehicleIsValid(racer.car) and not PedIsInVehicle(racer.id, racer.car) then
while not (not PedIsValid(idGord.id) or PedIsInVehicle(idGord.id, idBike.id)) do
while not PedIsInVehicle(car.driver, car.id) do
while not PedIsInVehicle(idDO, idBike) do
while not PedIsInVehicle(idDO, idDOBike) do
while not PedIsInVehicle(idRussell, idBike) do
while not PedIsInVehicle(pedLola.id, vehicleLolaBike.id) do
while not PedIsInVehicle(ScenarioPed, Bike01) do
while PedIsInVehicle(gPlayer, mower) do
while PedIsValid(idGord.id) and PedIsInVehicle(idGord.id, idBike.id) do
push ecx
push esi
push edi
mov edi, dword ptr [esp+0x10]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jnz 0x13
push eax
push edi
call LuaParam::PushBool
lea eax, ptr [esi+0x1]
add esp, 0x8
pop edi
pop esi
pop ecx
ret
push 0x1
push edi
call LuaParam::GetInt
add esp, 0x8
cmp dword ptr [esi+0x1554], 0x0
mov byte ptr [esp+0x8], 0x0
jz 0x18
push eax
call 0x44A580
add esp, 0x4
cmp dword ptr [esi+0x1554], eax
setz al
mov byte ptr [esp+0x8], al
mov ecx, dword ptr [esp+0x8]
push ecx
push edi
call LuaParam::PushBool
add esp, 0x8
pop edi
mov eax, 0x1
pop esi
pop ecx
ret
elseif PedIsModel(idPed, 146) then
elseif PedIsModel(idPed, 85) then
elseif PedIsModel(prep, 30) then
elseif PedIsModel(prep, 32) then
elseif PedIsModel(prep, 35) then
elseif PedIsModel(prep, 40) then
if PedIsModel(buster, 53) then
if PedIsModel(entityId, entity.model) then
if PedIsModel(entry.handle, model) then
if PedIsModel(entry.id, model) then
if PedIsModel(idPed, 99) then
if PedIsModel(pedID, 219) or PedIsModel(pedID, 220) then
if PedIsModel(pedID, 53) or PedIsModel(pedID, 158) and PedGetWhoHitMeLast(pedID) == gPlayer and not F_PedIsDead(pedID) and bOnGrounds then
if PedIsModel(pedID, 53) or PedIsModel(pedID, 158) and PedGetWhoHitMeLast(pedID) == gPlayer then
if PedIsModel(pedid, entry.model) then
if PedIsModel(prep, 34) then
if PedIsValid(id) and not PedIsModel(id, 25) then
if PedIsValid(ped) and not PedIsModel(ped, 0) and not PedIsModel(ped, 134) then
if PedIsValid(pedID) and (PedIsModel(pedID, 53) or PedIsModel(pedID, 158)) and PedGetHealth(pedID) > 1 and not bPlayerHitOrderly and PedGetWhoHitMeLast(pedID) == gPlayer then
if PedIsValid(tblDialogueQueue) and PedIsModel(tblDialogueQueue, entry.model) then
sub esp, 0x8
push esi
push edi
mov edi, dword ptr [esp+0x14]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jnz 0x15
push eax
push edi
call LuaParam::PushBool
lea eax, ptr [esi+0x1]
add esp, 0x8
pop edi
pop esi
add esp, 0x8
ret
push 0x1
push edi
call LuaParam::GetInt
mov dword ptr [esp+0x10], eax
movsx eax, word ptr [esi+0x10E]
fild st, dword ptr [esp+0x10]
add esp, 0x8
test eax, eax
mov dword ptr [esp+0xC], eax
fstp dword ptr [esp+0x8], st
fild st, dword ptr [esp+0xC]
jnl 0x8
fadd dword ptr [0x900AC8]
fld st, dword ptr [esp+0x8]
mov byte ptr [esp+0x8], 0x1
fucompp
fnstsw ax
test ah, 0x44
jnp 0x7
mov byte ptr [esp+0x8], 0x0
mov ecx, dword ptr [esp+0x8]
push ecx
push edi
call LuaParam::PushBool
add esp, 0x8
pop edi
mov eax, 0x1
pop esi
add esp, 0x8
ret
if client.id ~= nil and client.delivered and not PedIsOnScreen(client.id) then
if FoundPed ~= -1 and not PedHasPOI(FoundPed) and PedIsOnScreen(FoundPed) and PedGetFaction(FoundPed) ~= (8 or PedGetFaction(FoundPed) ~= 0 or PedGetFaction(FoundPed) ~= 7) then
if FoundPed ~= -1 and not PedHasPOI(FoundPed) and PedIsOnScreen(FoundPed) then
if OutOfRange == true and PedIsValid(ScenarioPed) and PedIsOnScreen(ScenarioPed) == false then
if PedIsValid(ped) and not PedIsOnScreen(ped) then
while PedIsOnScreen(gPlayer) do
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
jnz 0x13
push eax
push esi
call LuaParam::PushBool
mov eax, 0x1
add esp, 0x8
pop esi
ret
mov ecx, eax
call 0x467460
push eax
push esi
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
pop esi
ret
elseif PedIsOnVehicle(gPlayer) and bikeBlip then
if not PedIsOnVehicle(gPlayer) and not countingDown then
if not PedIsOnVehicle(gPlayer) and not tblObjective.countingDown then
if not PedIsOnVehicle(gPlayer) then
if not PedIsOnVehicle(racer.id) then
if not PedIsOnVehicle(tableBikerPeds[i]) or not PedIsInAreaXYZ(tableBikerPeds[i], playerX, playerY, playerZ, 50, 0) then
if PedIsOnVehicle(gPlayer) then
if racer.id and PedIsValid(racer.id) and not PedIsOnVehicle(racer.id) then
if VehicleIsValid(racer.car) and not PedIsOnVehicle(racer.id) then
while not (PlayerIsInAreaXYZ(x, y, z, 10, 0) and PedIsOnVehicle(gPlayer)) do
while not PedIsOnVehicle(gPlayer) do
while PedIsOnVehicle(gPlayer) and GetTimer() - nTimer < 15000 do
while PedIsOnVehicle(gPlayer) do
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
jnz 0x4
pop esi
ret
cmp dword ptr [eax+0x1554], 0x0
setnz al
push eax
push esi
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
pop esi
ret
if PedIsPedInBox(gChaseCarDriver, gPlayer, -10, 10, -2, 3, -5, 5) then
sub esp, 0x68
push ebx
push esi
mov esi, dword ptr [esp+0x74]
push edi
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
push 0x1
push esi
mov ebx, eax
call LuaParam::GetInt
add esp, 0xC
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
push 0x2
push esi
mov edi, eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x1C], st
push 0x3
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x30], st
push 0x4
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x30], st
push 0x5
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x44], st
push 0x6
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x44], st
push 0x7
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x58], st
fld st, dword ptr [esp+0x44]
add esp, 0x38
fstp dword ptr [esp+0x30], st
lea eax, ptr [esp+0x24]
fld st, dword ptr [esp+0x10]
push eax
fstp dword ptr [esp+0x38], st
lea ecx, ptr [esp+0x34]
fld st, dword ptr [esp+0x18]
push ecx
fstp dword ptr [esp+0x40], st
lea ecx, ptr [esp+0x5C]
fld st, dword ptr [esp+0x20]
fstp dword ptr [esp+0x2C], st
fld st, dword ptr [esp+0x24]
fstp dword ptr [esp+0x30], st
fld st, dword ptr [esp+0x28]
fstp dword ptr [esp+0x34], st
call 0x564830
mov ecx, ebx
call 0x46DD20
mov ecx, dword ptr [edi+0x14]
test ecx, ecx
jz 0x7
add ecx, 0x30
jmp 0x5
lea ecx, ptr [edi+0x4]
mov edx, dword ptr [ecx]
mov dword ptr [esp+0x3C], edx
mov edx, dword ptr [ecx+0x4]
mov dword ptr [esp+0x40], edx
mov ecx, dword ptr [ecx+0x8]
lea edx, ptr [esp+0x3C]
push edx
push eax
lea eax, ptr [esp+0x50]
push eax
mov dword ptr [esp+0x50], ecx
call 0x414D20
add esp, 0xC
lea ecx, ptr [esp+0x48]
push ecx
lea ecx, ptr [esp+0x58]
call 0x565C20
push eax
push esi
call LuaParam::PushBool
add esp, 0x8
pop edi
pop esi
mov eax, 0x1
pop ebx
add esp, 0x68
ret
-- never used
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
jnz 0x14
push eax
push esi
call LuaParam::PushBool
mov eax, 0x1
add esp, 0x8
pop esi
pop ecx
ret
cmp dword ptr [eax+0x1310], 0xD
mov byte ptr [esp+0x4], 0x0
jnz 0x7
mov byte ptr [esp+0x4], 0x1
mov eax, dword ptr [esp+0x4]
push eax
push esi
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
pop esi
pop ecx
ret
elseif bPlayerCanneding and not PedIsPlaying(gPlayer, "/Global/Garbagecan/PedPropsActions/StuffGrap/GIVE", false) then
elseif bPlayerLockereding and not PedIsPlaying(gPlayer, "/Global/NLockA/PedPropsActions/Interact/StuffGrap/GIVE", false) then
elseif bPlayerPickIting and not bCurrentTargetNotPickIted and PedIsPlaying(gPlayer, "/Global/NLockA/PedPropsActions/Locked/LoopPicking/TryOpen/Opening", false) then
elseif gTorchLit and not PedIsPlaying(gPlayer, "/Global/C6/Animations/Tools/Torch/PickupTorch/ApplyTorch", true) then
elseif L2_2 and not PedIsPlaying(gPlayer, "/Global/Actions/Grapples/GrappleReversals", true) then
elseif not gSpokeNo2 and (PedIsPlaying(gPlayer, "/Global/pxCshld/PedPropsActions", true) or PlayerHasWeapon(387)) then
elseif not PedIsPlaying(gBully01, "/Global/Actions/Grapples/Front/Grapples", true) then
elseif not PedIsPlaying(gBully01, "/Global/HitTree/GroundAndWallHits/On_Ground", true) and not PedIsPlaying(gBully01, "/Global/Actions/Grapples/Front/Grapples/", true) and not PedIsPlaying(gBully01, "/Global/HitTree/Standing/WallHits", true) and not PedIsPlaying(gBully01, "/Global/HitTree/Standing/PostHit/BellyUp", true) and not PedIsPlaying(gBully01, "/Global/1_02", true) and not PedIsPlaying(gBully01, "/Global/HitTree/GroundAndWallHits", true) then
elseif not PedIsPlaying(gPlayer, "/Global/GlueBench/PedPropsActions/Use", false) then
elseif not PedIsPlaying(gPlayer, "/Global/StealthDoor/PedPropActions/Unoccupied/NoAuthorityInView", true) then
elseif not tag.bIsTagDone and tag.bIsTagged and (PedIsPlaying(gPlayer, tag.taggedAction, false) or PedIsPlaying(gPlayer, tag.taggedSmallAction, false)) then
elseif PedIsInAreaObject(gPlayer, gFatty, 2, 5, 0) and PedIsPlaying(gFatty, "/Global/1_08/1_08_RollDice", true) then
elseif PedIsPlaying(gBully01, "/Global/HitTree/Standing/PostHit/BellyUp/On_Ground", true) then
elseif PedIsPlaying(gPlayer, "/Global/Actions/Grapples/Front/Grapples/GrappleAttempt/GrappleSuccess/GIVE", false) and gSequencePassed then
elseif PedIsPlaying(gPlayer, "/Global/NLockA/PedPropsActions/Locked/LoopPicking", true) and not bObjectiveLocker then
elseif PedIsPlaying(gPlayer, gAnims[gActions.condition + 1], true) then
elseif PedIsPlaying(idGord.id, "/Global/Vehicles/Bikes/ExecuteNodes/Attacks/GrapThorwLeft", true) then
elseif PedIsPlaying(russell, "/Global/HitTree/Standing/PostHit/BellyDown/DownOnGround", true) then
elseif PedIsPlaying(russell, "/Global/HitTree/Standing/PostHit/SitOnWall/DownOnGround/Sit", true) then
elseif PedIsPlaying(shared.gPOIKidsPlayingDice[2].ped, "/Global/AniDice/Minigame/AmbientDice/GrappleAttempt/GrappleSuccess/PickupDice", true) then
elseif PlayerIsInTrigger(TRIGGER._LOWCORONA) and PedIsPlaying(gPlayer, "/Global/Ladder/Ladder_Actions", true) then
if (PedIsPlaying(gPlayer, "/Global/Actions/Grapples/Front/Grapples/GrappleAttempt/GrappleSuccess/GIVE", false) or PedIsPlaying(gPlayer, "/Global/Actions/Grapples/Front/Grapples/GrappleMoves/GrappleStrikes/Punch_Hold_Idle", true)) and gSequencePassed then
if 1 >= DistanceBetweenPeds2D(gPlayer, edgar) and PedIsPlaying(edgar, "/Global/DO_Edgar/Default_KEY/CustomLoco", true) and (not PedIsPlaying(gPlayer, "/Global/HitTree/Standing/PostHit", true) or PedIsPlaying(gPlayer, "/Global/WProps/PropInteract/PropInteractLoco", true)) then
if bInPlaceGoingIn and PedIsPlaying(gPlayer, "/Global/Door/PedPropsActions", true) then
if bInPlaceGoingOut and PedIsPlaying(gPlayer, "/Global/Door/PedPropsActions", true) then
if bNewVic and PedIsPlaying(ped, "/Global/HitTree/Standing/Ranged/ItchingPowder/Default", true) then
if CounterGetCurrent() >= 36 and not PedIsPlaying(pedMascot.id, "/Global/Actions/Grapples", true) then
if GARY_ANGRY and DistanceBetweenPeds2D(gPlayer, gGary) <= 1 and (PedIsPlaying(gGary, "/Global/Nemesis/Default_KEY/Locomotion", true) or PedIsPlaying(gGary, "/Global/HitTree/Standing/PostHit", true)) and not PedIsPlaying(gPlayer, "/Global/HitTree/Standing/PostHit", true) then
if gGary and PedIsValid(gGary) and PedIsPlaying(gGary, "/Global/Garbagecan/PedPropsActions/StuffGrap", true) then
if gSequencePassed or PedIsPlaying(gPlayer, "/Global/Actions/Grapples/Front/Grapples/GrappleMoves/GrappleStrikes/HitC/Charge", true) then
if L1_2 <= 0 and PedIsPlaying(gPlayer, "/Global/Actions/Grapples/Front/Grapples/Hold_Idle/RCV", true) then
if MissionActiveSpecific("2_08") and shared.gBif ~= nil and PedIsPlaying(shared.gBif, "/Global/PrepHouse/OpenFoyeurDoor/DoAnim", true) then
if not bFailDueToCheatersHit and bNotKissing and not PedIsPlaying(gCheater01, "/Global/Ambient/MissionSpec/KissMeAdult", true) then
if not bFieldNISDone and PlayerIsInTrigger(TRIGGER._1_04_TREE2_TRIG) and PedIsPlaying(gPlayer, "/Global/TreeClimb/Actions/ON_BOT", false) and not bFieldNISDone then
if not bFlowerPhoto and PedIsPlaying(gord, "/Global/3_01/Anims/FlowerGive", true) and not PedIsPlaying(gord, "/Global/3_01/Anims/FlowerGive/FlowerGive/Give_Attempt/Receive/SeeBreak", true) then
if not bKissPhoto and (PedIsPlaying(gord, "/Global/3_01/Anims/Kiss/", true) or PedIsPlaying(gord, "/Global/3_01/Anims/KissFinal", true)) then
if not bLitFountain and PedIsPlaying(gPlayer, "/Global/Weapons/WeaponActions/Thrown/ThrownActions/SpecialFire/Fountain/LightFountain/PlaceFountain", false) then
if not bPissedOffJocks and PedIsPlaying(gPlayer, "/Global/TagSmall/PedPropsActions/IsPlayer", true) and PlayerIsInTrigger(TRIGGER._4_G4_NERDCOMICS) then
if not bPlayerCanneding and PedIsPlaying(gPlayer, "/Global/Garbagecan/PedPropsActions/StuffGrap/GIVE", false) then
if not bPlayerLockereding and PedIsPlaying(gPlayer, "/Global/NLockA/PedPropsActions/Interact/StuffGrap/GIVE", false) then
if not bPlayerPickIting and bCurrentTargetNotPickIted and PedIsPlaying(gPlayer, "/Global/NLockA/PedPropsActions/Locked/LoopPicking", false) then
if not bPlayerRiggedLocker and PedIsPlaying(gPlayer, "/Global/NLockA/PedPropsActions/Locked/LoopPicking/TryOpen/Opening", true) then
if not bTrigger02 and PlayerIsInTrigger(TRIGGER._6_B_LADDER1_BEGIN) and PedIsPlaying(gPlayer, "/Global/Ladder/Ladder_Actions/Climb_ON_BOT", true) then
if not bTrigger05 and PlayerIsInTrigger(TRIGGER._6_B_LADDER2_BEGIN) and PedIsPlaying(gPlayer, "/Global/Ladder/Ladder_Actions/Climb_ON_BOT", true) then
if not F_PedIsHitWithWeapon(entry.id, 309) and not PedIsPlaying(entry.id, "/Global/2_S05/Anims/Disturb/Gawk", true) then
if not gCheckingDarby and PedGetHealth(idDarby) <= 0 and PedIsPlaying(idDarby, "/Global/HitTree/Standing/PostHit/Standing/Dead/BoxingStun/StunControl", true) and F_PedIsHitByPlayer(idDarby) then
if not gPlayerKnockedOut and PedIsPlaying(gPlayer, "/Global/HitTree/Standing/PostHit/BellyUp", true) then
if not gTimerGetBackInTree and not PedIsPlaying(gPlayer, "/Global/TreeClimb/Actions/ON_BOT", false) then
if not gTorchLit and PedIsPlaying(gPlayer, "/Global/C6/Animations/Tools/Torch/PickupTorch/ApplyTorch", true) then
if not L2_2 and PedIsPlaying(gPlayer, "/Global/Actions/Grapples/GrappleReversals", true) then
if not OPPONENT_STUNNED and PedIsPlaying(boxer, "/Global/HitTree/Standing/PostHit/Standing/Dead/BoxingStun/StunControl", true) then
if not PedIsDead(ped) and not PedIsPlaying(ped, actionNode, true) then
if not PedIsPlaying(a, "/Global/5_04/CrawlCycle", true) then
if not PedIsPlaying(a, "/Global/5_04/MandyStand", true) then
if not PedIsPlaying(boxer, "/Global/HitTree/Standing/PostHit/Standing/Dead/BoxingStun/StunControl", true) then
if not PedIsPlaying(fCasey, "/Global/5_04/CrawlCycle", true) then
if not PedIsPlaying(gFatty, "/Global/1_08/1_08_RollDice", true) then
if not PedIsPlaying(gPlayer, "/Global/Ladder/Ladder_Actions", true) then
if not PedIsPlaying(gPlayer, gAnims[gActions.condition], true) and not PedIsPlaying(gPlayer, gAnims[gActions.condition + 1], true) then
if not PedIsPlaying(gTargetBoy, "/Global/MGSocPen/TargetReactions/Mock/Mock1", true) then
if not PedIsPlaying(idPeter, "/Global/5_09/Anims/PeteSit", false) then
if not PedIsPlaying(Mascot, "/Global/NPC1_09/Mascot/MascotDancing", true) then
if not PedIsPlaying(ped, actionNode, true) and not PedIsPlaying(ped, actionNode, false) then
if not PedIsPlaying(ped1, actionNode, true) and not PedIsPlaying(ped1, actionNode, false) then
if not PedIsPlaying(pedAlgie.id, "F_NERDSALG_PEEDANCE", false) then
if not PedIsPlaying(pedGary.id, "/Global/1_11X1/Animations/GaryIdleInBed", true) then
if not target.taken and PhotoTargetInFrame(target.id, 2) and PedIsPlaying(gCheater01, "/Global/Ambient/MissionSpec/KissMeAdult", true) then
if not target.taken and PhotoTargetInFrame(target.id, 2) and PedIsPlaying(MotelOwner, "/Global/Ambient/Scenarios/ScenarioGive/ScenarioGive", true) then
if not validTagger and PhotoTargetInFrame(target, 2) and PedIsPlaying(target, "/Global/Tags/PedPropsActions/PerformTag/PedDrawMedTag", true) then
if nPhotos ~= 5 and kidActive ~= nil and (tKidSet[Kid_Index].sequence1[Anim_Index] == nil or not PedIsPlaying(Rudy, tAnims[tKidSet[Kid_Index].sequence1[Anim_Index]].SantaCycle, false)) then
if ped and not PedIsPlaying(gPlayer, "/Global/J_Damon/Offense/Medium/Grapples/GrapplesAttempt/TakeDown", true) then
if ped ~= 0 and PedIsValid(ped) and not PedIsDead(ped) and PedIsPlaying(ped, "/Global/NLockA/PedPropsActions/Interact/StuffGrap/RCV", false) then
if ped ~= tblDeadPool[1] and ped ~= tblDeadPool[2] and ped ~= tblDeadPool[3] and PedIsPlaying(ped, "/Global/HitTree/Standing/Ranged/Bomb/Stinky/Stinky", true) then
if ped1 ~= pedID and PedIsValid(ped1) and not F_InDeadPool(ped1) and PedIsPlaying(ped1, "/Global/HitTree/Standing/Ranged/Bomb/Stinky/Stinky", true) then
if ped2 ~= pedID and PedIsValid(ped2) and not F_InDeadPool(ped2) and PedIsPlaying(ped2, "/Global/HitTree/Standing/Ranged/Bomb/Stinky/Stinky", true) then
if ped3 ~= pedID and PedIsValid(ped3) and PedIsPlaying(ped3, "/Global/HitTree/Standing/Ranged/Bomb/Stinky/Stinky", true) and not F_InDeadPool(ped3) then
if ped4 ~= pedID and PedIsValid(ped4) and PedIsPlaying(ped4, "/Global/HitTree/Standing/Ranged/Bomb/Stinky/Stinky", true) and not F_InDeadPool(ped4) then
if ped5 ~= pedID and PedIsValid(ped5) and PedIsPlaying(ped5, "/Global/HitTree/Standing/Ranged/Bomb/Stinky/Stinky", true) and not F_InDeadPool(ped5) then
if ped6 ~= pedID and PedIsValid(ped6) and PedIsPlaying(ped6, "/Global/HitTree/Standing/Ranged/Bomb/Stinky/Stinky", true) and not F_InDeadPool(ped6) then
if PedGetWhoHitMeLast(gFatty) == gPlayer and PedGetHealth(gFatty) < gFattyOriginHealth - 40 or PedIsPlaying(gFatty, "/Global/Actions/Grapples/Front/Grapples", true) then
if PedIsDead(johnny) == false and (PedIsPlaying(gPlayer, "/Global/HitTree/Standing/PostHit/BellyUp", true) or PedIsPlaying(gPlayer, "/Global/HitTree/Standing/PostHit/BellyDown", true)) or pattern == 2 then
if PedIsDoingTask(ped, "/Global/AI/Reactions/Criminal/FindTagSpot", true) or PedIsPlaying(ped, "/Global/Tags/PedPropsActions/PerformTag/PedDrawMedTag", true) then
if PedIsPlaying(assistant, "/Global/3_09/Anims2/Give/GivePackage_3_09", true) then
if PedIsPlaying(gBully01, "/Global/Actions/Grapples/Front/Grapples/GrappleMoves/DirectionalPush/PushFwd/RCV", false) then
if PedIsPlaying(gBully01, "/Global/HitTree/GroundAndWallHits/On_Ground/BellyUp/GroundHitHeavy/GroundHitHeavy", true) or PedIsPlaying(gBully01, "/Global/HitTree/GroundAndWallHits/On_Ground/BellyUp/RollAway", false) or PedIsPlaying(gBully01, "/Global/HitTree/GroundAndWallHits", true) then
if PedIsPlaying(gBully01, "/Global/HitTree/Standing/PostHit/SitOnWall/DownOnGround/Sit", false) then
if PedIsPlaying(gDefenders[1], "/Global/HitTree/Standing/PostHit/BellyDown", true) then
if PedIsPlaying(gFatty, "/Global/Actions/Grapples/Front/Grapples/Hold_Idle/RCV", true) then
if PedIsPlaying(gFatty, "/Global/Garbagecan/PedPropsActions/StuffGrap/RCV", true) then
if PedIsPlaying(gFatty, "/Global/Garbagecan/PedPropsActions/StuffGrap/RCV/InCan/die", true) then
if PedIsPlaying(gMarblesPed, "/Global/HitTree/Standing/Ranged/Marbles", true) then
if PedIsPlaying(gPlayer, "/Global/3_09/Anims/Give/GivePackage_3_09", true) then
if PedIsPlaying(gPlayer, "/Global/Actions/Grapples", true) or 0 >= PlayerGetHealth() then
if PedIsPlaying(gPlayer, "/Global/Actions/Grapples/RunningTakedown/Takedown", true) then
if PedIsPlaying(gPlayer, "/Global/Ambient/Scripted/CowDance/Animation/CustomIdle", true) or PedIsPlaying(gPlayer, "/Global/Ambient/Scripted/CowDance/Animation/CustomIdleX", true) or PedIsPlaying(gPlayer, "/Global/Ambient/Scripted/CowDance/Animation/CustomIdleC", true) or PedIsPlaying(gPlayer, "/Global/Ambient/Scripted/CowDance/Animation/CustomIdleS", true) or PedIsPlaying(gPlayer, "/Global/Ambient/Scripted/CowDance/Animation/CustomIdleO", true) or PedIsPlaying(gPlayer, "/Global/Ambient/Scripted/CowDance/Animation/Circle", true) or PedIsPlaying(gPlayer, "/Global/Ambient/Scripted/CowDance/Animation/Cross", true) or PedIsPlaying(gPlayer, "/Global/Ambient/Scripted/CowDance/Animation/Square", true) or PedIsPlaying(gPlayer, "/Global/Ambient/Scripted/CowDance/Animation/Triangle", true) then
if PedIsPlaying(gPlayer, "/Global/Ambient/Scripted/CowDance/Animation/Failure", true) then
if PedIsPlaying(gPlayer, "/Global/Ambient/Scripted/CowDance/Animation/Success", true) then
if PedIsPlaying(gPlayer, "/Global/Bikes/HIT/FallOff", true) then
if PedIsPlaying(gPlayer, "/Global/Door/PedPropsActions", true) and PlayerIsInTrigger(TRIGGER._4_04_EXIT) then
if PedIsPlaying(gPlayer, "/Global/DuffBag/PedPropsActions/RummageInDuffel", true) then
if PedIsPlaying(gPlayer, "/Global/FrAlrm/PedPropsActions/NotUsed/Idle", true) then
if PedIsPlaying(gPlayer, "/Global/GlueBench/PedPropsActions/Use", true) then
if PedIsPlaying(gPlayer, "/Global/HitTree/Standing/BlockHits", true) then
if PedIsPlaying(gPlayer, "/Global/HitTree/Standing/Melee/Unique/ROCHAMBEAU", true) then
if PedIsPlaying(gPlayer, "/Global/HitTree/Standing/Melee/Unique/ROCHAMBEAU/Front/Knockout/KnockoutDead", true) then
if PedIsPlaying(gPlayer, "/Global/HitTree/Standing/Melee/Unique/ROCHAMBEAU/Front/Knockout/KnockoutRecover", true) or PedIsPlaying(gPlayer, "/Global/HitTree/Standing/PostHit/BellyUp/BellyUpGetUp/BellyUpGetUpGetUp", true) then
if PedIsPlaying(gPlayer, "/Global/Ladder/Ladder_Actions/Climb_ON_BOT", true) then
if PedIsPlaying(gPlayer, "/Global/NLockA/PedPropsActions/Interact/PlantStinkbomb/OpenDoor/TossStinkbomb", false) or PedIsPlaying(gPlayer, "/Global/NLockA/PedPropsActions/Interact/PlantStinkbomb/OpenDoor/TossStinkbomb/CloseDoor", false) then
if PedIsPlaying(gPlayer, "/Global/Player/Default_KEY/Locomotion/Idle", false) then
if PedIsPlaying(gPlayer, "/Global/Player/Social_Actions/HarassMoves/Humiliations/Humiliate_Init/Humiliate_Me/5-8_IndianBurn", true) or PedIsPlaying(gPlayer, "/Global/Player/Social_Actions/HarassMoves/Humiliations/Humiliate_Init/Humiliate_Me/5-8_HitSelf", true) or PedIsPlaying(gPlayer, "/Global/Player/Social_Actions/HarassMoves/Humiliations/Humiliate_Init/Humiliate_Me/5-8_NoogieSpit", true) or PedIsPlaying(gPlayer, "/Global/Player/Social_Actions/HarassMoves/Humiliations/Humiliate_Init/WaitForVictim/EmergencyAnim", true) then
if PedIsPlaying(gPlayer, "/Global/pxSitStl/PedPropsActions", true) then
if PedIsPlaying(gPlayer, "/Global/SodaMach", true) then
if PedIsPlaying(gPlayer, "/Global/StealthDoor/PedPropsActions", true) and PedIsInAreaXYZ(gPlayer, entry[2], entry[3], entry[4], 5, 0) then
if PedIsPlaying(gPlayer, "/Global/Toilet/PedPropsActions/Use/CherryBomb/LightBomb/Drop/BombInToilet", false) and not bReturn then
if PedIsPlaying(gPlayer, "/Global/TrainingPlayer/Attacks/GroundAttacks/GroundAttacks/Strikes/HeavyAttacks", true) then
if PedIsPlaying(gPlayer, "/Global/TrainingPlayer/Default", true) then
if PedIsPlaying(gPlayer, "/Global/WBrush/PedPropsActions/PerformCleanup/CleanMedTag", true) then
if PedIsPlaying(gPlayer, gAnims[gActions.condition], true) or PedIsPlaying(gPlayer, "/Global/WrestlingACT/Default_KEY/Locomotion_Move/CombatLoco", true) then
if PedIsPlaying(gPlayer, gAnims[gActions.condition], true) then
if PedIsPlaying(gTargetBoy, "/Global/MGSocPen/TargetReactions/Cheer", true) then
if PedIsPlaying(gTargetBoy, "/Global/MGSocPen/TargetReactions/CustomHitTree", true) then
if PedIsPlaying(gTargetBoy, "/Global/MGSocPen/TargetReactions/Scared", true) then
if PedIsPlaying(idBucky, "/Global/1_07/Cower", false) then
if PedIsPlaying(idGord.id, "/Global/Vehicles/Bikes/ExecuteNodes/Attacks/GrapThorw", true) then
if PedIsPlaying(MotelOwner, "/Global/Ambient/Scenarios/ScenarioGive/ScenarioGive", false) == false then
if PedIsPlaying(opponent, "/Global/AI/CombatActions/CombatActions/PostHit/OnGround", true) then
if PedIsPlaying(ped.id, ped.state, ped.recurse) then
if PedIsPlaying(pedId, "/Global/2_08Conv/Interruptable", true) then
if PedIsPlaying(pedId, "/Global/Generic/GenericWallSmoking/", true) then
if PedIsPlaying(pedID, "/Global/HitTree/Standing/Ranged/Bomb/Stinky/Stinky", true) and PedGetWhoHitMeLast(pedID) == gPlayer then
if PedIsPlaying(russell, "/Global/HitTree/Standing/PostHit/BellyDown/DownOnGround", true) then
if PedIsPlaying(russell, "/Global/HitTree/Standing/PostHit/BellyUp/DownOnGround", true) then
if PedIsPlaying(shared.gPOIKidsPlayingDice[1].ped, "/Global/AniDice/Minigame/AmbientDice/GrappleAttempt/GrappleSuccess/PickupDice", true) then
if PedIsValid(gItchPowderPed) and PedIsPlaying(gItchPowderPed, "/Global/HitTree/Standing/Ranged/ItchingPowder/Default", true) then
if PedIsValid(gNerds[2]) and PAnimIsPlaying(TRIGGER._4_G4_SCHOOLTAG2, "/Global/TagSmall/NotUseable/Tagged/VandalTag", false) and PedIsPlaying(gPlayer, "/Global/TagSmall/PedPropsActions/IsPlayer/DrawVandalTag/ParametricTagging/Finished", false) then
if PedIsValid(idGord.id) and PedGetWhoHitMeLast(idGord.id) == gPlayer and not PedIsPlaying(idGord.id, "/Global/Vehicles/Bikes/ExecuteNodes/Attacks/GrapThorw", true) and not PedIsPlaying(idGord.id, "/Global/Vehicles/Bikes/ExecuteNodes/Attacks/GrapThorwLeft", true) then
if PedIsValid(ped) and not PedIsDead(ped) and ped ~= gPlayer and PedIsPlaying(ped, "/Global/Garbagecan/PedPropsActions/StuffGrap/RCV", false) then
if PedIsValid(tagger) and not PedIsDoingTask(tagger, "/Global/AI/Reactions/Criminal/FindTagSpot", true) and not PedIsPlaying(tagger, "/Global/Tags/PedPropsActions/PerformTag/PedDrawMedTag", true) then
if PedIsValid(tagger) and PhotoTargetInFrame(tagger, 2) and PedIsPlaying(tagger, "/Global/Tags/PedPropsActions/PerformTag/PedDrawMedTag", true) then
if PedIsValid(tblGord.id) and PedIsPlaying(tblGord.id, "/Global/Garbagecan/PedPropsActions/StuffGrap/RCV/InCan/die", true) then
if PlayerIsInAreaObject(algie, 2, 4, 0) and PedIsPlaying(gPlayer, "/Global/TagSmall/PedPropsActions/IsPlayer", true) then
if PlayerIsInAreaXYZ(x, y, z, 4, 0) and PedIsPlaying(gPlayer, "/Global/Door/PedPropsActions", true) then
if PlayerIsInAreaXYZ(x, y, z, 4, 0) and PedIsPlaying(gPlayer, "/Global/StealthDoor/PedPropActions/Unoccupied/NoAuthorityInView/RunInside/CloseDoor/WaitInside", true) then
if PlayerIsInTrigger(TRIGGER._1_04_TREE2_TRIG) and PedIsPlaying(gPlayer, "/Global/TreeClimb/Actions/ON_BOT", false) and not MissionTimerHasFinished() then
if PlayerIsInTrigger(TRIGGER._2_S04_LIBRARYJUMP) and (PedIsPlaying(gPlayer, "/Global/WProps/WallClimb", true) or PedIsPlaying(gPlayer, "/Global/Player/JumpActions/Jump/IdleJump", true)) then
if PlayerIsInTrigger(TRIGGER._2_S06_TUTLATTICE) and PedIsPlaying(gPlayer, "/Global/Trellis/Trellis_Actions/Climb_ON_BOT", true) then
if PlayerIsInTrigger(TRIGGER._4_01_TUTLATTICE) and PedIsPlaying(gPlayer, "/Global/Trellis/Trellis_Actions/Climb_ON_BOT", true) then
if PlayerIsInTrigger(TRIGGER._4_04_ENDMINE) and PedIsPlaying(gPlayer, "/Global/Door/PedPropsActions", true) then
if PlayerIsInTrigger(TRIGGER._5_B_STEAMAREA) and PlayerGetHealth() > 0 and not PedIsPlaying(gPlayer, "/Global/5_B/Reactions/SteamReaction", false) then
if PlayerIsInTrigger(TRIGGER._LOWCORONA) and PedIsPlaying(gPlayer, "/Global/Ladder/Ladder_Actions", true) then
if SetShot and PedIsPlaying(gPlayer, "/Global/Ladder/Ladder_Actions", true) then
if shared.bWeedPlantIsDestroyed and PedIsPlaying(gPlayer, "/Global/Door/PedPropsActions", true) then
return PedIsPlaying(gPlayer, "/Global/Tags/PedPropsActions/PerformTag/PedDrawMedTag/TagSuccess", false)
return PedIsPlaying(gPlayer, "/Global/Weapons/WeaponActions/Melee/PoisonSpray/Attacks/PoisonSpray/ShootActions/SprayAttackRun/SprayFrontRun", false)
return PedIsPlaying(gPlayer, "/Global/WPCANNON/UseSpudCannon/In/In/Use/MasterSpawns", false)
return PedIsPlaying(gPlayer, "/Global/WPCANNON/UseSpudCannon/In/In/Use/MasterSpawns", true)
while not (MissionTimerHasFinished() or PedIsPlaying(gPlayer, "/Global/WPCANNON/UseSpudCannon", true)) do
while not (not PedIsValid(gMandy) or PedIsPlaying(gMandy, "/Global/HitTree/Standing/Ranged/Bomb/Stink_Trap", false)) and AreaGetVisible() ~= 0 do
while not (PlayerIsInTrigger(TRIGGER._5_09_CITYHALL_BUILDING) and PedIsPlaying(gPlayer, "/Global/Ladder/Ladder_Actions", true)) do
while not PedIsPlaying(gBully01, "/Global/HitTree/KnockOuts", true) do
while not PedIsPlaying(gCannonNerd, "/Global/Ambient/MissionSpec/GetOnCannon", true) do
while not PedIsPlaying(gGary, "/Global/Ladder/Ladder_Actions_PED", true) do
while not PedIsPlaying(gGary, "/Global/Nemesis/Special/Throw/GetWeapon/Release/Empty", true) do
while not PedIsPlaying(gPlayer, "/Global/1_07/FakeTry/startOpen", true) do
while not PedIsPlaying(gPlayer, "/Global/2_01/Anim/Give/GiveEdna_2_01", true) do
while not PedIsPlaying(gPlayer, "/Global/Actions/Grapples/Mount/MountIdle", true) do
while not PedIsPlaying(gPlayer, "/Global/Chap5Trans/MakeOut/Makeout/GrappleAttempt/Kisses", true) do
while not PedIsPlaying(gPlayer, "/Global/G_Johnny/Cinematic/Jimmy/BellyUp/On_Ground", false) do
while not PedIsPlaying(gPlayer, "/Global/G_Johnny/Cinematic/ThroatGrab/Dash/ThroatGrab/ThroatGrab_Rcv", false) do
while not PedIsPlaying(gPlayer, "/Global/Player/Gifts/GiveFlowers", true) do
while not PedIsPlaying(gPlayer, "/Global/Player/Social_Actions/MakeOut/Makeout", true) do
while not PedIsPlaying(gPlayer, "/Global/Player/Social_Actions/MakeOut/Makeout/GrappleAttempt/Kisses", true) do
while not PedIsPlaying(gPlayer, "/Global/TrainingPlayer/Default", true) do
while not PedIsPlaying(gPlayer, gConditions[gActions.condition], true) do
while not PedIsPlaying(idBucky, "/Global/ToolBox/PedPropsActions/Interact/StartUsing", false) do
while not PedIsPlaying(idDarby, "/Global/BOSS_Darby/Special/Throw/GetWeapon/Release/Empty", true) do
while not PedIsPlaying(insultBoy, "/Global/Ambient/SocialAnims/SocialAcceptApology", true) do
while not PedIsPlaying(ped, "/Global/Shots/Shots_Idle", false) do
while not PedIsPlaying(ped, actionNode, true) do
while not PedIsPlaying(ped, szKissNode, true) do
while not PedIsPlaying(pedAlgie.id, "/Global/NLockA/PedPropsActions/Interact/NPCGetItem/GetBooks/NPCGetItem/GetItem/CloseDoor", false) do
while not PedIsPlaying(pedEarnest.id, "/Global/Ambient/MissionSpec/GetOnCannon", true) do
while not PedIsPlaying(pedEunice.id, "/Global/Player/Social_Actions/MakeOut/Makeout/GrappleAttempt/Kisses/Dismiss", true) do
while not PedIsPlaying(pedRussell.id, "/Global/Ambient/SocialAnims/SocialAcceptApology", true) do
while not PedIsPlaying(shared.ped2, "/Global/3_01/Anims/FlowerGive/FlowerGive", true) do
while not PedIsPlaying(shared.ped2, "/Global/3_01/Anims/KissFinal", true) do
while PedIsPlaying(algie, "/Global/4_G4/Animations/SetupPoster/PlaceIt", false) do
while PedIsPlaying(algie, "/Global/4_G4/Cower", false) do
while PedIsPlaying(assistant, "/Global/3_09/Anims2/Give/GivePackage_3_09", true) do
while PedIsPlaying(attacker.id, wave.EndAction, true) do
while PedIsPlaying(boxer, "/Global/HitTree/Standing/PostHit/Standing/Dead/BoxingStun/StunControl", true) do
while PedIsPlaying(client.id, "/Global/Client_3_R05/Look", true) do
while PedIsPlaying(Earnest, "/Global/HitTree", true) do
while PedIsPlaying(GateNerd.id, "/Global/4_06/GateNerd/Picklock", true) do
while PedIsPlaying(gBucky, "/Global/2_S04/Anim/NerdTeased/endTeased", true) do
while PedIsPlaying(gCop1, "/Global/6_02/WonderNIS/LookAround", true) do
while PedIsPlaying(gDefenders[1], "/Global/4_B2/ReactionAnims/GetUp", true) do
while PedIsPlaying(gDefenders[1], "/Global/4_B2/ReactionAnims/GetUpBelly", true) do
while PedIsPlaying(gDuncan, "/Global/5_02/animations/RatPacking/StandBackUp", true) do
while PedIsPlaying(gGary, "/Global/1_02/PointAtPlayer", true) do
while PedIsPlaying(gGary, "/Global/Ladder/Ladder_Actions_PED", true) do
while PedIsPlaying(gGary, "/Global/WProps/Peds/ScriptedPropInteract", true) do
while PedIsPlaying(gJV_OnBike, "/Global/Vehicles/Bikes/ScriptCalls/3B_JohnnyVincent", true) do
while PedIsPlaying(gPeter, "/Global/1_03/animations/PeterFistShake/FistShakeEnd", true) do
while PedIsPlaying(gPlayer, "/Global/1_03/animations/PlayerPickupSlingshot", true) do
while PedIsPlaying(gPlayer, "/Global/1_06/1_06_Give/Give/GiveHobo_1_06", true) do
while PedIsPlaying(gPlayer, "/Global/1_08/1_08_GiveNotes/1_08_Give/GiveLabNotes1_08", true) do
while PedIsPlaying(gPlayer, "/Global/1_G1/Anims/GetDiary", true) do
while PedIsPlaying(gPlayer, "/Global/1_G1/Anims/Give/GiveBeatrice1_G1", true) do
while PedIsPlaying(gPlayer, "/Global/1_S01/Animations/GIVE_B/GiveMissPhillips1_S01", true) do
while PedIsPlaying(gPlayer, "/Global/1_S01/Success", false) or PedIsPlaying(gPlayer, "/Global/1_S01/Success", true) do
while PedIsPlaying(gPlayer, "/Global/2_01/Anim/Give/GiveEdna_2_01", true) do
while PedIsPlaying(gPlayer, "/Global/2_01/Anim/GiveItem", true) do
while PedIsPlaying(gPlayer, "/Global/2_02_Owner/Anims/GIVE/GiveComicOwner", true) do
while PedIsPlaying(gPlayer, "/Global/2_07/CelebrateTrophy", true) do
while PedIsPlaying(gPlayer, "/Global/3_01/Anims/GivePhotos/GiveJohnny3_01", true) do
while PedIsPlaying(gPlayer, "/Global/3_05/Animations/Give/GiveLola3_05/", true) do
while PedIsPlaying(gPlayer, "/Global/3_08/NewSweater", false) do
while PedIsPlaying(gPlayer, "/Global/3_09/Anims/Give/GivePackage_3_09", true) do
while PedIsPlaying(gPlayer, "/Global/3_B/PlayerFallOffBike/HitHardBack", false) do
while PedIsPlaying(gPlayer, "/Global/3_G3/CustomAnim/Kiss", true) do
while PedIsPlaying(gPlayer, "/Global/3_R09/Animations/GetBrocketLauncher", true) do
while PedIsPlaying(gPlayer, "/Global/4_01/Anims/GIVE/GiveEarnest_4_01", true) do
while PedIsPlaying(gPlayer, "/Global/5_05/NIS/Give/GiveZoe_5_05", true) do
while PedIsPlaying(gPlayer, "/Global/Ambient/MissionSpec/BoxingCheer/BoxingEnding", true) do
while PedIsPlaying(gPlayer, "/Global/Ambient/MissionSpec/Clothing/TryClothesAnims", true) do
while PedIsPlaying(gPlayer, "/Global/Ambient/Scripted/CowDance/Animation/Failure", true) do
while PedIsPlaying(gPlayer, "/Global/Ambient/Scripted/CowDance/CowDanceMusicStop", false) do
while PedIsPlaying(gPlayer, "/Global/C7/PlayerSit/PlayerStand", true) do
while PedIsPlaying(gPlayer, "/Global/C9/PlayerSit/PlayerStand", true) do
while PedIsPlaying(gPlayer, "/Global/Chap5Trans/MakeOut/Makeout/GrappleAttempt/Kisses", true) do
while PedIsPlaying(gPlayer, "/Global/DuffBag/PedPropsActions/RummageInDuffel", true) do
while PedIsPlaying(gPlayer, "/Global/G_Johnny/Cinematic/Jimmy/BellyUp/BellyUpGetUp/BellyUpGetUpGetUp", false) do
while PedIsPlaying(gPlayer, "/Global/Give1_07/Give_Attempt", true) do
while PedIsPlaying(gPlayer, "/Global/Give2S04", true) do
while PedIsPlaying(gPlayer, "/Global/GiveBagmrbls", true) do
while PedIsPlaying(gPlayer, "/Global/GiveSuperGlue", true) do
while PedIsPlaying(gPlayer, "/Global/GiveWftbomb", true) do
while PedIsPlaying(gPlayer, "/Global/GlueBench/PedPropsActions/Use", true) do
while PedIsPlaying(gPlayer, "/Global/HitTree/Standing/BlockHits", true) do
while PedIsPlaying(gPlayer, "/Global/NLockA/PedPropsActions/Interact/PlantStinkbomb/OpenDoor", true) do
while PedIsPlaying(gPlayer, "/Global/NLockA/PedPropsActions/Interact/PlantStinkbomb/OpenDoor/TossStinkbomb", false) or PedIsPlaying(gPlayer, "/Global/NLockA/PedPropsActions/Interact/PlantStinkbomb/OpenDoor/TossStinkbomb", true) do
while PedIsPlaying(gPlayer, "/Global/Player/Gifts/Errand_BUS_Detective", true) do
while PedIsPlaying(gPlayer, "/Global/Player/Gifts/Errand_BUS_Drugs", true) do
while PedIsPlaying(gPlayer, "/Global/Player/Gifts/Errand_BUS_Jacket", true) do
while PedIsPlaying(gPlayer, "/Global/Player/Gifts/Errand_BUS_PhotoCash", true) do
while PedIsPlaying(gPlayer, "/Global/Player/Gifts/Errand_IND_Package", true) do
while PedIsPlaying(gPlayer, "/Global/Player/Gifts/Errand_IND_PACKGET", true) do
while PedIsPlaying(gPlayer, "/Global/Player/Gifts/Errand_IND_PackMon", true) do
while PedIsPlaying(gPlayer, "/Global/Player/Gifts/Errand_RIC_Crab", true) do
while PedIsPlaying(gPlayer, "/Global/Player/Gifts/Errand_RIC_LostBear", true) do
while PedIsPlaying(gPlayer, "/Global/Player/Gifts/Errand_RIC_Mailman", true) do
while PedIsPlaying(gPlayer, "/Global/Player/Gifts/Errand_SCH_ADMIRE1", true) do
while PedIsPlaying(gPlayer, "/Global/Player/Gifts/Errand_SCH_ADMIRE2", true) do
while PedIsPlaying(gPlayer, "/Global/Player/Gifts/Errand_SCH_Tutorial", true) do
while PedIsPlaying(gPlayer, "/Global/Player/Gifts/Errand_SCH_Tutorial2", true) do
while PedIsPlaying(gPlayer, "/Global/Player/Gifts/GetMoney", true) do
while PedIsPlaying(gPlayer, "/Global/Player/Gifts/GiveChocolates", true) do
while PedIsPlaying(gPlayer, "/Global/Player/Social_Actions/Give/UseOverride", true) do
while PedIsPlaying(gPlayer, "/Global/Player/Social_Actions/HarassMoves/Humiliations", true) do
while PedIsPlaying(gPlayer, "/Global/Player/Social_Actions/HarassMoves/Humiliations/Humiliate_Init/Humiliate_Me/5-8_IndianBurn", true) or PedIsPlaying(gPlayer, "/Global/Player/Social_Actions/HarassMoves/Humiliations/Humiliate_Init/Humiliate_Me/5-8_HitSelf", true) or PedIsPlaying(gPlayer, "/Global/Player/Social_Actions/HarassMoves/Humiliations/Humiliate_Init/Humiliate_Me/5-8_NoogieSpit", true) or PedIsPlaying(gPlayer, "/Global/Player/Social_Actions/HarassMoves/Humiliations/Humiliate_Init/WaitForVictim/EmergencyAnim", true) do
while PedIsPlaying(gPlayer, "/Global/Player/Social_Actions/MakeOut/Makeout", true) do
while PedIsPlaying(gPlayer, "/Global/Player/Social_Actions/MakeOut/Makeout/GrappleAttempt/Kisses", true) or PedIsPlaying(ambientLola, "/Global/Player/Social_Actions/MakeOut/Makeout/GrappleAttempt/Kisses", true) do
while PedIsPlaying(gPlayer, "/Global/Player/Social_Actions/MakeOut/Makeout/GrappleAttempt/Kisses", true) or PedIsPlaying(beatrice, "/Global/Player/Social_Actions/MakeOut/Makeout/GrappleAttempt/Kisses", true) do
while PedIsPlaying(gPlayer, "/Global/Player/Social_Actions/MakeOut/Makeout/GrappleAttempt/Kisses", true) or PedIsPlaying(gBeatrice, "/Global/Player/Social_Actions/MakeOut/Makeout/GrappleAttempt/Kisses", true) do
while PedIsPlaying(gPlayer, "/Global/Player/Social_Actions/MakeOut/Makeout/GrappleAttempt/Kisses", true) or PedIsPlaying(idEunice.id, "/Global/Player/Social_Actions/MakeOut/Makeout/GrappleAttempt/Kisses", true) do
while PedIsPlaying(gPlayer, "/Global/Player/Social_Actions/MakeOut/Makeout/GrappleAttempt/Kisses", true) or PedIsPlaying(idLola, "/Global/Player/Social_Actions/MakeOut/Makeout/GrappleAttempt/Kisses", true) do
while PedIsPlaying(gPlayer, "/Global/Player/Social_Actions/MakeOut/Makeout/GrappleAttempt/Kisses", true) or PedIsPlaying(mandy, "/Global/Player/Social_Actions/MakeOut/Makeout/GrappleAttempt/Kisses", true) do
while PedIsPlaying(gPlayer, "/Global/Player/Social_Actions/MakeOut/Makeout/GrappleAttempt/Kisses", true) or PedIsPlaying(pedPinky.id, "/Global/Player/Social_Actions/MakeOut/Makeout/GrappleAttempt/Kisses", true) do
while PedIsPlaying(gPlayer, "/Global/SodaMach", true) do
while PedIsPlaying(gPlayer, "/Global/Tags/PedPropsActions/PerformTag/DrawMedTag/ParametricTagging/Finished", false) do
while PedIsPlaying(gPlayer, "/Global/TrainingPlayer/Attacks/GroundAttacks/GroundAttacks/Strikes/HeavyAttacks", true) do
while PedIsPlaying(gPlayer, "/Global/Vehicles/Bikes/ScriptCalls/RaceVictory", true) do
while PedIsPlaying(gPlayer, "/Global/Vehicles/Test/Throw", true) do
while PedIsPlaying(gPlayer, CowLastAnim, false) do
while PedIsPlaying(gPlayer, unlockAnim, true) do
while PedIsPlaying(gPlayer, victoryAnim, true) do
while PedIsPlaying(gTargetBoy, "/Global/MGSocPen/TargetReactions/Cheer", true) do
while PedIsPlaying(gTargetBoy, "/Global/MGSocPen/TargetReactions/CustomHitTree", true) do
while PedIsPlaying(gTargetBoy, "/Global/MGSocPen/TargetReactions/Scared", true) do
while PedIsPlaying(gTed, "/Global/4_B2/ReactionAnims/Taunt", true) do
while PedIsPlaying(guy.id, "/Global/Ambient/Scripted/Workout/Workout_Child/BeginWorkout/EndWorkout", true) do
while PedIsPlaying(id2ndMan, "/Global/1_07/DontMess", false) do
while PedIsPlaying(idBucky, "/Global/1_07/EndCower", false) do
while PedIsPlaying(idBucky, "/Global/ToolBox/PedPropsActions/Interact/StartUsing", false) do
while PedIsPlaying(idDarby, "/Global/2_B/DrbyVault/PlayAnim", true) do
while PedIsPlaying(idRussell, "/Global/5_07a/NIS/Russell/Russell02", true) do
while PedIsPlaying(insultBoy, "/Global/Ambient/SocialAnims/SocialAcceptApology", true) do
while PedIsPlaying(opponent, "/Global/AI/CombatActions/CombatActions/PostHit/OnGround", true) do
while PedIsPlaying(outroPedA, "/Global/4_06/4_06_Wizz/Disappoint", true) do
while PedIsPlaying(ped, action, true) or SoundSpeechPlaying() do
while PedIsPlaying(ped, action, true) or SoundSpeechPlaying(ped) do
while PedIsPlaying(ped, szKissNode, true) do
while PedIsPlaying(pedMascot.id, "/Global/4_05/Anims/MascotActions/PracticeCharge", true) do
while PedIsPlaying(pedMascot.id, "/Global/4_05/Anims/MascotActions/Pushups", true) do
while PedIsPlaying(pedRussell.id, "/Global/Ambient/SocialAnims/SocialAcceptApology", true) do
while PedIsPlaying(pedRussell.id, "/Global/Ambient/SocialAnims/SocialHumiliateAttack", true) do
while PedIsPlaying(race.countdown_ped.id, race.countdown_ped.actionNodeStart, true) do
while PedIsPlaying(Rudy, "/Global/3_01D/Animations/SANTA_START", false) do
while PedIsPlaying(shared.ped1, "/Global/3_01/Anims/FlowerGive/FlowerGive", true) do
while PedIsPlaying(shared.ped2, "/Global/3_01/Anims/KissFinal", true) do
while PedIsPlaying(sheet4Guard, "/Global/2_S04/Anim/AttachMarbles", true) do
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov edx, eax
neg edx
sbb edx, edx
mov ecx, esp
add edx, 0x3
push eax
mov dword ptr [ecx], edx
call 0x5C7380
mov edi, dword ptr [eax+0x2E0]
push 0x2
push esi
call LuaParam::GetBool
add esp, 0x10
push eax
push 0x1
push esi
call LuaParam::GetString
add esp, 0x8
push eax
lea ecx, ptr [edi+0x258]
call 0x5F3D50
mov byte ptr [esp+0x8], al
mov eax, dword ptr [esp+0x8]
push eax
push esi
call LuaParam::PushBool
add esp, 0x8
pop edi
mov eax, 0x1
pop esi
pop ecx
ret
-- never used
sub esp, 0x104
push ebx
push ebp
mov ebp, dword ptr [esp+0x110]
push esi
push edi
push 0x0
push ebp
call LuaParam::GetInt
add esp, 0x8
test eax, eax
jnz 0xA
mov edi, dword ptr [0xC1AEA8]
jmp 0x16
push ecx
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
mov edi, eax
test edi, edi
mov byte ptr [esp+0x10], 0x0
jz 0x9E
mov ecx, dword ptr [edi+0x1D4]
call 0x4DAB30
push 0x1
push ebp
mov ebx, eax
call LuaParam::GetString
add esp, 0x8
lea edx, ptr [esp+0x14]
mov cl, byte ptr [eax]
mov byte ptr [edx], cl
add eax, 0x1
add edx, 0x1
test cl, cl
jnz 0xFFFFFFF4
lea eax, ptr [esp+0x14]
push 0x928AC4
push eax
call 0x85F5DF
add esp, 0x8
test eax, eax
jnz 0xF
test ebx, ebx
setnz al
test al, al
mov byte ptr [esp+0x10], al
jnz 0x4D
xor esi, esi
test ebx, ebx
jle 0x47
lea esp, ptr [esp]
mov ecx, dword ptr [edi+0x1D4]
push esi
call 0x4DAB70
movsx eax, word ptr [eax+0x10E]
cmp eax, 0xFFFFFFFF
jz 0x1D
mov eax, dword ptr [eax*4+0xC67738]
test eax, eax
jz 0x12
lea ecx, ptr [esp+0x14]
push ecx
mov ecx, eax
call 0x50E940
test al, al
jnz 0xB
add esi, 0x1
cmp esi, ebx
jl 0xFFFFFFC8
jmp 0x7
mov byte ptr [esp+0x10], 0x1
mov edx, dword ptr [esp+0x10]
push edx
push ebp
call LuaParam::PushBool
add esp, 0x8
pop edi
pop esi
pop ebp
mov eax, 0x1
pop ebx
add esp, 0x104
ret
elseif gFatty ~= nil and not bFattyIsFleeing and (not PedIsSocializing(gFatty) or PedIsWantingToSocialize(gFatty)) then
if PedIsValid(CameraTarget) and not PedIsSocializing(gPlayer) and not PedIsWantingToSocialize(CameraTarget) then
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
mov byte ptr [esp+0x4], 0x0
jz 0x1E
cmp dword ptr [eax+0xBB0], 0x0
jz 0x10
cmp dword ptr [eax+0xBB4], 0x0
mov byte ptr [esp+0x4], 0x1
jnz 0x7
mov byte ptr [esp+0x4], 0x0
mov eax, dword ptr [esp+0x4]
push eax
push esi
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
pop esi
pop ecx
ret
if PedIsSpotted(gPlayer, 3) then
push ecx
push ebx
push esi
mov esi, dword ptr [esp+0x10]
push edi
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x8
test eax, eax
jnz 0xA
mov ebx, dword ptr [0xC1AEA8]
jmp 0x16
push ecx
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
mov ebx, eax
push ecx
mov edi, esp
push 0x1
push esi
call LuaParam::GetInt
add esp, 0x8
push ebx
mov dword ptr [edi], eax
call 0x602F20
mov byte ptr [esp+0x14], al
mov eax, dword ptr [esp+0x14]
push eax
push esi
call LuaParam::PushBool
add esp, 0x10
pop edi
pop esi
mov eax, 0x1
pop ebx
pop ecx
ret
if F1_HattrickCarDamageCheck(gHattrickCar) or PedIsStandingOnVehicle(gPlayer, gHattrickCar) then
if PedIsStandingOnVehicle(gPlayer, gHattrickCar) then
if PlayerIsInTrigger(TRIGGER._2_S02_CARFAILTRIGGER) or PedIsStandingOnVehicle(gPlayer, gHattrickCar) then
push ecx
push ebp
mov ebp, dword ptr [esp+0xC]
push esi
push edi
push 0x0
push ebp
call LuaParam::GetInt
push 0x1
push ebp
mov esi, eax
call LuaParam::GetInt
add esp, 0xC
mov edi, eax
mov eax, esp
push esi
mov byte ptr [esp+0x14], 0x0
mov dword ptr [eax], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x42
cmp edi, 0xFFFFFFFF
jnz 0x18
mov esi, dword ptr [esi+0x1758]
test esi, esi
jz 0x2E
mov al, byte ptr [esi+0x108]
and al, 0x7
cmp al, 0x2
jmp 0x1B
push edi
call 0x44A580
add esp, 0x4
test eax, eax
jz 0x1A
mov esi, dword ptr [esi+0x1758]
test esi, esi
jz 0xB
cmp esi, eax
mov byte ptr [esp+0xC], 0x1
jz 0x7
mov byte ptr [esp+0xC], 0x0
mov ecx, dword ptr [esp+0xC]
push ecx
push ebp
call LuaParam::PushBool
add esp, 0x8
pop edi
pop esi
mov eax, 0x1
pop ebp
pop ecx
ret
if not bShownNewConstTut and PedIsTargetable(gPlayer, pedConstantine.id) then
push ecx
push ebx
mov ebx, dword ptr [esp+0xC]
push ebp
push esi
push edi
push 0x0
push ebx
call LuaParam::GetInt
push 0x1
push ebx
mov esi, eax
call LuaParam::GetInt
add esp, 0xC
mov edi, eax
mov eax, esp
push esi
mov dword ptr [eax], 0x2
call 0x5C7380
add esp, 0x4
mov esi, eax
mov eax, esp
push edi
mov dword ptr [eax], 0x2
call 0x5C7380
add esp, 0x8
test esi, esi
mov edi, eax
jz 0x9B
test edi, edi
jz 0x93
mov ecx, 0xC3CC68
call 0x4F1250
fstp dword ptr [esp+0x10], st
mov ecx, dword ptr [esi+0x1C8]
push edi
call 0x4D5AE0
fldz
fcomp st, dword ptr [esp+0x10]
mov ebp, eax
fnstsw ax
test ah, 0x44
jnp 0x6
mov al, 0x1
jmp 0x4
xor al, al
mov ecx, dword ptr [esi+0x1C8]
push eax
push edi
push ebp
call 0x4D7AF0
fstp dword ptr [esp+0x10], st
mov esi, dword ptr [esi+0x1C8]
push 0x0
push edi
mov ecx, esi
call 0x4D6E20
test al, al
jz 0x1C
fld st, dword ptr [0x928A78]
fcomp st, dword ptr [esp+0x10]
fnstsw ax
test ah, 0x44
jnp 0xB
test ebp, ebp
mov byte ptr [esp+0x10], 0x1
jnz 0x7
mov byte ptr [esp+0x10], 0x0
mov eax, dword ptr [esp+0x10]
push eax
push ebx
call LuaParam::PushBool
mov eax, 0x1
add esp, 0x8
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
if not PedIsUsingProp(gPlayer) or bMissionActive and not MissionActive() then
while not PedIsUsingProp(gMandy) and AreaGetVisible() ~= 0 do
while PedIsUsingProp(gPlayer) do
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
mov byte ptr [esp+0x4], 0x0
jz 0x10
cmp dword ptr [eax+0x548], 0x0
jz 0x7
mov byte ptr [esp+0x4], 0x1
mov eax, dword ptr [esp+0x4]
push eax
push esi
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
pop esi
pop ecx
ret
elseif gBeatrice and PedIsValid(gBeatrice) and PedIsDead(gBeatrice) then
elseif gBeatrice and PedIsValid(gBeatrice) then
elseif gMandy ~= nil and PedIsValid(gMandy) then
elseif gPlayerNearDog and gRunnerId and PedIsValid(gRunnerId) and PedIsInAreaXYZ(gRunnerId, -21.8766, -16.5356, 2.55495, 1, 0) then
elseif gPrefect and PedIsValid(gPrefect) then
elseif idBucky and PedIsValid(idBucky) and not bBuckyCower then
elseif not PedIsValid(entry) then
elseif not PedIsValid(event.mSpeechPed) or SoundSpeechPlaying() == false or F_SkipOrNot(true) then
elseif not PedIsValid(gTed) then
elseif not PedIsValid(kicker) then
elseif not PlayerIsInTrigger(TRIGGER._1_08_CAFTRIG) and gLackey[8].bAlive == true and gLackey[8].ped ~= nil and PedIsValid(gLackey[8].ped) then
elseif PedIsValid(entry) and PedGetFaction(entry) == 1 then
elseif PedIsValid(gCheater01) == true and PedIsValid(gCheater02) == true then
elseif PedIsValid(gNerds[2]) and not PedIsDead(gNerds[2]) then
elseif PedIsValid(gSpazzMan) and PedIsDead(gSpazzMan) then
elseif PedIsValid(gTablePeds[gCurrentJock].id) and not PedIsDead(gTablePeds[gCurrentJock].id) and 0 < PedGetHealth(gTablePeds[gCurrentJock].id) then
elseif PedIsValid(gTed) and PedIsDead(gTed) then
elseif PedIsValid(idBurton) then
elseif PedIsValid(idTeacher2) and PedHasGeneratedStimulusOfType(idTeacher2, 18) then
elseif PedIsValid(item.ped) then
elseif PedIsValid(Mascot) and not MascotRun then
elseif PedIsValid(santa) == true then
elseif shared.gBif and PedIsValid(shared.gBif) and (PedHasGeneratedStimulusOfType(shared.gBif, 9) or PedHasGeneratedStimulusOfType(shared.gBif, 55) or shared.bBifAttacked) then
elseif shared.gBif and PedIsValid(shared.gBif) and PedIsDead(shared.gBif) then
elseif Wave_Counter == 3 and PlayerIsInTrigger(TRIGGER._2_07_PREPPY_NINJA_TRIG) and PedIsValid(pedGord) then
if (not PedIsValid(gTablePeds[1].id) or PedIsDead(gTablePeds[1].id)) and (not PedIsValid(gTablePeds[2].id) or PedIsDead(gTablePeds[2].id)) then
if (ped.model == 18 or ped.model == 13) and ped.id and PedIsValid(ped.id) and not PedIsDead(ped.id) then
if 0 < table.getn(tblDialogue) and PedIsValid(tblDialogue[1].id) and not SoundSpeechPlaying(gord) and not SoundSpeechPlaying(lola) then
if ambientLola and PedIsValid(ambientLola) then
if AreaGetVisible() == 35 and PedIsValid(shared.gdormHeadID) then
if bActive and PedIsValid(Dog) and (PedIsInCombat(Dog) or PedIsDead(Dog) or PedGetWhoHitMeLast(Dog) == gPlayer or PedIsDoingTask(Dog, "/Global/AI_Dog/GeneralObjectives/FleeObjective", true) and not F_PedIsDead(gPlayer)) then
if bActive and PedIsValid(Dog) and (PedIsInCombat(Dog) or PedIsDead(Dog) or PedGetWhoHitMeLast(Dog) == gPlayer or PedIsDoingTask(Dog, "/Global/AI_Dog/GeneralObjectives/FleeObjective", true)) then
if bAtLola and not bLolaSocial and PedIsValid(idGord.id) then
if bBustPlayer and AreaGetVisible() == 35 and PedIsValid(shared.gdormHeadID) and (PedCanSeeObject(shared.gdormHeadID, gPlayer, 3) or PedIsHit(shared.gdormHeadID, 2, 500)) then
if beatrice and PedIsValid(beatrice) then
if bGaryRanToClass and PedIsValid(pedGary.id) then
if bHandHolding and not bPlayerIsSpotted and PedIsValid(gord) and PedIsValid(lola) and GetTimer() - nTimerSpeech >= 6500 and not SoundSpeechPlaying(gord) and not SoundSpeechPlaying(lola) then
if bJohnnyFree and PedIsValid(gJohnny) then
if Bum and PedIsValid(Bum) then
if clint and PedIsValid(clint) then
if closestElfIndex ~= -1 and PedIsValid(tblElvesList[closestElfIndex].elf) then
if CoachBurton.id and PedIsValid(CoachBurton.id) then
if cop and PedIsValid(cop) then
if curPed ~= -1 and PedIsValid(curPed) and vehicle == nil then
if Deskwarning == true and BitchAmbient == false and PedIsValid(shared.gSecretaryID) then
if edgar and PedIsValid(edgar) then
if endPed and PedIsValid(endPed) then
if enemy and PedIsValid(enemy) then
if entity and PedIsValid(entity) and PedIsInTrigger(entity, TRIGGER._4_06_DOCKINGTRIGGER) then
if entity and PedIsValid(entity) and PedIsInTrigger(entity, TRIGGER._4_06_INSIDEDOCKINGTRIGGER) then
if entity.ped and PedIsValid(entity.ped) and (PedIsDead(entity.ped) or PedGetHealth(entity.ped) <= 0) then
if entry.id and PedIsValid(entry.id) then
if entry.isPed and PedIsValid(entry.id) then
if entry.phase == nMissionPhase and entry.id and PedIsValid(entry.id) and not entry.bAttacked then
if event.mSpeechPed and PedIsValid(event.mSpeechPed) and SoundSpeechPlaying(event.mSpeechPed) == true then
if event.mSpeechPed and PedIsValid(event.mSpeechPed) then
if gAmbientEventTable.tCop1 and PedIsValid(gAmbientEventTable.tCop1) and PedGetTargetPed(gAmbientEventTable.tCop1) == gPlayer then
if gAmbientEventTable.tCop1 and PedIsValid(gAmbientEventTable.tCop1) then
if gAmbientEventTable.tCop2 and PedIsValid(gAmbientEventTable.tCop2) and PedGetTargetPed(gAmbientEventTable.tCop2) == gPlayer then
if gAmbientEventTable.tCop2 and PedIsValid(gAmbientEventTable.tCop2) then
if gAmbientEventTable.tCop3 and PedIsValid(gAmbientEventTable.tCop3) then
if gAmbientEventTable.tVandal and PedIsValid(gAmbientEventTable.tVandal) then
if gBeatrice and PedIsValid(gBeatrice) then
if gBully01 and not PedIsDead(gBully01) and PedIsValid(gBully01) then
if gBully01 and PedIsValid(gBully01) and PedGetWhoHitMeLast(gBully01) == gPlayer or gBully02 and PedIsValid(gBully02) and PedGetWhoHitMeLast(gBully02) == gPlayer or gBully03 and PedIsValid(gBully03) and PedGetWhoHitMeLast(gBully03) == gPlayer then
if gBully01 and PedIsValid(gBully01) then
if gBully02 and PedIsValid(gBully02) then
if gBully03 and PedIsValid(gBully03) then
if gCop1 and PedIsValid(gCop1) then
if gCop1 ~= nil and PedIsValid(gCop1) then
if gCop2 and PedIsValid(gCop2) then
if gCopCar and PedIsValid(gCopCar) then
if gCurrentBully01 and PedIsValid(gCurrentBully01) and not PedIsDead(gCurrentBully01) then
if gCurrentBully01 and PedIsValid(gCurrentBully01) then
if gCurrentBully02 and PedIsValid(gCurrentBully02) and not PedIsDead(gCurrentBully02) then
if gCurrentBully02 and PedIsValid(gCurrentBully02) then
if gEdgar and PedIsValid(gEdgar) then
if gEnemy01 and PedIsValid(gEnemy01) then
if gEnemy02 and PedIsValid(gEnemy02) then
if gEnemy03 and PedIsValid(gEnemy03) then
if gFatty ~= nil and PedIsValid(gFatty) and not bDropStinkBombs then
if gFatty ~= nil and PedIsValid(gFatty) then
if gFirstImmortalPrep and PedIsValid(gFirstImmortalPrep) then
if gGary and PedIsValid(gGary) and PedIsDead(gGary) then
if gGary and PedIsValid(gGary) and PedIsPlaying(gGary, "/Global/Garbagecan/PedPropsActions/StuffGrap", true) then
if gGary and PedIsValid(gGary) then
if gGary ~= nil and PedIsValid(gGary) then
if gGreaserAttacker ~= nil and PedIsValid(gGreaserAttacker) and (PlayerIsInAreaObject(gGreaserAttacker, 2, 15, 0) or PedIsHit(gGreaserAttacker, 2, 1000) and PedGetWhoHitMeLast(gGreaserAttacker) == gPlayer) then
if gHattrick and PedIsValid(gHattrick) then
if gHobo and PedIsValid(gHobo) then
if gHoboDied and PedIsValid(gHobo) and not PedIsDead(gHobo) then
if gLackey[10].bAttackedPlayer and PedIsValid(gLackey[10].ped) then
if gLackey[10].ped and PedIsValid(gLackey[10].ped) then
if gLackey[8].ped and PedIsValid(gLackey[8].ped) then
if gNerds[1] and PedIsValid(gNerds[1]) then
if gNerds[2] and PedIsValid(gNerds[2]) then
if gPeanut and PedIsValid(gPeanut) then
if gPedro and PedIsValid(gPedro) then
if gPedroBully and PedIsValid(gPedroBully) then
if gPeds[1] and PedIsValid(gPeds[1]) then
if gPeds[2] and PedIsValid(gPeds[2]) then
if gPetey and PedIsValid(gPetey) then
if gPrefect and PedIsValid(gPrefect) then
if gPrincipal and PedIsValid(gPrincipal) then
if gPushers[1] and PedIsValid(gPushers[1]) then
if gPushers[2] and PedIsValid(gPushers[2]) then
if Greaser1 and PedIsValid(Greaser1) and PedIsDead(Greaser1) or Greaser2 and PedIsValid(Greaser2) and PedIsDead(Greaser2) then
if gRooftopPeds1[1] and PedIsValid(gRooftopPeds1[1]) then
if gRooftopPeds1[2] and PedIsValid(gRooftopPeds1[2]) then
if gRunnerId and PedIsValid(gRunnerId) then
if gRussell and PedIsValid(gRussell) and not PedIsDead(gRussell) then
if gRussell and PedIsValid(gRussell) then
if gRussell ~= nil and PedIsValid(gRussell) then
if gSecondImmortalPrep and PedIsValid(gSecondImmortalPrep) then
if gSecPathNode == PathGetLastNode(PATH._1_01_SECPATH) and gSecretary and PedIsValid(gSecretary) and not PedIsDead(gSecretary) then
if gSecretary and PedIsValid(gSecretary) and not PedIsDead(gSecretary) then
if gStageUpdateFunction == F_Stage5 and mandy and PedIsValid(mandy) then
if gTablePeds[gCurrentJock].id and PedIsValid(gTablePeds[gCurrentJock].id) then
if guy.time == -1 and guy.state == STATE_RUNN and PedIsValid(guy.id) and not F_PedIsDead(guy.id) then
if gVance and PedIsValid(gVance) then
if i < numInLineup and PedIsValid(tblLineupList[i]) then
if i ~= CurrentMissionNumber and PedIsValid(Objectives[i].id) then
if id2ndMan and PedIsValid(id2ndMan) and not PedIsDead(id2ndMan) then
if idBucky and PedIsValid(idBucky) and (PedGetHealth(idBucky) <= 0 or Bucky_Current_Health <= 0) then
if idBucky and PedIsValid(idBucky) then
if idDarby ~= nil and PedIsValid(idDarby) then
if idHitMan and PedIsValid(idHitMan) and not PedIsDead(idHitMan) then
if idLola and PedIsValid(idLola) then
if idNemesis ~= nil and PedIsValid(idNemesis) then
if idPinky.id and PedIsValid(idPinky.id) then
if idZoe and PedIsValid(idZoe) then
if item.elf ~= -1 and PedIsValid(item.elf) == true and PedIsDead(item.elf) == false and 0 < PedGetHealth(item.elf) and item.attacking == false then
if item.elf ~= -1 and PedIsValid(item.elf) and PedIsDead(item.elf) == false and 0 < PedGetHealth(item.elf) then
if johnny and PedIsValid(johnny) then
if kissGirl and PedIsValid(kissGirl) then
if librarian and PedIsValid(librarian) then
if mandy and PedIsValid(mandy) then
if mandy ~= nil and PedIsValid(mandy) then
if MissionActiveSpecific("2_08") and bLetPlayerIn and shared.gBif and PedIsValid(shared.gBif) then
if MissionActiveSpecific("2_08") and shared.gBif and PedIsValid(shared.gBif) then
if NodeID == 1 and PedIsValid(PedID) then
if NodeID == 3 and PedIsValid(PedID) then
if NodeID == 7 and PedIsValid(FireMan) then
if NodeID == 9 and PedIsValid(FireMan) then
if not ((not (gRooftopPeds1[1] and PedIsValid(gRooftopPeds1[1])) or PedIsDead(gRooftopPeds1[1])) and (not (gRooftopPeds1[2] and PedIsValid(gRooftopPeds1[2])) or PedIsDead(gRooftopPeds1[2]))) or gPeanut and PedIsValid(gPeanut) and not PedIsDead(gPeanut) then
if not bBuckyHiding and (PedIsValid(gGateBully01) and PedCanSeeObject(idBucky, gGateBully01, 2) or PedIsValid(gGateBully02) and PedCanSeeObject(idBucky, gGateBully02, 2)) then
if not bFattyMsg and not bHit and PedIsValid(fatty) and PedIsInAreaObject(gPlayer, fatty, 2, 5, 0) then
if not bGetByBif and not shared.bAllowPlayerInside and not shared.bBifDefeated and shared.gAreaDATFileLoaded[32] and shared.gBif and PedIsValid(shared.gBif) then
if not bGreaser1KOd and PedIsValid(Greaser1) and PedGetHealth(Greaser1) <= 0 then
if not bGreaser2KOd and PedIsValid(Greaser2) and PedGetHealth(Greaser2) <= 0 then
if not bPrepAttackedPlayer and PedIsValid(pedPrep.id) and PedCanSeeObject(pedPrep.id, gPlayer, 3) then
if not gBurtonChased and gPedsFled and PedIsValid(CoachBurton.id) and GetTimer() - gPedsFled > 4000 then
if not gEdnaFirstSpeech and PedIsValid(gEdna) and PlayerIsInAreaObject(gEdna, 2, 8, 0) then
if not gFirstCheap and PedIsValid(gFirstImmortalPrep) and 0 >= PedGetHealth(gFirstImmortalPrep) then
if not gLastStand and PedIsValid(idDO) and PedIsInTrigger(idDO, TRIGGER._5_04_DO_GOAL) then
if not gSecondCheap and PedIsValid(gSecondImmortalPrep) and 0 >= PedGetHealth(gSecondImmortalPrep) then
if not L_PedGetData(idGreaser, "KO") and PedIsValid(idGreaser) and PedGetHealth(idGreaser) <= 0 then
if not madeThemWorkout and gEnemiesPerMission[3][1].id and PedIsValid(gEnemiesPerMission[3][1].id) then
if not PedIsValid(entry) then
if not PedIsValid(frMidget01) or PedIsDead(frMidget01) then
if not PedIsValid(frMidget02) or PedIsDead(frMidget02) then
if not PedIsValid(gCheater01) and not PedIsValid(gCheater02) then
if not PedIsValid(gHobo) or PedIsDead(gHobo) then
if not PedIsValid(gSpawned03) then
if not PedIsValid(gSpawned04) then
if not PedIsValid(gSpawned05) then
if not PedIsValid(gSpawned06) then
if not PedIsValid(gTablePeds[gCurrentJock].id) or PedIsDead(gTablePeds[gCurrentJock].id) then
if not PedIsValid(gTheo) then
if not PedIsValid(idBurton) then
if not PedIsValid(idGord.id) or PedIsDead(idGord.id) or F_PedIsDead(idGord.id) then
if not PedIsValid(idZoe) then
if not PedIsValid(prank.id) then
if not PedIsValid(shared.gDunkMidget) then
if not PedIsValid(shared.gSecretaryID) then
if not PedIsValid(tagger) then
if not shared.bBifAttacked and shared.gBif and PedIsValid(shared.gBif) and PedIsHit(shared.gBif, 2, 1000) and PedGetWhoHitMeLast(shared.gBif) == gPlayer then
if not shared.bBifAttacked and shared.gBif and PedIsValid(shared.gBif) then
if not tableEntry.distracted and PedIsValid(tableEntry.id) and tableEntry.id == pedId then
if OutOfRange == true and PedIsValid(ScenarioPed) and PedIsOnScreen(ScenarioPed) == false then
if ped and PedIsValid(ped) then
if ped ~= 0 and PedIsValid(ped) and not PedIsDead(ped) and PedIsPlaying(ped, "/Global/NLockA/PedPropsActions/Interact/StuffGrap/RCV", false) then
if ped.id and not PedIsDead(ped.id) and PedIsValid(ped.id) then
if ped.id and PedIsValid(ped.id) then
if ped1 ~= pedID and PedIsValid(ped1) and not F_InDeadPool(ped1) and PedIsPlaying(ped1, "/Global/HitTree/Standing/Ranged/Bomb/Stinky/Stinky", true) then
if ped2 ~= pedID and PedIsValid(ped2) and not F_InDeadPool(ped2) and PedIsPlaying(ped2, "/Global/HitTree/Standing/Ranged/Bomb/Stinky/Stinky", true) then
if ped3 ~= pedID and PedIsValid(ped3) and PedIsPlaying(ped3, "/Global/HitTree/Standing/Ranged/Bomb/Stinky/Stinky", true) and not F_InDeadPool(ped3) then
if ped4 ~= pedID and PedIsValid(ped4) and PedIsPlaying(ped4, "/Global/HitTree/Standing/Ranged/Bomb/Stinky/Stinky", true) and not F_InDeadPool(ped4) then
if ped5 ~= pedID and PedIsValid(ped5) and PedIsPlaying(ped5, "/Global/HitTree/Standing/Ranged/Bomb/Stinky/Stinky", true) and not F_InDeadPool(ped5) then
if ped6 ~= pedID and PedIsValid(ped6) and PedIsPlaying(ped6, "/Global/HitTree/Standing/Ranged/Bomb/Stinky/Stinky", true) and not F_InDeadPool(ped6) then
if pedBryce ~= nil and PedIsValid(pedBryce) then
if pedBurtonStage3.id and PedIsValid(pedBurtonStage3.id) then
if pedGary.id and PedIsValid(pedGary.id) and (PedGetHealth(pedGary.id) / originalHealth) < 0.75 and not IsMissionCompleated("CLIMBING") then
if pedID == gTheo and PedIsValid(gTheo) and not bDeletingTheo then
if pedID == guy.id and guy.hit == false and PedIsValid(guy.id) and (PedGetLastHitWeapon(guy.id) == 304 or PedGetWhoHitMeLast(guy.id) == gPlayer) and b_InTree and guy.hit == false then
if pedID == idEunice.id and PedIsValid(idEunice.id) then
if pedId ~= nil and PedIsValid(pedId) then
if PedIsValid(ambPedID) then
if PedIsValid(Beatrice) and (F_PedIsDead(Beatrice) or PedGetWhoHitMeLast(Beatrice) == gPlayer) then
if PedIsValid(beatrice) and 0 < ItemGetCurrentNum(modelDiary) and PlayerIsInAreaObject(beatrice, 2, 3, 0) then
if PedIsValid(beatrice) then
if PedIsValid(Beatrice) then
if PedIsValid(boxer) then
if PedIsValid(Boxer1) then
if PedIsValid(Boxer2) then
if PedIsValid(Boxer3) then
if PedIsValid(bum) == true then
if PedIsValid(CameraTarget) and not PedIsSocializing(gPlayer) and not PedIsWantingToSocialize(CameraTarget) then
if PedIsValid(candyPed1) then
if PedIsValid(candyPed2) then
if PedIsValid(char) then
if PedIsValid(char2) then
if PedIsValid(char3) then
if PedIsValid(char4) then
if PedIsValid(cheerer1) then
if PedIsValid(cheerer2) then
if PedIsValid(cheerer3) then
if PedIsValid(cheerer4) then
if PedIsValid(choice) then
if PedIsValid(clint) then
if PedIsValid(closestElf1) == true then
if PedIsValid(Crazy01) == true then
if PedIsValid(Crazy01) then
if PedIsValid(Crazy02) == true then
if PedIsValid(Crazy02) then
if PedIsValid(currentPed.id) then
if PedIsValid(Dancer01) then
if PedIsValid(Dancer02) then
if PedIsValid(Dancer03) then
if PedIsValid(dataTable[1].id) then
if PedIsValid(defender) and F_IsDead(defender) or not PedIsValid(defender) then
if PedIsValid(defender) and not F_IsDead(defender) and distance > DistanceBetweenPeds2D(gPlayer, defender) then
if PedIsValid(defender) and not F_IsDead(defender) then
if PedIsValid(DirtyCop) == true and PedIsValid(MotelOwner) == true then
if PedIsValid(DirtyCop) then
if PedIsValid(Dog) then
if PedIsValid(Dropout1) == true then
if PedIsValid(Dropout1) then
if PedIsValid(Earnest) then
if PedIsValid(earnie) and PedIsHit(earnie, 2, 1000) then
if PedIsValid(Edna) and PedGetWhoHitMeLast(Edna) == gPlayer then
if PedIsValid(Edna) then
if PedIsValid(edna) then
if PedIsValid(elf_01) then
if PedIsValid(elf_02) then
if PedIsValid(elf_03) then
if PedIsValid(enemy) then
if PedIsValid(enemy.id) then
if PedIsValid(EnemyTable[i].handle) then
if PedIsValid(ent.id) then
if PedIsValid(entry) then
if PedIsValid(entry.handle) then
if PedIsValid(entry.id) and PedIsInTrigger(entry.id, TRIGGER._4_03_OB_GROUNDS) then
if PedIsValid(entry.id) then
if PedIsValid(fatty) and PedGetHealth(fatty) < PedGetMaxHealth(fatty) and not bHit then
if PedIsValid(fatty) and PedHasReceivedGift(fatty) then
if PedIsValid(fatty) then
if PedIsValid(FireMan) then
if PedIsValid(FireManS2) then
if PedIsValid(followerFollower) and followerFollower ~= 0 and not F_PedIsDead(followerFollower) then
if PedIsValid(followerFollower) and not F_PedIsDead(followerFollower) and followerFollower ~= 0 then
if PedIsValid(followerFollower) and not F_PedIsDead(followerFollower) then
if PedIsValid(frMidget01) then
if PedIsValid(frMidget02) then
if PedIsValid(gBaddie.id) then
if PedIsValid(gBaddie02.id) then
if PedIsValid(gBaddie03.id) then
if PedIsValid(gBaddie04.id) then
if PedIsValid(gBaddie05.id) then
if PedIsValid(gBaddie06.id) then
if PedIsValid(gBlockAOrderly01) then
if PedIsValid(gBlockAOrderly02) then
if PedIsValid(gBlockBOrderly01) then
if PedIsValid(gBlockBOrderly02) then
if PedIsValid(gBoyFriend) == true then
if PedIsValid(gBully) == true then
if PedIsValid(gBully) then
if PedIsValid(gChaser01) and not PedIsDead(gChaser01) then
if PedIsValid(gChaser01) then
if PedIsValid(gChaser02) and not PedIsDead(gChaser02) then
if PedIsValid(gChaser02) then
if PedIsValid(gCheater01) then
if PedIsValid(gCheater02) then
if PedIsValid(gControlOrderly) then
if PedIsValid(gCrazy01) and not PedIsDead(gCrazy01) then
if PedIsValid(gCrazy01) then
if PedIsValid(gCrazy02) and not PedIsDead(gCrazy02) then
if PedIsValid(gCrazy02) then
if PedIsValid(gCrazy03) and not PedIsDead(gCrazy03) then
if PedIsValid(gCrazy03) then
if PedIsValid(gCrazy04) and not PedIsDead(gCrazy04) then
if PedIsValid(gCrazy04) then
if PedIsValid(gDefenders[1]) then
if PedIsValid(gDOThug01) then
if PedIsValid(gDOThug02) then
if PedIsValid(gDOThug03) then
if PedIsValid(gFatty) then
if PedIsValid(gFenwick) then
if PedIsValid(gFrontDeskOrderly) then
if PedIsValid(gFrontOrderly) then
if PedIsValid(gGalloway) then
if PedIsValid(gGary) then
if PedIsValid(gGateBully01) then
if PedIsValid(gGateBully02) then
if PedIsValid(gGordTicket) then
if PedIsValid(gHattrick) then
if PedIsValid(gInOrderly01) then
if PedIsValid(gInOrderly02) then
if PedIsValid(gInPatient) then
if PedIsValid(gItchPowderPed) and PedIsPlaying(gItchPowderPed, "/Global/HitTree/Standing/Ranged/ItchingPowder/Default", true) then
if PedIsValid(gJohnny) then
if PedIsValid(gLola) then
if PedIsValid(gLolaTicket) then
if PedIsValid(gMailmanID) then
if PedIsValid(gMandy) then
if PedIsValid(gMandyArrived) and not MandyInitTalk then
if PedIsValid(gMarblesPed) then
if PedIsValid(gNerds[1]) and not PedIsDead(gNerds[1]) then
if PedIsValid(gNerds[1].id) and PedGetHealth(gNerds[1].id) <= 0 then
if PedIsValid(gNerds[1].id) then
if PedIsValid(gNerds[2]) and PAnimIsPlaying(TRIGGER._4_G4_SCHOOLTAG2, "/Global/TagSmall/NotUseable/Tagged/VandalTag", false) and PedIsPlaying(gPlayer, "/Global/TagSmall/PedPropsActions/IsPlayer/DrawVandalTag/ParametricTagging/Finished", false) then
if PedIsValid(gNerds[2].id) and 0 >= PedGetHealth(gNerds[2].id) then
if PedIsValid(gNerds[2].id) then
if PedIsValid(gNorton) then
if PedIsValid(gord) and PedGetWhoHitMeLast(gord) == gPlayer then
if PedIsValid(gord) then
if PedIsValid(gOrderly01) and not PedIsDead(gOrderly01) then
if PedIsValid(gOrderly01) then
if PedIsValid(gOrderly02) and not PedIsDead(gOrderly02) then
if PedIsValid(gOrderly02) then
if PedIsValid(gOrderly03) and not PedIsDead(gOrderly03) then
if PedIsValid(gOrderly03) then
if PedIsValid(gOrderly04) and not PedIsDead(gOrderly04) then
if PedIsValid(gOrderly04) then
if PedIsValid(gOrderlyABlock) then
if PedIsValid(gOrderlyBBlock) then
if PedIsValid(gOrderlyFrontD) then
if PedIsValid(gOrderlyRecRoom) then
if PedIsValid(gOrderlyShower) then
if PedIsValid(gPeteyPier) then
if PedIsValid(gPinkyTicket) then
if PedIsValid(gPlayer) then
if PedIsValid(Greaser1) == true and PedGetLastHitWeapon(Greaser1) == 312 then
if PedIsValid(Greaser1) == true then
if PedIsValid(Greaser1) and PedIsValid(Greaser2) then
if PedIsValid(Greaser2) == true and PedGetLastHitWeapon(Greaser2) == 312 then
if PedIsValid(Greaser2) == true then
if PedIsValid(GreaserThief.id1) and not PedIsDead(GreaserThief.id1) then
if PedIsValid(GreaserThief.id2) and not PedIsDead(GreaserThief.id2) then
if PedIsValid(GreaserThief.id3) and not PedIsDead(GreaserThief.id3) then
if PedIsValid(GreaserThief.id4) and not PedIsDead(GreaserThief.id4) then
if PedIsValid(gRetirementTable.ped1) then
if PedIsValid(gRetirementTable.ped2) then
if PedIsValid(gRetirementTable.ped3) then
if PedIsValid(gRetirementTable.ped4) then
if PedIsValid(gSecondReinforcement) and not F_IsDead(gSecondReinforcement) then
if PedIsValid(gSecondReinforcement) then
if PedIsValid(gSidelines[1]) then
if PedIsValid(gSidelines[4]) then
if PedIsValid(gSleepingOrderly) then
if PedIsValid(gSpazzMan) == true then
if PedIsValid(gSpazzMan) and not PedIsDead(gSpazzMan) then
if PedIsValid(gStationOrderly) then
if PedIsValid(gTheo) then
if PedIsValid(gurney) then
if PedIsValid(guy.id) and guy.id == pedID and guy.path == pathID and guy.state == STATE_RUNN then
if PedIsValid(guy.id) and not F_PedIsDead(guy.id) and TimerPassed(guy.time) and guy.state == STATE_JACK then
if PedIsValid(guy.id) and not F_PedIsDead(guy.id) then
if PedIsValid(guy.id) and not PedIsDead(guy.id) then
if PedIsValid(guy.id) then
if PedIsValid(id) and not PedIsModel(id, 25) then
if PedIsValid(id) and PedGetHealth(id) <= 145 or not PedIsValid(id) then
if PedIsValid(idBiff) then
if PedIsValid(idBryce.id) then
if PedIsValid(idBucky) then
if PedIsValid(idBurton) and not bCleanUpBurton then
if PedIsValid(idBurton) and not PedIsDead(idBurton) then
if PedIsValid(idBurton) then
if PedIsValid(idDarby) and not PedIsDead(idDarby) and PedIsInAreaXYZ(idDarby, x, y, z, 0.5, 0) then
if PedIsValid(idDarby) and not PedIsDead(idDarby) then
if PedIsValid(idGord.id) and not PedIsInAreaObject(idGord.id, idBike.id, 1, 5, 0) then
if PedIsValid(idGord.id) and PedGetWhoHitMeLast(idGord.id) == gPlayer and not PedIsPlaying(idGord.id, "/Global/Vehicles/Bikes/ExecuteNodes/Attacks/GrapThorw", true) and not PedIsPlaying(idGord.id, "/Global/Vehicles/Bikes/ExecuteNodes/Attacks/GrapThorwLeft", true) then
if PedIsValid(idGord.id) and PedGetWhoHitMeLast(idGord.id) == gPlayer then
if PedIsValid(idGord.id) and PedHasAlly(idGord.id) then
if PedIsValid(idGord.id) then
if PedIsValid(idHobo) then
if PedIsValid(idJustin.id) then
if PedIsValid(idNemesis) and not PedIsDead(idNemesis) then
if PedIsValid(idNemesis) then
if PedIsValid(idNorton) then
if PedIsValid(idPed) and not PedIsDead(idPed) then
if PedIsValid(idPeter) then
if PedIsValid(idRussell) and (not PedIsInVehicle(idRussell, idBike) or PedIsDead(idRussell)) or not PedIsValid(idRussell) then
if PedIsValid(idRussell) then
if PedIsValid(idTeacher) then
if PedIsValid(idTeacher2) then
if PedIsValid(idZoe) then
if PedIsValid(insultBoy) then
if PedIsValid(item.elf) == true and (PedIsDead(item.elf) == true or 0 >= PedGetHealth(item.elf)) then
if PedIsValid(item.elf) == true and PedIsDead(item.elf) == false then
if PedIsValid(item.kid) == true and (PedIsDoingTask(item.kid, "/Global/AI/Reactions/Stimuli/Explosion/FleeReaction", true) or PedIsDoingTask(item.kid, "/Global/AI/GeneralObjectives/FleeObjective/Flee", true)) then
if PedIsValid(item.kid) then
if PedIsValid(item.parent) then
if PedIsValid(item.ped) == true and VehicleIsValid(item.bike) == true and PedIsInVehicle(item.ped, item.bike) == false and item.pedOffBike == false then
if PedIsValid(item.ped) then
if PedIsValid(jock.id) and (PedIsDead(jock.id) or 0 >= PedGetHealth(jock.id)) then
if PedIsValid(jock1) then
if PedIsValid(jock2) then
if PedIsValid(johnny) then
if PedIsValid(kicker) then
if PedIsValid(librarian) then
if PedIsValid(lola) and PedGetWhoHitMeLast(lola) == gPlayer then
if PedIsValid(lola) then
if PedIsValid(Mascot) and PedIsHit(Mascot, 2, 0) and MascotRun == false then
if PedIsValid(Mascot) then
if PedIsValid(MotelOwner) then
if PedIsValid(musicTeach) then
if PedIsValid(nerd) then
if PedIsValid(nerd.id) then
if PedIsValid(otto) then
if PedIsValid(ped) and F_PedIsTagger(ped) then
if PedIsValid(ped) and not F_IsDead(ped) then
if PedIsValid(ped) and not PedIsDead(ped) and ped ~= gPlayer and PedIsPlaying(ped, "/Global/Garbagecan/PedPropsActions/StuffGrap/RCV", false) then
if PedIsValid(ped) and not PedIsDead(ped) then
if PedIsValid(ped) and not PedIsModel(ped, 0) and not PedIsModel(ped, 134) then
if PedIsValid(ped) and not PedIsOnScreen(ped) then
if PedIsValid(ped) and PedIsHit(ped, 2, 500) and PedGetLastHitWeapon(ped) == weapon then
if PedIsValid(ped) and PedIsInVehicle(ped, vehicle) then
if PedIsValid(ped) then
if PedIsValid(Ped) then
if PedIsValid(ped.id) then
if PedIsValid(ped1) and not PedIsValid(ped2) then
if PedIsValid(ped1) then
if PedIsValid(ped2) and not PedIsValid(ped1) then
if PedIsValid(ped2) then
if PedIsValid(pedAsianGirl.id) then
if PedIsValid(pedChad.id) then
if PedIsValid(pedConstantine.id) then
if PedIsValid(pedCornelius.id) then
if PedIsValid(pedDog.id) then
if PedIsValid(pedGary.id) then
if PedIsValid(pedGord) then
if PedIsValid(pedGreaser03.id) then
if PedIsValid(pedGreaser04.id) then
if PedIsValid(pedHeadmistress) then
if PedIsValid(pedID) and (PedIsModel(pedID, 53) or PedIsModel(pedID, 158)) and PedGetHealth(pedID) > 1 and not bPlayerHitOrderly and PedGetWhoHitMeLast(pedID) == gPlayer then
if PedIsValid(PedID) and TriggerID == TRIGGER._1_07_GATE_T and PedID ~= 0 and PedID ~= nil and not bDoorOpen then
if PedIsValid(PedID) and TriggerID == TRIGGER._1_07_GATE_T and PedID ~= 0 and PedID ~= nil and not bDoorZoneOccupied and bDoorOpen then
if PedIsValid(pedid) then
if PedIsValid(PedID) then
if PedIsValid(pedId) then
if PedIsValid(pedID) then
if PedIsValid(pedJockBathroomSecondFloor01.id) then
if PedIsValid(pedJockBathroomSecondFloor02.id) then
if PedIsValid(pedRicky) then
if PedIsValid(pedSexyGirl.id) then
if PedIsValid(pedTad.id) and PedCanSeeObject(pedTad.id, gPlayer, 3) and PlayerIsInTrigger(TRIGGER._TRIGGERBACKALLEY) then
if PedIsValid(Peter) then
if PedIsValid(Petey) and PedIsDead(Petey) then
if PedIsValid(Pirate) then
if PedIsValid(Players[1].Player) then
if PedIsValid(prank.id) then
if PedIsValid(prep) then
if PedIsValid(Prep1) == true then
if PedIsValid(Prep1) and PedIsValid(Prep2) then
if PedIsValid(Prep2) == true then
if PedIsValid(PropCrim) then
if PedIsValid(racer.id) then
if PedIsValid(rat) then
if PedIsValid(Receiver1) == true then
if PedIsValid(Receiver1) and PedIsInAreaObject(gPlayer, Receiver1, 2, 1.5, 0) and PedGetFlag(gPlayer, 1) then
if PedIsValid(Receiver1) then
if PedIsValid(Receiver2) == true then
if PedIsValid(Receiver2) and PedIsInAreaObject(gPlayer, Receiver2, 2, 1.5, 0) and PedGetFlag(gPlayer, 1) then
if PedIsValid(Receiver2) then
if PedIsValid(Receiver3) == true then
if PedIsValid(Receiver3) and PedIsInAreaObject(gPlayer, Receiver3, 2, 1.5, 0) and PedGetFlag(gPlayer, 1) then
if PedIsValid(Receiver3) then
if PedIsValid(RoguePed) then
if PedIsValid(santa) == true then
if PedIsValid(santa) and bSantaDoingMadAnim == false then
if PedIsValid(santa) then
if PedIsValid(santaKid) and DistanceBetweenPeds3D(santa, santaKid) < 3 then
if PedIsValid(santaKid) and DistanceBetweenPeds3D(santa, santaKid) < 4 then
if PedIsValid(ScenarioPed) == true and AreaGetVisible() == 0 and PedGetFlag(ScenarioPed, 110) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and F_PedIsDead(ScenarioPed) == false and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedGetFlag(ScenarioPed, 110) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and (AreaGetVisible() == 2 or AreaGetVisible() == 8) and OutOfRange == false and bFailDueToLackOfRoll == false then
if PedIsValid(ScenarioPed) == true and PedGetFlag(ScenarioPed, 110) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and bAlarmAlreadyOn == false and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedGetFlag(ScenarioPed, 110) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and bSpotted == false and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedGetFlag(ScenarioPed, 110) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and F_CheckIfPlayerHasEggs() == true and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedGetFlag(ScenarioPed, 110) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and leftArea == false and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedGetFlag(ScenarioPed, 110) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedGetFlag(ScenarioPed, 110) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(gPlayer) == false and PedIsDead(ScenarioPed) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedGetFlag(ScenarioPed, 110) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(ScenarioPed) == false and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and F_CheckIfPlayerHasChocolates() == true and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedGetFlag(ScenarioPed, 110) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(ScenarioPed) == false and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedGetFlag(ScenarioPed, 110) == true and PedIsDead(ScenarioPed) == false and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(gPlayer) == false and bTimedOut == false and ObjectiveMet == false and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedGetWhoHitMeLast(ScenarioPed) ~= gPlayer and PedGetFlag(ScenarioPed, 110) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and F_CheckIfPlayerHasCherryBomb() == true and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedHasPOI(ScenarioPed) == true and PedGetPedToTypeAttitude(ScenarioPed, 13) == 2 and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and OutOfRange == false then
if PedIsValid(ScenarioPed) == true and PedIsDead(gPlayer) == false and MissionActive() == false and F_PlayerSleptOnErrand() == false and bTimedOut == false and ObjectiveMet == false and shared.gBusTransition == nil and OutOfRange == false then
if PedIsValid(ScenarioPed) == true then
if PedIsValid(ScenarioPed) and AreaGetVisible() == 0 then
if PedIsValid(ScenarioPed) then
if PedIsValid(shared.gDunkMidget) then
if PedIsValid(shared.gEdnaID) and PedGetWhoHitMeLast(shared.gEdnaID) == gPlayer then
if PedIsValid(shared.gEdnaID) then
if PedIsValid(shared.gGary) then
if PedIsValid(shared.gPetey) then
if PedIsValid(shared.gSecretaryID) then
if PedIsValid(shared.idDog) then
if PedIsValid(shared.vendettaClerk) then
if PedIsValid(speaker) then
if PedIsValid(tableEntry.id) and tableEntry.group == groupNo then
if PedIsValid(tableGirlsToCheck[i]) and PedIsHit(tableGirlsToCheck[i], 2, 1000) and PedGetWhoHitMeLast(tableGirlsToCheck[i]) == gPlayer then
if PedIsValid(tagger) and not PedIsDoingTask(tagger, "/Global/AI/Reactions/Criminal/FindTagSpot", true) and not PedIsPlaying(tagger, "/Global/Tags/PedPropsActions/PerformTag/PedDrawMedTag", true) then
if PedIsValid(tagger) and PhotoTargetInFrame(tagger, 2) and PedIsPlaying(tagger, "/Global/Tags/PedPropsActions/PerformTag/PedDrawMedTag", true) then
if PedIsValid(tagger) then
if PedIsValid(target) then
if PedIsValid(target.id) and not PedIsDead(target.id) then
if PedIsValid(targets[i].target) then
if PedIsValid(tbl.id) then
if PedIsValid(tblDialogueQueue) and PedIsModel(tblDialogueQueue, entry.model) then
if PedIsValid(tblEntry.id) and not PedIsDead(tblEntry.id) then
if PedIsValid(tblGord.id) and (PedGetHealth(tblGord.id) == 0 or PedIsDead(tblGord.id)) then
if PedIsValid(tblGord.id) and PedIsPlaying(tblGord.id, "/Global/Garbagecan/PedPropsActions/StuffGrap/RCV/InCan/die", true) then
if PedIsValid(tblGord.id) then
if PedIsValid(tblGordWH.id) then
if PedIsValid(tblGreaser1WH.id) then
if PedIsValid(tblGreaser2WH.id) then
if PedIsValid(tblJohnnyWH.id) and (PedGetHealth(tblJohnnyWH.id) <= 0 or PedIsDead(tblJohnnyWH.id)) then
if PedIsValid(tblJohnnyWH.id) then
if PedIsValid(tblMsPhillips.id) then
if PedIsValid(tblOfTheRace[nRacer].id) then
if PedIsValid(tblPeanut.id) and not PedIsDead(tblPeanut.id) then
if PedIsValid(tblPrep1.id) then
if PedIsValid(tblPrep1WH.id) then
if PedIsValid(tblPrep2WH.id) then
if PedIsValid(tblRaceInfo.race.countdown_ped.id) then
if PedIsValid(watts) and (PedGetWhoHitMeLast(watts) or PedGetWhoHitMeLast(edna)) == gPlayer then
if PedIsValid(watts) then
if pedParker ~= nil and PedIsValid(pedParker) then
if pedStoreOwner.id and PedIsValid(pedStoreOwner.id) then
if phillips and PedIsValid(phillips) and PlayerIsInAreaObject(phillips, 2, 3.5, 0) and PedGetFlag(gPlayer, 1) then
if phillips and PedIsValid(phillips) then
if PlayerIsInTrigger(TRIGGER._2_07_PREPPY_NINJA_TRIG) and PedIsValid(pedGord) then
if PlayerIsInTrigger(TRIGGER._3_06_FIGHTTRIG) or PlayerIsInTrigger(TRIGGER._3_06_FailTrig) and (gRooftopPeds1[1] and PedIsValid(gRooftopPeds1[1]) and PedGetWhoHitMeLast(gRooftopPeds1[1]) == gPlayer or gRooftopPeds1[2] and PedIsValid(gRooftopPeds1[2]) and PedGetWhoHitMeLast(gRooftopPeds1[2]) == gPlayer or gPeanut and PedIsValid(gPeanut) and PedGetWhoHitMeLast(gPeanut) == gPlayer) then
if prefect and PedIsValid(prefect) then
if racer.id and PedIsValid(racer.id) and not PedIsOnVehicle(racer.id) then
if racer.id and PedIsValid(racer.id) then
if rat ~= -1 and PedIsValid(rat) then
if ratped and ratped.id and PedIsDead(ratped.id) or PedIsValid(ratped.id) and PedGetHealth(ratped.id) <= 0 then
if SecretaryActive == true and not PedIsValid(shared.gSecretaryID) then
if shared.gBif and not shared.bBifDefeated and PedIsValid(shared.gBif) then
if shared.gGary and PedIsValid(shared.gGary) then
if shared.gPetey and PedIsValid(shared.gPetey) then
if shared.gSecretaryID and PedIsValid(shared.gSecretaryID) then
if shared.gSecretaryID ~= nil and PedIsValid(shared.gSecretaryID) and PedGetHealth(shared.gSecretaryID) < 0 then
if shared.gSecretaryID ~= nil and PedIsValid(shared.gSecretaryID) then
if table.getn(gTablePeds) > 0 and gTablePeds[1].id and PedIsValid(gTablePeds[1].id) then
if table.getn(gTablePeds) > 1 and gTablePeds[2].id and PedIsValid(gTablePeds[2].id) then
if table.getn(gTablePeds) > 2 and gTablePeds[3].id and PedIsValid(gTablePeds[3].id) then
if tbl.state == STATE_JACK and TimerPassed(tbl.time) and PedIsValid(guy.id) and not F_PedIsDead(tbl.id) then
if tblEntry.id ~= nil and PedIsValid(tblEntry.id) and not PedIsInTrigger(tblEntry.id, TRIGGER._2_B_BOSS_FIGHT) then
if tblParentPosList[i].spotTaken == true and tblParentPosList[i].parent ~= nil and PedIsValid(tblParentPosList[i].parent) == true and not PedIsFacingObject(tblParentPosList[i].parent, santa, 2, 40) then
if tblPerverts[1].id and PedIsValid(tblPerverts[1].id) then
if tblPerverts[2].id and PedIsValid(tblPerverts[3].id) then
if tblPerverts[3].id and PedIsValid(tblPerverts[3].id) then
if tblRaceInfo.race.countdown_ped.id and PedIsValid(tblRaceInfo.race.countdown_ped.id) then
if tFirstFloorTable.gord.id ~= nil and PedIsValid(tFirstFloorTable.gord.bAlive) and PedIsDead(tFirstFloorTable.gord.bAlive) then
if tFirstFloorTable.parker.id ~= nil and PedIsValid(tFirstFloorTable.parker.bAlive) and PedIsDead(tFirstFloorTable.parker.bAlive) then
if tSecondFloorTable.justin.id ~= nil and PedIsValid(tSecondFloorTable.justin.bAlive) and PedIsDead(tSecondFloorTable.justin.bAlive) then
if tSecondFloorTable.tad.id ~= nil and PedIsValid(tSecondFloorTable.tad.bAlive) and PedIsDead(tSecondFloorTable.tad.bAlive) then
if tThirdFloorTable.bryce.id ~= nil and PedIsValid(tThirdFloorTable.bryce.bAlive) and PedIsDead(tThirdFloorTable.bryce.bAlive) then
if tThirdFloorTable.chad.id ~= nil and PedIsValid(tThirdFloorTable.chad.bAlive) and PedIsDead(tThirdFloorTable.chad.bAlive) then
if vehicle ~= -1 and PedIsValid(curPed) then
return ped and PedIsValid(ped) and not (PedGetHealth(ped) <= 0)
return ped and PedIsValid(ped) and not F_PedIsDead(ped)
while not (not (MissionActive() and PedIsValid(gFatty)) or bPointOfNoReturn) do
while not (not (MissionActive() and PedIsValid(idNemesis)) or PedIsInTrigger(idNemesis, TRIGGER._1_04_NEMSITDOWN) or bHasFailedElsewhere) do
while not (not PedIsValid(gMandy) or PedIsPlaying(gMandy, "/Global/HitTree/Standing/Ranged/Bomb/Stink_Trap", false)) and AreaGetVisible() ~= 0 do
while not (not PedIsValid(idGord.id) or PedIsInAreaObject(idGord.id, idBike.id, 1, 5, 0)) do
while not (not PedIsValid(idGord.id) or PedIsInVehicle(idGord.id, idBike.id)) do
while not PedIsValid(fatty) do
while not PedIsValid(shared.vendettaClerk) do
while PedIsValid(idGord.id) and PedIsInVehicle(idGord.id, idBike.id) do
while PedIsValid(ped1) and PedIsValid(ped2) do
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push 0x0
push esi
mov byte ptr [esp+0xC], 0x0
call LuaParam::IsInt
add esp, 0x8
test al, al
jz 0x2D
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x8
cmp eax, 0xFFFFFFFF
jz 0x1D
push ecx
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
jz 0x7
mov byte ptr [esp+0x4], 0x1
mov eax, dword ptr [esp+0x4]
push eax
push esi
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
pop esi
pop ecx
ret
elseif gFatty ~= nil and not bFattyIsFleeing and (not PedIsSocializing(gFatty) or PedIsWantingToSocialize(gFatty)) then
if PedIsValid(CameraTarget) and not PedIsSocializing(gPlayer) and not PedIsWantingToSocialize(CameraTarget) then
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
mov byte ptr [esp+0x4], 0x0
jz 0x1E
test byte ptr [eax+0xD68], 0x10
jz 0x10
cmp dword ptr [eax+0xBB8], 0x0
mov byte ptr [esp+0x4], 0x1
jnz 0x7
mov byte ptr [esp+0x4], 0x0
mov eax, dword ptr [esp+0x4]
push eax
push esi
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
pop esi
pop ecx
ret
if PedJoinCombatZone(gFTPed, gPlayer, 0) then
if PedJoinCombatZone(gFTPed, gPlayer, 1) then
if PedJoinCombatZone(gFTPed, gPlayer, 2) then
if PedJoinCombatZone(gFTPed, gPlayer, 4) then
push ecx
push ebx
push ebp
mov ebp, dword ptr [esp+0x10]
push esi
push edi
push 0x0
push ebp
call LuaParam::GetInt
push 0x1
push ebp
mov esi, eax
call LuaParam::GetInt
add esp, 0xC
mov edi, eax
mov eax, esp
push esi
mov byte ptr [esp+0x18], 0x0
mov dword ptr [eax], 0x2
call 0x5C7380
add esp, 0x4
mov esi, eax
mov eax, esp
push edi
mov dword ptr [eax], 0x2
call 0x5C7380
push 0x2
push ebp
mov ebx, eax
call LuaParam::GetInt
add esp, 0x10
test esi, esi
jz 0x4B
test ebx, ebx
jz 0x47
test eax, eax
jl 0x20
cmp eax, 0x2
jnle 0x1B
push 0x0
push ecx
mov ecx, esp
mov dword ptr [ecx], eax
push ebx
lea ecx, ptr [esi+0x668]
call 0x487BC0
mov byte ptr [esp+0x10], al
jmp 0x25
xor edi, edi
add esi, 0x668
push 0x0
push edi
push ebx
mov ecx, esi
call 0x487BC0
test al, al
mov byte ptr [esp+0x10], al
jnz 0xA
add edi, 0x1
cmp edi, 0x3
jl 0xFFFFFFE7
mov eax, dword ptr [esp+0x10]
push eax
push ebp
call LuaParam::PushBool
add esp, 0x8
pop edi
pop esi
pop ebp
mov eax, 0x1
pop ebx
pop ecx
ret
PedJump(CrateJumper01, POINTLIST._JUMP_CRATES_2)
PedJump(CrateJumper02, POINTLIST._JUMP_CRATES_2)
PedJump(CrateJumper03, POINTLIST._JUMP_CRATES_3)
PedJump(idPreppy, POINTLIST._2_07_LAST_THUGS_JUMP, 1, 1)
PedJump(idPreppy, POINTLIST._2_07_LAST_THUGS_JUMP, 1, 2)
PedJump(idPreppy, POINTLIST._2_07_LAST_THUGS_JUMP, 1, 3)
PedJump(idPreppy, POINTLIST._2_07_LAST_THUGS_JUMP, 1, 4)
PedJump(idPreppy, POINTLIST._2_07_LAST_THUGS_JUMP, 1, 5)
PedJump(idPreppy, POINTLIST._2_07_LAST_THUGS_JUMP, 1, 6)
PedJump(LastJumper01, POINTLIST._LAST_JUMP01)
PedJump(LastJumper02, POINTLIST._LAST_JUMP02)
PedJump(ped, POINTLIST._TFIGHT01_W_01)
PedJump(pedGreaserJump1.id, POINTLIST._EASTWALL, 1, 1)
PedJump(pedGreaserJump2.id, POINTLIST._EASTWALL, 1, 2)
PedJump(pedMascot.id, POINTLIST._4_05_MASCOTJUMP, 1)
sub esp, 0x14
push esi
mov esi, dword ptr [esp+0x1C]
push edi
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
fldz
push 0x1
fst dword ptr [esp+0x1C], st
push 0x3
fst dword ptr [esp+0x24], st
push esi
fstp dword ptr [esp+0x2C], st
mov edi, eax
call LuaParam::GetInt ; optional
push eax
lea eax, ptr [esp+0x24]
push eax
lea ecx, ptr [esp+0x2C]
push ecx
mov eax, 0x1
mov ecx, esi
call 0x5C6E90
fld st, dword ptr [0x90FB9C]
add esp, 0x1C
fstp dword ptr [esp], st
push 0x2
push esi
call LuaParam::GetFloat ; optional
fstp dword ptr [esp+0x14], st
push 0x34
call 0x5EEAA0
add esp, 0x10
test eax, eax
jz 0x35
fld st, dword ptr [esp+0x8]
sub esp, 0x8
fstp dword ptr [esp+0x4], st
lea edx, ptr [esp+0x18]
fld st, dword ptr [esp+0x14]
mov ecx, eax
fstp dword ptr [esp], st
push edx
push edi
call 0x5C61D0
push eax
lea ecx, ptr [edi+0x5F0]
call 0x471390
xor eax, eax
pop edi
pop esi
add esp, 0x14
ret
xor eax, eax
push eax
lea ecx, ptr [edi+0x5F0]
call 0x471390
pop edi
xor eax, eax
pop esi
add esp, 0x14
ret
if gFTPed ~= nil and PedLeaveCombatZone(gFTPed) then
mov eax, dword ptr [esp+0x4]
push esi
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
lea esi, ptr [eax+0x668]
add esp, 0x8
mov ecx, esi
call 0x487B70
mov ecx, esi
call 0x486D50
xor eax, eax
pop esi
ret
L_PedExec(group1, PedLockTarget, "id", idBucky, 1)
name = "PedLockTarget",
PedLockTarget(assistant, gPlayer, 3)
PedLockTarget(Beatrice, -1)
PedLockTarget(Beatrice, gPlayer, 3)
PedLockTarget(boxer, gPlayer)
PedLockTarget(Boy, Girl)
PedLockTarget(Boy, Girl, 0)
PedLockTarget(Boy, Girl, 3)
PedLockTarget(buster, -1)
PedLockTarget(buster, gPlayer, 3)
PedLockTarget(cop3, vandal1, 1)
PedLockTarget(DirtyCop, -1)
PedLockTarget(DirtyCop, MotelOwner, 3)
PedLockTarget(Edna, gPlayer, 3)
PedLockTarget(egger.id, gPlayer, false)
PedLockTarget(endPed, -1)
PedLockTarget(endPed, gPlayer, 3)
PedLockTarget(entry.id, gPlayer, false)
PedLockTarget(gBeatrice, gPlayer)
PedLockTarget(gBlockers1[1], gPlayer, 3)
PedLockTarget(gBlockers1[2], -1)
PedLockTarget(gBlockers1[2], gPlayer, 3)
PedLockTarget(gBully01, gPlayer, 3)
PedLockTarget(gCannonNerd, -1)
PedLockTarget(gCannonNerd, gPlayer, 3)
PedLockTarget(gCheater01, gCheater02, 3)
PedLockTarget(gClerk, -1)
PedLockTarget(gClerk, gPlayer)
PedLockTarget(gCorn, gPlayer, -1)
PedLockTarget(gDavis, gPlayer, 3)
PedLockTarget(gEdgar, gPlayer, 3)
PedLockTarget(gGalloway, gMsPhillips, 3)
PedLockTarget(gGalloway, gPlayer, 3)
PedLockTarget(gGary, gPlayer, -1)
PedLockTarget(gGary, gPlayer, 3)
PedLockTarget(gHobo, gPlayer, 3)
PedLockTarget(Girl, Boy)
PedLockTarget(Girl, Boy, 0)
PedLockTarget(Girl, Boy, 3)
PedLockTarget(gJohnny, -1)
PedLockTarget(gJohnnyV, -1)
PedLockTarget(gJohnnyV, gPlayer)
PedLockTarget(gJV_OnBike, gPlayer)
PedLockTarget(gLeon, gDuncan)
PedLockTarget(gMelvin, -1)
PedLockTarget(gMelvin, gPlayer, 3)
PedLockTarget(gMsPhillips, gGalloway, 3)
PedLockTarget(gMsPhillips, gPlayer, 3)
PedLockTarget(gNerd03, -1)
PedLockTarget(gNerd03, gPlayer, 3)
PedLockTarget(gPeanut, -1)
PedLockTarget(gPeanut, gPlayer)
PedLockTarget(gPlayer, -1)
PedLockTarget(gPlayer, -1, 1)
PedLockTarget(gPlayer, -1, 3)
PedLockTarget(gPlayer, ambientLola, 3)
PedLockTarget(gPlayer, Beatrice, 3)
PedLockTarget(gPlayer, beatrice, 3)
PedLockTarget(gPlayer, bNerdBoss, 3)
PedLockTarget(gPlayer, boxer)
PedLockTarget(gPlayer, client.id)
PedLockTarget(gPlayer, dude, 3)
PedLockTarget(gPlayer, Edna, 3)
PedLockTarget(gPlayer, gBeatrice)
PedLockTarget(gPlayer, gBeatrice, 3)
PedLockTarget(gPlayer, gBully01, 3)
PedLockTarget(gPlayer, gEdgar, 3)
PedLockTarget(gPlayer, gHobo)
PedLockTarget(gPlayer, gHobo, 3)
PedLockTarget(gPlayer, gMelvin, 3)
PedLockTarget(gPlayer, gMsPhillips, 3)
PedLockTarget(gPlayer, gMsPhillipsCar, 3)
PedLockTarget(gPlayer, gNerd03, 3)
PedLockTarget(gPlayer, gPeanut)
PedLockTarget(gPlayer, gPrefect1, 3)
PedLockTarget(gPlayer, gSpazzMan, 3)
PedLockTarget(gPlayer, gZoe, 3)
PedLockTarget(gPlayer, idBucky, 3)
PedLockTarget(gPlayer, idDarby, 3)
PedLockTarget(gPlayer, idEunice.id, 1)
PedLockTarget(gPlayer, idEunice.id, 3)
PedLockTarget(gPlayer, idLola)
PedLockTarget(gPlayer, idLola, 3)
PedLockTarget(gPlayer, idPetey.id)
PedLockTarget(gPlayer, idPinky.id)
PedLockTarget(gPlayer, idRussell, 3)
PedLockTarget(gPlayer, idZoe)
PedLockTarget(gPlayer, idZoe, 3)
PedLockTarget(gPlayer, insultBoy)
PedLockTarget(gPlayer, johnny)
PedLockTarget(gPlayer, johnny, 3)
PedLockTarget(gPlayer, kissGirl)
PedLockTarget(gPlayer, librarian, 3)
PedLockTarget(gPlayer, mandy)
PedLockTarget(gPlayer, mandy, 3)
PedLockTarget(gPlayer, Objectives[1].id)
PedLockTarget(gPlayer, Objectives[2].id)
PedLockTarget(gPlayer, Objectives[3].id)
PedLockTarget(gPlayer, Objectives[4].id)
PedLockTarget(gPlayer, Objectives[5].id)
PedLockTarget(gPlayer, opponent, 3)
PedLockTarget(gPlayer, ped.id)
PedLockTarget(gPlayer, pedAlgie.id)
PedLockTarget(gPlayer, pedAlgie.id, 3)
PedLockTarget(gPlayer, pedBurtonStage3.id, 3)
PedLockTarget(gPlayer, pedEarnest.id, 3)
PedLockTarget(gPlayer, pedEunice.id, 3)
PedLockTarget(gPlayer, pedPinky.id, 3)
PedLockTarget(gPlayer, pedRussell.id, 3)
PedLockTarget(gPlayer, pedStoreOwner.id, 3)
PedLockTarget(gPlayer, Petey, 3)
PedLockTarget(gPlayer, phillips, 3)
PedLockTarget(gPlayer, prefect)
PedLockTarget(gPlayer, principal)
PedLockTarget(gPlayer, Receiver1, 3)
PedLockTarget(gPlayer, Receiver2, 3)
PedLockTarget(gPlayer, Receiver3, 3)
PedLockTarget(gPlayer, russell)
PedLockTarget(gPlayer, ScenarioPed, 3)
PedLockTarget(gPlayer, tblRaceInfo.race.countdown_ped.id, 3)
PedLockTarget(gPrefect, gPlayer, 3)
PedLockTarget(gPrefect, gRussell, 3)
PedLockTarget(gPrefect1, -1)
PedLockTarget(gPrefect1, gPlayer, 3)
PedLockTarget(gPrefect1, gRussell, 3)
PedLockTarget(gPrefect2, gRussell, 3)
PedLockTarget(gRudy, gPlayer)
PedLockTarget(gSecondEventPedA, gSecondEventPedB, 0)
PedLockTarget(gSpazzMan, -1)
PedLockTarget(gSpazzMan, gPlayer, 3)
PedLockTarget(gTed, -1)
PedLockTarget(gTed, -1, 0)
PedLockTarget(gTed, -1, 3)
PedLockTarget(gTed, gPlayer, 3)
PedLockTarget(gTed, gSidelines[currentPasser.id], 0)
PedLockTarget(gTheo, -1)
PedLockTarget(gTheo, gPlayer, 3)
PedLockTarget(guard, gPlayer, 3)
PedLockTarget(gZoe, gPlayer, 3)
PedLockTarget(idBurton, -1)
PedLockTarget(idDarby, gPlayer, -1)
PedLockTarget(idDarby, gPlayer, 3)
PedLockTarget(idDO, gPlayer)
PedLockTarget(idEunice.id, -1)
PedLockTarget(idEunice.id, gPlayer)
PedLockTarget(idGord.id, idLola.id)
PedLockTarget(idLola, gPlayer)
PedLockTarget(idPed, gPlayer, 3)
PedLockTarget(idPetey.id, gPlayer)
PedLockTarget(idPinky.id, gPlayer)
PedLockTarget(idRussell, gPlayer)
PedLockTarget(idRussell, gPlayer, 3)
PedLockTarget(idZoe, -1)
PedLockTarget(idZoe, gPlayer)
PedLockTarget(insultBoy, -1)
PedLockTarget(insultBoy, gPlayer, 3)
PedLockTarget(jock01, gPlayer)
PedLockTarget(johnny, -1, 3)
PedLockTarget(johnny, gPlayer)
PedLockTarget(kicker, ped, 0)
PedLockTarget(kissGirl, gPlayer)
PedLockTarget(L_PedGetIDByIndex(nil, 1), gPlayer, false)
PedLockTarget(librarian, gPlayer, 3)
PedLockTarget(mailbox.ped, -1)
PedLockTarget(mailbox.ped, mailbox.target.id)
PedLockTarget(mailbox.waitingPed.id, gPlayer, false)
PedLockTarget(mandy, -1)
PedLockTarget(mandy, gPlayer)
PedLockTarget(MotelOwner, -1)
PedLockTarget(MotelOwner, DirtyCop, 3)
PedLockTarget(Objectives[1].id, -1)
PedLockTarget(Objectives[1].id, gPlayer)
PedLockTarget(Objectives[2].id, -1)
PedLockTarget(Objectives[2].id, gPlayer)
PedLockTarget(Objectives[3].id, -1)
PedLockTarget(Objectives[3].id, gPlayer)
PedLockTarget(Objectives[4].id, -1)
PedLockTarget(Objectives[4].id, gPlayer)
PedLockTarget(Objectives[5].id, gPlayer)
PedLockTarget(ped, gPlayer, 3)
PedLockTarget(ped, targetPed, 3)
PedLockTarget(ped.id, ped.lockTarget.ped, ped.lockTarget.targetRule)
PedLockTarget(pedAlgie.id, gPlayer)
PedLockTarget(pedBryce, gPlayer, 3)
PedLockTarget(pedCornelius.id, gPlayer)
PedLockTarget(pedCutBo.id, pedCutBucky.id, 3)
PedLockTarget(pedCutCasey.id, pedCutCornelius.id, 3)
PedLockTarget(pedCutJuri.id, pedCutThad.id, 3)
PedLockTarget(pedEarnest.id, gPlayer)
PedLockTarget(pedEarnest.id, gPlayer, 3)
PedLockTarget(pedEunice.id, -1)
PedLockTarget(pedGary.id, -1)
PedLockTarget(pedGary.id, gPlayer, 3)
PedLockTarget(pedGary.id, pedPete.id, 3)
PedLockTarget(pedGord, gPlayer, 1)
PedLockTarget(pedGord, gPlayer, 3)
PedLockTarget(pedGreaser01.id, pedPrep.id, 3)
PedLockTarget(pedHattrick.id, pedPrep.id, 3)
PedLockTarget(pedId, -1, 3)
PedLockTarget(pedid, gPlayer, 3)
PedLockTarget(pedJock.id, pedPoolPrep.id, 3)
PedLockTarget(pedKlepto.id, gPlayer, 3)
PedLockTarget(pedPinky.id, -1)
PedLockTarget(pedPinky.id, gPlayer, 3)
PedLockTarget(pedPoolPrep.id, pedJock.id, 3)
PedLockTarget(pedPrefectKarl.id, pedGary.id, 3)
PedLockTarget(pedPrep.id, pedGreaser01.id, 3)
PedLockTarget(pedPrep.id, pedHattrick.id, 3)
PedLockTarget(pedRussell.id, gPlayer, 3)
PedLockTarget(pedStoreOwner.id, -1, 1)
PedLockTarget(Petey, -1)
PedLockTarget(Petey, gPlayer, 3)
PedLockTarget(principal, gPlayer)
PedLockTarget(prop.ped, -1)
PedLockTarget(racer.id, targetID)
PedLockTarget(Receiver1, -1)
PedLockTarget(Receiver1, gPlayer, 3)
PedLockTarget(Receiver2, -1)
PedLockTarget(Receiver2, gPlayer, 3)
PedLockTarget(Receiver3, -1)
PedLockTarget(Receiver3, gPlayer, 3)
PedLockTarget(ScenarioPed, -1)
PedLockTarget(ScenarioPed, Crazy02, 3)
PedLockTarget(ScenarioPed, gPlayer, 3)
PedLockTarget(shared.gdormHeadID, gPlayer, 3)
PedLockTarget(shared.gSecretaryID, gPlayer, 3)
PedLockTarget(shared.ped1, shared.ped2, 3)
PedLockTarget(sheet1Bruiser, gPlayer)
PedLockTarget(spud_nerd, -1)
PedLockTarget(spud_nerd, gPlayer, 3)
PedLockTarget(tblCutscenePed.lola.id, gPlayer, 3)
PedLockTarget(tblEntry.id, gPlayer)
PedLockTarget(tblGordWH.id, tblJohnnyWH.id, 3)
PedLockTarget(tblJohnnyWH.id, tblGordWH.id, 3)
PedLockTarget(tblPrank[8].id, -1)
PedLockTarget(tblRaceInfo.race.countdown_ped.id, -1)
PedLockTarget(tblRaceInfo.race.countdown_ped.id, gPlayer, 3)
PedLockTarget(Teacher, Victim, 3)
PedLockTarget(testPed[1].id, gPlayer)
PedLockTarget(Thug, -1)
PedLockTarget(Thug, Victim, 0)
PedLockTarget(Thug, Victim, 3)
PedLockTarget(vandal1, cop3, 1)
PedLockTarget(Victim, -1)
PedLockTarget(Victim, Teacher, 3)
PedLockTarget(Victim, Thug, 0)
PedLockTarget(Victim, Thug, 3)
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x20]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetInt
push 0x2
push esi
mov ebp, eax
call LuaParam::IsInt
add esp, 0x18
test al, al
jz 0x11
push 0x2
push esi
call LuaParam::GetInt
add esp, 0x8
mov ebx, eax
jmp 0x26
push 0x1
push 0x2
push esi
call LuaParam::GetBool ; optional
mov byte ptr [esp+0x1C], al
mov eax, dword ptr [esp+0x1C]
push eax
lea ecx, ptr [esp+0x20]
push 0x1
push ecx
call 0x496AF0
mov ebx, dword ptr [eax]
add esp, 0x18
push ecx
mov eax, esp
push edi
mov dword ptr [eax], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x4C
cmp ebp, 0xFFFFFFFF
jnz 0x15
push 0x0
mov ecx, esi
call 0x498B10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push ecx
mov eax, esp
push ebp
mov dword ptr [eax], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
jz 0x1E
fldz
lea edx, ptr [esp+0x14]
push edx
fst dword ptr [esp+0x18], st
push ebx
fst dword ptr [esp+0x20], st
push eax
fstp dword ptr [esp+0x28], st
mov ecx, esi
call 0x497E70
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
--print(">>>[RUI]", "PedMakeAmbient(gFatty)")
L_PedExec(group1, PedMakeAmbient, "id")
L_PedExec(group2, PedMakeAmbient, "id")
L_PedExec(group3, PedMakeAmbient, "id")
PedMakeAmbient(algie)
PedMakeAmbient(ally1)
PedMakeAmbient(ambientLola)
PedMakeAmbient(ambPedID)
PedMakeAmbient(assistant, false)
PedMakeAmbient(attacker.id)
PedMakeAmbient(beatrice)
PedMakeAmbient(Beatrice, false)
PedMakeAmbient(bExtraGuy)
PedMakeAmbient(bum)
PedMakeAmbient(candyPed1)
PedMakeAmbient(candyPed2)
PedMakeAmbient(char)
PedMakeAmbient(char2)
PedMakeAmbient(char3)
PedMakeAmbient(char4)
PedMakeAmbient(cheerer1)
PedMakeAmbient(cheerer2)
PedMakeAmbient(cheerer3)
PedMakeAmbient(cheerer4)
PedMakeAmbient(clint)
PedMakeAmbient(cop)
PedMakeAmbient(Crazy01)
PedMakeAmbient(Crazy02)
PedMakeAmbient(dataTable[1].id)
PedMakeAmbient(DirtyCop, false)
PedMakeAmbient(Dog)
PedMakeAmbient(driver)
PedMakeAmbient(Dropout1)
PedMakeAmbient(dude, false)
PedMakeAmbient(edna)
PedMakeAmbient(egger.id)
PedMakeAmbient(enemy.id)
PedMakeAmbient(entry)
PedMakeAmbient(entry.handle)
PedMakeAmbient(entry.id)
PedMakeAmbient(fatty)
PedMakeAmbient(FireMan)
PedMakeAmbient(FireManS2)
PedMakeAmbient(gAmbientEventTable.tCop1)
PedMakeAmbient(gAmbientEventTable.tCop2)
PedMakeAmbient(gAngryJock01)
PedMakeAmbient(gAngryJock02)
PedMakeAmbient(GateNerd.id)
PedMakeAmbient(gBeatrice)
PedMakeAmbient(gBlockAOrderly01)
PedMakeAmbient(gBlockAOrderly02)
PedMakeAmbient(gBlockers1[1])
PedMakeAmbient(gBlockers1[2])
PedMakeAmbient(gBoyFriend)
PedMakeAmbient(gBully)
PedMakeAmbient(gBully01)
PedMakeAmbient(gCarnie)
PedMakeAmbient(gCarny)
PedMakeAmbient(gCheater01, false)
PedMakeAmbient(gCheater02, false)
PedMakeAmbient(gClerk)
PedMakeAmbient(gCop1)
PedMakeAmbient(gCop2)
PedMakeAmbient(gCorn)
PedMakeAmbient(gCSBully)
PedMakeAmbient(gCurrentBully01)
PedMakeAmbient(gCurrentBully02)
PedMakeAmbient(gDavis)
PedMakeAmbient(gEdgar)
PedMakeAmbient(gFatty)
PedMakeAmbient(gFrontDeskOrderly)
PedMakeAmbient(gFrontOrderly)
PedMakeAmbient(gGary)
PedMakeAmbient(gGordTicket)
PedMakeAmbient(gGreaser1)
PedMakeAmbient(gGreaser2)
PedMakeAmbient(gGreaser4)
PedMakeAmbient(gGreaserAttacker)
PedMakeAmbient(gHallMon)
PedMakeAmbient(gHattrick)
PedMakeAmbient(gInOrderly01)
PedMakeAmbient(gInOrderly02)
PedMakeAmbient(Girl1)
PedMakeAmbient(gJogger)
PedMakeAmbient(gJohnny)
PedMakeAmbient(gLackey[10].ped)
PedMakeAmbient(gLackey[8].ped)
PedMakeAmbient(gLolaTicket)
PedMakeAmbient(gLuis)
PedMakeAmbient(gMandy)
PedMakeAmbient(gMelvin)
PedMakeAmbient(gNerds[1])
PedMakeAmbient(gNerds[1].id)
PedMakeAmbient(gNerds[2])
PedMakeAmbient(gNerds[2].id)
PedMakeAmbient(gord)
PedMakeAmbient(gPeanut)
PedMakeAmbient(gPedro)
PedMakeAmbient(gPedroBully)
PedMakeAmbient(gPeds[1])
PedMakeAmbient(gPeds[2])
PedMakeAmbient(gPeter)
PedMakeAmbient(gPeteyPier)
PedMakeAmbient(gPinkyTicket)
PedMakeAmbient(gPrefect)
PedMakeAmbient(gPrep1)
PedMakeAmbient(gPrep2)
PedMakeAmbient(gPrincipal)
PedMakeAmbient(gPushers[1])
PedMakeAmbient(gPushers[2])
PedMakeAmbient(Greaser1)
PedMakeAmbient(Greaser2)
PedMakeAmbient(GreaserThief.id1)
PedMakeAmbient(GreaserThief.id2)
PedMakeAmbient(GreaserThief.id3)
PedMakeAmbient(GreaserThief.id4)
PedMakeAmbient(gRetirementTable.ped1)
PedMakeAmbient(gRetirementTable.ped2)
PedMakeAmbient(gRetirementTable.ped3)
PedMakeAmbient(gRetirementTable.ped4)
PedMakeAmbient(gRetirementTable.ped5)
PedMakeAmbient(gRooftopPeds1[1])
PedMakeAmbient(gRooftopPeds1[2])
PedMakeAmbient(gRussell)
PedMakeAmbient(gRussell.id)
PedMakeAmbient(gSecondEventPedA)
PedMakeAmbient(gSecretary)
PedMakeAmbient(gSleepingOrderly)
PedMakeAmbient(gSpazzMan)
PedMakeAmbient(gTargetBoy)
PedMakeAmbient(gThad)
PedMakeAmbient(guy.id)
PedMakeAmbient(id)
PedMakeAmbient(idBucky)
PedMakeAmbient(idBurton)
PedMakeAmbient(idDO)
PedMakeAmbient(idEunice.id, false)
PedMakeAmbient(idHobo)
PedMakeAmbient(idLittleBoy)
PedMakeAmbient(idLola)
PedMakeAmbient(idNemesis)
PedMakeAmbient(idPed)
PedMakeAmbient(idPete)
PedMakeAmbient(idPeter)
PedMakeAmbient(idPinky.id)
PedMakeAmbient(idTeacher)
PedMakeAmbient(idTeacher2)
PedMakeAmbient(idZoe)
PedMakeAmbient(insultBoy)
PedMakeAmbient(item.elf)
PedMakeAmbient(item.kid)
PedMakeAmbient(item.parent)
PedMakeAmbient(item.ped)
PedMakeAmbient(jock01)
PedMakeAmbient(jock02)
PedMakeAmbient(jock03)
PedMakeAmbient(johnny)
PedMakeAmbient(Justin)
PedMakeAmbient(key.handle)
PedMakeAmbient(kissGirl)
PedMakeAmbient(librarian)
PedMakeAmbient(lola)
PedMakeAmbient(lVictim[vIndex], true)
PedMakeAmbient(mailbox.waitingPed.id)
PedMakeAmbient(mandy)
PedMakeAmbient(MotelOwner, false)
PedMakeAmbient(Objectives[5].id)
PedMakeAmbient(Objectives[CurrentMissionNumber].id)
PedMakeAmbient(Objectives[i].id)
PedMakeAmbient(ped)
PedMakeAmbient(ped.id)
PedMakeAmbient(ped1)
PedMakeAmbient(ped2)
PedMakeAmbient(ped4)
PedMakeAmbient(pedAlgie.id)
PedMakeAmbient(pedAngieGym.id)
PedMakeAmbient(pedArtTeacher.id)
PedMakeAmbient(pedAsianGirl.id)
PedMakeAmbient(pedBeatrice.id)
PedMakeAmbient(pedBryce)
PedMakeAmbient(pedBully01.id)
PedMakeAmbient(pedBully02.id)
PedMakeAmbient(pedBurton.id)
PedMakeAmbient(pedBurtonStage3.id)
PedMakeAmbient(pedChad)
PedMakeAmbient(pedChad.id)
PedMakeAmbient(pedCheerleader01.id)
PedMakeAmbient(pedCheerleader02.id)
PedMakeAmbient(pedChristyGym.id)
PedMakeAmbient(pedConstantine.id)
PedMakeAmbient(pedCornelius.id)
PedMakeAmbient(pedCutBo.id)
PedMakeAmbient(pedCutBucky.id)
PedMakeAmbient(pedCutCasey.id)
PedMakeAmbient(pedCutCornelius.id)
PedMakeAmbient(pedCutJuri.id)
PedMakeAmbient(pedCutThad.id)
PedMakeAmbient(pedDog.id)
PedMakeAmbient(pedEarnest.id)
PedMakeAmbient(pedEunice.id)
PedMakeAmbient(pedGalloway.id)
PedMakeAmbient(pedGary.id)
PedMakeAmbient(pedGord)
PedMakeAmbient(pedGreaser01.id)
PedMakeAmbient(pedGreaser02.id)
PedMakeAmbient(pedGreaser03.id)
PedMakeAmbient(pedGreaser04.id)
PedMakeAmbient(pedHattrick.id)
PedMakeAmbient(pedID)
PedMakeAmbient(pedID, false)
PedMakeAmbient(pedJock.id)
PedMakeAmbient(pedJockPushup01.id)
PedMakeAmbient(pedJockSmoke.id)
PedMakeAmbient(pedKlepto.id)
PedMakeAmbient(pedMandy.id)
PedMakeAmbient(pedMandyBedroom.id)
PedMakeAmbient(pedMandyGym.id)
PedMakeAmbient(pedMandyShower.id)
PedMakeAmbient(pedParker)
PedMakeAmbient(pedPinky.id)
PedMakeAmbient(pedPinkyGym.id)
PedMakeAmbient(pedPoolPrep.id)
PedMakeAmbient(pedPrefect.id)
PedMakeAmbient(pedPrefectKarl.id)
PedMakeAmbient(pedPrep.id)
PedMakeAmbient(pedRicky)
PedMakeAmbient(Pedro)
PedMakeAmbient(pedRussell.id)
PedMakeAmbient(pedSexyGirl.id)
PedMakeAmbient(pedStoreOwner.id)
PedMakeAmbient(pedZoe.id)
PedMakeAmbient(perv.id)
PedMakeAmbient(pervId)
PedMakeAmbient(pete)
PedMakeAmbient(Peter, false)
PedMakeAmbient(phillips)
PedMakeAmbient(Pirate, true)
PedMakeAmbient(prank.id)
PedMakeAmbient(prefect)
PedMakeAmbient(prep)
PedMakeAmbient(Prep1)
PedMakeAmbient(Prep2)
PedMakeAmbient(racer.bike)
PedMakeAmbient(racer.id)
PedMakeAmbient(rat.id)
PedMakeAmbient(Receiver1)
PedMakeAmbient(Receiver2)
PedMakeAmbient(Receiver3)
PedMakeAmbient(rider)
PedMakeAmbient(rider01)
PedMakeAmbient(rider02)
PedMakeAmbient(RoguePed)
PedMakeAmbient(santa)
PedMakeAmbient(ScenarioPed)
PedMakeAmbient(ScenarioPed, false)
PedMakeAmbient(shared.gEdnaID)
PedMakeAmbient(shared.gGary)
PedMakeAmbient(shared.gPetey)
PedMakeAmbient(shared.gSecretaryID)
PedMakeAmbient(shared.idDog)
PedMakeAmbient(spud_nerd)
PedMakeAmbient(Student)
PedMakeAmbient(student)
PedMakeAmbient(tableAllJocks[i])
PedMakeAmbient(tableExtraJocks[i])
PedMakeAmbient(tbl.id, false)
PedMakeAmbient(tblEntry.id)
PedMakeAmbient(tblFamilyList[i].kid)
PedMakeAmbient(tblFamilyList[i].parent)
PedMakeAmbient(tblMsPhillips.id)
PedMakeAmbient(tblPrep1.id)
PedMakeAmbient(tblRaceInfo.race.countdown_ped.id)
PedMakeAmbient(tdo)
PedMakeAmbient(teacher)
PedMakeAmbient(tFirstFloorTable.gord.id)
PedMakeAmbient(tFirstFloorTable.parker.id)
PedMakeAmbient(treePedID)
PedMakeAmbient(Trevor)
PedMakeAmbient(tSecondFloorTable.justin.id)
PedMakeAmbient(tSecondFloorTable.tad.id)
PedMakeAmbient(tThirdFloorTable.bryce.id)
PedMakeAmbient(tThirdFloorTable.chad.id)
PedMakeAmbient(watts)
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push eax
push esi
call 0x5CA910
add esp, 0x14
xor eax, eax
pop esi
ret
PedMakeAmbientKeepResources(tableBikerPeds[tableMarkForDelete[i]])
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetInt
push 0x0
push eax
push esi
call 0x5CA910
add esp, 0x14
xor eax, eax
pop esi
ret
PedMakeMissionChar(Crazy01)
PedMakeMissionChar(Crazy02)
PedMakeMissionChar(DirtyCop)
PedMakeMissionChar(Dropout1)
PedMakeMissionChar(gBully)
PedMakeMissionChar(gCheater01)
PedMakeMissionChar(gCheater02)
PedMakeMissionChar(Greaser1)
PedMakeMissionChar(Greaser2)
PedMakeMissionChar(gSpazzMan)
PedMakeMissionChar(idPed)
PedMakeMissionChar(MotelOwner)
PedMakeMissionChar(newKid)
PedMakeMissionChar(newParent)
PedMakeMissionChar(Petey)
PedMakeMissionChar(prank.id)
PedMakeMissionChar(Prep1)
PedMakeMissionChar(Prep2)
PedMakeMissionChar(rat.id)
PedMakeMissionChar(Receiver1)
PedMakeMissionChar(Receiver2)
PedMakeMissionChar(Receiver3)
PedMakeMissionChar(ScenarioPed)
PedMakeMissionChar(shared.gDunkMidget)
PedMakeMissionChar(shared.gGary)
PedMakeMissionChar(shared.gPetey)
mov eax, dword ptr [esp+0x4]
push esi
push 0x0
push eax
call LuaParam::GetInt
mov esi, eax
add esp, 0x4
mov eax, esp
push esi
mov dword ptr [eax], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
jz 0x21
push 0x1
push 0x1
push 0x2
mov ecx, eax
call 0x47B7E0
push esi
mov ecx, 0xD02850
call 0x5DB940
mov ecx, eax
call 0x5D9630
xor eax, eax
pop esi
ret
L_PedExec("CheerDudes", PedMakeTargetable, "id", false)
L_PedExec("gymjocks", PedMakeTargetable, "id", false)
L_PedExec("spectator", PedMakeTargetable, "id", false)
PedMakeTargetable(burton, false)
PedMakeTargetable(camcoach, false)
PedMakeTargetable(car.driver, false)
PedMakeTargetable(chemTeach, false)
PedMakeTargetable(CrateJumper01, false)
PedMakeTargetable(CrateJumper02, false)
PedMakeTargetable(CrateJumper03, false)
PedMakeTargetable(Earnest, false)
PedMakeTargetable(edna, false)
PedMakeTargetable(entry, true)
PedMakeTargetable(entry.handle, false)
PedMakeTargetable(entry.id, false)
PedMakeTargetable(entry.id, true)
PedMakeTargetable(gBully01, false)
PedMakeTargetable(gCarny, false)
PedMakeTargetable(gClerk, false)
PedMakeTargetable(gDavis, false)
PedMakeTargetable(gDavis, true)
PedMakeTargetable(gDefenders[1], true)
PedMakeTargetable(gFirstImmortalPrep, false)
PedMakeTargetable(gGalloway, false)
PedMakeTargetable(gHattrick, false)
PedMakeTargetable(gHattrick, true)
PedMakeTargetable(gJV_OnGround, true)
PedMakeTargetable(gMandy, false)
PedMakeTargetable(gMelvin, false)
PedMakeTargetable(gMsPhillips, false)
PedMakeTargetable(gPeanut, false)
PedMakeTargetable(gPeanut, true)
PedMakeTargetable(gPeter, false)
PedMakeTargetable(gPlayer, false)
PedMakeTargetable(gPlayer, true)
PedMakeTargetable(gRudy, false)
PedMakeTargetable(gRudy, true)
PedMakeTargetable(gRussell, false)
PedMakeTargetable(gSecondImmortalPrep, false)
PedMakeTargetable(gThad, false)
PedMakeTargetable(gThad, true)
PedMakeTargetable(guy, true)
PedMakeTargetable(hattrick, false)
PedMakeTargetable(iCheer01, false)
PedMakeTargetable(iCheer02, false)
PedMakeTargetable(iCheer03, false)
PedMakeTargetable(iCheer04, false)
PedMakeTargetable(iCheer05, false)
PedMakeTargetable(id, true)
PedMakeTargetable(idBiff, false)
PedMakeTargetable(idPeter, false)
PedMakeTargetable(idPeter, true)
PedMakeTargetable(idZoe, false)
PedMakeTargetable(idZoe, true)
PedMakeTargetable(kid_01, false)
PedMakeTargetable(kid_02, false)
PedMakeTargetable(kid_03, false)
PedMakeTargetable(LastJumper01, false)
PedMakeTargetable(LastJumper02, false)
PedMakeTargetable(librarian, false)
PedMakeTargetable(melvin, false)
PedMakeTargetable(melvin, true)
PedMakeTargetable(newKid, false)
PedMakeTargetable(newParent, false)
PedMakeTargetable(parent_01, false)
PedMakeTargetable(parent_02, false)
PedMakeTargetable(parent_03, false)
PedMakeTargetable(ped, false)
PedMakeTargetable(ped, true)
PedMakeTargetable(pedBryce, true)
PedMakeTargetable(pedChad.id, false)
PedMakeTargetable(pedDog.id, false)
PedMakeTargetable(pedDog.id, true)
PedMakeTargetable(pedEarnest.id, false)
PedMakeTargetable(pedGary.id, false)
PedMakeTargetable(pedGary.id, true)
PedMakeTargetable(pedGirlsShower_01.id, false)
PedMakeTargetable(pedGirlsShower_02.id, false)
PedMakeTargetable(pedGord, false)
PedMakeTargetable(pedGord, true)
PedMakeTargetable(pedid, false)
PedMakeTargetable(pedLola.id, false)
PedMakeTargetable(pedTad.id, false)
PedMakeTargetable(santa, false)
PedMakeTargetable(shared.gGary, true)
PedMakeTargetable(tblGreaser1WH.id, false)
PedMakeTargetable(tblGreaser2WH.id, false)
PedMakeTargetable(tblJohnnyWH.id, false)
PedMakeTargetable(tblRaceInfo.race.countdown_ped.id, true)
PedMakeTargetable(tblTad.id, false)
PedMakeTargetable(watts, false)
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x1A
push 0x1
push edi
call LuaParam::GetBool
add esp, 0x8
neg al
sbb eax, eax
add eax, 0x1
mov dword ptr [esi+0xC0], eax
pop edi
xor eax, eax
pop esi
ret
--print("Playing Climb_ON_BOT: ", tostring(PedMePlaying(gPlayer, "Climb_ON_BOT", true)))
--print("Playing Ladder: ", tostring(PedMePlaying(gPlayer, "Ladder", true)))
--print("Playing TreeCheck: ", tostring(PedMePlaying(gPlayer, "TreeCheck", false)))
elseif bSetRotationLimit and not PedMePlaying(gPlayer, "Ladder", true) and not PedMePlaying(gPlayer, "Climb_ON_BOT", true) and not PedMePlaying(gPlayer, "TreeCheck", false) then
if not bConstantineLostHealth and (gConstantineHealth > PedGetHealth(pedConstantine.id) or PedMePlaying(pedConstantine.id, "Hold_Idle", true)) and PedGetWhoHitMeLast(pedConstantine.id) == gPlayer then
if not bIsBlocking and PedMePlaying(gPlayer, "0_BLOCK_0", true) then
if not bRideOver and not PedMePlaying(gPlayer, gRide, true) then
if not PedMePlaying(algie, "Grapples", true) then
if not PedMePlaying(gPlayer, "0_BLOCK_0", true) then
if not PlayerHasItem(321) and not PedMePlaying(gPlayer, "DrawMedTag", true) then
if PedMePlaying(gPlayer, "HoistUp_Spawns", true) then
if PedMePlaying(gPlayer, "Ladder", true) or PedMePlaying(gPlayer, "Climb_ON_BOT", true) or PedMePlaying(gPlayer, "TreeCheck", false) then
if PedMePlaying(gPlayer, "Social_Actions", true) then
return PlayerGetHealth() <= 0 or PedMePlaying(gPlayer, "Dead", true)
while not PedMePlaying(gPlayer, "Social_Actions", true) do
while not PedMePlaying(gPlayer, "Social_Combat_X", true) do
while not PedMePlaying(gPlayer, gRide, true) do
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov edx, eax
neg edx
sbb edx, edx
mov ecx, esp
add edx, 0x3
push eax
mov dword ptr [ecx], edx
call 0x5C7380
mov edi, dword ptr [eax+0x2E0]
push 0x2
push esi
call LuaParam::GetBool
add esp, 0x10
push eax
push 0x1
push 0x1
push esi
call LuaParam::GetString
add esp, 0x8
push eax
lea ecx, ptr [edi+0x258]
call 0x5F49A0
mov byte ptr [esp+0x8], al
mov eax, dword ptr [esp+0x8]
push eax
push esi
call LuaParam::PushBool
add esp, 0x8
pop edi
mov eax, 0x1
pop esi
pop ecx
ret
PedModelCreateGiftRequirement(102, 22, 0, 0, true, 30)
PedModelCreateGiftRequirement(11, 22, 0, 0, true, 30)
PedModelCreateGiftRequirement(13, 2, "C_Art_1", 0, true, 100)
PedModelCreateGiftRequirement(14, 2, "4_G4", 0, true, 100)
PedModelCreateGiftRequirement(145, 22, 0, 0, true, 30)
PedModelCreateGiftRequirement(146, 22, 0, 0, true, 30)
PedModelCreateGiftRequirement(147, 22, 0, 0, true, 30)
PedModelCreateGiftRequirement(15, 22, 0, 0, true, 30)
PedModelCreateGiftRequirement(16, 22, 0, 0, true, 30)
PedModelCreateGiftRequirement(166, 2, "C_Art_1", 0, true, 100)
PedModelCreateGiftRequirement(167, 2, "2_G2", 0, true, 100)
PedModelCreateGiftRequirement(17, 22, 0, 0, true, 30)
PedModelCreateGiftRequirement(18, 22, 0, 0, true, 30)
PedModelCreateGiftRequirement(180, 2, "C_Art_1", 0, true, 100)
PedModelCreateGiftRequirement(181, 2, "C_Art_1", 0, true, 100)
PedModelCreateGiftRequirement(182, 2, "2_G2", 0, true, 100)
PedModelCreateGiftRequirement(2, 2, "5_G5", 0, true, 100)
PedModelCreateGiftRequirement(20, 22, 0, 0, true, 30)
PedModelCreateGiftRequirement(22, 22, 0, 0, true, 30)
PedModelCreateGiftRequirement(224, 22, 0, 0, true, 30)
PedModelCreateGiftRequirement(24, 22, 0, 0, true, 30)
PedModelCreateGiftRequirement(25, 2, "3_G3", 0, true, 100)
PedModelCreateGiftRequirement(26, 22, 0, 0, true, 30)
PedModelCreateGiftRequirement(27, 2, "C_Art_1", 0, true, 100)
PedModelCreateGiftRequirement(28, 22, 0, 0, true, 30)
PedModelCreateGiftRequirement(29, 22, 0, 0, true, 30)
PedModelCreateGiftRequirement(3, 2, "1_08", 0, true, 100)
PedModelCreateGiftRequirement(30, 2, "C_Art_1", 0, true, 100)
PedModelCreateGiftRequirement(31, 22, 0, 0, true, 30)
PedModelCreateGiftRequirement(32, 22, 0, 0, true, 30)
PedModelCreateGiftRequirement(34, 22, 0, 0, true, 30)
PedModelCreateGiftRequirement(35, 22, 0, 0, true, 30)
PedModelCreateGiftRequirement(38, 2, "2_G2", 0, true, 100)
PedModelCreateGiftRequirement(39, 2, "C_Art_1", 0, true, 100)
PedModelCreateGiftRequirement(4, 22, 0, 0, true, 30)
PedModelCreateGiftRequirement(40, 22, 0, 0, true, 30)
PedModelCreateGiftRequirement(41, 22, 0, 0, true, 30)
PedModelCreateGiftRequirement(42, 22, 0, 0, true, 30)
PedModelCreateGiftRequirement(43, 22, 0, 0, true, 30)
PedModelCreateGiftRequirement(44, 2, "C_Art_1", 0, true, 100)
PedModelCreateGiftRequirement(44, 22, 0, 0, true, 30)
PedModelCreateGiftRequirement(45, 22, 0, 0, true, 30)
PedModelCreateGiftRequirement(46, 22, 0, 0, true, 30)
PedModelCreateGiftRequirement(5, 22, 0, 0, true, 30)
PedModelCreateGiftRequirement(67, 2, "C_Art_1", 0, true, 100)
PedModelCreateGiftRequirement(7, 22, 0, 0, true, 30)
PedModelCreateGiftRequirement(74, 1, "1_02B", 0, true, 100)
PedModelCreateGiftRequirement(75, 22, "1_B", 0, true, 100)
PedModelCreateGiftRequirement(8, 22, 0, 0, true, 30)
PedModelCreateGiftRequirement(85, 2, "C_Art_1", 0, true, 100)
PedModelCreateGiftRequirement(9, 2, "C_Art_1", 0, true, 100)
PedModelCreateGiftRequirement(90, 2, "C_Art_1", 0, true, 100)
PedModelCreateGiftRequirement(93, 2, "4_G4", 0, true, 100)
PedModelCreateGiftRequirement(95, 2, "1_08", 0, true, 100)
PedModelCreateGiftRequirement(96, 2, "3_G3", 0, true, 100)
PedModelCreateGiftRequirement(99, 22, 0, 0, true, 30)
sub esp, 0x14
push esi
mov esi, dword ptr [esp+0x1C]
push edi
xor edi, edi
push edi
push esi
call LuaParam::GetInt
push 0x1
push esi
mov dword ptr [esp+0x1C], eax
call LuaParam::GetInt
push 0x2
push esi
mov word ptr [esp+0x22], ax
call LuaParam::IsString
add esp, 0x18
test al, al
jz 0x19
push 0x2
push esi
call LuaParam::GetString
push eax
call 0x576ED0
add esp, 0xC
mov dword ptr [esp+0x10], eax
jmp 0x6
mov dword ptr [esp+0x10], edi
push 0x3
push esi
call LuaParam::IsString
add esp, 0x8
test al, al
jz 0x19
push 0x3
push esi
call LuaParam::GetString
push eax
call 0x576ED0
add esp, 0xC
mov dword ptr [esp+0x14], eax
jmp 0x6
mov dword ptr [esp+0x14], edi
push 0x4
push esi
call LuaParam::GetBool
push 0x5
push esi
mov byte ptr [esp+0x19], al
call LuaParam::GetInt
push esi
mov byte ptr [esp+0x1C], al
call 0x73AEA0
add esp, 0x14
cmp eax, 0x6
jle 0x28
push 0x6
push esi
call LuaParam::IsString
add esp, 0x8
test al, al
jz 0x19
push 0x6
push esi
call LuaParam::GetString
push eax
call 0x576ED0
add esp, 0xC
mov dword ptr [esp+0x18], eax
jmp 0x6
mov dword ptr [esp+0x18], edi
lea eax, ptr [esp+0x8]
push eax
mov ecx, 0x20C3698
call 0x6A99E0
pop edi
xor eax, eax
pop esi
add esp, 0x14
ret
PedModelNotNeededAmbient(Boxer1)
PedModelNotNeededAmbient(Boxer2)
PedModelNotNeededAmbient(Boxer3)
PedModelNotNeededAmbient(FireMan)
PedModelNotNeededAmbient(FireManS2)
PedModelNotNeededAmbient(gAsylumTable.ped1)
PedModelNotNeededAmbient(gAsylumTable.ped2)
PedModelNotNeededAmbient(gClerk)
PedModelNotNeededAmbient(gGordTicket)
PedModelNotNeededAmbient(gLolaTicket)
PedModelNotNeededAmbient(gMailmanID)
PedModelNotNeededAmbient(gPeteyPier)
PedModelNotNeededAmbient(gPinkyTicket)
PedModelNotNeededAmbient(gRetirementTable.ped1)
PedModelNotNeededAmbient(gRetirementTable.ped2)
PedModelNotNeededAmbient(gRetirementTable.ped3)
PedModelNotNeededAmbient(gRetirementTable.ped4)
PedModelNotNeededAmbient(id)
PedModelNotNeededAmbient(Librarian)
PedModelNotNeededAmbient(PB1)
PedModelNotNeededAmbient(PB2)
PedModelNotNeededAmbient(PB3)
PedModelNotNeededAmbient(PedID)
PedModelNotNeededAmbient(shared.gEdnaID)
PedModelNotNeededAmbient(shared.gSecretaryID)
PedModelNotNeededAmbient(student)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
jz 0x12
movsx ecx, word ptr [eax+0x10E]
push ecx
call 0x52FE40
add esp, 0x4
xor eax, eax
ret
PedMoveToObject(client.id, gPlayer, 2, 0)
PedMoveToObject(gCrazy01, gPlayer, 3, 2, F_CrazyOnTheRun, 2)
PedMoveToObject(gPlayer, Beatrice, 2, 0)
PedMoveToObject(gPrefect1, gPlayer, 3, 2)
PedMoveToObject(idEunice.id, gPlayer, 2, 0)
PedMoveToObject(idGord.id, idBike.id, 1, 1, nil, 4)
PedMoveToObject(johnny, gPlayer, 2, 0)
PedMoveToObject(mandy, gPlayer, 2, 0)
PedMoveToObject(pedBurtonStage3.id, gPlayer, 2, 0)
PedMoveToObject(pedRussell.id, gPlayer, 2, 1)
PedMoveToObject(Petey, gPlayer, 2, 1, nil, 2)
PedMoveToObject(prank.id, gPlayer, 2, 1, nil, 2.5)
PedMoveToObject(ScenarioPed, gPlayer, 2, 1, nil, 2)
PedMoveToObject(ScenarioPed, gPlayer, 2, 1, nil, 2.5)
PedMoveToObject(tbl.id, gPlayer, 2, 1, nil, 2.5)
PedMoveToObject(testPed[1].id, object1.id, 2, 2)
PedMoveToObject(testPed[1].id, object2.id, 2, 2)
PedMoveToObject(tThirdFloorTable.bryce.id, gPlayer, 2, 2)
PedMoveToObject(tThirdFloorTable.chad.id, gPlayer, 2, 2)
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x20]
push edi
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov ebx, eax
add esp, 0x8
test ebx, ebx
jz 0xCE
push 0x1
push esi
call LuaParam::GetInt
push 0x2
push esi
mov edi, eax
call LuaParam::GetInt
fld st, dword ptr [0x900E00]
add esp, 0xC
fstp dword ptr [esp], st
push 0x3
push esi
mov ebp, eax
call 0x5C62E0
fstp dword ptr [esp+0x1C], st
push 0x0
push 0x0
push ebp
push edi
call 0x5C28D0
fld st, dword ptr [0x911E30]
add esp, 0x18
fstp dword ptr [esp], st
push 0x5
push esi
mov edi, eax
call LuaParam::GetFloat ; optional
fstp dword ptr [esp+0x28], st
push 0x0
push 0x6
push esi
call LuaParam::GetBool ; optional
push 0x0
push 0x7
push esi
mov byte ptr [esp+0x3C], al
call LuaParam::GetBool ; optional
push 0x2C
mov byte ptr [esp+0x3C], al
call 0x5EEAA0
add esp, 0x28
test eax, eax
jz 0x2B
mov ecx, dword ptr [esp+0x14]
fld st, dword ptr [esp+0x1C]
mov edx, dword ptr [esp+0x18]
push ecx
push edx
sub esp, 0x8
fstp dword ptr [esp+0x4], st
mov ecx, eax
fld st, dword ptr [esp+0x20]
fstp dword ptr [esp], st
push edi
push ebx
call 0x4708F0
mov edi, eax
jmp 0x4
xor edi, edi
fld st, dword ptr [esp+0x10]
push edi
lea ecx, ptr [ebx+0x5F0]
fstp dword ptr [edi+0x10], st
call 0x471390
add edi, 0x1C
push edi
push 0x4
push esi
call 0x5DA060
add esp, 0xC
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
PedMoveToPoint(algie, 3, POINTLIST._4G4_THADRUN, 1)
PedMoveToPoint(aliveGreaser01, 2, POINTLIST._3_S09_HELP)
PedMoveToPoint(aud1, 1, POINTLIST._1_10_AUDVIEW, 1)
PedMoveToPoint(aud2, 1, POINTLIST._1_10_AUDVIEW, 2)
PedMoveToPoint(aud3, 1, POINTLIST._1_10_AUDVIEW, 3)
PedMoveToPoint(aud4, 1, POINTLIST._1_10_AUDVIEW, 4)
PedMoveToPoint(boxer, 0, POINTLIST._BOXING_ENEMYCORNER)
PedMoveToPoint(camblue1, 1, POINTLIST._DBALLCAM_RUNPOSITIONS, 5)
PedMoveToPoint(camblue2, 1, POINTLIST._DBALLCAM_RUNPOSITIONS, 6)
PedMoveToPoint(camblue3, 1, POINTLIST._DBALLCAM_RUNPOSITIONS, 7)
PedMoveToPoint(camblue4, 1, POINTLIST._DBALLCAM_RUNPOSITIONS, 8)
PedMoveToPoint(camred1, 1, POINTLIST._DBALLCAM_RUNPOSITIONS, 2)
PedMoveToPoint(camred2, 1, POINTLIST._DBALLCAM_RUNPOSITIONS, 3)
PedMoveToPoint(camred3, 1, POINTLIST._DBALLCAM_RUNPOSITIONS, 4)
PedMoveToPoint(CoachBurton.id, 1, POINTLIST._4_06_INSIDEDOCKINGPOINT)
PedMoveToPoint(currentPed.id, 1, POINTLIST._4_06_DOCKINGPOINT)
PedMoveToPoint(currentPed.id, 1, POINTLIST._4_06_INSIDEDOCKINGPOINT)
PedMoveToPoint(damon, 1, POINTLIST._3_R06_COVER2_1)
PedMoveToPoint(damon, 1, POINTLIST._3_R06_COVER2_3)
PedMoveToPoint(damon, 1, POINTLIST._3_R06_COVER2_5)
PedMoveToPoint(damon, 1, POINTLIST._3_R06_COVER2_6)
PedMoveToPoint(damon, 1, POINTLIST._3_R06_MT2_4)
PedMoveToPoint(damon, 1, POINTLIST._3_R06_MT2_5)
PedMoveToPoint(dan, 1, POINTLIST._3_R06_COVER2_1)
PedMoveToPoint(dan, 1, POINTLIST._3_R06_COVER2_3)
PedMoveToPoint(dan, 1, POINTLIST._3_R06_COVER2_5)
PedMoveToPoint(dan, 1, POINTLIST._3_R06_COVER2_6)
PedMoveToPoint(dan, 1, POINTLIST._3_R06_MT2_3)
PedMoveToPoint(dan, 1, POINTLIST._3_R06_MT2_4)
PedMoveToPoint(dan, 1, POINTLIST._3_R06_MT2_5)
PedMoveToPoint(dude, 1, POINTLIST._5_02_BONFIREOBSERVERS, wp, cbReachedWatchPoint)
PedMoveToPoint(Earnest, 0, POINTLIST._1_09_EARNEST)
PedMoveToPoint(edgar, 0, POINTLIST._5_B_EDGARMOVETO)
PedMoveToPoint(edgar, 0, POINTLIST._5_B_END, 3)
PedMoveToPoint(edgar, 2, POINTLIST._5_B_DEBUG_STAGE3, 1)
PedMoveToPoint(endPed, 0, POINTLIST._3_R09_ENDSEQUENCE, 3)
PedMoveToPoint(enemy, 2, POINTLIST._3_R09_GOTO, 1, nil, 2)
PedMoveToPoint(Entry.id, 0, Entry.point)
PedMoveToPoint(entry.id, 1, POINTLIST._1_04_GOONFIELDNEW, entry.element, entry.callback)
PedMoveToPoint(gBlockAOrderly01, 1, POINTLIST._5_03_FRONTDESKSUPPORT, 1)
PedMoveToPoint(gBlockAOrderly02, 1, POINTLIST._5_03_FRONTDESKSUPPORT, 2)
PedMoveToPoint(gBully01, 0, POINTLIST._1_01_BEGGININGBULLIES, 1)
PedMoveToPoint(gBully01, 2, POINTLIST._1_01_PLAYER_START, 1)
PedMoveToPoint(gBully02, 1, POINTLIST._1_02_NIS_BULLIESFLEE, 3)
PedMoveToPoint(gBully03, 0, POINTLIST._1_02_NIS_BULLIESFLEE, 4)
PedMoveToPoint(gCop1, 2, POINTLIST._3_10_RudyMove01, 1)
PedMoveToPoint(gCrazy01, 1, POINTLIST._3_S11_CRAZYRUN, 1, cbCrazyWander)
PedMoveToPoint(gCrazy01, 1, POINTLIST._3_S11_P_GOTO1, 1, CB_Face)
PedMoveToPoint(gCrazy02, 1, POINTLIST._3_S11_CRAZYRUN, 1, cbCrazyWander)
PedMoveToPoint(gCrazy02, 1, POINTLIST._3_S11_P_GOTO2, 1, CB_Face)
PedMoveToPoint(gCrazy03, 1, POINTLIST._3_S11_CRAZYRUN, 2, cbCrazyWander)
PedMoveToPoint(gCrazy03, 1, POINTLIST._3_S11_P_GOTO3, 1, CB_Face)
PedMoveToPoint(gCrazy04, 1, POINTLIST._3_S11_CRAZYRUN, 2, cbCrazyWander)
PedMoveToPoint(gCrazy04, 1, POINTLIST._3_S11_P_GOTO4, 1, CB_Face)
PedMoveToPoint(gDarby, 0, POINTLIST._5_02_WALKOFF, 1)
PedMoveToPoint(gEdgar, 1, POINTLIST._6_03_ENDNIS, 8)
PedMoveToPoint(gEdgar, 3, POINTLIST._6_03_DODEST, 5, nil, 0.3, true)
PedMoveToPoint(gGary, 0, POINTLIST._1_10_GARYSWITCHELEC, 1, cbGaryAtSwitch, 0.3)
PedMoveToPoint(gGary, 0, POINTLIST._6_B_LADDERS, 2)
PedMoveToPoint(gGuy1, 0, POINTLIST._5_02_WALKOFF, 2)
PedMoveToPoint(gHobo, 0, POINTLIST._BEAMEFFECT)
PedMoveToPoint(gJohnny, 1, POINTLIST._5_03_JOHNNY_GOTO1)
PedMoveToPoint(gJohnny, 2, POINTLIST._5_03_JOHNNY_FREE1)
PedMoveToPoint(gJohnny, 2, POINTLIST._5_03_JOHNNY_OUT1)
PedMoveToPoint(gJohnnyV, 2, POINTLIST._3_B_JOHNNYTOBIKE, 1, cbJohnnyAtBike, 0.5)
PedMoveToPoint(gLuis, 0, gBallStart)
PedMoveToPoint(gLuis, 0, POINTLIST._HACKY_RESTPOINT)
PedMoveToPoint(gLuis, 1, POINTLIST._HACKY_JOCKRUNTO)
PedMoveToPoint(gord, 0, gDest.dest, 1, F_KissTime, 0.3, false)
PedMoveToPoint(gord, 0, POINTLIST._3_01_KISSFINAL, 1, F_KissTime, 0.3, false)
PedMoveToPoint(gord, 1, gDest.dest, 1, F_KissTime, 0.3, false)
PedMoveToPoint(gord, 1, gDest.dest, 4, F_KissTimeAlley, 0.3, false)
PedMoveToPoint(gOrderly01, 0, POINTLIST._3_S11_DOORGUARDTOWATCHER, 2)
PedMoveToPoint(gOrderly01, 1, POINTLIST._3_S11_CRAZYRUN, 2, cbCrazyWander)
PedMoveToPoint(gOrderly02, 0, POINTLIST._3_S11_DOORGUARDTOWATCHER, 1)
PedMoveToPoint(gOrderly02, 1, POINTLIST._3_S11_CRAZYRUN, 1, cbCrazyWander)
PedMoveToPoint(gOrderly03, 1, POINTLIST._3_S11_O_GOTO3, 1, CB_Face)
PedMoveToPoint(gPeanut, 2, POINTLIST._FINALFIGHT, 5)
PedMoveToPoint(gPedro, 3, POINTLIST._1_01_KIDRUN, 3)
PedMoveToPoint(gPeds[1], 3, POINTLIST._6_03_DODEST, 1, nil, 0.3, true)
PedMoveToPoint(gPeds[2], 3, POINTLIST._6_03_DODEST, 2, nil, 0.3, true)
PedMoveToPoint(gPeter, 0, POINTLIST._3B_PETERCRANESYNCH, 1, cbPeterAtCraneDoor, 0.1)
PedMoveToPoint(gPlayer, 0, gBallStart)
PedMoveToPoint(gPlayer, 0, gMowerPoint, 1)
PedMoveToPoint(gPlayer, 0, Objectives[1].loc, 2)
PedMoveToPoint(gPlayer, 0, Objectives[3].loc, 2)
PedMoveToPoint(gPlayer, 0, Objectives[4].loc, 2)
PedMoveToPoint(gPlayer, 0, Objectives[5].loc, 2, nil, 0.5)
PedMoveToPoint(gPlayer, 0, POINTLIST._1_S01_PLAYERENDING)
PedMoveToPoint(gPlayer, 0, POINTLIST._2_06_KISSKISS)
PedMoveToPoint(gPlayer, 0, POINTLIST._3_R09_NISPLAYER, 2)
PedMoveToPoint(gPlayer, 0, POINTLIST._4_06_DOSSIER_D, 4)
PedMoveToPoint(gPlayer, 0, POINTLIST._4_06_DOSSIER_E, 4)
PedMoveToPoint(gPlayer, 0, POINTLIST._5_T1_PLAYERSTART)
PedMoveToPoint(gPlayer, 0, POINTLIST._BOXING_PLAYERCORNER)
PedMoveToPoint(gPlayer, 0, POINTLIST._C5T_PLYR, 2)
PedMoveToPoint(gPlayer, 0, POINTLIST._FINALFIGHTNIS, 3)
PedMoveToPoint(gPlayer, 1, Objectives[2].loc, 2)
PedMoveToPoint(gPlayer, 1, pedLola.spawn)
PedMoveToPoint(gPlayer, 1, POINTLIST._1_05B_BLIPBATHROOMSECONDFLOOR, 1, F_cbPlayerWaiting)
PedMoveToPoint(gPlayer, 1, POINTLIST._2_B_PLAYERNIS01, 2)
PedMoveToPoint(gPlayer, 1, POINTLIST._2_G2_CUTBEARSPAWNJIMMY, 1)
PedMoveToPoint(gPlayer, 1, POINTLIST._4_02_OBSERVATORY)
PedMoveToPoint(gPlayer, 1, POINTLIST._4_06_OPCEND_PLAYER)
PedMoveToPoint(gPlayer, 1, POINTLIST._5_07_PSTART, 3)
PedMoveToPoint(gPlayer, 1, POINTLIST._6_03_ENDNISMOVETO, 1)
PedMoveToPoint(gPlayer, 1, POINTLIST._DBALLCAM_RUNPOSITIONS, 1)
PedMoveToPoint(gPlayer, 1, POINTLIST._PLAYEREND, 2)
PedMoveToPoint(gPlayer, 1, POINTLIST._PLAYERSTART)
PedMoveToPoint(gPlayer, 1, POINTLIST._TEDFLEEPOINTS, 2)
PedMoveToPoint(gPlayer, 2, POINTLIST._3_02_PLAYERPARK, 3)
PedMoveToPoint(gPlayer, 2, POINTLIST._5_07_PLAYERMOVETOEND)
PedMoveToPoint(gPlayer, 2, POINTLIST._6_03_MOVETOPLAYER, 1)
PedMoveToPoint(gPlayer, 2, POINTLIST._HARRINGTONHOUSE, 6)
PedMoveToPoint(gPlayer, 2, POINTLIST._LIBPEDS, 6)
PedMoveToPoint(gPlayer, 2, POINTLIST._LIBPEDS, 9)
PedMoveToPoint(gPrefect, 2, POINTLIST._1_02_NISLOCATIONS, 5)
PedMoveToPoint(gPrefect2, 1, POINTLIST._6_03_ENDNIS, 7)
PedMoveToPoint(gPushers[1], 0, POINTLIST._1_01_FIGHTBULLIES, 2)
PedMoveToPoint(gPushers[1], 1, POINTLIST._1_02_NIS_BULLIESFLEE, 1)
PedMoveToPoint(gPushers[1], 2, POINTLIST._1_01_PLAYER_START, 1)
PedMoveToPoint(gPushers[2], 0, POINTLIST._1_01_FIGHTBULLIES, 3)
PedMoveToPoint(gPushers[2], 2, POINTLIST._1_01_PLAYER_START, 1)
PedMoveToPoint(gPushers[2], 2, POINTLIST._1_02_NIS_BULLIESFLEE, 2)
PedMoveToPoint(greaser1, 1, POINTLIST._3B_GREASERFLEETO)
PedMoveToPoint(greaser2, 1, POINTLIST._3B_GREASERFLEETO2)
PedMoveToPoint(gRudy, 0, tblMissionParams[CurrentMissionIndex][3], 1)
PedMoveToPoint(gRussell, 0, POINTLIST._6_03_ENDNISMOVETO, 4)
PedMoveToPoint(gRussell, 1, POINTLIST._6_03_ENDNISMOVETO, 2)
PedMoveToPoint(gRussell, 1, POINTLIST._6_03_MOVETOPLAYER, 2)
PedMoveToPoint(gRussell, 1, POINTLIST._HARRINGTONHOUSE, 7)
PedMoveToPoint(gRussell, 1, POINTLIST._LIBPEDS, 7)
PedMoveToPoint(gRussell, 1, POINTLIST._LIBPEDS, 8)
PedMoveToPoint(gRussell.id, 1, POINTLIST._2_05_RUSSELLWAITSPOT, 1)
PedMoveToPoint(gRussell.id, 2, POINTLIST._2_05_PATROL_B, 1)
PedMoveToPoint(gSidelines[2], 1, POINTLIST._DEFENSIVELINE02, 2)
PedMoveToPoint(gSidelines[3], 1, POINTLIST._DEFENSIVELINE02, 3)
PedMoveToPoint(gSidelines[5], 1, POINTLIST._DEFENSIVELINE03, 2)
PedMoveToPoint(gSidelines[6], 1, POINTLIST._DEFENSIVELINE03, 3)
PedMoveToPoint(gSpawned05, 0, POINTLIST._4_02_O_R1_2, 1, cbSpawner5, 0.2)
PedMoveToPoint(gSpawned06, 0, POINTLIST._4_02_O_R2_2, 1, cbSpawner6, 0.2)
PedMoveToPoint(gTed, 1, POINTLIST._TED02)
PedMoveToPoint(gTed, 1, POINTLIST._TED03)
PedMoveToPoint(gTed, 2, POINTLIST._TEDFLEEPOINTS, 2, CbTedFleeToPoint, 1)
PedMoveToPoint(gTed, 2, POINTLIST._TEDFLEEPOINTS, gTedFleePoint, CbTedFleeToPoint, 2)
PedMoveToPoint(gThad, 1, POINTLIST._4_02_PLAYERSTART, 1, nil, 0.3, false, true)
PedMoveToPoint(guy.id, 2, POINTLIST._3_B_GREASER_FLEE_POINT)
PedMoveToPoint(gZoe, 2, POINTLIST._C5T_ZOE, 2)
PedMoveToPoint(idBucky, 0, POINTLIST._1_07_BULLYENDDEST, 2)
PedMoveToPoint(idBucky, 0, POINTLIST._1_07_NIS_SK8PASS, 2)
PedMoveToPoint(idBurton, 1, POINTLIST._1_04_BURTONFIELD, 1, cbBurtonRun, 0.5)
PedMoveToPoint(idBurton, 2, POINTLIST._1_04_BURTONFIELD, 2, cbBurtonNextPatrol)
PedMoveToPoint(idConst.id, 1, POINTLIST._2_06_PETEYRUNSOFF, 1)
PedMoveToPoint(idDarby, 0, POINTLIST._2_B_DARBY_BOTTLE_THROW, 1)
PedMoveToPoint(idDarby, 0, POINTLIST._2_B_DARBY_BOTTLE_THROW, 2)
PedMoveToPoint(idEunice.id, 0, POINTLIST._2_06_KISSKISS)
PedMoveToPoint(idEunice.id, 1, POINTLIST._2_06_WAITERS, 1)
PedMoveToPoint(idGord.id, 0, POINTLIST._2_06_GORDSBIKE, 1, cbStopGordsBike, 2.5)
PedMoveToPoint(idGord.id, 1, POINTLIST._2_06_WAITERS, 1, cbBackAtLola, 0.3)
PedMoveToPoint(idLola.id, 1, POINTLIST._2_06_NISLOLA, 1)
PedMoveToPoint(idNemesis, 2, POINTLIST._1_04_NEMESISPARKING)
PedMoveToPoint(idNemesis, 2, POINTLIST._1_04_PLAYERFIELDPT)
PedMoveToPoint(idOmar, 2, POINTLIST._5_07_DROPOUT_10, 5)
PedMoveToPoint(idPed, 2, POINTLIST._3_R09_GOTO, 1, nil, 2)
PedMoveToPoint(idPetey.id, 1, POINTLIST._2_06_PETEYRUNSOFF, 1)
PedMoveToPoint(idPinky.id, 1, POINTLIST._2_06_PINKYWALKOFF, 1, cbNull, 0.3, true)
PedMoveToPoint(idZoe, 2, POINTLIST._5_07_ZSTART, 2)
PedMoveToPoint(item.elf, 1, POINTLIST._3_XM_MIDGETSTART, item.position)
PedMoveToPoint(kirby, 1, POINTLIST._3_R06_COVER2_1)
PedMoveToPoint(kirby, 1, POINTLIST._3_R06_COVER2_3)
PedMoveToPoint(kirby, 1, POINTLIST._3_R06_COVER2_5)
PedMoveToPoint(kirby, 1, POINTLIST._3_R06_COVER2_6)
PedMoveToPoint(kirby, 1, POINTLIST._3_R06_MT2_2)
PedMoveToPoint(kirby, 1, POINTLIST._3_R06_MT2_4)
PedMoveToPoint(kirby, 1, POINTLIST._3_R06_MT2_5)
PedMoveToPoint(LastRunner01, 1, POINTLIST._LAST_RUNNER_POINT)
PedMoveToPoint(LastRunner02, 1, POINTLIST._LAST_RUNNER_POINT)
PedMoveToPoint(lVictim[VictimCounter], 1, tblVictimInfo[VictimCounter].MOVETO, 1)
PedMoveToPoint(melvin, 1, POINTLIST._3_R06_COVER1_2)
PedMoveToPoint(melvin, 1, POINTLIST._3_R06_COVER1_4)
PedMoveToPoint(melvin, 1, POINTLIST._3_R06_COVER1_5)
PedMoveToPoint(melvin, 1, POINTLIST._3_R06_COVER1_6)
PedMoveToPoint(melvin, 1, POINTLIST._3_R06_MT1_2)
PedMoveToPoint(melvin, 1, POINTLIST._3_R06_MT1_4)
PedMoveToPoint(melvin, 1, POINTLIST._3_R06_MT1_5)
PedMoveToPoint(newParent, 0, POINTLIST._3_XM_LINEUP, lineupIndex, F_ReachedLineup, 1, false)
PedMoveToPoint(outroPedA, 0, POINTLIST._4_06_OPDENDPED, 4)
PedMoveToPoint(outroPedA, 1, POINTLIST._4_06_BALLGUARDS, 1)
PedMoveToPoint(outroPedA, 1, POINTLIST._4_06_JOCKSPAWN, 1)
PedMoveToPoint(outroPedA, 1, POINTLIST._4_06_MOVETOJOCK, 1)
PedMoveToPoint(outroPedA, 1, POINTLIST._4_06_OPEENDPED, 1)
PedMoveToPoint(outroPedA, 1, POINTLIST._4_06_OPEENDPED, 4)
PedMoveToPoint(outroPedB, 0, POINTLIST._4_06_OPAEND_PED, 4)
PedMoveToPoint(outroPedB, 1, POINTLIST._4_06_BALLGUARDS, 3)
PedMoveToPoint(outroPedB, 1, POINTLIST._4_06_OPEENDPED, 2)
PedMoveToPoint(outroPedB, 1, POINTLIST._4_06_OPEENDPED, 5)
PedMoveToPoint(outroPedC, 1, POINTLIST._4_06_OPEENDPED, 3)
PedMoveToPoint(outroPedC, 1, POINTLIST._4_06_OPEENDPED, 6)
PedMoveToPoint(ped, 3, POINTLIST._CHAPT1CHASE, 3)
PedMoveToPoint(pedAlgie.id, 0, POINTLIST._3_04_SPAWNPLAYER)
PedMoveToPoint(pedAlgie.id, 1, pedLola.spawn)
PedMoveToPoint(pedAlgie.id, 1, POINTLIST._1_05B_ALGIETETHER, 1, cbAlgieRanInFirstFloor, 2)
PedMoveToPoint(pedArtTeacher.id, 1, POINTLIST._2_S06B_ARTTEACHERYELL)
PedMoveToPoint(pedBryce, 1, POINTLIST._2_07_BRYCEMOVE, 1, cbBryceInPosition)
PedMoveToPoint(pedBurtonStage3.id, 1, POINTLIST._2_S06_BURTONLEAVE)
PedMoveToPoint(pedCornelius.id, 0, POINTLIST._3_04_SPAWNPLAYER)
PedMoveToPoint(pedCrabbleSnitch.id, 0, POINTLIST._3_S03_SPAWNGALLOWAY, 1)
PedMoveToPoint(pedCutDan.id, 1, POINTLIST._4_05CUT_DANMOVE)
PedMoveToPoint(pedCutKirby.id, 1, POINTLIST._4_05CUT_KIRBYMOVE)
PedMoveToPoint(pedEarnest.id, 0, POINTLIST._3_04_SPAWNPLAYER)
PedMoveToPoint(pedEarnest.id, 0, POINTLIST._4_01_EARNESTLEAVE, 1)
PedMoveToPoint(pedEarnest.id, 2, gun_points[index], 1, nil, 2)
PedMoveToPoint(pedGalloway.id, 0, POINTLIST._3_S03_SPAWNGALLOWAY, 1)
PedMoveToPoint(pedGary.id, 0, POINTLIST._1_02B_MOVEGARYRUSSELL1, 2)
PedMoveToPoint(pedGary.id, 1, POINTLIST._1_02B_GARYWAITBATHROOM)
PedMoveToPoint(pedGary.id, 1, POINTLIST._1_02B_OUTROGARYFLEE)
PedMoveToPoint(pedGary.id, 1, POINTLIST._1_11X2_GARYHANDBAG)
PedMoveToPoint(pedGary.id, 2, POINTLIST._1_02B_GARYEUNICE, 1, F_GaryArrivedAtEunice)
PedMoveToPoint(pedGary.id, 2, POINTLIST._1_02B_GARYFLEELOCKER)
PedMoveToPoint(pedGary.id, 2, POINTLIST._1_02B_GARYLOCKER, 1)
PedMoveToPoint(pedGary.id, 2, POINTLIST._1_02B_OBJCAFE)
PedMoveToPoint(pedHattrick.id, 0, POINTLIST._3_S03_SPAWNHATTRICKALLEY, 2)
PedMoveToPoint(pedHeadmistress, 0, POINTLIST._GDORM_HEADPEEK, lookElem)
PedMoveToPoint(pedHeadmistress.id, 1, POINTLIST._2_S06_STG3_PREFECT, 1)
PedMoveToPoint(pedID, 1, POINTLIST._1_04_PLAYERFIELDPT, 1)
PedMoveToPoint(pedID, 1, POINTLIST._2_S06B_POINTFLEE)
PedMoveToPoint(pedMascot.id, 1, POINTLIST._4_05_MASCOTPOI, 2, cbMascotReachedFleePoint)
PedMoveToPoint(pedMascot.id, 1, POINTLIST._4_05_MASCOTPOI, gMascotNextObjectiveElement, cbMascotReachedObjective)
PedMoveToPoint(pedParker, 1, POINTLIST._2_07_MOVEPARKER, 1, cbParkerInPosition)
PedMoveToPoint(pedPinky.id, 1, POINTLIST._2_G2_CUTBEARSPAWNJIMMY, 1)
PedMoveToPoint(pedPrep.id, 0, POINTLIST._3_S03_PREPHATTRICKMOVETO, 1)
PedMoveToPoint(pedPrep.id, 0, POINTLIST._3_S03_PREPMOVETO, 1)
PedMoveToPoint(pedRicky, 1, POINTLIST._2_07_GREASER_RUN)
PedMoveToPoint(pedStoreOwner.id, 0, POINTLIST._TBUSINES_COMICSHOPDOOR1, 1, nil, 0.1, true)
PedMoveToPoint(pedZoe.id, 1, POINTLIST._5_G5_CENTER, 1)
PedMoveToPoint(pedZoe.id, 2, POINTLIST._5_G5_ZOETOPLANTS, 1, cbZoeAtPlants, 3)
PedMoveToPoint(santa, 0, POINTLIST._3_XM_SANTASTART, 1, nil, 0.1)
PedMoveToPoint(santa, 1, POINTLIST._3_XM_SANTASTART)
PedMoveToPoint(santaKid, 0, POINTLIST._3_XM_SEESANTA, 1, nil, 0.1)
PedMoveToPoint(sheet1Bruiser, speed, POINTLIST._2_S04_SHEET1EXIT, 2, cbSheet1BruiserDoneClimb, 0.3, false, true)
PedMoveToPoint(sheet1Guard, speed, POINTLIST._2_S04_SHEET1EXIT, 1, cbSheet1GuardDoneClimb, 0.3, false, true)
PedMoveToPoint(tblCutscenePed.lola.id, 0, POINTLIST._3_G3_ECS_PLAYER)
PedMoveToPoint(tblFamilyList[i].kid, 0, POINTLIST._3_XM_KIDSTART, numInLineup, nil, 0.2, false)
PedMoveToPoint(tblFamilyList[i].parent, 0, POINTLIST._3_XM_PARENTSTART, parentPosition, nil, 0.5, false)
PedMoveToPoint(tblGordWH.id, 2, POINTLIST._3_02_PREPPIESINTRO, 1)
PedMoveToPoint(tblGreaser1WH.id, 1, POINTLIST._3_02_GREASERSINTRO, 3)
PedMoveToPoint(tblGreaser1WH.id, 1, POINTLIST._3_02_PLAYERPARK, 4)
PedMoveToPoint(tblGreaser2WH.id, 1, POINTLIST._3_02_GREASERSINTRO, 2)
PedMoveToPoint(tblGreaser2WH.id, 1, POINTLIST._3_02_PLAYERPARK, 4)
PedMoveToPoint(tblJohnnyWH.id, 1, POINTLIST._3_02_PLAYERPARK, 4)
PedMoveToPoint(tblLineupList[i], 0, POINTLIST._3_XM_KIDSTART, i, nil, 0.2, false)
PedMoveToPoint(tblPrep1WH.id, 2, POINTLIST._3_02_PREPPIESINTRO, 2)
PedMoveToPoint(tblPrep2WH.id, 2, POINTLIST._3_02_PREPPIESINTRO, 3)
PedMoveToPoint(tempPed, 1, POINTLIST._4_05_SPAWNJOCKS, 1, cbSpawnedJockArrived)
PedMoveToPoint(tEnemyID[i], 1, POINTLIST._TFIGHT01_C)
PedMoveToPoint(testPed[1].id, 2, testPed[1].destination1)
PedMoveToPoint(testPed[1].id, 2, testPed[1].destination2)
PedMoveToPoint(thad, 1, POINTLIST._3_R06_COVER1_2)
PedMoveToPoint(thad, 1, POINTLIST._3_R06_COVER1_4)
PedMoveToPoint(thad, 1, POINTLIST._3_R06_COVER1_5)
PedMoveToPoint(thad, 1, POINTLIST._3_R06_COVER1_6)
PedMoveToPoint(thad, 1, POINTLIST._3_R06_MT1_4)
PedMoveToPoint(thad, 1, POINTLIST._3_R06_MT1_5)
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov edi, dword ptr [esp+0x44]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
mov dword ptr [esp+0x1C], eax
jz 0x1A3
push 0x1
push 0x3
push edi
call LuaParam::GetInt ; optional
push 0x2
push edi
mov ebp, eax
call LuaParam::GetInt
movzx eax, ax
movzx eax, ax
add esp, 0x14
push eax
mov ecx, 0xBC5E7C
call 0x6D6450
mov ecx, eax
mov dword ptr [esp+0x18], eax
call 0x6D59B0
mov ebx, 0x1
cmp ebp, ebx
mov esi, eax
jle 0x18
mov ecx, dword ptr [esp+0x18]
call 0x6D59F0
test eax, eax
jz 0xB
add ebx, 0x1
cmp ebx, ebp
mov esi, eax
jl 0xFFFFFFEC
mov ecx, dword ptr [esi]
mov edx, dword ptr [esi+0x4]
mov eax, dword ptr [esi+0x8]
push 0xFFFFFFFF
push 0x1
push edi
mov dword ptr [esp+0x34], ecx
mov dword ptr [esp+0x38], edx
mov dword ptr [esp+0x3C], eax
call LuaParam::GetInt ; optional
add esp, 0xC
cmp eax, 0x4
jnbe 0x29
jmp dword ptr [eax*4+0x5C812C]
fld st, dword ptr [0x911E30]
jmp 0x20
fld st, dword ptr [0x90CEC8]
jmp 0x18
fld st, dword ptr [0x90FB9C]
jmp 0x10
fld st, dword ptr [0x9009AC]
jmp 0x8
fld st, dword ptr [0x900E00]
fstp dword ptr [esp+0x14], st
push 0x1
fld st, dword ptr [esp+0x34]
lea ecx, ptr [esp+0x17]
push ecx
sub esp, 0xC
fstp dword ptr [esp+0x8], st
mov byte ptr [esp+0x27], 0x0
fld st, dword ptr [esp+0x40]
fstp dword ptr [esp+0x4], st
fld st, dword ptr [esp+0x3C]
fstp dword ptr [esp], st
call 0x4635A0
add esp, 0x14
fstp dword ptr [esp+0x18], st
cmp byte ptr [esp+0x13], 0x0
jnz 0xA
fld st, dword ptr [esp+0x30]
fstp dword ptr [esp+0x18], st
fld st, dword ptr [esp+0x28]
push ecx
fstp dword ptr [esp+0x38], st
fld st, dword ptr [esp+0x30]
fstp dword ptr [esp+0x3C], st
fld st, dword ptr [esp+0x1C]
fstp dword ptr [esp+0x40], st
fld st, dword ptr [0x911E30]
fstp dword ptr [esp], st
push 0x5
push edi
call LuaParam::GetFloat ; optional
fstp dword ptr [esp+0x30], st
push 0x0
push 0x6
push edi
call LuaParam::GetBool ; optional
push 0x0
push 0x7
push edi
mov byte ptr [esp+0x44], al
call LuaParam::GetBool ; optional
push 0x34
mov byte ptr [esp+0x40], al
call 0x5EEAA0
add esp, 0x28
test eax, eax
jz 0x33
mov edx, dword ptr [esp+0x18]
fld st, dword ptr [esp+0x24]
mov ecx, dword ptr [esp+0x20]
push edx
push ecx
mov ecx, dword ptr [esp+0x24]
sub esp, 0x8
fstp dword ptr [esp+0x4], st
lea edx, ptr [esp+0x44]
fld st, dword ptr [esp+0x24]
fstp dword ptr [esp], st
push edx
push ecx
mov ecx, eax
call 0x4705B0
mov esi, eax
jmp 0x4
xor esi, esi
mov ecx, dword ptr [esp+0x1C]
fld st, dword ptr [esp+0x14]
push esi
fstp dword ptr [esi+0x10], st
add ecx, 0x5F0
call 0x471390
add esi, 0x1C
push esi
push 0x4
push edi
call 0x5DA060
add esp, 0xC
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x30
ret
PedMoveToXYZ(a, 1, -614.011, -63.813, 59.6573)
PedMoveToXYZ(Crazy01, 1, runoffx, runoffy, runoffz)
PedMoveToXYZ(Crazy02, 1, runoffx, runoffy, runoffz)
PedMoveToXYZ(edgar, 2, -768.036, 64.8435, 6.19969)
PedMoveToXYZ(fCasey, 1, -622.704, -46.1418)
PedMoveToXYZ(gHobo, 0, 166.04, 18.9094, 6.29449)
PedMoveToXYZ(girlfriend, 0, x, y)
PedMoveToXYZ(gJohnny, 2, -61.9635, -315.673, 4.2595)
PedMoveToXYZ(gJV_OnBike, 1, X, Y, Z)
PedMoveToXYZ(gNerds[1].id, 2, x, y, z)
PedMoveToXYZ(gNerds[2].id, 2, x, y, z)
PedMoveToXYZ(gPlayer, 1, x, y, z)
PedMoveToXYZ(gPlayer, 2, x1 + 5, y1 + 5, z1)
PedMoveToXYZ(idCop, 0, 187.943, -450.61)
PedMoveToXYZ(idDarby, 1, x, y, z, 0.1)
PedMoveToXYZ(idDarby, 2, x, y, z)
PedMoveToXYZ(idPreppy, 1, -730.5, 385.3, 298.06, 5)
PedMoveToXYZ(idZoe, 1, 65.1421, -549.671)
PedMoveToXYZ(iGreaser01, 2, x, y)
PedMoveToXYZ(iGreaser02, 2, x, y)
PedMoveToXYZ(iGreaser03, 2, x, y)
PedMoveToXYZ(insultBoy, 1, -661.74115, -295.48602, -0.0036995336)
PedMoveToXYZ(janitor.id, 0, x, y)
PedMoveToXYZ(johnny, 0, 501.12103, -196.32683, 2.87158)
PedMoveToXYZ(manager, 1, x, y)
PedMoveToXYZ(ped.id, 0, s2x, s2y, s2z, 1)
PedMoveToXYZ(ped.id, 0, s3x, s3y, s3z, 1)
PedMoveToXYZ(ped.id, 0, s5x, s5y, s5z, 1)
PedMoveToXYZ(ped.id, 0, s6x, s6y, s6z, 1)
PedMoveToXYZ(ped.id, 1, ped.x, ped.y)
PedMoveToXYZ(pete, 0, 187.708, -159.923, 8.944, 1, true)
PedMoveToXYZ(phillips, 0, 166.04, 18.9094, 6.294)
PedMoveToXYZ(ScenarioPed, 0, x, y, z)
PedMoveToXYZ(ScenarioPed, 1, dx, dy)
PedMoveToXYZ(ScenarioPed, 1, dx, dy, 6, 0.3, true)
PedMoveToXYZ(ScenarioPed, 1, libX, libY)
PedMoveToXYZ(ScenarioPed, 1, runX, runY)
PedMoveToXYZ(shared.gEdnaID, 0, -629.4033, -264.99234, -0.661088)
PedMoveToXYZ(tblRaceInfo.race.countdown_ped.id, 0, 337.07733, 274.9468, 7.312996)
PedMoveToXYZ(teacher, 1, x, y)
PedMoveToXYZ(testPed, 0, x, y)
sub esp, 0x1C
push esi
mov esi, dword ptr [esp+0x24]
push edi
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov edi, eax
add esp, 0x8
test edi, edi
jz 0x123
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x10], st
push 0x3
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x1C], st
fld st, dword ptr [0x900E00]
add esp, 0xC
fstp dword ptr [esp], st
push 0x1
push esi
call 0x5C62E0
fstp dword ptr [esp+0x20], st
push esi
call LuaParam::GetParamCount
add esp, 0x10
cmp eax, 0x4
jle 0x1E
push 0x4
push esi
call LuaParam::IsInt
add esp, 0x8
test al, al
jz 0xF
push 0x4
push esi
call LuaParam::GetFloat
add esp, 0x8
jmp 0x1E
fld st, dword ptr [esp+0xC]
push 0x1
sub esp, 0x8
fstp dword ptr [esp+0x4], st
fld st, dword ptr [esp+0x14]
fstp dword ptr [esp], st
call 0x4634A0
add esp, 0xC
fstp dword ptr [esp+0x10], st
push ecx
fld st, dword ptr [esp+0xC]
fstp dword ptr [esp+0x1C], st
fld st, dword ptr [esp+0x10]
fstp dword ptr [esp+0x20], st
fld st, dword ptr [esp+0x14]
fstp dword ptr [esp+0x24], st
fld st, dword ptr [0x911E30]
fstp dword ptr [esp], st
push 0x5
push esi
call LuaParam::GetFloat ; optional
fstp dword ptr [esp+0x14], st
push 0x0
push 0x6
push esi
call LuaParam::GetBool ; optional
push 0x0
push 0x7
push esi
mov byte ptr [esp+0x30], al
call LuaParam::GetBool ; optional
push 0x34
mov byte ptr [esp+0x38], al
call 0x5EEAA0
add esp, 0x28
test eax, eax
jz 0x3F
mov ecx, dword ptr [esp+0x10]
fld st, dword ptr [esp+0x8]
mov edx, dword ptr [esp+0xC]
push ecx
push edx
sub esp, 0x8
fstp dword ptr [esp+0x4], st
lea ecx, ptr [esp+0x28]
fld st, dword ptr [esp+0x24]
fstp dword ptr [esp], st
push ecx
push edi
mov ecx, eax
call 0x4705B0
push eax
lea ecx, ptr [edi+0x5F0]
call 0x471390
xor eax, eax
pop edi
pop esi
add esp, 0x1C
ret
xor eax, eax
push eax
lea ecx, ptr [edi+0x5F0]
call 0x471390
pop edi
xor eax, eax
pop esi
add esp, 0x1C
ret
PedOnBikePathSmoothing(racer.id, race.path_smoothing)
push esi
mov esi, dword ptr [esp+0x8]
push edi
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
push 0x1
push esi
mov edi, eax
call LuaParam::GetFloat
fstp dword ptr [edi+0x524], st
add esp, 0x10
pop edi
xor eax, eax
pop esi
ret
-- never used
sub esp, 0x200
push esi
push 0xFD
lea eax, ptr [esp+0xA]
push 0x0
push eax
mov word ptr [esp+0x10], 0x0
call 0x85B3B0
push 0xFD
lea ecx, ptr [esp+0x116]
push 0x0
push ecx
mov word ptr [esp+0x11C], 0x0
call 0x85B3B0
mov esi, dword ptr [esp+0x220]
push 0x0
push esi
call LuaParam::GetString
add esp, 0x20
cmp byte ptr [eax], 0x0
jz 0x1F
push 0x0
push esi
call LuaParam::GetString
add esp, 0x8
lea edx, ptr [esp+0x4]
mov cl, byte ptr [eax]
mov byte ptr [edx], cl
add eax, 0x1
add edx, 0x1
test cl, cl
jnz 0xFFFFFFF4
push 0x1
push esi
call LuaParam::GetString
add esp, 0x8
cmp byte ptr [eax], 0x0
jz 0x22
push 0x1
push esi
call LuaParam::GetString
add esp, 0x8
lea edx, ptr [esp+0x104]
mov cl, byte ptr [eax]
mov byte ptr [edx], cl
add eax, 0x1
add edx, 0x1
test cl, cl
jnz 0xFFFFFFF4
lea edx, ptr [esp+0x4]
push 0x0
push edx
call 0x5F5B10
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x36
push edi
mov edi, dword ptr [esi]
add edi, 0x4
call 0x5C6190
mov ecx, esi
push eax
mov eax, dword ptr [edi]
call 0x5C6B48
test al, al
pop edi
jz 0x1F
mov ecx, esi
call 0x5F6670
lea ecx, ptr [esp+0x104]
push ecx
mov ecx, esi
call 0x5F56B0
mov ecx, esi
call 0x5F6CE0
xor eax, eax
pop esi
add esp, 0x200
ret
PedOverrideSocialResponseToStimulus(beatrice, 28, 4)
PedOverrideSocialResponseToStimulus(charID, 10, 18)
PedOverrideSocialResponseToStimulus(clint, 28, 4)
PedOverrideSocialResponseToStimulus(gControlOrderly, 10, 18)
PedOverrideSocialResponseToStimulus(gFatty, 10, 18)
PedOverrideSocialResponseToStimulus(gFatty, 55, 7)
PedOverrideSocialResponseToStimulus(gFatty, 9, 7)
PedOverrideSocialResponseToStimulus(Greaser1, 9, 10)
PedOverrideSocialResponseToStimulus(gThad, 10, 18)
PedOverrideSocialResponseToStimulus(gThad, 55, 7)
PedOverrideSocialResponseToStimulus(gThad, 9, 7)
PedOverrideSocialResponseToStimulus(idTeacher, 10, 24)
PedOverrideSocialResponseToStimulus(idZoe, 28, 4)
PedOverrideSocialResponseToStimulus(pedConstantine.id, 10, 18)
PedOverrideSocialResponseToStimulus(pedID, 10, 0)
PedOverrideSocialResponseToStimulus(pedID, 10, 18)
PedOverrideSocialResponseToStimulus(pedRussell.id, 0, 10)
PedOverrideSocialResponseToStimulus(pedRussell.id, 28, 10)
PedOverrideSocialResponseToStimulus(pedRussell.id, 32, 10)
push ebx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov edx, eax
neg edx
sbb edx, edx
mov ecx, esp
add edx, 0x3
push eax
mov dword ptr [ecx], edx
call 0x5C7380
push 0x1
push esi
mov edi, eax
call LuaParam::GetInt
push 0x2
push esi
mov ebx, eax
call LuaParam::GetInt
add esp, 0x18
mov byte ptr [eax+edi*1+0xC9A], bl
pop edi
pop esi
xor eax, eax
pop ebx
ret
L_PedExec(enemyteamGroup, PedOverrideStat, "id", 1, 0)
L_PedExec(enemyteamGroup, PedOverrideStat, "id", 11, 60)
L_PedExec(enemyteamGroup, PedOverrideStat, "id", 3, 50)
L_PedExec(myteamGroup, PedOverrideStat, "id", 1, 0)
L_PedExec(myteamGroup, PedOverrideStat, "id", 11, 70)
L_PedExec(myteamGroup, PedOverrideStat, "id", 3, 50)
L_PedExec(nil, PedOverrideStat, "id", 2, 359)
L_PedExec(nil, PedOverrideStat, "id", 3, 60)
L_PedExec(nil, PedOverrideStat, "id", 38, 0)
L_PedExec(nil, PedOverrideStat, "id", 39, 0)
L_PedExec(nil, PedOverrideStat, "id", 4, 400)
L_PedExec(nil, PedOverrideStat, "id", 5, 100)
L_PedExec(p_wave1, PedOverrideStat, "id", 3, 80)
L_PedExec(p_wave2, PedOverrideStat, "id", 3, 80)
PedOverrideStat(boxer, 62, 0)
PedOverrideStat(char, 14, 80)
PedOverrideStat(damon, 10, 100)
PedOverrideStat(damon, 10, 75)
PedOverrideStat(damon, 31, 200)
PedOverrideStat(damon, 31, 400)
PedOverrideStat(dan, 10, 100)
PedOverrideStat(dan, 10, 75)
PedOverrideStat(dan, 31, 200)
PedOverrideStat(dan, 31, 400)
PedOverrideStat(dId[i], 0, 362)
PedOverrideStat(dId[i], 1, 100)
PedOverrideStat(dId[i], 3, 20)
PedOverrideStat(Dog.id, 14, 100)
PedOverrideStat(Dog.id, 6, 0)
PedOverrideStat(Dog.id, 7, 0)
PedOverrideStat(edgar, 13, 70)
PedOverrideStat(edgar, 13, 90)
PedOverrideStat(edgar, 34, 0)
PedOverrideStat(edgar, 8, 85)
PedOverrideStat(egger.id, 10, 10)
PedOverrideStat(egger.id, 11, 90)
PedOverrideStat(egger.id, 13, 0)
PedOverrideStat(egger.id, 2, 359)
PedOverrideStat(egger.id, 3, 1000)
PedOverrideStat(egger.id, 31, 10)
PedOverrideStat(egger.id, 34, 0)
PedOverrideStat(egger.id, 8, 20)
PedOverrideStat(EnemyTable[index].handle, 3, 10)
PedOverrideStat(EnemyTable[index].handle, 34, 0)
PedOverrideStat(entry, 0, 362)
PedOverrideStat(entry, 1, 50)
PedOverrideStat(entry.id, 10, 10)
PedOverrideStat(entry.id, 11, 90)
PedOverrideStat(entry.id, 13, 0)
PedOverrideStat(entry.id, 2, 100)
PedOverrideStat(entry.id, 3, 100)
PedOverrideStat(entry.id, 31, 10)
PedOverrideStat(entry.id, 34, entry.dodge_freq)
PedOverrideStat(entry.id, 8, 10)
PedOverrideStat(fatty, 0, 478)
PedOverrideStat(fatty, 1, 0)
PedOverrideStat(fatty, 1, 100)
PedOverrideStat(fatty, 6, 0)
PedOverrideStat(frMidget01, 1, 0)
PedOverrideStat(frMidget02, 1, 0)
PedOverrideStat(gAngryJock01, 10, 100)
PedOverrideStat(gBlockAOrderly01, 2, 70)
PedOverrideStat(gBlockAOrderly01, 3, VISIONRANGE_MED)
PedOverrideStat(gBlockAOrderly02, 2, 70)
PedOverrideStat(gBlockAOrderly02, 3, VISIONRANGE_MED)
PedOverrideStat(gBlockBOrderly01, 2, 70)
PedOverrideStat(gBlockBOrderly01, 3, VISIONRANGE_MED)
PedOverrideStat(gBlockBOrderly02, 2, 70)
PedOverrideStat(gBlockBOrderly02, 3, VISIONRANGE_MED)
PedOverrideStat(gCannonNerd, 3, 80)
PedOverrideStat(gControlOrderly, 2, 70)
PedOverrideStat(gControlOrderly, 3, VISIONRANGE_MIN)
PedOverrideStat(gCop1, 3, 15)
PedOverrideStat(gCop2, 3, 15)
PedOverrideStat(gCop3, 3, 15)
PedOverrideStat(gCop4, 3, 15)
PedOverrideStat(gCop5, 3, 15)
PedOverrideStat(gCorn, 14, 10)
PedOverrideStat(gCorn, 6, 100)
PedOverrideStat(gCorn, 7, 100)
PedOverrideStat(gDavis, 1, 0)
PedOverrideStat(gDavis, 10, 90)
PedOverrideStat(gDavis, 11, 70)
PedOverrideStat(gDOThug02, 0, 362)
PedOverrideStat(gDOThug02, 1, 100)
PedOverrideStat(gDOThug03, 0, 362)
PedOverrideStat(gDOThug03, 1, 100)
PedOverrideStat(gEdnaGuard, 2, 70)
PedOverrideStat(gEdnaGuard, 3, 12)
PedOverrideStat(gEnemies[index].id, 0, 362)
PedOverrideStat(gEnemies[index].id, 1, 100)
PedOverrideStat(gEnemies[index].id, 14, 100)
PedOverrideStat(gEnemies[index].id, 15, 100)
PedOverrideStat(gEnemy02, 0, 362)
PedOverrideStat(gEnemy02, 1, 100)
PedOverrideStat(gFatty, 0, 362)
PedOverrideStat(gFatty, 1, 100)
PedOverrideStat(gFenwick, 0, 362)
PedOverrideStat(gFenwick, 1, 100)
PedOverrideStat(gFrontDeskOrderly, 2, 70)
PedOverrideStat(gFrontDeskOrderly, 3, 8)
PedOverrideStat(gFrontOrderly, 2, 70)
PedOverrideStat(gFrontOrderly, 3, VISIONRANGE_MED)
PedOverrideStat(gGary, 10, 50)
PedOverrideStat(gGary, 34, 0)
PedOverrideStat(gHattrick, 14, 100)
PedOverrideStat(gHattrick, 3, 35)
PedOverrideStat(gHattrick, 3, 40)
PedOverrideStat(gHattrick, 33, 150)
PedOverrideStat(gHobo, 38, 100)
PedOverrideStat(gHobo, 39, 100)
PedOverrideStat(gJV_OnBike, 24, 50)
PedOverrideStat(gJV_OnBike, 33, 100)
PedOverrideStat(gJV_OnBike, 34, 0)
PedOverrideStat(gKeyMaster, 13, 6)
PedOverrideStat(gKeyMaster, 34, 15)
PedOverrideStat(gKeyMaster, 6, 70)
PedOverrideStat(gKeyMaster, 7, 60)
PedOverrideStat(gKeyMaster, 8, 90)
PedOverrideStat(gord, 3, 10)
PedOverrideStat(gPeter, 2, 1)
PedOverrideStat(gPeter, 3, 1)
PedOverrideStat(gRussell, 39, 80)
PedOverrideStat(gRussell, 6, 0)
PedOverrideStat(gRussell.id, 24, 60)
PedOverrideStat(gRussell.id, 26, 55)
PedOverrideStat(gRussell.id, 27, 10)
PedOverrideStat(gRussell.id, 28, 1.0E-4)
PedOverrideStat(gRussell.id, 29, 20)
PedOverrideStat(gRussell.id, 35, 63)
PedOverrideStat(gRussell.id, 37, 100)
PedOverrideStat(gSleepingOrderly, 2, 70)
PedOverrideStat(gSleepingOrderly, 3, 0)
PedOverrideStat(gSleepingOrderly, 3, VISIONRANGE_MED)
PedOverrideStat(gStationOrderly, 2, 70)
PedOverrideStat(gStationOrderly, 3, VISIONRANGE_MIN)
PedOverrideStat(gTed, 11, 100)
PedOverrideStat(gTed, 34, 0)
PedOverrideStat(gThad, 14, 10)
PedOverrideStat(gThad, 14, 100)
PedOverrideStat(gThad, 6, 0)
PedOverrideStat(gThad, 6, 100)
PedOverrideStat(gThad, 7, 0)
PedOverrideStat(gThad, 7, 100)
PedOverrideStat(gThad, 8, 80)
PedOverrideStat(guard, 3, 25)
PedOverrideStat(idBucky, 10, 50)
PedOverrideStat(idBucky, 11, 25)
PedOverrideStat(idBucky, 11, 85)
PedOverrideStat(idBucky, 14, 25)
PedOverrideStat(idBucky, 14, 35)
PedOverrideStat(idBucky, 3, 30)
PedOverrideStat(idBucky, 6, 10)
PedOverrideStat(idBucky, 6, 65)
PedOverrideStat(idBucky, 7, 100)
PedOverrideStat(idBucky, 7, 65)
PedOverrideStat(idBucky, 8, 15)
PedOverrideStat(idBucky, 8, 25)
PedOverrideStat(idBurton, 3, 20)
PedOverrideStat(idDarby, 38, 50)
PedOverrideStat(idDarby, 39, 50)
PedOverrideStat(idDO, stat.name, stat.value)
PedOverrideStat(idEunice.id, 6, 0)
PedOverrideStat(idEunice.id, 7, 0)
PedOverrideStat(idNemesis, 6, 0)
PedOverrideStat(idPed, 0, 362)
PedOverrideStat(idPed, 1, 100)
PedOverrideStat(idPed, 10, 75)
PedOverrideStat(idPed, 11, 100)
PedOverrideStat(idPed, 11, 85)
PedOverrideStat(idPed, 14, 100)
PedOverrideStat(idPed, 2, 360)
PedOverrideStat(idPed, 3, 100)
PedOverrideStat(idPed, 3, 50)
PedOverrideStat(idPed, 6, 0)
PedOverrideStat(idPed, 6, 100)
PedOverrideStat(idPed, 7, 0)
PedOverrideStat(idPed, 7, 100)
PedOverrideStat(idPed, 8, 25)
PedOverrideStat(idRussell, 24, 75)
PedOverrideStat(idRussell, 25, 125)
PedOverrideStat(idRussell, 26, 10)
PedOverrideStat(idRussell, 27, 10)
PedOverrideStat(idRussell, 29, 60)
PedOverrideStat(idRussell, 9, 75)
PedOverrideStat(kirby, 10, 100)
PedOverrideStat(kirby, 10, 75)
PedOverrideStat(kirby, 31, 150)
PedOverrideStat(kirby, 31, 400)
PedOverrideStat(lola, 3, 10)
PedOverrideStat(Mascot, 3, 2)
PedOverrideStat(Mascot, 34, 0)
PedOverrideStat(melvin, 10, 100)
PedOverrideStat(melvin, 10, 75)
PedOverrideStat(melvin, 31, 200)
PedOverrideStat(melvin, 31, 400)
PedOverrideStat(nemesis, 6, 0)
PedOverrideStat(nerd.id, 0, 362)
PedOverrideStat(nerd.id, 1, 100)
PedOverrideStat(nerd.id, 3, 80)
PedOverrideStat(opponent, 38, 0)
PedOverrideStat(opponent, 39, 0)
PedOverrideStat(outroPedA, 10, 100)
PedOverrideStat(p1_2, 0, 362)
PedOverrideStat(p1_2, 1, 100)
PedOverrideStat(p1_5, 0, 362)
PedOverrideStat(p1_5, 1, 100)
PedOverrideStat(p2_3, 0, 362)
PedOverrideStat(p2_3, 1, 100)
PedOverrideStat(p2_5, 0, 362)
PedOverrideStat(p2_5, 1, 100)
PedOverrideStat(p4_2, 0, 362)
PedOverrideStat(p4_2, 1, 100)
PedOverrideStat(Ped, 10, 5)
PedOverrideStat(ped, 11, 100)
PedOverrideStat(ped, 14, 10)
PedOverrideStat(ped, 2, 70)
PedOverrideStat(ped, 3, 300)
PedOverrideStat(ped, 3, 8)
PedOverrideStat(ped, 34, 0)
PedOverrideStat(ped, 6, 100)
PedOverrideStat(ped, 6, 80)
PedOverrideStat(ped, 7, 100)
PedOverrideStat(ped, stats.name, stats.value)
PedOverrideStat(ped.id, 3, VISIONRANGE_MED)
PedOverrideStat(ped.id, pair.name, pair.value)
PedOverrideStat(ped1, 10, 100)
PedOverrideStat(ped2, 10, 100)
PedOverrideStat(pedAlgie.id, 12, 30)
PedOverrideStat(pedAlgie.id, 24, 80)
PedOverrideStat(pedAlgie.id, 6, 0)
PedOverrideStat(pedAlgie.id, 6, 75)
PedOverrideStat(pedBulliesLeft01.id, 0, 362)
PedOverrideStat(pedBulliesLeft01.id, 1, 100)
PedOverrideStat(pedBulliesRight01.id, 0, 362)
PedOverrideStat(pedBulliesRight01.id, 1, 100)
PedOverrideStat(pedChad.id, 24, 40)
PedOverrideStat(pedChad.id, 24, gChadsBikeSpeed)
PedOverrideStat(pedCornelius.id, 12, 30)
PedOverrideStat(pedCutBucky.id, 10, 100)
PedOverrideStat(pedCutBucky.id, 11, 85)
PedOverrideStat(pedCutBucky.id, 3, 25)
PedOverrideStat(pedCutCornelius.id, 10, 100)
PedOverrideStat(pedCutCornelius.id, 11, 85)
PedOverrideStat(pedCutCornelius.id, 3, 25)
PedOverrideStat(pedCutThad.id, 10, 100)
PedOverrideStat(pedCutThad.id, 11, 85)
PedOverrideStat(pedCutThad.id, 3, 25)
PedOverrideStat(pedEarnest.id, 3, 0)
PedOverrideStat(pedEarnest.id, 3, 12)
PedOverrideStat(pedEunice.id, 6, 0)
PedOverrideStat(pedGord, 31, 60)
PedOverrideStat(pedGreaser05.id, 14, 100)
PedOverrideStat(pedGreaser05.id, 15, 100)
PedOverrideStat(pedGreaser06.id, 14, 100)
PedOverrideStat(pedGreaser06.id, 15, 100)
PedOverrideStat(pedGreaserA01.id, 3, 10)
PedOverrideStat(pedGreaserA01.id, 3, 50)
PedOverrideStat(pedGreaserA02.id, 3, 10)
PedOverrideStat(pedGreaserA02.id, 3, 50)
PedOverrideStat(pedGreaserA03.id, 3, 10)
PedOverrideStat(pedGreaserA03.id, 3, 50)
PedOverrideStat(pedId, 0, pickupModel)
PedOverrideStat(pedId, 1, percent)
PedOverrideStat(pedID, 10, 5)
PedOverrideStat(pedID, 14, 10)
PedOverrideStat(pedID, 24, 100)
PedOverrideStat(pedID, 28, 30)
PedOverrideStat(pedID, 30, 80)
PedOverrideStat(pedID, 33, 75)
PedOverrideStat(pedID, 34, 0)
PedOverrideStat(pedID, 36, gChadsBikeSpeed - 10)
PedOverrideStat(pedID, 37, gChadsBikeSpeed + 10)
PedOverrideStat(pedId, 6, 0)
PedOverrideStat(pedID, 6, 100)
PedOverrideStat(pedId, 7, 0)
PedOverrideStat(pedID, 7, 100)
PedOverrideStat(pedID, 9, 0)
PedOverrideStat(pedID, 9, 100)
PedOverrideStat(pedJockBathroomFirstFloor02.id, 0, 362)
PedOverrideStat(pedJockBathroomFirstFloor02.id, 1, 100)
PedOverrideStat(pedJockBathroomSecondFloor01.id, 0, 362)
PedOverrideStat(pedJockBathroomSecondFloor01.id, 1, 100)
PedOverrideStat(pedKlepto.id, 10, 50)
PedOverrideStat(pedKlepto.id, 24, 30)
PedOverrideStat(pedKlepto.id, 26, 35)
PedOverrideStat(pedKlepto.id, 27, 10)
PedOverrideStat(pedKlepto.id, 28, 1.0E-4)
PedOverrideStat(pedKlepto.id, 29, 20)
PedOverrideStat(pedKlepto.id, 30, 50)
PedOverrideStat(pedKlepto.id, 35, 33)
PedOverrideStat(pedKlepto.id, 37, 100)
PedOverrideStat(pedKlepto.id, 9, 75)
PedOverrideStat(pedMascot.id, 38, 100)
PedOverrideStat(pedMascot.id, 6, 0)
PedOverrideStat(pedTad.id, 14, 90)
PedOverrideStat(pedTad.id, 2, 360)
PedOverrideStat(pedTad.id, 3, 50)
PedOverrideStat(pedTad.id, 6, 0)
PedOverrideStat(pedZoe.id, 15, 0)
PedOverrideStat(pedZoe.id, 15, 100)
PedOverrideStat(pedZoe.id, 2, 360)
PedOverrideStat(pedZoe.id, 3, 100)
PedOverrideStat(rider, 24, 70)
PedOverrideStat(russell, 13, 10)
PedOverrideStat(ScenarioPed, 6, 0)
PedOverrideStat(ScenarioPed, 63, 0)
PedOverrideStat(ScenarioPed, 8, 100)
PedOverrideStat(scout4, 0, 362)
PedOverrideStat(scout4, 1, 100)
PedOverrideStat(shared.gdormHeadID, 3, 12)
PedOverrideStat(shared.gPetey, 6, 75)
PedOverrideStat(spud_nerd, 3, 80)
PedOverrideStat(tableEntry.id, 2, 100)
PedOverrideStat(tableEntry.id, 3, 15)
PedOverrideStat(tbl.id, stat.name, stat.value)
PedOverrideStat(tblGord.id, pair.name, 100)
PedOverrideStat(tblGreaser.id, 14, 90)
PedOverrideStat(tblGreaser.id, 3, 35)
PedOverrideStat(tblPeanut.id, 25, 70)
PedOverrideStat(tblPeanut.id, 33, 40)
PedOverrideStat(tblPeanut.id, 36, 70)
PedOverrideStat(tblPeanut.id2, 25, 70)
PedOverrideStat(tblPeanut.id2, 33, 40)
PedOverrideStat(tblPeanut.id2, 36, 70)
PedOverrideStat(tblPrep1.id, pair.name, 100)
PedOverrideStat(TestPed, 10, 100)
PedOverrideStat(tFirstFloorTable.parker.id, 0, 362)
PedOverrideStat(tFirstFloorTable.parker.id, 1, 100)
PedOverrideStat(thad, 10, 100)
PedOverrideStat(thad, 10, 75)
PedOverrideStat(thad, 31, 200)
PedOverrideStat(thad, 31, 400)
PedOverrideStat(Thug, 14, 100)
PedOverrideStat(Thug, 14, 75)
PedOverrideStat(Thug, 15, 100)
PedOverrideStat(tPed, 2, 60)
PedOverrideStat(tPed, 3, 13)
PedOverrideStat(tSecondFloorTable.tad.id, 0, 362)
PedOverrideStat(tSecondFloorTable.tad.id, 1, 100)
PedOverrideStat(tThirdFloorTable.chad.id, 0, 362)
PedOverrideStat(tThirdFloorTable.chad.id, 1, 100)
push ebx
push esi
push edi
mov edi, dword ptr [esp+0x10]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x20
push 0x1
push edi
call LuaParam::GetInt
push 0x2
push edi
mov ebx, eax
call LuaParam::GetInt
add esp, 0x10
push eax
push ebx
mov ecx, esi
call 0x4770F0
pop edi
pop esi
xor eax, eax
pop ebx
ret
PedPassBall(gAngryJock01, gPlayer, 3000)
PedPassBall(gSidelines[currentPasser.id], gTed, 4000)
PedPassBall(gSidelines[gPasserA.id], gTed, 4000)
PedPassBall(outroPedA, outroPedB, 8000)
push ebx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov ebx, eax
add esp, 0x8
test ebx, ebx
jz 0x66
push 0x1
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov edi, eax
add esp, 0x8
test edi, edi
jz 0x44
push 0x2
push esi
call LuaParam::GetInt
push 0x18
mov esi, eax
call 0x5EEAA0
add esp, 0xC
test eax, eax
jz 0x1E
push esi
push edi
push ebx
mov ecx, eax
call 0x471990
push eax
lea ecx, ptr [ebx+0x5F0]
call 0x471390
xor eax, eax
pop edi
pop esi
pop ebx
ret
xor eax, eax
push eax
lea ecx, ptr [ebx+0x5F0]
call 0x471390
pop edi
pop esi
xor eax, eax
pop ebx
ret
PedPathNodeReachedDistance(gJV_OnBike, 2.5)
PedPathNodeReachedDistance(gPlayer, 0.5)
PedPathNodeReachedDistance(idRussell, 2.5)
PedPathNodeReachedDistance(pedAlgie.id, 0)
PedPathNodeReachedDistance(pedAlgie.id, 0.5)
PedPathNodeReachedDistance(pedBeatrice.id, 0.5)
PedPathNodeReachedDistance(pedChad.id, 2)
PedPathNodeReachedDistance(pedGreaserC01.id, 3)
PedPathNodeReachedDistance(pedGreaserC02.id, 3)
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
push 0x1
push edi
mov esi, eax
call LuaParam::GetFloat
fstp dword ptr [esi+0x51C], st
add esp, 0x10
pop edi
mov byte ptr [esi+0x520], 0x1
xor eax, eax
pop esi
ret
PedPickup(nemesis, key_id)
PedPickup(ped, pickup)
push ebx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
push 0x1
push esi
mov edi, eax
call LuaParam::GetInt
add esp, 0x10
test edi, edi
mov ebx, eax
jz 0x4C
push 0x14
call 0x5EEAA0
mov esi, eax
add esp, 0x4
test esi, esi
jz 0x2E
push edi
push ecx
mov eax, esp
mov ecx, esi
mov dword ptr [eax], 0x17
call 0x46FA90
push esi
lea ecx, ptr [edi+0x5F0]
mov dword ptr [esi], 0x911DC4
mov dword ptr [esi+0x10], ebx
call 0x471390
xor eax, eax
pop edi
pop esi
pop ebx
ret
xor esi, esi
push esi
lea ecx, ptr [edi+0x5F0]
call 0x471390
pop edi
pop esi
xor eax, eax
pop ebx
ret
PedPlayCatch(gEnemies[index - 1].id, gEnemies[index].id, 58000)
PedPlayCatch(gEnemies[index].id, gEnemies[index - 1].id, 58000)
PedPlayCatch(gEnemy01, gEnemy03, 10000)
PedPlayCatch(gEnemy03, gEnemy01, 10000)
PedPlayCatch(ped1, ped2, 100000)
PedPlayCatch(ped1, ped2, 22000)
PedPlayCatch(ped2, ped1, 100000)
PedPlayCatch(ped2, ped1, 22000)
push ebx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov ebx, eax
add esp, 0x8
test ebx, ebx
jz 0x66
push 0x1
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov edi, eax
add esp, 0x8
test edi, edi
jz 0x44
push 0x2
push esi
call LuaParam::GetInt
push 0x18
mov esi, eax
call 0x5EEAA0
add esp, 0xC
test eax, eax
jz 0x1E
push esi
push edi
push ebx
mov ecx, eax
call 0x4718C0
push eax
lea ecx, ptr [ebx+0x5F0]
call 0x471390
xor eax, eax
pop edi
pop esi
pop ebx
ret
xor eax, eax
push eax
lea ecx, ptr [ebx+0x5F0]
call 0x471390
pop edi
pop esi
xor eax, eax
pop ebx
ret
-- never used
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x18], st
add esp, 0xC
mov eax, esp
push edi
mov dword ptr [eax], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x54
fld st, dword ptr [esp+0x8]
push 0x0
push ecx
mov ecx, esi
fstp dword ptr [esp], st
call 0x47B800
fldz
push 0x0
push ecx
fst dword ptr [esp], st
push 0xFFFFFFFF
push 0x0
push 0x1
push 0x0
mov eax, dword ptr [esi]
sub esp, 0x8
fst dword ptr [esp+0x4], st
mov edx, dword ptr [eax+0x3C]
fst dword ptr [esp], st
push 0x0
push 0x0
push 0x0
push 0x0
push 0x0
push 0x0
push 0xFFFFFFFF
push 0x0
sub esp, 0x8
fstp dword ptr [esp+0x4], st
mov ecx, esi
fld st, dword ptr [esp+0x50]
fstp dword ptr [esp], st
call 0x5CC459
pop edi
xor eax, eax
pop esi
pop ecx
ret
PedPutOnBike(Dropout1, Bike01)
PedPutOnBike(gBaddie.id, gBaddie.Bikeid)
PedPutOnBike(gBaddie02.id, gBaddie02.Bikeid)
PedPutOnBike(gBaddie03.id, gBaddie03.Bikeid)
PedPutOnBike(gBaddie04.id, gBaddie04.Bikeid)
PedPutOnBike(gBaddie05.id, gBaddie05.Bikeid)
PedPutOnBike(gBaddie06.id, gBaddie06.Bikeid)
PedPutOnBike(gJohnnyV, gJohnnyBike)
PedPutOnBike(gJV_OnBike, gJV_Bike)
PedPutOnBike(gPeanut, gPeanutBike)
PedPutOnBike(gPlayer, gBMXPlayerBike)
PedPutOnBike(gPlayer, gPlayerBike)
PedPutOnBike(gPlayer, gPlayersBike)
PedPutOnBike(gPlayer, pBike)
PedPutOnBike(gRussell.id, gRussellBike)
PedPutOnBike(idPeter, peteBike)
PedPutOnBike(idRussell, idBike)
PedPutOnBike(item.ped, item.bike)
PedPutOnBike(lVictim[VictimCounter], tblVictimInfo[VictimCounter].lBike)
PedPutOnBike(ped, carID[0])
PedPutOnBike(ped.id, ped.bike.id)
PedPutOnBike(pedAlgie.id, vehicleBikeAlgie.id)
PedPutOnBike(pedChad.id, vehicleBikeChad.id)
PedPutOnBike(pedGreaser01.id, vehicleEnemyBike01.id)
PedPutOnBike(pedGreaser01.id, vehicleEnemyBike03.id)
PedPutOnBike(pedGreaser02.id, vehicleEnemyBike02.id)
PedPutOnBike(pedGreaser04.id, vehicleEnemyBike04.id)
PedPutOnBike(pedGreaserC01.id, vehicleBikeC01.id)
PedPutOnBike(pedGreaserC02.id, vehicleBikeC02.id)
PedPutOnBike(pedID, bikeID)
PedPutOnBike(pedKlepto.id, vehicleKleptoBike.id)
PedPutOnBike(racer.id, racer.bike)
PedPutOnBike(racers[i].id, racers[i].bike)
PedPutOnBike(rider, ride)
PedPutOnBike(tbl.id, tbl.bike.id)
PedPutOnBike(tblGord.id, tblGord.bike.id)
PedPutOnBike(tblGordWH.id, tblGordWH.bike.id)
PedPutOnBike(tblGreaser1WH.id, tblGreaser1WH.bike.id)
PedPutOnBike(tblGreaser2WH.id, tblGreaser2WH.bike.id)
PedPutOnBike(tblJohnnyWH.id, tblJohnnyWH.bike.id)
PedPutOnBike(tblPeanut.id, peanutBike)
PedPutOnBike(tblPeanut.id2, peanutBike2)
PedPutOnBike(tblPrep1WH.id, tblPrep1WH.bike.id)
PedPutOnBike(tblPrep2WH.id, tblPrep2WH.bike.id)
PedPutOnBike(tempPed, tempVehicle)
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetInt
add esp, 0xC
mov esi, eax
mov eax, esp
push edi
mov dword ptr [eax], 0x2
call 0x5C7380
push esi
mov edi, eax
call 0x44A580
add esp, 0xC
test edi, edi
mov esi, eax
jz 0xB1
test esi, esi
jz 0xA9
cmp dword ptr [esi+0x46C], 0x1
jnz 0x9C
push edi
mov ecx, esi
call 0x4BDF80
push esi
mov ecx, edi
call 0x476640
mov eax, dword ptr [esi+0x14]
test eax, eax
jz 0x7
add eax, 0x30
jmp 0x5
lea eax, ptr [esi+0x4]
fld st, dword ptr [eax+0x8]
sub esp, 0xC
fstp dword ptr [esp+0x8], st
mov ecx, edi
fld st, dword ptr [eax+0x4]
fstp dword ptr [esp+0x4], st
fld st, dword ptr [eax]
fstp dword ptr [esp], st
call 0x41C4E0
lea eax, ptr [esp+0x8]
push eax
mov ecx, esi
call 0x4CAF30
cmp dword ptr [eax], 0x3
jnz 0x19
push 0x901018
push 0x90D030
mov ecx, edi
call 0x4740F0
xor eax, eax
pop edi
pop esi
pop ecx
ret
lea ecx, ptr [esp+0x8]
push ecx
mov ecx, esi
call 0x4CAF30
cmp dword ptr [eax], 0x8
push 0x901018
mov ecx, edi
jnz 0x12
push 0x90D008
call 0x4740F0
xor eax, eax
pop edi
pop esi
pop ecx
ret
push 0x900FF0
call 0x4740F0
pop edi
xor eax, eax
pop esi
pop ecx
ret
PedReceiveBall(gTed, gSidelines[currentPasser.id], 4000)
PedReceiveBall(gTed, gSidelines[gPasserA.id], 4000)
push ebx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov ebx, eax
add esp, 0x8
test ebx, ebx
jz 0x6B
push 0x1
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov edi, eax
add esp, 0x8
test edi, edi
jz 0x49
push 0x2
push esi
call LuaParam::GetFloat
call 0x85C720
push 0x18
mov esi, eax
call 0x5EEAA0
add esp, 0xC
test eax, eax
jz 0x1E
push esi
push edi
push ebx
mov ecx, eax
call 0x471A60
push eax
lea ecx, ptr [ebx+0x5F0]
call 0x471390
xor eax, eax
pop edi
pop esi
pop ebx
ret
xor eax, eax
push eax
lea ecx, ptr [ebx+0x5F0]
call 0x471390
pop edi
pop esi
xor eax, eax
pop ebx
ret
PedRecruitAlly(Dog, Walker)
PedRecruitAlly(follower, Crazy01)
PedRecruitAlly(follower, Crazy02)
PedRecruitAlly(gGary, gPete)
PedRecruitAlly(gGordTicket, gLolaTicket, true)
PedRecruitAlly(gHattrick, gPrincipal)
PedRecruitAlly(gNerds[1].id, gNerds[2].id)
PedRecruitAlly(gNerds[2].id, gNerds[1].id)
PedRecruitAlly(gord, lola)
PedRecruitAlly(gord, lola, true)
PedRecruitAlly(gPlayer, ally)
PedRecruitAlly(gPlayer, ally1, true)
PedRecruitAlly(gPlayer, allyId)
PedRecruitAlly(gPlayer, Crazy01)
PedRecruitAlly(gPlayer, Crazy02)
PedRecruitAlly(gPlayer, followerFollower)
PedRecruitAlly(gPlayer, gGary)
PedRecruitAlly(gPlayer, gJohnny)
PedRecruitAlly(gPlayer, gNerds[1].id)
PedRecruitAlly(gPlayer, gNerds[2].id)
PedRecruitAlly(gPlayer, gRussell)
PedRecruitAlly(gPlayer, gRussell.id)
PedRecruitAlly(gPlayer, gThad)
PedRecruitAlly(gPlayer, idBucky)
PedRecruitAlly(gPlayer, idEunice.id, true)
PedRecruitAlly(gPlayer, lolaID)
PedRecruitAlly(gPlayer, pedAlgie.id)
PedRecruitAlly(gPlayer, pedCornelius.id)
PedRecruitAlly(gPlayer, pedGary.id)
PedRecruitAlly(gPlayer, pedPinky.id, true)
PedRecruitAlly(gPlayer, pedRicky)
PedRecruitAlly(gPlayer, ScenarioPed, false)
PedRecruitAlly(gPlayer, ScenarioPed, true)
PedRecruitAlly(gPlayer, shared.gGary)
PedRecruitAlly(idGord.id, idLola.id, true)
PedRecruitAlly(idLola.id, idGord.id)
PedRecruitAlly(idPetey.id, idConst.id, true)
PedRecruitAlly(newParent, newKid, true)
PedRecruitAlly(outroPedA, outroPedB)
PedRecruitAlly(outroPedB, outroPedC)
PedRecruitAlly(shared.gGary, shared.gPetey)
PedRecruitAlly(tblFamilyList[i].parent, tblFamilyList[i].kid, true)
PedRecruitAlly(Walker, Walker2, true)
push ebx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
push 0x1
push esi
mov edi, eax
call LuaParam::GetInt
add esp, 0xC
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
mov ebx, eax
push 0x1
push ebx
lea ecx, ptr [edi+0x2F0]
call 0x4860F0
push esi
call 0x73AEA0
add esp, 0x4
cmp eax, 0x3
jnz 0x1C
push 0x2
push esi
call LuaParam::GetBool
movzx eax, al
mov dword ptr [edi+0x14EC], eax
add esp, 0x8
mov dword ptr [ebx+0x14EC], eax
pop edi
pop esi
xor eax, eax
pop ebx
ret
PedRegisterSocialCallback(Greaser1, 10, F_FailTheMission)
PedRegisterSocialCallback(idEunice.id, 24, cbGreetEunice)
PedRegisterSocialCallback(idEunice.id, 4, cbGiftedEunice)
PedRegisterSocialCallback(idPinky.id, 18, F_GreetPinky)
PedRegisterSocialCallback(pedRussell.id, 10, F_RussellSocialAction)
PedRegisterSocialCallback(tblGord.id, 7, F_InsultGord)
PedRegisterSocialCallback(tblGord.id, 8, F_InsultGord)
PedRegisterSocialCallback(tblPrep1.id, 7, F_InsultGord)
PedRegisterSocialCallback(tblPrep1.id, 8, F_InsultGord)
push ebx
push esi
push edi
mov edi, dword ptr [esp+0x10]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x27
push 0x1
push edi
call LuaParam::GetInt
mov ebx, eax
lea eax, ptr [esi+ebx*4+0xCB4]
push eax
push 0x2
push edi
call 0x5DA060
add esp, 0x14
mov byte ptr [ebx+esi*1+0xD1C], 0x0
pop edi
pop esi
xor eax, eax
pop ebx
ret
PedRemoveBroadcastStimulus(16)
PedRemoveBroadcastStimulus(59)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetInt
push eax
call 0x4A62E0
add esp, 0xC
xor eax, eax
ret
-- never used
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
jz 0xD
lea ecx, ptr [eax+0x5F0]
call 0x4702C0
xor eax, eax
ret
PedRemovePedFromIgnoreList(entry, gPlayer)
PedRemovePedFromIgnoreList(gDavis, gPlayer)
PedRemovePedFromIgnoreList(gHattrick, gPlayer)
PedRemovePedFromIgnoreList(sheet4Guard, gPlayer)
push ebx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetInt
add esp, 0xC
mov ebx, eax
mov eax, esp
push edi
mov dword ptr [eax], 0x2
call 0x5C7380
add esp, 0x4
mov esi, eax
mov eax, esp
push ebx
mov dword ptr [eax], 0x2
call 0x5C7380
add esp, 0x8
test esi, esi
jz 0x12
test eax, eax
jz 0xE
push eax
lea ecx, ptr [esi+0x3BC]
call 0x48C0F0
pop edi
pop esi
xor eax, eax
pop ebx
ret
PedRemoveStimulus(gPlayer, 27)
PedRemoveStimulus(gRussell, 5)
PedRemoveStimulus(gTed)
PedRemoveStimulus(Objectives[1].id)
PedRemoveStimulus(Objectives[2].id)
PedRemoveStimulus(Objectives[3].id)
PedRemoveStimulus(Objectives[4].id)
PedRemoveStimulus(Objectives[5].id)
PedRemoveStimulus(ped, 5)
PedRemoveStimulus(pedid, 5)
push ecx
push esi
push edi
mov edi, dword ptr [esp+0x10]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jnz 0x6
pop edi
pop esi
pop ecx
ret
push edi
call 0x73AEA0
add esp, 0x4
cmp eax, 0x1
jle 0x1C
push 0x1
push edi
call LuaParam::GetInt
mov ecx, dword ptr [0xC2C1A0]
add esp, 0x8
push eax
push esi
call 0x4A6880
jmp 0xE
mov ecx, dword ptr [0xC2C1A0]
push esi
call 0x4A67D0
mov byte ptr [esp+0x8], al
mov eax, dword ptr [esp+0x8]
push eax
push edi
call LuaParam::PushBool
add esp, 0x8
pop edi
mov eax, 0x1
pop esi
pop ecx
ret
if not ped.modelLoaded and PedRequestModel(ped.model) then
PedRequestModel(10)
PedRequestModel(102)
PedRequestModel(109)
PedRequestModel(11)
PedRequestModel(110)
PedRequestModel(111)
PedRequestModel(112)
PedRequestModel(12)
PedRequestModel(13)
PedRequestModel(130)
PedRequestModel(137)
PedRequestModel(14)
PedRequestModel(141)
PedRequestModel(145)
PedRequestModel(146)
PedRequestModel(147)
PedRequestModel(15)
PedRequestModel(16)
PedRequestModel(165)
PedRequestModel(17)
PedRequestModel(170)
PedRequestModel(180)
PedRequestModel(181)
PedRequestModel(182)
PedRequestModel(20)
PedRequestModel(230)
PedRequestModel(231)
PedRequestModel(232)
PedRequestModel(249)
PedRequestModel(255)
PedRequestModel(256)
PedRequestModel(257)
PedRequestModel(258)
PedRequestModel(26)
PedRequestModel(29)
PedRequestModel(34)
PedRequestModel(38)
PedRequestModel(4)
PedRequestModel(48)
PedRequestModel(5)
PedRequestModel(50)
PedRequestModel(54)
PedRequestModel(55)
PedRequestModel(57)
PedRequestModel(6)
PedRequestModel(61)
PedRequestModel(62)
PedRequestModel(65)
PedRequestModel(67)
PedRequestModel(70)
PedRequestModel(74)
PedRequestModel(75)
PedRequestModel(8)
PedRequestModel(85)
PedRequestModel(87)
PedRequestModel(9)
PedRequestModel(93)
PedRequestModel(99)
PedRequestModel(enemy01.model)
PedRequestModel(enemy02.model)
PedRequestModel(GreaserThief.model)
PedRequestModel(GreaserThief.model1)
PedRequestModel(GreaserThief.model2)
PedRequestModel(GreaserThief.model3)
PedRequestModel(GreaserThief.model4)
PedRequestModel(i + 1)
PedRequestModel(ped.model)
PedRequestModel(pedmodel)
PedRequestModel(rat_model)
PedRequestModel(tblPed[i])
PedRequestModel(tblPed[pedchoice])
while not (PedRequestModel(83) and VehicleRequestModel(295)) do
while not (VehicleRequestModel(carTable[car_loc].model) and PedRequestModel(64)) do
while not PedRequestModel(106) do
while not PedRequestModel(134) do
while not PedRequestModel(160) do
while not PedRequestModel(3) do
while not PedRequestModel(30) do
while not PedRequestModel(83) do
while not PedRequestModel(91) do
while not PedRequestModel(biker) do
while not PedRequestModel(gawker.model) do
while not PedRequestModel(nEdnaModel) do
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetInt
push esi
call 0x5C6340
add esp, 0xC
pop esi
ret
PedResetAttitudes(pedID)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
jz 0x9
mov ecx, eax
call 0x4731F0
xor eax, eax
ret
PedResetTypeAttitudesToDefault()
mov ecx, dword ptr [0xC2AF9C]
call 0x46F4A0
xor eax, eax
ret
-- never used
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
jz 0x2F
mov ecx, dword ptr [0x20C889C]
mov edx, dword ptr [ecx+0x18]
mov dword ptr [eax+0x670], edx
mov ecx, dword ptr [0x20C889C]
mov edx, dword ptr [ecx+0x1C]
mov dword ptr [eax+0x674], edx
mov ecx, dword ptr [0x20C889C]
mov edx, dword ptr [ecx+0x20]
mov dword ptr [eax+0x678], edx
xor eax, eax
ret
PedRestoreWeaponInventorySnapshot(gPlayer)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov ecx, dword ptr [eax+0x1C4]
add esp, 0x8
call 0x45D200
xor eax, eax
ret
PedRestrictToTrigger(gHobo, TRIGGER._RINGAREA)
PedRestrictToTrigger(guy, TRIGGER._2_03_TADHOUSE)
PedRestrictToTrigger(idPed, TRIGGER._1_07_NOAMBIENTPEDS)
PedRestrictToTrigger(pedJockBathroomFirstFloor01.id, TRIGGER._1_05B_BATHROOMFIRSTFLOOR)
PedRestrictToTrigger(pedJockBathroomFirstFloor02.id, TRIGGER._1_05B_BATHROOMFIRSTFLOOR)
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x1F
push 0x1
push edi
call LuaParam::GetInt
movzx eax, ax
movzx eax, ax
add esp, 0x8
push eax
lea ecx, ptr [esi+0x358]
call 0x499B30
pop edi
xor eax, eax
pop esi
ret
-- never used
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::IsInt
add esp, 0x8
test al, al
jz 0x3B
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
jz 0x1B
lea esi, ptr [eax+0x5F0]
mov ecx, esi
call 0x5CF7D0
test eax, eax
jz 0xA
push eax
mov ecx, esi
call 0x471D30
xor eax, eax
pop esi
ret
PedRooftopAttacker(ped)
PedRooftopAttacker(Thug)
mov eax, dword ptr [esp+0x4]
push esi
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x36
push 0x10
call 0x5EEAA0
add esp, 0x4
test eax, eax
jz 0x1A
push esi
mov ecx, eax
call 0x46FE70
push eax
lea ecx, ptr [esi+0x5F0]
call 0x471390
xor eax, eax
pop esi
ret
xor eax, eax
push eax
lea ecx, ptr [esi+0x5F0]
call 0x471390
xor eax, eax
pop esi
ret
PedSaveWeaponInventorySnapshot(gPlayer)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov ecx, dword ptr [eax+0x1C4]
add esp, 0x8
call 0x45CBE0
xor eax, eax
ret
"PedSetActionNode",
--print(">>>[RUI]", "F_RusselGroundCheck PedSetActionNode(russell, /Global/BOSS_Russell/Default_KEY/RisingAttacks/HeavyAttacks/RisingAttacks")
elseif lFunction[1] == "PedSetActionNode" then
L_PedExec("ambush01", PedSetActionNode, "id", "/Global/5_04/DOPush", "Act/Conv/5_04.act")
PedSetActionNode(a, "/Global/5_04/Coughing", "Act/Conv/5_04.act")
PedSetActionNode(a, "/Global/5_04/CrawlCycle", "Act/Conv/5_04.act")
PedSetActionNode(a, "/Global/5_04/JockIdle", "Act/Conv/5_04.act")
PedSetActionNode(a, "/Global/5_04/KirbyFall", "Act/Conv/5_04.act")
PedSetActionNode(a, "/Global/5_04/KirbyInit", "Act/Conv/5_04.act")
PedSetActionNode(a, "/Global/5_04/MandyStand", "Act/Conv/5_04.act")
PedSetActionNode(algie, "/Global/4_G4/Animations/SetupPoster/PlaceIt", "Act/Conv/4_G4.act")
PedSetActionNode(algie, "/Global/4_G4/Cower", "Act/Conv/4_G4.act")
PedSetActionNode(algie, "/Global/4_G4/Scream", "Act/Conv/4_G4.act")
PedSetActionNode(assistant, "/Global/3_09/Anims2/Give/GivePackage_3_09", "Act/Conv/3_09.act")
PedSetActionNode(attacker.id, wave.Action, "Act/Conv/1_03.act")
PedSetActionNode(attacker.id, wave.EndAction, "Act/Conv/1_03.act")
PedSetActionNode(b, "/Global/5_04/Coughing/CoughingMandy", "Act/Conv/5_04.act")
PedSetActionNode(bExtraGuy, "/Global/PrepHouse/OpenSecondFloorDoor", "Act/Conv/2_08.act")
PedSetActionNode(bGreaserBoss, "/Global/6_02/FactionLeaderNIS/Greasers/Johnny01", "Act/Conv/6_02.act")
PedSetActionNode(bGreaserBoss, "/Global/6_02/FactionLeaderNIS/Greasers/JohnnyCheer", "Act/Conv/6_02.act")
PedSetActionNode(bioTeacher, "/Global/C8/TeacherDisgust", "Act/Conv/C8.act")
PedSetActionNode(bJockBoss, "/Global/6_02/FactionLeaderNIS/Jocks/Cheering", "Act/Conv/6_02.act")
PedSetActionNode(bJockBoss, "/Global/6_02/FactionLeaderNIS/Jocks/Ted01", "Act/Conv/6_02.act")
PedSetActionNode(bNerdBoss, "/Global/6_02/FactionLeaderNIS/Nerds/Cheering/Cheering01", "Act/Conv/6_02.act")
PedSetActionNode(bNerdBoss, "/Global/6_02/FactionLeaderNIS/Nerds/Earnest01", "Act/Conv/6_02.act")
PedSetActionNode(bNerdBoss, "/Global/6_02/FactionLeaderNIS/Nerds/Earnest02", "Act/Conv/6_02.act")
PedSetActionNode(boxer, "/Global/Ambient/MissionSpec/BoxingCheer", "Act/Anim/Ambient.act")
PedSetActionNode(boxer, "/Global/P_Bif", "Act/Anim/P_Bif.act")
PedSetActionNode(bPreppyBoss, "/Global/6_02/FactionLeaderNIS/Preps/Darby01", "Act/Conv/6_02.act")
PedSetActionNode(buddyPerv.id, "/Global/Ambient/MissionSpec/PlayerIdle/IdleOneFrame", "/Act/Anim/Ambient.act")
PedSetActionNode(Bum, "/Global/1_07/HoboOpenGate", "Act/Conv/1_07.act")
PedSetActionNode(Bum, "/Global/1_07/POpenSide/PedPropActions/startOpen", "Act/Conv/1_07.act")
PedSetActionNode(burton, "/Global/C31Strt/BurtonIdle", "Act/Conv/C3_1.act")
PedSetActionNode(buster, "/Global/LE_Orderly_A/Busted", "Act/Anim/LE_Orderly_A.act")
PedSetActionNode(c, "/Global/5_04/Coughing/CoughingCasey", "Act/Conv/5_04.act")
PedSetActionNode(carnie, "/Global/DunkTank/Carny/TauntLoop", "Act/Conv/MGDunkTank.act")
PedSetActionNode(chemTeach, "/Global/C4/Animations/Teacher/TeacherChew", "Act/Conv/C4.act")
PedSetActionNode(chemTeach, "/Global/C4/Animations/TeacherFinishClass", "Act/Conv/C4.act")
PedSetActionNode(classmate01, "/Global/C6/PedUnderHood", "Act/Conv/C6.act")
PedSetActionNode(clerk, "/Global/Welcome/ShakeFist", "Act/Conv/Store.act")
PedSetActionNode(client.id, RandomTableElement(tblLookAnim), ClientAnimTree)
PedSetActionNode(closestPed, "/Global/1_02/PushPlayer/GrappleSuccess/Yay/AttackIdle", "Act/Conv/1_02.act")
PedSetActionNode(CoachBurton.id, "/Global/4_06/Break", "Act/Conv/4_06.act")
PedSetActionNode(cop3, "/Global/3_06/Frisk/GrappleAttempt", "Act/Conv/3_06.act")
PedSetActionNode(Dancer01, "/Global/3_01C/Flower", DancerActionFile)
PedSetActionNode(Dancer02, "/Global/3_01C/Fairy", DancerActionFile)
PedSetActionNode(Dancer03, "/Global/3_01C/Flower", DancerActionFile)
PedSetActionNode(Dog.id, "/Global/5_09/Dog/Sleep", "Act/Conv/5_09.act")
PedSetActionNode(dude, "/Global/5_02/animations/MoshOut", "Act/Conv/5_02.act")
PedSetActionNode(Earnest, "/Global/1_09/EarnestSpeech/" .. SpeechTable[CurrentLine].anim, "Act/Conv/1_09.act")
PedSetActionNode(Earnest, "/Global/1_09/NIS/Earnest/Earnest01", "Act/Conv/1_09.act")
PedSetActionNode(Earnest, "/Global/1_09/NIS/Earnest/Earnest02", "Act/Conv/1_09.act")
PedSetActionNode(Earnest, "/Global/1_09/NIS/Earnest/Earnest03", "Act/Conv/1_09.act")
PedSetActionNode(earnest, "/Global/Ambient/MissionSpec/GetOnCannon", "Act/Anim/Ambient.act")
PedSetActionNode(Earnest, "/Global/NPC1_09/EarnestCry", "Act/Anim/NPC1_09.act")
PedSetActionNode(Earnest, "/Global/NPC1_09/Speech", "Act/Anim/NPC1_09.act")
PedSetActionNode(edgar, "/Global/5_B/Reactions/RunShoulder", "Act/Conv/5_B.act")
PedSetActionNode(edgar, "/Global/WProps/Peds/ScriptedPropInteract", "Act/WProps.act")
PedSetActionNode(Edna, "/Global/2_01/Anim/EdnaShrug", "Act/Conv/2_01.act")
PedSetActionNode(edna, "/Global/2_S05/Anims/DateActions/GetUp", "Act/Conv/2_S05.act")
PedSetActionNode(edna, "/Global/WProps/PropInteract", "Act/WProps.act")
PedSetActionNode(endPed, "/Global/Player/Social_Actions/HarassMoves/Shove_Still/Shove", "Act/Player.act")
PedSetActionNode(enemy01.id, "/Global/New/Animations/BreakCyclicAnimation", "Act/Conv/New.act")
PedSetActionNode(enemy01.id, "/Global/New/Animations/PlayAnimationCyclic", "Act/Conv/New.act")
PedSetActionNode(EnemyTable[i].handle, "/Global/Ambient/MissionSpec/MissionCower", "Act/Anim/Ambient.act")
PedSetActionNode(EnemyTable[i].handle, "/Global/Ambient/MissionSpec/MissionLookAround", "Act/Anim/Ambient.act")
PedSetActionNode(entry, "/Global/2_04_Conv/PlayerIdle", "Act/Conv/2_04.act")
PedSetActionNode(entry.handle, "/Global/1_09/CustomPedTree", "Act/Conv/1_09.act")
PedSetActionNode(entry.id, "/Global/2_S05/Anims/Break", "Act/Conv/2_S05.act")
PedSetActionNode(entry.id, "/Global/2_S05/Anims/Disturb/Gawk", "Act/Conv/2_S05.act")
PedSetActionNode(entry.id, entry.animation, "Act/Conv/2_S05.act")
PedSetActionNode(entry.id, theAction, "Act/Conv/4_G4.act")
PedSetActionNode(fCasey, "/Global/5_04/CrawlCycle", "Act/Conv/5_04.act")
PedSetActionNode(fCasey, "/Global/5_04/JockIdle", "Act/Conv/5_04.act")
PedSetActionNode(fCasey, "/Global/5_04/KirbyFall", "Act/Conv/5_04.act")
PedSetActionNode(fCasey, "/Global/5_04/KirbyInit/KirbyCough", "Act/Conv/5_04.act")
PedSetActionNode(FireMan, "/Global/Ambient/MissionSpec/FireMan/LookAround", "/Act/Anim/Ambient.Act")
PedSetActionNode(FireMan, "/Global/Ambient/MissionSpec/FireMan/Wall_Smoke", "/Act/Anim/Ambient.Act")
PedSetActionNode(FireManS2, "/Global/Ambient/MissionSpec/FireMan/Wall_Smoke", "/Act/Anim/Ambient.Act")
PedSetActionNode(frBeardedWoman, "/Global/Freaks/Bearded/BeardedInit", "Act/Anim/FreakShow.act")
PedSetActionNode(freak.id, freak.tree, "Act/Anim/FreakShow.act")
PedSetActionNode(freak.id, freak.tree, freak.act)
PedSetActionNode(frMermaid, "/Global/Freaks/Mermaid/MermaidIdle", "Act/Anim/FreakShow.act")
PedSetActionNode(frMidget01, "/Global/Freaks/Break", "Act/Anim/FreakShow.act")
PedSetActionNode(frMidget01, "/Global/Freaks/Midgets/CyclicIdle", "Act/Anim/FreakShow.act")
PedSetActionNode(frMidget01, "/Global/Freaks/Midgets/Deselect", "Act/Anim/FreakShow.act")
PedSetActionNode(frMidget01, "/Global/Freaks/Midgets/Select", "Act/Anim/FreakShow.act")
PedSetActionNode(frMidget02, "/Global/Freaks/Break", "Act/Anim/FreakShow.act")
PedSetActionNode(frMidget02, "/Global/Freaks/Midgets/CyclicIdle", "Act/Anim/FreakShow.act")
PedSetActionNode(frMidget02, "/Global/Freaks/Midgets/Deselect", "Act/Anim/FreakShow.act")
PedSetActionNode(frMidget02, "/Global/Freaks/Midgets/Select", "Act/Anim/FreakShow.act")
PedSetActionNode(frPaintedMan, "/Global/Freaks/PaintedMan", "Act/Anim/FreakShow.act")
PedSetActionNode(frSiamese02, "/Global/TO_Siamese/SiameseTwinsLoad", "Act/Anim/TO_Siamese.act")
PedSetActionNode(frSkeletonMan, "/Global/Freaks/Skeleton/SkeletonInit", "Act/Anim/FreakShow.act")
PedSetActionNode(gAlgernon, "/Global/Chap5Trans/Cheering/CheerNerd1/CheerNerd_03", "Act/Conv/Chap5Trans.act")
PedSetActionNode(galloway, "/Global/C7/TeacherDisgust", "Act/Conv/C7.act")
PedSetActionNode(gAsylumTable.ped1, "/Global/Ambient/Scripted/OrderlyPatrol/OrderlyPatrol_Child", "Act/Anim/Ambient.act")
PedSetActionNode(gAsylumTable.ped2, "/Global/Ambient/Scripted/OrderlyPatrol/OrderlyPatrol_Child", "Act/Anim/Ambient.act")
PedSetActionNode(GateNerd.id, "/Global/4_06/GateNerd/Picklock", "Act/Conv/4_06.act")
PedSetActionNode(gawker.id, "/Global/5_09/5_09_Cityhall_Cut", "Act/Conv/5_09.act")
PedSetActionNode(gBeatrice, "/Global/1_08/1_08_Beatrice", "Act/Conv/1_08.act")
PedSetActionNode(gBoxerIds[2], "/Global/3_R09/Animations/Preppies/Preppies01", "Act/Conv/3_R09.act")
PedSetActionNode(gBoxerIds[2], "/Global/3_R09/Animations/Preppies/Preppies02", "Act/Conv/3_R09.act")
PedSetActionNode(gBucky, "/Global/2_S04/Anim/NerdCheer", "Act/Conv/2_S04.act")
PedSetActionNode(gBucky, "/Global/2_S04/Anim/NerdTeased", "Act/Conv/2_S04.act")
PedSetActionNode(gBucky, "/Global/2_S04/Anim/NerdTeased/endTeased", "Act/Conv/2_S04.act")
PedSetActionNode(gBucky, "/Global/N_Ranged_A", "Act/Anim/N_Ranged_A.act")
PedSetActionNode(gBully01, "/Global/1_01/ShortIdle", "Act/Conv/1_01.act")
PedSetActionNode(gBully01, "/Global/1_01/Talking", "Act/Conv/1_01.act")
PedSetActionNode(gBully01, "/Global/1_02/NIS/MeetRussell/Bullies/Bullies", "Act/Conv/1_02.act")
PedSetActionNode(gBully01, "/Global/1_02/On_Ground", "Act/Conv/1_02.act")
PedSetActionNode(gBully01, "/Global/1_02/ShortIdle", "Act/Conv/1_02.act")
PedSetActionNode(gBully01, "/Global/1_02/SitOnWall", "Act/Conv/1_02.act")
PedSetActionNode(gBully01, "/Global/1_02/TauntPlayer/Taunt01", "Act/Conv/1_02.act")
PedSetActionNode(gBully01, "/Global/6_02/GaryNIS/Bullies/Bully01", "Act/Conv/6_02.act")
PedSetActionNode(gBully02, "/Global/1_01/Talking", "Act/Conv/1_01.act")
PedSetActionNode(gBully02, "/Global/1_02/TauntPlayer/Taunt03", "Act/Conv/1_02.act")
PedSetActionNode(gBully02, "/Global/6_02/GaryNIS/Bullies/Bully02", "Act/Conv/6_02.act")
PedSetActionNode(gBully03, "/Global/1_01/Talking", "Act/Conv/1_01.act")
PedSetActionNode(gBully03, "/Global/1_02/TauntOnce", "Act/Conv/1_02.act")
PedSetActionNode(gBully03, "/Global/6_02/GaryNIS/Bullies/Bully03", "Act/Conv/6_02.act")
PedSetActionNode(gCafeteria, "/Global/Chap5Trans/Cheering/CheerPosh1/CheerPosh_04", "Act/Conv/Chap5Trans.act")
PedSetActionNode(gCannonNerd, "/Global/4_02/Blank", "Act/Conv/4_02.act")
PedSetActionNode(gCannonNerd, "/Global/4_02/NIS/Earnest_01", "Act/Conv/4_02.act")
PedSetActionNode(gCannonNerd, "/Global/Ambient/MissionSpec/GetOnCannon", "Act/Anim/Ambient.act")
PedSetActionNode(gCarnie, "/Global/Ambient/DunkTankMidget/TreadWater", "Act/Anim/Ambient.act")
PedSetActionNode(gCarnie, "/Global/DunkTank/Carny/Fall", "Act/Conv/MGDunkTank.act")
PedSetActionNode(gCarnie, "/Global/DunkTank/Carny/Taunt_Lose", "Act/Conv/MGDunkTank.act")
PedSetActionNode(gCarnie, "/Global/DunkTank/Carny/TauntLoop/Taunts/Taunt_A", "Act/Conv/MGDunkTank.act")
PedSetActionNode(gCheater01, "/Global/Ambient/MissionSpec/KissMeAdult", "Act/Anim/Ambient.act")
PedSetActionNode(gClerk, "/Global/MGBaseballToss/Animations/Carny/Ball", "Act/Conv/MGBaseballToss.act")
PedSetActionNode(gClerk, "/Global/MGBaseballToss/Animations/Carny/Ball4", "Act/Conv/MGBaseballToss.act")
PedSetActionNode(gClerk, "/Global/MGBaseballToss/Animations/Carny/BonusHit", "Act/Conv/MGBaseballToss.act")
PedSetActionNode(gClerk, "/Global/MGBaseballToss/Animations/Carny/Hit/KickPlayerOut", "Act/Conv/MGBaseballToss.act")
PedSetActionNode(gClerk, "/Global/MGBaseballToss/Animations/Carny/Hit/TorsoFront1", "Act/Conv/MGBaseballToss.act")
PedSetActionNode(gClerk, "/Global/MGBaseballToss/Animations/Carny/Hit/TorsoFront2", "Act/Conv/MGBaseballToss.act")
PedSetActionNode(gClerk, "/Global/MGBaseballToss/Animations/Carny/LostGame", "Act/Conv/MGBaseballToss.act")
PedSetActionNode(gClerk, "/Global/MGBaseballToss/Animations/Carny/StandIdle", "Act/Conv/MGBaseballToss.act")
PedSetActionNode(gClerk, "/Global/MGBaseballToss/Animations/Carny/Strike", "Act/Conv/MGBaseballToss.act")
PedSetActionNode(gClerk, "/Global/MGBaseballToss/Animations/Carny/StrikeOut", "Act/Conv/MGBaseballToss.act")
PedSetActionNode(gClerk, "/Global/MGBaseballToss/Animations/Carny/Umpire", "Act/Conv/MGBaseballToss.act")
PedSetActionNode(gClerk, "/Global/MGBaseballToss/Animations/Carny/WonGame", "Act/Conv/MGBaseballToss.act")
PedSetActionNode(gCop1, "/Global/6_02/WonderNIS/LookAround", "Act/Conv/6_02.act")
PedSetActionNode(gCSBully, "/Global/1_03/animations/DavisBrag/release", "Act/Conv/1_03.act")
PedSetActionNode(gDarby, "/Global/Chap5Trans/Cheering/CheerPosh1/CheerPosh_01", "Act/Conv/Chap5Trans.act")
PedSetActionNode(gDavis, "/Global/1_03/animations/DavisKickLadder", "Act/Conv/1_03.act")
PedSetActionNode(gDavis, "/Global/1_03/animations/DavisShoulder/ShoulderSlam", "Act/Conv/1_03.act")
PedSetActionNode(gDavis, "/Global/1_03/animations/DavisWait", "Act/Conv/1_03.act")
PedSetActionNode(gDavis, "/Global/1_03/animations/DavisWait/release", "Act/Conv/1_03.act")
PedSetActionNode(gDavis, "/Global/1_03/animations/DavisWaitTired/Stop", "Act/Conv/1_03.act")
PedSetActionNode(gDavis, "/Global/1_03/animations/DavisWaitTired/TiredLoop", "Act/Conv/1_03.act")
PedSetActionNode(gDavis, "/Global/1_03/animations/FallOffBarrels/NewFall", "Act/Conv/1_03.act")
PedSetActionNode(gDefenders[1], "/Global/4_B2/Defensive/IntoPose", "Act/Conv/4_B2.act")
PedSetActionNode(gDefenders[1], "/Global/4_B2/ReactionAnims/GetUp", "/Act/Conv/4_B2.act")
PedSetActionNode(gDefenders[1], "/Global/4_B2/ReactionAnims/GetUpBelly", "/Act/Conv/4_B2.act")
PedSetActionNode(gDefenders[1], "/Global/4_B2/ReactionAnims/GetUpEasy", "/Act/Conv/4_B2.act")
PedSetActionNode(gDefenders[1], "/Global/4_B2/ReactionAnims/GetUpEasy/GetUpEasy2", "/Act/Conv/4_B2.act")
PedSetActionNode(gDefenders[1], "/Global/4_B2/ReactionAnims/GetUpHard", "/Act/Conv/4_B2.act")
PedSetActionNode(gDefenders[1], "/Global/J_Damon/Default_KEY/Idle", "Act/Anim/J_Damon.act")
PedSetActionNode(gDefenders[2], "/Global/4_B2/Defensive/IntoPose", "Act/Conv/4_B2.act")
PedSetActionNode(gDefenders[3], "/Global/4_B2/Defensive/IntoPose", "Act/Conv/4_B2.act")
PedSetActionNode(gDuncan, "/Global/5_02/animations/RatPacking", "Act/Conv/5_02.act")
PedSetActionNode(gDuncan, "/Global/5_02/animations/RatPacking/StandBackUp", "Act/Conv/5_02.act")
PedSetActionNode(gDuncan, "/Global/5_02/animations/RatPacking/StandBackUp/stand", "Act/Conv/5_02.act")
PedSetActionNode(gEarnest, "/Global/Chap5Trans/Cheering/CheerNerd3/CheerNerd_10", "Act/Conv/Chap5Trans.act")
PedSetActionNode(gEdgar, "/Global/6_02/GaryNIS/Edgar/Edgar02", "Act/Conv/6_02.act")
PedSetActionNode(gEdgar, "/Global/6_02/GaryNIS/Edgar/EdgarBlank", "Act/Conv/6_02.act")
PedSetActionNode(gEdgar, "/Global/6_02/GaryNIS/Edgar/EdgarCocky", "Act/Conv/6_02.act")
PedSetActionNode(gEdgar, "/Global/Chap5Trans/Cheering/CheerGen3/CheerGen09", "Act/Conv/Chap5Trans.act")
PedSetActionNode(gEnemies[index].id, "/Global/POIPoint/HangOut", "Act/AI/AI_POI.act")
PedSetActionNode(gEnemies[index].id, lFunction[2], lFunction[3])
PedSetActionNode(gEnemiesPerMission[3][1].id, "/Global/4_06/Workout/Workout_Child", "Act/Conv/4_06.act")
PedSetActionNode(gEnemiesPerMission[3][2].id, "/Global/4_06/Workout/Workout_Child", "Act/Conv/4_06.act")
PedSetActionNode(gEnemiesPerMission[3][3].id, "/Global/4_06/Workout/Workout_Child", "Act/Conv/4_06.act")
PedSetActionNode(gEnemy01, "/Global/3_R09/Animations/Dropouts/Dropouts01", "Act/Conv/3_R09.act")
PedSetActionNode(gEnemy01, "/Global/3_R09/Animations/Dropouts/Dropouts03", "Act/Conv/3_R09.act")
PedSetActionNode(gEnemy01, "/Global/3_R09/Animations/Greasers/Greasers01", "Act/Conv/3_R09.act")
PedSetActionNode(gEnemy01, "/Global/3_R09/Animations/Preppies/Preppies02", "Act/Conv/3_R09.act")
PedSetActionNode(gEnemy02, "/Global/3_R09/Animations/Dropouts/Dropouts02", "Act/Conv/3_R09.act")
PedSetActionNode(gEnemy02, "/Global/3_R09/Animations/Greasers/Greasers02", "Act/Conv/3_R09.act")
PedSetActionNode(gEnemy02, "/Global/3_R09/Animations/Jocks/Casey01", "Act/Conv/3_R09.act")
PedSetActionNode(gEnemy02, "/Global/3_R09/Animations/Jocks/Casey02", "Act/Conv/3_R09.act")
PedSetActionNode(gEnemy03, "/Global/3_R09/Animations/Dropouts/Dropouts04", "Act/Conv/3_R09.act")
PedSetActionNode(gEnemy03, "/Global/3_R09/Animations/Preppies/Preppies01", "Act/Conv/3_R09.act")
PedSetActionNode(gEnemy03, "/Global/3_R09/Animations/Preppies/Preppies03", "Act/Conv/3_R09.act")
PedSetActionNode(gFatgirl, "/Global/Chap5Trans/Cheering/CheerGirl3/CheerGirl11", "Act/Conv/Chap5Trans.act")
PedSetActionNode(gFatty, "/Global/1_08/1_08_Fatty", "Act/Conv/1_08.act")
PedSetActionNode(gFatty, "/Global/1_08/1_08_RollDice", "Act/Conv/1_08.act")
PedSetActionNode(gFatty, "/Global/1_08/1_08_RollDice/Idle", "Act/Conv/1_08.act")
PedSetActionNode(gFatty, "/Global/4_02/AlgieCower/Cower_Start", "Act/Conv/4_02.act")
PedSetActionNode(gFatty, "/Global/N_Striker_A", "Act/Anim/N_Striker_A.act")
PedSetActionNode(gFirstEventPed, "/Global/WProps/PropInteract", "Act/WProps.act")
PedSetActionNode(gGalloway, "/Global/3_S11/NIS_Animations/OUTRO/Galloway/Galloway01", "Act/Conv/3_S11.act")
PedSetActionNode(gGary, "/Global/1_02/PointAtPlayer", "Act/Conv/1_02.act")
PedSetActionNode(gGary, "/Global/1_08/ShortIdle", "Act/Conv/1_08.act")
PedSetActionNode(gGary, "/Global/1_10_anims/Gary/KeyPickup", "Act/Anim/1_10.act")
PedSetActionNode(gGary, "/Global/1_10_anims/Gary/PointAtSwitch", "Act/Anim/1_10.act")
PedSetActionNode(gGary, "/Global/6_02/GaryCrazy/GoOff", "Act/Conv/6_02.act")
PedSetActionNode(gGary, "/Global/6_B/AdjustGravity", "Act/Conv/6_B.act")
PedSetActionNode(gGary, "/Global/HitTree/Standing/PostHit/BellyUp/OnGroundBounce/BounceLegsUp_L", "Act/HitTree.act")
PedSetActionNode(gGary, "/Global/Nemesis", "Act/Anim/Nemesis.act")
PedSetActionNode(gGary, "/Global/Nemesis/Default_KEY/Idle", "Act/Anim/Nemesis.act")
PedSetActionNode(gGary, "/Global/Nemesis/Special/Crouch/Crouch", "Act/Anim/Nemesis.act")
PedSetActionNode(gGary, "/Global/Nemesis/Special/GarySpecialGrapple", "Act/Anim/Nemesis.act")
PedSetActionNode(gGary, "/Global/Nemesis/Special/WheelBarrowInteract", "Act/Anim/Nemesis.act")
PedSetActionNode(gGary, "/Global/WProps/Peds/ScriptedPropInteract", "Act/WProps.act")
PedSetActionNode(gGas, "/Global/5_02/animations/GasolinePour/Stop", "Act/conv/5_02.act")
PedSetActionNode(gGreaser1, "/Global/3_S10/NISend/Greaser1", "Act/Conv/3_S10.act")
PedSetActionNode(gGreaser1, "/Global/5_02/animations/Greasers/Vance/Vance01", "Act/Conv/5_02.act")
PedSetActionNode(gGreaser1, "/Global/5_02/animations/Greasers/Vance/Vance02", "Act/Conv/5_02.act")
PedSetActionNode(gGreaser2, "/Global/3_S10/NISend/Greaser2", "Act/Conv/3_S10.act")
PedSetActionNode(gHattrickSpeech[i][1], "/Global/1_S01/1_S01_Stand_Talking/TalkingLoops", "Act/Conv/1_S01.act")
PedSetActionNode(gHobo, "/Global/1_06/HoboFly", "Act/Conv/1_06.act")
PedSetActionNode(gHobo, "/Global/1_06/HoboIdleCycle", "Act/Conv/1_06.act")
PedSetActionNode(gInOrderly01, "/Global/3_S11/3_S11_O_P_Struggle/3_S11_O_Struggle_Idle", "Act/Conv/3_S11.act")
PedSetActionNode(gInOrderly01, "/Global/3_S11/3_S11_O_P_Struggle/3_S11_O_Struggle_Idle/3_S11_O_Struggle_Break", "Act/Conv/3_S11.act")
PedSetActionNode(gInPatient, "/Global/3_S11/3_S11_O_P_Struggle/3_S11_P_Struggle_Idle", "Act/Conv/3_S11.act")
PedSetActionNode(gInPatient, "/Global/3_S11/3_S11_O_P_Struggle/3_S11_P_Struggle_Idle/3_S11_P_Struggle_Break", "Act/Conv/3_S11.act")
PedSetActionNode(gJohnny, "/Global/5_03/5_03_NIS_Gateclose/Johnny/Johnny01", "Act/Conv/5_03.act")
PedSetActionNode(gJohnny, "/Global/5_03/5_03_NIS_Outro/Johnny/Johnny01", "Act/Conv/5_03.act")
PedSetActionNode(gJohnny, "/Global/5_03/5_03_NIS_Outro/Johnny/Johnny02", "Act/Conv/5_03.act")
PedSetActionNode(gJohnny, "/Global/5_03/5_03_NIS_Outro/Johnny/Johnny03", "Act/Conv/5_03.act")
PedSetActionNode(gJohnny, "/Global/5_03/5_03_Reset", "Act/Conv/5_03.act")
PedSetActionNode(gJohnny, "/Global/Chap5Trans/Cheering/CheerCool2/CheerCool08", "Act/Conv/Chap5Trans.act")
PedSetActionNode(gJohnnyV, "/Global/G_Johnny", "Act/Anim/G_Johnny.act")
PedSetActionNode(gJohnnyV, "/Global/G_Johnny/Cinematic/ThroatGrab", "Act/Anim/G_Johnny.act")
PedSetActionNode(gJV_OnBike, "/Global/Vehicles/Bikes/ExecuteNodes/Attacks/LeadPipe/SwingLeftExec", "Act/Vehicles.act")
PedSetActionNode(gJV_OnBike, "/Global/Vehicles/Bikes/ExecuteNodes/Attacks/LeadPipe/SwingRightExec", "Act/Vehicles.act")
PedSetActionNode(gJV_OnBike, "/Global/Vehicles/Bikes/ScriptCalls/3B_JohnnyVincent/Magnetized", "Act/Vehicles.act")
PedSetActionNode(gKeyMaster, "/Global/2_03Cnv/animations/Lock_Picking/Lock_Picking_Loop_To_Idle", gActFile)
PedSetActionNode(gKeyMaster1, "/Global/2_03Cnv/animations/Lock_Picking/Lock_Picking_Loop", gActFile)
PedSetActionNode(gKeyMaster2, "/Global/2_03Cnv/animations/Lock_Picking/Lock_Picking_Loop", gActFile)
PedSetActionNode(gLackey[10].ped, "/Global/1_08/1_08_Prefect/1_08_Idle", "Act/Conv/1_08.act")
PedSetActionNode(gLackey[10].ped, "/Global/1_08/1_08_Prefect/1_08_LookAround", "Act/Conv/1_08.act")
PedSetActionNode(gLackey[10].ped, "/Global/1_08/ShortIdle", "Act/Conv/1_08.act")
PedSetActionNode(gLackey[20].ped, "/Global/1_08/PatrolMonitor", "Act/Conv/1_08.act")
PedSetActionNode(gLackey[8].ped, "/Global/1_08/CafeteriaLady/MonitorOnce/MonitorOnce", "Act/Conv/1_08.act")
PedSetActionNode(gLackey[8].ped, "/Global/1_08/CafeteriaLady/Point/Point", "Act/Conv/1_08.act")
PedSetActionNode(gLackey[8].ped, "/Global/1_08/CafeteriaLady/PointWarn", "Act/Conv/1_08.act")
PedSetActionNode(gLackey[8].ped, "/Global/1_08/CafeteriaLady/Resume/Resume", "Act/Conv/1_08.act")
PedSetActionNode(gLackey[9].ped, "/Global/Generic/GenericBathroomMirror", "Act/Anim/GenericSequences.act")
PedSetActionNode(gLeon, "/Global/5_02/animations/RatPacking/Leon", "Act/Conv/5_02.act")
PedSetActionNode(gLuis, "/Global/AI/WeaponActions/WeaponActions/RangedWeaponActions/AmmoCheck/DeEquipWeapon", "Act/Ai/Ai.act")
PedSetActionNode(gLuis, "/Global/KeepUps/IdleAnimations/PlayerFail", "Act/KeepUps.act")
PedSetActionNode(gLuis, "/Global/KeepUps/IdleAnimations/PlayerWin", "Act/KeepUps.act")
PedSetActionNode(gLuis, "/Global/KeepUps/IdleAnimations/WalkTOWall", "Act/KeepUps.act")
PedSetActionNode(gLuis, "/Global/KeepUps/Keepups", "Act/KeepUps.act")
PedSetActionNode(gMandy, "/Global/1_08/1_08_MandyCollpase/Dooit", "Act/Conv/1_08.act")
PedSetActionNode(gMandy, "/Global/1_08/InteractWithToilet", "Act/Conv/1_08.act")
PedSetActionNode(gMandy, "/Global/1_S01/1_S01_Bathroom/1_S01_Bathroom_Loop", "Act/Conv/1_S01.act")
PedSetActionNode(gMandy, "/Global/1_S01/ClearNode", "Act/Conv/1_S01.act")
PedSetActionNode(gMandy, "/Global/Chap5Trans/Cheering/CheerGirl2/CheerGirl07", "Act/Conv/Chap5Trans.act")
PedSetActionNode(gMandy, "/Global/WProps/Peds/ScriptedPropInteract", "Act/WProps.act")
PedSetActionNode(gMandyArrived, "/Global/5_04/MandyStand/MandyFreak", "Act/Conv/5_04.act")
PedSetActionNode(gMelvin, "/Global/2_S04/Anim/MelvinCheers", "Act/Conv/2_S04.act")
PedSetActionNode(gMsPhillips, "/Global/3_S11/NIS_Animations/Ms_Phillips/Ms_Phillips01", "Act/Conv/3_S11.act")
PedSetActionNode(gMsPhillips, "/Global/3_S11/NIS_Animations/Ms_Phillips/Ms_Phillips02", "Act/Conv/3_S11.act")
PedSetActionNode(gMsPhillips, "/Global/3_S11/NIS_Animations/Ms_Phillips/Ms_Phillips03", "Act/Conv/3_S11.act")
PedSetActionNode(gMsPhillips, "/Global/3_S11/NIS_Animations/OUTRO/Phillips/Phillips01", "Act/Conv/3_S11.act")
PedSetActionNode(gNerd01, "/Global/3_R09/Animations/Nerds/Nerds02", "Act/Conv/3_R09.act")
PedSetActionNode(gNerd01, "/Global/3_R09/Animations/Nerds/Nerds03", "Act/Conv/3_R09.act")
PedSetActionNode(gNerd02, "/Global/3_R09/Animations/Nerds/Nerds01", "Act/Conv/3_R09.act")
PedSetActionNode(gNerd03, "/Global/3_R09/Animations/Nerds/Nerds01", "Act/Conv/3_R09.act")
PedSetActionNode(gNerds[1].id, "/Global/404Conv/Nerds/Dance1", "Act/Conv/4_04.act")
PedSetActionNode(gNerds[2].id, "/Global/404Conv/Give", "Act/Conv/4_04.act")
PedSetActionNode(gNerds[2].id, "/Global/404Conv/Nerds/Dance2", "Act/Conv/4_04.act")
PedSetActionNode(gObserver, "/Global/5_02/animations/StepBackMoshOut", "Act/conv/5_02.act")
PedSetActionNode(gord, "/Global/3_01/Anims/Break", "Act/Conv/3_01.act")
PedSetActionNode(gord, "/Global/3_01/Anims/FlowerGive/FlowerGive", "Act/Conv/3_01.act")
PedSetActionNode(gPeanut, "/Global/3_06/GreaserIdles", "Act/Conv/3_06.act")
PedSetActionNode(gPeanut, "/Global/3_06/IdleOneFrame", "Act/Conv/3_06.act")
PedSetActionNode(gPeter, "/Global/1_03/animations/PeterFistShake/end", "Act/Conv/1_03.act")
PedSetActionNode(gPeter, "/Global/1_03/animations/PeterFistShake/FistShakeEnd", "Act/Conv/1_03.act")
PedSetActionNode(gPeter, "/Global/1_03/animations/PeterFistShake/Init", "Act/Conv/1_03.act")
PedSetActionNode(gPeter, "/Global/1_03/animations/PeterFistShake/PeterHit", "Act/Conv/1_03.act")
PedSetActionNode(gPeter, "/Global/3_B/Animation/Crouch/Crouch", "Act/Conv/3_B.act")
PedSetActionNode(gPeter, "/Global/3_B/Animation/Stand/Stand", "Act/Conv/3_B.act")
PedSetActionNode(gPeter, "/Global/3_B/NIS/Peter/Peter01", "Act/Conv/3_B.act")
PedSetActionNode(gPeter, "/Global/3_B/PeteyUseCrane/GetInAndUseCrane", "Act/Conv/3_B.act")
PedSetActionNode(gPeter, "/Global/Chap5Trans/Cheering/CheerGen3/CheerGen08", "Act/Conv/Chap5Trans.act")
PedSetActionNode(gPhillips, "/Global/Chap5Trans/Cheering/Cheer_MsPhillips/Cheer_MsPhillips01", "Act/Conv/Chap5Trans.act")
PedSetActionNode(gPlayer, "//Global/3_R09/Animations/LoadBrocket/RemoveRocketsInCase", "Act/Conv/3_R09.act")
PedSetActionNode(gPlayer, "/Global/1_01/WaveToSec", "Act/Conv/1_01.act")
PedSetActionNode(gPlayer, "/Global/1_02/IdleFight/SimpleIdle", "Act/Conv/1_02.act")
PedSetActionNode(gPlayer, "/Global/1_02/NIS/MeetRussell/Jimmy/Jimmy01", "Act/Conv/1_02.act")
PedSetActionNode(gPlayer, "/Global/1_02/NIS/MeetRussell/Jimmy/Jimmy02", "Act/Conv/1_02.act")
PedSetActionNode(gPlayer, "/Global/1_02/NIS/PLAYER_BULLIES/PLAYER01", "Act/Conv/1_02.act")
PedSetActionNode(gPlayer, "/Global/1_02/ShortIdle", "Act/Conv/1_02.act")
PedSetActionNode(gPlayer, "/Global/1_02B/Victory/Victory", "Act/Conv/1_02B.act")
PedSetActionNode(gPlayer, "/Global/1_03/animations/PlayerPickupSlingshot", "Act/Conv/1_03.act")
PedSetActionNode(gPlayer, "/Global/1_05/Anims/Empty", "Act/Conv/1_05.act")
PedSetActionNode(gPlayer, "/Global/1_06/1_06_Give/Give/GiveHobo_1_06", "Act/Conv/1_06.act")
PedSetActionNode(gPlayer, "/Global/1_06/Failure", "Act/Conv/1_06.act")
PedSetActionNode(gPlayer, "/Global/1_06/PlayerVictory", "Act/Conv/1_06.act")
PedSetActionNode(gPlayer, "/Global/1_07/BackUp", "Act/Conv/1_07.act")
PedSetActionNode(gPlayer, "/Global/1_07/Blank", "Act/Conv/1_07.act")
PedSetActionNode(gPlayer, "/Global/1_07/FakeTry/startOpen", "Act/Conv/1_07.act")
PedSetActionNode(gPlayer, "/Global/1_07/Idle", "Act/Conv/1_07.act")
PedSetActionNode(gPlayer, "/Global/1_07/JimmyTalk02", "Act/Conv/1_07.act")
PedSetActionNode(gPlayer, "/Global/1_07/SK8_Examine", "Act/Conv/1_07.act")
PedSetActionNode(gPlayer, "/Global/1_08/1_08_GiveNotes/1_08_Give/GiveLabNotes1_08", "Act/Conv/1_08.act")
PedSetActionNode(gPlayer, "/Global/1_08/ShortIdle", "Act/Conv/1_08.act")
PedSetActionNode(gPlayer, "/Global/1_09/PlayerPickupSlingshot", "Act/Conv/1_09.act")
PedSetActionNode(gPlayer, "/Global/1_11X1/empty", "Act/Conv/1_11X1.act")
PedSetActionNode(gPlayer, "/Global/1_11X2/Animations/Receive/Take", "Act/Conv/1_11X2.act")
PedSetActionNode(gPlayer, "/Global/1_11X2/Animations/Stop/Stop", "Act/Conv/1_11X2.act")
PedSetActionNode(gPlayer, "/Global/1_11X2/Failure", "Act/Conv/1_11X2.act")
PedSetActionNode(gPlayer, "/Global/1_G1/Anims/GetDiary", "Act/Conv/1_G1.act")
PedSetActionNode(gPlayer, "/Global/1_G1/Anims/Give/GiveBeatrice1_G1", "Act/Conv/1_G1.act")
PedSetActionNode(gPlayer, "/Global/1_G1/Give", "Act/Conv/1_G1.act")
PedSetActionNode(gPlayer, "/Global/1_S01/Animations/GIVE_B/GiveMissPhillips1_S01", "Act/Conv/1_S01.act")
PedSetActionNode(gPlayer, "/Global/1_S01/ClearNode", "Act/Conv/1_S01.act")
PedSetActionNode(gPlayer, "/Global/1_S01/Success", "Act/Conv/1_S01.act")
PedSetActionNode(gPlayer, "/Global/2_01/Anim/Give/GiveEdna_2_01", "Act/Conv/2_01.act")
PedSetActionNode(gPlayer, "/Global/2_01/Anim/GiveItem/Receive", "Act/Conv/2_01.act")
PedSetActionNode(gPlayer, "/Global/2_02_Owner/Anims/GIVE/GiveComicOwner", "Act/Conv/2_02.act")
PedSetActionNode(gPlayer, "/Global/2_06/NISPINKY/Jimmy/Jimmy01", "Act/Conv/2_06.act")
PedSetActionNode(gPlayer, "/Global/2_06/NISPINKY/Jimmy/Jimmy02", "Act/Conv/2_06.act")
PedSetActionNode(gPlayer, "/Global/2_07/CelebrateTrophy", "Act/Conv/2_07.act")
PedSetActionNode(gPlayer, "/Global/2_07/HitHardFront", "Act/Conv/2_07.act")
PedSetActionNode(gPlayer, "/Global/2_08Conv/Idle_Remove", "Act/Conv/2_08.act")
PedSetActionNode(gPlayer, "/Global/2_B/PlayerOnGround/BellyUp", "Act/Conv/2_B.act")
PedSetActionNode(gPlayer, "/Global/2_B/Talking/Player02", "Act/Conv/2_B.act")
PedSetActionNode(gPlayer, "/Global/2_G2/2_G2_Anims/Empty", "Act/Conv/2_G2.act")
PedSetActionNode(gPlayer, "/Global/2_G2/JimmyWaits", "Act/Conv/2_G2.act")
PedSetActionNode(gPlayer, "/Global/3_01/Anims/FailAnim", "Act/Conv/3_01.act")
PedSetActionNode(gPlayer, "/Global/3_01/Anims/GivePhotos/GiveJohnny3_01", "Act/Conv/3_01.act")
PedSetActionNode(gPlayer, "/Global/3_01A/SnowBall/GiveBall/GiveBall", ACTIONFILE)
PedSetActionNode(gPlayer, "/Global/3_01A/SnowBall/RemoveBall", ACTIONFILE)
PedSetActionNode(gPlayer, "/Global/3_04/3_04_End/Jimmy/Jimmy01", "Act/Conv/3_04.act")
PedSetActionNode(gPlayer, "/Global/3_05/Animations/DontHurt", "Act/Conv/3_05.act")
PedSetActionNode(gPlayer, "/Global/3_05/Animations/Give/GiveLola3_05/", "Act/Conv/3_05.act")
PedSetActionNode(gPlayer, "/Global/3_05/Animations/Player/Player01", "Act/Conv/3_05.act")
PedSetActionNode(gPlayer, "/Global/3_05/Animations/Wall_Break", "Act/Conv/3_05.act")
PedSetActionNode(gPlayer, "/Global/3_08/JimmyGetGift/JimmyGetGift", "Act/Conv/3_08.act")
PedSetActionNode(gPlayer, "/Global/3_08/NewSweater", "Act/Conv/3_08.act")
PedSetActionNode(gPlayer, "/Global/3_08/WaveAtSecretary/WaveAtSecretary_Child", "Act/Conv/3_08.act")
PedSetActionNode(gPlayer, "/Global/3_09/Anims/Give/GivePackage_3_09", "Act/Conv/3_09.act")
PedSetActionNode(gPlayer, "/Global/3_B/PlayerFallOffBike", "Act/Conv/3_B.act")
PedSetActionNode(gPlayer, "/Global/3_R09/Animations/Empty", "Act/Conv/3_R09.act")
PedSetActionNode(gPlayer, "/Global/3_R09/Animations/GetBrocketLauncher", "Act/Conv/3_R09.act")
PedSetActionNode(gPlayer, "/Global/3_R09/Animations/LoadBrocket", "Act/Conv/3_R09.act")
PedSetActionNode(gPlayer, "/Global/3_R09/Animations/Player/Comic/Player01", "Act/Conv/3_R09.act")
PedSetActionNode(gPlayer, "/Global/3_R09/Animations/Player/Comic/Player02", "Act/Conv/3_R09.act")
PedSetActionNode(gPlayer, "/Global/3_R09/Animations/Player/Dropouts/Dropouts01", "Act/Conv/3_R09.act")
PedSetActionNode(gPlayer, "/Global/3_R09/Animations/Player/Dropouts/Dropouts02", "Act/Conv/3_R09.act")
PedSetActionNode(gPlayer, "/Global/3_R09/Animations/Player/Greasers/Greasers01", "Act/Conv/3_R09.act")
PedSetActionNode(gPlayer, "/Global/3_R09/Animations/Player/Greasers/Greasers02", "Act/Conv/3_R09.act")
PedSetActionNode(gPlayer, "/Global/3_R09/Animations/Player/Jock/Player02", "Act/Conv/3_R09.act")
PedSetActionNode(gPlayer, "/Global/3_R09/Animations/Player/Jock/PlayerOutro", "Act/Conv/3_R09.act")
PedSetActionNode(gPlayer, "/Global/3_R09/Animations/Player/Nerds/Player01", "Act/Conv/3_R09.act")
PedSetActionNode(gPlayer, "/Global/3_R09/Animations/Player/Preppies/Player01", "Act/Conv/3_R09.act")
PedSetActionNode(gPlayer, "/Global/3_S03/NIS/Player/Player01", "Act/Conv/3_S03.act")
PedSetActionNode(gPlayer, "/Global/3_S10_Tags/TutorialTags/PedPropsActions/DisEngage", "Act/Props/3_S10_Tags.act")
PedSetActionNode(gPlayer, "/Global/3_S11/NIS_Animations/OUTRO/Player/Player01", "Act/Conv/3_S11.act")
PedSetActionNode(gPlayer, "/Global/3_S11/NIS_Animations/Player/Player01", "Act/Conv/3_S11.act")
PedSetActionNode(gPlayer, "/Global/404Conv/Idle", "Act/Conv/4_04.act")
PedSetActionNode(gPlayer, "/Global/404Conv/QuickIdle/Anim", "Act/Conv/4_04.act")
PedSetActionNode(gPlayer, "/Global/404Conv/Take", "Act/Conv/4_04.act")
PedSetActionNode(gPlayer, "/Global/4_01/Anims/GIVE/GiveEarnest_4_01", "Act/Conv/4_01.act")
PedSetActionNode(gPlayer, "/Global/4_03/Anims/Celebrate", "Act/Conv/4_03.act")
PedSetActionNode(gPlayer, "/Global/4_05/Anims/Empty", "Act/Conv/4_05.act")
PedSetActionNode(gPlayer, "/Global/4_05/Anims/StealCostumeCut/Dance", "Act/Conv/4_05.act")
PedSetActionNode(gPlayer, "/Global/4_05/Anims/StealCostumeCut/Kneel", "Act/Conv/4_05.act")
PedSetActionNode(gPlayer, "/Global/4_05/NIS/Jimmy/Jimmy_Pool", "Act/Conv/4_05.act")
PedSetActionNode(gPlayer, "/Global/4_06/Break", "Act/Conv/4_06.act")
PedSetActionNode(gPlayer, "/Global/4_06/NISs/Player/PlayerAlgie", "Act/Conv/4_06.act")
PedSetActionNode(gPlayer, "/Global/4_06/NISs/Player/PlayerBucky", "Act/Conv/4_06.act")
PedSetActionNode(gPlayer, "/Global/4_06/NISs/Player/PlayerCornelius", "Act/Conv/4_06.act")
PedSetActionNode(gPlayer, "/Global/4_06/NISs/Player/PlayerCornelius02", "Act/Conv/4_06.act")
PedSetActionNode(gPlayer, "/Global/4_06/NISs/Player/PlayerMelvin", "Act/Conv/4_06.act")
PedSetActionNode(gPlayer, "/Global/5_01/5_01_Empty", "Act/Conv/5_01.act")
PedSetActionNode(gPlayer, "/Global/5_01/NIS/Player/Player_01", "Act/Conv/5_01.act")
PedSetActionNode(gPlayer, "/Global/5_01/NIS/Player/Player_02", "Act/Conv/5_01.act")
PedSetActionNode(gPlayer, "/Global/5_02/animations/Player/Player01", "Act/Conv/5_02.act")
PedSetActionNode(gPlayer, "/Global/5_02/animations/Player/Player02", "Act/Conv/5_02.act")
PedSetActionNode(gPlayer, "/Global/5_02/animations/Player/Player03", "Act/Conv/5_02.act")
PedSetActionNode(gPlayer, "/Global/5_03/5_03_NIS_Gateclose/Jimmy/Jimmy01", "Act/Conv/5_03.act")
PedSetActionNode(gPlayer, "/Global/5_03/5_03_NIS_Outro/Jimmy/Jimmy01", "Act/Conv/5_03.act")
PedSetActionNode(gPlayer, "/Global/5_03/5_03_NIS_Outro/Jimmy/Jimmy02", "Act/Conv/5_03.act")
PedSetActionNode(gPlayer, "/Global/5_03/5_03_NIS_Outro/Jimmy/Jimmy03", "Act/Conv/5_03.act")
PedSetActionNode(gPlayer, "/Global/5_04/Idle", "Act/Conv/5_04.act")
PedSetActionNode(gPlayer, "/Global/5_04/PlayerScratch", "Act/Conv/5_04.act")
PedSetActionNode(gPlayer, "/Global/5_05/NIS/Give/GiveZoe_5_05/Give_Attempt", "Act/Conv/5_05.act")
PedSetActionNode(gPlayer, "/Global/5_05/NIS/Player/Player01", "Act/Conv/5_05.act")
PedSetActionNode(gPlayer, "/Global/5_05/NIS/Player/Player02", "Act/Conv/5_05.act")
PedSetActionNode(gPlayer, "/Global/5_05/Success", "Act/Conv/5_05.act")
PedSetActionNode(gPlayer, "/Global/5_07a/NIS/Player/Player01", "Act/Conv/5_07a.act")
PedSetActionNode(gPlayer, "/Global/5_07a/NIS/Player/Player02", "Act/Conv/5_07a.act")
PedSetActionNode(gPlayer, "/Global/5_07a/NIS/RecruitRussell/Jimmy/JimmyKnock", "Act/Conv/5_07A.act")
PedSetActionNode(gPlayer, "/Global/5_B/Reactions/SteamReaction", "Act/Conv/5_B.act")
PedSetActionNode(gPlayer, "/Global/5_G5/Empty", "Act/Conv/5_G5.act")
PedSetActionNode(gPlayer, "/Global/5_G5/Failure", "Act/Conv/5_G5.act")
PedSetActionNode(gPlayer, "/Global/5_G5/NIS_Anims/Jimmy/Jimmy_01", "Act/Conv/5_G5.act")
PedSetActionNode(gPlayer, "/Global/5_G5/NIS_Anims/Jimmy/Jimmy_02", "Act/Conv/5_G5.act")
PedSetActionNode(gPlayer, "/Global/5_G5/Success", "Act/Conv/5_G5.act")
PedSetActionNode(gPlayer, "/Global/6_02/Blank", "Act/Conv/6_02.act")
PedSetActionNode(gPlayer, "/Global/6_02/FactionLeaderNIS/Player/Greasers/Player01", "Act/Conv/6_02.act")
PedSetActionNode(gPlayer, "/Global/6_02/FactionLeaderNIS/Player/Greasers/Player02", "Act/Conv/6_02.act")
PedSetActionNode(gPlayer, "/Global/6_02/FactionLeaderNIS/Player/Jocks/Player02", "Act/Conv/6_02.act")
PedSetActionNode(gPlayer, "/Global/6_02/FactionLeaderNIS/Player/Nerds/Player02", "Act/Conv/6_02.act")
PedSetActionNode(gPlayer, "/Global/6_02/FactionLeaderNIS/Player/Nerds/Player03", "Act/Conv/6_02.act")
PedSetActionNode(gPlayer, "/Global/6_02/FactionLeaderNIS/Player/Preps/Player01", "Act/Conv/6_02.act")
PedSetActionNode(gPlayer, "/Global/6_02/GaryNIS/Player/Blank", "Act/Conv/6_02.act")
PedSetActionNode(gPlayer, "/Global/6_02/GaryNIS/Player/Player02", "Act/Conv/6_02.act")
PedSetActionNode(gPlayer, "/Global/6_02/GaryNIS/Player/PlayerLookAround", "Act/Conv/6_02.act")
PedSetActionNode(gPlayer, "/Global/6_02/PlayerGetUp/GetUp", "Act/Conv/6_02.act")
PedSetActionNode(gPlayer, "/Global/6_02/Russell_NIS/Player/Player02", "Act/Conv/6_02.act")
PedSetActionNode(gPlayer, "/Global/6_02/RussellAlley/Jimmy/Jimmy01", "Act/Conv/6_02.act")
PedSetActionNode(gPlayer, "/Global/6_02/SchoolGatesNIS/Jimmy/Jimmy01", "Act/Conv/6_02.act")
PedSetActionNode(gPlayer, "/Global/6_02/SchoolGatesNIS/Jimmy/Jimmy02", "Act/Conv/6_02.act")
PedSetActionNode(gPlayer, "/Global/6_02/WonderNIS/Receive", "Act/Conv/6_02.act")
PedSetActionNode(gPlayer, "/Global/6_B/AdjustGravity", "Act/Conv/6_B.act")
PedSetActionNode(gPlayer, "/Global/6_B/Failure", "Act/Conv/6_B.act")
PedSetActionNode(gPlayer, "/Global/6_B/GravityReset", "Act/Conv/6_B.act")
PedSetActionNode(gPlayer, "/Global/Ambient/MissionSpec/BoxingCheer", "Act/Anim/Ambient.act")
PedSetActionNode(gPlayer, "/Global/Ambient/MissionSpec/BoxingCheer/BoxingEnding", "Act/Anim/Ambient.act")
PedSetActionNode(gPlayer, "/Global/Ambient/MissionSpec/Clothing/Finished", "Act/Anim/Ambient.act")
PedSetActionNode(gPlayer, "/Global/Ambient/MissionSpec/Clothing/TryClothesAnims", "Act/Anim/Ambient.act")
PedSetActionNode(gPlayer, "/Global/Ambient/MissionSpec/Clothing/TryingOn", "Act/Anim/Ambient.act")
PedSetActionNode(gPlayer, "/Global/Ambient/MissionSpec/PlayerIdle/IdleOneFrame", "Act/Anim/Ambient.act")
PedSetActionNode(gPlayer, "/Global/Ambient/Scripted/CowDance/CowDanceMusicStart", CowAct)
PedSetActionNode(gPlayer, "/Global/Ambient/Scripted/CowDance/CowDanceMusicStop", CowAct)
PedSetActionNode(gPlayer, "/Global/Ambient/Scripted/Empty/EmptyNode/TrueEmptyNode", "Act/Anim/Ambient.act")
PedSetActionNode(gPlayer, "/Global/Ambient/Scripted/UseSoccerGoal2/UseSoccerGoalEnd", "Act/Anim/Ambient.act")
PedSetActionNode(gPlayer, "/Global/Ambient/Scripted/UseSoccerGoal2/UseSoccerGoalStart", "Act/Anim/Ambient.act")
PedSetActionNode(gPlayer, "/Global/C2_ArtClass/Clear", "Act/Conv/C2.act")
PedSetActionNode(gPlayer, "/Global/C2_ArtClass/PlayerFail", "Act/Conv/C2.act")
PedSetActionNode(gPlayer, "/Global/C2_ArtClass/PlayerVictory/PlayerVictory01", "Act/Conv/C2.act")
PedSetActionNode(gPlayer, "/Global/C31Strt/Clear", "Act/Conv/C3_1.act")
PedSetActionNode(gPlayer, "/Global/C31Strt/PlayerFail", "Act/Conv/C3_1.act")
PedSetActionNode(gPlayer, "/Global/C31Strt/PlayerStretch", "Act/Conv/C3_1.act")
PedSetActionNode(gPlayer, "/Global/C31Strt/PlayerTaunt", "Act/Conv/C3_1.act")
PedSetActionNode(gPlayer, "/Global/C31Strt/PlayerVictory", "Act/Conv/C3_1.act")
PedSetActionNode(gPlayer, "/Global/C4/Animations/CycleClear", "Act/Conv/C4.act")
PedSetActionNode(gPlayer, "/Global/C4/Animations/Failure", "Act/Conv/C4.act")
PedSetActionNode(gPlayer, "/Global/C4/Animations/StartAnimations", "Act/Conv/C4.act")
PedSetActionNode(gPlayer, "/Global/C5/Clear", "Act/Conv/C5.act")
PedSetActionNode(gPlayer, "/Global/C5/Failure", "Act/Conv/C5.act")
PedSetActionNode(gPlayer, "/Global/C6/Animations/CycleClear", ActionAnimFile)
PedSetActionNode(gPlayer, "/Global/C6/Animations/Failure", "Act/Conv/C6.act")
PedSetActionNode(gPlayer, "/Global/C6/Clear", "Act/Conv/C6.act")
PedSetActionNode(gPlayer, "/Global/C6/Clear", ActionAnimFile)
PedSetActionNode(gPlayer, "/Global/C7/PlayerFail", "Act/Conv/C7.act")
PedSetActionNode(gPlayer, "/Global/C7/PlayerSit", "Act/Conv/C7.act")
PedSetActionNode(gPlayer, "/Global/C7/PlayerSit/PlayerStand", "Act/Conv/C7.act")
PedSetActionNode(gPlayer, "/Global/C7/PlayerVictory/PlayerVictory03", "Act/Conv/C7.act")
PedSetActionNode(gPlayer, "/Global/C7/Release", "Act/Conv/C7.act")
PedSetActionNode(gPlayer, "/Global/C8/PlayerFail", "Act/Conv/C8.act")
PedSetActionNode(gPlayer, "/Global/C8/PlayerVictory/PlayerVictory03", "Act/Conv/C8.act")
PedSetActionNode(gPlayer, "/Global/C8/Release", "Act/Conv/C8.act")
PedSetActionNode(gPlayer, "/Global/C9/PlayerFail", "Act/Conv/C9.act")
PedSetActionNode(gPlayer, "/Global/C9/PlayerSit", "Act/Conv/C9.act")
PedSetActionNode(gPlayer, "/Global/C9/PlayerSit/PlayerStand", "Act/Conv/C9.act")
PedSetActionNode(gPlayer, "/Global/C9/PlayerVictory/PlayerVictory03", "Act/Conv/C9.act")
PedSetActionNode(gPlayer, "/Global/C9/Release", "Act/Conv/C9.act")
PedSetActionNode(gPlayer, "/Global/Chap5Trans/MakeOut/Makeout/GrappleAttempt", "Act/Player.act")
PedSetActionNode(gPlayer, "/Global/DodgeballGame/Anims/Unlock/Charge", "Act/Conv/DodgeballGame.act")
PedSetActionNode(gPlayer, "/Global/DodgeballGame/Anims/Unlock/Charge/Release/Release", "Act/Conv/DodgeballGame.act")
PedSetActionNode(gPlayer, "/Global/G_Johnny/Cinematic/Jimmy/BellyUp/BellyUpGetUp/BellyUpGetUpGetUp", "Act/Anim/G_Johnny.act")
PedSetActionNode(gPlayer, "/Global/G_Johnny/Cinematic/ThroatGrab/Dash/ThroatGrab/ThroatGrab_Rcv", "Act/Anim/G_Johnny.act")
PedSetActionNode(gPlayer, "/Global/Give1_07/Give_Attempt", "Act/Gifts/Give107.act")
PedSetActionNode(gPlayer, "/Global/Give2G2/Give_Attempt", "Act/Gifts/Give2G2.act")
PedSetActionNode(gPlayer, "/Global/Give2S04/Give_Attempt", "Act/Gifts/Give2S04.act")
PedSetActionNode(gPlayer, "/Global/GiveBagmrbls/Give_Attempt", "Act/Gifts/GiveBagmrbls.act")
PedSetActionNode(gPlayer, "/Global/GiveSuperGlue/Give_Attempt", "Act/Gifts/GiveSuperGlue.act")
PedSetActionNode(gPlayer, "/Global/GiveWftbomb/Give_Attempt", "Act/Gifts/GiveWftbomb.act")
PedSetActionNode(gPlayer, "/Global/GoKart/Animations/OutOfCarFail", "Act/Conv/GoKart.act")
PedSetActionNode(gPlayer, "/Global/GraffitiCleanup/TossBrush/Toss", "Act/Anim/GraffitiCleanup.act")
PedSetActionNode(gPlayer, "/Global/HighStriker/HammerActions/End/EndDropHammer", "Act/Anim/HighStriker.act")
PedSetActionNode(gPlayer, "/Global/HighStriker/HammerActions/HammerLiftHold", "Act/Anim/HighStriker.act")
PedSetActionNode(gPlayer, "/Global/HighStriker/HammerActions/HammerSwings/Fail", "Act/Anim/HighStriker.act")
PedSetActionNode(gPlayer, "/Global/HighStriker/HammerActions/HammerSwings/Medium", "Act/Anim/HighStriker.act")
PedSetActionNode(gPlayer, "/Global/HighStriker/HammerActions/HammerSwings/Strong", "Act/Anim/HighStriker.act")
PedSetActionNode(gPlayer, "/Global/HighStriker/HammerActions/HammerSwings/Weak", "Act/Anim/HighStriker.act")
PedSetActionNode(gPlayer, "/Global/HighStriker/HammerActions/Start/Start", "Act/Anim/HighStriker.act")
PedSetActionNode(gPlayer, "/Global/HitTree/KnockOuts/BoxingSpecialKO/BoxingSpeicalKO/Knockout/KnockoutRecover", "Act/HitTree.act")
PedSetActionNode(gPlayer, "/Global/HitTree/Standing/Melee/Unique/ROCHAMBEAU/Front", "Act/HitTree.act")
PedSetActionNode(gPlayer, "/Global/HitTree/Standing/PostHit/BellyUp/OnGroundBounce/BounceLegsUp_L", "Act/HitTree.act")
PedSetActionNode(gPlayer, "/Global/KeepUps/IdleAnimations/PlayerIdle", "Act/KeepUps.act")
PedSetActionNode(gPlayer, "/Global/KeepUps/IdleAnimations/PlayerWin", "Act/KeepUps.act")
PedSetActionNode(gPlayer, "/Global/KeepUps/Keepups", "Act/KeepUps.act")
PedSetActionNode(gPlayer, "/Global/KeepUps/Sequences/Fail", "Act/KeepUps.act")
PedSetActionNode(gPlayer, "/Global/Ladder/PedPropsActions/DisEngage/reset_flags", "Act/Props/Ladder.act")
PedSetActionNode(gPlayer, "/Global/MG_BallToss/BaseBall/GiveBall/GiveBall", "Act/Anim/MG_BallToss.act")
PedSetActionNode(gPlayer, "/Global/MG_BallToss/BaseBall/RemoveBall", "Act/Anim/MG_BallToss.act")
PedSetActionNode(gPlayer, "/Global/MGBaseballToss/Animations/Fail", "Act/Conv/MGBaseballToss.act")
PedSetActionNode(gPlayer, "/Global/MGBaseballToss/Animations/Victory", "Act/Conv/MGBaseballToss.act")
PedSetActionNode(gPlayer, "/Global/MGMusic/Animations/Failure", ActionAnimFile)
PedSetActionNode(gPlayer, "/Global/MGSocPen/PlayerReactions/PlayerBadFailure", "Act/Conv/MGSocPen.act")
PedSetActionNode(gPlayer, "/Global/MGSocPen/PlayerReactions/PlayerGoodVictory", "Act/Conv/MGSocPen.act")
PedSetActionNode(gPlayer, "/Global/MGSocPen/UseSoccerGoal3Old/UseSoccerGoalStart", "Act/Conv/MGSocPen.act")
PedSetActionNode(gPlayer, "/Global/MGSocPen/UseSoccerGoalEnd", "Act/Conv/MGSocPen.act")
PedSetActionNode(gPlayer, "/Global/Player", "Act/Player.act")
PedSetActionNode(gPlayer, "/Global/Player/Default_KEY/Default", "Act/Player.act")
PedSetActionNode(gPlayer, "/Global/Player/Gifts/Errand_BUS_Detective", "Act/Player.act")
PedSetActionNode(gPlayer, "/Global/Player/Gifts/Errand_BUS_Drugs", "Act/Player.act")
PedSetActionNode(gPlayer, "/Global/Player/Gifts/Errand_BUS_Jacket", "Act/Player.act")
PedSetActionNode(gPlayer, "/Global/Player/Gifts/Errand_BUS_PhotoCash", "Act/Player.act")
PedSetActionNode(gPlayer, "/Global/Player/Gifts/Errand_IND_Package", "Act/Player.act")
PedSetActionNode(gPlayer, "/Global/Player/Gifts/Errand_IND_PACKGET", "Act/Player.act")
PedSetActionNode(gPlayer, "/Global/Player/Gifts/Errand_IND_PackMon", "Act/Player.act")
PedSetActionNode(gPlayer, "/Global/Player/Gifts/Errand_RIC_Crab", "Act/Player.act")
PedSetActionNode(gPlayer, "/Global/Player/Gifts/Errand_RIC_LostBear", "Act/Player.act")
PedSetActionNode(gPlayer, "/Global/Player/Gifts/Errand_RIC_Mailman", "Act/Player.act")
PedSetActionNode(gPlayer, "/Global/Player/Gifts/Errand_SCH_ADMIRE1", "Act/Player.act")
PedSetActionNode(gPlayer, "/Global/Player/Gifts/Errand_SCH_ADMIRE2", "Act/Player.act")
PedSetActionNode(gPlayer, "/Global/Player/Gifts/Errand_SCH_Tutorial", "Act/Player.act")
PedSetActionNode(gPlayer, "/Global/Player/Gifts/Errand_SCH_Tutorial2", "Act/Player.act")
PedSetActionNode(gPlayer, "/Global/Player/Gifts/GetMoney", "Act/Player.act")
PedSetActionNode(gPlayer, "/Global/Player/Gifts/GiveChocolates", "Act/Player.act")
PedSetActionNode(gPlayer, "/Global/Player/Gifts/GiveChocolates/GiveChocolateBox", "Act/Player.act")
PedSetActionNode(gPlayer, "/Global/Player/JumpActions/Jump/Falling/Fall/Falling/Fall_No_Damage", "act/player.act")
PedSetActionNode(gPlayer, "/Global/Player/JumpActions/Jump/IdleJump", "Act/Player.act")
PedSetActionNode(gPlayer, "/Global/Player/Social_Actions/Give/UseOverride", "Act/Player.act")
PedSetActionNode(gPlayer, "/Global/Player/Social_Actions/MakeOut/Makeout/GrappleAttempt", "Act/Player.act")
PedSetActionNode(gPlayer, "/Global/PriOff/Jimmy/Jimmy01", "Act/Conv/PriOff.act")
PedSetActionNode(gPlayer, "/Global/pxSitStl/Disengage/GetUp/GetUpChoice/GetUp", "Act/Props/pxSitStl.act")
PedSetActionNode(gPlayer, "/Global/Tags/PedPropsActions/PerformTag/DrawMedTag/ParametricTagging/Finished", "Act/Prop/Tags.act")
PedSetActionNode(gPlayer, "/Global/TattooShop/Animations/Idle", "Act/Anim/TattooShop.act")
PedSetActionNode(gPlayer, "/Global/TattooShop/Animations/LeftArm/4ArmHi", "Act/Anim/TattooShop.act")
PedSetActionNode(gPlayer, "/Global/TattooShop/Animations/LeftArm/4ArmLow", "Act/Anim/TattooShop.act")
PedSetActionNode(gPlayer, "/Global/TattooShop/Animations/LeftArm/Shoulder", "Act/Anim/TattooShop.act")
PedSetActionNode(gPlayer, "/Global/TattooShop/Animations/RightArm/4ArmHi", "Act/Anim/TattooShop.act")
PedSetActionNode(gPlayer, "/Global/TattooShop/Animations/RightArm/4ArmLow", "Act/Anim/TattooShop.act")
PedSetActionNode(gPlayer, "/Global/TattooShop/Animations/RightArm/Shoulder", "Act/Anim/TattooShop.act")
PedSetActionNode(gPlayer, "/Global/Vehicles/Bikes/ScriptCalls/RaceVictory", "Act/Vehicles.act")
PedSetActionNode(gPlayer, "/Global/Vehicles/Cars/ExecuteNodes/GoKartFailure/Failure", "Act/Vehicles.act")
PedSetActionNode(gPlayer, "/Global/Vehicles/Cars/ExecuteNodes/GoKartVictory/Victory", "Act/Vehicles.act")
PedSetActionNode(gPlayer, "/Global/Vehicles/SkateBoard/Locomotion/Ride/Coast", "Act/Vehicles.act")
PedSetActionNode(gPlayer, "/Global/Vehicles/Test/Throw", "Act/Vehicles.act")
PedSetActionNode(gPlayer, "/Global/Weapons/PickUpActions/Pickup", "Act/Weapons.act")
PedSetActionNode(gPlayer, "/Global/Weapons/SelectActions/WeaponSelect/Deselect/DropDirect/PutAway", "Act/Weapons.act")
PedSetActionNode(gPlayer, "/Global/Weapons/SelectActions/WeaponSelect/Select/Default", "Act/Weapons.act")
PedSetActionNode(gPlayer, "/Global/Welcome/Idle", "Act/Conv/Store.act")
PedSetActionNode(gPlayer, "/Global/WPCANNON/Disengage", "Act/Props/WPCANNON.act")
PedSetActionNode(gPlayer, "/Global/WPCANNON/Disengage/null", "Act/Props/WPCANNON.act")
PedSetActionNode(gPlayer, "/Global/WProps/Peds/ScriptedPropInteract", "Act/WProps.act")
PedSetActionNode(gPlayer, "/Global/WProps/PropInteract", "Act/WProps.act")
PedSetActionNode(gPlayer, "/Global/WrestlingACT/Default_KEY/Locomotion_Move/CombatLoco/StrafeIdle", "Act/Anim/WrestlingACT.act")
PedSetActionNode(gPlayer, anims[L3_2].anim, ActionAnimFile)
PedSetActionNode(gPlayer, anims[L3_2].fail_anim, ActionAnimFile)
PedSetActionNode(gPlayer, animsroot .. "CustomIdle", ActionAnimFile)
PedSetActionNode(gPlayer, animsroot .. "Failure", "Act/Conv/C6.act")
PedSetActionNode(gPlayer, animsroot .. "Failure", ActionAnimFile)
PedSetActionNode(gPlayer, animsroot .. "Sticks/DrumSticks", ActionAnimFile)
PedSetActionNode(gPlayer, animsroot .. "Sticks/Maracas", ActionAnimFile)
PedSetActionNode(gPlayer, animsroot .. "Sticks/RemoveSticks", ActionAnimFile)
PedSetActionNode(gPlayer, animsroot .. "Sticks/Timpani", ActionAnimFile)
PedSetActionNode(gPlayer, animsroot .. "Sticks/xylophone", ActionAnimFile)
PedSetActionNode(gPlayer, animsroot .. "Success", "Act/Conv/C4.act")
PedSetActionNode(gPlayer, animsroot .. "Success", ActionAnimFile)
PedSetActionNode(gPlayer, cAction.anim, ActionAnimFile)
PedSetActionNode(gPlayer, cAction.fail_anim, ActionAnimFile)
PedSetActionNode(gPlayer, CowBotch, CowAct)
PedSetActionNode(gPlayer, CowCircle, CowAct)
PedSetActionNode(gPlayer, CowCross, CowAct)
PedSetActionNode(gPlayer, CowFail, CowAct)
PedSetActionNode(gPlayer, CowIdle, CowAct)
PedSetActionNode(gPlayer, CowPass, CowAct)
PedSetActionNode(gPlayer, CowSquare, CowAct)
PedSetActionNode(gPlayer, CowTriangle, CowAct)
PedSetActionNode(gPlayer, FailAnimTable[1], ActionAnimFile)
PedSetActionNode(gPlayer, FailAnimTable[2], ActionAnimFile)
PedSetActionNode(gPlayer, gChangingAnimNode, "Act/Anim/Ambient.act")
PedSetActionNode(gPlayer, gUnlockAnim, "Act/Conv/C6.act")
PedSetActionNode(gPlayer, outnode, ActAnimFile)
PedSetActionNode(gPlayer, tblMasterAnim[iAction].Anim, ActionAnimFile)
PedSetActionNode(gPlayer, unlockAnim, "Act/Conv/C4.act")
PedSetActionNode(gPlayer, unlockAnim, "Act/Conv/C5.act")
PedSetActionNode(gPlayer, victoryAnim, "Act/Conv/C2.act")
PedSetActionNode(gPlayer, victoryAnim, "Act/Conv/C7.act")
PedSetActionNode(gPlayer, victoryAnim, "Act/Conv/C8.act")
PedSetActionNode(gPlayer, victoryAnim, "Act/Conv/C9.act")
PedSetActionNode(gPrefect, "/Global/1_02/NIS/MeetRussell/Hattrick/BLANK", "Act/Conv/1_02.act")
PedSetActionNode(gPrefect, "/Global/1_02/NIS/MeetRussell/Hattrick/Hattrick01", "Act/Conv/1_02.act")
PedSetActionNode(gPrefect, "/Global/1_02/PointAtPlayer", "Act/Conv/1_02.act")
PedSetActionNode(gPrefect, "/Global/1_02/PointAtRussel", "Act/Conv/1_02.act")
PedSetActionNode(gPrefect, "/Global/1_02/ShortIdle", "Act/Conv/1_02.act")
PedSetActionNode(gPrefect1, "/Global/6_02/BeScared", "Act/Conv/6_02.act")
PedSetActionNode(gPrefect1, "/Global/6_02/PlayerBusted/BustThatBitch", "Act/Conv/6_02.act")
PedSetActionNode(gPrefect2, "/Global/6_02/BeScared", "Act/Conv/6_02.act")
PedSetActionNode(gPushers[1], "/Global/1_01/ShortIdle", "Act/Conv/1_01.act")
PedSetActionNode(gPushers[1], "/Global/1_01/Talking", "Act/Conv/1_01.act")
PedSetActionNode(gPushers[1], "/Global/1_02/TauntPlayer/Taunt03", "Act/Conv/1_02.act")
PedSetActionNode(gPushers[2], "/Global/1_01/ShortIdle", "Act/Conv/1_01.act")
PedSetActionNode(gPushers[2], "/Global/1_01/Talking", "Act/Conv/1_01.act")
PedSetActionNode(gPushers[2], "/Global/1_02/TauntPlayer/Taunt04", "Act/Conv/1_02.act")
PedSetActionNode(gPushers[3], "/Global/1_01/PunchHands", "Act/Conv/1_01.act")
PedSetActionNode(gPushers[3], "/Global/1_01/ShortIdle", "Act/Conv/1_01.act")
PedSetActionNode(gRetirementTable.ped1, "/Global/Ambient/Scripted/OrderlyPatrol/OrderlyPatrol_Child", "Act/Anim/Ambient.act")
PedSetActionNode(gRetirementTable.ped2, "/Global/Ambient/Scripted/OrderlyPatrol/OrderlyPatrol_Child", "Act/Anim/Ambient.act")
PedSetActionNode(gRooftopPeds1[1], "/Global/3_06/CreateAuthFight", "Act/Conv/3_06.act")
PedSetActionNode(gRooftopPeds1[2], "/Global/3_06/GreaserIdles", "Act/Conv/3_06.act")
PedSetActionNode(gRooftopPeds1[2], "/Global/3_06/IdleOneFrame", "Act/Conv/3_06.act")
PedSetActionNode(gRunnerId, "/Global/4_06/GuardDog/Planting", "Act/Conv/4_06.act")
PedSetActionNode(gRussell, "/Global/1_02/NIS/MeetRussell/Russell/Russell01", "Act/Conv/1_02.act")
PedSetActionNode(gRussell, "/Global/1_02/NIS/MeetRussell/Russell/Russell02", "Act/Conv/1_02.act")
PedSetActionNode(gRussell, "/Global/1_02/ShortIdle", "Act/Conv/1_02.act")
PedSetActionNode(gRussell, "/Global/6_02/GaryNIS/Russell/Russell01", "Act/Conv/6_02.act")
PedSetActionNode(gRussell, "/Global/6_02/GaryNIS/Russell/RussellLoco", "Act/Conv/6_02.act")
PedSetActionNode(gRussell, "/Global/6_02/HeadButt/HeadButt_AnticStart", "Act/Conv/6_02.act")
PedSetActionNode(gRussell, "/Global/6_02/Russell_NIS/Russell/Russell01", "Act/Conv/6_02.act")
PedSetActionNode(gRussell, "/Global/6_02/Russell_NIS/Russell/Russell03", "Act/Conv/6_02.act")
PedSetActionNode(gRussell, "/Global/6_02/RussellAlley/Russell/Russell01", "Act/Conv/6_02.act")
PedSetActionNode(gRussell, "/Global/6_02/RussellHide/Cower_Child", "Act/Conv/6_02.act")
PedSetActionNode(gRussell, "/Global/6_02/SchoolGatesNIS/Russell/Russell01", "Act/Conv/6_02.act")
PedSetActionNode(gRussell, "/Global/6_02/WonderNIS/Grapple", "Act/Conv/6_02.act")
PedSetActionNode(gRussell, "/Global/Chap5Trans/Cheering/CheerCool2/CheerCool06", "Act/Conv/Chap5Trans.act")
PedSetActionNode(gRussell.id, "/Global/2_05/Animations/RusellFallOffBike", "Act/Conv/2_05.act")
PedSetActionNode(gSecondEventPedA, "/Global/Ambient/Scripted/Kiss_Me_Baby", "Act/Anim/Ambient.act")
PedSetActionNode(gSecretary, "/Global/3_08/GiveJimmyGift/GiveJimmyGift", "Act/Conv/3_08.act")
PedSetActionNode(gSecretary, "/Global/3_08/OpenGift/OpenGift", "Act/Conv/3_08.act")
PedSetActionNode(gSecretary, "/Global/3_08/SecretaryGetUp/GetUp", "Act/Conv/3_08.act")
PedSetActionNode(gSleepingOrderly, "/Global/5_03/5_03_Sleeping_Orderly/5_03_Sleeping_Orderly_To_Sleep", "Act/Conv/5_03.act")
PedSetActionNode(gSleepingOrderly, "/Global/5_03/5_03_Sleeping_Orderly/5_03_Sleeping_Orderly_Wake_Up", "Act/Conv/5_03.act")
PedSetActionNode(gTablePeds[1].id, "/Global/404Conv/Idle", "Act/Conv/4_04.act")
PedSetActionNode(gTablePeds[1].id, "/Global/404Conv/MazeLookAround", "Act/Conv/4_04.act")
PedSetActionNode(gTablePeds[1].id, "/Global/404Conv/QuickIdle", "Act/Conv/4_04.act")
PedSetActionNode(gTablePeds[1].id, "/Global/404Conv/UseMonitor", "Act/Conv/4_04.act")
PedSetActionNode(gTablePeds[2].id, "/Global/404Conv/Idle", "Act/Conv/4_04.act")
PedSetActionNode(gTablePeds[2].id, "/Global/404Conv/MazeLookAround", "Act/Conv/4_04.act")
PedSetActionNode(gTablePeds[2].id, "/Global/404Conv/QuickIdle", "Act/Conv/4_04.act")
PedSetActionNode(gTablePeds[2].id, "/Global/404Conv/UseMonitor", "Act/Conv/4_04.act")
PedSetActionNode(gTablePeds[3].id, "/Global/404Conv/Idle", "Act/Conv/4_04.act")
PedSetActionNode(gTablePeds[3].id, "/Global/404Conv/MazeLookAround", "Act/Conv/4_04.act")
PedSetActionNode(gTablePeds[3].id, "/Global/404Conv/QuickIdle", "Act/Conv/4_04.act")
PedSetActionNode(gTablePeds[3].id, "/Global/404Conv/UseMonitor", "Act/Conv/4_04.act")
PedSetActionNode(gTablePeds[gCurrentJock].id, "/Global/404Conv/Threaten", "Act/Conv/4_04.act")
PedSetActionNode(gTargetBoy, "/Global/MGSocPen/TargetReactions/Cheer/Cheer1", "Act/Conv/MGSocPen.act")
PedSetActionNode(gTargetBoy, "/Global/MGSocPen/TargetReactions/Mock", "Act/Conv/MGSocPen.act")
PedSetActionNode(gTargetBoy, "/Global/MGSocPen/TargetReactions/Scared", "Act/Conv/MGSocPen.act")
PedSetActionNode(gTeacher, "/Global/Welcome/Disgusted", "Act/Conv/Store.act")
PedSetActionNode(gTeacher, "/Global/Welcome/ShakeFist", "Act/Conv/Store.act")
PedSetActionNode(gTed, "/Global/4_B2/4_B2_Blank", "/Act/Conv/4_B2.act")
PedSetActionNode(gTed, "/Global/4_B2/4_B2_Blank", "Act/Conv/4_B2.act")
PedSetActionNode(gTed, "/Global/4_B2/ReactionAnims/Taunt", "Act/Conv/4_B2.act")
PedSetActionNode(gTed, "/Global/Chap5Trans/Cheering/CheerCool2/CheerCool08", "Act/Conv/Chap5Trans.act")
PedSetActionNode(gThad, "/Global/4_02/AlgieCower/Cower_Start", "Act/Conv/4_02.act")
PedSetActionNode(gThad, "/Global/4_02/Break/BreakNode", "Act/Conv/4_02.act")
PedSetActionNode(gThirdEventPed, "/Global/WProps/PropInteract", "Act/WProps.act")
PedSetActionNode(gTorch, "/Global/5_02/animations/StandingSmoke/StubItOut", "Act/Conv/5_02.act")
PedSetActionNode(gTorch, "/Global/5_02/animations/StepBackMoshOut", "Act/conv/5_02.act")
PedSetActionNode(guy, "/Global/5_02/animations/RatPacking/null", "Act/Conv/5_02.act")
PedSetActionNode(guy, "/Global/Ambient/MissionSpec/PlayerIdle/IdleOneFrame", "Act/Anim/Ambient.act")
PedSetActionNode(guy, "/Global/WProps/PropInteract", "Act/WProps.act")
PedSetActionNode(guy.id, "/Global/Ambient/Scripted/Workout", "Act/Anim/Ambient.act")
PedSetActionNode(gVance, "/Global/3_06/GreaserNIS", "Act/Conv/3_06.act")
PedSetActionNode(gVance, "/Global/3_06/IdleOneFrame", "Act/Conv/3_06.act")
PedSetActionNode(gZoe, "/Global/Chap5Trans/Blank", "Act/Conv/Chap5Trans.act")
PedSetActionNode(gZoe, "/Global/Chap5Trans/Cheering/CheerGirl2/CheerGirl06", "Act/Conv/Chap5Trans.act")
PedSetActionNode(hattrick, "/Global/C9/TeacherDisgust", "Act/Conv/C9.act")
PedSetActionNode(iCheer01, "/Global/Ambient/Scripted/Cheerleading", "Act/Anim/Ambient.act")
PedSetActionNode(iCheer02, "/Global/Ambient/Scripted/Cheerleading", "Act/Anim/Ambient.act")
PedSetActionNode(iCheer03, "/Global/Ambient/Scripted/Cheerleading", "Act/Anim/Ambient.act")
PedSetActionNode(iCheer04, "/Global/Ambient/Scripted/Cheerleading", "Act/Anim/Ambient.act")
PedSetActionNode(iCheer05, "/Global/Ambient/Scripted/Cheerleading", "Act/Anim/Ambient.act")
PedSetActionNode(id, "/Global/3_R09/Animations/Empty", "Act/Conv/3_R09.act")
PedSetActionNode(id, "/Global/C5/Workout", "Act/Conv/C5.act")
PedSetActionNode(id2ndMan, "/Global/1_07/DontMess", "Act/Conv/1_07.act")
PedSetActionNode(idBiff, "/Global/2_B/BiffKO", "Act/Conv/2_B.act")
PedSetActionNode(idBucky, "/Global/1_07/Blank", "Act/Conv/1_07.act")
PedSetActionNode(idBucky, "/Global/1_07/Break", "Act/Conv/1_07.act")
PedSetActionNode(idBucky, "/Global/1_07/Cower", "Act/Conv/1_07.act")
PedSetActionNode(idBucky, "/Global/1_07/CowerOneFrame", "Act/Conv/1_07.act")
PedSetActionNode(idBucky, "/Global/1_07/EndCower", "Act/Conv/1_07.act")
PedSetActionNode(idBucky, "/Global/1_07/Idle", "Act/Conv/1_07.act")
PedSetActionNode(idBucky, "/Global/1_07/KO_COLLAPSE", "Act/Conv/1_07.act")
PedSetActionNode(idBucky, "/Global/1_07/PutAway", "Act/Conv/1_07.act")
PedSetActionNode(idBucky, "/Global/WProps/Peds/ScriptedPropInteract", "Act/WProps.act")
PedSetActionNode(idBurton, "/Global/5_05/Blank", "Act/Conv/5_05.act")
PedSetActionNode(idBurton, "/Global/5_05/BurtonReactions/BurtonPeeDance", "Act/Conv/5_05.act")
PedSetActionNode(idBurton, "/Global/WProps/Peds/ScriptedPropInteract", "Act/WProps.act")
PedSetActionNode(idDarby, "/Global/2_B/DrbyVault/PlayAnim", "Act/Conv/2_B.act")
PedSetActionNode(idDarby, "/Global/2_B/DrbyVault/PlayAnim/ReleaseGroup", "Act/Conv/2_B.act")
PedSetActionNode(idDarby, "/Global/2_B/Empty", "Act/Conv/2_B.act")
PedSetActionNode(idDarby, "/Global/2_B/Talking/Darby01", "Act/Conv/2_B.act")
PedSetActionNode(idDarby, "/Global/2_B/Talking/Darby02", "Act/Conv/2_B.act")
PedSetActionNode(idDarby, "/Global/2_B/Talking/DARBYIDLE", "Act/Conv/2_B.act")
PedSetActionNode(idDarby, "/Global/HitTree/Standing/PostHit/Standing/Dead/BoxingStun/StunControl/KnockoutHit/KnockoutHit", "Act/HitTree.act")
PedSetActionNode(idDO, "/Global/5_04/GurneyCrouchOut", "Act/Conv/5_04.act")
PedSetActionNode(idDO, "/Global/5_04/GurneyKneel", "Act/Conv/5_04.act")
PedSetActionNode(idDO, "/Global/5_04/JockIdle", "Act/Conv/5_04.act")
PedSetActionNode(idDO, "/Global/5_04/RunShoulder", "Act/Conv/5_04.act")
PedSetActionNode(idEunice.id, "/Global/2_06/2_06_Go", "Act/Conv/2_06.act")
PedSetActionNode(idGord.id, "/Global/2_06/NISLOLA/Gord/Gord01", "Act/Conv/2_06.act")
PedSetActionNode(idGord.id, "/Global/Vehicles/Bikes/Ground/Dismount/GetOff", "Act/Vehicles.act")
PedSetActionNode(idHitMan, "/Global/1_07/GoingDown", "Act/Conv/1_07.act")
PedSetActionNode(idHobo, "/Global/2_S05/Anims/Break", "Act/Conv/2_S05.act")
PedSetActionNode(idHobo, "/Global/2_S05/Anims/Drink", "Act/Conv/2_S05.act")
PedSetActionNode(idHobo, "/Global/2_S05/Anims/Drink/Puke/Load", "Act/Conv/2_S05.act")
PedSetActionNode(idLola.id, "/Global/2_06/NISLOLA/Lola/Lola01", "Act/Conv/2_06.act")
PedSetActionNode(idNemesis, "/Global/1_04/GaryPoint/GaryPointAnim", "Act/Conv/1_04.act")
PedSetActionNode(idNorton, "/Global/3_05/Animations/Break", "Act/Conv/3_05.act")
PedSetActionNode(idNorton, "/Global/3_05/Animations/Laugh", "Act/Conv/3_05.act")
PedSetActionNode(idNorton, "/Global/3_05/Animations/SledgeSwing", "Act/Conv/3_05.act")
PedSetActionNode(idPeter, "/Global/5_09/Anims/PeteSit", "Act/Conv/5_09.act")
PedSetActionNode(idPinky.id, "/Global/2_06/NISPINKY/Pinky/Pinky01", "Act/Conv/2_06.act")
PedSetActionNode(idPinky.id, "/Global/2_06/NISPINKY/Pinky/Pinky02", "Act/Conv/2_06.act")
PedSetActionNode(idPinky.id, "/Global/2_06/NISPINKY/Pinky/Pinky03", "Act/Conv/2_06.act")
PedSetActionNode(idPinky.id, "/Global/2_06/NISPINKY/Pinky/Pinky04", "Act/Conv/2_06.act")
PedSetActionNode(idRussell, "/Global/5_07a/NIS/Russell/Russell01", "Act/Conv/5_07a.act")
PedSetActionNode(idRussell, "/Global/5_07a/NIS/Russell/Russell02", "Act/Conv/5_07a.act")
PedSetActionNode(idZoe, "/Global/5_05/Blank", "Act/Conv/5_05.act")
PedSetActionNode(idZoe, "/Global/5_05/NIS/Zoe/Zoe01", "Act/Conv/5_05.act")
PedSetActionNode(idZoe, "/Global/5_05/NIS/Zoe/Zoe02", "Act/Conv/5_05.act")
PedSetActionNode(idZoe, "/Global/5_05/NIS/Zoe/Zoe03", "Act/Conv/5_05.act")
PedSetActionNode(idZoe, "/Global/5_05/NIS/Zoe/ZoeIdle", "Act/Conv/5_05.act")
PedSetActionNode(idZoe, "/Global/5_07a/Blank", "Act/Conv/5_07a.act")
PedSetActionNode(idZoe, "/Global/5_07a/NIS/Zoe/Zoe01", "Act/Conv/5_07a.act")
PedSetActionNode(idZoe, "/Global/5_07a/NIS/Zoe/Zoe02", "Act/Conv/5_07a.act")
PedSetActionNode(idZoe, "/Global/5_07a/NIS/Zoe/Zoe03", "Act/Conv/5_07a.act")
PedSetActionNode(idZoe, "/Global/5_07a/ZoeDistract/ZoeDistractWait", "Act/Conv/5_07a.act")
PedSetActionNode(idZoe, "/Global/WProps/Peds/ScriptedPropInteract", "Act/WProps.act")
PedSetActionNode(insultBoy, "/Global/Ambient/SocialAnims/SocialAcceptApology/Bully/GiveUp", "Act/Anim/Ambient.act")
PedSetActionNode(jock02, "/Global/3_R09/Animations/Jocks/JocksOutro/Casey01", "Act/Conv/3_R09.act")
PedSetActionNode(Justin, "/Global/AI", "Act/AI/AI.act")
PedSetActionNode(Justin, "/Global/Animations/Talking", "Act/Conv/3_07.act")
PedSetActionNode(kidActive, "/Global/3_01D/KidAnimations/SANTA_END", "Act/Conv/3_01D.act")
PedSetActionNode(kidActive, "/Global/3_01D/KidAnimations/SANTA_START", "Act/Conv/3_01D.act")
PedSetActionNode(kidActive, tAnims[tKidSet[Kid_Index].sequence1[Anim_Index]].KidCycle, "Act/Conv/3_01D.act")
PedSetActionNode(lackey1, "/Global/6_02/FactionLeaderNIS/Greasers/Peanut", "Act/Conv/6_02.act")
PedSetActionNode(lackey1, "/Global/6_02/FactionLeaderNIS/Jocks/blank", "Act/Conv/6_02.act")
PedSetActionNode(lackey1, "/Global/6_02/FactionLeaderNIS/Jocks/Cheering/Cheering01", "Act/Conv/6_02.act")
PedSetActionNode(lackey1, "/Global/6_02/FactionLeaderNIS/Nerds/Blank", "Act/Conv/6_02.act")
PedSetActionNode(lackey1, "/Global/6_02/FactionLeaderNIS/Nerds/Cheering/Cheering02", "Act/Conv/6_02.act")
PedSetActionNode(lackey1, "/Global/6_02/FactionLeaderNIS/Preps/Chad01", "Act/Conv/6_02.act")
PedSetActionNode(lackey2, "/Global/6_02/FactionLeaderNIS/Greasers/Hal", "Act/Conv/6_02.act")
PedSetActionNode(lackey2, "/Global/6_02/FactionLeaderNIS/Jocks/blank", "Act/Conv/6_02.act")
PedSetActionNode(lackey2, "/Global/6_02/FactionLeaderNIS/Jocks/Cheering/Cheering01/Cheering02", "Act/Conv/6_02.act")
PedSetActionNode(lackey2, "/Global/6_02/FactionLeaderNIS/Nerds/Blank", "Act/Conv/6_02.act")
PedSetActionNode(lackey2, "/Global/6_02/FactionLeaderNIS/Nerds/Cheering/Cheering03", "Act/Conv/6_02.act")
PedSetActionNode(librarian, "/Global/5_01/5_01_Empty", "Act/Conv/5_01.act")
PedSetActionNode(librarian, "/Global/5_01/5_01_Librarian", "Act/Conv/5_01.act")
PedSetActionNode(librarian, "/Global/5_01/NIS/Librarian/Librarian_01", "Act/Conv/5_01.act")
PedSetActionNode(librarian, "/Global/5_01/NIS/Librarian/Librarian_02", "Act/Conv/5_01.act")
PedSetActionNode(librarian, "/Global/5_01/NIS/Librarian/Librarian_03", "Act/Conv/5_01.act")
PedSetActionNode(lola, "/Global/3_01/Anims/Break", "Act/Conv/3_01.act")
PedSetActionNode(mandy, "/Global/4_G4/4_G4_Hello", "Act/Conv/4_G4.act")
PedSetActionNode(mandy, "/Global/4_G4/4_G4_Where", "Act/Conv/4_G4.act")
PedSetActionNode(mandy, "/Global/4_G4/ShortIdle", "Act/Conv/4_G4.act")
PedSetActionNode(mandy, "/Global/5_04/Idle", "Act/Conv/5_04.act")
PedSetActionNode(mandy, "/Global/5_04/Talking/MandyTalk", "Act/Conv/5_04.act")
PedSetActionNode(mandy, "/Global/5_04/Talking/MandyTalk02", "Act/Conv/5_04.act")
PedSetActionNode(mandy, "/Global/5_04/Talking/MandyTalk03", "Act/Conv/5_04.act")
PedSetActionNode(mandy, "/Global/WProps/Peds/ScriptedPropInteract", "Act/WProps.act")
PedSetActionNode(Mascot, "/Global/1_09/CustomPedTree/Break", "Act\\Anim\\NPC1_09.act")
PedSetActionNode(Mascot, "/Global/NPC1_09/Mascot/MascotDancing", "Act\\Anim\\NPC1_09.act")
PedSetActionNode(MotelOwner, "/Global/Ambient/Scenarios/ScenarioGive/ScenarioGive", "Act/Anim/Ambient.act")
PedSetActionNode(musicTeach, "/Global/MGMusic/Animations/Teacher", ActionAnimFile)
PedSetActionNode(musicTeach, TeacherRoot .. "CustomIdle", ActionAnimFile)
PedSetActionNode(musicTeach, TeacherRoot .. "CustomIdleEnter", ActionAnimFile)
PedSetActionNode(musicTeach, TeacherRoot .. TeacherFace[TeacherFaceIndex], ActionAnimFile)
PedSetActionNode(NISPed, "/Global/2_08Conv/Taunt/TauntPlayer", "Act/Conv/2_08.act")
PedSetActionNode(Objectives[1].id, "/Global/4_06/NISs/Nerds/Algie/Algie01", "Act/Conv/4_06.act")
PedSetActionNode(Objectives[1].id, "/Global/4_06/NISs/Nerds/Algie/Algie02", "Act/Conv/4_06.act")
PedSetActionNode(Objectives[1].id, "/Global/4_06/NISs/Nerds/Algie/Algie03", "Act/Conv/4_06.act")
PedSetActionNode(Objectives[2].id, "/Global/4_06/NISs/Nerds/Bucky/Bucky01", "Act/Conv/4_06.act")
PedSetActionNode(Objectives[2].id, "/Global/4_06/ReceiveIdle", "Act/Conv/4_06.act")
PedSetActionNode(Objectives[3].id, "/Global/4_06/NISs/Nerds/Fatty/Fatty02", "Act/Conv/4_06.act")
PedSetActionNode(Objectives[4].id, "/Global/4_06/NISs/Nerds/Melvin/Melvin01", "Act/Conv/4_06.act")
PedSetActionNode(Objectives[5].id, "/Global/4_06/4_06_WaitForJim/ScenGreetBoyAnim", "Act/Conv/4_06.act")
PedSetActionNode(Objectives[5].id, "/Global/4_06/NISs/Nerds/Cornelius/Cornelius01", "Act/Conv/4_06.act")
PedSetActionNode(Objectives[5].id, "/Global/4_06/NISs/Nerds/Cornelius/Cornelius02", "Act/Conv/4_06.act")
PedSetActionNode(Objectives[5].id, "/Global/4_06/NISs/Nerds/Cornelius/Cornelius03", "Act/Conv/4_06.act")
PedSetActionNode(Objectives[CurrentMissionNumber].id, "/Global/Ambient/Scenarios/ScenarioGive/ScenarioGive", "Act/Anim/Ambient.act")
PedSetActionNode(Objectives[i].id, "/Global/4_06/4_06_WaitForJim/ScenGreetBoyAnim", "Act/Conv/4_06.act")
PedSetActionNode(opponent, "/Global/Actions/Grapples/GrappleReversals/MountReversals/Pushoff/GIVE", "Act/Globals/GlobalActions.act")
PedSetActionNode(opponent, "/Global/C31Strt/FattyAvoid", "Act/Conv/C3_1.act")
PedSetActionNode(opponent, "/Global/C31Strt/LuisIntro", "Act/Conv/C3_1.act")
PedSetActionNode(opponent, "/Global/C31Strt/OpponentDefeated", "Act/Conv/C3_1.act")
PedSetActionNode(opponent, "/Global/WrestlingNPC", "Act/Anim/WrestlingNPC_ACT.act")
PedSetActionNode(opponent, "/Global/WrestlingNPC/Default_KEY/Locomotion/Free/Idle", "Act/Anim/WrestlingNPC_ACT.act")
PedSetActionNode(outroPedA, "/Global/4_06/4_06_Glue/Sit_Start", "Act/Conv/4_06.act")
PedSetActionNode(outroPedA, "/Global/4_06/4_06_Wizz/Disappoint", "Act/Conv/4_06.act")
PedSetActionNode(outroPedA, "/Global/4_06/4_06_Wizz/Puke", "Act/Conv/4_06.act")
PedSetActionNode(outroPedA, "/Global/4_06/NISs/Marbles/HIT_LEG_FRONT_R_FALL", "Act/Conv/4_06.act")
PedSetActionNode(outroPedA, "/Global/4_06/NISs/Pranks/Football/KirbyGetsBall", "Act/Conv/4_06.act")
PedSetActionNode(outroPedB, "/Global/4_06/NISs/Jocks/Laughing/Guy_Laugh/Laugh01", "Act/Conv/4_06.act")
PedSetActionNode(outroPedB, "/Global/4_06/NISs/Marbles/HIT_LEG_FRONT_L_FALL", "Act/Conv/4_06.act")
PedSetActionNode(outroPedB, "/Global/Ambient/Reactions/HumiliationReact/Laughing", "Act/Anim/Ambient.act")
PedSetActionNode(outroPedC, "/Global/4_06/NISs/Jocks/Laughing/Guy_Laugh/Laugh02", "Act/Conv/4_06.act")
PedSetActionNode(outroPedC, "/Global/4_06/NISs/Marbles/HIT_LEG_FRONT_L_FALL", "Act/Conv/4_06.act")
PedSetActionNode(outroPedC, "/Global/4_06/NISs/Marbles/HIT_LEG_FRONT_R_FALL", "Act/Conv/4_06.act")
PedSetActionNode(ped, "/Global/1_01/ShortIdle", "Act/Conv/1_01.act")
PedSetActionNode(ped, "/Global/1_02/ShortIdle", "Act/Conv/1_02.act")
PedSetActionNode(ped, "/Global/1_02/Talking/Talk", "Act/Conv/1_02.act")
PedSetActionNode(ped, "/Global/2_04_Conv/Cheerage", "Act/Conv/2_04.act")
PedSetActionNode(ped, "/Global/2_R03_Conv/Animations/ThankYou", "Act/Conv/2_R03.act")
PedSetActionNode(ped, "/Global/3_G3_Conv/Cheerage", "Act/Conv/3_G3.act")
PedSetActionNode(ped, "/Global/5_02/animations/MoshOut", "Act/Conv/5_02.act")
PedSetActionNode(ped, "/Global/Ambient/Sitting_Down/SitHigh", "Act/Anim/Ambient.act")
PedSetActionNode(ped, "/Global/Generic/GenericIdle/Idle", "Act/Anim/GenericSequences.act")
PedSetActionNode(ped, "/Global/J_Damon/Offense/SpecialStart/StartRun", "Act/Anim/J_Damon.act")
PedSetActionNode(ped, "/Global/Shots/Shots_Idle", "Act/Conv/Shots.act")
PedSetActionNode(ped, "/Global/Thrown/ThrownActions/WeaponFire/ThrowFrisbee/ThrowActions/ThrowStart", "Act/Weapons_Thrown.act")
PedSetActionNode(ped, action, file)
PedSetActionNode(ped, actionNode, fileName)
PedSetActionNode(ped, actionNode, szFile)
PedSetActionNode(ped, node, "Act/Conv/2_01.act")
PedSetActionNode(ped, node, "Act/Conv/2_R03.act")
PedSetActionNode(ped, play, "Act/Conv/4_06.act")
PedSetActionNode(ped, szKissNode, "Act/Conv/3_01.act")
PedSetActionNode(ped.id, "/Global/4_G4/ShortIdle", "Act/Conv/4_G4.act")
PedSetActionNode(ped.id, ped.actionNode, ped.actionFile)
PedSetActionNode(ped1, actionNode, fileName)
PedSetActionNode(pedAlgie.id, "/Global/1_02B/Empty", "Act/Conv/1_02B.act")
PedSetActionNode(pedAlgie.id, "/Global/1_05/Anims/Empty", "Act/Conv/1_05.act")
PedSetActionNode(pedAlgie.id, "/Global/1_05/Anims/Handwash/WashHands", "Act/Conv/1_05.act")
PedSetActionNode(pedAlgie.id, "/Global/1_05/Anims/PeeDance", "Act/Conv/1_05.act")
PedSetActionNode(pedAlgie.id, "/Global/1_05/Anims/PissSelf/PeeSelf", "Act/Conv/1_05.act")
PedSetActionNode(pedAlgie.id, "/Global/1_05/Anims/Rummage/Locker", "Act/Conv/1_05.act")
PedSetActionNode(pedAlgie.id, "/Global/1_05/Sounds/Pee/PeeStart", "Act/Conv/1_05.act")
PedSetActionNode(pedAlgie.id, "/Global/1_05/Sounds/Pee/PeeStop", "Act/Conv/1_05.act")
PedSetActionNode(pedAlgie.id, "/Global/3_04/3_04_Anim/Algie/Algie01", "Act/Conv/3_04.act")
PedSetActionNode(pedAlgie.id, "/Global/3_04/3_04_Anim/AlgieOhFace/OhFace", "Act/Conv/3_04.act")
PedSetActionNode(pedAlgie.id, "/Global/3_04/3_04_Anim/Empty", "Act/Conv/3_04.act")
PedSetActionNode(pedAlgie.id, "/Global/3_04/3_04_End/Nerds/Algie01", "Act/Conv/3_04.act")
PedSetActionNode(pedAngieGym.id, "/Global/4_01/Anims/Empty", "Act/Conv/4_01.act")
PedSetActionNode(pedAngieGym.id, "/Global/4_01/Anims/GymCut/FallDownGetUp/Jump", "Act/Conv/4_01.act")
PedSetActionNode(pedAngieGym.id, "/Global/Ambient/Scripted/Cheerleading", "Act/Anim/Ambient.act")
PedSetActionNode(pedAsianGirl.id, "/Global/2_S06/Anims/Empty", "Act/Conv/2_S06.act")
PedSetActionNode(pedBeatrice.id, "/Global/2_S06/Anims/BeatriceFreakOut/freakout", "Act/Conv/2_S06.act")
PedSetActionNode(pedBully01.id, "/Global/1_11X1/Animations/Laugh_Shove/Laugh", "Act/Conv/1_11X1.act")
PedSetActionNode(pedBully01.id, "/Global/1_11X1/empty", "Act/Conv/1_11X1.act")
PedSetActionNode(pedBully02.id, "/Global/1_11X1/Animations/LaughCyclic/LaughCyclic", "Act/Conv/1_11X1.act")
PedSetActionNode(pedBully02.id, "/Global/1_11X1/empty", "Act/Conv/1_11X1.act")
PedSetActionNode(pedCheerleader01.id, "/Global/4_05/Anims/Cheerleading/CheerRoutineA", "Act/Conv/4_05.act")
PedSetActionNode(pedCheerleader01.id, "/Global/4_05/Anims/Cheerleading/CheerRoutineA/CheerRoutineA_00/CheerRoutineA_01", "Act/Conv/4_05.act")
PedSetActionNode(pedCheerleader01.id, "/Global/4_05/Anims/Empty", "Act/Conv/4_05.act")
PedSetActionNode(pedCheerleader02.id, "/Global/4_05/Anims/Cheerleading/CheerRoutineA", "Act/Conv/4_05.act")
PedSetActionNode(pedCheerleader02.id, "/Global/4_05/Anims/Cheerleading/CheerRoutineA/CheerRoutineA_00/CheerRoutineA_01", "Act/Conv/4_05.act")
PedSetActionNode(pedCheerleader02.id, "/Global/4_05/Anims/Empty", "Act/Conv/4_05.act")
PedSetActionNode(pedChristyGym.id, "/Global/4_01/Anims/Empty", "Act/Conv/4_01.act")
PedSetActionNode(pedChristyGym.id, "/Global/4_01/Anims/GymCut/ChLeadIdle04/Animation", "Act/Conv/4_01.act")
PedSetActionNode(pedChristyGym.id, "/Global/Ambient/Scripted/Cheerleading", "Act/Anim/Ambient.act")
PedSetActionNode(pedConstantine.id, "/Global/1_02B/ConstantinosIdle/Load", "Act/Conv/1_02B.act")
PedSetActionNode(pedCornelius.id, "/Global/3_04/3_04_Anim/AlgieCower/CowerStart", "Act/Conv/3_04.act")
PedSetActionNode(pedCornelius.id, "/Global/3_04/3_04_Anim/Empty", "Act/Conv/3_04.act")
PedSetActionNode(pedCornelius.id, "/Global/3_04/3_04_Anim/NerdScared", "Act/Conv/3_04.act")
PedSetActionNode(pedCornelius.id, "/Global/3_04/3_04_End/Nerds/Cornelius01", "Act/Conv/3_04.act")
PedSetActionNode(pedCrabbleSnitch.id, "/Global/3_S03/Empty", "Act/Conv/3_S03.act")
PedSetActionNode(pedCrabbleSnitch.id, "/Global/3_S03/NIS/Crabble/Crabble01", "Act/Conv/3_S03.act")
PedSetActionNode(pedCutBo.id, "/Global/4_05/NIS/Jocks/Bo_01", "Act/Conv/4_05.act")
PedSetActionNode(pedCutBo.id, "/Global/4_05/NIS/Jocks/Bo_02", "Act/Conv/4_05.act")
PedSetActionNode(pedCutCasey.id, "/Global/4_05/NIS/Jocks/Casey_01", "Act/Conv/4_05.act")
PedSetActionNode(pedDeadMascot, "/Global/4_05/Anims/StealCostumeCut/KnockedOut", "Act/Conv/4_05.act")
PedSetActionNode(pedDog.id, "/Global/1_11X2/Animations/DogChew/ChewIn", "Act/Conv/1_11X2.act")
PedSetActionNode(pedDog.id, "/Global/1_11X2/Animations/DogShit/ShitIn", "Act/Conv/1_11X2.act")
PedSetActionNode(pedDog.id, "/Global/1_11X2/empty", "Act/Conv/1_11X2.act")
PedSetActionNode(pedDog.id, "/Global/1_11X2/Sounds/StuffPooBag", "Act/Conv/1_11X2.act")
PedSetActionNode(pedEarnest.id, "/Global/3_04/3_04_End/Nerds/Earnest01", "Act/Conv/3_04.act")
PedSetActionNode(pedEarnest.id, "/Global/4_B1/Empty", "Act/Conv/4_B1.act")
PedSetActionNode(pedEarnest.id, "/Global/Ambient/MissionSpec/GetOnCannon", "Act/Anim/Ambient.act")
PedSetActionNode(pedEarnest.id, "/Global/N_Earnest/Offense/FireSpudGun", "Act/Anim/N_Earnest.act")
PedSetActionNode(pedEarnest.id, "/Global/N_Earnest/Offense/ThrowBombs", "Act/Anim/N_Earnest.act")
PedSetActionNode(pedEunice.id, "/Global/1_02B/Crying/CryLoop", "Act/Conv/1_02B.act")
PedSetActionNode(pedEunice.id, "/Global/1_02B/Empty", "Act/Conv/1_02B.act")
PedSetActionNode(pedEunice.id, "/Global/WProps/PropInteract", "Act/WProps.act")
PedSetActionNode(pedGalloway.id, "/Global/3_S03/3_S03_Givebottle/GiveBottle", "Act/Conv/3_S03.act")
PedSetActionNode(pedGalloway.id, "/Global/3_S03/Empty", "Act/Conv/3_S03.act")
PedSetActionNode(pedGalloway.id, "/Global/3_S03/NIS/Galloway/Galloway01", "Act/Conv/3_S03.act")
PedSetActionNode(pedGary.id, "/Global/1_02B/Anims/GaryShove/GIVE", "Act/Conv/1_02B.act")
PedSetActionNode(pedGary.id, "/Global/1_02B/Empty", "Act/Conv/1_02B.act")
PedSetActionNode(pedGary.id, "/Global/1_11X2/Animations/KneelFeed/KneelFeed", "Act/Conv/1_11X2.act")
PedSetActionNode(pedGary.id, "/Global/1_11X2/Animations/KneelIdle/Kneel", "Act/Conv/1_11X2.act")
PedSetActionNode(pedGary.id, "/Global/1_11X2/CutPlan/Gary93", "Act/Conv/1_11X2.act")
PedSetActionNode(pedGary.id, "/Global/1_11X2/CutPlan/Gary97", "Act/Conv/1_11X2.act")
PedSetActionNode(pedGary.id, "/Global/1_11X2/empty", "Act/Conv/1_11X2.act")
PedSetActionNode(pedGary.id, "/Global/3_04/3_04_Anim/Empty", "Act/Conv/3_04.act")
PedSetActionNode(pedGary.id, "/Global/3_04/3_04_Anim/GaryIntro/Gary1", "Act/Conv/3_04.act")
PedSetActionNode(pedGirl01, "/Global/WProps/PropInteract", "Act/WProps.act")
PedSetActionNode(pedGirl02, "/Global/WProps/PropInteract", "Act/WProps.act")
PedSetActionNode(pedGirl03, "/Global/WProps/PropInteract", "Act/WProps.act")
PedSetActionNode(pedGirlsShower_01.id, "/Global/2_S06/Anims/SHOWERING/LoadAnims", "Act/Conv/2_S06.act")
PedSetActionNode(pedGirlsShower_02.id, "/Global/2_S06/Anims/SHOWERING/LoadAnims", "Act/Conv/2_S06.act")
PedSetActionNode(pedGreaser01.id, "//Global/3_04/3_04_Anim/Cheer_Cool3/Cheer_Cool_11", "Act/Conv/3_04.act")
PedSetActionNode(pedGreaser01.id, "/Global/3_04/3_04_Anim/Cheer_Cool3/Cheer_Cool_11", "Act/Conv/3_04.act")
PedSetActionNode(pedGreaser01.id, "/Global/3_04/3_04_Anim/Empty", "Act/Conv/3_04.act")
PedSetActionNode(pedGreaser01.id, "/Global/3_S03/Empty", "Act/Conv/3_S03.act")
PedSetActionNode(pedGreaser01.id, "/Global/3_S03/NIS/Cheaters/Greasers/Vance/VanceWait", "Act/Conv/3_S03.act")
PedSetActionNode(pedGreaser01.id, "/Global/6_02GDORM/Anims/Empty", "Act/Conv/6_02gdorm.act")
PedSetActionNode(pedGreaser01.id, "/Global/6_02GDORM/Anims/Spray/Spray_A", "Act/Conv/6_02gdorm.act")
PedSetActionNode(pedGreaser02.id, "/Global/3_04/3_04_Anim/Cheer_Cool3/Cheer_Cool_12", "Act/Conv/3_04.act")
PedSetActionNode(pedGreaser02.id, "/Global/3_04/3_04_Anim/Empty", "Act/Conv/3_04.act")
PedSetActionNode(pedGreaser02.id, "/Global/3_S03/NIS/Cheaters/Greasers/Lucky/LuckyWait", "Act/Conv/3_S03.act")
PedSetActionNode(pedGreaser03.id, "/Global/3_04/3_04_Anim/Cheer_Cool3/Cheer_Cool_13", "Act/Conv/3_04.act")
PedSetActionNode(pedGreaser03.id, "/Global/3_04/3_04_Anim/Empty", "Act/Conv/3_04.act")
PedSetActionNode(pedGreaser04.id, "/Global/3_04/3_04_Anim/Cheer_Cool3/Cheer_Cool_14", "Act/Conv/3_04.act")
PedSetActionNode(pedGreaser04.id, "/Global/3_04/3_04_Anim/Empty", "Act/Conv/3_04.act")
PedSetActionNode(pedGreaser04.id, "/Global/6_02GDORM/Anims/Empty", "Act/Conv/6_02gdorm.act")
PedSetActionNode(pedGreaser04.id, "/Global/6_02GDORM/Anims/Spray/Spray_Big_1", "Act/Conv/6_02gdorm.act")
PedSetActionNode(pedGreaser06.id, "/Global/6_02GDORM/Anims/Empty", "Act/Conv/6_02gdorm.act")
PedSetActionNode(pedHattrick.id, "/Global/3_S03/Empty", "Act/Conv/3_S03.act")
PedSetActionNode(pedHattrick.id, "/Global/3_S03/NIS/Cheaters/Hattrick/Hattrick01", "Act/Conv/3_S03.act")
PedSetActionNode(pedHattrick.id, "/Global/3_S03/NIS/Hattrick/Hattrick01", "Act/Conv/3_S03.act")
PedSetActionNode(pedID, "/Global/1_04/1_04_ClearActions", "Act/Conv/1_04.act")
PedSetActionNode(pedID, "/Global/1_11X2/Animations/GaryLightBag/KneelIn", "Act/Conv/1_11X2.act")
PedSetActionNode(pedID, "/Global/1_11X2/Animations/ShitStomp/StompIn", "Act/Conv/1_11X2.act")
PedSetActionNode(pedId, "/Global/2_08Conv/Idle/PlayerIdle", "Act/Conv/2_08.act")
PedSetActionNode(pedID, "/Global/2_G2/2_G2_Anims/GrabBear", "Act/Conv/2_G2.act")
PedSetActionNode(pedid, "/Global/2_S05/Anims/Disturb/MascotDance", "Act/Conv/2_S05.act")
PedSetActionNode(pedID, "/Global/2_S06/Anims/HitFireAlarm02", "Act/Conv/2_S06.act")
PedSetActionNode(pedID, "/Global/3_03/Animations/Talking", "Act/Conv/3_03.act")
PedSetActionNode(pedId, "/Global/3_R09/Animations/Empty", "Act/Conv/3_R09.act")
PedSetActionNode(pedID, "/Global/4_05/Anims/NISJocksTaunt/Taunt1", "Act/Conv/4_05.act")
PedSetActionNode(pedID, "/Global/4_05/Anims/NISJocksTaunt/Taunt2", "Act/Conv/4_05.act")
PedSetActionNode(pedID, "/Global/4_05/Anims/NISJocksTaunt/Taunt3", "Act/Conv/4_05.act")
PedSetActionNode(pedId, "/Global/4_06/Break", "Act/Conv/4_06.act")
PedSetActionNode(pedId, "/Global/Ambient/Scripted/OrderlyPatrol/OrderlyPatrol_Child", "Act/Anim/Ambient.act")
PedSetActionNode(PedID, "/Global/NPC1_09/Mascot/MascotDancing", "Act\\Anim\\NPC1_09.act")
PedSetActionNode(pedid, "/Global/WProps/Peds/ScriptedPropInteract", "Act/WProps.act")
PedSetActionNode(pedid, "/Global/WProps/PropInteract", "Act/WProps.act")
PedSetActionNode(pedJock.id, "/Global/3_S03/Empty", "Act/Conv/3_S03.act")
PedSetActionNode(pedJock.id, "/Global/3_S03/NIS/Cheaters/Jocks/Casey/CaseyWait", "Act/Conv/3_S03.act")
PedSetActionNode(pedJockBathroomFirstFloor02.id, "/Global/Generic/GenericWallSmoking", "Act/Anim/GenericSequences.act")
PedSetActionNode(pedJockBathroomFirstFloor02.id, "/Global/Generic/GenericWallSmoking/EndingSequences/PutOutCigEnd", "Act/Anim/GenericSequences.act")
PedSetActionNode(pedJockPushup01.id, "/Global/4_05/Anims/Pushups/Start", "Act/Conv/4_05.act")
PedSetActionNode(pedJockPushup01.id, "/Global/4_05/Anims/Pushups/Start/End", "Act/Conv/4_05.act")
PedSetActionNode(pedJohnny.id, "/Global/3_04/3_04_Anim/Empty", "Act/Conv/3_04.act")
PedSetActionNode(pedJohnny.id, "/Global/3_04/3_04_Anim/JohnnyIdle/Johnny1", "Act/Conv/3_04.act")
PedSetActionNode(pedJohnny.id, "/Global/3_04/3_04_Anim/JohnnyIdle/Johnny2", "Act/Conv/3_04.act")
PedSetActionNode(pedJohnny.id, "/Global/3_04/3_04_Anim/JohnnyIdle/JohnnyIdle", "Act/Conv/3_04.act")
PedSetActionNode(pedJohnny.id, "/Global/3_04/3_04_Anim/JohnnyShove/GIVE", "Act/Conv/3_04.act")
PedSetActionNode(pedJohnny.id, "/Global/6_02GDORM/Anims/Empty", "Act/Conv/6_02gdorm.act")
PedSetActionNode(pedKaren.id, "/Global/WProps/PropInteract", "Act/WProps.act")
PedSetActionNode(pedLibrarian.id, "/Global/2_S06/Anims/Empty", "Act/Conv/2_S06.act")
PedSetActionNode(pedLibrarian.id, "/Global/2_S06/Anims/TE_Sitting/SitLoop", "Act/Conv/2_S06.act")
PedSetActionNode(pedLola.id, "/Global/3_03/Wave", "Act/Conv/3_03.act")
PedSetActionNode(pedMandy.id, "/Global/3_S03/Empty", "Act/Conv/3_S03.act")
PedSetActionNode(pedMandy.id, "/Global/3_S03/NIS/Cheaters/Jocks/Mandy/MandyWait", "Act/Conv/3_S03.act")
PedSetActionNode(pedMandy.id, "/Global/6_02GDORM/Anims/Empty", "Act/Conv/6_02gdorm.act")
PedSetActionNode(pedMandyBedroom.id, "/Global/4_01/Anims/Empty", "Act/Conv/4_01.act")
PedSetActionNode(pedMandyBedroom.id, "/Global/4_01/Anims/FreakOut/FreakOut", "Act/Conv/4_01.act")
PedSetActionNode(pedMandyBedroom.id, "/Global/4_01/Anims/MassagingLeg/LegIn", "Act/Conv/4_01.act")
PedSetActionNode(pedMandyGym.id, "/Global/4_01/Anims/Empty", "Act/Conv/4_01.act")
PedSetActionNode(pedMandyGym.id, "/Global/4_01/Anims/GymCut/Mandy/Mandy01", "Act/Conv/4_01.act")
PedSetActionNode(pedMandyGym.id, "/Global/4_01/Anims/GymCut/SmellSelf/Smell_Pits", "Act/Conv/4_01.act")
PedSetActionNode(pedMandyGym.id, "/Global/Ambient/Scripted/Cheerleading", "Act/Anim/Ambient.act")
PedSetActionNode(pedMandyShower.id, "/Global/4_01/Anims/Empty", "Act/Conv/4_01.act")
PedSetActionNode(pedMandyShower.id, "/Global/4_01/Anims/FreakOut/FreakOut", "Act/Conv/4_01.act")
PedSetActionNode(pedMandyShower.id, "/Global/4_01/Anims/FreakOut/FreakOut/CoverUp", "Act/Conv/4_01.act")
PedSetActionNode(pedMandyShower.id, "/Global/4_01/Anims/Showering/FinishedShower", "Act/Conv/4_01.act")
PedSetActionNode(pedMandyShower.id, "/Global/4_01/Anims/Showering/Wash01", "Act/Conv/4_01.act")
PedSetActionNode(pedMascot.id, "/Global/4_05/Anims/Empty", "Act/Conv/4_05.act")
PedSetActionNode(pedMascot.id, "/Global/4_05/Anims/MascotActions/DanceA", "Act/Conv/4_05.act")
PedSetActionNode(pedMascot.id, "/Global/4_05/Anims/MascotActions/DanceB", "Act/Conv/4_05.act")
PedSetActionNode(pedMascot.id, "/Global/4_05/Anims/MascotActions/DanceC", "Act/Conv/4_05.act")
PedSetActionNode(pedMascot.id, "/Global/4_05/Anims/MascotActions/DanceD", "Act/Conv/4_05.act")
PedSetActionNode(pedMascot.id, "/Global/4_05/Anims/MascotActions/PracticeCharge", "Act/Conv/4_05.act")
PedSetActionNode(pedMascot.id, "/Global/4_05/Anims/MascotActions/Pushups/Start", "Act/Conv/4_05.act")
PedSetActionNode(pedMascot.id, "/Global/4_05/NIS/Mascot/Mascot01", "Act/Conv/4_05.act")
PedSetActionNode(pedMascot.id, "/Global/4_05/NIS/Mascot/MascotPool", "Act/Conv/4_05.act")
PedSetActionNode(pedNorton.id, "/Global/3_04/3_04_Anim/Norton/Norton01", "Act/Conv/3_04.act")
PedSetActionNode(pedNorton.id, "/Global/6_02GDORM/Anims/Empty", "Act/Conv/6_02gdorm.act")
PedSetActionNode(pedNorton.id, "/Global/6_02GDORM/Anims/NortonSwing/Initialize", "Act/Conv/6_02gdorm.act")
PedSetActionNode(pedParker, "/Global/2_07/PushPlayer/GrappleSuccess/Yay/AttackIdle", "Act/Conv/2_07.act")
PedSetActionNode(pedPete.id, "/Global/1_11X2/CutPlan/Pete94", "Act/Conv/1_11X2.act")
PedSetActionNode(pedPete.id, "/Global/1_11X2/CutPlan/Pete96", "Act/Conv/1_11X2.act")
PedSetActionNode(pedPinkyGym.id, "/Global/4_01/Anims/Empty", "Act/Conv/4_01.act")
PedSetActionNode(pedPinkyGym.id, "/Global/4_01/Anims/GymCut/ChLeadIdle05/Animation", "Act/Conv/4_01.act")
PedSetActionNode(pedPinkyGym.id, "/Global/Ambient/Scripted/Cheerleading", "Act/Anim/Ambient.act")
PedSetActionNode(pedPoolPrep.id, "/Global/NIS_3_S03_GiveCas/Give_Attempt", "Act/Gifts/NIS_3_S03_GiveCas.act")
PedSetActionNode(pedPrefect.id, "/Global/1_02B/PrefectEdwardWarn/Animation", "Act/Conv/1_02B.act")
PedSetActionNode(pedPrep.id, "/Global/3_S03/Empty", "Act/Conv/3_S03.act")
PedSetActionNode(pedPrep.id, "/Global/NIS_3_S03_GiveHat/Give/Give/PrepIdle", "Act/Conv/3_S03.act")
PedSetActionNode(pedPrep.id, "/Global/NIS_3_S03_GiveHat/Give_Attempt", "Act/Gifts/NIS_3_S03_GiveHat.act")
PedSetActionNode(pedPrep.id, "/Global/NIS_3_S03_GiveVan/Give_Attempt", "Act/Gifts/NIS_3_S03_GiveVan.act")
PedSetActionNode(Pedro, "/Global/AI", "Act/AI/AI.act")
PedSetActionNode(Pedro, "/Global/Animations/Listening", "Act/Conv/3_07.act")
PedSetActionNode(pedRussell.id, "/Global/Ambient/SocialAnims/SocialAcceptApology/Bully/GiveUp", "Act/Anim/Ambient.act")
PedSetActionNode(pedSexyGirl.id, "/Global/2_S06/Anims/Empty", "Act/Conv/2_S06.act")
PedSetActionNode(pedSexyGirl.id, "/Global/WProps/PropInteract", "Act/WProps.act")
PedSetActionNode(pedStg3Girl01.id, "/Global/2_S06/Anims/GirlsOutside/Entry1/Ambient_3", "Act/Conv/2_S06.act")
PedSetActionNode(pedStg3Girl02.id, "/Global/2_S06/Anims/GirlsOutside/Entry2/F_Freakout", "Act/Conv/2_S06.act")
PedSetActionNode(pedStg3Girl03.id, "/Global/2_S06/Anims/GirlsOutside/Entry3/Sxy_Impatient", "Act/Conv/2_S06.act")
PedSetActionNode(pedStrippedKid, "/Global/4_05/Anims/StealCostumeCut/KnockedOut", "Act/Conv/4_05.act")
PedSetActionNode(pedZoe.id, "/Global/5_G5/Empty", "Act/Conv/5_G5.act")
PedSetActionNode(pedZoe.id, "/Global/5_G5/NIS_Anims/Zoe/Zoe_01", "Act/Conv/5_G5.act")
PedSetActionNode(pedZoe.id, "/Global/5_G5/NIS_Anims/Zoe/Zoe_02", "Act/Conv/5_G5.act")
PedSetActionNode(pedZoe.id, "/Global/5_G5/NIS_Anims/Zoe/Zoe_03", "Act/Conv/5_G5.act")
PedSetActionNode(pedZoe.id, "/Global/5_G5/Success", "Act/Conv/5_G5.act")
PedSetActionNode(pedZoe.id, "/Global/5_G5/ZoeFailure", "Act/Conv/5_G5.act")
PedSetActionNode(perv.id, "/Global/Ambient/MissionSpec/PlayerIdle/IdleOneFrame", "Act/Anim/Ambient.act")
PedSetActionNode(perv1, "/Global/4_G4/Animations/GenStandTalking/TalkingLoops", "Act/Conv/4_G4.act")
PedSetActionNode(perv1, "/Global/Ambient/MissionSpec/PlayerIdle/IdleOneFrame", "Act/Anim/Ambient.act")
PedSetActionNode(perv2, "/Global/4_G4/Animations/GenStandTalking/TalkingLoops", "Act/Conv/4_G4.act")
PedSetActionNode(perv2, "/Global/Ambient/MissionSpec/PlayerIdle/IdleOneFrame", "Act/Anim/Ambient.act")
PedSetActionNode(pete, "/Global/Chapter3Trans/JimmyBye", "Act/Conv/Chapt3Trans.act")
PedSetActionNode(phillips, "/Global/1_S01/ClearNode", "Act/Conv/1_S01.act")
PedSetActionNode(Players[0].Player, Players[0].Animsroot .. "CustomIdle", ActionAnimFile)
PedSetActionNode(Players[0].Player, Players[0].Animsroot .. "Sticks/RemoveSticks", ActionAnimFile)
PedSetActionNode(Players[0].Player, Players[0].Animsroot .. "Sticks/xylophone", ActionAnimFile)
PedSetActionNode(Players[1].Player, Players[0].Animsroot .. "Sticks/RemoveSticks", ActionAnimFile)
PedSetActionNode(Players[1].Player, Players[1].Animsroot .. "CustomIdle", ActionAnimFile)
PedSetActionNode(Players[1].Player, Players[1].Animsroot .. "Sticks/Timpani", ActionAnimFile)
PedSetActionNode(Players[cPIndex].Player, Players[cPIndex].AnimList[iAction].Anim, ActionAnimFile)
PedSetActionNode(prefect, "/Global/Ambient/MissionSpec/Prefect/PrefectChew", "Act/Anim/Ambient.act")
PedSetActionNode(principal, "/Global/PriOff/TargetAnimations/TargetBreathe", "Act/Conv/PriOff.act")
PedSetActionNode(principal, "/Global/PriOff/TargetAnimations/TargetGesture", "Act/Conv/PriOff.act")
PedSetActionNode(principal, "/Global/PriOff/TargetAnimations/TargetPoint", "Act/Conv/PriOff.act")
PedSetActionNode(referee, "/Global/DodgeballGame/Anims/Coach/CoachWhistle", "Act/Conv/DodgeballGame.act")
PedSetActionNode(Rudy, "/Global/3_01D/Animations/SANTA_END", "Act/Conv/3_01D.act")
PedSetActionNode(Rudy, "/Global/3_01D/Animations/SANTA_START", "Act/Conv/3_01D.act")
PedSetActionNode(Rudy, tAnims[tKidSet[Kid_Index].sequence1[Anim_Index]].SantaCycle, "Act/Conv/3_01D.act")
PedSetActionNode(russell, "/Global/BOSS_Russell/Default_KEY/RisingAttacks/HeavyAttacks/RisingAttacks", "Act/Anim/Boss_Russell.act")
PedSetActionNode(santa, "/Global/3_XM/Anims/Restart", "Act/Conv/3_XM.act")
PedSetActionNode(santa, "/Global/3_XM/Anims/ShakeFist", "Act/Conv/3_XM.act")
PedSetActionNode(ScenarioPed, "/Global/Ambient/Scenarios/ScenarioGive/ScenarioGive", "Act/Anim/Ambient.act")
PedSetActionNode(shared.gBif, "/Global/2_08Conv/ComeOn", "Act/Conv/2_08.act")
PedSetActionNode(shared.gBif, "/Global/PrepHouse/OpenFoyeurDoor/DoAnim", "Act/Conv/PrepHouse.act")
PedSetActionNode(shared.gGary, "/Global/1_11X1/empty", "Act/Conv/1_11X1.act")
PedSetActionNode(shared.gPetey, "/Global/1_11X1/Animations/PeteCan/GetOut", "Act/Conv/1_11X1.act")
PedSetActionNode(shared.gSecretaryID, "/Global/1_02/SecIdle", "Act/Conv/1_02.act")
PedSetActionNode(shared.gSecretaryID, "/Global/1_02/SecStart", "Act/Conv/1_02.act")
PedSetActionNode(shared.idDog, "/Global/5_05/Dog/Initialize", "Act/Conv/5_05.act")
PedSetActionNode(shared.ped1, "/Global/3_01/Anims/FlowerGive/FlowerGive", "Act/Conv/3_01.act")
PedSetActionNode(shared.ped1, "/Global/3_01/Anims/KissFinal", "Act/Conv/3_01.act")
PedSetActionNode(shared.vendettaClerk, "/Global/3_R09/Animations/ComicOwner/Comic01", "Act/Conv/3_R09.act")
PedSetActionNode(shared.vendettaClerk, "/Global/Welcome/ShakeFist", "Act/Conv/Store.act")
PedSetActionNode(sheet1Bruiser, "/Global/2_S04/Anim/BullyTaunt", "Act/Conv/2_S04.act")
PedSetActionNode(sheet1Bruiser, "/Global/2_S04/Anim/Rochambeau", "Act/Conv/2_S04.act")
PedSetActionNode(sheet1Guard, "/Global/2_S04/Anim/Laugh", "Act/Conv/2_S04.act")
PedSetActionNode(sheet3Guard, "/Global/2_S04/Anim/BullyNerdTease", "Act/Conv/2_S04.act")
PedSetActionNode(sheet3Guard, "/Global/2_S04/Anim/BullyNerdTease/endTease", "Act/Conv/2_S04.act")
PedSetActionNode(sheet4Guard, "/Global/2_S04/Anim/AttachMarbles", "Act/Conv/2_S04.act")
PedSetActionNode(sheet4Guard, "/Global/2_S04/Anim/BullyWall_Smoke", "Act/Conv/2_S04.act")
PedSetActionNode(sheet4Guard, "/Global/2_S04/Anim/BullyWall_Smoke/EndingSequences/StepAwayEnd", "Act/Conv/2_S04.act")
PedSetActionNode(shopkeep, "/Global/2_01/Anim/GiveItem/Give", "Act/Conv/2_01.act")
PedSetActionNode(shopTeach, "/Global/C4/Animations/TeacherFinishClass", "Act/Conv/C4.act")
PedSetActionNode(spud_nerd, "/Global/Ambient/MissionSpec/GetOnCannon", "Act/Anim/Ambient.act")
PedSetActionNode(sweater_guard, "/Global/2_03i/animations/TadReject/Rebuff", "Act/Conv/2_03i.act")
PedSetActionNode(tableEntry.id, "/Global/4_06/Workout/Workout_Child", "Act/Conv/4_06.act")
PedSetActionNode(tableEntry.id, "/Global/Ambient/Scripted/Cheerleading", "Act/Anim/Ambient.act")
PedSetActionNode(tblCutscenePed.johnny.id, "/Global/3_G3_Conv/WinRaceNIS/Greasers/Johnny", "Act/Conv/3_G3.act")
PedSetActionNode(tblCutscenePed.lola.id, "/Global/3_G3_Conv/WinRaceNIS/Greasers/Lola", "Act/Conv/3_G3.act")
PedSetActionNode(tblFirstGrease[1], "/Global/3_05/Animations/Idles/Smoking", "Act/Conv/3_05.act")
PedSetActionNode(tblFirstGrease[3], "/Global/3_05/Animations/Idles/Smoking", "Act/Conv/3_05.act")
PedSetActionNode(tblFirstGrease[4], "/Global/3_05/Animations/Idles/Smoking", "Act/Conv/3_05.act")
PedSetActionNode(tblGoonDex[1].id, "/Global/Ambient/Scripted/Workout", "Act/Anim/Ambient.act")
PedSetActionNode(tblGoonDex[2].id, "/Global/Ambient/Scripted/Workout", "Act/Anim/Ambient.act")
PedSetActionNode(tblGoonDex[3].id, "/Global/Ambient/Scripted/Workout", "Act/Anim/Ambient.act")
PedSetActionNode(tblGoonDex[4].id, "/Global/Ambient/Scripted/Workout", "Act/Anim/Ambient.act")
PedSetActionNode(tblGoonDex[5].id, "/Global/Ambient/Scripted/Workout", "Act/Anim/Ambient.act")
PedSetActionNode(tblGoonDex[6].id, "/Global/Ambient/Scripted/Workout", "Act/Anim/Ambient.act")
PedSetActionNode(tblGordWH.id, "/Global/Vehicles/Bikes/ScriptCalls/3_02_Bait/Johnny/Johnny01", "Act/Vehicles.act")
PedSetActionNode(tblJohnnyWH.id, "/Global/3_02/NIS/Outro/Johnny/Johnny_01", "Act/Conv/3_02.act")
PedSetActionNode(tblJohnnyWH.id, "/Global/3_02/NIS/Outro/Johnny/Johnny_02", "Act/Conv/3_02.act")
PedSetActionNode(tblJohnnyWH.id, "/Global/Vehicles/Bikes/ScriptCalls/3_02_Bait/Johnny/Johnny01", "Act/Vehicles.act")
PedSetActionNode(tblPrank[2].id, "/Global/Ambient/Scenarios/ScenarioGive/ScenarioGive", "Act/Anim/Ambient.act")
PedSetActionNode(tblPrank[3].id, "/Global/Ambient/Scenarios/ScenarioGive/ScenarioGive", "Act/Anim/Ambient.act")
PedSetActionNode(tblPrank[4].id, "/Global/Ambient/Scenarios/ScenarioGive/ScenarioGive", "Act/Anim/Ambient.act")
PedSetActionNode(tblPrank[5].id, "/Global/Ambient/Scenarios/ScenarioGive/ScenarioGive", "Act/Anim/Ambient.act")
PedSetActionNode(tblPrank[6].id, "/Global/Ambient/Scenarios/ScenarioGive/ScenarioGive", "Act/Anim/Ambient.act")
PedSetActionNode(tblPrank[7].id, "/Global/Ambient/Scenarios/ScenarioGive/ScenarioGive", "Act/Anim/Ambient.act")
PedSetActionNode(tblPrank[8].id, "/Global/Ambient/Scenarios/ScenarioGive/ScenarioGive", "Act/Anim/Ambient.act")
PedSetActionNode(tblRaceInfo.race.countdown_ped.id, "/Global/2_04_Conv/NIS_SUCCESS/Tobias01", "Act/Conv/2_04.act")
PedSetActionNode(tblRaceInfo.race.countdown_ped.id, "/Global/3_G3_Conv/Cheerage", "Act/Conv/3_G3.act")
PedSetActionNode(tblRaceInfo.race.countdown_ped.id, "/Global/Race/Countdown", "Act/Anim/Race.act")
PedSetActionNode(tblTad.id, "/Global/2_05/Animations/TadCloseShutters/resetTad", "Act/Conv/2_05.act")
PedSetActionNode(tblTad.id, tblTad.shutWindow, "Act/Conv/2_05.act")
PedSetActionNode(teacher, "/Global/C2_ArtClass/TeacherSpeaking", "Act/Conv/C2.act")
PedSetActionNode(teacher, "/Global/C7/TeacherDisgust", "Act/Conv/C7.act")
PedSetActionNode(tFirstFloorTable.gord.id, "/Global/2_08Conv/Idle/PlayerIdle", "Act/Conv/2_08.act")
PedSetActionNode(tFirstFloorTable.gord.id, "/Global/2_08Conv/Interruptable/TalkAnims", "Act/Conv/2_08.act")
PedSetActionNode(tFirstFloorTable.parker.id, "/Global/2_08Conv/Idle/PlayerIdle", "Act/Conv/2_08.act")
PedSetActionNode(tFirstFloorTable.parker.id, "/Global/2_08Conv/Interruptable/ListenAnims", "Act/Conv/2_08.act")
PedSetActionNode(townie, action, "Act/Conv/5_02.act")
PedSetActionNode(treePedID, "/Global/3_G3_Conv/CustomAnim/Push", "Act/Conv/3_G3.act")
PedSetActionNode(Trevor, "/Global/AI", "Act/AI/AI.act")
PedSetActionNode(Trevor, "/Global/Animations/Listening", "Act/Conv/3_07.act")
PedSetActionNode(tSecondFloorTable.justin.id, "/Global/2_08Conv/Idle/PlayerIdle", "Act/Conv/2_08.act")
PedSetActionNode(tSecondFloorTable.justin.id, "/Global/2_08Conv/Interruptable/ListenAnims", "Act/Conv/2_08.act")
PedSetActionNode(tSecondFloorTable.tad.id, "/Global/2_08Conv/Idle/PlayerIdle", "Act/Conv/2_08.act")
PedSetActionNode(tSecondFloorTable.tad.id, "/Global/2_08Conv/Interruptable/TalkAnims", "Act/Conv/2_08.act")
PedSetActionNode(tThirdFloorTable.bryce.id, "/Global/2_08Conv/Idle/PlayerIdle", "Act/Conv/2_08.act")
PedSetActionNode(tThirdFloorTable.bryce.id, "/Global/2_08Conv/Interruptable/TalkAnims", "Act/Conv/2_08.act")
PedSetActionNode(tThirdFloorTable.bryce.id, "/Global/2_08Conv/Lock_Picking/Lock_Picking_Loop", "Act/Conv/2_08.act")
PedSetActionNode(tThirdFloorTable.chad.id, "/Global/2_08Conv/Idle/PlayerIdle", "Act/Conv/2_08.act")
PedSetActionNode(tThirdFloorTable.chad.id, "/Global/2_08Conv/Interruptable/ListenAnims", "Act/Conv/2_08.act")
PedSetActionNode(watts, "/Global/2_S05/Anims/DateActions/GetUp", "Act/Conv/2_S05.act")
PedSetActionNode(watts, "/Global/WProps/PropInteract", "Act/WProps.act")
while not PedSetActionNode(gPlayer, "/Global/WProps/Peds/ScriptedPropInteract", "Act/WProps.act") do
push ecx
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x14]
push edi
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov edi, eax
add esp, 0x8
test edi, edi
jnz 0x15
push eax
push esi
call LuaParam::PushBool
add esp, 0x8
lea eax, ptr [edi+0x1]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0x1
push esi
call LuaParam::GetString
push 0x2
push esi
mov ebx, eax
call LuaParam::GetString
add esp, 0x10
mov ebp, eax
push ebp
push ebx
mov ecx, edi
call 0x4740F0
mov byte ptr [esp+0x10], al
mov eax, dword ptr [esp+0x10]
push eax
push esi
call LuaParam::PushBool
add esp, 0x8
push 0x0
push ebp
push ebx
push edi
mov ecx, 0xD02850
call 0x5DC1A0
pop edi
pop esi
pop ebp
mov eax, 0x1
pop ebx
pop ecx
ret
CLIENT
Like PedSetActionNode, but doesn't load the node or attach anything to the script.
PedSetActionTree(boxer, "/Global/P_Bif", "Act/Anim/P_Bif.act")
PedSetActionTree(davis, "/Global/1_03_Davis/Default_KEY", "Act/Anim/1_03_Davis.act")
PedSetActionTree(earnest, "/Global/N_Earnest", "Act/Anim/N_Earnest.act")
PedSetActionTree(edgar, "/Global/DO_Edgar", "Act/Anim/DO_Edgar.act")
PedSetActionTree(egger.id, "/Global/G_Ranged_A", "Act/Anim/G_Ranged_A.act")
PedSetActionTree(EnemyTable[i].handle, "/Global/J_Striker_A", "Act/Anim/J_Striker_A.act")
PedSetActionTree(EnemyTable[index].handle, "/Global/NPC1_09/Default_KEY", "Act/Anim/NPC1_09.act")
PedSetActionTree(entry.id, "/Global/G_Ranged_A", "Act/Anim/G_Ranged_A.act")
PedSetActionTree(gBlockAOrderly01, "/Global/5_03/5_03_Stand_Talking", "Act/Conv/5_03.act")
PedSetActionTree(gBlockAOrderly01, "/Global/LE_Orderly_A", "Act/Anim/LE_Orderly_A.act")
PedSetActionTree(gBlockAOrderly02, "/Global/5_03/5_03_Stand_Talking", "Act/Conv/5_03.act")
PedSetActionTree(gBlockAOrderly02, "/Global/LE_Orderly_A", "Act/Anim/LE_Orderly_A.act")
PedSetActionTree(gBully01, "/Global/Fight_Tutorial", "Act/Anim/Fight_Tutorial.act")
PedSetActionTree(gCannonNerd, "/Global/N_Ranged_A", "Act/Anim/N_Ranged_A.act")
PedSetActionTree(gDOThug01, "/Global/5_03/5_03_Johnny_In_Cell", "Act/Conv/5_03.act")
PedSetActionTree(gDOThug01, "/Global/Crazy_Basic", "Act/Anim/Crazy_Basic.act")
PedSetActionTree(gDOThug02, "/Global/5_03/5_03_Johnny_In_Cell", "Act/Conv/5_03.act")
PedSetActionTree(gDOThug02, "/Global/Crazy_Basic", "Act/Anim/Crazy_Basic.act")
PedSetActionTree(gDOThug03, "/Global/5_03/5_03_Johnny_In_Cell", "Act/Conv/5_03.act")
PedSetActionTree(gDOThug03, "/Global/Crazy_Basic", "Act/Anim/Crazy_Basic.act")
PedSetActionTree(gFenwick, "/Global/5_03/5_03_Johnny_In_Cell", "Act/Conv/5_03.act")
PedSetActionTree(gFenwick, "/Global/Crazy_Basic", "Act/Anim/Crazy_Basic.act")
PedSetActionTree(gGary, "/Global/Nemesis", "Act/Anim/Nemesis.act")
PedSetActionTree(gGary, "/Global/Nemesis/Special/Throw", "Act/Anim/Nemesis.act")
PedSetActionTree(gHobo, "/Global/Hobo_Blocker", "Act/Anim/Hobo_Blocker.act")
PedSetActionTree(gInOrderly01, "/Global/LE_Orderly_A", "Act/Anim/LE_Orderly_A.act")
PedSetActionTree(gJohnny, "/Global/5_03/5_03_Johnny_In_Cell", "Act/Conv/5_03.act")
PedSetActionTree(gJohnny, "/Global/G_Striker_A", "Act/Anim/G_Striker_A.act")
PedSetActionTree(gJV_OnBike, "/Global/G_Johnny", "Act/Anim/G_Johnny.act")
PedSetActionTree(gPed, "/Global/WProps/Peds/ScriptedPropInteract", "Act/WProps.act")
PedSetActionTree(gPlayer, "", "")
PedSetActionTree(gPlayer, "/Global/3_01A/SnowBall", ACTIONFILE)
PedSetActionTree(gPlayer, "/Global/BoxingPlayer", "Act/Anim/BoxingPlayer.act")
PedSetActionTree(gPlayer, "/Global/HighStriker", "Act/Anim/HighStriker.act")
PedSetActionTree(gPlayer, "/Global/MG_BallToss", "Act/Anim/MG_BallToss.act")
PedSetActionTree(gPlayer, "/Global/MG_DunkTank", "Act/Anim/MG_DunkTank.act")
PedSetActionTree(gPlayer, "/Global/Player", "Act/Player.act")
PedSetActionTree(gPlayer, "/Global/TrainingPlayer", "Act/TrainingPlayer.act")
PedSetActionTree(gPlayer, "/Global/WrestlingACT", "Act/Anim/WrestlingACT.act")
PedSetActionTree(gSleepingOrderly, "/Global/LE_Orderly_A", "Act/Anim/LE_Orderly_A.act")
PedSetActionTree(gTargetBoy, "/Global/GS_Male_A", "Act/Anim/GS_Male_A.act")
PedSetActionTree(gTargetBoy, "/Global/MGSocPen/TargetReactions/Default", "Act/Conv/MGSocPen.act")
PedSetActionTree(idDarby, "/Global/BOSS_Darby", "Act/Anim/BOSS_Darby.act")
PedSetActionTree(idDarby, "/Global/BOSS_Darby/Special/Throw", "Act/Anim/BOSS_Darby.act")
PedSetActionTree(idNorton, "/Global/Norton", "Act/Anim/3_05_Norton.act")
PedSetActionTree(kidActive, "/Global/3_01D/", "Act/Conv/3_01D.act")
PedSetActionTree(mandy, "/Global/GS_Female_A", "Act/Anim/GS_Female_A.act")
PedSetActionTree(Mascot, "/Global/J_Striker_A/Default", "Act/Anim/J_Striker_A.act")
PedSetActionTree(opponent, "/Global/WrestlingNPC", "Act/Anim/WrestlingNPC_ACT.act")
PedSetActionTree(PB1, "/Global/PunchBagBS", "Act/Anim/PunchBagBS.act")
PedSetActionTree(PB2, "/Global/PunchBagBS", "Act/Anim/PunchBagBS.act")
PedSetActionTree(PB3, "/Global/PunchBagBS", "Act/Anim/PunchBagBS.act")
PedSetActionTree(ped, "/Global/J_Damon", "Act/Anim/J_Damon.act")
PedSetActionTree(ped, "/Global/RooftopAttacker", "Act/Anim/RooftopAttacker.act")
PedSetActionTree(ped.id, "/Global/Crazy_Basic", "Act/Anim/Crazy_Basic.act")
PedSetActionTree(ped.id, ped.actionTree, ped.actionFile)
PedSetActionTree(pedEarnest.id, "/Global/N_Earnest", "Act/Anim/N_Earnest.act")
PedSetActionTree(pedGord, "/Global/2_07_Gord", "Act/Anim/P_2_07_Gord.act")
PedSetActionTree(pedID, ClientAnimTree, ClientAnimFile)
PedSetActionTree(Rudy, "/Global/3_01D/", "Act/Conv/3_01D.act")
PedSetActionTree(russell, "/Global/BOSS_Russell", "Act/Anim/Boss_Russell.act")
PedSetActionTree(spud_nerd, "/Global/N_Melee_A", "Act/Anim/N_Melee_A.act")
sub esp, 0x204
push esi
mov esi, dword ptr [esp+0x20C]
push edi
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov edx, eax
neg edx
sbb edx, edx
mov ecx, esp
add edx, 0x3
push eax
mov dword ptr [ecx], edx
call 0x5C7380
push 0xFD
mov edi, eax
lea eax, ptr [esp+0x11A]
push 0x0
push eax
mov word ptr [esp+0x120], 0x0
call 0x85B3B0
push 0xFD
lea ecx, ptr [esp+0x26]
push 0x0
push ecx
mov word ptr [esp+0x2C], 0x0
call 0x85B3B0
push 0x1
push esi
call LuaParam::GetString
add esp, 0x28
cmp byte ptr [eax], 0x0
jz 0x22
push 0x1
push esi
call LuaParam::GetString
add esp, 0x8
lea edx, ptr [esp+0x10C]
mov cl, byte ptr [eax]
mov byte ptr [edx], cl
add eax, 0x1
add edx, 0x1
test cl, cl
jnz 0xFFFFFFF4
push 0x2
push esi
call LuaParam::GetString
add esp, 0x8
cmp byte ptr [eax], 0x0
jz 0x1F
push 0x2
push esi
call LuaParam::GetString
add esp, 0x8
lea edx, ptr [esp+0xC]
mov cl, byte ptr [eax]
mov byte ptr [edx], cl
add eax, 0x1
add edx, 0x1
test cl, cl
jnz 0xFFFFFFF4
lea edx, ptr [esp+0xC]
push edx
lea eax, ptr [esp+0x110]
push eax
mov ecx, edi
call 0x4740D0
lea eax, ptr [esp+0x10C]
lea edx, ptr [eax+0x1]
mov cl, byte ptr [eax]
add eax, 0x1
test cl, cl
jnz 0xFFFFFFF9
sub eax, edx
jz 0x30
lea eax, ptr [esp+0xC]
lea edx, ptr [eax+0x1]
mov cl, byte ptr [eax]
add eax, 0x1
test cl, cl
jnz 0xFFFFFFF9
sub eax, edx
jz 0x1C
push 0x0
lea ecx, ptr [esp+0x10]
push ecx
lea edx, ptr [esp+0x114]
push edx
push edi
mov ecx, 0xD02850
call 0x5DC1A0
pop edi
xor eax, eax
pop esi
add esp, 0x204
ret
PedSetAIButes("1_09")
PedSetAIButes("3_B")
PedSetAIButes("5_B")
PedSetAIButes("Boxing")
PedSetAIButes("Default")
PedSetAIButes("Russell")
mov eax, dword ptr [esp+0x4]
sub esp, 0xD8
push 0x0
push eax
call LuaParam::GetString
add esp, 0x8
lea edx, ptr [esp+0x10]
lea esp, ptr [esp]
mov cl, byte ptr [eax]
mov byte ptr [edx], cl
add eax, 0x1
add edx, 0x1
test cl, cl
jnz 0xFFFFFFF4
push 0x8
lea ecx, ptr [esp+0x14]
push 0x91D858
push ecx
call 0x85B2C5
add esp, 0xC
test eax, eax
lea ecx, ptr [esp]
jnz 0x2C
push eax
push eax
call 0x5FA8C0
lea edx, ptr [esp]
push 0x1B6532C
push edx
call 0x72AEA0
add esp, 0x8
test eax, eax
jz 0x6E
mov dword ptr [0x20C889C], eax
xor eax, eax
add esp, 0xD8
ret
push 0x1B6532C
call 0x5FA880
lea eax, ptr [esp+0x10]
push eax
lea ecx, ptr [esp+0x8]
call 0x5FA910
lea ecx, ptr [esp]
push ecx
push 0x2
lea ecx, ptr [esp+0x10]
call 0x5FA8C0
lea edx, ptr [esp+0x8]
push 0x1B6532C
push edx
call 0x72AEA0
add esp, 0x8
test eax, eax
jz 0x7
mov dword ptr [0x20C889C], eax
push esi
push edi
lea esi, ptr [esp+0x10]
mov edi, 0x1
sub esi, 0x4
mov ecx, esi
call 0x49A650
sub edi, 0x1
jns 0xFFFFFFF3
pop edi
pop esi
xor eax, eax
add esp, 0xD8
ret
L_PedExec(nil, PedSetAITree, "id", "/Global/AI_Rat", "Act/AI/AI_Rat.act")
L_PedExec(nil, PedSetAITree, "id", "/Global/AI_SitTest", "Act/AI/AI_SitTest.act")
PedSetAITree(boxer, "/Global/AI_BOXER", "Act/AI/AI_BOXER.act")
PedSetAITree(edgar, "/Global/AI_EDGAR_5_B", "Act/AI/AI_EDGAR_5_B.act")
PedSetAITree(enemy.id, "AI_Sniper", "Act/AI_Snipe.act")
PedSetAITree(gBully01, "/Global/AI_FightTutorial", "Act/AI/AI_FightTutorial.act")
PedSetAITree(gGary, "/Global/GaryAI", "Act/AI/AI_Gary.act")
PedSetAITree(gJohnny, "/Global/AI", "Act/AI/AI.act")
PedSetAITree(idDarby, "/Global/DarbyAI", "Act/AI/AI_DARBY_2_B.act")
PedSetAITree(idNorton, "/Global/NortonAI", "Act/AI/AI_Norton.act")
PedSetAITree(PB1, "/Global/PunchbagAI", "Act/AI/AI_Punchbag.act")
PedSetAITree(PB2, "/Global/PunchbagAI", "Act/AI/AI_Punchbag.act")
PedSetAITree(PB3, "/Global/PunchbagAI", "Act/AI/AI_Punchbag.act")
PedSetAITree(ped.id, ped.AINode, ped.AIFile)
PedSetAITree(pedID, ClientAITree, ClientAIFile)
PedSetAITree(pedMascot.id, "/Global/AI_MASCOT_4_05", "Act/AI/AI_MASCOT_4_05.act")
PedSetAITree(russell, "/Global/RusselAI", "Act/AI/AI_RUSSEL_1_B.act")
PedSetAITree(shared.gControllerPed, "/Global/AI", "Act/AI/AI.act")
sub esp, 0x204
push esi
mov esi, dword ptr [esp+0x20C]
push edi
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov edi, eax
add esp, 0x8
test edi, edi
jz 0x9C
push 0x1
push esi
call LuaParam::GetString
add esp, 0x8
lea edx, ptr [esp+0x10C]
mov cl, byte ptr [eax]
mov byte ptr [edx], cl
add eax, 0x1
add edx, 0x1
test cl, cl
jnz 0xFFFFFFF4
push 0x2
push esi
call LuaParam::GetString
add esp, 0x8
lea edx, ptr [esp+0xC]
mov cl, byte ptr [eax]
mov byte ptr [edx], cl
add eax, 0x1
add edx, 0x1
test cl, cl
jnz 0xFFFFFFF4
lea eax, ptr [esp+0xC]
push eax
lea ecx, ptr [esp+0x110]
push ecx
mov ecx, edi
call 0x4740C0
lea eax, ptr [esp+0x10C]
lea edx, ptr [eax+0x1]
mov cl, byte ptr [eax]
add eax, 0x1
test cl, cl
jnz 0xFFFFFFF9
sub eax, edx
jz 0x30
lea eax, ptr [esp+0xC]
lea edx, ptr [eax+0x1]
mov cl, byte ptr [eax]
add eax, 0x1
test cl, cl
jnz 0xFFFFFFF9
sub eax, edx
jz 0x1C
push 0x0
lea edx, ptr [esp+0x10]
push edx
lea eax, ptr [esp+0x114]
push eax
push edi
mov ecx, 0xD02850
call 0x5DC1A0
pop edi
xor eax, eax
pop esi
add esp, 0x204
ret
PedSetAllyAutoEngage(allyId, true)
PedSetAllyAutoEngage(gThad, true)
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x13
push 0x1
push edi
call LuaParam::GetBool
add esp, 0x8
mov byte ptr [esi+0x304], al
pop edi
xor eax, eax
pop esi
ret
-- never used
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
push 0x1
push 0x1
push edi
mov esi, eax
call LuaParam::GetInt ; optional
add esp, 0x14
test esi, esi
jz 0x8
mov dword ptr [esi+0x318], eax
pop edi
xor eax, eax
pop esi
ret
PedSetAllyJump(gRussell.id, true)
PedSetAllyJump(gThad, true)
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x13
push 0x1
push edi
call LuaParam::GetBool
add esp, 0x8
mov byte ptr [esi+0x305], al
pop edi
xor eax, eax
pop esi
ret
PedSetAlpha(gPlayer, 0, true)
PedSetAlpha(gPlayer, 100, false)
PedSetAlpha(gPlayer, 180, true)
PedSetAlpha(gPlayer, 255, false)
PedSetAlpha(gPlayer, 255, true)
push ecx
push ebx
push esi
push edi
mov edi, dword ptr [esp+0x14]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x28
push 0x1
push edi
call LuaParam::GetInt
push 0x2
push edi
mov ebx, eax
call LuaParam::GetBool
mov byte ptr [esp+0x1C], al
mov eax, dword ptr [esp+0x1C]
add esp, 0x10
push eax
push ebx
mov ecx, esi
call 0x4732A0
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
PedSetAlwaysStrafe(boxer, true)
push esi
mov esi, dword ptr [esp+0x8]
push edi
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
push 0x1
push esi
mov edi, eax
call LuaParam::GetBool
add esp, 0x10
mov byte ptr [edi+0x718], al
pop edi
xor eax, eax
pop esi
ret
-- never used
push ecx
mov eax, dword ptr [esp+0x8]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
xor eax, eax
add esp, 0xC
ret
PedSetAntiTetherToPed(ped.id, ped.antiTether.ped, ped.antiTether.radius)
push ecx
push ebx
push esi
push edi
mov edi, dword ptr [esp+0x14]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov ebx, eax
add esp, 0x8
test ebx, ebx
jz 0x4C
push 0x1
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x2A
push 0x2
push edi
call LuaParam::GetFloat
fstp dword ptr [esp+0x14], st
fld st, dword ptr [esp+0x14]
add esp, 0x8
push 0xBCC564
push ecx
fstp dword ptr [esp], st
push esi
lea ecx, ptr [ebx+0x358]
call 0x499BD0
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
PedSetAntiTetherToPoint(ped.id, ped.antiTether.point, ped.antiTether.radius)
sub esp, 0x18
push ebx
push ebp
mov ebp, dword ptr [esp+0x24]
push esi
push edi
push 0x0
push ebp
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
mov dword ptr [esp+0x18], eax
jz 0xD6
push 0x1
push ebp
mov byte ptr [esp+0x1B], 0x0
call LuaParam::GetInt
push ebp
movzx esi, ax
call 0x73AEA0
add esp, 0xC
cmp eax, 0x4
jnz 0x16
push 0x2
push ebp
mov byte ptr [esp+0x1B], 0x1
call LuaParam::GetInt
add esp, 0x8
mov ebx, eax
jmp 0x6
mov ebx, dword ptr [esp+0x18]
movzx eax, si
push eax
mov ecx, 0xBC5E7C
call 0x6D6450
test eax, eax
mov dword ptr [esp+0x14], eax
jz 0x86
mov ecx, eax
call 0x6D59B0
cmp byte ptr [esp+0x13], 0x0
mov esi, eax
jz 0x25
mov edi, 0x1
cmp ebx, edi
jle 0x1C
lea esp, ptr [esp]
mov ecx, dword ptr [esp+0x14]
call 0x6D59F0
test eax, eax
jz 0xB
add edi, 0x1
cmp edi, ebx
mov esi, eax
jl 0xFFFFFFEC
test esi, esi
jz 0x4B
mov ecx, dword ptr [esi]
mov dword ptr [esp+0x1C], ecx
mov edx, dword ptr [esi+0x4]
xor ecx, ecx
cmp byte ptr [esp+0x13], cl
mov dword ptr [esp+0x20], edx
mov eax, dword ptr [esi+0x8]
setnz cl
mov dword ptr [esp+0x24], eax
add ecx, 0x2
push ecx
push ebp
call LuaParam::GetFloat
fstp dword ptr [esp+0x1C], st
fld st, dword ptr [esp+0x1C]
mov ecx, dword ptr [esp+0x20]
add esp, 0x4
lea edx, ptr [esp+0x20]
fstp dword ptr [esp], st
push edx
add ecx, 0x358
call 0x499B90
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
PedSetAntiTetherToProp(ped.id, ped.antiTether.prop, ped.antiTether.radius)
push ecx
push ebx
push esi
mov esi, dword ptr [esp+0x10]
push edi
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov ebx, eax
add esp, 0x8
test ebx, ebx
jz 0x51
push 0x1
push esi
call LuaParam::GetInt
add esp, 0x8
push 0x0
push 0x0
push ecx
mov ecx, esp
push eax
mov dword ptr [ecx], 0x0
call 0x5C28D0
mov edi, eax
add esp, 0x10
test edi, edi
jz 0x2A
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x14], st
fld st, dword ptr [esp+0x14]
add esp, 0x8
push 0xBCC564
push ecx
fstp dword ptr [esp], st
push edi
lea ecx, ptr [ebx+0x358]
call 0x499BD0
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
PedSetAntiTetherToTrigger(ped.id, ped.antiTether.trigger)
push ecx
push esi
push edi
mov edi, dword ptr [esp+0x10]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x36
push 0x1
push edi
call LuaParam::GetInt
add esp, 0x8
test eax, eax
jl 0x27
mov ecx, dword ptr [0x20C7C48]
mov edx, dword ptr [ecx+0x4]
test byte ptr [eax+edx*1], 0x80
jnz 0x18
mov edx, dword ptr [ecx+0xC]
imul edx, eax
add edx, dword ptr [ecx]
jz 0xE
push eax
lea ecx, ptr [esi+0x358]
call 0x499C40
pop edi
xor eax, eax
pop esi
pop ecx
ret
PedSetAntiTetherToXYZ(ped.id, ped.antiTether.x, ped.antiTether.y, ped.antiTether.z, ped.antiTether.radius)
sub esp, 0x10
push esi
mov esi, dword ptr [esp+0x18]
push edi
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
push 0x1
mov edi, eax
lea eax, ptr [esp+0x18]
push esi
push eax
call LuaParam::GetVector
push 0x4
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x24], st
add esp, 0x1C
test edi, edi
jz 0x1A
fld st, dword ptr [esp+0x8]
push ecx
lea ecx, ptr [esp+0x10]
fstp dword ptr [esp], st
push ecx
lea ecx, ptr [edi+0x358]
call 0x499B90
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret
L_PedExec(group1, PedSetAsleep, "id", false)
PedSetAsleep(bioTeacher, true)
PedSetAsleep(car.driver, true)
PedSetAsleep(char, true)
PedSetAsleep(classmate01, true)
PedSetAsleep(classmate02, true)
PedSetAsleep(classmate03, true)
PedSetAsleep(clint, true)
PedSetAsleep(driver, true)
PedSetAsleep(dude, bSleep)
PedSetAsleep(Earnest, false)
PedSetAsleep(Earnest, true)
PedSetAsleep(galloway, true)
PedSetAsleep(gBully01, true)
PedSetAsleep(gBully02, true)
PedSetAsleep(gBully03, true)
PedSetAsleep(gCop1, false)
PedSetAsleep(gCop1, true)
PedSetAsleep(gCurrentBully01, false)
PedSetAsleep(gCurrentBully01, true)
PedSetAsleep(gCurrentBully02, false)
PedSetAsleep(gCurrentBully02, true)
PedSetAsleep(gDavis, false)
PedSetAsleep(gDavis, true)
PedSetAsleep(gEdgar, true)
PedSetAsleep(gGary, true)
PedSetAsleep(gHattrick, false)
PedSetAsleep(gHattrick, true)
PedSetAsleep(gHobo, false)
PedSetAsleep(gHobo, true)
PedSetAsleep(gJV_OnBike, false)
PedSetAsleep(gJV_OnBike, true)
PedSetAsleep(gPeanut, false)
PedSetAsleep(gPeanut, true)
PedSetAsleep(gPlayer, false)
PedSetAsleep(gPlayer, true)
PedSetAsleep(gPrefect, true)
PedSetAsleep(GreaserThief.id1, false)
PedSetAsleep(GreaserThief.id1, true)
PedSetAsleep(GreaserThief.id2, false)
PedSetAsleep(GreaserThief.id2, true)
PedSetAsleep(GreaserThief.id3, false)
PedSetAsleep(GreaserThief.id3, true)
PedSetAsleep(GreaserThief.id4, false)
PedSetAsleep(GreaserThief.id4, true)
PedSetAsleep(gRooftopPeds1[1], true)
PedSetAsleep(gRooftopPeds1[2], false)
PedSetAsleep(gRooftopPeds1[2], true)
PedSetAsleep(gRussell, false)
PedSetAsleep(gRussell, true)
PedSetAsleep(gVance, false)
PedSetAsleep(gVance, true)
PedSetAsleep(hattrick, true)
PedSetAsleep(id2ndMan, true)
PedSetAsleep(idHitMan, true)
PedSetAsleep(ped, false)
PedSetAsleep(ped, true)
PedSetAsleep(ped.id, false)
PedSetAsleep(ped.id, ped.asleep)
PedSetAsleep(ped.id, true)
PedSetAsleep(pedCamera.id, true)
PedSetAsleep(pedid, false)
PedSetAsleep(race.countdown_ped.id, true)
PedSetAsleep(racer.id, true)
PedSetAsleep(Rudy, true)
PedSetAsleep(russell, true)
PedSetAsleep(shared.ped1, true)
PedSetAsleep(shared.PedLineupTable[ped].handle, asleep)
PedSetAsleep(sheet1Bruiser, false)
PedSetAsleep(sheet1Bruiser, true)
PedSetAsleep(sheet1Guard, false)
PedSetAsleep(sheet1Guard, true)
PedSetAsleep(tblPeanut.id, false)
PedSetAsleep(tblPeanut.id, true)
PedSetAsleep(tblPeanut.id2, false)
PedSetAsleep(tblPeanut.id2, true)
PedSetAsleep(teacher, true)
PedSetAsleep(treePedID, false)
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x16
push 0x1
push edi
call LuaParam::GetBool
movzx eax, al
add esp, 0x8
mov dword ptr [esi+0x1358], eax
pop edi
xor eax, eax
pop esi
ret
L_PedExec("CheerDudes", PedSetCheap, "id", true)
L_PedExec("spectator", PedSetCheap, "id", false)
PedSetCheap(car.driver, true)
PedSetCheap(cop2, true)
PedSetCheap(driver, true)
PedSetCheap(entry, false)
PedSetCheap(gBoxerIds[i], true)
PedSetCheap(gChaseCarDriver, true)
PedSetCheap(gDOThug01, false)
PedSetCheap(gDOThug01, true)
PedSetCheap(gDOThug02, false)
PedSetCheap(gDOThug02, true)
PedSetCheap(gDOThug03, false)
PedSetCheap(gDOThug03, true)
PedSetCheap(gFenwick, false)
PedSetCheap(gFenwick, true)
PedSetCheap(idBiff, true)
PedSetCheap(ped, false)
PedSetCheap(ped, isSideline)
PedSetCheap(ped, true)
PedSetCheap(pedid, false)
PedSetCheap(shared.ped1, true)
PedSetCheap(student, true)
PedSetCheap(Thug, true)
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x13
push 0x1
push edi
call LuaParam::GetBool
add esp, 0x8
mov byte ptr [esi+0x1E25], al
pop edi
xor eax, eax
pop esi
ret
L_PedExec("spectator", PedSetCheering, "id", true)
PedSetCheering(entry.id, true)
PedSetCheering(iGreaser03, false)
PedSetCheering(iGreaser03, true)
PedSetCheering(ped, false)
PedSetCheering(ped, true)
PedSetCheering(pedBryce, false)
PedSetCheering(pedBryce, true)
PedSetCheering(pedGord, false)
PedSetCheering(pedGord, true)
PedSetCheering(pedid, false)
PedSetCheering(pedid, true)
PedSetCheering(pedID, true)
PedSetCheering(pTable.pedId, false)
PedSetCheering(pTable.pedId, true)
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x16
push 0x1
push edi
call LuaParam::GetBool
movzx eax, al
add esp, 0x8
mov dword ptr [esi+0x136C], eax
pop edi
xor eax, eax
pop esi
ret
PedSetCombatZoneMask(boxer, true, false, false)
PedSetCombatZoneMask(EnemyTable[index].handle, false, false, true)
PedSetCombatZoneMask(gBully01, true, true, false)
PedSetCombatZoneMask(gFTPed, false, false, true)
PedSetCombatZoneMask(gFTPed, false, true, false)
PedSetCombatZoneMask(gFTPed, true, false, false)
PedSetCombatZoneMask(gFTPed, true, true, true)
PedSetCombatZoneMask(gHobo, true, true, false)
PedSetCombatZoneMask(idNorton, true, false, false)
PedSetCombatZoneMask(johnny, true, false, false)
PedSetCombatZoneMask(russell, false, true, true)
PedSetCombatZoneMask(tblGreaser.id, true, true, false)
PedSetCombatZoneMask(TestPed, false, false, true)
push ebx
mov ebx, dword ptr [esp+0x8]
push ebp
push esi
push edi
push 0x0
push ebx
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
xor esi, esi
lea ebp, ptr [eax+0x668]
lea esp, ptr [esp]
lea edi, ptr [esi+0x1]
push edi
push ebx
call LuaParam::GetBool
add esp, 0x8
mov ecx, ebp
push eax
push esi
call 0x486260
mov esi, edi
cmp esi, 0x3
jl 0xFFFFFFE5
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
PedSetControllerID(gPlayer, 0)
PedSetControllerID(shared.gControllerPed, 0)
PedSetControllerID(shared.PedLineupTable[shared.g_currentCreatedPed].handle, 0)
push esi
mov esi, dword ptr [esp+0x8]
push edi
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov edi, eax
add esp, 0x8
test edi, edi
jz 0x2C
push 0x1
push esi
call LuaParam::GetInt
movzx eax, ax
add esp, 0x8
test ax, ax
jnz 0xD
mov dword ptr [0xC2B120], edi
xor eax, eax
pop edi
pop esi
ret
cmp ax, 0x1
jnz 0x8
mov dword ptr [0xC2B124], edi
pop edi
xor eax, eax
pop esi
ret
PedSetDamageGivenMultiplier(gPlayer, 2, 1.075)
PedSetDamageGivenMultiplier(gPlayer, 2, 1.15)
PedSetDamageGivenMultiplier(gPlayer, 2, 1.225)
PedSetDamageGivenMultiplier(gPlayer, 2, 1.3)
push ebx
push esi
push edi
mov edi, dword ptr [esp+0x10]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x1E
push 0x1
push edi
call LuaParam::GetInt
push 0x2
push edi
mov ebx, eax
call LuaParam::GetFloat
fstp dword ptr [esi+ebx*4+0x1CCC], st
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
ret
PedSetDamageTakenMultiplier(edgar, 0, 0.3)
PedSetDamageTakenMultiplier(edgar, 3, 0.2)
PedSetDamageTakenMultiplier(gJV_OnBike, 0, 0.3)
PedSetDamageTakenMultiplier(gJV_OnBike, 3, 0.2)
PedSetDamageTakenMultiplier(gNerds[1].id, 0, 0.5)
PedSetDamageTakenMultiplier(gNerds[1].id, 1, 0.5)
PedSetDamageTakenMultiplier(gNerds[1].id, 2, 0.5)
PedSetDamageTakenMultiplier(gNerds[1].id, 3, 0.5)
PedSetDamageTakenMultiplier(gNerds[2].id, 0, 0.5)
PedSetDamageTakenMultiplier(gNerds[2].id, 1, 0.5)
PedSetDamageTakenMultiplier(gNerds[2].id, 2, 0.5)
PedSetDamageTakenMultiplier(gNerds[2].id, 3, 0.5)
PedSetDamageTakenMultiplier(idDarby, 0, 0.2)
PedSetDamageTakenMultiplier(idDarby, 3, 0.2)
PedSetDamageTakenMultiplier(idNorton, 0, 0.5)
PedSetDamageTakenMultiplier(idNorton, 3, 0.5)
PedSetDamageTakenMultiplier(pedGord, 0, 0.1)
PedSetDamageTakenMultiplier(pedGord, 0, 1)
PedSetDamageTakenMultiplier(pedGord, 3, 0.1)
PedSetDamageTakenMultiplier(pedGord, 3, 1)
PedSetDamageTakenMultiplier(pedID, 3, 0.05)
PedSetDamageTakenMultiplier(pedMascot.id, 0, 0.1)
PedSetDamageTakenMultiplier(pedMascot.id, 3, 0.1)
PedSetDamageTakenMultiplier(russell, 0, 0.3)
PedSetDamageTakenMultiplier(russell, 0, 0.5)
PedSetDamageTakenMultiplier(russell, 3, 0.2)
push ebx
push esi
push edi
mov edi, dword ptr [esp+0x10]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x1E
push 0x1
push edi
call LuaParam::GetInt
push 0x2
push edi
mov ebx, eax
call LuaParam::GetFloat
fstp dword ptr [esi+ebx*4+0x1CF4], st
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
ret
PedSetDefaultTypeToTypeAttitude(0, 13, 1)
PedSetDefaultTypeToTypeAttitude(1, 13, 1)
PedSetDefaultTypeToTypeAttitude(1, 13, 2)
PedSetDefaultTypeToTypeAttitude(1, 13, 3)
PedSetDefaultTypeToTypeAttitude(1, 13, 4)
PedSetDefaultTypeToTypeAttitude(11, 13, 0)
PedSetDefaultTypeToTypeAttitude(11, 13, 1)
PedSetDefaultTypeToTypeAttitude(11, 13, 2)
PedSetDefaultTypeToTypeAttitude(11, 13, 4)
PedSetDefaultTypeToTypeAttitude(2, 13, 1)
PedSetDefaultTypeToTypeAttitude(2, 13, 2)
PedSetDefaultTypeToTypeAttitude(2, 13, 4)
PedSetDefaultTypeToTypeAttitude(3, 13, 0)
PedSetDefaultTypeToTypeAttitude(3, 13, 1)
PedSetDefaultTypeToTypeAttitude(3, 13, 4)
PedSetDefaultTypeToTypeAttitude(4, 13, 0)
PedSetDefaultTypeToTypeAttitude(4, 13, 1)
PedSetDefaultTypeToTypeAttitude(4, 13, 2)
PedSetDefaultTypeToTypeAttitude(4, 13, 3)
PedSetDefaultTypeToTypeAttitude(4, 13, 4)
PedSetDefaultTypeToTypeAttitude(5, 13, 0)
PedSetDefaultTypeToTypeAttitude(5, 13, 1)
PedSetDefaultTypeToTypeAttitude(5, 13, 2)
PedSetDefaultTypeToTypeAttitude(5, 13, 3)
PedSetDefaultTypeToTypeAttitude(5, 13, 4)
PedSetDefaultTypeToTypeAttitude(6, 13, 1)
PedSetDefaultTypeToTypeAttitude(6, 13, 2)
PedSetDefaultTypeToTypeAttitude(6, 13, 3)
PedSetDefaultTypeToTypeAttitude(6, 13, 4)
PedSetDefaultTypeToTypeAttitude(8, 13, 2)
PedSetDefaultTypeToTypeAttitude(8, 13, 3)
PedSetDefaultTypeToTypeAttitude(9, 13, 2)
push ebx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetInt
push 0x2
push esi
mov ebx, eax
call LuaParam::GetInt
mov ecx, dword ptr [0xC2AF9C]
add esp, 0x18
push eax
push ebx
push edi
call 0x46F8F0
pop edi
pop esi
xor eax, eax
pop ebx
ret
CLIENT
Sets the direction a ped is going. Only useful during the PedUpdateActionController event. The direction is specified by 2 coordinates that represent a direction relative to the world.
PedSetEffectedByGravity(a, false)
PedSetEffectedByGravity(a, true)
PedSetEffectedByGravity(carnie, false)
PedSetEffectedByGravity(edgar, false)
PedSetEffectedByGravity(edgar, true)
PedSetEffectedByGravity(entry, true)
PedSetEffectedByGravity(entry.id, false)
PedSetEffectedByGravity(fCasey, false)
PedSetEffectedByGravity(fCasey, true)
PedSetEffectedByGravity(frMermaid, false)
PedSetEffectedByGravity(gCannonNerd, false)
PedSetEffectedByGravity(gCannonNerd, true)
PedSetEffectedByGravity(gEdgar, false)
PedSetEffectedByGravity(gHobo, false)
PedSetEffectedByGravity(gPlayer, false)
PedSetEffectedByGravity(gPlayer, true)
PedSetEffectedByGravity(ped, false)
PedSetEffectedByGravity(ped, true)
PedSetEffectedByGravity(ped.id, ped.gravity)
PedSetEffectedByGravity(pedCamera.id, false)
PedSetEffectedByGravity(pedGreaser04.id, false)
PedSetEffectedByGravity(pedGreaser04.id, true)
PedSetEffectedByGravity(pedid, true)
PedSetEffectedByGravity(shared.gDunkMidget, false)
PedSetEffectedByGravity(spud_nerd, false)
push ecx
push esi
push edi
mov edi, dword ptr [esp+0x10]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
push 0x1
push edi
mov esi, eax
call LuaParam::GetBool
add esp, 0x10
test esi, esi
mov byte ptr [esp+0x8], al
jz 0x10
mov eax, dword ptr [esp+0x8]
push 0x0
push eax
mov ecx, esi
call 0x474C10
pop edi
xor eax, eax
pop esi
pop ecx
ret
PedSetEmotionTowardsPed(ambientLola, gPlayer, 8, true)
PedSetEmotionTowardsPed(beatrice, gPlayer, 8)
PedSetEmotionTowardsPed(beatrice, gPlayer, 8, true)
PedSetEmotionTowardsPed(Boy, Girl, 8)
PedSetEmotionTowardsPed(bum, gPlayer, 7)
PedSetEmotionTowardsPed(char, gPlayer, 0, false)
PedSetEmotionTowardsPed(charID, gPlayer, 7)
PedSetEmotionTowardsPed(clint, gPlayer, 8)
PedSetEmotionTowardsPed(DirtyCop, MotelOwner, 7, true)
PedSetEmotionTowardsPed(dude1, dude2, 7, true)
PedSetEmotionTowardsPed(dude2, dude1, 7, true)
PedSetEmotionTowardsPed(fatty, gPlayer, 4, true)
PedSetEmotionTowardsPed(gBeatrice, gPlayer, 7)
PedSetEmotionTowardsPed(gBeatrice, gPlayer, 8, true)
PedSetEmotionTowardsPed(gBlockers1[1], gPlayer, 3, true)
PedSetEmotionTowardsPed(gBlockers1[2], gPlayer, 2, true)
PedSetEmotionTowardsPed(gBully01, gPlayer, 1, true)
PedSetEmotionTowardsPed(gCheater01, gCheater02, 7, true)
PedSetEmotionTowardsPed(gCheater02, gCheater01, 7, true)
PedSetEmotionTowardsPed(gEdgar, gPlayer, 8)
PedSetEmotionTowardsPed(gFatty, gPlayer, 4, false)
PedSetEmotionTowardsPed(gHobo, gPlayer, 7)
PedSetEmotionTowardsPed(Girl, Boy, 8)
PedSetEmotionTowardsPed(Girl1, gPlayer, 8, false)
PedSetEmotionTowardsPed(gOrderly01, gOrderly02, 7, true)
PedSetEmotionTowardsPed(gOrderly02, gOrderly01, 7, true)
PedSetEmotionTowardsPed(gPushers[1], gPlayer, 3, true)
PedSetEmotionTowardsPed(gPushers[2], gPlayer, 1, true)
PedSetEmotionTowardsPed(Greaser1, gPlayer, 7, true)
PedSetEmotionTowardsPed(Greaser1, Greaser2, 7, true)
PedSetEmotionTowardsPed(Greaser2, Greaser1, 7, true)
PedSetEmotionTowardsPed(gSecretary, gPlayer, 7)
PedSetEmotionTowardsPed(gSpazzMan, gPlayer, 8)
PedSetEmotionTowardsPed(gZoe, gPlayer, 8, true)
PedSetEmotionTowardsPed(id2ndMan, gPlayer, 0)
PedSetEmotionTowardsPed(id2ndMan, idBucky, 2)
PedSetEmotionTowardsPed(idBucky, id2ndMan, 5)
PedSetEmotionTowardsPed(idBucky, idHitMan, 5)
PedSetEmotionTowardsPed(idConst.id, idPetey.id, 7, true)
PedSetEmotionTowardsPed(idEunice.id, gPlayer, 7, true)
PedSetEmotionTowardsPed(idGord.id, idLola.id, 7, true)
PedSetEmotionTowardsPed(idHitMan, gPlayer, 0)
PedSetEmotionTowardsPed(idHitMan, idBucky, 2)
PedSetEmotionTowardsPed(idLola.id, idGord.id, 7, true)
PedSetEmotionTowardsPed(idPetey.id, idConst.id, 7, true)
PedSetEmotionTowardsPed(idPinky.id, gPlayer, 7, true)
PedSetEmotionTowardsPed(idTeacher, gPlayer, 7)
PedSetEmotionTowardsPed(lolaID, gPlayer, 8)
PedSetEmotionTowardsPed(mandy, gPlayer, 8, true)
PedSetEmotionTowardsPed(MotelOwner, DirtyCop, 7, true)
PedSetEmotionTowardsPed(ped, gPlayer, 7)
PedSetEmotionTowardsPed(pedConstantine.id, gPlayer, 4, false)
PedSetEmotionTowardsPed(pedConstantine.id, gPlayer, 7, true)
PedSetEmotionTowardsPed(pedEunice.id, gPlayer, 8)
PedSetEmotionTowardsPed(pedKlepto.id, gPlayer, 0, true)
PedSetEmotionTowardsPed(pedMascot.id, gPlayer, 1, true)
PedSetEmotionTowardsPed(pedPinky.id, gPlayer, 8, true)
PedSetEmotionTowardsPed(pedRussell.id, gPlayer, 0)
PedSetEmotionTowardsPed(pedZoe.id, gPlayer, 8, true)
PedSetEmotionTowardsPed(Prep1, Prep2, 7, true)
PedSetEmotionTowardsPed(Prep2, Prep1, 7, true)
PedSetEmotionTowardsPed(Receiver1, gPlayer, 8)
PedSetEmotionTowardsPed(Receiver2, gPlayer, 8)
PedSetEmotionTowardsPed(Receiver3, gPlayer, 8)
PedSetEmotionTowardsPed(Rudy, gPlayer, 7)
PedSetEmotionTowardsPed(shared.gBif, gPlayer, 7)
PedSetEmotionTowardsPed(shared.PedLineupTable[shared.g_currentCreatedPed].handle, gPlayer, EmotionTable[EmotionIndex].Emotion, EmotionTable[EmotionIndex].ELock)
PedSetEmotionTowardsPed(Thug, Victim, 0)
PedSetEmotionTowardsPed(Victim, Thug, 5)
PedSetEmotionTowardsPed(worker1, worker2, 8)
PedSetEmotionTowardsPed(worker2, worker1, 8)
push ecx
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x14]
push edi
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
push 0x1
push esi
mov edi, eax
call LuaParam::GetInt
add esp, 0xC
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
push 0x2
push esi
mov ebx, eax
call LuaParam::GetInt
push esi
mov ebp, eax
mov byte ptr [esp+0x24], 0x0
call 0x73AEA0
add esp, 0x14
cmp eax, 0x3
jle 0x11
push 0x3
push esi
call LuaParam::GetBool
add esp, 0x8
mov byte ptr [esp+0x10], al
mov eax, dword ptr [esp+0x10]
push 0x0
push eax
push ebp
push ebx
lea ecx, ptr [edi+0xB44]
call 0x48F1D0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
PedSetEntityFlag(gGary, 56, false)
PedSetEntityFlag(gGary, 56, true)
PedSetEntityFlag(gPlayer, 0, true)
PedSetEntityFlag(gPlayer, 1, true)
PedSetEntityFlag(idDarby, 56, false)
PedSetEntityFlag(idDarby, 56, true)
push ebx
push esi
push edi
mov edi, dword ptr [esp+0x10]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x1E
push 0x1
push edi
call LuaParam::GetInt
push 0x2
push edi
mov ebx, eax
call LuaParam::GetBool
movzx eax, al
add esp, 0x10
mov dword ptr [esi+ebx*4+0x1C], eax
pop edi
pop esi
xor eax, eax
pop ebx
ret
PedSetFaction(Boxer1, 6)
PedSetFaction(Boxer2, 6)
PedSetFaction(camcoach, 9)
PedSetFaction(cheerleader1, 2)
PedSetFaction(cheerleader2, 2)
PedSetFaction(cheerleader3, 2)
PedSetFaction(entry.id, 5)
PedSetFaction(frMidget01, 12)
PedSetFaction(frMidget02, 12)
PedSetFaction(GateNerd.id, 1)
PedSetFaction(GateNerd.id, 2)
PedSetFaction(gBaddie.id, gBaddie.faction)
PedSetFaction(gBaddie02.id, gBaddie02.faction)
PedSetFaction(gBaddie03.id, gBaddie03.faction)
PedSetFaction(gBaddie04.id, gBaddie04.faction)
PedSetFaction(gBaddie05.id, gBaddie05.faction)
PedSetFaction(gBaddie06.id, gBaddie06.faction)
PedSetFaction(gControlOrderly, 9)
PedSetFaction(gJohnny, 9)
PedSetFaction(idZoe, 4)
PedSetFaction(PB1, 12)
PedSetFaction(PB2, 12)
PedSetFaction(PB3, 12)
PedSetFaction(ped.id, 6)
PedSetFaction(pedBurton.id, 9)
PedSetFaction(pedBurtonStage3.id, 9)
PedSetFaction(pedGalloway.id, 8)
PedSetFaction(pedGalloway.id, 9)
PedSetFaction(pedLola.id, 1)
PedSetFaction(pedTad.id, 5)
PedSetFaction(phillips, 9)
PedSetFaction(rat, 2)
PedSetFaction(ScenarioPed, 9)
PedSetFaction(tableEntry.id, 2)
PedSetFaction(Thug, 9)
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x18
push 0x1
push edi
call LuaParam::GetInt
add esp, 0x8
cmp eax, 0xD
jz 0x8
mov dword ptr [esi+0x1310], eax
pop edi
xor eax, eax
pop esi
ret
PedSetFightingSystem(boxer, 1)
PedSetFightingSystem(gPlayer, 0)
PedSetFightingSystem(gPlayer, 1)
push esi
mov esi, dword ptr [esp+0x8]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetInt
add esp, 0xC
mov esi, eax
mov eax, esp
push edi
mov dword ptr [eax], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
jz 0x8
mov dword ptr [eax+0x16DC], esi
pop edi
xor eax, eax
pop esi
ret
L_PedExec("gymjocks", PedSetFlag, "id", 111, false)
PedSetFlag(ambientLola, 84, true)
PedSetFlag(beatrice, 113, false)
PedSetFlag(beatrice, 113, true)
PedSetFlag(beatrice, 84, true)
PedSetFlag(Boxer1, 106, false)
PedSetFlag(Boxer1, 58, false)
PedSetFlag(Boxer1, 58, true)
PedSetFlag(Boxer2, 106, false)
PedSetFlag(Boxer2, 58, false)
PedSetFlag(Boxer2, 58, true)
PedSetFlag(buster, 129, true)
PedSetFlag(car.driver, 108, true)
PedSetFlag(char, 117, false)
PedSetFlag(char, 120, true)
PedSetFlag(clint, 113, false)
PedSetFlag(curPed, 120, true)
PedSetFlag(Dog, 108, true)
PedSetFlag(Dog, 120, true)
PedSetFlag(dog, 120, true)
PedSetFlag(driver, 120, true)
PedSetFlag(Earnest, 13, true)
PedSetFlag(edgar, 107, true)
PedSetFlag(edgar, 13, false)
PedSetFlag(edgar, 13, true)
PedSetFlag(edna, 133, false)
PedSetFlag(Edna, 133, false)
PedSetFlag(edna, 19, true)
PedSetFlag(edna, 23, true)
PedSetFlag(elf_01, 68, true)
PedSetFlag(elf_02, 68, true)
PedSetFlag(elf_03, 68, true)
PedSetFlag(elf_04, 68, true)
PedSetFlag(EnemyTable[index].handle, 13, true)
PedSetFlag(ent.id, 58, false)
PedSetFlag(entry.id, 122, true)
PedSetFlag(entry.id, 13, true)
PedSetFlag(entry.id, 58, true)
PedSetFlag(frMidget01, 21, false)
PedSetFlag(frMidget02, 21, false)
PedSetFlag(gBeatrice, 84, true)
PedSetFlag(gChad, 11, true)
PedSetFlag(gChad, 98, false)
PedSetFlag(gDavis, 21, false)
PedSetFlag(gDefenders[1], 58, false)
PedSetFlag(gDefenders[1], 58, true)
PedSetFlag(gDOThug01, 108, false)
PedSetFlag(gDOThug01, 108, true)
PedSetFlag(gDOThug01, 117, false)
PedSetFlag(gDOThug01, 117, true)
PedSetFlag(gDOThug02, 108, false)
PedSetFlag(gDOThug02, 108, true)
PedSetFlag(gDOThug02, 117, false)
PedSetFlag(gDOThug02, 117, true)
PedSetFlag(gDOThug03, 108, false)
PedSetFlag(gDOThug03, 108, true)
PedSetFlag(gDOThug03, 117, false)
PedSetFlag(gDOThug03, 117, true)
PedSetFlag(gFatty, 106, false)
PedSetFlag(gFenwick, 108, false)
PedSetFlag(gFenwick, 108, true)
PedSetFlag(gFenwick, 117, false)
PedSetFlag(gFenwick, 117, true)
PedSetFlag(gFirstImmortalPrep, 58, false)
PedSetFlag(gGary, 107, false)
PedSetFlag(gGary, 107, true)
PedSetFlag(gGary, 129, false)
PedSetFlag(gGary, 129, true)
PedSetFlag(gGord, 11, true)
PedSetFlag(gGord, 98, false)
PedSetFlag(gHattrick, 108, false)
PedSetFlag(gHattrick, 108, true)
PedSetFlag(gHobo, 129, true)
PedSetFlag(gJohnny, 129, false)
PedSetFlag(gJohnny, 129, true)
PedSetFlag(gJV_OnBike, 107, true)
PedSetFlag(gJV_OnBike, 13, false)
PedSetFlag(gJV_OnGround, 13, false)
PedSetFlag(gKeyMaster1, 98, false)
PedSetFlag(gKeyMaster2, 98, false)
PedSetFlag(gNerds[1], 122, true)
PedSetFlag(gNerds[2], 122, true)
PedSetFlag(gord, 108, true)
PedSetFlag(gord, 117, false)
PedSetFlag(gPeter, 13, true)
PedSetFlag(gPlayer, 108, false)
PedSetFlag(gPlayer, 108, flagState)
PedSetFlag(gPlayer, 108, true)
PedSetFlag(gPlayer, 109, false)
PedSetFlag(gPlayer, 109, true)
PedSetFlag(gPlayer, 114, false)
PedSetFlag(gPlayer, 114, true)
PedSetFlag(gPlayer, 117, false)
PedSetFlag(gPlayer, 117, true)
PedSetFlag(gPlayer, 128, false)
PedSetFlag(gPlayer, 128, true)
PedSetFlag(gPlayer, 13, false)
PedSetFlag(gPlayer, 13, true)
PedSetFlag(gPlayer, 2, false)
PedSetFlag(gPlayer, 2, true)
PedSetFlag(gPlayer, 21, false)
PedSetFlag(gPlayer, 21, true)
PedSetFlag(gPlayer, 46, false)
PedSetFlag(gPlayer, 5, false)
PedSetFlag(gPlayer, 5, true)
PedSetFlag(gPlayer, 58, false)
PedSetFlag(gPlayer, 58, true)
PedSetFlag(gPlayer, 97, false)
PedSetFlag(gPlayer, 97, true)
PedSetFlag(gPlayer, 98, false)
PedSetFlag(gPlayer, 98, true)
PedSetFlag(gRudy, 117, false)
PedSetFlag(gRudy, 117, true)
PedSetFlag(gSecondImmortalPrep, 58, false)
PedSetFlag(gTad, 11, true)
PedSetFlag(gTed, 68, false)
PedSetFlag(gTed, 68, true)
PedSetFlag(guy, 68, true)
PedSetFlag(gZoe, 84, true)
PedSetFlag(idDarby, 58, false)
PedSetFlag(idDarby, 58, true)
PedSetFlag(idEunice.id, 129, false)
PedSetFlag(idEunice.id, 129, true)
PedSetFlag(idEunice.id, 132, false)
PedSetFlag(idEunice.id, 132, true)
PedSetFlag(idEunice.id, 84, true)
PedSetFlag(idLola, 113, false)
PedSetFlag(idLola, 113, true)
PedSetFlag(idPeter, 117, false)
PedSetFlag(idPinky.id, 113, false)
PedSetFlag(idPinky.id, 113, true)
PedSetFlag(idPreppy, 58, true)
PedSetFlag(idZoe, 111, false)
PedSetFlag(idZoe, 113, false)
PedSetFlag(idZoe, 113, true)
PedSetFlag(item.elf, 68, false)
PedSetFlag(item.elf, 68, true)
PedSetFlag(johnny, 113, false)
PedSetFlag(johnny, 113, true)
PedSetFlag(kissGirl, 84, true)
PedSetFlag(lola, 108, true)
PedSetFlag(lola, 117, false)
PedSetFlag(mandy, 113, false)
PedSetFlag(mandy, 113, true)
PedSetFlag(mandy, 84, true)
PedSetFlag(Mascot, 13, true)
PedSetFlag(MomTalker, 113, false)
PedSetFlag(MomTalker, 113, true)
PedSetFlag(nemesis, 117, false)
PedSetFlag(nerd.id, 134, true)
PedSetFlag(ped, 106, false)
PedSetFlag(ped, 120, true)
PedSetFlag(ped, 13, true)
PedSetFlag(ped, 17, false)
PedSetFlag(ped, 17, true)
PedSetFlag(ped, 21, false)
PedSetFlag(ped, 58, false)
PedSetFlag(ped, 68, false)
PedSetFlag(ped, 68, true)
PedSetFlag(ped, 84, true)
PedSetFlag(ped1, 120, true)
PedSetFlag(ped2, 120, true)
PedSetFlag(ped3, 120, true)
PedSetFlag(pedAlgie.id, 106, false)
PedSetFlag(pedAlgie.id, 117, false)
PedSetFlag(pedAlgie.id, 129, true)
PedSetFlag(pedAlgie.id, 20, false)
PedSetFlag(pedAlgie.id, 20, true)
PedSetFlag(pedBryce, 108, false)
PedSetFlag(pedBryce, 108, true)
PedSetFlag(pedBurtonStage3.id, 113, false)
PedSetFlag(pedBurtonStage3.id, 113, true)
PedSetFlag(pedChad.id, 108, false)
PedSetFlag(pedChad.id, 108, true)
PedSetFlag(pedChad.id, 20, true)
PedSetFlag(pedCornelius.id, 113, false)
PedSetFlag(pedCornelius.id, 113, true)
PedSetFlag(pedCornelius.id, 117, false)
PedSetFlag(pedEarnest.id, 1, false)
PedSetFlag(pedEarnest.id, 113, false)
PedSetFlag(pedEarnest.id, 113, true)
PedSetFlag(pedEarnest.id, 117, false)
PedSetFlag(pedEarnest.id, 13, false)
PedSetFlag(pedEarnest.id, 2, false)
PedSetFlag(pedEarnest.id, 2, true)
PedSetFlag(pedEunice.id, 132, false)
PedSetFlag(pedEunice.id, 132, true)
PedSetFlag(pedGary.id, 10, false)
PedSetFlag(pedGary.id, 108, false)
PedSetFlag(pedGary.id, 108, true)
PedSetFlag(pedGary.id, 117, false)
PedSetFlag(pedGary.id, 129, true)
PedSetFlag(pedGary.id, 68, true)
PedSetFlag(pedGord, 107, true)
PedSetFlag(pedID, 125, true)
PedSetFlag(pedID, 31, false)
PedSetFlag(pedLola.id, 20, true)
PedSetFlag(pedLola.id, 23, true)
PedSetFlag(pedMascot.id, 117, false)
PedSetFlag(pedPete.id, 108, true)
PedSetFlag(pedPinky.id, 113, false)
PedSetFlag(pedPinky.id, 113, true)
PedSetFlag(pedPinky.id, 84, true)
PedSetFlag(pedPinky.id, 98, false)
PedSetFlag(pedPrep.id, 108, true)
PedSetFlag(pedPrep.id, 117, false)
PedSetFlag(pedStoreOwner.id, 113, false)
PedSetFlag(pedStoreOwner.id, 113, true)
PedSetFlag(pedStoreOwner.id, 128, false)
PedSetFlag(pedStoreOwner.id, 128, true)
PedSetFlag(pedTad.id, 20, true)
PedSetFlag(pedZoe.id, 84, true)
PedSetFlag(pedZoe.id, 98, false)
PedSetFlag(Petey, 108, true)
PedSetFlag(Petey, 110, false)
PedSetFlag(Petey, 110, true)
PedSetFlag(Petey, 19, true)
PedSetFlag(phillips, 113, false)
PedSetFlag(phillips, 113, true)
PedSetFlag(prank.id, 108, true)
PedSetFlag(prank.id, 110, true)
PedSetFlag(prefect, 97, true)
PedSetFlag(racer.id, 107, true)
PedSetFlag(racer.id, 45, true)
PedSetFlag(rider, 120, false)
PedSetFlag(rider, 120, true)
PedSetFlag(Rudy, 19, true)
PedSetFlag(ScenarioPed, 110, false)
PedSetFlag(ScenarioPed, 110, true)
PedSetFlag(sheet1Bruiser, 75, false)
PedSetFlag(sheet1Bruiser, 75, true)
PedSetFlag(sheet1Bruiser, 98, false)
PedSetFlag(sheet1Guard, 75, true)
PedSetFlag(sheet1Guard, 98, false)
PedSetFlag(sheet4Guard, 2, false)
PedSetFlag(sheet4Guard, 2, true)
PedSetFlag(tbl.id, 110, false)
PedSetFlag(tbl.id, 110, true)
PedSetFlag(tblGord.id, 117, false)
PedSetFlag(tblRaceInfo.race.countdown_ped.id, 113, false)
PedSetFlag(Thug, 120, true)
PedSetFlag(Thug, 2, true)
PedSetFlag(Victim, 120, true)
PedSetFlag(Walker, 120, true)
PedSetFlag(Walker2, 120, true)
PedSetFlag(watts, 19, true)
PedSetFlag(watts, 23, true)
PedSetFlag(worker1, 120, true)
PedSetFlag(worker2, 120, true)
push ebx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov edi, eax
add esp, 0x8
test edi, edi
jz 0x2E
push 0x1
push esi
call LuaParam::GetInt
push 0x2
push esi
mov ebx, eax
call LuaParam::GetBool
add esp, 0x10
cmp ebx, 0xC
jz 0x14
cmp ebx, 0x88
jnbe 0xC
movzx eax, al
mov dword ptr [edi+ebx*4+0x1314], eax
pop edi
pop esi
xor eax, eax
pop ebx
ret
PedSetFocus(attacker.id, gPlayer)
PedSetFocus(Dog, gPlayer)
PedSetFocus(Dog, ScenarioPed)
PedSetFocus(enemy, gPlayer)
PedSetFocus(gDavis, gPlayer)
PedSetFocus(greaser1, gCops[1])
PedSetFocus(greaser2, gCops[3])
PedSetFocus(gRussell.id, gPlayer)
PedSetFocus(gSidelines[4], gPlayer)
PedSetFocus(gSidelines[7], gPlayer)
PedSetFocus(guy.id, gPlayer)
PedSetFocus(idDO, gPlayer)
PedSetFocus(idPeter, gPlayer)
PedSetFocus(idRussell, gPlayer)
PedSetFocus(ped, gPlayer)
PedSetFocus(pedKlepto.id, gPlayer)
PedSetFocus(rider, gPlayer)
PedSetFocus(tblPeanut.id, gPlayer)
PedSetFocus(tblPeanut.id2, gPlayer)
PedSetFocus(testPed[1].id, gPlayer)
push ebx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetInt
add esp, 0xC
mov ebx, eax
mov eax, esp
push edi
mov dword ptr [eax], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x24
push ecx
mov eax, esp
push ebx
mov dword ptr [eax], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
jz 0xE
push eax
lea ecx, ptr [esi+0x3BC]
call 0x48C4C0
pop edi
pop esi
xor eax, eax
pop ebx
ret
PedSetGlobalAttitude_IgnoreTruants(false)
PedSetGlobalAttitude_IgnoreTruants(true)
mov eax, dword ptr [esp+0x4]
push 0x0
push 0x0
push eax
call LuaParam::GetBool ; optional
mov byte ptr [0xC2AFA2], al
add esp, 0xC
xor eax, eax
ret
PedSetGlobalAttitude_Rumble(false)
PedSetGlobalAttitude_Rumble(true)
PedSetGlobalAttitude_Rumble(true, true)
push ebx
push esi
mov esi, dword ptr [esp+0xC]
push 0x0
push 0x0
push esi
call LuaParam::GetBool ; optional
push 0x0
push 0x1
push esi
mov bl, al
call LuaParam::GetBool ; optional
add esp, 0x18
pop esi
mov byte ptr [0xC2AFA0], bl
mov byte ptr [0xC2AFA1], al
xor eax, eax
pop ebx
ret
PedSetGlobalSleep(false)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetBool
mov byte ptr [0xC2B108], al
add esp, 0x8
xor eax, eax
ret
PedSetGrappleTarget(assistant, gPlayer)
PedSetGrappleTarget(closestPed, gPlayer)
PedSetGrappleTarget(dude, gPlayer)
PedSetGrappleTarget(gPlayer, assistant)
PedSetGrappleTarget(gPlayer, dude)
PedSetGrappleTarget(gPrefect1, gPlayer, 3)
PedSetGrappleTarget(idTeacher2, idTeacher)
PedSetGrappleTarget(kidActive, Rudy)
PedSetGrappleTarget(pedGary.id, pedAlgie.id)
PedSetGrappleTarget(pedJohnny.id, pedCornelius.id)
PedSetGrappleTarget(pedParker, gPlayer)
PedSetGrappleTarget(Rudy, kidActive)
push ebx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetInt
add esp, 0xC
mov ebx, eax
mov eax, esp
push edi
mov dword ptr [eax], 0x2
call 0x5C7380
push 0x1
push esi
mov edi, eax
call LuaParam::IsNil
add esp, 0x10
test al, al
jz 0x12
xor eax, eax
push eax
mov ecx, edi
call 0x4744B0
xor eax, eax
pop edi
pop esi
pop ebx
ret
push ecx
mov eax, esp
push ebx
mov dword ptr [eax], 0x2
call 0x5C7380
add esp, 0x8
push eax
mov ecx, edi
call 0x4744B0
pop edi
pop esi
xor eax, eax
pop ebx
ret
L_PedExec("gymjocks", PedSetHealth, "id", 150)
L_PedExec(p_wave1, PedSetHealth, "id", 60)
L_PedExec(p_wave2, PedSetHealth, "id", 60)
L_PedExec(p_wave3, PedSetHealth, "id", 60)
L_PedExec(p_wave4, PedSetHealth, "id", 60)
L_PedExec(p_wave_scout3, PedSetHealth, "id", 60)
PedSetHealth(allyId, health * 2)
PedSetHealth(boxer, PedGetHealth(boxer) + healthInc)
PedSetHealth(bucky, 0.2)
PedSetHealth(cornelius, 0.2)
PedSetHealth(donald, 0.2)
PedSetHealth(earnest, 0.2)
PedSetHealth(Earnest, nDefaultHealth)
PedSetHealth(edna, nAnnoyMax - nAnnoyLevel)
PedSetHealth(entry.id, 20)
PedSetHealth(entry.id, 22)
PedSetHealth(frMidget01, gMidgetMaxHealth)
PedSetHealth(frMidget02, gMidgetMaxHealth)
PedSetHealth(gBully01, gOriginalBullyHealth / 2)
PedSetHealth(gCarny, 100)
PedSetHealth(gDavis, gDavisMaxHealth - damage)
PedSetHealth(gDavis, gDavisMaxHealth)
PedSetHealth(gDefenders[1], 100)
PedSetHealth(gDefenders[1], 200)
PedSetHealth(gGary, 400)
PedSetHealth(gHobo, 5000)
PedSetHealth(gJohnny, 500)
PedSetHealth(gJV_OnBike, MAX_JOHNNY_HEALTH)
PedSetHealth(gNerds[1].id, gNerds[1].health)
PedSetHealth(gNerds[1].id, PedGetHealth(gNerds[1].id) * 2.5)
PedSetHealth(gNerds[2].id, gNerds[2].health)
PedSetHealth(gNerds[2].id, PedGetHealth(gNerds[2].id) * 2.5)
PedSetHealth(gPeanut, 300)
PedSetHealth(gPlayer, 150)
PedSetHealth(gPlayer, PedGetHealth(gPlayer) + healthInc)
PedSetHealth(gPlayer, PedGetMaxHealth(gPlayer))
PedSetHealth(Greaser1, PedGetHealth(Greaser1) * 2)
PedSetHealth(Greaser2, PedGetHealth(Greaser2) * 2)
PedSetHealth(gRussell, gPreviousRussellHealth)
PedSetHealth(gRussell, PedGetHealth(gRussell) * 7)
PedSetHealth(gRussell.id, 800)
PedSetHealth(gTargetBoy, gPedHealth)
PedSetHealth(gTed, 5)
PedSetHealth(gTed, 5000)
PedSetHealth(gTheo, PedGetHealth(gTheo) * 2)
PedSetHealth(idBucky, 1000)
PedSetHealth(idBucky, Bucky_Current_Health - Half_Time_Health_Tick)
PedSetHealth(idBucky, BUCKY_DEFAULT_HEALTH)
PedSetHealth(idDarby, DARBY_MAX_HEALTH)
PedSetHealth(idDO, DO_MAX_HEALTH)
PedSetHealth(idOmar, 300)
PedSetHealth(idPreppy, prepHealth)
PedSetHealth(Mascot, 150)
PedSetHealth(melvin, 0.2)
PedSetHealth(melvin, 100)
PedSetHealth(nemesis, 400)
PedSetHealth(opponent, gOldHealth)
PedSetHealth(opponent, newHealth)
PedSetHealth(opponent, opponentHealth)
PedSetHealth(ped1, 200)
PedSetHealth(ped1, 50000)
PedSetHealth(ped2, 1)
PedSetHealth(ped2, 20)
PedSetHealth(pedChad.id, PedGetMaxHealth(pedChad.id) * 2)
PedSetHealth(pedCornelius.id, PedGetHealth(pedCornelius.id) * 2)
PedSetHealth(pedGary.id, PedGetHealth(pedGary.id) * 2)
PedSetHealth(pedGreaser01.id, gChasersHealth)
PedSetHealth(pedGreaser01.id, PedGetHealth(pedGreaser01.id) * 2)
PedSetHealth(pedGreaser02.id, gChasersHealth)
PedSetHealth(pedGreaser02.id, PedGetHealth(pedGreaser02.id) * 2)
PedSetHealth(pedGreaser03.id, PedGetHealth(pedGreaser03.id) * 2)
PedSetHealth(pedGreaser04.id, gChasersHealth)
PedSetHealth(pedGreaser04.id, PedGetHealth(pedGreaser04.id) * 2)
PedSetHealth(pedId, gPedHealth)
PedSetHealth(pedJohnny.id, PedGetHealth(pedJohnny.id) * 2)
PedSetHealth(pedKlepto.id, PedGetHealth(pedKlepto.id) * 1.5)
PedSetHealth(pedMascot.id, gMascotHealth)
PedSetHealth(pedMascot.id, mascotHealth * gMascotHealthModifier)
PedSetHealth(pedMascot.id, PedGetHealth(pedMascot.id) * 3)
PedSetHealth(pedNorton.id, PedGetHealth(pedNorton.id) * 2)
PedSetHealth(pedTad.id, 350)
PedSetHealth(scout, 60)
PedSetHealth(scout2, 60)
PedSetHealth(shared.gBif, health)
PedSetHealth(spud_nerd, 60)
PedSetHealth(sweater_guard, 1)
PedSetHealth(tblGordWH.id, ped4 * 2)
PedSetHealth(tblGreaser1WH.id, ped2 * 2)
PedSetHealth(tblGreaser2WH.id, ped3 * 2)
PedSetHealth(tblJohnnyWH.id, ped1 * 2)
PedSetHealth(tblPrep1WH.id, ped5 * 2)
PedSetHealth(tblPrep2WH.id, ped6 * 2)
PedSetHealth(tempPed, gChasersHealth)
PedSetHealth(testPed[1].id, 10000)
PedSetHealth(testPed[2].id, 10000)
PedSetHealth(testPed[3].id, 10000)
PedSetHealth(thad, 0.2)
PedSetHealth(Thug, 10)
push ecx
push esi
push edi
mov edi, dword ptr [esp+0x10]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x40
push 0x1
push edi
call LuaParam::GetFloat
fstp dword ptr [esp+0x10], st
fld st, dword ptr [esp+0x10]
add esp, 0x4
mov ecx, esi
fstp dword ptr [esp], st
call 0x4782E0
fld st, dword ptr [esp+0x8]
fld st, dword ptr [esi+0x1CA4]
fcomp st, st(1)
fnstsw ax
test ah, 0x5
jp 0xE
fstp dword ptr [esi+0x1CA4], st
xor eax, eax
pop edi
pop esi
pop ecx
ret
fstp st(0), st
pop edi
xor eax, eax
pop esi
pop ecx
ret
PedSetHealthBarQuiet(false)
PedSetHealthBarQuiet(true)
push ebx
push esi
mov esi, dword ptr [esp+0xC]
push esi
mov bl, 0x1
call LuaParam::GetParamCount
add esp, 0x4
cmp eax, 0x1
jl 0x1E
push 0x0
push esi
call LuaParam::GetBool
mov ecx, dword ptr [0xC674D0]
add esp, 0x8
pop esi
mov byte ptr [ecx+0xBD], al
xor eax, eax
pop ebx
ret
mov edx, dword ptr [0xC674D0]
pop esi
mov byte ptr [edx+0xBD], bl
xor eax, eax
pop ebx
ret
PedSetHitRecordDamage(gDavis, 0)
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x18], st
add esp, 0xC
mov eax, esp
push edi
mov dword ptr [eax], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
jz 0x15
mov edx, dword ptr [eax]
mov ecx, eax
mov eax, dword ptr [edx+0x40]
call 0x5C995E
fld st, dword ptr [esp+0x8]
mov ecx, dword ptr [eax+0x10]
fstp dword ptr [ecx+0x38], st
pop edi
xor eax, eax
pop esi
pop ecx
ret
PedSetImmortalFlag(gHattrick, false)
PedSetImmortalFlag(gPlayer, false)
PedSetImmortalFlag(gPlayer, true)
PedSetImmortalFlag(hattrick, true)
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x16
push 0x1
push edi
call LuaParam::GetBool
movzx eax, al
add esp, 0x8
mov dword ptr [esi+0x13FC], eax
pop edi
xor eax, eax
pop esi
ret
PedSetInfiniteSprint(davis, true)
PedSetInfiniteSprint(dog, true)
PedSetInfiniteSprint(edgar, true)
PedSetInfiniteSprint(Elf1, true)
PedSetInfiniteSprint(Elf2, true)
PedSetInfiniteSprint(Elf4, true)
PedSetInfiniteSprint(Elf5, true)
PedSetInfiniteSprint(entry.id, true)
PedSetInfiniteSprint(gBully02, true)
PedSetInfiniteSprint(gBully03, true)
PedSetInfiniteSprint(gDOThug01, true)
PedSetInfiniteSprint(gDOThug02, true)
PedSetInfiniteSprint(gDOThug03, true)
PedSetInfiniteSprint(gEdgar, true)
PedSetInfiniteSprint(gFenwick, true)
PedSetInfiniteSprint(gGary, true)
PedSetInfiniteSprint(gJohnny, true)
PedSetInfiniteSprint(gLackey[9].ped, true)
PedSetInfiniteSprint(gNerds[1].id, true)
PedSetInfiniteSprint(gNerds[2].id, true)
PedSetInfiniteSprint(gOldLady, true)
PedSetInfiniteSprint(gord, true)
PedSetInfiniteSprint(gPedro, true)
PedSetInfiniteSprint(gPedroBully, true)
PedSetInfiniteSprint(gPeds[1], true)
PedSetInfiniteSprint(gPeds[2], true)
PedSetInfiniteSprint(gPete, true)
PedSetInfiniteSprint(gPlayer, false)
PedSetInfiniteSprint(gPlayer, true)
PedSetInfiniteSprint(gPushers[1], true)
PedSetInfiniteSprint(gPushers[2], true)
PedSetInfiniteSprint(gRussell, true)
PedSetInfiniteSprint(gTed, true)
PedSetInfiniteSprint(idBurton, true)
PedSetInfiniteSprint(idDarby, true)
PedSetInfiniteSprint(idDO, true)
PedSetInfiniteSprint(idNemesis, true)
PedSetInfiniteSprint(idPreppy, true)
PedSetInfiniteSprint(idZoe, true)
PedSetInfiniteSprint(lola, true)
PedSetInfiniteSprint(nemesis, true)
PedSetInfiniteSprint(opponent, true)
PedSetInfiniteSprint(ped, true)
PedSetInfiniteSprint(pedCutBo.id, true)
PedSetInfiniteSprint(pedCutCasey.id, true)
PedSetInfiniteSprint(pedCutDan.id, true)
PedSetInfiniteSprint(pedCutJuri.id, true)
PedSetInfiniteSprint(pedCutKirby.id, true)
PedSetInfiniteSprint(pedDog.id, true)
PedSetInfiniteSprint(pedFirstBully.id, true)
PedSetInfiniteSprint(pedGary.id, true)
PedSetInfiniteSprint(pedGord, true)
PedSetInfiniteSprint(pedGreaser01.id, true)
PedSetInfiniteSprint(pedGreaser02.id, true)
PedSetInfiniteSprint(pedid, true)
PedSetInfiniteSprint(pedJohnny.id, true)
PedSetInfiniteSprint(pedMascot.id, true)
PedSetInfiniteSprint(pedZoe.id, true)
PedSetInfiniteSprint(shared.gdormHeadID, true)
PedSetInfiniteSprint(sheet4Guard, false)
PedSetInfiniteSprint(sheet4Guard, true)
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x16
push 0x1
push edi
call LuaParam::GetBool
movzx eax, al
add esp, 0x8
mov dword ptr [esi+0x13C8], eax
pop edi
xor eax, eax
pop esi
ret
L_PedExec("gymjocks", PedSetInvulnerable, "id", true)
L_PedExec("spectator", PedSetInvulnerable, "id", true)
PedSetInvulnerable(algie, false)
PedSetInvulnerable(algie, true)
PedSetInvulnerable(assistant, true)
PedSetInvulnerable(beatrice, false)
PedSetInvulnerable(Beatrice, false)
PedSetInvulnerable(Beatrice, true)
PedSetInvulnerable(beatrice, true)
PedSetInvulnerable(boxer, false)
PedSetInvulnerable(boxer, true)
PedSetInvulnerable(bum, true)
PedSetInvulnerable(Bum, true)
PedSetInvulnerable(burton, true)
PedSetInvulnerable(carnie, true)
PedSetInvulnerable(chemTeach, true)
PedSetInvulnerable(clint, false)
PedSetInvulnerable(davis, true)
PedSetInvulnerable(Earnest, false)
PedSetInvulnerable(Earnest, true)
PedSetInvulnerable(edgar, false)
PedSetInvulnerable(edgar, true)
PedSetInvulnerable(edna, false)
PedSetInvulnerable(Edna, false)
PedSetInvulnerable(Edna, true)
PedSetInvulnerable(edna, true)
PedSetInvulnerable(EnemyTable[i].handle, true)
PedSetInvulnerable(entry, false)
PedSetInvulnerable(entry.handle, true)
PedSetInvulnerable(entry.id, false)
PedSetInvulnerable(entry.id, true)
PedSetInvulnerable(Entry.id, true)
PedSetInvulnerable(frBeardedWoman, true)
PedSetInvulnerable(frMermaid, true)
PedSetInvulnerable(frPaintedMan, true)
PedSetInvulnerable(frSiamese02, true)
PedSetInvulnerable(frSkeletonMan, true)
PedSetInvulnerable(gCop2, true)
PedSetInvulnerable(gDavis, false)
PedSetInvulnerable(gGary, false)
PedSetInvulnerable(gGary, true)
PedSetInvulnerable(gGreaserAttacker, false)
PedSetInvulnerable(gGreaserAttacker, true)
PedSetInvulnerable(gHattrick, false)
PedSetInvulnerable(gHealthNerd, true)
PedSetInvulnerable(gMandy, true)
PedSetInvulnerable(gMelvin, false)
PedSetInvulnerable(gMelvin, true)
PedSetInvulnerable(gPeanut, false)
PedSetInvulnerable(gPeanut, true)
PedSetInvulnerable(gPeter, true)
PedSetInvulnerable(gPlayer, false)
PedSetInvulnerable(gPlayer, true)
PedSetInvulnerable(gSecretary, true)
PedSetInvulnerable(hattrick, true)
PedSetInvulnerable(iCheer01, true)
PedSetInvulnerable(iCheer02, true)
PedSetInvulnerable(iCheer03, true)
PedSetInvulnerable(iCheer04, true)
PedSetInvulnerable(iCheer05, true)
PedSetInvulnerable(id, false)
PedSetInvulnerable(idBiff, true)
PedSetInvulnerable(idBurton, false)
PedSetInvulnerable(idBurton, true)
PedSetInvulnerable(idDarby, false)
PedSetInvulnerable(idDarby, true)
PedSetInvulnerable(idDO, false)
PedSetInvulnerable(idDO, true)
PedSetInvulnerable(idLola, false)
PedSetInvulnerable(idLola, true)
PedSetInvulnerable(idPinky.id, false)
PedSetInvulnerable(idRussell, true)
PedSetInvulnerable(idZoe, false)
PedSetInvulnerable(idZoe, true)
PedSetInvulnerable(johnny, false)
PedSetInvulnerable(johnny, true)
PedSetInvulnerable(librarian, false)
PedSetInvulnerable(mandy, false)
PedSetInvulnerable(mandy, true)
PedSetInvulnerable(Mascot, true)
PedSetInvulnerable(ped, bool)
PedSetInvulnerable(ped, false)
PedSetInvulnerable(ped, true)
PedSetInvulnerable(pedBeatrice.id, false)
PedSetInvulnerable(pedBeatrice.id, true)
PedSetInvulnerable(pedBurtonStage3.id, false)
PedSetInvulnerable(pedBurtonStage3.id, true)
PedSetInvulnerable(pedCamera.id, true)
PedSetInvulnerable(pedChad.id, true)
PedSetInvulnerable(pedCornelius.id, false)
PedSetInvulnerable(pedCornelius.id, true)
PedSetInvulnerable(pedCutBucky.id, true)
PedSetInvulnerable(pedCutCornelius.id, true)
PedSetInvulnerable(pedCutThad.id, true)
PedSetInvulnerable(pedDog.id, false)
PedSetInvulnerable(pedDog.id, true)
PedSetInvulnerable(pedEarnest.id, false)
PedSetInvulnerable(pedEarnest.id, true)
PedSetInvulnerable(pedFirstBully.id, false)
PedSetInvulnerable(pedFirstBully.id, true)
PedSetInvulnerable(pedGary.id, false)
PedSetInvulnerable(pedGary.id, true)
PedSetInvulnerable(pedGirlsShower_01.id, true)
PedSetInvulnerable(pedGirlsShower_02.id, true)
PedSetInvulnerable(pedGord, false)
PedSetInvulnerable(pedGord, true)
PedSetInvulnerable(pedLola.id, true)
PedSetInvulnerable(pedMascot.id, false)
PedSetInvulnerable(pedMascot.id, true)
PedSetInvulnerable(pedPinky.id, false)
PedSetInvulnerable(pedPinky.id, true)
PedSetInvulnerable(pedPrep.id, false)
PedSetInvulnerable(pedPrep.id, true)
PedSetInvulnerable(pedStoreOwner.id, false)
PedSetInvulnerable(pedStoreOwner.id, true)
PedSetInvulnerable(phillips, false)
PedSetInvulnerable(phillips, true)
PedSetInvulnerable(prefect, true)
PedSetInvulnerable(Rudy, true)
PedSetInvulnerable(shared.gDunkMidget, true)
PedSetInvulnerable(shared.gGary, false)
PedSetInvulnerable(shared.gPetey, false)
PedSetInvulnerable(shared.gPetey, true)
PedSetInvulnerable(tblRaceInfo.race.countdown_ped.id, false)
PedSetInvulnerable(tblRaceInfo.race.countdown_ped.id, true)
PedSetInvulnerable(tblTad.id, true)
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x16
push 0x1
push edi
call LuaParam::GetBool
movzx eax, al
add esp, 0x8
mov dword ptr [esi+0x138C], eax
pop edi
xor eax, eax
pop esi
ret
PedSetInvulnerableToPlayer(gBully01, false)
PedSetInvulnerableToPlayer(gDavis, true)
PedSetInvulnerableToPlayer(gFatty, false)
PedSetInvulnerableToPlayer(gFatty, true)
PedSetInvulnerableToPlayer(gGalloway, true)
PedSetInvulnerableToPlayer(gHobo, false)
PedSetInvulnerableToPlayer(gMsPhillips, true)
PedSetInvulnerableToPlayer(gPeter, true)
PedSetInvulnerableToPlayer(gThad, false)
PedSetInvulnerableToPlayer(gThad, true)
PedSetInvulnerableToPlayer(guy, false)
PedSetInvulnerableToPlayer(id, true)
PedSetInvulnerableToPlayer(ped, false)
PedSetInvulnerableToPlayer(ped, true)
PedSetInvulnerableToPlayer(pedEarnest.id, true)
PedSetInvulnerableToPlayer(pedTad.id, true)
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x16
push 0x1
push edi
call LuaParam::GetBool
movzx eax, al
add esp, 0x8
mov dword ptr [esi+0x1364], eax
pop edi
xor eax, eax
pop esi
ret
PedSetIsStealthMissionPed(buster, false)
PedSetIsStealthMissionPed(CoachBurton.id, false)
PedSetIsStealthMissionPed(CoachBurton.id, true)
PedSetIsStealthMissionPed(Dog.id, true)
PedSetIsStealthMissionPed(enemy.id, false)
PedSetIsStealthMissionPed(entry.id)
PedSetIsStealthMissionPed(Entry.id, bStealth)
PedSetIsStealthMissionPed(gBlockAOrderly01, false)
PedSetIsStealthMissionPed(gBlockAOrderly02, false)
PedSetIsStealthMissionPed(gBlockBOrderly01, false)
PedSetIsStealthMissionPed(gBlockBOrderly02, false)
PedSetIsStealthMissionPed(gDuncan, false)
PedSetIsStealthMissionPed(gDuncan, true)
PedSetIsStealthMissionPed(gFrontOrderly, false)
PedSetIsStealthMissionPed(gHallMon)
PedSetIsStealthMissionPed(gHattrick, false)
PedSetIsStealthMissionPed(gHattrick, true)
PedSetIsStealthMissionPed(gLeon, false)
PedSetIsStealthMissionPed(gLeon, true)
PedSetIsStealthMissionPed(gPartierFire, true)
PedSetIsStealthMissionPed(gSleepingOrderly, false)
PedSetIsStealthMissionPed(gStationOrderly, false)
PedSetIsStealthMissionPed(guy.id, false)
PedSetIsStealthMissionPed(idNorton, false)
PedSetIsStealthMissionPed(pedArtTeacher.id, false)
PedSetIsStealthMissionPed(pedHeadmistress, false)
PedSetIsStealthMissionPed(pedID, false)
PedSetIsStealthMissionPed(pedId, false)
PedSetIsStealthMissionPed(tableEntry.id, true)
PedSetIsStealthMissionPed(tPed, true)
push ecx
push esi
push edi
mov edi, dword ptr [esp+0x10]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x1E
push 0x1
push 0x1
push edi
call LuaParam::GetBool ; optional
mov byte ptr [esp+0x14], al
mov eax, dword ptr [esp+0x14]
push eax
push esi
call 0x5D01E0
add esp, 0x14
pop edi
xor eax, eax
pop esi
pop ecx
ret
CLIENT
Sets a ped's matrix. Usually only useful during the PedUpdateMatrix event.
PedSetMaxHealth(Earnest, nDefaultHealth)
PedSetMaxHealth(edna, nAnnoyMax)
PedSetMaxHealth(entry.id, 22)
PedSetMaxHealth(frMidget01, gMidgetMaxHealth)
PedSetMaxHealth(frMidget02, gMidgetMaxHealth)
PedSetMaxHealth(gDefenders[1], 100)
PedSetMaxHealth(gDefenders[1], 200)
PedSetMaxHealth(gTed, 5)
PedSetMaxHealth(idDarby, DARBY_MAX_HEALTH)
PedSetMaxHealth(idPreppy, prepHealth)
PedSetMaxHealth(opponent, newHealth)
PedSetMaxHealth(pedGreaser01.id, gChasersHealth)
PedSetMaxHealth(pedGreaser02.id, gChasersHealth)
PedSetMaxHealth(pedKlepto.id, PedGetHealth(pedKlepto.id))
PedSetMaxHealth(pedMascot.id, mascotHealth * gMascotHealthModifier)
PedSetMaxHealth(shared.gBif, health)
PedSetMaxHealth(tempPed, gChasersHealth)
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x13
push 0x1
push edi
call LuaParam::GetFloat
fstp dword ptr [esi+0x1CA4], st
add esp, 0x8
pop edi
xor eax, eax
pop esi
ret
PedSetMinEngage(EnemyTable[index].handle, 100)
PedSetMinEngage(idBucky, 7)
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x13
push 0x1
push edi
call LuaParam::GetFloat
fstp dword ptr [esi+0x42C], st
add esp, 0x8
pop edi
xor eax, eax
pop esi
ret
PedSetMinHealth(davis, 10)
PedSetMinHealth(Earnest, nDefaultHealth * nDamageThreshold)
PedSetMinHealth(edna, nAnnoyDecay)
PedSetMinHealth(frMidget01, -1)
PedSetMinHealth(frMidget01, 100)
PedSetMinHealth(frMidget01, gMidgetMaxHealth)
PedSetMinHealth(frMidget02, -1)
PedSetMinHealth(frMidget02, 100)
PedSetMinHealth(frMidget02, gMidgetMaxHealth)
PedSetMinHealth(gBully01, -1)
PedSetMinHealth(gBully01, 5)
PedSetMinHealth(gBully01, 75)
PedSetMinHealth(gDavis, 0)
PedSetMinHealth(gGary, (PedGetHealth(gGary)))
PedSetMinHealth(gGary, 50)
PedSetMinHealth(gHattrick, -100)
PedSetMinHealth(gHobo, 100)
PedSetMinHealth(gord, 0)
PedSetMinHealth(gord, 0.05)
PedSetMinHealth(gThad, 0)
PedSetMinHealth(gThad, health)
PedSetMinHealth(hattrick, 50)
PedSetMinHealth(idPeter, 0.5)
PedSetMinHealth(lola, 0)
PedSetMinHealth(lola, 0.05)
PedSetMinHealth(ped, -1)
PedSetMinHealth(ped, 0.5)
PedSetMinHealth(ped, h)
PedSetMinHealth(pedAlgie.id, PedGetHealth(pedAlgie.id))
PedSetMinHealth(sheet1Bruiser, 20)
PedSetMinHealth(sheet1Guard, 20)
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x13
push 0x1
push edi
call LuaParam::GetFloat
fstp dword ptr [esi+0x1CA8], st
add esp, 0x8
pop edi
xor eax, eax
pop esi
ret
PedSetMissionCritical(beatrice, false)
PedSetMissionCritical(beatrice, false, F_BeaHit, false)
PedSetMissionCritical(beatrice, true, F_BeaHit, true)
PedSetMissionCritical(CharID, true)
PedSetMissionCritical(CharID, true, CbPlayerAggressed, true)
PedSetMissionCritical(clint, true, F_ClintHit, true)
PedSetMissionCritical(dude, false)
PedSetMissionCritical(dude, true, F_MissionFailed, true)
PedSetMissionCritical(Edna, false)
PedSetMissionCritical(edna, false)
PedSetMissionCritical(edna, true, cbFail, true)
PedSetMissionCritical(Edna, true, cbFail, true)
PedSetMissionCritical(entry.id, false)
PedSetMissionCritical(GateNerd.id, false)
PedSetMissionCritical(GateNerd.id, true, CbPlayerAggressed, true)
PedSetMissionCritical(gBeatrice, false)
PedSetMissionCritical(gBeatrice, false, nil, false)
PedSetMissionCritical(gBeatrice, true, F_CriticalPedDied, true)
PedSetMissionCritical(gGary, false)
PedSetMissionCritical(gGary, true, CB_GaryDied)
PedSetMissionCritical(gGary, true, CB_GaryDied, false)
PedSetMissionCritical(gGary, true, F_MissionCriticalGary, true)
PedSetMissionCritical(gHobo, false)
PedSetMissionCritical(gHobo, true, F_CriticalPedDied, true)
PedSetMissionCritical(Girl1, true, F_FailTheMission, true)
PedSetMissionCritical(gJockArrived, false)
PedSetMissionCritical(gMelvin, true)
PedSetMissionCritical(gNerd01, true, CbPlayerAggressed, true)
PedSetMissionCritical(gNerd02, true, CbPlayerAggressed, true)
PedSetMissionCritical(gNerd03, true, CbPlayerAggressed, true)
PedSetMissionCritical(gNerds[1].id, false, nil, false)
PedSetMissionCritical(gNerds[1].id, true, CB_NerdThadDied)
PedSetMissionCritical(gNerds[2].id, false, nil, false)
PedSetMissionCritical(gNerds[2].id, true, CB_NerdFattyDied)
PedSetMissionCritical(gord, true, cbFailGord, true)
PedSetMissionCritical(gPete, false)
PedSetMissionCritical(gPete, true, CB_PeteDied, false)
PedSetMissionCritical(gPlayer, false)
PedSetMissionCritical(gPlayer, true, cbCritPlayer)
PedSetMissionCritical(gRudy, false)
PedSetMissionCritical(gRudy, true, F_MissionFailed, true)
PedSetMissionCritical(gRudy, true, F_RUDYBUSTED, true)
PedSetMissionCritical(gRussell, false, nil, false)
PedSetMissionCritical(gRussell, true, F_RussellDied, false)
PedSetMissionCritical(gRussell.id, false)
PedSetMissionCritical(gRussell.id, true, cbRussellAttacked, true)
PedSetMissionCritical(id, true, CbPlayerAggressed, true)
PedSetMissionCritical(idBryce.id, false)
PedSetMissionCritical(idBryce.id, true, cbMissionCriticalLola, true)
PedSetMissionCritical(idConst.id, false)
PedSetMissionCritical(idConst.id, true, cbMissionCriticalDudes, true)
PedSetMissionCritical(idEunice.id, false)
PedSetMissionCritical(idGord.id, false)
PedSetMissionCritical(idGord.id, true, cbMissionCriticalGord, true)
PedSetMissionCritical(idJustin.id, false)
PedSetMissionCritical(idJustin.id, true, cbMissionCriticalLola, true)
PedSetMissionCritical(idLola, false)
PedSetMissionCritical(idLola, true, F_Fail, true)
PedSetMissionCritical(idLola.id, false)
PedSetMissionCritical(idLola.id, true, cbMissionCriticalLola, true)
PedSetMissionCritical(idNemesis, true, F_OnGaryDeath)
PedSetMissionCritical(idPeter, false)
PedSetMissionCritical(idPeter, true, cbCritFail, true)
PedSetMissionCritical(idPetey.id, false)
PedSetMissionCritical(idPetey.id, true, cbMissionCriticalDudes, true)
PedSetMissionCritical(idPinky.id, true, cbPinkyCritical, true)
PedSetMissionCritical(idZoe, false)
PedSetMissionCritical(idZoe, true, cbMissionCritFailure, true)
PedSetMissionCritical(idZoe, true, F_CriticalPedDied, true)
PedSetMissionCritical(johnny, true, cbFail, true)
PedSetMissionCritical(librarian, true, CbPlayerAggressed, true)
PedSetMissionCritical(lola, false)
PedSetMissionCritical(lola, true, cbFailLola, true)
PedSetMissionCritical(lVictim[vIndex], false)
PedSetMissionCritical(mandy, false)
PedSetMissionCritical(mandy, true, CB_MandyAttacked, true)
PedSetMissionCritical(nemesis, true, cbGaryAttacked, true)
PedSetMissionCritical(Objectives[5].id, false)
PedSetMissionCritical(Objectives[CurrentMissionNumber].id, false)
PedSetMissionCritical(Objectives[i].id, false)
PedSetMissionCritical(ped1, true, cbCritFailRacer, true)
PedSetMissionCritical(ped2, true, cbCritFailRacer, true)
PedSetMissionCritical(ped3, true, cbCritFailRacer, true)
PedSetMissionCritical(pedAlgie.id, false)
PedSetMissionCritical(pedAlgie.id, true, F_MissionCritical, false)
PedSetMissionCritical(pedAlgie.id, true, F_MissionCriticalAlgie, false)
PedSetMissionCritical(pedBurton.id, false)
PedSetMissionCritical(pedBurton.id, true, F_MissionCriticalBurton, true)
PedSetMissionCritical(pedBurtonStage3.id, false)
PedSetMissionCritical(pedBurtonStage3.id, true, F_MissionCriticalBurton, true)
PedSetMissionCritical(pedCornelius.id, false)
PedSetMissionCritical(pedCornelius.id, true, F_MissionCriticalCornelius, false)
PedSetMissionCritical(pedEarnest.id, true, F_MissionCriticalEarnest, false)
PedSetMissionCritical(pedEarnest.id, true, F_MissionCriticalEarnest, true)
PedSetMissionCritical(pedEunice.id, false)
PedSetMissionCritical(pedEunice.id, true, F_MissionCriticalEunice, true)
PedSetMissionCritical(pedGalloway.id, false)
PedSetMissionCritical(pedGalloway.id, true, F_MissionCriticalGalloway, true)
PedSetMissionCritical(pedGary.id, false)
PedSetMissionCritical(pedGary.id, true, F_MissionCritical, false)
PedSetMissionCritical(pedGary.id, true, F_MissionCriticalGary, false)
PedSetMissionCritical(pedGreaser01.id, false)
PedSetMissionCritical(pedGreaser01.id, true, F_MissionCriticalGreaser, true)
PedSetMissionCritical(pedGreaser02.id, false)
PedSetMissionCritical(pedGreaser02.id, true, F_MissionCriticalGreaser, true)
PedSetMissionCritical(pedHattrick.id, false)
PedSetMissionCritical(pedHattrick.id, true, F_MissionCriticalHattrick, true)
PedSetMissionCritical(pedID, false)
PedSetMissionCritical(pedID, state, callback ~= nil and callback or L_SocialCriticalPedHitCallback, noViolence == nil or noViolence == true)
PedSetMissionCritical(pedID, true, L_SocialCriticalPedHitCallback, true)
PedSetMissionCritical(pedJock.id, false)
PedSetMissionCritical(pedJock.id, true, F_MissionCriticalJock, true)
PedSetMissionCritical(pedMandy.id, false)
PedSetMissionCritical(pedMandy.id, true, F_MissionCriticalJock, true)
PedSetMissionCritical(pedMandyGym.id, false)
PedSetMissionCritical(pedMandyGym.id, true, F_MissionCriticalMandyGym, true)
PedSetMissionCritical(pedMascot.id, false)
PedSetMissionCritical(pedMascot.id, true, F_MissionCritical, false)
PedSetMissionCritical(pedPinky.id, false)
PedSetMissionCritical(pedPinky.id, true, F_MissionCritical, true)
PedSetMissionCritical(pedPoolPrep.id, false)
PedSetMissionCritical(pedPoolPrep.id, true, F_MissionCriticalJock, true)
PedSetMissionCritical(pedPrep.id, false)
PedSetMissionCritical(pedPrep.id, true, F_MissionCriticalGreaser, true)
PedSetMissionCritical(pedPrep.id, true, F_MissionCriticalHattrick, true)
PedSetMissionCritical(pedPrep.id, true, F_MissionCriticalPrep, true)
PedSetMissionCritical(pedRussell.id, false)
PedSetMissionCritical(pedRussell.id, true, F_MissionCriticalRussell, true)
PedSetMissionCritical(pedStoreOwner.id, false)
PedSetMissionCritical(pedStoreOwner.id, true, F_MissionCriticalShopKeeper, true)
PedSetMissionCritical(pedZoe.id, false)
PedSetMissionCritical(pedZoe.id, true, F_MissionCritical, false)
PedSetMissionCritical(phillips, true, CbPlayerAggressed, true)
PedSetMissionCritical(shared.gGary, true, F_MissionCriticalGary, false)
PedSetMissionCritical(shared.gSecretaryID, false)
PedSetMissionCritical(shared.gSecretaryID, true, CB_SecKilled, true)
PedSetMissionCritical(tblGord.id, false)
PedSetMissionCritical(tblGord.id, true, cbCriticalGord)
PedSetMissionCritical(tblJohnnyWH.id, false)
PedSetMissionCritical(tblJohnnyWH.id, true, cbCriticalJohnny)
PedSetMissionCritical(tblMsPhillips.id, false)
PedSetMissionCritical(tblMsPhillips.id, true, cbHitHer, true)
PedSetMissionCritical(tblRaceInfo.race.countdown_ped.id, false)
PedSetMissionCritical(tblRaceInfo.race.countdown_ped.id, true, cbCritFail, true)
PedSetMissionCritical(tblRaceInfo.race.countdown_ped.id, true, cbCritFailOwner, true)
push ebx
push esi
push edi
mov edi, dword ptr [esp+0x10]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x48
push 0x1
push edi
call LuaParam::GetBool
lea ebx, ptr [esi+0x18E8]
push ebx
movzx eax, al
push 0x2
push edi
mov dword ptr [esi+0x141C], eax
call 0x5DA060
push 0x0
push 0x3
push edi
call LuaParam::GetBool ; optional
movzx ecx, al
add esp, 0x20
cmp dword ptr [esi+0x141C], 0x0
mov dword ptr [esi+0x1420], ecx
jnz 0x9
mov ecx, ebx
call 0x5D9C50
pop edi
pop esi
xor eax, eax
pop ebx
ret
PedSetMoney(EnemyTable[index].handle, 0)
PedSetMoney(gPlayer, 5000)
PedSetMoney(gPlayer, player_money - compound_cost[math.mod(shared.g3_R05_SuccessCount, table.getn(compound_cost)) + 1][shared.g3_R05_Diff])
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x19
push 0x1
push edi
call LuaParam::GetInt
add esp, 0x8
test eax, eax
jl 0xA
push eax
mov ecx, esi
call 0x4752A0
pop edi
xor eax, eax
pop esi
ret
PedSetNoDamageNextFall(idPreppy, true)
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x16
push 0x1
push edi
call LuaParam::GetBool
movzx eax, al
add esp, 0x8
mov dword ptr [esi+0x14D4], eax
pop edi
xor eax, eax
pop esi
ret
-- never used
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x2F
push 0x1
push edi
call LuaParam::GetInt
push 0x2
push edi
mov dword ptr [esi+0x670], eax
call LuaParam::GetInt
push 0x3
push edi
mov dword ptr [esi+0x674], eax
call LuaParam::GetInt
add esp, 0x18
mov dword ptr [esi+0x678], eax
pop edi
xor eax, eax
pop esi
ret
-- never used
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::IsInt
add esp, 0x8
test al, al
jz 0x33
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
jz 0x13
add eax, 0x650
push eax
push 0x1
push esi
call 0x5D9FD0
add esp, 0xC
xor eax, eax
pop esi
ret
L_PedExec("ambush03", PedSetPedToTypeAttitude, "id", 13, 0)
L_PedExec("boxing_ring", PedSetPedToTypeAttitude, "id", 13, 0)
L_PedExec("first_wave", PedSetPedToTypeAttitude, "id", 13, 0)
L_PedExec("gymjocks", PedSetPedToTypeAttitude, "id", 13, 4)
L_PedExec(nil, PedSetPedToTypeAttitude, "id", gPlayer, 2)
L_PedExec(nil, PedSetPedToTypeAttitude, "id", gPlayer, 4)
PedSetPedToTypeAttitude(allyId, gEnemyPedType, 0)
PedSetPedToTypeAttitude(allyId, gPlayer, 4)
PedSetPedToTypeAttitude(ambientLola, gPlayer, 4)
PedSetPedToTypeAttitude(beatrice, gPlayer, 4)
PedSetPedToTypeAttitude(bExtraGuy, 13, 0)
PedSetPedToTypeAttitude(boxer, 13, 0)
PedSetPedToTypeAttitude(boxer, 13, 4)
PedSetPedToTypeAttitude(candyPed1, 13, 0)
PedSetPedToTypeAttitude(candyPed2, 13, 0)
PedSetPedToTypeAttitude(char, 13, 4)
PedSetPedToTypeAttitude(cop, 13, 0)
PedSetPedToTypeAttitude(cop, 3, 0)
PedSetPedToTypeAttitude(Crazy01, 13, 2)
PedSetPedToTypeAttitude(Crazy02, 13, 2)
PedSetPedToTypeAttitude(dataTable[1].id, 1, 0)
PedSetPedToTypeAttitude(dataTable[1].id, 13, 0)
PedSetPedToTypeAttitude(dId[i], 13, 0)
PedSetPedToTypeAttitude(DirtyCop, 13, 2)
PedSetPedToTypeAttitude(dog, 13, 0)
PedSetPedToTypeAttitude(dog, 3, 4)
PedSetPedToTypeAttitude(dog, 4, 0)
PedSetPedToTypeAttitude(dog, 5, 4)
PedSetPedToTypeAttitude(Dog, faction, 4)
PedSetPedToTypeAttitude(Dog.id, 13, 0)
PedSetPedToTypeAttitude(edgar, 13, 0)
PedSetPedToTypeAttitude(edgar, 13, 4)
PedSetPedToTypeAttitude(edna, 13, 4)
PedSetPedToTypeAttitude(egger.id, 13, 0)
PedSetPedToTypeAttitude(endPed, 13, 3)
PedSetPedToTypeAttitude(EnemyTable[index].handle, 13, 0)
PedSetPedToTypeAttitude(fatty, 13, 0)
PedSetPedToTypeAttitude(fatty, 13, 1)
PedSetPedToTypeAttitude(fatty, 13, 2)
PedSetPedToTypeAttitude(frMidget01, 12, 0)
PedSetPedToTypeAttitude(frMidget01, 12, 2)
PedSetPedToTypeAttitude(frMidget01, 13, 3)
PedSetPedToTypeAttitude(frMidget02, 12, 0)
PedSetPedToTypeAttitude(frMidget02, 12, 2)
PedSetPedToTypeAttitude(frMidget02, 13, 3)
PedSetPedToTypeAttitude(gBeatrice, 13, 4)
PedSetPedToTypeAttitude(gBeatrice, gPlayer, 4)
PedSetPedToTypeAttitude(gBlockers1[1], 13, 2)
PedSetPedToTypeAttitude(gBlockers1[1], 6, 1)
PedSetPedToTypeAttitude(gBlockers1[2], 13, 2)
PedSetPedToTypeAttitude(gBlockers1[2], 6, 1)
PedSetPedToTypeAttitude(gBucky, 11, 2)
PedSetPedToTypeAttitude(gBully, 13, 0)
PedSetPedToTypeAttitude(gBully01, 13, 0)
PedSetPedToTypeAttitude(gBully01, 13, 2)
PedSetPedToTypeAttitude(gCheater01, 13, 2)
PedSetPedToTypeAttitude(gCheater02, 13, 2)
PedSetPedToTypeAttitude(gControlOrderly, 3, 0)
PedSetPedToTypeAttitude(gCop1, 13, 4)
PedSetPedToTypeAttitude(gCorn, 13, 2)
PedSetPedToTypeAttitude(gCrazy01, 13, 3)
PedSetPedToTypeAttitude(gCrazy02, 13, 3)
PedSetPedToTypeAttitude(gCrazy03, 13, 3)
PedSetPedToTypeAttitude(gCrazy04, 13, 3)
PedSetPedToTypeAttitude(gDo11[1], 13, 1)
PedSetPedToTypeAttitude(gDo11[2], 13, 1)
PedSetPedToTypeAttitude(gEdna, 13, 0)
PedSetPedToTypeAttitude(gEnemies[index].id, 13, 0)
PedSetPedToTypeAttitude(gEnemies[index].id, 6, 2)
PedSetPedToTypeAttitude(gEnemies[index].id, 9, 2)
PedSetPedToTypeAttitude(gEnemies[index].id, gAllyPedType, 0)
PedSetPedToTypeAttitude(gEnemy01, 13, 0)
PedSetPedToTypeAttitude(gEnemy01, 13, 4)
PedSetPedToTypeAttitude(gEnemy02, 13, 0)
PedSetPedToTypeAttitude(gEnemy02, 13, 4)
PedSetPedToTypeAttitude(gEnemy03, 13, 0)
PedSetPedToTypeAttitude(gEnemy03, 13, 4)
PedSetPedToTypeAttitude(gFatty, 13, 2)
PedSetPedToTypeAttitude(gGary, 13, 4)
PedSetPedToTypeAttitude(gHobo, 13, 3)
PedSetPedToTypeAttitude(gHobo, 3, 0)
PedSetPedToTypeAttitude(gJohnny, 13, 4)
PedSetPedToTypeAttitude(gLackey[20].ped, 13, 0)
PedSetPedToTypeAttitude(gLackey[21].ped, 13, 0)
PedSetPedToTypeAttitude(gLuis, 13, 4)
PedSetPedToTypeAttitude(gNerd01, 13, 4)
PedSetPedToTypeAttitude(gNerd02, 13, 4)
PedSetPedToTypeAttitude(gNerd03, 13, 4)
PedSetPedToTypeAttitude(gPlayer, 8, 4)
PedSetPedToTypeAttitude(gPlayer, allyId, 4)
PedSetPedToTypeAttitude(gPushers[1], 13, 2)
PedSetPedToTypeAttitude(gPushers[2], 13, 2)
PedSetPedToTypeAttitude(Greaser1, 13, 0)
PedSetPedToTypeAttitude(Greaser2, 13, 0)
PedSetPedToTypeAttitude(gRussell.id, 5, 0)
PedSetPedToTypeAttitude(gSpazzMan, 13, 2)
PedSetPedToTypeAttitude(gTablePeds[1].id, 13, 0)
PedSetPedToTypeAttitude(gTablePeds[2].id, 13, 0)
PedSetPedToTypeAttitude(gTablePeds[3].id, 13, 0)
PedSetPedToTypeAttitude(gTed, 13, 0)
PedSetPedToTypeAttitude(gTed, 13, 3)
PedSetPedToTypeAttitude(gTed, 13, 4)
PedSetPedToTypeAttitude(gThad, 11, 0)
PedSetPedToTypeAttitude(gThad, 13, 0)
PedSetPedToTypeAttitude(gThad, 13, 2)
PedSetPedToTypeAttitude(gThad, 13, 4)
PedSetPedToTypeAttitude(guy, 13, 4)
PedSetPedToTypeAttitude(guy.id, 13, 0)
PedSetPedToTypeAttitude(gZoe, gPlayer, 4)
PedSetPedToTypeAttitude(id2ndMan, 13, 0)
PedSetPedToTypeAttitude(idBucky, 13, 4)
PedSetPedToTypeAttitude(idDarby, 13, 0)
PedSetPedToTypeAttitude(idDarby, 13, 4)
PedSetPedToTypeAttitude(idDarby, 5, 1)
PedSetPedToTypeAttitude(idDarby, 5, 4)
PedSetPedToTypeAttitude(idEunice.id, 13, 3)
PedSetPedToTypeAttitude(idGord.id, 13, 0)
PedSetPedToTypeAttitude(idGord.id, 13, 2)
PedSetPedToTypeAttitude(idGord.id, 4, 4)
PedSetPedToTypeAttitude(idHitMan, 13, 0)
PedSetPedToTypeAttitude(idLola, 13, 4)
PedSetPedToTypeAttitude(idLola.id, 5, 4)
PedSetPedToTypeAttitude(idNemesis, 13, 3)
PedSetPedToTypeAttitude(idNorton, 13, 0)
PedSetPedToTypeAttitude(idNorton, 13, 4)
PedSetPedToTypeAttitude(idOmar, 13, 0)
PedSetPedToTypeAttitude(idOmar, 13, 4)
PedSetPedToTypeAttitude(idPed, 1, 0)
PedSetPedToTypeAttitude(idPed, 13, 0)
PedSetPedToTypeAttitude(idPete, 13, 4)
PedSetPedToTypeAttitude(idRussell, 13, 4)
PedSetPedToTypeAttitude(idTeacher, 13, 3)
PedSetPedToTypeAttitude(idZoe, 13, 3)
PedSetPedToTypeAttitude(insultBoy, 13, 1)
PedSetPedToTypeAttitude(insultBoy, 13, 3)
PedSetPedToTypeAttitude(item.ped, 13, 0)
PedSetPedToTypeAttitude(johnny, 13, 3)
PedSetPedToTypeAttitude(kissGirl, 13, 4)
PedSetPedToTypeAttitude(mandy, 13, 3)
PedSetPedToTypeAttitude(mandy, 13, 4)
PedSetPedToTypeAttitude(mandy, gPlayer, 4)
PedSetPedToTypeAttitude(Mascot, 13, 0)
PedSetPedToTypeAttitude(MotelOwner, 13, 2)
PedSetPedToTypeAttitude(opponent, 13, 0)
PedSetPedToTypeAttitude(ped, 11, 2)
PedSetPedToTypeAttitude(ped, 13, 0)
PedSetPedToTypeAttitude(ped, 13, 3)
PedSetPedToTypeAttitude(ped, 13, 4)
PedSetPedToTypeAttitude(ped, 3, 0)
PedSetPedToTypeAttitude(ped, 3, 4)
PedSetPedToTypeAttitude(ped, fleePedType, 4)
PedSetPedToTypeAttitude(ped, gPlayer, 4)
PedSetPedToTypeAttitude(ped.id, pair.type, pair.rating)
PedSetPedToTypeAttitude(ped1, 1, 0)
PedSetPedToTypeAttitude(ped2, 1, 0)
PedSetPedToTypeAttitude(ped3, 1, 0)
PedSetPedToTypeAttitude(ped4, 1, 0)
PedSetPedToTypeAttitude(pedChad.id, 13, 4)
PedSetPedToTypeAttitude(pedCornelius.id, 4, 0)
PedSetPedToTypeAttitude(pedCornelius.id, 4, 4)
PedSetPedToTypeAttitude(pedCutBo.id, 13, 4)
PedSetPedToTypeAttitude(pedCutBucky.id, 2, 0)
PedSetPedToTypeAttitude(pedCutCasey.id, 13, 4)
PedSetPedToTypeAttitude(pedCutCornelius.id, 2, 0)
PedSetPedToTypeAttitude(pedCutJuri.id, 13, 4)
PedSetPedToTypeAttitude(pedCutThad.id, 2, 0)
PedSetPedToTypeAttitude(pedDeadMascot, 13, 4)
PedSetPedToTypeAttitude(pedEunice.id, 13, 4)
PedSetPedToTypeAttitude(pedGary.id, 13, 4)
PedSetPedToTypeAttitude(pedGord, 13, 0)
PedSetPedToTypeAttitude(pedGreaser01.id, 13, 0)
PedSetPedToTypeAttitude(pedGreaser02.id, 13, 0)
PedSetPedToTypeAttitude(pedGreaser04.id, 13, 0)
PedSetPedToTypeAttitude(pedId, 13, 0)
PedSetPedToTypeAttitude(pedJohnny.id, 1, 4)
PedSetPedToTypeAttitude(pedKlepto.id, 13, 0)
PedSetPedToTypeAttitude(pedMascot.id, 13, 1)
PedSetPedToTypeAttitude(pedMascot.id, 13, 4)
PedSetPedToTypeAttitude(pedPinky.id, gPlayer, 4)
PedSetPedToTypeAttitude(pedRicky, 13, 4)
PedSetPedToTypeAttitude(pedRussell.id, 13, 1)
PedSetPedToTypeAttitude(pedStrippedKid, 13, 4)
PedSetPedToTypeAttitude(pedTad.id, 13, 4)
PedSetPedToTypeAttitude(pedTad.id, 4, 0)
PedSetPedToTypeAttitude(pedZoe.id, 13, 4)
PedSetPedToTypeAttitude(pedZoe.id, gPlayer, 4)
PedSetPedToTypeAttitude(Petey, 13, 2)
PedSetPedToTypeAttitude(prank.id, 13, 2)
PedSetPedToTypeAttitude(prefect, 3, 2)
PedSetPedToTypeAttitude(prepId, 13, 0)
PedSetPedToTypeAttitude(racer.id, 13, 0)
PedSetPedToTypeAttitude(Receiver1, 13, 2)
PedSetPedToTypeAttitude(Receiver2, 13, 2)
PedSetPedToTypeAttitude(Receiver3, 13, 2)
PedSetPedToTypeAttitude(ScenarioPed, 13, 0)
PedSetPedToTypeAttitude(ScenarioPed, 13, 2)
PedSetPedToTypeAttitude(shared.gBif, 13, 0)
PedSetPedToTypeAttitude(shared.PedLineupTable[shared.g_currentCreatedPed].handle, 13, FactionTable[FactionIndex].Attitude)
PedSetPedToTypeAttitude(sheet1Bruiser, 13, 4)
PedSetPedToTypeAttitude(sheet1Guard, 13, 4)
PedSetPedToTypeAttitude(sheet3Guard, 1, 2)
PedSetPedToTypeAttitude(spud_nerd, 1, 4)
PedSetPedToTypeAttitude(student, 13, 4)
PedSetPedToTypeAttitude(tbl.id, 13, 3)
PedSetPedToTypeAttitude(tblGord.id, 13, 0)
PedSetPedToTypeAttitude(tblGord.id, 13, 2)
PedSetPedToTypeAttitude(tblGreaser.id, 13, 1)
PedSetPedToTypeAttitude(tblGreaser.id, 5, 0)
PedSetPedToTypeAttitude(tblPeanut.id, 13, 0)
PedSetPedToTypeAttitude(tblPeanut.id2, 13, 0)
PedSetPedToTypeAttitude(tblPrank[PrankToCreate].id, 13, 2)
PedSetPedToTypeAttitude(tblPrep1.id, 13, 0)
PedSetPedToTypeAttitude(tblPrep1.id, 13, 2)
PedSetPedToTypeAttitude(tempPed, 13, 0)
PedSetPedToTypeAttitude(tFirstFloorTable.gord.id, 13, 0)
PedSetPedToTypeAttitude(tFirstFloorTable.parker.id, 13, 0)
PedSetPedToTypeAttitude(Thug, 13, 0)
PedSetPedToTypeAttitude(Thug, 7, 0)
PedSetPedToTypeAttitude(Thug, 9, 0)
PedSetPedToTypeAttitude(tSecondFloorTable.justin.id, 13, 0)
PedSetPedToTypeAttitude(tSecondFloorTable.tad.id, 13, 0)
PedSetPedToTypeAttitude(tThirdFloorTable.bryce.id, 13, 0)
PedSetPedToTypeAttitude(tThirdFloorTable.chad.id, 13, 0)
PedSetPedToTypeAttitude(watts, 13, 4)
push ebx
push esi
push edi
mov edi, dword ptr [esp+0x10]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x20
push 0x1
push edi
call LuaParam::GetInt
push 0x2
push edi
mov ebx, eax
call LuaParam::GetInt
add esp, 0x10
push eax
push ebx
mov ecx, esi
call 0x4731D0
pop edi
pop esi
xor eax, eax
pop ebx
ret
L_PedExec(poi1NPC, PedSetPOI, "id", "POINAME")
L_PedExec(poi2NPC, PedSetPOI, "id", "POINAME")
L_PedExec(poi3NPC, PedSetPOI, "id", "POINAME")
PedSetPOI(dId[i], idPOI, false)
PedSetPOI(gEnemies[index].id, gPOIList[index], false)
PedSetPOI(gPeteyPier, POI._PETEYPIER, false)
PedSetPOI(idNemesis, POI._1_04_NEMSITSPOT, false)
PedSetPOI(Lefty, POI._POILOWSIT)
PedSetPOI(pedBulliesRight01.id, POI._POIBULLIESRIGHT, false)
PedSetPOI(pedBulliesRight02.id, POI._POIBULLIESRIGHT, false)
PedSetPOI(ScenarioPed, POIInfo, true)
PedSetPOI(Student, POI._POIHIGHSIT)
PedSetPOI(Student1, POI._BULLYHO1)
PedSetPOI(Student2, POI._BULLYHO1)
PedSetPOI(tFirstFloorTable.gord.id, POI._2_08_FIRSTFLOORHANG, false)
PedSetPOI(tFirstFloorTable.parker.id, POI._2_08_FIRSTFLOORHANG, false)
PedSetPOI(tSecondFloorTable.justin.id, POI._2_08_SECONDFLOORHANG, false)
PedSetPOI(tSecondFloorTable.tad.id, POI._2_08_SECONDFLOORHANG, false)
PedSetPOI(tThirdFloorTable.bryce.id, POI._2_08_THIRDFLOORHANG, false)
PedSetPOI(tThirdFloorTable.chad.id, POI._2_08_THIRDFLOORHANG, false)
push ebx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov ebx, eax
add esp, 0x8
test ebx, ebx
jz 0x48
push 0x1
push esi
call LuaParam::GetInt
mov ecx, dword ptr [0xC0F5E4]
add esp, 0x8
push eax
call 0x448DC0
mov edi, eax
mov eax, dword ptr [edi+0x70]
cmp eax, 0xFFFFFFFF
jz 0x27
cmp eax, 0x2
jle 0xC
cmp eax, 0x10
jnl 0x7
cmp eax, 0x3
jnz 0x18
push 0x1
push 0x2
push esi
call LuaParam::GetBool ; optional
add esp, 0xC
mov ecx, edi
push eax
push ebx
call 0x447410
pop edi
pop esi
xor eax, eax
pop ebx
ret
PedSetPosPoint(algie, POINTLIST._4_G4_ALGIECUT, 3)
PedSetPosPoint(boxer, POINTLIST._BOXING_ENEMYCORNER)
PedSetPosPoint(bum, POINTLIST._3_XM_BUMSCENE, 1)
PedSetPosPoint(bum, POINTLIST._3_XM_BUMSTART, 1)
PedSetPosPoint(burton, POINTLIST._C3_BURTON)
PedSetPosPoint(chemTeach, POINTLIST._C4_TEACH)
PedSetPosPoint(classmate01, POINTLIST._C6_CLASSMATE01)
PedSetPosPoint(clint, POINTLIST._5_T1_CLINTSTART, 1)
PedSetPosPoint(cop1, POINTLIST._AMBIENTEVENT1, 2)
PedSetPosPoint(cop2, POINTLIST._AMBIENTEVENT1, 3)
PedSetPosPoint(cop3, POINTLIST._AMBIENTEVENT1, 5)
PedSetPosPoint(edgar, POINTLIST._5_B_DEBUG_STAGE3, 1)
PedSetPosPoint(edgar, POINTLIST._5_B_DEBUG_STAGE4, 1)
PedSetPosPoint(edgar, POINTLIST._5_B_EDGARINNIS)
PedSetPosPoint(edgar, POINTLIST._5_B_PLAYERENDNIS)
PedSetPosPoint(Edna, POINTLIST._2_01_EDNAFIN)
PedSetPosPoint(elf_01, POINTLIST._3_XM_MIDGETSTART, 1)
PedSetPosPoint(elf_02, POINTLIST._3_XM_MIDGETSTART, 2)
PedSetPosPoint(elf_03, POINTLIST._3_XM_MIDGETSTART, 3)
PedSetPosPoint(elf_04, POINTLIST._3_XM_MIDGETSTART, 4)
PedSetPosPoint(entry.id, POINTLIST._2_04_BEACHCHEERCHANGE, pos)
PedSetPosPoint(frMermaid, POINTLIST._FRS_MERMAID)
PedSetPosPoint(frMidget01, POINTLIST._FRS_MIDGETCHOOSE, 1)
PedSetPosPoint(frMidget02, POINTLIST._FRS_MIDGETCHOOSE, 2)
PedSetPosPoint(gCannonNerd, POINTLIST._4_02_NIS_EARNEST, 1)
PedSetPosPoint(gChad, POINTLIST._2_03_CHAD_AFTER_EGGS)
PedSetPosPoint(gChad, POINTLIST._2_03_TADSTART, 3)
PedSetPosPoint(gCop1, POINTLIST._6_02_COPSNIS, 3)
PedSetPosPoint(gCrazy01, tblCrazy[1].point)
PedSetPosPoint(gCrazy02, tblCrazy[2].point)
PedSetPosPoint(gCrazy03, tblCrazy[3].point)
PedSetPosPoint(gCrazy04, tblCrazy[4].point)
PedSetPosPoint(gCurrentBully01, POINTLIST._1_07_BULLYENDNIS, 1)
PedSetPosPoint(gCurrentBully02, POINTLIST._1_07_BULLYENDNIS, 2)
PedSetPosPoint(gDavis, POINTLIST._1_03_BARRELSTOP)
PedSetPosPoint(gDavis, POINTLIST._1_03_DAVISBRAG, 1)
PedSetPosPoint(gDavis, POINTLIST._1_03_DAVISFALLFROM)
PedSetPosPoint(gDavis, POINTLIST._1_03_DAVISINGARAGE)
PedSetPosPoint(gDefenders[1], POINTLIST._DEFENSIVELINE01, 1)
PedSetPosPoint(gDefenders[1], POINTLIST._DEFENSIVELINE02, 1)
PedSetPosPoint(gDuncan, POINTLIST._5_02_WHDROPOUTS02, 2)
PedSetPosPoint(gEunice, POINTLIST._1_02_EUNICE, 1)
PedSetPosPoint(gFatty, POINTLIST._BUCKYCUTSCENE, 1)
PedSetPosPoint(gFMidget, POINTLIST._2_GN_MidgetHang, 1)
PedSetPosPoint(gGalloway, POINTLIST._3_S11_OUTRONIS, 2)
PedSetPosPoint(gGary, POINTLIST._1_10_GARYBS)
PedSetPosPoint(gGary, POINTLIST._6_B_GARYPOSITION)
PedSetPosPoint(gGary, POINTLIST._6_B_WARP_POINT)
PedSetPosPoint(gGary, POINTLIST._BEGGINING, 1)
PedSetPosPoint(gGord, POINTLIST._2_03_GORD_AFTER_EGGS)
PedSetPosPoint(gGord, POINTLIST._2_03_TADSTART, 2)
PedSetPosPoint(gHattrick, POINTLIST._2_S02_HATTRICKINHOUSE, 2)
PedSetPosPoint(gJohnny, POINTLIST._5_03_1F_BW_ORDERLY1)
PedSetPosPoint(gJohnny, POINTLIST._5_03_JOHNNY_MOVE_FREE)
PedSetPosPoint(gJohnny, POINTLIST._5_03_NIS_DOORS, 2)
PedSetPosPoint(gLeon, POINTLIST._5_02_WHDROPOUTS02, 1)
PedSetPosPoint(gNerds[1].id, POINTLIST._4_04_FIRSTROOMNIS, 1)
PedSetPosPoint(gNerds[2].id, POINTLIST._4_04_FIRSTROOMNIS, 2)
PedSetPosPoint(gPeanut, POINTLIST._FINALFIGHT, 5)
PedSetPosPoint(gPete, POINTLIST._BEGGINING, 2)
PedSetPosPoint(gPeter, POINTLIST._3_B_HELPER_SPAWN)
PedSetPosPoint(gPlayer, gExitPoint)
PedSetPosPoint(gPlayer, POINTLIST._1_06BEGIN, 5)
PedSetPosPoint(gPlayer, POINTLIST._2_09_PLAYERSTART)
PedSetPosPoint(gPlayer, POINTLIST._2_S02_EMERGENCYPOINT, 1)
PedSetPosPoint(gPlayer, POINTLIST._2_S06_SPAWNPLAYER)
PedSetPosPoint(gPlayer, POINTLIST._2_S06B_CUTBOOTJIMMY, 1)
PedSetPosPoint(gPlayer, POINTLIST._3_01C_PLAYERSTART)
PedSetPosPoint(gPlayer, POINTLIST._3_01D_JIMMYPHOTO, 2)
PedSetPosPoint(gPlayer, POINTLIST._3_01D_PSTART, 2)
PedSetPosPoint(gPlayer, POINTLIST._3_02_PLAYERENDCUT)
PedSetPosPoint(gPlayer, POINTLIST._3_04_OUTRO_JIMMY)
PedSetPosPoint(gPlayer, POINTLIST._3_05_BOSSBATTLEJASON, 2)
PedSetPosPoint(gPlayer, POINTLIST._3_05_JIMKNOCK)
PedSetPosPoint(gPlayer, POINTLIST._3_S11_PLAYER_ORDERLY, 1)
PedSetPosPoint(gPlayer, POINTLIST._4_01_CUTBOOTJIMMY, 1)
PedSetPosPoint(gPlayer, POINTLIST._4_B1_PLAYER_STAGE02, 1)
PedSetPosPoint(gPlayer, POINTLIST._4_B1_PLAYER_STAGE03, 1)
PedSetPosPoint(gPlayer, POINTLIST._5_03_NIS_DOORS, 1)
PedSetPosPoint(gPlayer, POINTLIST._5_07_PLAYERDISTRACT, 1)
PedSetPosPoint(gPlayer, POINTLIST._5_B_DEBUG_STAGE3, 2)
PedSetPosPoint(gPlayer, POINTLIST._5_B_DEBUG_STAGE4, 2)
PedSetPosPoint(gPlayer, POINTLIST._5_G5_PLAYER_WH)
PedSetPosPoint(gPlayer, POINTLIST._5_T1_PLAYERSTART, 1)
PedSetPosPoint(gPlayer, POINTLIST._BOXING_END_2_09)
PedSetPosPoint(gPlayer, POINTLIST._BOXING_FINISHEDBOXING)
PedSetPosPoint(gPlayer, POINTLIST._BOXING_PLAYERCORNER)
PedSetPosPoint(gPlayer, POINTLIST._BOXING_PLAYERSTART)
PedSetPosPoint(gPlayer, POINTLIST._C7_PLAYERSIT, 1)
PedSetPosPoint(gPlayer, POINTLIST._C7_PSTART, 1)
PedSetPosPoint(gPlayer, POINTLIST._C8_PSTART)
PedSetPosPoint(gPlayer, POINTLIST._C9_PLAYERSIT, 1)
PedSetPosPoint(gPlayer, POINTLIST._C9_PSTART, 1)
PedSetPosPoint(gPlayer, POINTLIST._CM_JIMMYSTAND)
PedSetPosPoint(gPlayer, POINTLIST._ENDING, 1)
PedSetPosPoint(gPrefect, prefectStart, prefectI)
PedSetPosPoint(gRooftopPeds1[2], POINTLIST._FINALFIGHT, 3)
PedSetPosPoint(gRussell, POINTLIST._6_02_ENDNIS, 2)
PedSetPosPoint(gRussell, POINTLIST._6_03_ENDNIS, 3)
PedSetPosPoint(gRussell, POINTLIST._GARAGEROOF, 5)
PedSetPosPoint(gRussell, POINTLIST._GIRLSDORM, 5)
PedSetPosPoint(gRussell, POINTLIST._HARRINGTONHOUSE, 5)
PedSetPosPoint(gRussell, POINTLIST._INDUS_POINTS, 3)
PedSetPosPoint(gRussell, POINTLIST._INDUS_POINTS, 5)
PedSetPosPoint(gRussell, POINTLIST._LIBPEDS, 5)
PedSetPosPoint(gRussell.id, POINTLIST._2_05_RUSSELLWAITSPOT, 1)
PedSetPosPoint(gSecretary, POINTLIST._3_08_DNISPOS, 1)
PedSetPosPoint(gTablePeds[gCurrentJock].id, gCurrentPoint, 1)
PedSetPosPoint(gTablePeds[gCurrentJock].id, POINTLIST._4_04_JOCKRESTARTPOINTS, gCurrentJock)
PedSetPosPoint(gTad, POINTLIST._2_03_TAD_AFTER_EGGS)
PedSetPosPoint(gTad, POINTLIST._2_03_TADSTART, 1)
PedSetPosPoint(gTeacher, gExitPoint, 2)
PedSetPosPoint(gTed, POINTLIST._TED03)
PedSetPosPoint(guy, point, index)
PedSetPosPoint(guy, POINTLIST._SITTINGDOWN, 2)
PedSetPosPoint(guy.id, chaserSpawn, guy.pos)
PedSetPosPoint(gVance, POINTLIST._FINALFIGHT, 2)
PedSetPosPoint(idBucky, POINTLIST._1_07_BYTHETOOLBOX, 1)
PedSetPosPoint(idBucky, POINTLIST._1_07_PLYRDOOR, 2)
PedSetPosPoint(idBurton, POINTLIST._5_05_BURTONWARP)
PedSetPosPoint(idBurton, POINTLIST._5_05_CHECKPOT1)
PedSetPosPoint(idConst.id, POINTLIST._2_06_WAITERS, 2)
PedSetPosPoint(idDarby, POINTLIST._2_B_DARBY_REST)
PedSetPosPoint(idDarby, POINTLIST._2_B_DARBY_RETURN_FROM_REST)
PedSetPosPoint(idDO, POINTLIST._5_04_DO_START)
PedSetPosPoint(idDO, POINTLIST._5_04_PREVENT_RETURN)
PedSetPosPoint(idGord.id, POINTLIST._2_06_NISLOLA, 2)
PedSetPosPoint(idLola.id, POINTLIST._2_06_WAITERS, 2)
PedSetPosPoint(idNemesis, POINTLIST._1_04_FIELDSPAWN, 1)
PedSetPosPoint(idNorton, POINTLIST._3_05_BOSSBATTLEJASON, 1)
PedSetPosPoint(idNorton, POINTLIST._3_05_NORTKNOCK)
PedSetPosPoint(idPeter, POINTLIST._2_04_CROWDCHEER, 3)
PedSetPosPoint(idPeter, POINTLIST._5_09_PETEY, 1)
PedSetPosPoint(idPetey.id, POINTLIST._2_06_WAITERS, 1)
PedSetPosPoint(idPinky.id, POINTLIST._2_06_NISPINKYEND, 2)
PedSetPosPoint(idPinky.id, POINTLIST._2_06_PINKYWAITS)
PedSetPosPoint(idZoe, POINTLIST._5_05_CHECKPOT2, 2)
PedSetPosPoint(idZoe, POINTLIST._5_05_ZOESTART)
PedSetPosPoint(idZoe, POINTLIST._5_07_PLAYERDISTRACT, 2)
PedSetPosPoint(idZoe, POINTLIST._5_07_ZOEDISTRACT, 6)
PedSetPosPoint(kid_01, POINTLIST._3_XM_KIDSTART, 1)
PedSetPosPoint(kid_02, POINTLIST._3_XM_KIDSTART, 2)
PedSetPosPoint(kid_03, POINTLIST._3_XM_KIDSTART, 3)
PedSetPosPoint(kidActive, POINTLIST._3_01D_RUDYTHRONE, 2)
PedSetPosPoint(librarian, POINTLIST._5_01_LIBRARIAN)
PedSetPosPoint(librarian, POINTLIST._5_01_LIBRARIAN, 2)
PedSetPosPoint(mandy, POINTLIST._5_04_PLAYERMANDYCONV, 2)
PedSetPosPoint(musicTeach, POINTLIST._CM_TEACHER)
PedSetPosPoint(musicTeach, POINTLIST._CM_TEACHERSPEAK)
PedSetPosPoint(newElf, POINTLIST._3_XM_ELFSPAWN01)
PedSetPosPoint(newElf, POINTLIST._3_XM_ELFSPAWN02)
PedSetPosPoint(newElf, POINTLIST._3_XM_ELFSPAWN03)
PedSetPosPoint(norton, POINTLIST._TFIGHT01_NORTONTEN, 2)
PedSetPosPoint(Objectives[1].id, Objectives[1].loc, 1)
PedSetPosPoint(Objectives[2].id, Objectives[2].loc, 1)
PedSetPosPoint(Objectives[3].id, Objectives[3].loc, 1)
PedSetPosPoint(Objectives[4].id, Objectives[4].loc, 1)
PedSetPosPoint(Objectives[5].id, Objectives[5].loc, 1)
PedSetPosPoint(opponent, POINTLIST._C3_ESTART)
PedSetPosPoint(outroPedA, POINTLIST._4_06_MOVETOJOCK, 2)
PedSetPosPoint(outroPedA, POINTLIST._4_06_OPDENDPED, 5)
PedSetPosPoint(parent_01, POINTLIST._3_XM_PARENTSTART, 1)
PedSetPosPoint(parent_02, POINTLIST._3_XM_PARENTSTART, 2)
PedSetPosPoint(parent_03, POINTLIST._3_XM_PARENTSTART, 3)
PedSetPosPoint(ped, point, 1)
PedSetPosPoint(pedAlgie.id, POINTLIST._1_05B_NIS_LOCKER, 2)
PedSetPosPoint(pedAlgie.id, POINTLIST._3_04_OUTRO_ALGIE)
PedSetPosPoint(pedArtTeacher.id, POINTLIST._2_S06B_PANICARTTEACHER)
PedSetPosPoint(pedAsianGirl.id, POINTLIST._2_S06B_EJECTEDGIRLSB, 1)
PedSetPosPoint(pedAsianGirl.id, POINTLIST._2_S06B_PANICASIANGIRL)
PedSetPosPoint(pedBeatrice.id, POINTLIST._2_S06B_CUTBEATRICE)
PedSetPosPoint(pedCamera.id, pedCamera.spawn)
PedSetPosPoint(pedCamera.id, POINTLIST._4_B1_CAMERA02)
PedSetPosPoint(pedCamera.id, POINTLIST._4_B1_CAMERA03)
PedSetPosPoint(pedCutBo.id, POINTLIST._4_05CUT_SPAWNBO, 2)
PedSetPosPoint(pedCutCasey.id, POINTLIST._4_05CUT_SPAWNCASEY, 2)
PedSetPosPoint(pedCutJuri.id, POINTLIST._4_05CUT_SPAWNJURI, 2)
PedSetPosPoint(pedDog.id, POINTLIST._1_11_X2_STARTDOG)
PedSetPosPoint(pedEarnest.id, POINTLIST._4_B1_EARNEST_STAGE02)
PedSetPosPoint(pedEarnest.id, POINTLIST._4_B1_STAGE03_GUN02)
PedSetPosPoint(pedEunice.id, POINTLIST._4_01_SPAWNEUNICERESETDOWN)
PedSetPosPoint(pedEunice.id, POINTLIST._4_01_SPAWNEUNICERESETUP)
PedSetPosPoint(pedGary.id, POINTLIST._1_02B_GARYEUNICE, 1)
PedSetPosPoint(pedGary.id, POINTLIST._1_02B_MOVEGARYRUSSELL1)
PedSetPosPoint(pedGary.id, POINTLIST._1_02B_MOVEGARYRUSSELL2)
PedSetPosPoint(pedGary.id, POINTLIST._1_02B_OUTROGARY, 1)
PedSetPosPoint(pedGary.id, POINTLIST._1_11_X2_STARTGARY)
PedSetPosPoint(pedGary.id, POINTLIST._1_11X2_CUTGARY, 1)
PedSetPosPoint(pedGreaser04.id, pedGreaser04.spawn, pedGreaser04.element)
PedSetPosPoint(pedHeadmistress, POINTLIST._GDORM_HEADSTOP, 1)
PedSetPosPoint(pedLola.id, POINTLIST._ENDLOLALOCATION, 1)
PedSetPosPoint(pedMandyShower.id, POINTLIST._4_01_BUSTEDSHOWER)
PedSetPosPoint(pedMandyShower.id, POINTLIST._4_01_CUTSHOWERMANDY)
PedSetPosPoint(pedMandyShower.id, POINTLIST._4_01_MANDYOUTOFSHOWER)
PedSetPosPoint(pedMascot.id, POINTLIST._4_05CUT_SPAWNMASCOT, 2)
PedSetPosPoint(pedPete.id, POINTLIST._1_11X2_CUTPETE, 1)
PedSetPosPoint(pedPinky.id, POINTLIST._2_G2_CUTBEARSPAWNPINKY, 1)
PedSetPosPoint(pedPinky.id, POINTLIST._2_G2_EXITCOASTER, 1)
PedSetPosPoint(pedPinky.id, POINTLIST._2_G2_EXITKARTS, 1)
PedSetPosPoint(pedPinky.id, POINTLIST._2_G2_EXITSQUID, 1)
PedSetPosPoint(pedPinky.id, POINTLIST._2_G2_EXITWHEEL, 1)
PedSetPosPoint(pedPinky.id, POINTLIST._2_G2_HACKEXITDUNK)
PedSetPosPoint(pedPinky.id, POINTLIST._2_G2_HACKEXITSHOOT)
PedSetPosPoint(pedPinky.id, POINTLIST._2_G2_HACKEXITSTRIKE)
PedSetPosPoint(pedPinky.id, POINTLIST._2_G2_HACKEXITTOSS)
PedSetPosPoint(pedPinky.id, POINTLIST._2_G2_HIDEPINKY, 1)
PedSetPosPoint(pedPinky.id, POINTLIST._2_G2_MGDUNKPINKY)
PedSetPosPoint(pedPinky.id, POINTLIST._2_G2_MGSHOOTPINKY)
PedSetPosPoint(pedPinky.id, POINTLIST._2_G2_MGSTRIKEPINKY)
PedSetPosPoint(pedPinky.id, POINTLIST._2_G2_OUTSIDEVENDOR, 1)
PedSetPosPoint(pedPinky.id, POINTLIST._2_G2_STAGE3DEBUG, 1)
PedSetPosPoint(pedPrep.id, POINTLIST._3_S03_SPAWNPREPALLEYCUT, 1)
PedSetPosPoint(pedSexyGirl.id, POINTLIST._2_S06B_PANICSEXYGIRL)
PedSetPosPoint(pedTad.id, POINTLIST._ENDTADLOCATION, 1)
PedSetPosPoint(pedZoe.id, POINTLIST._5_G5_ENDZOE)
PedSetPosPoint(pedZoe.id, POINTLIST._5_G5_ZOE_WH)
PedSetPosPoint(perv1, POINTLIST._4_G4_ALGIECUT, 2)
PedSetPosPoint(perv2, POINTLIST._4_G4_ALGIECUT, 1)
PedSetPosPoint(Rudy, POINTLIST._3_01D_RUDYTHRONE, 2)
PedSetPosPoint(santa, POINTLIST._3_XM_SANTASTART, 1)
PedSetPosPoint(shared.gBif, POINTLIST._PREPHS_BIFINSIDE, 1)
PedSetPosPoint(shared.gdormHeadID, POINTLIST._2_S06B_CUTBOOTHEAD, 1)
PedSetPosPoint(shared.gdormHeadID, POINTLIST._2_S06B_HEADWARP, 1)
PedSetPosPoint(shared.gdormHeadID, POINTLIST._4_01_CUTBOOTHEAD, 1)
PedSetPosPoint(shared.gGary, POINTLIST._1_11X1_SPAWNGARY)
PedSetPosPoint(shared.gSecretaryID, POINTLIST._PRINCIPALROOM, 2)
PedSetPosPoint(shared.gSecretaryID, POINTLIST._SECRETARY)
PedSetPosPoint(tblEntry.id, tblEntry.moveToPoint)
PedSetPosPoint(tblRaceInfo.race.countdown_ped.id, POINTLIST._2_04_BEACHCHEERCHANGE, 8)
PedSetPosPoint(tblRaceInfo.race.countdown_ped.id, POINTLIST._2_04_NIS_END, 1)
PedSetPosPoint(tblRaceInfo.race.countdown_ped.id, POINTLIST._3_G3_CHEERINGPED1, 1)
PedSetPosPoint(tblTad.id, tblTad.point)
PedSetPosPoint(tblTad.id, tblTad.wPoints, tblTad.roomToInvestigate.window.i)
PedSetPosPoint(tDO, POINTLIST._5_07_ZOEDISTRACT, i)
PedSetPosPoint(tThirdFloorTable.bryce.id, POINTLIST._2_08_SOLARIUMPEDS, 1)
PedSetPosPoint(tThirdFloorTable.bryce.id, POINTLIST._2_08_SOLARIUMPEDS, 2)
PedSetPosPoint(tThirdFloorTable.chad.id, POINTLIST._2_08_SOLARIUMPEDS, 1)
PedSetPosPoint(vandal1, POINTLIST._AMBIENTEVENT1, 4)
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x28]
push edi
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
mov dword ptr [esp+0x14], eax
jz 0xD8
push esi
mov byte ptr [esp+0x17], 0x0
call 0x73AEA0
add esp, 0x4
cmp eax, 0x3
jnz 0x16
push 0x2
push esi
mov byte ptr [esp+0x1B], 0x1
call LuaParam::GetInt
add esp, 0x8
mov ebx, eax
jmp 0x6
mov ebx, dword ptr [esp+0x18]
push 0x1
push esi
call LuaParam::GetInt
movzx eax, ax
movzx eax, ax
add esp, 0x8
push eax
mov ecx, 0xBC5E7C
call 0x6D6450
mov ebp, eax
test ebp, ebp
jz 0x87
mov ecx, ebp
call 0x6D59B0
cmp byte ptr [esp+0x13], 0x0
mov edi, eax
jz 0x22
mov esi, 0x1
cmp ebx, esi
jle 0x19
lea ecx, ptr [ecx]
mov ecx, ebp
call 0x6D59F0
test eax, eax
jz 0xB
add esi, 0x1
cmp esi, ebx
mov edi, eax
jl 0xFFFFFFEE
test edi, edi
jz 0x4F
fld st, dword ptr [edi+0x1C]
mov ecx, dword ptr [edi]
fsub st, qword ptr [0x900AB8]
mov edx, dword ptr [edi+0x4]
mov eax, dword ptr [edi+0x8]
mov esi, dword ptr [esp+0x14]
fmul st, qword ptr [0x900160]
mov dword ptr [esp+0x1C], ecx
lea ecx, ptr [esp+0x1C]
push ecx
fdiv st, qword ptr [0x900158]
push esi
mov dword ptr [esp+0x28], edx
mov dword ptr [esp+0x2C], eax
fstp dword ptr [esp+0x20], st
call 0x5C7600
fld st, dword ptr [esp+0x20]
add esp, 0x4
fstp dword ptr [esp], st
mov ecx, esi
call 0x475730
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
CLIENT
Like PedSetPosXYZ, but avoids extra processing related to setting a position.
PedSetPosXYZ(char, x, y, z)
PedSetPosXYZ(Dog, x, y - 2, z)
PedSetPosXYZ(gAlgie, px, py - 1, pz)
PedSetPosXYZ(gBucky, -723.8684, 39.938946, -2.3328907)
PedSetPosXYZ(gFatty, px, py + 1, pz)
PedSetPosXYZ(gHobo, x, y, z)
PedSetPosXYZ(gPlayer, -638.7, -269.5, -1.7)
PedSetPosXYZ(gPlayer, 273.1, -314.6, 9)
PedSetPosXYZ(gPlayer, x, y, z)
PedSetPosXYZ(idNemesis, 178.47, 2.513, 5.475)
PedSetPosXYZ(idNemesis, px, py, pz)
PedSetPosXYZ(outroPedA, -21.348404, -24.205833, 2.0409005)
PedSetPosXYZ(ped.id, ped.x, ped.y, ped.z)
PedSetPosXYZ(pedAlgie.id, tempX, tempY, tempZ)
PedSetPosXYZ(pedId, x, y, z)
PedSetPosXYZ(pedTable[1].id, pedTable[1].x, pedTable[1].y, pedTable[1].z)
PedSetPosXYZ(Walker, x, y, z)
sub esp, 0xC
push esi
mov esi, dword ptr [esp+0x14]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x18], st
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x24], st
push 0x3
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x30], st
add esp, 0x1C
mov eax, esp
push edi
mov dword ptr [eax], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
jz 0x10
lea ecx, ptr [esp+0x8]
push ecx
push eax
call 0x5C7600
add esp, 0x8
pop edi
xor eax, eax
pop esi
add esp, 0xC
ret
PedSetProjDest(pedEarnest.id, x, y, z)
sub esp, 0x14
push esi
mov esi, dword ptr [esp+0x1C]
push edi
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov edx, eax
neg edx
sbb edx, edx
mov ecx, esp
add edx, 0x3
push eax
mov dword ptr [ecx], edx
call 0x5C7380
push 0x1
push esi
mov edi, eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x18], st
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x24], st
fld st, dword ptr [esp+0x20]
push 0x3
fstp dword ptr [esp+0x2C], st
push esi
fld st, dword ptr [esp+0x2C]
fstp dword ptr [esp+0x34], st
call LuaParam::GetFloat
mov ecx, dword ptr [esp+0x30]
fstp dword ptr [esp+0x38], st
mov edx, dword ptr [esp+0x34]
add esp, 0x14
mov eax, esp
mov dword ptr [eax], ecx
mov ecx, dword ptr [esp+0x24]
mov dword ptr [eax+0x4], edx
mov dword ptr [eax+0x8], ecx
lea ecx, ptr [edi+0x3BC]
call 0x48BE90
pop edi
xor eax, eax
pop esi
add esp, 0x14
ret
-- never used
push ecx
push esi
push edi
mov edi, dword ptr [esp+0x10]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
push 0x1
push edi
mov esi, eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x18], st
add esp, 0x10
xor eax, eax
test esi, esi
jz 0xC
fld st, dword ptr [esp+0x8]
fstp dword ptr [esi+0x1CC0], st
pop edi
pop esi
pop ecx
ret
PedSetPunishmentPoints(gEdgar, 0)
PedSetPunishmentPoints(gPlayer, 0)
PedSetPunishmentPoints(gPlayer, 150)
PedSetPunishmentPoints(gPlayer, 3)
PedSetPunishmentPoints(gPlayer, 400, false)
PedSetPunishmentPoints(gPlayer, 5)
PedSetPunishmentPoints(gPlayer, 800)
PedSetPunishmentPoints(greaser1, 600)
PedSetPunishmentPoints(greaser2, 600)
PedSetPunishmentPoints(gRudy, 0)
PedSetPunishmentPoints(gRudy, PlayerGetPunishmentPoints())
PedSetPunishmentPoints(gRussell, 0)
PedSetPunishmentPoints(idGord.id, 0)
PedSetPunishmentPoints(ped2, 175)
push esi
mov esi, dword ptr [esp+0x8]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x0
push 0x1
push esi
mov edi, eax
call LuaParam::GetInt ; optional
add esp, 0x10
mov esi, eax
mov eax, esp
push edi
mov dword ptr [eax], 0x2
call 0x5C7380
add esp, 0x8
push esi
mov ecx, eax
call 0x477520
pop edi
xor eax, eax
pop esi
ret
PedSetRemoveOwnedProj(ped1, true)
PedSetRemoveOwnedProj(ped2, true)
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x16
push 0x1
push edi
call LuaParam::GetBool
movzx eax, al
add esp, 0x8
mov dword ptr [esi+0x1394], eax
pop edi
xor eax, eax
pop esi
ret
PedSetRequiredGift(beatrice, 0, false, false)
PedSetRequiredGift(beatrice, diaryRequest, false, true)
PedSetRequiredGift(fatty, 0)
PedSetRequiredGift(fatty, 23, false, true)
PedSetRequiredGift(gBeatrice, 12, false, true)
PedSetRequiredGift(gBeatrice, 2, false, true)
PedSetRequiredGift(gFatty, 0, false, true)
PedSetRequiredGift(gFatty, 22, false, true)
PedSetRequiredGift(Girl1, 10)
PedSetRequiredGift(gSpazzMan, 10, false, true)
PedSetRequiredGift(idEunice.id, 0, false, true)
PedSetRequiredGift(idEunice.id, 0, true)
PedSetRequiredGift(idEunice.id, 1)
PedSetRequiredGift(idTeacher, 1, false, true)
PedSetRequiredGift(kissGirl, 2, false, true)
PedSetRequiredGift(lolaID, 2, false)
PedSetRequiredGift(ped, 1, false, true)
PedSetRequiredGift(pedBurtonStage3.id, 0)
PedSetRequiredGift(pedBurtonStage3.id, 15, false, true)
PedSetRequiredGift(pedConstantine.id, 0, false)
PedSetRequiredGift(pedConstantine.id, 22, false, true)
PedSetRequiredGift(pedEarnest.id, 0, false, true)
PedSetRequiredGift(pedEarnest.id, 16, false, true)
PedSetRequiredGift(pedEunice.id, 0, false, true)
PedSetRequiredGift(pedEunice.id, 1, false, true)
PedSetRequiredGift(pedID, 0)
PedSetRequiredGift(pedID, giftType, false, forceReceive == true)
PedSetRequiredGift(pedPinky.id, 2, true)
PedSetRequiredGift(pedPinky.id, 21, false, true)
PedSetRequiredGift(pedRussell.id, 0, false, false)
PedSetRequiredGift(pedRussell.id, 22, false, true)
PedSetRequiredGift(phillips, 17, false, true)
PedSetRequiredGift(Receiver1, 10, false, true)
PedSetRequiredGift(Receiver2, 10)
PedSetRequiredGift(Receiver2, 10, false, true)
PedSetRequiredGift(Receiver3, 10)
PedSetRequiredGift(Receiver3, 10, false, true)
PedSetRequiredGift(ScenarioPed, 10, false, true)
PedSetRequiredGift(ScenarioPed, 11, false, true)
PedSetRequiredGift(ScenarioPed, 16, false, true)
PedSetRequiredGift(ScenarioPed, 21, false, true)
PedSetRequiredGift(ScenarioPed, 22, false, true)
PedSetRequiredGift(ScenarioPed, 7, false, true)
PedSetRequiredGift(ScenarioPed, 8, false, true)
push ebx
push esi
push edi
mov edi, dword ptr [esp+0x10]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
push 0x1
push edi
mov esi, eax
call LuaParam::GetInt
push 0x0
push 0x2
push edi
mov ebx, eax
call LuaParam::GetBool ; optional
push 0x0
movzx eax, al
push 0x3
push edi
mov dword ptr [esi+0x1428], eax
call LuaParam::GetBool ; optional
movzx ecx, al
add esp, 0x28
mov dword ptr [esi+0x1430], ecx
push ebx
mov ecx, esi
call 0x474B30
push 0x1
mov ecx, esi
call 0x474A90
push 0x0
mov ecx, esi
call 0x47D1B0
pop edi
pop esi
xor eax, eax
pop ebx
ret
PedSetScenarioObjFlag(ScenarioPed, true)
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x16
push 0x1
push edi
call LuaParam::GetBool
movzx eax, al
add esp, 0x8
mov dword ptr [esi+0x13F8], eax
pop edi
xor eax, eax
pop esi
ret
-- never used
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, 0xA147E0
call 0x454540
xor eax, eax
ret
-- never used
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetBool
mov byte ptr [0xA33938], al
add esp, 0x8
xor eax, eax
ret
-- never used
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x15
push 0x1
push edi
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, esi
call 0x474350
pop edi
xor eax, eax
pop esi
ret
-- never used
push ecx
push esi
push edi
mov edi, dword ptr [esp+0x10]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x1F
push 0x1
push edi
call LuaParam::GetFloat
fstp dword ptr [esp+0x10], st
fld st, dword ptr [esp+0x10]
add esp, 0x4
mov ecx, esi
fstp dword ptr [esp], st
call 0x474340
pop edi
xor eax, eax
pop esi
pop ecx
ret
L_PedExec("CheerDudes", PedSetStationary, "id", true)
L_PedExec("endCutScene", PedSetStationary, "id", true)
L_PedExec("spectator", PedSetStationary, "id", true)
PedSetStationary(algie, false)
PedSetStationary(algie, true)
PedSetStationary(ambientLola, false)
PedSetStationary(beatrice, false)
PedSetStationary(beatrice, true)
PedSetStationary(burton, true)
PedSetStationary(buster, false)
PedSetStationary(buster, true)
PedSetStationary(clint, false)
PedSetStationary(Crazy01, false)
PedSetStationary(Crazy01, true)
PedSetStationary(Crazy02, false)
PedSetStationary(Crazy02, true)
PedSetStationary(dude, false)
PedSetStationary(dude, true)
PedSetStationary(Earnest, false)
PedSetStationary(Earnest, true)
PedSetStationary(edgar, false)
PedSetStationary(edgar, true)
PedSetStationary(egger.id, true)
PedSetStationary(EnemyTable[i].handle, false)
PedSetStationary(entry, false)
PedSetStationary(entry.id, true)
PedSetStationary(gCarnie, false)
PedSetStationary(gCarnie, true)
PedSetStationary(gControlOrderly, true)
PedSetStationary(gDuncan, false)
PedSetStationary(gDuncan, true)
PedSetStationary(gHattrick, false)
PedSetStationary(gHobo, false)
PedSetStationary(gHobo, true)
PedSetStationary(gLeon, false)
PedSetStationary(gLeon, true)
PedSetStationary(gNerds[1].id, false)
PedSetStationary(gNerds[1].id, true)
PedSetStationary(gNerds[2].id, false)
PedSetStationary(gNerds[2].id, true)
PedSetStationary(gPeanut, true)
PedSetStationary(gPlayer, false)
PedSetStationary(gPlayer, true)
PedSetStationary(greaser1, false)
PedSetStationary(greaser1, true)
PedSetStationary(greaser2, false)
PedSetStationary(greaser2, true)
PedSetStationary(gRooftopPeds1[1], true)
PedSetStationary(gRooftopPeds1[2], true)
PedSetStationary(gRudy, false)
PedSetStationary(gRudy, true)
PedSetStationary(gRussell, false)
PedSetStationary(gSpawned01, true)
PedSetStationary(gSpawned02, true)
PedSetStationary(gSpawned03, true)
PedSetStationary(gSpawned04, true)
PedSetStationary(gSpawned05, true)
PedSetStationary(gSpawned06, true)
PedSetStationary(guy, false)
PedSetStationary(guy.id, false)
PedSetStationary(hattrick, true)
PedSetStationary(id, false)
PedSetStationary(idBucky, false)
PedSetStationary(idBucky, true)
PedSetStationary(idBurton, false)
PedSetStationary(idBurton, true)
PedSetStationary(idEunice.id, false)
PedSetStationary(idEunice.id, true)
PedSetStationary(idGord.id, false)
PedSetStationary(idGord.id, true)
PedSetStationary(idLola, false)
PedSetStationary(idLola, true)
PedSetStationary(idLola.id, false)
PedSetStationary(idLola.id, true)
PedSetStationary(idNemesis, false)
PedSetStationary(idNemesis, true)
PedSetStationary(idPinky.id, false)
PedSetStationary(idZoe, false)
PedSetStationary(idZoe, true)
PedSetStationary(insultBoy, false)
PedSetStationary(insultBoy, true)
PedSetStationary(johnny, false)
PedSetStationary(johnny, true)
PedSetStationary(lVictim[VictimCounter], false)
PedSetStationary(lVictim[vIndex], false)
PedSetStationary(mandy, false)
PedSetStationary(mandy, true)
PedSetStationary(ped, bool)
PedSetStationary(ped, false)
PedSetStationary(ped, true)
PedSetStationary(pedAlgie.id, false)
PedSetStationary(pedAlgie.id, true)
PedSetStationary(pedBryce, false)
PedSetStationary(pedBryce, true)
PedSetStationary(pedBurtonStage3.id, false)
PedSetStationary(pedBurtonStage3.id, true)
PedSetStationary(pedCamera.id, true)
PedSetStationary(pedCornelius.id, false)
PedSetStationary(pedCornelius.id, true)
PedSetStationary(pedCutBucky.id, true)
PedSetStationary(pedCutCornelius.id, true)
PedSetStationary(pedCutThad.id, true)
PedSetStationary(pedDog.id, false)
PedSetStationary(pedDog.id, true)
PedSetStationary(pedEarnest.id, false)
PedSetStationary(pedEarnest.id, true)
PedSetStationary(pedEunice.id, false)
PedSetStationary(pedGary.id, false)
PedSetStationary(pedGary.id, true)
PedSetStationary(pedGirlsShower_01.id, true)
PedSetStationary(pedGirlsShower_02.id, true)
PedSetStationary(pedGord, false)
PedSetStationary(pedGord, true)
PedSetStationary(pedHeadmistress, false)
PedSetStationary(pedHeadmistress, true)
PedSetStationary(pedid, false)
PedSetStationary(pedID, false)
PedSetStationary(PedID, true)
PedSetStationary(pedID, true)
PedSetStationary(pedMandyBedroom.id, false)
PedSetStationary(pedMandyBedroom.id, true)
PedSetStationary(pedMandyShower.id, false)
PedSetStationary(pedMascot.id, true)
PedSetStationary(pedNorton.id, true)
PedSetStationary(pedParker, false)
PedSetStationary(pedPinky.id, false)
PedSetStationary(pedPinky.id, true)
PedSetStationary(pedRussell.id, false)
PedSetStationary(pedRussell.id, true)
PedSetStationary(pedStoreOwner.id, false)
PedSetStationary(pedStoreOwner.id, true)
PedSetStationary(pedZoe.id, false)
PedSetStationary(pedZoe.id, true)
PedSetStationary(phillips, false)
PedSetStationary(phillips, true)
PedSetStationary(prefect, false)
PedSetStationary(prefect, true)
PedSetStationary(ScenarioPed, false)
PedSetStationary(ScenarioPed, true)
PedSetStationary(shared.gdormHeadID, true)
PedSetStationary(sheet1Bruiser, true)
PedSetStationary(sheet1Guard, true)
PedSetStationary(student, true)
PedSetStationary(tblJohnnyWH.id, true)
PedSetStationary(tblMsPhillips.id, false)
PedSetStationary(tblMsPhillips.id, true)
PedSetStationary(tblRaceInfo.race.countdown_ped.id, false)
PedSetStationary(tblRaceInfo.race.countdown_ped.id, true)
PedSetStationary(Thug, true)
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x13
push 0x1
push edi
call LuaParam::GetBool
add esp, 0x8
mov byte ptr [esi+0x4E4], al
pop edi
xor eax, eax
pop esi
ret
PedSetStatsType(enemy, "STAT_TEST_BLOCKER")
PedSetStatsType(EnemyTable[index].handle, "STAT_109_RANGED")
PedSetStatsType(idNorton, "STAT_3_05_NORTON")
PedSetStatsType(norton, "STAT_3_05_NORTON")
PedSetStatsType(ped.id, "STAT_X04_RANGED")
PedSetStatsType(russell, "STAT_BOSS_RUSSELL")
sub esp, 0x100
push esi
mov esi, dword ptr [esp+0x108]
push edi
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov edi, eax
add esp, 0x8
test edi, edi
jz 0x39
push 0x1
push esi
call LuaParam::GetString
add esp, 0x8
lea edx, ptr [esp+0x8]
mov cl, byte ptr [eax]
mov byte ptr [edx], cl
add eax, 0x1
add edx, 0x1
test cl, cl
jnz 0xFFFFFFF4
mov ecx, dword ptr [0xC2C084]
lea eax, ptr [esp+0x8]
push eax
call 0x49A0F0
push 0x0
push eax
mov ecx, edi
call 0x478F80
pop edi
xor eax, eax
pop esi
add esp, 0x100
ret
PedSetStealthBehavior(CoachBurton.id, 0, CbBurtonSteath)
PedSetStealthBehavior(cop6, 1)
PedSetStealthBehavior(entry.id, 0, F_CBCopAlley)
PedSetStealthBehavior(Entry.id, 1, F_OnSightCallback)
PedSetStealthBehavior(Entry.id, 1, F_OnSightCallback, F_OnHearCallback)
PedSetStealthBehavior(gBlockAOrderly01, 0, cbNull)
PedSetStealthBehavior(gBlockAOrderly02, 0, cbNull)
PedSetStealthBehavior(gBlockBOrderly01, 0, cbNull)
PedSetStealthBehavior(gBlockBOrderly02, 0, cbNull)
PedSetStealthBehavior(gControlOrderly, 0, cbNull)
PedSetStealthBehavior(gCop1, 1, cbCop1Spot)
PedSetStealthBehavior(gCop2, 1)
PedSetStealthBehavior(gCop3, 1)
PedSetStealthBehavior(gCop4, 1)
PedSetStealthBehavior(gCop5, 1)
PedSetStealthBehavior(gDuncan, 0, cbOnSightPackers)
PedSetStealthBehavior(gDuncan, 1)
PedSetStealthBehavior(gEdna, 0, Cb_EdnaCallPrefect)
PedSetStealthBehavior(gEnemies[index].id, 1, CbSeenPlayer)
PedSetStealthBehavior(gFrontDeskOrderly, 0, cbNull)
PedSetStealthBehavior(gFrontOrderly, 0, cbNull)
PedSetStealthBehavior(gHallMon, 0, CbHallMonitorAttack)
PedSetStealthBehavior(gHattrick, 0, Cb_HattrickSeePlayer)
PedSetStealthBehavior(gHattrick, 0, cbHattrickAttack, cbHattrickAttack)
PedSetStealthBehavior(gInOrderly01, 0, cbNull)
PedSetStealthBehavior(gInOrderly02, 0, cbNull)
PedSetStealthBehavior(gJerry, 1, cbOnSightRatFink, cbOnSightRatFink)
PedSetStealthBehavior(gLeon, 0, cbOnSightPackers)
PedSetStealthBehavior(gLeon, 1)
PedSetStealthBehavior(gOrderly01, 0, cbNull)
PedSetStealthBehavior(gOrderly01, 1, cbNull)
PedSetStealthBehavior(gOrderly02, 0, cbNull)
PedSetStealthBehavior(gOrderly02, 1, cbNull)
PedSetStealthBehavior(gOrderly03, 0, cbNull)
PedSetStealthBehavior(gOrderly03, 1, cbNull)
PedSetStealthBehavior(gOrderly04, 0, cbNull)
PedSetStealthBehavior(gOrderly04, 1, cbNull)
PedSetStealthBehavior(gOtto, 1, cbOnSightRatFink, cbOnSightRatFink)
PedSetStealthBehavior(gPartierFire, 0, cbStealthPOISee, cbStealthPOISee)
PedSetStealthBehavior(gSleepingOrderly, 0, cbNull)
PedSetStealthBehavior(gStationOrderly, 0, cbNull)
PedSetStealthBehavior(idBurton, 0, cbSpotted)
PedSetStealthBehavior(patrol.id, patrol.behavior, patrol.stealthCB, patrol.stealthCB)
PedSetStealthBehavior(ped, 1)
PedSetStealthBehavior(ped.id, 0, cbNull)
PedSetStealthBehavior(pedGreaser02.id, 1)
PedSetStealthBehavior(pedGreaser03.id, 1)
PedSetStealthBehavior(pedHeadmistress, 1, F_stealthCallbackHeadmistress)
PedSetStealthBehavior(pedid, 1)
PedSetStealthBehavior(pedLibrarian.id, 1, F_BustPlayer)
PedSetStealthBehavior(tableEntry.id, 0, CbSeePlayer)
PedSetStealthBehavior(tblPed.id, 1)
PedSetStealthBehavior(tPed, 0, F_KickPlayerOut)
push ebx
mov ebx, dword ptr [esp+0x8]
push ebp
push esi
push edi
push 0x0
push ebx
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov ebp, eax
add esp, 0x8
test ebp, ebp
jz 0xCA
mov eax, 0x1
mov dword ptr [ebp+0xE4], eax
mov dword ptr [ebp+0x1398], eax
mov ecx, dword ptr [0xC0F5F0]
mov eax, ebp
sub eax, dword ptr [ecx]
mov edi, dword ptr [0xC674CC]
cdq
idiv dword ptr [ecx+0xC]
mov ecx, dword ptr [ecx+0x4]
movzx esi, byte ptr [ecx+eax*1]
shl eax, 0x8
add esi, eax
push esi
push 0x6
mov ecx, edi
call 0x54A890
push esi
push 0x2
mov ecx, edi
call 0x54A890
push esi
push 0xD
mov ecx, edi
call 0x54A890
push 0x0
push 0x2
push 0x3
push ecx
mov eax, esp
push esi
push 0x2
mov ecx, edi
mov byte ptr [eax], 0x0
mov byte ptr [eax+0x1], 0x0
mov byte ptr [eax+0x2], 0x0
mov byte ptr [eax+0x3], 0x0
call 0x54A5B0
push 0x5
push eax
mov ecx, edi
call 0x548BF0
push 0xFFFFFFFF
mov esi, 0x1
push esi
push ebx
call LuaParam::GetInt ; optional
add esp, 0xC
cmp eax, 0xFFFFFFFF
jz 0x4
mov esi, eax
mov dword ptr [ebp+0x18DC], esi
lea esi, ptr [ebp+0x18E0]
push esi
push 0x2
push ebx
call 0x5DA060
add esp, 0xC
mov ecx, esi
call 0x5D80E0
add ebp, 0x18E4
push ebp
push 0x3
push ebx
call 0x5DA060
add esp, 0xC
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
PedSetStealthVisionHeight(Entry.id, 0.5)
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x13
push 0x1
push edi
call LuaParam::GetFloat
fstp dword ptr [esi+0xA70], st
add esp, 0x8
pop edi
xor eax, eax
pop esi
ret
L_PedExec("CheerDudes", PedSetTaskNode, "id", "/Global/AI/ScriptedAI/CheeringAINode", "Act/AI/AI.act")
L_PedExec("spectator", PedSetTaskNode, "id", "/Global/AI/ScriptedAI/CheeringAINode", "Act/AI/AI.act")
PedSetTaskNode(earnest, "/Global/AI/GeneralObjectives/SpecificObjectives/UseSpudCannon", "Act/AI/AI.act")
PedSetTaskNode(gCannonNerd, "/Global/AI/GeneralObjectives/SpecificObjectives/UseSpudCannon", "Act/AI/AI.act")
PedSetTaskNode(gCannonNerd, "/Global/AI/GeneralObjectives/SpecificObjectives/UseSpudCannon/PreFireWait/Fire", "Act/AI/AI.act")
PedSetTaskNode(gJohnny, "/Global/AI", "Act/AI/AI.act")
PedSetTaskNode(gMandy, "/Global/AI/Reactions/Triggered/GirlsBathroom/GirlNotice",
PedSetTaskNode(gPlayer, "/Global/PlayerAI", "Act/PlayerAI.act")
PedSetTaskNode(gPlayer, "/Global/PlayerAI/Objectives/ComeToStopInVehicle/Brake", "Act/PlayerAI.act")
PedSetTaskNode(gRussell, "/Global/AI", "Act/AI/AI.act")
PedSetTaskNode(kicker, "/Global/AI/Reactions/Stimuli/KickMeSign/KickMeReactions/Scripted/KickScript", "Act/AI/AI.act")
PedSetTaskNode(ped, "/Global/AI", "Act/AI/AI.act")
PedSetTaskNode(ped, "/Global/AI/ScriptedAI/CheeringAINode", "Act/AI/AI.act")
PedSetTaskNode(ped.id, "/Global/AI", "Act/AI.act")
PedSetTaskNode(pedBryce, "/Global/AI", "Act/AI/AI.act")
PedSetTaskNode(pedBryce, "/Global/AI/ScriptedAI/CheeringAINode", "Act/AI/AI.act")
PedSetTaskNode(pedEarnest.id, "/Global/AI", "Act/AI/AI.act")
PedSetTaskNode(pedEarnest.id, "/Global/AI/GeneralObjectives/SpecificObjectives/UseSpudCannon", "Act/AI/AI.act")
PedSetTaskNode(pedGord, "/Global/AI", "Act/AI/AI.act")
PedSetTaskNode(pedGord, "/Global/AI/ScriptedAI/CheeringAINode", "Act/AI/AI.act")
PedSetTaskNode(pedid, "/Global/AI", "Act/AI/AI.act")
PedSetTaskNode(pedid, "/Global/AI/ScriptedAI/CheeringAINode", "Act/AI/AI.act")
PedSetTaskNode(pedRussell.id, "/Global/AI", "Act/AI/AI.act")
PedSetTaskNode(ScenarioPed, "/Global/AI/GeneralObjectives/POIPoint/Scenario/ScenarioSeek/ScenarioOpen/ScenarioWait/ScenarioDialog/ScenarioAccepted/ScenarioOptions/ScenarioObjective/WaitForObjective/ObjectiveOptions/ObjCompleted/ObjScenarioEnd", "Act/AI/AI.act")
PedSetTaskNode(spud_nerd, "/Global/AI/GeneralObjectives/SpecificObjectives/UseSpudCannon", "Act/AI/AI.act")
PedSetTaskNode(tblPrank[1].id, "/Global/AI/GeneralObjectives/POIPoint/Scenario/ScenarioSeek/ScenarioOpen/ScenarioWait/ScenarioDialog/ScenarioAccepted/ScenarioOptions/ScenarioObjective/WaitForObjective/ObjectiveOptions/ObjCompleted/ObjScenarioEnd", "Act/AI/AI.act")
PedSetTaskNode(tblPrank[2].id, "/Global/AI/GeneralObjectives/POIPoint/Scenario/ScenarioSeek/ScenarioOpen/ScenarioWait/ScenarioDialog/ScenarioAccepted/ScenarioOptions/ScenarioObjective/WaitForObjective/ObjectiveOptions/ObjCompleted/ObjScenarioEnd", "Act/AI/AI.act")
PedSetTaskNode(tblPrank[3].id, "/Global/AI/GeneralObjectives/POIPoint/Scenario/ScenarioSeek/ScenarioOpen/ScenarioWait/ScenarioDialog/ScenarioAccepted/ScenarioOptions/ScenarioObjective/WaitForObjective/ObjectiveOptions/ObjCompleted/ObjScenarioEnd", "Act/AI/AI.act")
PedSetTaskNode(tblPrank[4].id, "/Global/AI/GeneralObjectives/POIPoint/Scenario/ScenarioSeek/ScenarioOpen/ScenarioWait/ScenarioDialog/ScenarioAccepted/ScenarioOptions/ScenarioObjective/WaitForObjective/ObjectiveOptions/ObjCompleted/ObjScenarioEnd", "Act/AI/AI.act")
PedSetTaskNode(tblPrank[5].id, "/Global/AI/GeneralObjectives/POIPoint/Scenario/ScenarioSeek/ScenarioOpen/ScenarioWait/ScenarioDialog/ScenarioAccepted/ScenarioOptions/ScenarioObjective/WaitForObjective/ObjectiveOptions/ObjCompleted/ObjScenarioEnd", "Act/AI/AI.act")
PedSetTaskNode(tblPrank[6].id, "/Global/AI/GeneralObjectives/POIPoint/Scenario/ScenarioSeek/ScenarioOpen/ScenarioWait/ScenarioDialog/ScenarioAccepted/ScenarioOptions/ScenarioObjective/WaitForObjective/ObjectiveOptions/ObjCompleted/ObjScenarioEnd", "Act/AI/AI.act")
PedSetTaskNode(tblPrank[7].id, "/Global/AI/GeneralObjectives/POIPoint/Scenario/ScenarioSeek/ScenarioOpen/ScenarioWait/ScenarioDialog/ScenarioAccepted/ScenarioOptions/ScenarioObjective/WaitForObjective/ObjectiveOptions/ObjCompleted/ObjScenarioEnd", "Act/AI/AI.act")
PedSetTaskNode(tblPrank[8].id, "/Global/AI/GeneralObjectives/POIPoint/Scenario/ScenarioSeek/ScenarioOpen/ScenarioWait/ScenarioDialog/ScenarioAccepted/ScenarioOptions/ScenarioObjective/WaitForObjective/ObjectiveOptions/ObjCompleted/ObjScenarioEnd", "Act/AI/AI.act")
PedSetTaskNode(Thug, "/Global/AI/Reactions/Criminal/ProjAttack/ScriptedProj/ScriptedProjtrack", "Act/AI/AI.act")
push ecx
push ebx
push esi
mov esi, dword ptr [esp+0x10]
push edi
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov edi, eax
add esp, 0x8
test edi, edi
jnz 0x14
push eax
push esi
call LuaParam::PushBool
lea eax, ptr [edi+0x1]
add esp, 0x8
pop edi
pop esi
pop ebx
pop ecx
ret
push 0x1
push esi
call LuaParam::GetString
push 0x2
push esi
mov ebx, eax
call LuaParam::GetString
add esp, 0x10
push eax
push ebx
mov ecx, edi
call 0x4740E0
mov byte ptr [esp+0xC], al
mov eax, dword ptr [esp+0xC]
push eax
push esi
call LuaParam::PushBool
add esp, 0x8
pop edi
pop esi
mov eax, 0x1
pop ebx
pop ecx
ret
PedSetTetherMoveToCenter(gBully01, true)
PedSetTetherMoveToCenter(gHobo, true)
PedSetTetherMoveToCenter(ped, true)
PedSetTetherMoveToCenter(ped.id, ped.tether.moveToCenter)
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x1B
push 0x1
push edi
call LuaParam::GetBool
movzx eax, al
add esp, 0x8
test eax, eax
setnz al
mov byte ptr [esi+0x3B5], al
pop edi
xor eax, eax
pop esi
ret
PedSetTetherMoveToTarget(ped.id, ped.tether.moveToTarget)
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x1B
push 0x1
push edi
call LuaParam::GetBool
movzx eax, al
add esp, 0x8
test eax, eax
setnz al
mov byte ptr [esi+0x3B4], al
pop edi
xor eax, eax
pop esi
ret
PedSetTetherSpeed(ped.id, ped.tether.speed)
push ecx
push esi
push edi
mov edi, dword ptr [esp+0x10]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x1B
push 0x1
push edi
call 0x5C6280
fstp dword ptr [esp+0x10], st
fld st, dword ptr [esp+0x10]
add esp, 0x8
fstp dword ptr [esi+0x3B8], st
pop edi
xor eax, eax
pop esi
pop ecx
ret
PedSetTetherToPed(gOrderly, gOldLady, 10)
PedSetTetherToPed(ped.id, ped.tether.ped, ped.tether.radius)
PedSetTetherToPed(pedZoe.id, gPlayer, 12)
push ecx
push ebx
push esi
push edi
mov edi, dword ptr [esp+0x14]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov ebx, eax
add esp, 0x8
test ebx, ebx
jz 0x4C
push 0x1
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x2A
push 0x2
push edi
call LuaParam::GetFloat
fstp dword ptr [esp+0x14], st
fld st, dword ptr [esp+0x14]
add esp, 0x8
push 0xBCC564
push ecx
fstp dword ptr [esp], st
push esi
lea ecx, ptr [ebx+0x358]
call 0x499AB0
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
PedSetTetherToPoint(dog.id, dog.point, 1, 5)
PedSetTetherToPoint(gDavis, POINTLIST._1_03_BARRELSTOP, 1, 1)
PedSetTetherToPoint(gTed, POINTLIST._TED, 1, 2)
PedSetTetherToPoint(gTed, POINTLIST._TED02, 1, 2)
PedSetTetherToPoint(gTed, POINTLIST._TED03, 1, 2)
PedSetTetherToPoint(guard, pos, 2, 15)
PedSetTetherToPoint(guy, point, 1, 2)
PedSetTetherToPoint(librarian, POINTLIST._5_01_LIBRARIAN, 0.25)
PedSetTetherToPoint(MailMan.id, MailMan.point, 1, 5)
PedSetTetherToPoint(ped, point, pointNum, radius or 10)
PedSetTetherToPoint(ped, POINTLIST._CAFELINEUP1, 20)
PedSetTetherToPoint(ped.id, ped.tether.point, ped.tether.radius)
PedSetTetherToPoint(pedAlgie.id, POINTLIST._1_05B_ALGIETETHER, 1, 2)
PedSetTetherToPoint(rat, POINTLIST._5_02AMBIENTRATS, 1, 15)
PedSetTetherToPoint(rat, POINTLIST._5_02RATTETHER, 1, 5)
PedSetTetherToPoint(shared.gEdnaID, POINTLIST._AMBLUNCHLADY, 12)
sub esp, 0x18
push ebx
push ebp
mov ebp, dword ptr [esp+0x24]
push esi
push edi
push 0x0
push ebp
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
mov dword ptr [esp+0x18], eax
jz 0xD6
push 0x1
push ebp
mov byte ptr [esp+0x1B], 0x0
call LuaParam::GetInt
push ebp
movzx esi, ax
call 0x73AEA0
add esp, 0xC
cmp eax, 0x4
jnz 0x16
push 0x2
push ebp
mov byte ptr [esp+0x1B], 0x1
call LuaParam::GetInt
add esp, 0x8
mov ebx, eax
jmp 0x6
mov ebx, dword ptr [esp+0x18]
movzx eax, si
push eax
mov ecx, 0xBC5E7C
call 0x6D6450
test eax, eax
mov dword ptr [esp+0x14], eax
jz 0x86
mov ecx, eax
call 0x6D59B0
cmp byte ptr [esp+0x13], 0x0
mov esi, eax
jz 0x25
mov edi, 0x1
cmp ebx, edi
jle 0x1C
lea esp, ptr [esp]
mov ecx, dword ptr [esp+0x14]
call 0x6D59F0
test eax, eax
jz 0xB
add edi, 0x1
cmp edi, ebx
mov esi, eax
jl 0xFFFFFFEC
test esi, esi
jz 0x4B
mov ecx, dword ptr [esi]
mov dword ptr [esp+0x1C], ecx
mov edx, dword ptr [esi+0x4]
xor ecx, ecx
cmp byte ptr [esp+0x13], cl
mov dword ptr [esp+0x20], edx
mov eax, dword ptr [esi+0x8]
setnz cl
mov dword ptr [esp+0x24], eax
add ecx, 0x2
push ecx
push ebp
call LuaParam::GetFloat
fstp dword ptr [esp+0x1C], st
fld st, dword ptr [esp+0x1C]
mov ecx, dword ptr [esp+0x20]
add esp, 0x4
lea edx, ptr [esp+0x20]
fstp dword ptr [esp], st
push edx
add ecx, 0x358
call 0x499A60
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
PedSetTetherToProp(ped.id, ped.tether.prop, ped.tether.radius)
push ecx
push ebx
push esi
mov esi, dword ptr [esp+0x10]
push edi
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov ebx, eax
add esp, 0x8
test ebx, ebx
jz 0x51
push 0x1
push esi
call LuaParam::GetInt
add esp, 0x8
push 0x0
push 0x0
push ecx
mov ecx, esp
push eax
mov dword ptr [ecx], 0x0
call 0x5C28D0
mov edi, eax
add esp, 0x10
test edi, edi
jz 0x2A
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x14], st
fld st, dword ptr [esp+0x14]
add esp, 0x8
push 0xBCC564
push ecx
fstp dword ptr [esp], st
push edi
lea ecx, ptr [ebx+0x358]
call 0x499AB0
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
PedSetTetherToTrigger(Boxer1, TRIGGER._BOXINGTETHER)
PedSetTetherToTrigger(Boxer2, TRIGGER._BOXINGTETHER)
PedSetTetherToTrigger(defender, tetherTable[tetheredPeds])
PedSetTetherToTrigger(gBaddie.id, TRIGGER._BMX_WARNING_TRIG)
PedSetTetherToTrigger(gBaddie02.id, TRIGGER._BMX_WARNING_TRIG)
PedSetTetherToTrigger(gBaddie03.id, TRIGGER._BMX_WARNING_TRIG)
PedSetTetherToTrigger(gBaddie04.id, TRIGGER._BMX_WARNING_TRIG)
PedSetTetherToTrigger(gBaddie05.id, TRIGGER._BMX_WARNING_TRIG)
PedSetTetherToTrigger(gBaddie06.id, TRIGGER._BMX_WARNING_TRIG)
PedSetTetherToTrigger(gBlockBOrderly01, TRIGGER._5_03_BLOCKB)
PedSetTetherToTrigger(gBlockBOrderly02, TRIGGER._5_03_BLOCKB)
PedSetTetherToTrigger(gBucky, TRIGGER._2_S04_SHEET3CREATE)
PedSetTetherToTrigger(gControlOrderly, TRIGGER._5_03_BLOCKB)
PedSetTetherToTrigger(gDefenders[1], TRIGGER._TETHERD101)
PedSetTetherToTrigger(gDefenders[1], TRIGGER._TETHERD201)
PedSetTetherToTrigger(gDefenders[1], TRIGGER._TETHERD301)
PedSetTetherToTrigger(gDefenders[2], TRIGGER._TETHERD102)
PedSetTetherToTrigger(gDefenders[2], TRIGGER._TETHERD202)
PedSetTetherToTrigger(gDefenders[2], TRIGGER._TETHERD302)
PedSetTetherToTrigger(gDefenders[3], TRIGGER._TETHERD103)
PedSetTetherToTrigger(gDefenders[3], TRIGGER._TETHERD203)
PedSetTetherToTrigger(gDefenders[3], TRIGGER._TETHERD303)
PedSetTetherToTrigger(gDo11[1], TRIGGER._5_07_OMARFIGHT)
PedSetTetherToTrigger(gDo11[2], TRIGGER._5_07_OMARFIGHT)
PedSetTetherToTrigger(gDOThug01, TRIGGER._5_03_BLOCKB)
PedSetTetherToTrigger(gDOThug02, TRIGGER._5_03_BLOCKB)
PedSetTetherToTrigger(gDOThug03, TRIGGER._5_03_BLOCKB)
PedSetTetherToTrigger(gEdna, TRIGGER._1_S01_KITCHEN)
PedSetTetherToTrigger(gEnemies[index].id, TRIGGER._3_R09_AREAT01)
PedSetTetherToTrigger(gFenwick, TRIGGER._5_03_BLOCKB)
PedSetTetherToTrigger(gLackey[8].ped, TRIGGER._CAFBACKTRIGGER)
PedSetTetherToTrigger(gNerds[1].id, TRIGGER._4_04_NERDTRIG)
PedSetTetherToTrigger(gNerds[2].id, TRIGGER._4_04_NERDTRIG)
PedSetTetherToTrigger(gRetirementTable.ped1, TRIGGER._RT_TETHER)
PedSetTetherToTrigger(gRetirementTable.ped2, TRIGGER._RT_TETHER)
PedSetTetherToTrigger(gThad, TRIGGER._2_S04_AUTOSHOPAREA)
PedSetTetherToTrigger(idBurton, TRIGGER._5_05_BURTONTETHER)
PedSetTetherToTrigger(idOmar, TRIGGER._5_07_OMARFIGHT)
PedSetTetherToTrigger(idPed, TRIGGER._5_01_MAIN_ROOM_TR)
PedSetTetherToTrigger(idZoe, TRIGGER._5_07_CHEMENTRANCE)
PedSetTetherToTrigger(ped, TRIGGER._FINALFIGHTTRIG)
PedSetTetherToTrigger(ped.id, ped.tether.trigger)
PedSetTetherToTrigger(pedConstantine.id, TRIGGER._1_02B_CONSTTETHER)
PedSetTetherToTrigger(pedEarnest.id, TRIGGER._4_B1_EARNEST_PATTERN02)
PedSetTetherToTrigger(pedTad.id, TRIGGER._TRIGGERTADTETHER)
PedSetTetherToTrigger(sheet1Bruiser, TRIGGER._2_S04_TETHERBULLY)
PedSetTetherToTrigger(sheet1Guard, TRIGGER._2_S04_TETHERBULLY)
PedSetTetherToTrigger(sheet2Goon1, TRIGGER._2_S04_AUTOSHOPAREA)
PedSetTetherToTrigger(sheet2Guard, TRIGGER._2_S04_AUTOSHOPAREA)
PedSetTetherToTrigger(sheet3Guard, TRIGGER._2_S04_SHEET3CREATE)
PedSetTetherToTrigger(sheet4Guard, TRIGGER._2_S04_SCHOOLPOP)
PedSetTetherToTrigger(tbl.id, tbl.tether.trigger)
PedSetTetherToTrigger(tblGord.id, tblGord.tether.trigger)
push ecx
push esi
push edi
mov edi, dword ptr [esp+0x10]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x36
push 0x1
push edi
call LuaParam::GetInt
add esp, 0x8
test eax, eax
jl 0x27
mov ecx, dword ptr [0x20C7C48]
mov edx, dword ptr [ecx+0x4]
test byte ptr [eax+edx*1], 0x80
jnz 0x18
mov edx, dword ptr [ecx+0xC]
imul edx, eax
add edx, dword ptr [ecx]
jz 0xE
push eax
lea ecx, ptr [esi+0x358]
call 0x499B30
pop edi
xor eax, eax
pop esi
pop ecx
ret
PedSetTetherToXYZ(dog, x, y, z, 20)
PedSetTetherToXYZ(gBully01, 271.3, -108.2, 6.2, 5)
PedSetTetherToXYZ(ped, x, y, z, 5)
PedSetTetherToXYZ(ped.id, ped.tether.x, ped.tether.y, ped.tether.z, ped.tether.radius)
PedSetTetherToXYZ(ped1, x, y, z, 5)
PedSetTetherToXYZ(worker1, x, y, z, 20)
PedSetTetherToXYZ(worker2, x, y, z, 20)
sub esp, 0x10
push esi
mov esi, dword ptr [esp+0x18]
push edi
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
push 0x1
mov edi, eax
lea eax, ptr [esp+0x18]
push esi
push eax
call LuaParam::GetVector
push 0x4
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x24], st
add esp, 0x1C
test edi, edi
jz 0x1A
fld st, dword ptr [esp+0x8]
push ecx
lea ecx, ptr [esp+0x10]
fstp dword ptr [esp], st
push ecx
lea ecx, ptr [edi+0x358]
call 0x499A60
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret
CLIENT
Sets a ped's throttle. Usually only useful during the PedUpdateActionController event.
PedSetTypeToTypeAttitude(0, 11, 4)
PedSetTypeToTypeAttitude(0, 13, 3)
PedSetTypeToTypeAttitude(0, 13, 4)
PedSetTypeToTypeAttitude(0, 3, 0)
PedSetTypeToTypeAttitude(0, 3, 4)
PedSetTypeToTypeAttitude(0, 4, 3)
PedSetTypeToTypeAttitude(0, 4, 4)
PedSetTypeToTypeAttitude(0, 6, 4)
PedSetTypeToTypeAttitude(1, 11, 2)
PedSetTypeToTypeAttitude(1, 13, 0)
PedSetTypeToTypeAttitude(1, 13, 1)
PedSetTypeToTypeAttitude(1, 13, 2)
PedSetTypeToTypeAttitude(1, 13, 4)
PedSetTypeToTypeAttitude(1, 2, 0)
PedSetTypeToTypeAttitude(1, 4, 0)
PedSetTypeToTypeAttitude(1, 5, 0)
PedSetTypeToTypeAttitude(11, 1, 0)
PedSetTypeToTypeAttitude(11, 13, 0)
PedSetTypeToTypeAttitude(11, 13, 2)
PedSetTypeToTypeAttitude(11, 4, 0)
PedSetTypeToTypeAttitude(11, 6, 3)
PedSetTypeToTypeAttitude(2, 1, 0)
PedSetTypeToTypeAttitude(2, 1, 2)
PedSetTypeToTypeAttitude(2, 13, 0)
PedSetTypeToTypeAttitude(2, 13, 1)
PedSetTypeToTypeAttitude(2, 13, 2)
PedSetTypeToTypeAttitude(2, 13, 3)
PedSetTypeToTypeAttitude(2, 4, 0)
PedSetTypeToTypeAttitude(2, 5, 0)
PedSetTypeToTypeAttitude(2, 6, 2)
PedSetTypeToTypeAttitude(3, 0, 0)
PedSetTypeToTypeAttitude(3, 0, 4)
PedSetTypeToTypeAttitude(3, 13, 0)
PedSetTypeToTypeAttitude(3, 13, 2)
PedSetTypeToTypeAttitude(3, 4, 0)
PedSetTypeToTypeAttitude(3, 4, 2)
PedSetTypeToTypeAttitude(3, 9, 2)
PedSetTypeToTypeAttitude(3, 9, 4)
PedSetTypeToTypeAttitude(4, 0, 4)
PedSetTypeToTypeAttitude(4, 1, 0)
PedSetTypeToTypeAttitude(4, 13, 0)
PedSetTypeToTypeAttitude(4, 13, 1)
PedSetTypeToTypeAttitude(4, 13, 2)
PedSetTypeToTypeAttitude(4, 13, 3)
PedSetTypeToTypeAttitude(4, 13, 4)
PedSetTypeToTypeAttitude(4, 13, greaserAttitude)
PedSetTypeToTypeAttitude(4, 13, greaserToPlayerAttitude)
PedSetTypeToTypeAttitude(4, 2, 0)
PedSetTypeToTypeAttitude(4, 3, 0)
PedSetTypeToTypeAttitude(4, 3, 2)
PedSetTypeToTypeAttitude(4, 5, 0)
PedSetTypeToTypeAttitude(4, 5, 4)
PedSetTypeToTypeAttitude(5, 1, 0)
PedSetTypeToTypeAttitude(5, 13, 0)
PedSetTypeToTypeAttitude(5, 13, 1)
PedSetTypeToTypeAttitude(5, 13, 2)
PedSetTypeToTypeAttitude(5, 13, 3)
PedSetTypeToTypeAttitude(5, 13, 4)
PedSetTypeToTypeAttitude(5, 13, oldAttitude)
PedSetTypeToTypeAttitude(5, 13, prepTude)
PedSetTypeToTypeAttitude(5, 2, 0)
PedSetTypeToTypeAttitude(5, 4, 0)
PedSetTypeToTypeAttitude(5, 4, 2)
PedSetTypeToTypeAttitude(5, 4, 4)
PedSetTypeToTypeAttitude(6, 13, 2)
PedSetTypeToTypeAttitude(9, 13, 0)
PedSetTypeToTypeAttitude(9, 13, 4)
PedSetTypeToTypeAttitude(9, 4, 2)
PedSetTypeToTypeAttitude(factionA, 13, 0)
PedSetTypeToTypeAttitude(factionA, factionB, 0)
push ebx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetInt
push 0x2
push esi
mov ebx, eax
call LuaParam::GetInt
mov ecx, dword ptr [0xC2AF9C]
add esp, 0x18
push eax
push ebx
push edi
call 0x46F8B0
pop edi
pop esi
xor eax, eax
pop ebx
ret
PedSetUniqueModelStatus(102, -1)
PedSetUniqueModelStatus(102, 1)
PedSetUniqueModelStatus(102, numBully01)
PedSetUniqueModelStatus(102, Uniqueness)
PedSetUniqueModelStatus(11, -1)
PedSetUniqueModelStatus(11, 1)
PedSetUniqueModelStatus(12, -1)
PedSetUniqueModelStatus(12, 1)
PedSetUniqueModelStatus(12, numDamon)
PedSetUniqueModelStatus(127, 0)
PedSetUniqueModelStatus(127, gMailmanModelStatus)
PedSetUniqueModelStatus(134, -1)
PedSetUniqueModelStatus(134, 1)
PedSetUniqueModelStatus(135, -1)
PedSetUniqueModelStatus(135, 2)
PedSetUniqueModelStatus(137, -1)
PedSetUniqueModelStatus(137, 1)
PedSetUniqueModelStatus(138, -1)
PedSetUniqueModelStatus(138, 1)
PedSetUniqueModelStatus(139, -1)
PedSetUniqueModelStatus(139, 1)
PedSetUniqueModelStatus(139, numWhiteBoy)
PedSetUniqueModelStatus(139, numWhitey)
PedSetUniqueModelStatus(14, -1)
PedSetUniqueModelStatus(14, 1)
PedSetUniqueModelStatus(14, numMandy)
PedSetUniqueModelStatus(14, PedGetUniqueModelStatus(14))
PedSetUniqueModelStatus(140, -1)
PedSetUniqueModelStatus(140, 1)
PedSetUniqueModelStatus(141, -1)
PedSetUniqueModelStatus(141, spawnNumberDog)
PedSetUniqueModelStatus(144, -1)
PedSetUniqueModelStatus(144, 2)
PedSetUniqueModelStatus(145, -1)
PedSetUniqueModelStatus(145, numBully04)
PedSetUniqueModelStatus(145, Uniqueness)
PedSetUniqueModelStatus(146, -1)
PedSetUniqueModelStatus(146, numBully05)
PedSetUniqueModelStatus(146, Uniqueness)
PedSetUniqueModelStatus(147, -1)
PedSetUniqueModelStatus(147, Uniqueness)
PedSetUniqueModelStatus(148, -1)
PedSetUniqueModelStatus(148, 2)
PedSetUniqueModelStatus(149, -1)
PedSetUniqueModelStatus(149, 2)
PedSetUniqueModelStatus(159, -1)
PedSetUniqueModelStatus(159, 2)
PedSetUniqueModelStatus(16, -1)
PedSetUniqueModelStatus(16, numLuis)
PedSetUniqueModelStatus(161, -1)
PedSetUniqueModelStatus(161, 2)
PedSetUniqueModelStatus(162, -1)
PedSetUniqueModelStatus(162, 2)
PedSetUniqueModelStatus(163, -1)
PedSetUniqueModelStatus(163, 1)
PedSetUniqueModelStatus(164, -1)
PedSetUniqueModelStatus(164, 2)
PedSetUniqueModelStatus(166, -1)
PedSetUniqueModelStatus(166, 1)
PedSetUniqueModelStatus(167, -1)
PedSetUniqueModelStatus(167, 1)
PedSetUniqueModelStatus(168, -1)
PedSetUniqueModelStatus(168, 2)
PedSetUniqueModelStatus(169, -1)
PedSetUniqueModelStatus(169, 3)
PedSetUniqueModelStatus(17, -1)
PedSetUniqueModelStatus(17, 1)
PedSetUniqueModelStatus(170, -1)
PedSetUniqueModelStatus(170, 2)
PedSetUniqueModelStatus(171, -1)
PedSetUniqueModelStatus(171, 3)
PedSetUniqueModelStatus(173, -1)
PedSetUniqueModelStatus(173, 1)
PedSetUniqueModelStatus(173, 2)
PedSetUniqueModelStatus(174, -1)
PedSetUniqueModelStatus(174, 1)
PedSetUniqueModelStatus(176, -1)
PedSetUniqueModelStatus(182, -1)
PedSetUniqueModelStatus(2, 1)
PedSetUniqueModelStatus(201, -1)
PedSetUniqueModelStatus(208, -1)
PedSetUniqueModelStatus(209, -1)
PedSetUniqueModelStatus(21, -1)
PedSetUniqueModelStatus(21, nPeanutMaxUnique)
PedSetUniqueModelStatus(211, -1)
PedSetUniqueModelStatus(212, -1)
PedSetUniqueModelStatus(213, -1)
PedSetUniqueModelStatus(214, -1)
PedSetUniqueModelStatus(224, -1)
PedSetUniqueModelStatus(224, 1)
PedSetUniqueModelStatus(227, -1)
PedSetUniqueModelStatus(227, 1)
PedSetUniqueModelStatus(228, -1)
PedSetUniqueModelStatus(228, 1)
PedSetUniqueModelStatus(23, -1)
PedSetUniqueModelStatus(23, nJohnnyMaxUnique)
PedSetUniqueModelStatus(235, -1)
PedSetUniqueModelStatus(24, -1)
PedSetUniqueModelStatus(24, numLefty)
PedSetUniqueModelStatus(25, -1)
PedSetUniqueModelStatus(25, 0)
PedSetUniqueModelStatus(25, 1)
PedSetUniqueModelStatus(25, gLolaUniqueNum)
PedSetUniqueModelStatus(25, nLolaMaxUnique)
PedSetUniqueModelStatus(25, nMaxLolaUnique)
PedSetUniqueModelStatus(25, pedNumberLola)
PedSetUniqueModelStatus(26, -1)
PedSetUniqueModelStatus(26, 1)
PedSetUniqueModelStatus(26, numLucky)
PedSetUniqueModelStatus(27, -1)
PedSetUniqueModelStatus(27, 1)
PedSetUniqueModelStatus(28, -1)
PedSetUniqueModelStatus(28, 1)
PedSetUniqueModelStatus(29, -1)
PedSetUniqueModelStatus(29, 1)
PedSetUniqueModelStatus(29, gNortonUniqueNum)
PedSetUniqueModelStatus(3, -1)
PedSetUniqueModelStatus(3, 1)
PedSetUniqueModelStatus(3, numBeatrice)
PedSetUniqueModelStatus(30, -1)
PedSetUniqueModelStatus(30, 1)
PedSetUniqueModelStatus(31, -1)
PedSetUniqueModelStatus(31, 0)
PedSetUniqueModelStatus(31, 1)
PedSetUniqueModelStatus(32, -1)
PedSetUniqueModelStatus(32, 1)
PedSetUniqueModelStatus(32, Box2Stat)
PedSetUniqueModelStatus(32, numChad)
PedSetUniqueModelStatus(32, pedNumberChad)
PedSetUniqueModelStatus(32, spawnNumberChad)
PedSetUniqueModelStatus(33, -1)
PedSetUniqueModelStatus(33, 1)
PedSetUniqueModelStatus(34, -1)
PedSetUniqueModelStatus(34, 1)
PedSetUniqueModelStatus(34, Box1Stat)
PedSetUniqueModelStatus(34, numJustin)
PedSetUniqueModelStatus(35, -1)
PedSetUniqueModelStatus(35, Box3Stat)
PedSetUniqueModelStatus(38, -1)
PedSetUniqueModelStatus(38, 1)
PedSetUniqueModelStatus(38, nPinkyMaxUnique)
PedSetUniqueModelStatus(39, -1)
PedSetUniqueModelStatus(39, 1)
PedSetUniqueModelStatus(4, -1)
PedSetUniqueModelStatus(4, 1)
PedSetUniqueModelStatus(4, numAlgie)
PedSetUniqueModelStatus(4, pedNumberAlgie)
PedSetUniqueModelStatus(40, -1)
PedSetUniqueModelStatus(40, 1)
PedSetUniqueModelStatus(42, -1)
PedSetUniqueModelStatus(42, 0)
PedSetUniqueModelStatus(45, -1)
PedSetUniqueModelStatus(45, 0)
PedSetUniqueModelStatus(46, -1)
PedSetUniqueModelStatus(46, 0)
PedSetUniqueModelStatus(48, -1)
PedSetUniqueModelStatus(48, 0)
PedSetUniqueModelStatus(48, 1)
PedSetUniqueModelStatus(48, nMaxZoeUnique)
PedSetUniqueModelStatus(5, -1)
PedSetUniqueModelStatus(5, numFatty)
PedSetUniqueModelStatus(50, -1)
PedSetUniqueModelStatus(50, numSeth)
PedSetUniqueModelStatus(52, -1)
PedSetUniqueModelStatus(52, numKarl)
PedSetUniqueModelStatus(54, -1)
PedSetUniqueModelStatus(54, 1)
PedSetUniqueModelStatus(54, spawnNumberHall)
PedSetUniqueModelStatus(55, -1)
PedSetUniqueModelStatus(55, 1)
PedSetUniqueModelStatus(55, spawnNumberBurton)
PedSetUniqueModelStatus(57, -1)
PedSetUniqueModelStatus(57, 1)
PedSetUniqueModelStatus(58, -1)
PedSetUniqueModelStatus(58, nMaxUniqueEdna)
PedSetUniqueModelStatus(59, -1)
PedSetUniqueModelStatus(59, numSecretary)
PedSetUniqueModelStatus(59, spawnNumberSecretary)
PedSetUniqueModelStatus(6, -1)
PedSetUniqueModelStatus(6, 1)
PedSetUniqueModelStatus(6, numMelvin)
PedSetUniqueModelStatus(6, savedState)
PedSetUniqueModelStatus(60, -1)
PedSetUniqueModelStatus(60, spawnNumberNurse)
PedSetUniqueModelStatus(61, -1)
PedSetUniqueModelStatus(61, 1)
PedSetUniqueModelStatus(62, -1)
PedSetUniqueModelStatus(62, spawnNumberLibrarian)
PedSetUniqueModelStatus(63, -1)
PedSetUniqueModelStatus(63, 1)
PedSetUniqueModelStatus(63, spawnNumberArt)
PedSetUniqueModelStatus(64, -1)
PedSetUniqueModelStatus(64, 1)
PedSetUniqueModelStatus(66, -1)
PedSetUniqueModelStatus(66, 1)
PedSetUniqueModelStatus(67, -1)
PedSetUniqueModelStatus(67, 1)
PedSetUniqueModelStatus(68, -1)
PedSetUniqueModelStatus(68, 1)
PedSetUniqueModelStatus(69, -1)
PedSetUniqueModelStatus(69, 1)
PedSetUniqueModelStatus(69, numHispanic)
PedSetUniqueModelStatus(69, numHispanicBoy)
PedSetUniqueModelStatus(69, numPedro)
PedSetUniqueModelStatus(7, -1)
PedSetUniqueModelStatus(7, 1)
PedSetUniqueModelStatus(7, numThad)
PedSetUniqueModelStatus(70, -1)
PedSetUniqueModelStatus(70, 1)
PedSetUniqueModelStatus(70, numGreekboy)
PedSetUniqueModelStatus(71, -1)
PedSetUniqueModelStatus(71, 1)
PedSetUniqueModelStatus(72, -1)
PedSetUniqueModelStatus(72, numBoy01)
PedSetUniqueModelStatus(73, -1)
PedSetUniqueModelStatus(73, 1)
PedSetUniqueModelStatus(73, numBoy02)
PedSetUniqueModelStatus(74, -1)
PedSetUniqueModelStatus(74, 1)
PedSetUniqueModelStatus(74, numEunice)
PedSetUniqueModelStatus(74, PedGetUniqueModelStatus(74))
PedSetUniqueModelStatus(75, -1)
PedSetUniqueModelStatus(75, numRussell)
PedSetUniqueModelStatus(76, -1)
PedSetUniqueModelStatus(76, 2)
PedSetUniqueModelStatus(77, -1)
PedSetUniqueModelStatus(77, 2)
PedSetUniqueModelStatus(78, -1)
PedSetUniqueModelStatus(78, 2)
PedSetUniqueModelStatus(79, -1)
PedSetUniqueModelStatus(8, -1)
PedSetUniqueModelStatus(8, 1)
PedSetUniqueModelStatus(85, -1)
PedSetUniqueModelStatus(85, numBully03)
PedSetUniqueModelStatus(85, Uniqueness)
PedSetUniqueModelStatus(87, -1)
PedSetUniqueModelStatus(9, -1)
PedSetUniqueModelStatus(9, numCorny)
PedSetUniqueModelStatus(9, pedNumberCornelius)
PedSetUniqueModelStatus(90, -1)
PedSetUniqueModelStatus(90, 1)
PedSetUniqueModelStatus(93, -1)
PedSetUniqueModelStatus(93, 1)
PedSetUniqueModelStatus(94, -1)
PedSetUniqueModelStatus(94, 1)
PedSetUniqueModelStatus(95, -1)
PedSetUniqueModelStatus(95, 1)
PedSetUniqueModelStatus(96, -1)
PedSetUniqueModelStatus(96, 1)
PedSetUniqueModelStatus(99, -1)
PedSetUniqueModelStatus(99, numBully)
PedSetUniqueModelStatus(99, numBully02)
PedSetUniqueModelStatus(99, Uniqueness)
PedSetUniqueModelStatus(AttackModel, -1)
PedSetUniqueModelStatus(AttackModel, 1)
PedSetUniqueModelStatus(idConst.model, -1)
PedSetUniqueModelStatus(idConst.model, idConst.unique)
PedSetUniqueModelStatus(idEunice.model, -1)
PedSetUniqueModelStatus(idEunice.model, idEunice.unique)
PedSetUniqueModelStatus(idGord.model, -1)
PedSetUniqueModelStatus(idGord.model, idGord.unique)
PedSetUniqueModelStatus(idLola.model, -1)
PedSetUniqueModelStatus(idLola.model, idLola.unique)
PedSetUniqueModelStatus(idPetey.model, -1)
PedSetUniqueModelStatus(idPetey.model, idPetey.unique)
PedSetUniqueModelStatus(idPinky.model, -1)
PedSetUniqueModelStatus(idPinky.model, idPinky.unique)
PedSetUniqueModelStatus(m, -1)
PedSetUniqueModelStatus(m.model, m.unique)
PedSetUniqueModelStatus(model, 1)
PedSetUniqueModelStatus(model, gUniqueStatus[i])
PedSetUniqueModelStatus(ped.id, -1)
PedSetUniqueModelStatus(ped.id, ped.maxNum)
PedSetUniqueModelStatus(rat_model, 0)
PedSetUniqueModelStatus(rat_model, gUniqueStatus)
push edi
mov edi, dword ptr [esp+0x8]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x8
cmp eax, 0xFFFFFFFF
jz 0x22
push esi
mov esi, dword ptr [eax*4+0xC67738]
test esi, esi
jz 0x11
push 0x1
push edi
call LuaParam::GetInt
add esp, 0x8
mov word ptr [esi+0x5C], ax
pop esi
xor eax, eax
pop edi
ret
PedSetUsesCollisionScripted(ped, true)
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x17
push 0x1
push edi
call LuaParam::GetBool
add esp, 0x8
neg al
sbb eax, eax
add eax, 0x1
mov dword ptr [esi+0x1C], eax
pop edi
xor eax, eax
pop esi
ret
PedSetWantsToSocializeWithPed(char, gPlayer)
PedSetWantsToSocializeWithPed(DirtyCop, MotelOwner)
PedSetWantsToSocializeWithPed(dude1, dude2)
PedSetWantsToSocializeWithPed(dude2, dude1)
PedSetWantsToSocializeWithPed(gBlockers1[1], gPlayer)
PedSetWantsToSocializeWithPed(gBlockers1[2], gPlayer)
PedSetWantsToSocializeWithPed(gBully01, gPlayer)
PedSetWantsToSocializeWithPed(gCheater01, gCheater02)
PedSetWantsToSocializeWithPed(gCheater02, gCheater01)
PedSetWantsToSocializeWithPed(gOrderly01, gOrderly02)
PedSetWantsToSocializeWithPed(gOrderly02, gOrderly01)
PedSetWantsToSocializeWithPed(gPushers[1], gPlayer)
PedSetWantsToSocializeWithPed(gPushers[2], gPlayer)
PedSetWantsToSocializeWithPed(Greaser1, Greaser2)
PedSetWantsToSocializeWithPed(Greaser2, Greaser1)
PedSetWantsToSocializeWithPed(id2ndMan, idBucky)
PedSetWantsToSocializeWithPed(idGord.id, idLola.id)
PedSetWantsToSocializeWithPed(idHitMan, idBucky)
PedSetWantsToSocializeWithPed(idLola.id, idGord.id)
PedSetWantsToSocializeWithPed(insultBoy, gPlayer, false, 0)
PedSetWantsToSocializeWithPed(insultBoy, gPlayer, false, 1)
PedSetWantsToSocializeWithPed(insultBoy, gPlayer, true, 12)
PedSetWantsToSocializeWithPed(insultBoy, gPlayer, true, 19)
PedSetWantsToSocializeWithPed(MotelOwner, DirtyCop)
PedSetWantsToSocializeWithPed(pedAsianGirl.id, gPlayer)
PedSetWantsToSocializeWithPed(pedEunice.id, gPlayer)
PedSetWantsToSocializeWithPed(pedRussell.id, gPlayer, true, 1)
PedSetWantsToSocializeWithPed(pedRussell.id, gPlayer, true, 17)
PedSetWantsToSocializeWithPed(pedSexyGirl.id, gPlayer)
PedSetWantsToSocializeWithPed(prefect, gPlayer, false, 13)
PedSetWantsToSocializeWithPed(prefect, gPlayer, true, 23)
PedSetWantsToSocializeWithPed(Prep1, Prep2)
PedSetWantsToSocializeWithPed(Prep2, Prep1)
PedSetWantsToSocializeWithPed(shared.PedLineupTable[shared.g_currentCreatedPed].handle, gPlayer)
PedSetWantsToSocializeWithPed(Thug, Victim)
PedSetWantsToSocializeWithPed(Victim, Thug)
PedSetWantsToSocializeWithPed(worker1, worker2)
PedSetWantsToSocializeWithPed(worker2, worker1)
push ecx
push ebx
push esi
mov esi, dword ptr [esp+0x10]
push edi
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
push 0x1
push esi
mov edi, eax
call LuaParam::GetInt
add esp, 0xC
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
push 0x0
push 0x2
push esi
mov ebx, eax
call LuaParam::GetBool ; optional
push 0x19
push 0x3
push esi
mov byte ptr [esp+0x2C], al
call LuaParam::GetInt ; optional
add esp, 0x20
push 0x0
push eax
mov eax, dword ptr [esp+0x14]
push eax
push ebx
lea ecx, ptr [edi+0xB44]
call 0x4925E0
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
L_PedExec(enemyteamGroup, PedSetWeapon, "id", 313, 1)
L_PedExec(myteamGroup, PedSetWeapon, "id", 313, 1)
L_PedExec(nil, PedSetWeapon, "id", 303, 99)
L_PedExec(p_wave1, PedSetWeapon, "id", "p_weapon", "ammo")
L_PedExec(p_wave2, PedSetWeapon, "id", "p_weapon", "ammo")
L_PedExec(p_wave3, PedSetWeapon, "id", "p_weapon", "ammo")
L_PedExec(p_wave4, PedSetWeapon, "id", "p_weapon", "ammo")
PedSetWeapon(0, 328, 10000)
PedSetWeapon(0, 328, 30)
PedSetWeapon(c, 329, 999)
PedSetWeapon(char, 377, 1)
PedSetWeapon(edgar, -1, 0)
PedSetWeapon(egger.id, 312, 100)
PedSetWeapon(egger.id, 312, 4)
PedSetWeapon(enemy.id, 303, 1)
PedSetWeapon(EnemyTable[index].handle, EnemyTable[index].weapon, EnemyTable[index].weapcount)
PedSetWeapon(entry.id, 307, 99)
PedSetWeapon(entry.id, entry.cur_weapon, entry.ammo)
PedSetWeapon(gAngryJock01, 331, 1)
PedSetWeapon(gDavis, 303, 6)
PedSetWeapon(gDo07[1], 311, 100)
PedSetWeapon(gDo07[2], 311, 100)
PedSetWeapon(gDo08[1], 311, 100)
PedSetWeapon(gDo08[2], 311, 100)
PedSetWeapon(gEnemies[index].id, gWeaponList[index], 1)
PedSetWeapon(gEnemy01, 331, 1)
PedSetWeapon(gGas, 311, 10)
PedSetWeapon(gGateBully01, 300, 1)
PedSetWeapon(gLuis, 329, 1)
PedSetWeapon(gObserver, 311, 10)
PedSetWeapon(gPed, 321, 10)
PedSetWeapon(gPlayer, 301, 10)
PedSetWeapon(gPlayer, 301, 5)
PedSetWeapon(gPlayer, 306, 100)
PedSetWeapon(gPlayer, 309, 5)
PedSetWeapon(gPlayer, 312, 6)
PedSetWeapon(gPlayer, 349, 5)
PedSetWeapon(gPlayer, 363, 1)
PedSetWeapon(gPlayer, 394, 5)
PedSetWeapon(gPlayer, 397, 1)
PedSetWeapon(gPlayer, 399, 1)
PedSetWeapon(gSidelines[currentPasser.id], 331, 1)
PedSetWeapon(gSidelines[gPasserA.id], 331, 1)
PedSetWeapon(gTed, 400, 1)
PedSetWeapon(gTorch, 311, 10)
PedSetWeapon(guy, 312, 100)
PedSetWeapon(id2ndMan, 300, 1)
PedSetWeapon(idNorton, 324, 1)
PedSetWeapon(idPed, 303, 50)
PedSetWeapon(idPed, 305, 50)
PedSetWeapon(idPed, 307, 30)
PedSetWeapon(idZoe, 412, 1)
PedSetWeapon(lackey1, 300, 1)
PedSetWeapon(lackey1, 301, 5)
PedSetWeapon(lackey1, 302, 1)
PedSetWeapon(lackey1, 303, 999)
PedSetWeapon(lackey2, 299, 1)
PedSetWeapon(lackey2, 300, 1)
PedSetWeapon(lackey2, 303, 999)
PedSetWeapon(outroPedA, 400, 1)
PedSetWeapon(ped, 303, 99)
PedSetWeapon(ped, 312, 100)
PedSetWeapon(ped, 335, 1)
PedSetWeapon(Ped, WChoice, 1)
PedSetWeapon(Ped, WChoice, 10)
PedSetWeapon(Ped, WChoice, 5)
PedSetWeapon(ped1, 331, 1)
PedSetWeapon(ped1, 335, 1)
PedSetWeapon(ped1, 346, 1)
PedSetWeapon(ped1, weapon, 1)
PedSetWeapon(pedAlgie.id, 405, 1)
PedSetWeapon(pedCutBucky.id, 301, 100)
PedSetWeapon(pedCutCornelius.id, 305, 100)
PedSetWeapon(pedCutThad.id, 305, 100)
PedSetWeapon(pedGary.id, 399, 1)
PedSetWeapon(pedGary.id, 411, 1)
PedSetWeapon(pedGreaser01.id, 312, 100)
PedSetWeapon(pedGreaser01.id, 321, 100)
PedSetWeapon(pedGreaser02.id, 301, 100)
PedSetWeapon(pedGreaser04.id, 301, 100)
PedSetWeapon(pedGreaser04.id, 321, 100)
PedSetWeapon(pedGreaserC03.id, 303, 200)
PedSetWeapon(pedId, 303, 100)
PedSetWeapon(pedId, 311, 100)
PedSetWeapon(pedID, RandomTableElement(tblPrepWeapon), 99)
PedSetWeapon(pedNorton.id, 324, 1)
PedSetWeapon(pedStage4JockNearLibrary01.id, 300, 1)
PedSetWeapon(racer.id, racer.weapon, racer.ammo)
PedSetWeapon(scout, 307, 50)
PedSetWeapon(scout2, 307, 50)
PedSetWeapon(shared.gControllerPed, weaponTable[weapon].model, 1)
PedSetWeapon(shared.gControllerPed, weaponTable[weapon].model, 50)
PedSetWeapon(shared.gGary, 411, 1)
PedSetWeapon(student, 348, 1)
PedSetWeapon(tblFirstGrease[5], 303, 100)
PedSetWeapon(tblFirstGrease[6], 303, 100)
PedSetWeapon(tblSecondGrease[2], 303, 100)
PedSetWeapon(tblSecondGrease[3], 303, 100)
PedSetWeapon(tblSecondGrease[4], 303, 100)
PedSetWeapon(tempPed, 301, 100)
PedSetWeapon(tempPed, 312, 100)
PedSetWeapon(TestPed, 312, 100)
PedSetWeapon(TestPed, 312, 10000)
PedSetWeapon(Thug, 405, 1)
push ecx
push ebx
mov ebx, dword ptr [esp+0xC]
push ebp
push esi
push edi
push 0x0
push ebx
call LuaParam::GetInt
add esp, 0x8
test eax, eax
jz 0x18
push ecx
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
mov esi, eax
jmp 0x8
mov esi, dword ptr [0xC1AEA8]
test esi, esi
jz 0x124
push 0x1
push ebx
call LuaParam::GetInt
push ebx
mov ebp, eax
mov byte ptr [esp+0x1C], 0x1
call 0x73AEA0
add esp, 0xC
cmp eax, 0x4
jl 0x11
push 0x3
push ebx
call LuaParam::GetBool
add esp, 0x8
mov byte ptr [esp+0x10], al
cmp ebp, 0xFFFFFFFF
jnz 0x2C
mov eax, dword ptr [esi+0x2E0]
mov dword ptr [eax+0x18], ebp
cmp dword ptr [esi+0x1310], 0xD
jnz 0xDD
mov ecx, dword ptr [0xC674F0]
push ebp
call 0x55C840
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push ebp
call 0x51B450
add esp, 0x4
test eax, eax
jz 0xB8
push ebp
call 0x51B450
mov edi, eax
add esp, 0x4
mov ecx, edi
call 0x7282A0
mov edi, dword ptr [edi+0x84]
push 0x2
push ebx
call LuaParam::GetInt
add esp, 0x8
cmp edi, 0xFFFFFFFF
movzx ebx, ax
jnz 0x6
mov edi, ebp
jmp 0x2A
cmp edi, ebp
jz 0x26
mov ecx, dword ptr [esi+0x1C4]
push ebp
call 0x45CF40
test eax, eax
jnz 0x16
mov ecx, dword ptr [esp+0x10]
push eax
push ecx
mov ecx, dword ptr [esi+0x1C4]
push 0x1
push ebp
call 0x45D030
mov ecx, dword ptr [esi+0x1C4]
push edi
call 0x45CF40
mov ecx, dword ptr [esi+0x1C4]
push eax
push edi
call 0x45D0C0
cmp byte ptr [esp+0x10], 0x0
jz 0xA
cmp edi, ebp
jnz 0x6
mov al, 0x1
jmp 0x4
xor al, al
mov ecx, dword ptr [esi+0x1C4]
push 0x0
movzx edx, bx
push eax
push edx
push edi
call 0x45D030
mov eax, dword ptr [esi+0x2E0]
mov dword ptr [eax+0x18], ebp
cmp dword ptr [esi+0x1310], 0xD
jnz 0xE
mov ecx, dword ptr [0xC674F0]
push ebp
call 0x55C840
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
PedSetWeaponFlag(student, weapon, 0, true)
push ebx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetInt
add esp, 0xC
mov ebx, eax
mov eax, esp
push edi
mov dword ptr [eax], 0x2
call 0x5C7380
mov edi, eax
add esp, 0x8
test edi, edi
jz 0x38
mov eax, dword ptr [edi+0x1D0]
movsx ecx, word ptr [eax+0x10E]
cmp ecx, ebx
jnz 0x27
push 0x2
push esi
call LuaParam::GetInt
push 0x3
push esi
mov ebx, eax
call LuaParam::GetBool
movzx edx, al
mov eax, dword ptr [edi+0x1D0]
add esp, 0x10
mov dword ptr [eax+ebx*4+0x26C], edx
pop edi
pop esi
xor eax, eax
pop ebx
ret
L_PedExec(nil, PedSetWeaponNow, "id", 303, 1)
PedSetWeaponNow(0, -1, 0)
PedSetWeaponNow(0, 328, 10000)
PedSetWeaponNow(char, 327, 1)
PedSetWeaponNow(edgar, -1, 0)
PedSetWeaponNow(gBaddie.id, gBaddie.weapon, 1)
PedSetWeaponNow(gBaddie02.id, gBaddie02.weapon, 1)
PedSetWeaponNow(gBaddie03.id, gBaddie03.weapon, 1)
PedSetWeaponNow(gBaddie04.id, gBaddie04.weapon, 1)
PedSetWeaponNow(gBaddie05.id, gBaddie05.weapon, 1)
PedSetWeaponNow(gBaddie06.id, gBaddie06.weapon, 1)
PedSetWeaponNow(gBully, 363, 1, false)
PedSetWeaponNow(gJV_OnBike, 418, 1)
PedSetWeaponNow(gPlayer, -1, 0)
PedSetWeaponNow(gPlayer, -1, 0, false)
PedSetWeaponNow(gPlayer, -1, 1)
PedSetWeaponNow(gPlayer, 300, 0)
PedSetWeaponNow(gPlayer, 300, 1)
PedSetWeaponNow(gPlayer, 300, 1, false)
PedSetWeaponNow(gPlayer, 303, 1, false)
PedSetWeaponNow(gPlayer, 306, 1)
PedSetWeaponNow(gPlayer, 306, 1, false)
PedSetWeaponNow(gPlayer, 320, gMaxPapers)
PedSetWeaponNow(gPlayer, 326, 100, false)
PedSetWeaponNow(gPlayer, 328, 1)
PedSetWeaponNow(gPlayer, 328, 1, false)
PedSetWeaponNow(gPlayer, 391, 25, false)
PedSetWeaponNow(gPlayer, 426, 1)
PedSetWeaponNow(gPlayer, 426, 1, false)
PedSetWeaponNow(gPlayer, 437, -1, false)
PedSetWeaponNow(gPlayer, gPlayersPreviousWeapon, PedGetAmmoCount(gPlayer, gPlayersPreviousWeapon))
PedSetWeaponNow(gPlayer, MODELENUM._NOWEAPON, 0)
PedSetWeaponNow(gPlayer, MODELENUM._NOWEAPON, 1)
PedSetWeaponNow(gPlayer, player.weapon.model, 0)
PedSetWeaponNow(gTed, -1, 0)
PedSetWeaponNow(nerd.id, nerd.p_weapon, nerd.ammo, false)
PedSetWeaponNow(outroPedA, -1, 0)
PedSetWeaponNow(outroPedB, -1, 0)
PedSetWeaponNow(ped, -1, 0)
PedSetWeaponNow(ped, 381, 1)
PedSetWeaponNow(Ped, WChoice, 1)
PedSetWeaponNow(ped.id, 301, 10, false)
PedSetWeaponNow(ped.id, ped.weapon.model, ped.weapon.ammo or 0)
PedSetWeaponNow(pedBryce, 312, 100)
PedSetWeaponNow(pedCutBucky.id, 305, 100)
PedSetWeaponNow(pedCutCornelius.id, 301, 100)
PedSetWeaponNow(pedCutThad.id, 301, 100)
PedSetWeaponNow(pedEarnest.id, 305, 100)
PedSetWeaponNow(pedEarnest.id, 305, 20)
PedSetWeaponNow(pedEarnest.id, 417, 8)
PedSetWeaponNow(pedGary.id, 411, 1)
PedSetWeaponNow(pedGord, 385, 1)
PedSetWeaponNow(pedKlepto.id, 301, 20)
PedSetWeaponNow(pedPinky.id, 363, 1)
PedSetWeaponNow(Players[0].Player, MODELENUM._NOWEAPON, 0)
PedSetWeaponNow(Players[1].Player, MODELENUM._NOWEAPON, 0)
PedSetWeaponNow(ScenarioPed, 299, 1)
PedSetWeaponNow(shared.gGary, 411, 1, false)
PedSetWeaponNow(tbl.id, tbl.weapon.model, tbl.weapon.ammo, false)
PedSetWeaponNow(tblChasers[1].id, 312, 12, false)
PedSetWeaponNow(tblChasers[2].id, 312, 12, false)
PedSetWeaponNow(tblGord.id, tblGord.weapon.model, tblGord.weapon.ammo, false)
push ebx
push ebp
push esi
push edi
mov edi, dword ptr [esp+0x14]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x8
test eax, eax
jz 0x18
push ecx
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
mov esi, eax
jmp 0x8
mov esi, dword ptr [0xC1AEA8]
test esi, esi
jnz 0x9
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
mov dword ptr [esi+0x1388], 0x1
call 0x5C94F0
push 0x0
push 0x928AA4
mov ebp, eax
call 0x5F5B10
mov edi, eax
mov eax, dword ptr [esi]
mov edx, dword ptr [eax+0x40]
mov ebx, dword ptr [edi]
add esp, 0xC
mov ecx, esi
call 0x5C96CC
push eax
mov eax, dword ptr [ebx+0x4C]
mov ecx, edi
call 0x5C96D4
test eax, eax
jnz 0x9
mov ecx, edi
call 0x5F5120
mov ecx, dword ptr [esi+0x2E0]
push eax
add ecx, 0x258
call 0x5F45F0
fld st, dword ptr [0x90CF18]
push ecx
mov ecx, dword ptr [esi+0x2E0]
fstp dword ptr [esp], st
add ecx, 0x258
call 0x5F4B00
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret
PedSetWorldAnchor(pedID, chairTable[i].x, chairTable[i].y, chairTable[i].z, chairTable[i].r)
PedSetWorldAnchor(pedID, ped.x, ped.y, ped.z, 0)
sub esp, 0x1C
push esi
mov esi, dword ptr [esp+0x24]
push edi
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
jz 0x7A
mov ecx, eax
call 0x4734D0
push 0x1
push esi
mov edi, eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x10], st
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x1C], st
push 0x3
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x28], st
fld st, dword ptr [esp+0x20]
add esp, 0x18
fstp dword ptr [esp+0x14], st
lea eax, ptr [esp+0x14]
fld st, dword ptr [esp+0xC]
push eax
fstp dword ptr [esp+0x1C], st
mov ecx, edi
fld st, dword ptr [esp+0x14]
fstp dword ptr [esp+0x20], st
call 0x4127C0
push 0x4
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x18], st
fld st, dword ptr [esp+0x18]
add esp, 0x4
mov ecx, edi
fstp dword ptr [esp], st
call 0x412C20
mov ecx, edi
call 0x413A70
pop edi
xor eax, eax
pop esi
add esp, 0x1C
ret
PedShowHealthBar(boxer, true, opponents[shared.gBoxingOpponent].name, true)
PedShowHealthBar(Earnest, true, "N_Earnest", false)
PedShowHealthBar(edgar, true, "5_B_01", true)
PedShowHealthBar(edna, true, "N_Edna", false)
PedShowHealthBar(frMidget01, true, "N_Lightning", true)
PedShowHealthBar(frMidget02, true, "N_Zeke", true)
PedShowHealthBar(gDavis, true, "1_03_D12", true)
PedShowHealthBar(gGary, true, "1_06_GARY", false, gPete, "1_06_PETE")
PedShowHealthBar(gGary, true, "1_10_NEMESIS")
PedShowHealthBar(gGary, true, "6_B_GARY", true)
PedShowHealthBar(gJohnny, true, "5_03_025", false)
PedShowHealthBar(gJV_OnBike, true, "3_B_JOHNNY_HEALTH", true)
PedShowHealthBar(gNerds[1].id, true, "4_04_THAD", false, gNerds[2].id, "4_04_FATTY")
PedShowHealthBar(gNerds[2].id, true, "4_04_FATTY", false)
PedShowHealthBar(gNerds[2].id, true, "4_04_THAD", false)
PedShowHealthBar(gRussell, true, "6_02_RUSSELL", false)
PedShowHealthBar(gRussell, true, "6_03_RUSSELL", false)
PedShowHealthBar(gTargetBoy, true, "N_CONSTANTINOS", true)
PedShowHealthBar(gTed, true, "4_B2_01", true)
PedShowHealthBar(idBucky, true, "1_07_12", false)
PedShowHealthBar(idDarby, true, "2_B_10", true)
PedShowHealthBar(idNemesis, true, "N_GARY")
PedShowHealthBar(idNorton, true, "3_05_BOSSNAME", true)
PedShowHealthBar(idPeter, false)
PedShowHealthBar(idPeter, true, "2_04_PETER", false)
PedShowHealthBar(idZoe, true, "5_07A_36", false)
PedShowHealthBar(ped.id, ped.showHealth)
PedShowHealthBar(pedAlgie.id, true, "1_05_HEALTHBAR", false)
PedShowHealthBar(pedAlgie.id, true, "3_04_HEALTH_ALGIE", false)
PedShowHealthBar(pedCornelius.id, true, "3_04_HEALTH_CORN", false)
PedShowHealthBar(pedGary.id, true, "1_02B_GARYHEALTH", false)
PedShowHealthBar(pedGary.id, true, "1_11X2_GHEALTH", false)
PedShowHealthBar(pedKlepto.id, true, "2_02_KLEPTONAME")
PedShowHealthBar(pedMascot.id, true, "4_05_HEALTHBAR", true)
PedShowHealthBar(pedPinky.id, true, "N_Pinky", false)
PedShowHealthBar(pedTad.id, true, "3_03_HEALTHBAR", false)
PedShowHealthBar(racer.id, false)
PedShowHealthBar(russell, true, "1_B_BAR_RUSSELL", true)
PedShowHealthBar(shared.gGary, true, "1_HALLOWEEN_GARY", false, shared.gPetey, "1_HALLOWEEN_PETE")
push ebx
push ebp
push esi
push edi
mov edi, dword ptr [esp+0x14]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
push edi
mov ebx, eax
xor ebp, ebp
call 0x73AEA0
add esp, 0xC
cmp eax, 0x5
jl 0x20
push 0x4
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
mov ebp, eax
test ebx, ebx
jz 0xE1
mov esi, 0x1
push esi
push edi
call LuaParam::GetBool
add esp, 0x8
test al, al
jz 0xBA
mov dword ptr [ebx+0x135C], 0x0
mov esi, dword ptr [0xC674D0]
push ebp
push ebx
mov ecx, esi
call 0x5537E0
mov eax, dword ptr [esi]
mov edx, dword ptr [eax+0x14]
push 0x1
mov ecx, esi
call 0x5CA7C4
push edi
call 0x73AEA0
add esp, 0x4
cmp eax, 0x3
jl 0x10
push 0x2
push edi
call LuaParam::GetString
add esp, 0x8
push eax
jmp 0x4
push 0x0
mov ecx, esi
call 0x5514D0
push edi
call 0x73AEA0
add esp, 0x4
cmp eax, 0x4
jl 0x19
push 0x3
push edi
call LuaParam::GetBool
add esp, 0x8
test al, al
mov byte ptr [esi+0xBA], al
jnz 0x12
jmp 0x9
mov byte ptr [esi+0xBA], 0x0
mov byte ptr [esi+0xBB], 0x0
push edi
call 0x73AEA0
add esp, 0x4
cmp eax, 0x6
jl 0x1C
push 0x5
push edi
call LuaParam::GetString
add esp, 0x8
push eax
mov ecx, esi
call 0x551500
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push 0x0
mov ecx, esi
call 0x551500
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
PedShowHealthBarInFPmode(false)
PedShowHealthBarInFPmode(true)
mov eax, dword ptr [esp+0x4]
push esi
mov esi, dword ptr [0xC674D0]
push 0x0
push eax
call LuaParam::GetBool
add esp, 0x8
mov byte ptr [esi+0xBC], al
xor eax, eax
pop esi
ret
PedSocialKeepAlive(insultBoy)
PedSocialKeepAlive(kissGirl)
PedSocialKeepAlive(pedEunice.id)
PedSocialKeepAlive(pedRussell.id)
PedSocialKeepAlive(prefect)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x4
mov edx, eax
neg edx
sbb edx, edx
mov ecx, esp
add edx, 0x3
push eax
mov dword ptr [ecx], edx
call 0x5C7380
mov ecx, dword ptr [0xC1A9B4]
mov dword ptr [eax+0xC38], ecx
add esp, 0x8
xor eax, eax
ret
PedSocialOverrideLoad(0, "Mission/1_01_AngryShove.act")
PedSocialOverrideLoad(0, "Mission/1_02Aggro.act")
PedSocialOverrideLoad(1, "Mission/1_02Aggro.act")
PedSocialOverrideLoad(1, "Mission/1_02BGreeting.act")
PedSocialOverrideLoad(11, "Mission/1_02BGreeting.act")
PedSocialOverrideLoad(13, "Mission/1_02BGreeting.act")
PedSocialOverrideLoad(14, "Mission/1_02BGreeting.act")
PedSocialOverrideLoad(15, "Mission/2_06Praise.act")
PedSocialOverrideLoad(18, "Mission/" .. (missionCode and missionCode .. "AskAboutGift.act" or "AskAboutGift.act"))
PedSocialOverrideLoad(18, "Mission/1_02BGreeting.act")
PedSocialOverrideLoad(18, "Mission/1_08Greeting.act")
PedSocialOverrideLoad(18, "Mission/2_06Greeting.act")
PedSocialOverrideLoad(18, "Mission/4_02_Greeting.act")
PedSocialOverrideLoad(18, "Mission/4_06Greeting.act")
PedSocialOverrideLoad(18, "Mission/5_03_Greeting.act")
PedSocialOverrideLoad(19, "Mission/1_02BFlee.act")
PedSocialOverrideLoad(19, "Mission/2_06Flee.act")
PedSocialOverrideLoad(23, "Mission/1_02BGreeting.act")
PedSocialOverrideLoad(24, "Mission/" .. (missionCode and missionCode .. "RequestGift.act" or "RequestGift.act"))
PedSocialOverrideLoad(24, "Mission/1_02BWantGift.act")
PedSocialOverrideLoad(24, "Mission/1_08WantGift.act")
PedSocialOverrideLoad(24, "Mission/1_G1WantGift.act")
PedSocialOverrideLoad(24, "Mission/2_06WantGift.act")
PedSocialOverrideLoad(24, "Mission/2_S05WantGift.act")
PedSocialOverrideLoad(3, "Mission/1_02BGreeting.act")
PedSocialOverrideLoad(4, "Mission/" .. (missionCode and missionCode .. "ReceiveGift.act" or "ReceiveGift.act"))
PedSocialOverrideLoad(4, "Mission/1_02BFollow.act")
PedSocialOverrideLoad(4, "Mission/1_08Follow.act")
PedSocialOverrideLoad(4, "Mission/1_G1Follow.act")
PedSocialOverrideLoad(4, "Mission/2_06Follow.act")
PedSocialOverrideLoad(4, "Mission/2_G2Follow.act")
PedSocialOverrideLoad(4, "Mission/2_S05Follow.act")
PedSocialOverrideLoad(4, "Mission/2_S06Follow.act")
PedSocialOverrideLoad(4, "Mission/4_01Follow.act")
PedSocialOverrideLoad(6, "Mission/1_01_AngryShove.act")
PedSocialOverrideLoad(6, "Mission/1_02Aggro.act")
PedSocialOverrideLoad(7, "Mission/1_02BGreeting.act")
PedSocialOverrideLoad(7, "Mission/4_02_Taunt.act")
sub esp, 0x100
push ebx
push esi
mov esi, dword ptr [esp+0x10C]
push 0x0
push esi
call LuaParam::GetInt
push 0xFD
mov ebx, eax
lea eax, ptr [esp+0x16]
push 0x0
push eax
mov word ptr [esp+0x1C], 0x0
call 0x85B3B0
push 0x1
push esi
call LuaParam::GetString
add esp, 0x1C
cmp byte ptr [eax], 0x0
jz 0x1F
push 0x1
push esi
call LuaParam::GetString
add esp, 0x8
lea edx, ptr [esp+0x8]
mov cl, byte ptr [eax]
mov byte ptr [edx], cl
add eax, 0x1
add edx, 0x1
test cl, cl
jnz 0xFFFFFFF4
mov ecx, ebx
shl ecx, 0x6
add ecx, 0x90FC50
push 0x0
push ecx
call 0x5F5B10
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x46
push edi
mov edi, dword ptr [esi]
add edi, 0x4
call 0x5C6190
mov edx, dword ptr [edi]
mov ecx, esi
push eax
call 0x5C6C0C
test al, al
pop edi
jz 0x2F
mov ecx, esi
call 0x5F6670
lea eax, ptr [esp+0x8]
push eax
mov ecx, esi
call 0x5F56B0
mov ecx, esi
call 0x5F6CE0
push esi
push ebx
mov ecx, 0xD02850
call 0x5DB940
mov ecx, eax
call 0x5D9290
pop esi
xor eax, eax
pop ebx
add esp, 0x100
ret
-- never used
sub esp, 0x1C
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x2C]
push edi
push 0xFFFFFFFF
push 0x0
push esi
call LuaParam::GetInt ; optional
push 0x0
push 0x1
push esi
mov edi, eax
call LuaParam::GetInt ; optional
push 0x1
push 0x2
push esi
mov ebx, eax
call LuaParam::GetInt ; optional
mov ecx, dword ptr [0xBCC568]
mov edx, dword ptr [0xBCC56C]
mov ebp, eax
mov eax, dword ptr [0xBCC564]
push 0xBCC564
push 0x3
mov dword ptr [esp+0x40], eax
lea eax, ptr [esp+0x4C]
push esi
push eax
mov dword ptr [esp+0x4C], ecx
mov dword ptr [esp+0x50], edx
call LuaParam::GetVector ; optional
fldz
add esp, 0x2C
fst dword ptr [esp+0x4], st
fstp dword ptr [esp], st
lea ecx, ptr [esp+0x18]
push ecx
mov ecx, dword ptr [0xC2C108]
push 0x1
lea edx, ptr [esp+0x24]
push edx
lea eax, ptr [esp+0x34]
push eax
mov dword ptr [esp+0x28], 0x0
call 0x49D860
test al, al
jnz 0x6
push 0xFFFFFFFF
jmp 0x3E
mov ecx, dword ptr [0xC2C108]
push ebp
push ebx
push edi
call 0x49C230
cmp eax, 0xFFFFFFFF
jz 0xFFFFFFEB
mov ecx, dword ptr [esp+0x10]
push ecx
mov ecx, dword ptr [0xC2C108]
push 0x1
lea edx, ptr [esp+0x1C]
push edx
push eax
call 0x49F6C0
test eax, eax
jz 0xFFFFFFCF
mov edx, dword ptr [eax]
mov ecx, eax
mov eax, dword ptr [edx+0xAC]
call 0x5C72C1
push eax
push esi
call LuaParam::PushInt
add esp, 0x8
pop edi
pop esi
pop ebp
mov eax, 0x1
pop ebx
add esp, 0x1C
ret
CLIENT
Sets a ped's model number without actually changing their model.
PedStartConversation("/Global/1_08/NIS_1_08_1/ConvInitiate", "Act/Conv/1_08.act", gPlayer, gGary)
PedStartConversation("/Global/1_08/OpenCut/1_08_Nerdo", "Act/Conv/1_08.act", gPlayer, gFatty)
PedStartConversation("/Global/1_08/OpenCut/1_08_NerdoNoCake", "Act/Conv/1_08.act", gPlayer, gFatty)
PedStartConversation("/Global/1_08/OpenCut/1_08_NerdoYesCake", "Act/Conv/1_08.act", gPlayer, gFatty)
PedStartConversation("/Global/1_08/PatrolDialogue", "Act/Conv/1_08.act", gLackey[20].ped, gLackey[21].ped)
PedStartConversation("/Global/PriOff/PrincipalDialogue", "Act/Conv/PriOff.act", gPlayer, principal)
PedStartConversation("/Global/TestConv_2Ped", "Act/Conv/TestConv_2Ped.act", gPlayer, tblPed1.id)
PedStartConversation("R04Conv", "Act\\Conv\\2_R04.act", gPlayer, idFireman)
PedStartConversation(actionNode, actionFile, gPlayer, pedFocus)
PedStartConversation(conv, "Act/Conv/2_S04.act", ped1, ped2)
PedStartConversation(gConversationNode, gConversation, gPlayer, gClerk)
sub esp, 0x8
push ebx
mov ebx, dword ptr [esp+0x10]
push ebp
push esi
push edi
push 0x0
push ebx
call LuaParam::GetString
push 0x1
push ebx
mov dword ptr [esp+0x20], eax
call LuaParam::GetString
add esp, 0x10
mov ecx, 0xB9DAB8
mov dword ptr [esp+0x14], eax
call 0x683EC0
push ebx
mov ebp, 0x2
call 0x73AEA0
add esp, 0x4
cmp eax, ebp
jle 0x91
push ebp
push ebx
call LuaParam::GetInt
mov edi, eax
add esp, 0x8
neg eax
sbb eax, eax
add eax, 0x3
cmp edi, 0xFFFFFFFF
jz 0xA8
cmp eax, 0x3
jnz 0xA
mov esi, dword ptr [0xC1AEA8]
jmp 0x41
push edi
call 0x46DF10
add esp, 0x4
cmp eax, 0x18
jnl 0x89
mov ecx, dword ptr [0xC0F5F0]
mov edx, dword ptr [ecx+0x4]
test byte ptr [eax+edx*1], 0x80
jz 0x6
xor esi, esi
jmp 0x1C
mov esi, dword ptr [ecx+0xC]
imul esi, eax
add esi, dword ptr [ecx]
jz 0x12
mov eax, dword ptr [esi]
mov edx, dword ptr [eax+0xAC]
mov ecx, esi
call 0x5CA3BA
cmp eax, edi
jnz 0x58
test esi, esi
jz 0x54
push esi
mov ecx, 0xB9DAB8
call 0x683ED0
push ebx
add ebp, 0x1
call 0x73AEA0
add esp, 0x4
cmp ebp, eax
jl 0xFFFFFF7B
mov eax, dword ptr [esp+0x10]
mov ecx, dword ptr [esp+0x14]
push eax
push ecx
mov ecx, 0xB9DAB8
call 0x685C50
mov byte ptr [esp+0x14], al
mov edx, dword ptr [esp+0x14]
push edx
push ebx
call LuaParam::PushBool
add esp, 0x8
pop edi
pop esi
pop ebp
mov eax, 0x1
pop ebx
add esp, 0x8
ret
PedStop(a)
PedStop(algie)
PedStop(aliveGreaser01)
PedStop(attacker.id)
PedStop(beatrice)
PedStop(bioTeacher)
PedStop(bJockBoss)
PedStop(bNerdBoss)
PedStop(boxer)
PedStop(bum)
PedStop(Bum)
PedStop(buster)
PedStop(chemTeach)
PedStop(client.id)
PedStop(clint)
PedStop(CoachBurton.id)
PedStop(Crazy01)
PedStop(Crazy02)
PedStop(currentPed.id)
PedStop(dude)
PedStop(Earnest)
PedStop(edgar)
PedStop(Edna)
PedStop(egger.id)
PedStop(enemy02.id)
PedStop(EnemyTable[i].handle)
PedStop(Entry.id)
PedStop(frMidget01)
PedStop(frMidget02)
PedStop(galloway)
PedStop(GateNerd.id)
PedStop(gBlockAOrderly01)
PedStop(gBlockAOrderly02)
PedStop(gBucky)
PedStop(gCannonNerd)
PedStop(gChad)
PedStop(gChaseCarDriver)
PedStop(gCop1)
PedStop(gCop2)
PedStop(gCops[1])
PedStop(gCops[3])
PedStop(gCrazy01)
PedStop(gCrazy02)
PedStop(gCrazy03)
PedStop(gCrazy04)
PedStop(gCSBully)
PedStop(gDavis)
PedStop(gDefenders[1])
PedStop(gDOThug01)
PedStop(gDOThug02)
PedStop(gDOThug03)
PedStop(gDuncan)
PedStop(gEdgar)
PedStop(gEnemy01)
PedStop(gEnemy02)
PedStop(gEnemy03)
PedStop(gFenwick)
PedStop(gGalloway)
PedStop(gGary)
PedStop(gGord)
PedStop(gHealthNerd)
PedStop(gHobo)
PedStop(gInOrderly02)
PedStop(gJogger)
PedStop(gJohnny)
PedStop(gJohnnyV)
PedStop(gJV_OnBike)
PedStop(gJV_OnGround)
PedStop(gLackey[10].ped)
PedStop(gLackey[8].ped)
PedStop(gLeon)
PedStop(gLuis)
PedStop(gMandy)
PedStop(gMelvin)
PedStop(gNerd03)
PedStop(gord)
PedStop(gPeanut)
PedStop(gPed)
PedStop(gPeter)
PedStop(gPlayer)
PedStop(gPrefect)
PedStop(gPrefect1)
PedStop(gPrefect2)
PedStop(greaser1)
PedStop(greaser2)
PedStop(gRussell)
PedStop(gRussell.id)
PedStop(gSecretary)
PedStop(gSpawned01)
PedStop(gSpawned02)
PedStop(gSpawned03)
PedStop(gSpawned04)
PedStop(gSpawned05)
PedStop(gSpawned06)
PedStop(gTablePeds[1].id)
PedStop(gTablePeds[2].id)
PedStop(gTablePeds[3].id)
PedStop(gTablePeds[gCurrentJock].id)
PedStop(gTad)
PedStop(gTargetBoy)
PedStop(gTed)
PedStop(guy)
PedStop(gZoe)
PedStop(hattrick)
PedStop(id)
PedStop(idBucky)
PedStop(idBurton)
PedStop(idDarby)
PedStop(idDO)
PedStop(idEunice.id)
PedStop(idFireman)
PedStop(idGetOffBike)
PedStop(idGord.id)
PedStop(idLola)
PedStop(idLola.id)
PedStop(idNemesis)
PedStop(idNorton)
PedStop(idOmar)
PedStop(idPed)
PedStop(idPeter)
PedStop(idRussell)
PedStop(idZoe)
PedStop(iGreaser01)
PedStop(iGreaser02)
PedStop(iGreaser03)
PedStop(insultBoy)
PedStop(item.kid)
PedStop(item.parent)
PedStop(item.ped)
PedStop(johnny)
PedStop(lackey1)
PedStop(lackey2)
PedStop(librarian)
PedStop(lola)
PedStop(mandy)
PedStop(Mascot)
PedStop(musicTeach)
PedStop(Objectives[2].id)
PedStop(opponent)
PedStop(outroPedA)
PedStop(outroPedB)
PedStop(ped)
PedStop(ped.id)
PedStop(ped1)
PedStop(pedAlgie.id)
PedStop(pedBeatrice.id)
PedStop(pedBryce)
PedStop(pedBurtonStage3.id)
PedStop(pedChad)
PedStop(pedChad.id)
PedStop(pedConstantine.id)
PedStop(pedCutBo.id)
PedStop(pedCutCasey.id)
PedStop(pedCutJuri.id)
PedStop(pedDog.id)
PedStop(pedEarnest.id)
PedStop(pedEunice.id)
PedStop(pedFirstBully.id)
PedStop(pedFocus)
PedStop(pedGary.id)
PedStop(pedGord)
PedStop(pedGreaser03.id)
PedStop(pedGreaser04.id)
PedStop(pedHeadmistress)
PedStop(pedID)
PedStop(pedId)
PedStop(pedid)
PedStop(pedJockBathroomFirstFloor01.id)
PedStop(pedJockBathroomFirstFloor02.id)
PedStop(pedJockPack_01.id)
PedStop(pedKlepto.id)
PedStop(pedMascot.id)
PedStop(pedParker)
PedStop(pedPete.id)
PedStop(pedPinky.id)
PedStop(pedPrefectKarl.id)
PedStop(pedPrep.id)
PedStop(pedRussell.id)
PedStop(pedStoreOwner.id)
PedStop(pedZoe.id)
PedStop(pGord)
PedStop(phillips)
PedStop(Players[i].Player)
PedStop(prefect)
PedStop(pTable.pedId)
PedStop(racer.id)
PedStop(referee)
PedStop(rider)
PedStop(santa)
PedStop(ScenarioPed)
PedStop(shared.gdormHeadID)
PedStop(shared.vendettaClerk)
PedStop(sheet1Bruiser)
PedStop(sheet1Guard)
PedStop(sheet4Guard)
PedStop(shopTeach)
PedStop(student)
PedStop(sweater_guard)
PedStop(tableBikerPeds[i])
PedStop(tableBikerPeds[tableMarkForDelete[i]])
PedStop(tableEntry.id)
PedStop(tableExtraJocks[i])
PedStop(tblEntry.id)
PedStop(tblFamilyList[i].kid)
PedStop(tblFamilyList[i].parent)
PedStop(tblGuardPaths[4].id)
PedStop(tblLineupList[i])
PedStop(tblPrank[8].id)
PedStop(tblTad.id)
PedStop(tdo)
PedStop(tDO)
PedStop(teacher)
PedStop(testPed[1].id)
PedStop(tSecondFloorTable.justin.id)
PedStop(tSecondFloorTable.tad.id)
{ name = "PedStop", exec = F_PedStop },
mov eax, dword ptr [esp+0x4]
push esi
push edi
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x4D
mov ecx, dword ptr [esi+0x2E0]
add ecx, 0x290
call 0x5F40A0
lea edi, ptr [esi+0x5F0]
mov ecx, edi
call 0x470350
push 0x10
call 0x5EEAA0
add esp, 0x4
test eax, eax
jz 0x17
push esi
mov ecx, eax
call 0x46FC60
push eax
mov ecx, edi
call 0x470300
xor eax, eax
pop edi
pop esi
ret
xor eax, eax
push eax
mov ecx, edi
call 0x470300
pop edi
xor eax, eax
pop esi
ret
L_PedExec(group1, PedStopSocializing, "id")
PedStopSocializing(gControlOrderly)
PedStopSocializing(gFatty)
PedStopSocializing(gHobo)
PedStopSocializing(gOrderly01)
PedStopSocializing(gOrderly02)
PedStopSocializing(gPlayer)
PedStopSocializing(idBucky)
PedStopSocializing(idEunice.id)
PedStopSocializing(idGord.id)
PedStopSocializing(idLola.id)
PedStopSocializing(insultBoy)
PedStopSocializing(johnny)
PedStopSocializing(Objectives[1].id)
PedStopSocializing(Objectives[2].id)
PedStopSocializing(Objectives[3].id)
PedStopSocializing(Objectives[4].id)
PedStopSocializing(Objectives[5].id)
PedStopSocializing(pedConstantine.id)
PedStopSocializing(pedEunice.id)
PedStopSocializing(pedID)
PedStopSocializing(pedRussell.id)
PedStopSocializing(phillips)
PedStopSocializing(shared.gBif)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
lea ecx, ptr [eax+0xB44]
call 0x4910A0
xor eax, eax
ret
PedSwapModel(boxer, opponents[boxerIndex].model2n)
PedSwapModel(boxer, opponents[boxerIndex].model3n)
sub esp, 0x104
push esi
mov esi, dword ptr [esp+0x10C]
push edi
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov edi, eax
add esp, 0x8
test edi, edi
jz 0x53
push 0x1
push esi
call LuaParam::GetString
add esp, 0x8
lea edx, ptr [esp+0xC]
mov cl, byte ptr [eax]
mov byte ptr [edx], cl
add eax, 0x1
add edx, 0x1
test cl, cl
jnz 0xFFFFFFF4
lea eax, ptr [esp+0x8]
push eax
lea ecx, ptr [esp+0x10]
push ecx
mov dword ptr [esp+0x10], 0xFFFFFFFF
call 0x51C190
mov edx, dword ptr [edi]
mov eax, dword ptr [esp+0x10]
mov edx, dword ptr [edx+0x20]
add esp, 0x8
push 0x0
push eax
mov ecx, edi
call 0x5C9C48
mov dword ptr [edi+0x13E8], 0x0
pop edi
xor eax, eax
pop esi
add esp, 0x104
ret
PedTargetPAnim(gPlayer, -1)
PedTargetPAnim(gPlayer, ride)
PedTargetPAnim(prop.ped, prop.id)
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, dword ptr [esp+0x2C]
xor ebp, ebp
push ebp
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
cmp esi, ebp
mov dword ptr [esp+0x14], esi
jz 0x124
push 0x1
push edi
call LuaParam::GetInt
add esp, 0x8
cmp eax, ebp
jnz 0x33
push ebp
mov ecx, esi
call 0x498B10
mov eax, dword ptr [esi+0x438]
add esi, 0x438
cmp eax, ebp
jz 0xE
push esi
push eax
call 0x4657E0
add esp, 0x8
mov dword ptr [esi], ebp
mov dword ptr [esi+0x4], ebp
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
PedTargetVehicle(curPed, vehicle)
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x20]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetInt
push 0x2
push esi
mov ebp, eax
call LuaParam::IsInt
add esp, 0x18
test al, al
jz 0x11
push 0x2
push esi
call LuaParam::GetInt
add esp, 0x8
mov ebx, eax
jmp 0x26
push 0x1
push 0x2
push esi
call LuaParam::GetBool ; optional
mov byte ptr [esp+0x1C], al
mov eax, dword ptr [esp+0x1C]
push eax
lea ecx, ptr [esp+0x20]
push 0x1
push ecx
call 0x496AF0
mov ebx, dword ptr [eax]
add esp, 0x18
push ecx
mov eax, esp
push edi
mov dword ptr [eax], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x42
cmp ebp, 0xFFFFFFFF
jnz 0x6
push 0x0
jmp 0x2E
push ebp
call 0x44A580
mov edi, eax
add esp, 0x4
test edi, edi
jz 0x2A
fldz
lea edx, ptr [esp+0x14]
push edx
fst dword ptr [esp+0x18], st
push ebx
fst dword ptr [esp+0x20], st
push edi
fstp dword ptr [esp+0x28], st
mov ecx, esi
call 0x497E70
push edi
mov ecx, dword ptr [esi+0x1C8]
call 0x4D79E0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
PedUseProp(ped, TRIGGER._NLOCK01A, true)
push ecx
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x14]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetUserData
push 0x0
push 0x2
push esi
mov ebp, eax
call LuaParam::GetBool ; optional
add esp, 0x18
mov bl, al
mov eax, esp
push edi
mov dword ptr [eax], 0x2
call 0x5C7380
add esp, 0x8
test bl, bl
mov edi, eax
mov dword ptr [esp+0x10], edi
jz 0x3C
push ebp
mov ecx, 0x20C7E98
call 0x6D79C0
cmp eax, 0xFFFFFFFF
jz 0xB4
mov edx, dword ptr [0x20C7C48]
mov ecx, dword ptr [edx+0x4]
test byte ptr [eax+ecx*1], 0x80
jnz 0xA1
mov ecx, dword ptr [edx+0xC]
imul ecx, eax
add ecx, dword ptr [edx]
jz 0x93
mov esi, dword ptr [ecx+0x1C]
jmp 0x4D
mov esi, dword ptr [0xC0F614]
mov ebx, dword ptr [esi+0x8]
xor edx, edx
test ebx, ebx
jle 0x7B
mov edi, dword ptr [esi+0x4]
test byte ptr [edi+edx*1], 0x80
jnz 0x20
mov ecx, edx
sar ecx, 0x8
cmp byte ptr [edi+ecx*1], dl
jnz 0xC
mov eax, dword ptr [esi+0xC]
imul eax, ecx
add eax, dword ptr [esi]
jmp 0x4
xor eax, eax
cmp dword ptr [eax+0x228], ebp
jz 0x11
add edx, 0x1
cmp edx, ebx
jl 0xFFFFFFD7
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
PedUseSocialOverride(beatrice, 4)
PedUseSocialOverride(charID, 18)
PedUseSocialOverride(clint, 4)
PedUseSocialOverride(gControlOrderly, 18, true)
PedUseSocialOverride(gFatty, 18)
PedUseSocialOverride(gFatty, 18, false)
PedUseSocialOverride(gFatty, 18, true)
PedUseSocialOverride(gFatty, 24)
PedUseSocialOverride(gFatty, 24, false)
PedUseSocialOverride(gFatty, 4)
PedUseSocialOverride(gFatty, 4, false)
PedUseSocialOverride(gFatty, 7, true)
PedUseSocialOverride(gThad, 18, true)
PedUseSocialOverride(gThad, 7, true)
PedUseSocialOverride(idEunice.id, 18)
PedUseSocialOverride(idEunice.id, 18, false)
PedUseSocialOverride(idEunice.id, 24)
PedUseSocialOverride(idEunice.id, 24, false)
PedUseSocialOverride(idEunice.id, 4)
PedUseSocialOverride(idEunice.id, 4, false)
PedUseSocialOverride(idTeacher, 24)
PedUseSocialOverride(idTeacher, 4)
PedUseSocialOverride(pedBurtonStage3.id, 4)
PedUseSocialOverride(pedConstantine.id, 1, false)
PedUseSocialOverride(pedConstantine.id, 11)
PedUseSocialOverride(pedConstantine.id, 11, false)
PedUseSocialOverride(pedConstantine.id, 13)
PedUseSocialOverride(pedConstantine.id, 13, false)
PedUseSocialOverride(pedConstantine.id, 14, false)
PedUseSocialOverride(pedConstantine.id, 18)
PedUseSocialOverride(pedConstantine.id, 19)
PedUseSocialOverride(pedConstantine.id, 23, false)
PedUseSocialOverride(pedConstantine.id, 24)
PedUseSocialOverride(pedConstantine.id, 3)
PedUseSocialOverride(pedConstantine.id, 3, false)
PedUseSocialOverride(pedConstantine.id, 4)
PedUseSocialOverride(pedConstantine.id, 4, false)
PedUseSocialOverride(pedConstantine.id, 7)
PedUseSocialOverride(pedConstantine.id, 7, false)
PedUseSocialOverride(pedEarnest.id, 4)
PedUseSocialOverride(pedEunice.id, 18)
PedUseSocialOverride(pedEunice.id, 18, false)
PedUseSocialOverride(pedID, 18, false)
PedUseSocialOverride(pedID, 24, false)
PedUseSocialOverride(pedID, 24, true)
PedUseSocialOverride(pedID, 4, false)
PedUseSocialOverride(pedID, 4, true)
PedUseSocialOverride(pedPinky.id, 4)
push ebx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov edx, eax
neg edx
sbb edx, edx
mov ecx, esp
add edx, 0x3
push eax
mov dword ptr [ecx], edx
call 0x5C7380
push 0x1
push esi
mov edi, eax
call LuaParam::GetInt
push 0x1
push 0x2
push esi
mov ebx, eax
call LuaParam::GetBool ; optional
add esp, 0x1C
mov byte ptr [ebx+edi*1+0xC80], al
pop edi
pop esi
xor eax, eax
pop ebx
ret
L_PedExec(nil, PedWander, "id", 0)
L_PedExec(nil, PedWander, "id", 0.6)
L_PedExec(poi1NPC, PedWander, "id", 0)
L_PedExec(poi2NPC, PedWander, "id", 0)
L_PedExec(poi3NPC, PedWander, "id", 0)
PedWander(ambientLola, 0)
PedWander(attacker.id, 1)
PedWander(beatrice, 0)
PedWander(Boy, 0)
PedWander(char, 0)
PedWander(client.id, 2)
PedWander(Crazy01, 0)
PedWander(Crazy02, 0)
PedWander(DirtyCop, 0)
PedWander(Dog, 0)
PedWander(dog, 0)
PedWander(Dropout1, 1)
PedWander(entry, 0)
PedWander(FireMan, 0)
PedWander(FireManS2, 0)
PedWander(gBeatrice, 0)
PedWander(gBucky, 0)
PedWander(gCheater01, 0)
PedWander(gCheater02, 0)
PedWander(gCorn, 0)
PedWander(gCSBully, 1)
PedWander(gDuncan, 0)
PedWander(gEnemies[index].id, 1)
PedWander(gFatty, 0)
PedWander(gFatty, 2)
PedWander(gGary, 0)
PedWander(Girl, 0)
PedWander(gLeon, 0)
PedWander(gMailmanID, 0)
PedWander(gNerds[1], 0)
PedWander(gNerds[2], 0)
PedWander(gPeter, 0)
PedWander(gRussell, 0)
PedWander(gSpazzMan, 0)
PedWander(gThad, 1)
PedWander(gThad, 2)
PedWander(idBurton, 0)
PedWander(idEunice.id, 1)
PedWander(idLola, 0)
PedWander(idNemesis, 0)
PedWander(idPete, 0)
PedWander(idZoe, 0)
PedWander(insultBoy, 0)
PedWander(jock01, 0)
PedWander(jock02, 0)
PedWander(jock03, 0)
PedWander(key.handle, 0)
PedWander(kissGirl, 0)
PedWander(mandy, 0)
PedWander(MotelOwner, 1)
PedWander(nerd, 2)
PedWander(Objectives[5].id, 0)
PedWander(Objectives[CurrentMissionNumber].id, 0)
PedWander(ped, 0)
PedWander(ped, 1)
PedWander(ped.id, 0)
PedWander(ped1, 0)
PedWander(ped2, 0)
PedWander(pedAsianGirl.id, 1)
PedWander(pedBeatrice.id, 1)
PedWander(pedBurtonStage3.id, 0)
PedWander(pedChad.id, 1)
PedWander(pedDog.id, 1)
PedWander(pedEunice.id, 0)
PedWander(pedGary.id, 1)
PedWander(pedGreaser05.id, 1)
PedWander(pedGreaser06.id, 1)
PedWander(pedID, 0)
PedWander(pedID, 1)
PedWander(pedID, 2)
PedWander(pedMandyBedroom.id, 0)
PedWander(pedPinky.id, 0)
PedWander(pedPinkyUW.id, 1)
PedWander(pedSexyGirl.id, 1)
PedWander(pedZoe.id, 1)
PedWander(pervId, 0)
PedWander(pete, 0)
PedWander(prefect, 0)
PedWander(puker, 0)
PedWander(racer.id, 4)
PedWander(Receiver1, 0)
PedWander(Receiver2, 0)
PedWander(Receiver3, 0)
PedWander(rider, 0)
PedWander(ScenarioPed, 0)
PedWander(shared.PedLineupTable[shared.g_currentCreatedPed].handle, 0)
PedWander(sheet1Bruiser, 0)
PedWander(sheet1Guard, 0)
PedWander(spud_nerd, 2)
PedWander(student, 0)
PedWander(tbl.id, 1)
PedWander(tblGord.id, 0)
PedWander(tblPerverts[1].id, 0)
PedWander(tblPerverts[2].id, 0)
PedWander(tblPerverts[3].id, 0)
PedWander(tblRats[r + 9], 1)
PedWander(tblRats[r], 1)
PedWander(testPed[1].id, 0)
PedWander(Thug, 0)
PedWander(Victim, 0)
PedWander(Walker, 0)
{ name = "PedWander", exec = F_PedWander },
push ecx
push esi
push edi
mov edi, dword ptr [esp+0x10]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x56
fld st, dword ptr [0x911E30]
push ecx
fstp dword ptr [esp], st
push 0x1
push edi
call 0x5C62E0
fstp dword ptr [esp+0x14], st
push 0x14
call 0x5EEAA0
add esp, 0x10
test eax, eax
jz 0x24
fld st, dword ptr [esp+0x8]
push ecx
fstp dword ptr [esp], st
push esi
mov ecx, eax
call 0x46FC80
push eax
lea ecx, ptr [esi+0x5F0]
call 0x470300
xor eax, eax
pop edi
pop esi
pop ecx
ret
xor eax, eax
push eax
lea ecx, ptr [esi+0x5F0]
call 0x470300
pop edi
xor eax, eax
pop esi
pop ecx
ret
PedWarpIntoCar(car.driver, car.id)
PedWarpIntoCar(cop, CopCar)
PedWarpIntoCar(cop2, copCar)
PedWarpIntoCar(driver, car)
PedWarpIntoCar(driver, truck)
PedWarpIntoCar(gChaseCarDriver, gCopChaseCar)
PedWarpIntoCar(gCop1, gCopCar1)
PedWarpIntoCar(gCop2, gCopCar)
PedWarpIntoCar(gCop2, gCopCar2)
PedWarpIntoCar(gCops[3], copCar)
PedWarpIntoCar(gCops[4], copCar)
PedWarpIntoCar(gHattrick, gHattrickCar)
PedWarpIntoCar(gMsPhillips, gMsPhillipsCar)
PedWarpIntoCar(gPeds[4], gVehicle)
PedWarpIntoCar(gPlayer, kart)
PedWarpIntoCar(gPlayer, mower)
PedWarpIntoCar(gPlayer, player.car)
PedWarpIntoCar(idCop, idBike)
PedWarpIntoCar(idCop, idCopCar)
PedWarpIntoCar(Janitor, Mower)
PedWarpIntoCar(ped, car)
PedWarpIntoCar(pedId, car)
PedWarpIntoCar(pedId, vecId)
PedWarpIntoCar(racer.id, racer.car)
PedWarpIntoCar(shared.ped1, shared.veh1)
push ebx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov edi, eax
add esp, 0x8
test edi, edi
jz 0x28
push 0x1
push esi
call LuaParam::GetInt
push eax
call 0x44A580
push 0x0
push 0x2
push esi
mov ebx, eax
call LuaParam::GetInt ; optional
add esp, 0x18
push eax
push ebx
mov ecx, edi
call 0x49A470
pop edi
pop esi
xor eax, eax
pop ebx
ret
PedWarpOutOfCar(gPlayer)
PedWarpOutOfCar(gRussell.id)
PedWarpOutOfCar(Janitor)
PedWarpOutOfCar(racer.id)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
jz 0x9
mov ecx, eax
call 0x49A3F0
xor eax, eax
ret
gEntity, gType = PhotoGetEntityNext()
local gEntity, gType = PhotoGetEntityNext()
photoEntity, photoType = PhotoGetEntityNext()
mov edx, dword ptr [0xCFB358]
push esi
jmp 0x9
lea esp, ptr [esp]
cmp edx, dword ptr [0xCFB354]
mov eax, dword ptr [0xCFB370]
jl 0x80
xor edx, edx
test eax, eax
mov dword ptr [0xCFB358], edx
jnz 0x7
lea eax, ptr [edx+0x1]
jmp 0x2E
cmp eax, 0x1
jnz 0x9
mov eax, 0x2
jmp 0x22
cmp eax, 0x2
jnz 0x9
mov eax, 0x3
jmp 0x16
cmp eax, 0x3
jnz 0x9
mov eax, 0x5
jmp 0xA
cmp eax, 0x5
jnz 0xA
or eax, 0xFFFFFFFF
mov dword ptr [0xCFB370], eax
xor ecx, ecx
cmp eax, 0x5
jnbe 0x31
jmp dword ptr [eax*4+0x5C1B04]
mov ecx, dword ptr [0xC0F614]
jmp 0x1F
mov ecx, dword ptr [0xC0F5F4]
jmp 0x17
mov ecx, dword ptr [0xC0F5F0]
jmp 0xF
mov ecx, 0x1
jmp 0xB
mov ecx, dword ptr [0xC0F608]
mov ecx, dword ptr [ecx+0x8]
mov dword ptr [0xCFB354], ecx
cmp eax, 0xFFFFFFFF
jz 0x26
push 0x1
push eax
push edx
call 0x5C16E0
add esp, 0xC
test al, al
jnz 0x34
mov edx, dword ptr [0xCFB358]
add edx, 0x1
mov dword ptr [0xCFB358], edx
jmp 0xFFFFFF51
mov esi, dword ptr [esp+0x8]
push 0xFFFFFFFF
push esi
call LuaParam::PushInt
push 0xFFFFFFFF
push esi
call LuaParam::PushInt
add esp, 0x10
mov eax, 0x2
pop esi
ret
PhotoGetEntityStart()
xor ecx, ecx
push ecx
mov eax, esp
mov dword ptr [0xCFB370], ecx
mov dword ptr [0xCFB358], ecx
mov dword ptr [eax], ecx
call 0x5C1680
mov dword ptr [0xCFB354], eax
add esp, 0x4
xor eax, eax
ret
bPhotoTaken, bWasGood = PhotoHasBeenTaken()
if PhotoHasBeenTaken() then
local bPhotoTaken, bValid = PhotoHasBeenTaken()
local L4_2, L5_2 = PhotoHasBeenTaken()
local photohasbeentaken, wasValid = PhotoHasBeenTaken()
photohasbeentaken, wasValid = PhotoHasBeenTaken()
sub esp, 0x8
mov eax, dword ptr [0xC674E0]
mov cl, byte ptr [eax+0x40]
mov dl, byte ptr [eax+0x34]
mov byte ptr [esp], cl
push esi
mov esi, dword ptr [esp+0x10]
mov byte ptr [eax+0x40], 0x0
mov eax, dword ptr [esp+0x4]
push eax
push esi
mov byte ptr [esp+0x10], dl
call LuaParam::PushBool
mov ecx, dword ptr [esp+0x10]
push ecx
push esi
call LuaParam::PushBool
add esp, 0x10
mov eax, 0x2
pop esi
add esp, 0x8
ret
if (not PhotoIsSetValid() or shared.photoClass01) and not shared.inPhotoMission then
push ecx
mov ecx, dword ptr [0xC674E0]
call 0x545290
mov ecx, dword ptr [esp+0x8]
mov byte ptr [esp], al
mov eax, dword ptr [esp]
push eax
push ecx
call LuaParam::PushBool
mov eax, 0x1
add esp, 0xC
ret
PhotoSetValid(bValid)
PhotoSetValid(bValidPicture)
PhotoSetValid(false)
PhotoSetValid(false, tPhotoPhrase[math.random(1, 2)])
PhotoSetValid(L_TargetInFrame())
PhotoSetValid(true, "PHO_MYEARBK", PedGetName(pedId))
PhotoSetValid(true, "PHO_YEARBK", PedGetName(pedId))
PhotoSetValid(true, tPhotos[nPhotos])
PhotoSetValid(validBedroomTarget)
PhotoSetValid(validGreaserTarget)
PhotoSetValid(validGymTarget)
PhotoSetValid(validHattrickTarget)
PhotoSetValid(validJockTarget)
PhotoSetValid(validShowerTarget)
PhotoSetValid(validTarget)
PhotoSetValid(validTarget, properString)
push ebx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push esi
xor ebx, ebx
xor edi, edi
call LuaParam::GetParamCount
add esp, 0x4
cmp eax, 0x2
jl 0x15
push 0x1
push esi
call LuaParam::GetString
push eax
call 0x576ED0
add esp, 0xC
mov ebx, eax
push esi
call LuaParam::GetParamCount
add esp, 0x4
cmp eax, 0x3
jl 0x15
push 0x2
push esi
call LuaParam::GetString
push eax
call 0x576ED0
add esp, 0xC
mov edi, eax
push 0x0
push esi
call LuaParam::GetBool
mov ecx, dword ptr [0xC674E0]
movzx eax, al
add esp, 0x8
test eax, eax
setnz al
push edi
push ebx
push eax
call 0x545260
pop edi
pop esi
xor eax, eax
pop ebx
ret
PhotoShowExitString(false)
PhotoShowExitString(true)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetBool
mov ecx, dword ptr [0xC674E0]
mov byte ptr [ecx+0x20], al
add esp, 0x8
xor eax, eax
ret
bPropInFrame = PhotoTargetInFrame(propLoc.x, propLoc.y, propLoc.z)
bTargetInFrame = PhotoTargetInFrame(target.id, target.type)
bTargetInFrame = PhotoTargetInFrame(target.x, target.y, target.z)
dude.bInFrame = PhotoTargetInFrame(dude.id, 2)
if not target.taken and PhotoTargetInFrame(gord, 2) and target.cond() then
if not target.taken and PhotoTargetInFrame(target.id, 2) and PedIsPlaying(gCheater01, "/Global/Ambient/MissionSpec/KissMeAdult", true) then
if not target.taken and PhotoTargetInFrame(target.id, 2) and PedIsPlaying(MotelOwner, "/Global/Ambient/Scenarios/ScenarioGive/ScenarioGive", true) then
if not target.taken and PhotoTargetInFrame(target.x, target.y, target.z) then
if not validTagger and PhotoTargetInFrame(target, 2) and PedIsPlaying(target, "/Global/Tags/PedPropsActions/PerformTag/PedDrawMedTag", true) then
if PedIsValid(tagger) and PhotoTargetInFrame(tagger, 2) and PedIsPlaying(tagger, "/Global/Tags/PedPropsActions/PerformTag/PedDrawMedTag", true) then
if PhotoTargetInFrame(cEntry.x, cEntry.y, cEntry.z) then
if PhotoTargetInFrame(pedHattrick.id, 2) then
if PhotoTargetInFrame(pedMandyBedroom.id, 2) then
if PhotoTargetInFrame(pedMandyGym.id, 2) then
if PhotoTargetInFrame(pedMandyShower.id, 2) then
if PhotoTargetInFrame(pedPoolPrep.id, 2) then
if PhotoTargetInFrame(pedPrep.id, 2) then
if PhotoTargetInFrame(x, y, z + 1) then
sub esp, 0x1C
push esi
mov esi, dword ptr [esp+0x24]
push edi
push esi
mov byte ptr [esp+0xC], 0x0
call LuaParam::GetParamCount
add esp, 0x4
cmp eax, 0x2
jnz 0x29
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetInt
push 0x0
push eax
push edi
call 0x5C16E0
add esp, 0x1C
mov byte ptr [esp+0x8], al
jmp 0x105
push esi
call LuaParam::GetParamCount
add esp, 0x4
cmp eax, 0x3
jnz 0xF4
push 0x0
push esi
call LuaParam::GetInt
mov dword ptr [esp+0x14], eax
fild st, dword ptr [esp+0x14]
push 0x1
push esi
fstp dword ptr [esp+0x20], st
call LuaParam::GetInt
mov dword ptr [esp+0x1C], eax
fild st, dword ptr [esp+0x1C]
push 0x2
push esi
fstp dword ptr [esp+0x2C], st
call LuaParam::GetInt
mov dword ptr [esp+0x24], eax
fild st, dword ptr [esp+0x24]
mov eax, dword ptr [0xC1AEA8]
add esp, 0x4
fadd qword ptr [0x900D78]
fstp dword ptr [esp+0x20], st
fld st, dword ptr [esp+0x24]
fstp dword ptr [esp+0x2C], st
mov edx, dword ptr [esp+0x2C]
fld st, dword ptr [esp+0x28]
fstp dword ptr [esp+0x30], st
fld st, dword ptr [esp+0x20]
fstp dword ptr [esp+0x34], st
mov ecx, dword ptr [eax+0x1C8]
fld st, dword ptr [0x911E30]
mov eax, esp
fst dword ptr [esp+0x10], st
fstp dword ptr [esp+0xC], st
mov dword ptr [eax], edx
mov edx, dword ptr [esp+0x30]
mov dword ptr [eax+0x4], edx
mov edx, dword ptr [esp+0x34]
push 0x6
mov dword ptr [eax+0x8], edx
call 0x4D70A0
fcomp st, dword ptr [0x926810]
mov byte ptr [esp+0x8], 0x1
fnstsw ax
test ah, 0x44
jp 0x7
mov byte ptr [esp+0x8], 0x0
mov ax, word ptr [0xC1AE88]
mov ecx, dword ptr [0xC1AEA8]
add ax, 0x1
mov word ptr [ecx+0x10A], ax
mov edx, dword ptr [0xC3CCF4]
push edx
call 0x6C82F0
push eax
call 0x6C9A90
push 0x4B
lea ecx, ptr [esp+0x24]
add eax, 0x24
push ecx
push eax
call 0x4617D0
add esp, 0x14
test al, al
jnz 0x6
mov byte ptr [esp+0x8], al
mov edx, dword ptr [esp+0x8]
push edx
push esi
call LuaParam::PushBool
add esp, 0x8
pop edi
mov eax, 0x1
pop esi
add esp, 0x1C
ret
pickup.id = PickupCreateFromPed(pickup.model, pickup.ped, pickup.butes)
PickupCreateFromPed(478, fatty, "PermanentButes")
PickupCreateFromPed(502, idPopDropper, "HealthBute")
PickupCreateFromPed(502, pTable.pedId)
PickupCreateFromPed(502, tblEntry.id, "HealthBute")
PickupCreateFromPed(pickupModel, tblPed1a.id, "PermanentMissionVelocity")
Trophy = PickupCreateFromPed(385, pedGord, "PermanentMission")
push ecx
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x14]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov ebx, eax
call LuaParam::GetInt
add esp, 0xC
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
push esi
mov ebp, eax
xor edi, edi
call 0x73AEA0
add esp, 0xC
cmp eax, 0x3
jnz 0x2F
push 0x2
push esi
call LuaParam::GetString
add esp, 0x8
push eax
lea ecx, ptr [esp+0x14]
call 0x5FA910
lea eax, ptr [esp+0x10]
push eax
call 0x5D0C80
add esp, 0x4
lea ecx, ptr [esp+0x10]
mov edi, eax
call 0x49A650
push edi
push ebx
push ebp
call 0x443EE0
add esp, 0xC
mov edi, eax
push edi
mov ecx, 0xD02850
call 0x5DB940
mov ecx, eax
call 0x5D98C0
push edi
push esi
call LuaParam::PushInt
add esp, 0x8
pop edi
pop esi
pop ebp
mov eax, 0x1
pop ebx
pop ecx
ret
bat = PickupCreatePoint(300, POINTLIST._NEW_BAT, 1, 0, "PermanentMission")
BBQMeat.id01 = PickupCreatePoint(BBQMeat.model, BBQMeat.point, 1, 0, "PermanentMission")
BBQMeat.id02 = PickupCreatePoint(BBQMeat.model, BBQMeat.point, 2, 0, "PermanentMission")
dataSet.id = PickupCreatePoint(dataSet.model, dataSet.point, dataSet.element, 0, "PermanentButes")
ednaMeat = PickupCreatePoint(528, POINTLIST._2_01_PLAYERSTORE, 1, 0, "PermanentButes")
ednaPanties = PickupCreatePoint(507, POINTLIST._2_01_PANTYSPAWN, 1, 0, "PermanentButes")
ednaRazor = PickupCreatePoint(499, POINTLIST._2_01_RAZORSPAWN, 1, 0, "PermanentButes")
entry.id = PickupCreatePoint(entry.model, entry.point, entry.element, 0, "PermanentButes")
Frisbee.id = PickupCreatePoint(335, POINTLIST._4_06_OBJECTIVE_C, 4, 0, "PermanentMission")
gChocolate = PickupCreatePoint(478, POINTLIST._CHOCOLATEBAR, 1, 90, "PermanentButes")
gEggPickup = PickupCreatePoint(312, POINTLIST._2_05_LIFTSPOT, 1, 0, "EggsBute")
gFakeStack = PickupCreatePoint(320, POINTLIST._2_R03_PAPERDROP)
gOutOfMarbles = PickupCreatePoint(349, POINTLIST._4_06_DOSSIER_D, 1, 0, "PermanentMission")
gShield = PickupCreatePoint(387, POINTLIST._5_B_FALLEN_SHIELD, 1, 360, "PermanentMission")
gStinkBombs = PickupCreatePoint(309, POINTLIST._1_08_STINKBOMBS, 1, 360, "1_08_StinkBombs")
idBoltCutters = PickupCreatePoint(modelCutters, POINTLIST._5_05_BOLTCUTTERS, 1, 0, "PermanentButes")
local weapon = PickupCreatePoint(300, POINTLIST._3_XM_WEAPONS, i, 0, "PermanentMission")
Paint.id = PickupCreatePoint(Paint.model, Paint.point, 0, 0, "PermanentMission")
pantiesB = PickupCreatePoint(484, POINTLIST._2_S06B_PANTIES, 1, 0, "PermanentMission")
pantiesC = PickupCreatePoint(484, POINTLIST._2_S06B_PANTIES, 2, 0, "PermanentMission")
pantiesD = PickupCreatePoint(484, POINTLIST._2_S06B_PANTIES, 3, 0, "PermanentMission")
pantiesE = PickupCreatePoint(484, POINTLIST._2_S06B_PANTIES, 4, 0, "PermanentMission")
pantiesF = PickupCreatePoint(484, POINTLIST._2_S06B_PANTIES, 5, 0, "PermanentMission")
perfume = PickupCreatePoint(490, POINTLIST._2_S05_PERFUME, 1, 0, "PermanentMission")
pickup.id = PickupCreatePoint(pickup.model, pickup.point, 0, 360, pickup.butes)
pickup.ID = PickupCreatePoint(pickup.ModelName, POINTLIST._PICKUP_LIST, pickup.Point)
pickupCream = PickupCreatePoint(347, POINTLIST._4_01_BEDCREAM, 1, 0, "PermanentMission")
PickupCreatePoint(301, POINTLIST._4_02_ISLANDPICKUP, 1, 0, "MissionPermanent")
PickupCreatePoint(315, POINTLIST._3_05_LID, 1, 0, "PermanentButes")
PickupCreatePoint(315, POINTLIST._3_05_LID, 2, 0, "PermanentButes")
PickupCreatePoint(329, gBallStart, 1, 0)
PickupCreatePoint(362, POINTLIST._4_03_FRAFFYCANS, i, 0)
PickupCreatePoint(462, POINTLIST._2_S05_DOLLAR, 1, 0)
PickupCreatePoint(502, point, i, 0, "HealthBute")
PickupCreatePoint(510, POINTLIST._5_03_LAUNDRY_RM_BLIP, 0, 360, "PermanentButes")
pickupHealth = PickupCreatePoint(362, POINTLIST._4_05_SPAWNHEALTHPOOL, 1, 0, "HealthBute")
pop1 = PickupCreatePoint(362, POINTLIST._6_B_POPPICKUP, 1, 0, "HealthBute")
pop2 = PickupCreatePoint(362, POINTLIST._6_B_POPPICKUP, 2, 0, "HealthBute")
present = PickupCreatePoint(436, POINTLIST._3_08_PRESENT, 1, 230, "PermanentButes")
tbl.id = PickupCreatePoint(tbl.model, tbl.point, 1, 0, tbl.butes)
tblEntry.idPickup = PickupCreatePoint(tblEntry.model, tblEntry.point, 0, 5)
tblItem.tblDress.id = PickupCreatePoint(tblItem.tblDress.model, tblItem.tblDress.point, 1, 0, tblItem.tblDress.butes)
tblItem.tblNecklace.id = PickupCreatePoint(tblItem.tblNecklace.model, tblItem.tblNecklace.point, 1, 0, tblItem.tblNecklace.butes)
tblItem.tblPerfume.id = PickupCreatePoint(tblItem.tblPerfume.model, tblItem.tblPerfume.point, 1, 0, tblItem.tblPerfume.butes)
Trophy = PickupCreatePoint(385, POINTLIST._2_07_trophySpawn, 1, 0, "PermanentMission")
weapon2x4 = PickupCreatePoint(323, POINTLIST._5_G5_SPAWN2X4, 1, 0, "PermanentMission")
weaponBat = PickupCreatePoint(300, POINTLIST._5_G5_SPAWNBAT, 1, 0, "PermanentMission")
weaponSledge01 = PickupCreatePoint(324, POINTLIST._5_G5_SLEDGE01, 1, 0, "PermanentMission")
weaponSledge02 = PickupCreatePoint(324, POINTLIST._5_G5_SLEDGE02, 1, 0, "PermanentMission")
weaponSledge03 = PickupCreatePoint(324, POINTLIST._5_G5_SLEDGE03, 1, 0, "PermanentMission")
weaponSledge04 = PickupCreatePoint(324, POINTLIST._5_G5_SLEDGE04, 1, 0, "PermanentMission")
weaponWrench = PickupCreatePoint(300, POINTLIST._5_G5_SPAWNWRENCH, 1, 0, "PermanentMission")
sub esp, 0x2C
push ebx
push ebp
push esi
push edi
mov edi, dword ptr [esp+0x40]
push edi
xor bl, bl
mov dword ptr [esp+0x1C], 0x168
mov dword ptr [esp+0x20], 0x0
call 0x73AEA0
add esp, 0x4
cmp eax, 0x3
jl 0x13
push 0x2
push edi
mov bl, 0x1
call LuaParam::GetInt
add esp, 0x8
mov dword ptr [esp+0x14], eax
push edi
call 0x73AEA0
add esp, 0x4
cmp eax, 0x4
jl 0x11
push 0x3
push edi
call LuaParam::GetInt
add esp, 0x8
mov dword ptr [esp+0x18], eax
push edi
call 0x73AEA0
add esp, 0x4
cmp eax, 0x5
jnz 0x31
push 0x4
push edi
call LuaParam::GetString
add esp, 0x8
push eax
lea ecx, ptr [esp+0x14]
call 0x5FA910
lea eax, ptr [esp+0x10]
push eax
call 0x5D0C80
add esp, 0x4
lea ecx, ptr [esp+0x10]
mov dword ptr [esp+0x1C], eax
call 0x49A650
push 0x0
push edi
call LuaParam::GetInt
movzx ecx, ax
push 0x1
push edi
mov dword ptr [esp+0x30], ecx
call LuaParam::GetInt
movzx eax, ax
movzx edx, ax
add esp, 0x10
push edx
mov ecx, 0xBC5E7C
call 0x6D6450
mov ebp, eax
mov ecx, ebp
call 0x6D59B0
test bl, bl
mov esi, eax
jz 0x28
mov ebx, 0x1
cmp dword ptr [esp+0x14], ebx
jle 0x1D
jmp 0x5
lea ecx, ptr [ecx]
mov ecx, ebp
call 0x6D59F0
test eax, eax
jz 0xD
add ebx, 0x1
cmp ebx, dword ptr [esp+0x14]
mov esi, eax
jl 0xFFFFFFEC
fld st, dword ptr [esi+0x1C]
mov eax, dword ptr [esi+0x8]
mov ebx, dword ptr [esi]
mov ebp, dword ptr [esi+0x4]
push ecx
lea ecx, ptr [esp+0x28]
fstp dword ptr [esp], st
push ecx
mov dword ptr [esp+0x40], eax
call 0x432E30
mov edx, dword ptr [esp+0x20]
mov ecx, dword ptr [esp+0x24]
add esp, 0x8
push edx
movzx edx, word ptr [esp+0x24]
lea eax, ptr [esp+0x28]
push eax
push ecx
mov ecx, dword ptr [esp+0x44]
push 0x0
push edx
sub esp, 0xC
mov eax, esp
mov dword ptr [eax], ebx
mov dword ptr [eax+0x4], ebp
mov dword ptr [eax+0x8], ecx
call 0x443FE0
add esp, 0x20
mov esi, eax
push esi
mov ecx, 0xD02850
call 0x5DB940
mov ecx, eax
call 0x5D98C0
push esi
push edi
call LuaParam::PushInt
add esp, 0x8
pop edi
pop esi
pop ebp
mov eax, 0x1
pop ebx
add esp, 0x2C
ret
bath_bottle = PickupCreateXYZ(529, b2x, b2y, b2z, "PermanentButes")
cafe_bottle = PickupCreateXYZ(529, b3x, b3y, b3z, "PermanentButes")
Cargo = PickupCreateXYZ(521, Cx, Cy, Cz, "PermanentMission")
crab.id = PickupCreateXYZ(523, crab.x_coord, crab.y_coord, crab.z_coord, "PermanentMission")
entry.hash = PickupCreateXYZ(475, entry.x, entry.y, entry.z)
gate_key = PickupCreateXYZ(480, tx, ty, tz, "PermanentButes")
gate_key = PickupCreateXYZ(494, x3 + 0.5, y3 + 0.5, z3 + 0.25, "PermanentButes")
gPills = PickupCreateXYZ(522, x, y, z + 0.5, "PermanentMission")
Jacket = PickupCreateXYZ(524, x, y, z, "PermanentMission")
key_id = PickupCreateXYZ(494, key_ped_x, key_ped_y, key_ped_z, "PermanentMission")
local sheetPickup = PickupCreateXYZ(497, x3, y3, z3, "PermanentButes")
package.id = PickupCreateXYZ(521, package.x, package.y, package.z, "PermanentMission")
pickup = PickupCreateXYZ(311, 3, 12, 26.061)
pickup.id = PickupCreateXYZ(pickup.model, pickup.spawnx, pickup.spawny, pickup.spawnz)
pickupChocolates = PickupCreateXYZ(478, tempX, tempY, tempZ, "PermanentMission")
PickupCreateXYZ(310, x, y, z)
PickupCreateXYZ(311, x, y, z, "BrickBute")
PickupCreateXYZ(343, x, y, z)
PickupCreateXYZ(359, grave_x, grave_y, grave_z, "PermanentMission")
PickupCreateXYZ(483, x + 2, y + 2, z)
PickupCreateXYZ(502, x, y, z)
PickupCreateXYZ(502, x, y, z, "HealthBute")
PickupCreateXYZ(pickupTable[pickup].model, px + hx, py + hy, pz)
PickupCreateXYZ(weaponTable[weapon].model, px + hx, py + hy, pz)
PickupCreateXYZ(wt[index].model, x, y, z)
PickupLineupTable[i].handle = PickupCreateXYZ(PickupLineupTable[i].model, PickupLineupTable[i].x + TestX, PickupLineupTable[i].y + TestY, TestZ + 1)
shared.g4S12Perfume = PickupCreateXYZ(490, -571.228, 390.646, 0.0667577, "PermanentMission")
spawnedDrugs = PickupCreateXYZ(522, x, y, z, "PermanentButes")
TP = PickupCreateXYZ(403, TPx, TPy, TPz, "PermanentMission")
trophy_bottle = PickupCreateXYZ(529, tbx, tby, tbz, "PermanentButes")
weapon.id = PickupCreateXYZ(weapon.model, x, y, z, "PermanentMission")
sub esp, 0x1C
push ebx
push esi
mov esi, dword ptr [esp+0x28]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov ebx, eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x20], st
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x2C], st
push 0x3
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x38], st
push esi
xor edi, edi
call 0x73AEA0
add esp, 0x24
cmp eax, 0x5
jnz 0x2F
push 0x4
push esi
call LuaParam::GetString
add esp, 0x8
push eax
lea ecx, ptr [esp+0x10]
call 0x5FA910
lea eax, ptr [esp+0xC]
push eax
call 0x5D0C80
add esp, 0x4
lea ecx, ptr [esp+0xC]
mov edi, eax
call 0x49A650
fld st, dword ptr [esp+0x10]
push 0x0
push 0x0
fstp dword ptr [esp+0x24], st
fld st, dword ptr [esp+0x1C]
mov ecx, dword ptr [esp+0x24]
push edi
fstp dword ptr [esp+0x2C], st
fld st, dword ptr [esp+0x24]
mov edx, dword ptr [esp+0x2C]
push 0x1
fstp dword ptr [esp+0x34], st
push ebx
sub esp, 0xC
mov eax, esp
mov dword ptr [eax], ecx
mov ecx, dword ptr [esp+0x44]
mov dword ptr [eax+0x4], edx
mov dword ptr [eax+0x8], ecx
call 0x443FE0
add esp, 0x20
mov edi, eax
push edi
mov ecx, 0xD02850
call 0x5DB940
mov ecx, eax
call 0x5D98C0
push edi
push esi
call LuaParam::PushInt
add esp, 0x8
pop edi
pop esi
mov eax, 0x1
pop ebx
add esp, 0x1C
ret
PickupDelete(Cargo)
PickupDelete(crab.id)
PickupDelete(g)
PickupDelete(gChocolate)
PickupDelete(gFakeStack)
PickupDelete(gOutOfMarbles)
PickupDelete(gStinkBombs)
PickupDelete(Jacket)
PickupDelete(package.id)
PickupDelete(pickup)
PickupDelete(pickup.id)
PickupDelete(PickupLineupTable[i].handle)
PickupDelete(present)
PickupDelete(tblItem.tblDress.id)
PickupDelete(tblItem.tblNecklace.id)
PickupDelete(tblItem.tblPerfume.id)
mov eax, dword ptr [esp+0x4]
push esi
push 0x0
push eax
call LuaParam::GetInt
mov esi, eax
push esi
call 0x4438B0
add esp, 0xC
test eax, eax
jl 0x2A
lea eax, ptr [eax+eax*8]
lea eax, ptr [eax*8+0xC0A100]
test eax, eax
jz 0x1C
mov ecx, dword ptr [eax+0x18]
test ecx, ecx
jz 0xA
push 0x1
push esi
call 0x5D9900
push 0x1
push esi
call 0x4454F0
add esp, 0x8
xor eax, eax
pop esi
ret
PickupDestroyTypeInAreaXYZ(flowers_x, flowers_y, flowers_z, 20, MODELENUM._STEMROSE)
PickupDestroyTypeInAreaXYZ(grave_x, grave_y, grave_z, 2, 359)
PickupDestroyTypeInAreaXYZ(grave_x, grave_y, grave_z, 20, 359)
PickupDestroyTypeInAreaXYZ(jx, jy, jz, 5, 329)
PickupDestroyTypeInAreaXYZ(playerX, playerY, playerZ, 50, 399)
PickupDestroyTypeInAreaXYZ(px, py, pz, 50, modelCutters)
PickupDestroyTypeInAreaXYZ(px, py, pz, 50, modelCuttersWeapon)
PickupDestroyTypeInAreaXYZ(tempX, tempY, tempZ, 100, 324)
PickupDestroyTypeInAreaXYZ(x, y, z, 100, 331)
PickupDestroyTypeInAreaXYZ(x1, y1, z1, 3, 400)
sub esp, 0x18
push esi
mov esi, dword ptr [esp+0x20]
push edi
push 0x0
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x10], st
push 0x1
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x1C], st
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x28], st
fld st, dword ptr [esp+0x20]
push 0x3
fstp dword ptr [esp+0x30], st
push esi
fld st, dword ptr [esp+0x2C]
fstp dword ptr [esp+0x38], st
fld st, dword ptr [esp+0x30]
fstp dword ptr [esp+0x3C], st
call LuaParam::GetFloat
push esi
fstp dword ptr [esp+0x34], st
or edi, 0xFFFFFFFF
call 0x73AEA0
add esp, 0x24
cmp eax, 0x4
jle 0xF
push 0x4
push esi
call LuaParam::GetInt
add esp, 0x8
mov edi, eax
fld st, dword ptr [esp+0x10]
push 0x0
push ecx
lea eax, ptr [esp+0x1C]
fstp dword ptr [esp], st
push eax
call 0x4440F0
xor esi, esi
add esp, 0xC
cmp dword ptr [0xC0A0A8], esi
jbe 0x2F
cmp edi, 0xFFFFFFFF
mov eax, dword ptr [esi*4+0xC0A0B0]
lea ecx, ptr [eax+eax*8]
lea ecx, ptr [ecx*8+0xC0A100]
jz 0x7
cmp dword ptr [ecx+0x30], edi
jnz 0x9
push 0x1
call 0x444A10
add esi, 0x1
cmp esi, dword ptr [0xC0A0A8]
jb 0xFFFFFFD5
pop edi
xor eax, eax
pop esi
add esp, 0x18
ret
-- never used
sub esp, 0x18
push esi
mov esi, dword ptr [esp+0x20]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x18], st
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x24], st
push 0x3
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x30], st
fld st, dword ptr [esp+0x28]
push 0x4
fstp dword ptr [esp+0x38], st
push esi
fld st, dword ptr [esp+0x34]
fstp dword ptr [esp+0x40], st
fld st, dword ptr [esp+0x38]
fstp dword ptr [esp+0x44], st
call LuaParam::GetFloat
add esp, 0x28
fstp dword ptr [esp+0x10], st
fld st, dword ptr [esp+0x10]
push 0x0
push ecx
lea eax, ptr [esp+0x1C]
fstp dword ptr [esp], st
push eax
call 0x4440F0
mov edx, dword ptr [0xC0A0A8]
add esp, 0xC
xor eax, eax
test edx, edx
jbe 0x1C
mov ecx, dword ptr [eax*4+0xC0A0B0]
lea ecx, ptr [ecx+ecx*8]
cmp dword ptr [ecx*8+0xC0A130], edi
jz 0x1F
add eax, 0x1
cmp eax, edx
jb 0xFFFFFFE8
push 0x0
push esi
call LuaParam::PushBool
add esp, 0x8
pop edi
mov eax, 0x1
pop esi
add esp, 0x18
ret
fx, fy, fz = PickupGetXYZ(Frisbee.id)
local x, y, z = PickupGetXYZ(pickup.id)
local x, y, z = PickupGetXYZ(shared.gHarringtonKeyPickup)
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetInt
push eax
call 0x4438B0
add esp, 0xC
cmp eax, 0xFFFFFFFF
jz 0x1D
lea eax, ptr [eax+eax*8]
lea ecx, ptr [eax*8+0xC0A108]
push ecx
push esi
call LuaParam::PushVector
add esp, 0x8
mov eax, 0x3
pop esi
ret
push 0xBCC564
push esi
call LuaParam::PushVector
add esp, 0x8
mov eax, 0x3
pop esi
ret
-- never used
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
call LuaParam::GetFloat
fstp st(0), st
push 0x2
push esi
call LuaParam::GetFloat
fstp st(0), st
push 0x3
push esi
call LuaParam::GetFloat
fstp st(0), st
push 0x4
push esi
call LuaParam::GetFloat
fstp st(0), st
push 0x5
push esi
call LuaParam::GetInt
add esp, 0x30
xor eax, eax
pop esi
ret
elseif eggsCreated and (PickupIsPickedUp(gEggPickup) or ItemGetCurrentNum(312) > 0) then
elseif PickupIsPickedUp(perfume) then
elseif Trophy ~= nil and PickupIsPickedUp(Trophy) and tblEntry.id ~= nil then
if bDressSpawned and PickupIsPickedUp(tblItem.tblDress.id) then
if bNecklaceSpawned and PickupIsPickedUp(tblItem.tblNecklace.id) then
if bPerfumeSpawned and PickupIsPickedUp(tblItem.tblPerfume.id) then
if crab.received == false and PickupIsPickedUp(crab.id) == true then
if dataSet.id and PickupIsPickedUp(dataSet.id) then
if gChocolate and PickupIsPickedUp(gChocolate) then
if gFakeStack and gFakeStack ~= -1 and not PickupIsPickedUp(gFakeStack) then
if gStinkBombs ~= nil and (PickupIsPickedUp(gStinkBombs) or 0 < ItemGetCurrentNum(309)) then
if not bPantiesBPickedUp and PickupIsPickedUp(pantiesB) then
if not bPantiesCPickedUp and PickupIsPickedUp(pantiesC) then
if not bPantiesDPickedUp and PickupIsPickedUp(pantiesD) then
if not bPantiesEPickedUp and PickupIsPickedUp(pantiesE) then
if not bPantiesFPickedUp and PickupIsPickedUp(pantiesF) then
if not PickupIsPickedUp(Cargo) then
if not PickupIsPickedUp(gFakeStack) then
if not PickupIsPickedUp(gStinkBombs) and gStinkBombs then
if not PlayerIsInAreaXYZ(mrx, mry, mrz, 1, 0) and not PickupIsPickedUp(gOutOfMarbles) then
if PickupIsPickedUp(bath_bottle) then
if PickupIsPickedUp(cafe_bottle) then
if PickupIsPickedUp(Cargo) == true then
if PickupIsPickedUp(ednaPanties) then
if PickupIsPickedUp(ednaRazor) then
if PickupIsPickedUp(gate_key) then
if PickupIsPickedUp(gPills) then
if PickupIsPickedUp(idBoltCutters) then
if PickupIsPickedUp(Jacket) == true then
if PickupIsPickedUp(key.ID) and key.State == false then
if PickupIsPickedUp(package.id) then
if PickupIsPickedUp(tblPickups[nIndexCount].id) then
if PickupIsPickedUp(Trophy) then
if trophy_bottle and PickupIsPickedUp(trophy_bottle) then
return PickupIsPickedUp(sheet)
while not PickupIsPickedUp(key_id) do
while not PickupIsPickedUp(tblPickups.nortontrig.id) do
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetInt
push eax
call 0x4438B0
add esp, 0xC
cmp eax, 0xFFFFFFFF
jz 0x21
lea eax, ptr [eax+eax*8]
cmp byte ptr [eax*8+0xC0A144], 0x1
jnz 0x14
push 0x0
push esi
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
pop esi
ret
push 0x1
push esi
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
pop esi
ret
-- never used
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
call LuaParam::GetBool
add esp, 0x10
xor eax, eax
pop esi
ret
PickupRemoveAll()
PickupRemoveAll(311)
PickupRemoveAll(324)
PickupRemoveAll(399)
PickupRemoveAll(403)
PickupRemoveAll(504)
push esi
mov esi, dword ptr [esp+0x8]
push esi
call 0x73AEA0
add esp, 0x4
test eax, eax
jle 0x17
push 0x0
push esi
call LuaParam::GetInt
push eax
call 0x444B50
add esp, 0xC
xor eax, eax
pop esi
ret
call 0x444BB0
xor eax, eax
pop esi
ret
while not PickupRequestModel(521) do
while not PickupRequestModel(tblItem.tblDress.model) do
while not PickupRequestModel(tblItem.tblNecklace.model) do
while not PickupRequestModel(tblItem.tblPerfume.model) do
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetInt
movzx eax, ax
movzx esi, ax
push esi
call 0x52DD30
add esp, 0xC
cmp byte ptr [eax+0x4], 0x1
jz 0x5F
push esi
call 0x52DD30
add esp, 0x4
cmp byte ptr [eax+0x4], 0x2
jz 0x3D
push esi
call 0x52DD30
add esp, 0x4
cmp byte ptr [eax+0x4], 0x3
jz 0x2E
push esi
call 0x52DD30
add esp, 0x4
cmp byte ptr [eax+0x4], 0x4
jz 0x1F
push 0x16
push esi
call 0x532020
add esp, 0x8
push esi
mov ecx, 0xD02850
call 0x5DB940
mov ecx, eax
call 0x5D9450
push 0x0
push edi
call LuaParam::PushBool
add esp, 0x8
pop edi
mov eax, 0x1
pop esi
ret
PickupSetIgnoreRespawnDistance(false)
PickupSetIgnoreRespawnDistance(true)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetBool
mov byte ptr [0xC0A0AC], al
add esp, 0x8
xor eax, eax
ret
function PlayCutSceneForCheat(cutSceneIndex)
bCutsceneFinished = false
iCutSceneIndex = cutSceneIndex
CreateThread("PlayCutSceneForCheatThread")
end
CreateThread("PlayCutSceneForCheatThread")
function PlayCutSceneForCheatThread()
F_PlayCutScene(iCutSceneIndex, true, false, false, false, false)
collectgarbage()
end
PlayCutsceneWithLoad("1-02B", true, false, true)
PlayCutsceneWithLoad("1-02D", true, false)
PlayCutsceneWithLoad("1-02E", true, true)
PlayCutsceneWithLoad("1-03", true, true, true)
PlayCutsceneWithLoad("1-04", true)
PlayCutsceneWithLoad("1-05", true)
PlayCutsceneWithLoad("1-06", true)
PlayCutsceneWithLoad("1-06B", true)
PlayCutsceneWithLoad("1-07", true)
PlayCutsceneWithLoad("1-08", true)
PlayCutsceneWithLoad("1-09", true)
PlayCutsceneWithLoad("1-1-1", true, true, true)
PlayCutsceneWithLoad("1-1-2", true, true)
PlayCutsceneWithLoad("1-10", true)
PlayCutsceneWithLoad("1-11", true, false)
PlayCutsceneWithLoad("1-B", true)
PlayCutsceneWithLoad("1-BB", true)
PlayCutsceneWithLoad("1-BC", true)
PlayCutsceneWithLoad("1-G1", true, true)
PlayCutsceneWithLoad("1-S01", true)
PlayCutsceneWithLoad("2-0", true, true)
PlayCutsceneWithLoad("2-01", true, true, true)
PlayCutsceneWithLoad("2-02", true, false, false, false)
PlayCutsceneWithLoad("2-03", true)
PlayCutsceneWithLoad("2-03b", true)
PlayCutsceneWithLoad("2-04", true)
PlayCutsceneWithLoad("2-05", true, true)
PlayCutsceneWithLoad("2-06", true)
PlayCutsceneWithLoad("2-07", true, true, true)
PlayCutsceneWithLoad("2-08", true, true)
PlayCutsceneWithLoad("2-09", true)
PlayCutsceneWithLoad("2-09B", true)
PlayCutsceneWithLoad("2-B", true)
PlayCutsceneWithLoad("2-BB", true)
PlayCutsceneWithLoad("2-G2", true)
PlayCutsceneWithLoad("2-S02", true, true)
PlayCutsceneWithLoad("2-S04", true)
PlayCutsceneWithLoad("2-S05", true, true)
PlayCutsceneWithLoad("2-S05B", true, true)
PlayCutsceneWithLoad("2-S05C", false, false, true, true)
PlayCutsceneWithLoad("2-S06", true)
PlayCutsceneWithLoad("2-S07", true, true, false)
PlayCutsceneWithLoad("3-0", true, true)
PlayCutsceneWithLoad("3-01", true)
PlayCutsceneWithLoad("3-01AA", true)
PlayCutsceneWithLoad("3-01AB", true)
PlayCutsceneWithLoad("3-01BA", true)
PlayCutsceneWithLoad("3-01CA", true)
PlayCutsceneWithLoad("3-01CB", true)
PlayCutsceneWithLoad("3-01DA", true)
PlayCutsceneWithLoad("3-01DB", true)
PlayCutsceneWithLoad("3-01DC", true)
PlayCutsceneWithLoad("3-02", true)
PlayCutsceneWithLoad("3-03", true)
PlayCutsceneWithLoad("3-04", true)
PlayCutsceneWithLoad("3-04B", true)
PlayCutsceneWithLoad("3-05", true)
PlayCutsceneWithLoad("3-06", true, true)
PlayCutsceneWithLoad("3-B", true, true)
PlayCutsceneWithLoad("3-BB", true, true)
PlayCutsceneWithLoad("3-BD", true)
PlayCutsceneWithLoad("3-G3", true)
PlayCutsceneWithLoad("3-R05A", true)
PlayCutsceneWithLoad("3-R05B", true)
PlayCutsceneWithLoad("3-R07", true)
PlayCutsceneWithLoad("3-S03", true)
PlayCutsceneWithLoad("3-S08", true)
PlayCutsceneWithLoad("3-S10", true)
PlayCutsceneWithLoad("3-S11", true)
PlayCutsceneWithLoad("3-S11C", true, true)
PlayCutsceneWithLoad("4-0", true, true)
PlayCutsceneWithLoad("4-01", true)
PlayCutsceneWithLoad("4-02", true, true, true)
PlayCutsceneWithLoad("4-03", true, true, true)
PlayCutsceneWithLoad("4-04", true)
PlayCutsceneWithLoad("4-05", true)
PlayCutsceneWithLoad("4-06", true)
PlayCutsceneWithLoad("4-B1", true, true)
PlayCutsceneWithLoad("4-B1D", true, false)
PlayCutsceneWithLoad("4-B2", true)
PlayCutsceneWithLoad("4-B2B", true)
PlayCutsceneWithLoad("4-G4", true, true)
PlayCutsceneWithLoad("4-S12", true, true)
PlayCutsceneWithLoad("4-S12B", true, true)
PlayCutsceneWithLoad("5-0", true, true)
PlayCutsceneWithLoad("5-01", true)
PlayCutsceneWithLoad("5-02", true)
PlayCutsceneWithLoad("5-02B", true, true)
PlayCutsceneWithLoad("5-03", true, true, true)
PlayCutsceneWithLoad("5-04", true)
PlayCutsceneWithLoad("5-05", true, true)
PlayCutsceneWithLoad("5-05B", true, true, true, true)
PlayCutsceneWithLoad("5-06", true)
PlayCutsceneWithLoad("5-09", true, false, false)
PlayCutsceneWithLoad("5-09B", true, false)
PlayCutsceneWithLoad("5-BC", true)
PlayCutsceneWithLoad("5-G5", true)
PlayCutsceneWithLoad("6-0", true, true)
PlayCutsceneWithLoad("6-02", true, true)
PlayCutsceneWithLoad("6-02B", true, true)
PlayCutsceneWithLoad("6-B", true)
PlayCutsceneWithLoad("6-BB", true)
PlayCutsceneWithLoad("6-BB", true, false, true, true)
PlayCutsceneWithLoad("6-BC", true)
PlayCutsceneWithLoad(gCutscenes[currentCutscene])
function PlayCutsceneWithLoad(cutsceneName, avoidFadeIn, avoidFadeOut, dontTransitionBack, dontTransitionTo)
bFoundCutscene = false
for i, cutscene in cutsceneTable do
if cutscene.name == cutsceneName then
F_PlayCutScene(i, true, avoidFadeIn, avoidFadeOut, dontTransitionBack, dontTransitionTo)
bFoundCutscene = true
break
end
end
if not bFoundCutscene then
--print("===================>>> CUTSCENE NAME " .. cutsceneName .. " NOT FOUND!!")
--print("===================>>> CUTSCENE NAME " .. cutsceneName .. " NOT FOUND!!")
end
end
PlayerActivateCombatSphere(false)
PlayerActivateCombatSphere(true)
push esi
push ecx
mov eax, esp
push 0x0
mov dword ptr [eax], 0x3
call 0x5C7380
mov esi, eax
mov eax, dword ptr [esp+0x10]
push 0x0
push eax
call LuaParam::GetBool
movzx ecx, al
add esp, 0x10
mov dword ptr [esi+0x151C], ecx
xor eax, eax
pop esi
ret
PlayerAddMoney(-100, false)
PlayerAddMoney(-50, false)
PlayerAddMoney(-gCurrentBet, false)
PlayerAddMoney(-gRaceCost, true)
PlayerAddMoney(-PROP_DAMAGE_COST)
PlayerAddMoney(1000)
PlayerAddMoney(30000, false)
PlayerAddMoney(gCost)
PlayerAddMoney(gCurrentBet * 2, false)
PlayerAddMoney(gCurrentBet, false)
PlayerAddMoney(race.reward)
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetInt
push edi
mov esi, eax
call 0x73AEA0
add esp, 0xC
cmp eax, 0x2
jl 0xD
push 0x1
push edi
call LuaParam::GetBool
add esp, 0x8
test esi, esi
mov ecx, dword ptr [0xC1AEA8]
jnl 0xF
neg esi
push esi
call 0x473100
pop edi
xor eax, eax
pop esi
ret
push esi
call 0x475320
pop edi
xor eax, eax
pop esi
ret
-- never used
push ecx
mov eax, dword ptr [esp+0x8]
push ebx
mov bl, byte ptr [0xC1AF4C]
push 0x0
push eax
call LuaParam::GetBool
add esp, 0x8
test al, al
jz 0x7
add bl, 0x1
jmp 0x5
add bl, 0xFF
mov byte ptr [esp+0x4], bl
mov ecx, dword ptr [esp+0x4]
push ecx
mov ecx, 0xC1AEA8
call 0x445E30
xor eax, eax
pop ebx
pop ecx
ret
PlayerClearLastVehicle()
mov eax, dword ptr [0xC1AEA8]
test eax, eax
jz 0xC
mov dword ptr [eax+0x1560], 0x0
xor eax, eax
ret
PlayerClearRewardStore()
xor al, al
mov byte ptr [0xC1AFB4], al
mov byte ptr [0xC1AFB5], al
mov byte ptr [0xC1AFB6], al
mov dword ptr [0xC1AFA8], 0xFFFFFFFF
mov dword ptr [0xC1AFAC], 0xF
mov dword ptr [0xC1AFB0], 0x6
mov byte ptr [0xC1AFB7], 0x1
xor eax, eax
ret
PlayerCreateXYZ(gPlayerStartX, gPlayerStartY, gPlayerStartZ)
push esi
mov esi, dword ptr [esp+0x8]
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x4], st
add esp, 0x4
push 0x1
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x4], st
add esp, 0x4
push 0x0
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x4], st
add esp, 0x4
call 0x5D2AC0
push eax
push esi
call LuaParam::PushInt
add esp, 0x14
mov eax, 0x1
pop esi
ret
PlayerDetachFromVehicle()
PlayerDetachFromVehicle(gPlayer)
PlayerDetachFromVehicle(tblPlayer.bike)
push esi
push ecx
mov eax, esp
push 0x0
mov dword ptr [eax], 0x3
call 0x5C7380
mov esi, eax
add esp, 0x8
cmp dword ptr [esi+0x1554], 0x0
jz 0x49
mov ecx, dword ptr [esi+0x2E0]
add ecx, 0x258
call 0x5F40A0
mov ecx, dword ptr [esi+0x2E0]
add ecx, 0x290
call 0x5F40A0
mov ecx, dword ptr [esi+0x1554]
add ecx, 0x1C4
call 0x4CE960
cmp byte ptr [0xB9DB1C], 0x0
jz 0xD
push esi
mov ecx, 0xB9DAB8
call 0x683EF0
xor eax, eax
pop esi
ret
PlayerDismountBike()
push esi
push ecx
mov eax, esp
push 0x0
mov dword ptr [eax], 0x3
call 0x5C7380
mov esi, eax
add esp, 0x8
mov ecx, esi
call 0x4CE690
test al, al
jz 0x17
fldz
push ecx
mov ecx, dword ptr [esi+0x2E0]
fstp dword ptr [esp], st
push 0x1
push 0x3
call 0x5F3A90
xor eax, eax
pop esi
ret
PlayerDoneLoading(true)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetBool
mov eax, dword ptr [0xC1AEA8]
add esp, 0x8
test eax, eax
jz 0x9
mov byte ptr [eax+0x1E8C], 0x1
xor eax, eax
ret
PlayerFaceHeading(0, 1)
PlayerFaceHeading(135, 0)
PlayerFaceHeading(180, 0)
PlayerFaceHeading(180, 1)
PlayerFaceHeading(270, 0)
PlayerFaceHeading(270, 1)
PlayerFaceHeading(45, 0)
PlayerFaceHeading(90, 0)
PlayerFaceHeading(90, 1)
PlayerFaceHeading(clothingHeading, 0)
PlayerFaceHeading(heading, 0)
PlayerFaceHeading(myAreaTable[area].h - 90, 0)
PlayerFaceHeading(shared.areaTable[area].h - 90, 0)
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x10], st
push 0x1
push esi
call LuaParam::GetInt
add esp, 0xC
mov esi, eax
mov eax, esp
push 0x0
mov dword ptr [eax], 0x3
call 0x5C7380
fld st, dword ptr [esp+0x10]
add esp, 0x8
test esi, esi
jnz 0x13
push ecx
mov ecx, eax
fstp dword ptr [esp], st
call 0x475730
xor eax, eax
pop edi
pop esi
pop ecx
ret
push 0x0
push ecx
mov edi, eax
fstp dword ptr [esp], st
call 0x5D2300
add esp, 0x8
pop edi
xor eax, eax
pop esi
pop ecx
ret
PlayerFaceHeadingNow(-172.3)
PlayerFaceHeadingNow(-273)
PlayerFaceHeadingNow(-43.4)
PlayerFaceHeadingNow(-53.639343)
PlayerFaceHeadingNow(-60.161495)
PlayerFaceHeadingNow(-90)
PlayerFaceHeadingNow(-92.90063)
PlayerFaceHeadingNow(0)
PlayerFaceHeadingNow(102.7)
PlayerFaceHeadingNow(103)
PlayerFaceHeadingNow(135)
PlayerFaceHeadingNow(160)
PlayerFaceHeadingNow(180)
PlayerFaceHeadingNow(220)
PlayerFaceHeadingNow(270)
PlayerFaceHeadingNow(315)
PlayerFaceHeadingNow(85.5)
PlayerFaceHeadingNow(90)
PlayerFaceHeadingNow(clothingHeading)
PlayerFaceHeadingNow(gPlayerHeading)
PlayerFaceHeadingNow(heading)
PlayerFaceHeadingNow(moveHeading)
push ecx
mov eax, dword ptr [esp+0x8]
push esi
push 0x0
push eax
call LuaParam::GetFloat
fmul st, qword ptr [0x900160]
mov ecx, dword ptr [0xC1AEA8]
add esp, 0x4
fdiv st, qword ptr [0x900158]
mov esi, ecx
fstp dword ptr [esp+0x8], st
fld st, dword ptr [esp+0x8]
fstp dword ptr [esp], st
call 0x475730
mov ecx, esi
call 0x443AA0
mov ecx, dword ptr [esi+0x114]
mov edx, dword ptr [ecx+0xC]
push edx
call 0x6C9AF0
add esp, 0x4
xor eax, eax
pop esi
pop ecx
ret
if hour == 1 and 55 < minute or hour == 2 or PlayerFellAsleep() or AreaIsLoading() then
if hour == 1 and minute > 55 or hour == 2 or PlayerFellAsleep() or AreaIsLoading() then
if PlayerFellAsleep() then
if shared.bCleanUpErrand or PlayerFellAsleep() then
mov al, byte ptr [0xC1AF00]
cmp al, 0x7
jz 0x1C
cmp al, 0x6
jz 0x18
xor al, al
push eax
mov eax, dword ptr [esp+0x8]
push eax
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
ret
mov eax, 0x1
push eax
mov eax, dword ptr [esp+0x8]
push eax
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
ret
PlayerFixToBackOfVehicle(vehicleBikeChad.id, false)
PlayerFixToBackOfVehicle(vehicleBikeChad.id, true)
push ebx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
movzx edi, ax
call LuaParam::GetBool
add esp, 0xC
mov bl, al
mov eax, esp
push 0x0
mov dword ptr [eax], 0x3
call 0x5C7380
mov esi, eax
movzx eax, di
push eax
call 0x44A580
add esp, 0xC
cmp dword ptr [esi+0x1310], 0xD
mov edi, eax
jnz 0xC2
test bl, bl
jz 0x6B
lea eax, ptr [esi+0x430]
push eax
push edi
mov dword ptr [eax], edi
call 0x4657D0
push 0x14
call 0x5EEAA0
add esp, 0xC
test eax, eax
jz 0xD
push edi
push esi
mov ecx, eax
call 0x46FDD0
jmp 0x4
xor eax, eax
push eax
lea ecx, ptr [esi+0x5F0]
call 0x471470
mov eax, dword ptr [edi+0x14]
test eax, eax
jz 0x7
add eax, 0x30
jmp 0x5
lea eax, ptr [edi+0x4]
mov edi, dword ptr [eax]
mov edx, dword ptr [esi]
mov edx, dword ptr [edx+0x38]
sub esp, 0xC
mov ecx, esp
mov dword ptr [ecx], edi
mov edi, dword ptr [eax+0x4]
mov eax, dword ptr [eax+0x8]
mov dword ptr [ecx+0x4], edi
mov dword ptr [ecx+0x8], eax
mov ecx, esi
call 0x5D2912
xor eax, eax
pop edi
pop esi
pop ebx
ret
currentBike = PlayerGetBikeId()
if PlayerGetBikeId() ~= -1 then
local playerBike = PlayerGetBikeId()
pBikeId = PlayerGetBikeId()
mov ecx, dword ptr [0xC1AEA8]
or eax, 0xFFFFFFFF
test ecx, ecx
jz 0x15
mov ecx, dword ptr [ecx+0x1554]
test ecx, ecx
jz 0xB
push ecx
call 0x44CAC0
add esp, 0x4
push eax
mov eax, dword ptr [esp+0x8]
push eax
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
ret
gCurrentHealth = PlayerGetHealth()
if 0 < PlayerGetHealth() then
if 0 >= PlayerGetHealth() then
if AreaGetVisible() == 36 and 0 < PlayerGetHealth() then
if PedIsPlaying(gPlayer, "/Global/Actions/Grapples", true) or 0 >= PlayerGetHealth() then
if PlayerGetHealth() / PedGetMaxHealth(gPlayer) < 0.4 then
if PlayerGetHealth() < 200 then
if PlayerGetHealth() < gMaxHealth then
if PlayerGetHealth() < gMaxPlayerHealth then
if PlayerGetHealth() < PedGetMaxHealth(gPlayer) then
if PlayerGetHealth() <= 0 then
if PlayerGetHealth() <= 30 then
if PlayerGetHealth() > 1 then
if PlayerIsInTrigger(TRIGGER._5_B_STAGE2_START) and 0 < PlayerGetHealth() then
if PlayerIsInTrigger(TRIGGER._5_B_STEAMAREA) and PlayerGetHealth() > 0 and not PedIsPlaying(gPlayer, "/Global/5_B/Reactions/SteamReaction", false) then
local playerHealth = PlayerGetHealth()
P_ENTRY_HEALTH = PlayerGetHealth()
PlayerSetHealth(PlayerGetHealth() + 1)
PlayerSetHealth(PlayerGetHealth() + 20)
return PlayerGetHealth() <= 0 or PedMePlaying(gPlayer, "Dead", true)
push ecx
mov eax, esp
push 0x0
mov dword ptr [eax], 0x3
call 0x5C7380
fld st, dword ptr [eax+0x1CB8]
mov eax, dword ptr [esp+0xC]
fstp dword ptr [esp+0x4], st
add esp, 0x4
push eax
call LuaParam::PushFloat
add esp, 0x8
mov eax, 0x1
ret
gPlayersBike = PlayerGetLastBikeId()
local lastBike = PlayerGetLastBikeId()
local tempBikeID = PlayerGetLastBikeId()
pBike = PlayerGetLastBikeId()
mov ecx, dword ptr [0xC1AEA8]
or eax, 0xFFFFFFFF
test ecx, ecx
jz 0x15
mov ecx, dword ptr [ecx+0x1560]
test ecx, ecx
jz 0xB
push ecx
call 0x44CAC0
add esp, 0x4
push eax
mov eax, dword ptr [esp+0x8]
push eax
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
ret
current_money = PlayerGetMoney()
elseif 0 < PlayerGetMoney() and PlayerIsInAreaXYZ(-466.2011, -42.3588, 9.7998, 1, 7) then
elseif current_money <= PlayerGetMoney() then
elseif PlayerGetMoney() < 100 and not shared.playerShopping then
gCurrentAmount = PlayerGetMoney()
if not hasHaircut and PlayerGetMoney() < 1200 and not shared.playerShopping then
if PlayerGetMoney() < 100 and ItemGetCurrentNum(478) == 0 and not shared.playerShopping then
if PlayerGetMoney() < 100 and not shared.playerShopping and (not PlayerHasItem(479) or ItemGetCurrentNum(495) < gTicketsRequired) then
if PlayerGetMoney() < 100 and not shared.playerShopping then
if PlayerGetMoney() < 100 then
if PlayerGetMoney() < 1000 then
if PlayerGetMoney() < 1200 then
if PlayerGetMoney() < 150 and ItemGetCurrentNum(312) == 0 and not shared.playerShopping then
if PlayerGetMoney() < 150 then
if PlayerGetMoney() < SPRAY_PAINT_COST and not PlayerHasItem(321) and not shared.playerShopping then
if PlayerGetMoney() < SPRAY_PAINT_COST then
if PlayerGetMoney() <= 199 then
if PlayerGetMoney() >= 50 or MiniObjectiveGetIsComplete(0) then
if PlayerGetMoney() >= current_money then
PlayerSetMoney(PlayerGetMoney() - 200)
mov eax, dword ptr [0xC1AEA8]
mov ecx, dword ptr [eax+0x1CA0]
mov edx, dword ptr [esp+0x4]
push ecx
push edx
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
ret
-- never used
push ebx
push esi
push edi
mov edi, dword ptr [esp+0x10]
push 0x0
push edi
call LuaParam::GetInt
mov ecx, dword ptr [eax*4+0xC67738]
mov edx, dword ptr [ecx+0x18]
mov ebx, dword ptr [edx+0x34]
add esp, 0x8
xor esi, esi
cmp eax, dword ptr [0xA136B0]
jl 0x1E
cmp eax, dword ptr [0xA136B4]
jnle 0x16
mov ecx, dword ptr [0xC1AEA8]
mov ecx, dword ptr [ecx+0x1C4]
push eax
call 0x45CF40
jmp 0x1B
cmp eax, dword ptr [0xA136B8]
jl 0x15
cmp eax, dword ptr [0xA136BC]
jnle 0xD
push eax
call 0x541E00
add esp, 0x4
mov esi, eax
push ebx
push edi
call LuaParam::PushInt
cmp esi, ebx
setnl dl
push edx
push edi
call LuaParam::PushBool
add esp, 0x10
pop edi
pop esi
mov eax, 0x2
pop ebx
ret
--print("BEGGINING PlayerGetNumTimesBusted!", PlayerGetNumTimesBusted())
nTimesBusted = PlayerGetNumTimesBusted()
PlayerSetScriptSavedData(3, PlayerGetNumTimesBusted())
mov eax, dword ptr [0xC1AEA8]
xor ecx, ecx
test eax, eax
jz 0x8
mov ecx, dword ptr [eax+0x1ED4]
mov eax, dword ptr [esp+0x4]
push ecx
push eax
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
ret
gPlayer = PlayerGetPedIndex()
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
ret
-- never used
movsx eax, byte ptr [0xC1AF4C]
mov ecx, dword ptr [esp+0x4]
push eax
push ecx
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
ret
local px, py, _ = PlayerGetPosXYZ()
local px, py, pz = PlayerGetPosXYZ()
local x, y, z = PlayerGetPosXYZ()
local X1, Y1 = PlayerGetPosXYZ()
local x1, y1, z1 = PlayerGetPosXYZ()
local x2, y2, z2 = PlayerGetPosXYZ()
local xx, xy, xz = PlayerGetPosXYZ()
playerX, playerY, playerZ = PlayerGetPosXYZ()
px, py = PlayerGetPosXYZ()
px, py, pz = PlayerGetPosXYZ()
Px, Py, Pz = PlayerGetPosXYZ()
tarX, tarY, tarZ = PlayerGetPosXYZ()
x, y, z = PlayerGetPosXYZ()
X, Y, Z = PlayerGetPosXYZ()
x1, y1 = PlayerGetPosXYZ()
x2, y2, z2 = PlayerGetPosXYZ()
sub esp, 0xC
push esi
push ecx
mov eax, esp
push 0x0
mov dword ptr [eax], 0x3
call 0x5C7380
add esp, 0x8
mov ecx, 0xD02850
mov esi, eax
call 0x5DB940
mov eax, dword ptr [esi+0x1554]
test eax, eax
jz 0x13
mov ecx, dword ptr [eax+0x14]
test ecx, ecx
jz 0x7
lea eax, ptr [ecx+0x30]
jmp 0x16
add eax, 0x4
jmp 0x11
mov eax, dword ptr [esi+0x14]
test eax, eax
jz 0x7
add eax, 0x30
jmp 0x5
lea eax, ptr [esi+0x4]
mov ecx, dword ptr [eax]
mov edx, dword ptr [eax+0x4]
mov eax, dword ptr [eax+0x8]
mov esi, dword ptr [esp+0x14]
mov dword ptr [esp+0x4], ecx
fld st, dword ptr [esp+0x4]
push ecx
fstp dword ptr [esp], st
push esi
mov dword ptr [esp+0x14], eax
mov dword ptr [esp+0x10], edx
call LuaParam::PushFloat
fld st, dword ptr [esp+0x10]
add esp, 0x4
fstp dword ptr [esp], st
push esi
call LuaParam::PushFloat
fld st, dword ptr [esp+0x14]
add esp, 0x4
fstp dword ptr [esp], st
push esi
call LuaParam::PushFloat
add esp, 0x8
mov eax, 0x3
pop esi
add esp, 0xC
ret
-- Punishment points after setting: ]] .. PlayerGetPunishmentPoints())
--print("()xxxxx[:::::::::::::::> Current Punishment is at: " .. PlayerGetPunishmentPoints())
--print(">>>[RUI]", "!!PlayerBusted " .. tostring(gBasePunishment) .. " " .. tostring(PlayerGetPunishmentPoints()))
gBasePunishment = PlayerGetPunishmentPoints()
if not gStoreLocked and F_CheckPedNotInGrapple(gPlayer) and PlayerGetPunishmentPoints() <= 0 and PlayerIsInAreaXYZ(sX, sY, sZ, 1, 6, 225) then
if PlayerGetPunishmentPoints() == 0 then
if PlayerGetPunishmentPoints() >= 300 and bCopWasSummoned == false then
if PlayerGetPunishmentPoints() >= gBasePunishment then
local current_punishment = PlayerGetPunishmentPoints()
local ppoints = PlayerGetPunishmentPoints()
local punishment = PlayerGetPunishmentPoints() + 150
PedSetPunishmentPoints(gRudy, PlayerGetPunishmentPoints())
PlayerIncPunishmentPoints(120 - PlayerGetPunishmentPoints())
PlayerSetPunishmentPoints(PlayerGetPunishmentPoints() + 150)
PlayerSetPunishmentPoints(PlayerGetPunishmentPoints() + 200)
return PlayerGetPunishmentPoints() > gBasePunishment
return PlayerGetPunishmentPoints() >= gBasePunishment
mov eax, dword ptr [0xC1AEA8]
mov ecx, dword ptr [eax+0x1D40]
mov edx, dword ptr [esp+0x4]
push ecx
push edx
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
ret
gPreviousBustedCount = PlayerGetScriptSavedData(24)
if PlayerGetScriptSavedData(11) == 0 then
if PlayerGetScriptSavedData(12) == 0 then
if PlayerGetScriptSavedData(13) == 0 then
if PlayerGetScriptSavedData(23) == 0 then
if PlayerGetScriptSavedData(23) == 1 then
if PlayerGetScriptSavedData(26) == 0 then
if PlayerGetScriptSavedData(26) == 1 then
local savedData = PlayerGetScriptSavedData(14)
local timesBusted = PlayerGetScriptSavedData(3) + 1
return PlayerGetScriptSavedData(11) == 1
return PlayerGetScriptSavedData(12) == 1
return PlayerGetScriptSavedData(23) ~= 1 and 1 or 0
shared.ChemistrySetLastTimeUsed = PlayerGetScriptSavedData(25)
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetInt
mov eax, dword ptr [eax*4+0xC1AFB8]
push eax
push esi
call LuaParam::PushInt
add esp, 0x10
mov eax, 0x1
pop esi
ret
CLIENT
Returns true if the player has control. Functions like PlayerSetControl can disable control, as well as other things in the game.
elseif not PlayerHasItem(321) then
elseif PlayerHasItem(305) and 50 <= weaponroll then
elseif PlayerHasItem(328) then
if bChocolatesSpawned and not bPlayerHasChocolates and PlayerHasItem(478) then
if bComicSpawned and PlayerHasItem(504) then
if bPlayerWasGivenCherryBomb and not PlayerHasItem(301) then
if bPlayerWasGivenChocolates and not PlayerHasItem(478) and not F_PedIsDead(gPlayer) then
if bPlayerWasGivenEggs and not PlayerHasItem(312) and not F_PedIsDead(gPlayer) then
if gObjective and (PlayerHasWeapon(321) or PlayerHasItem(321)) then
if isMission201 and PlayerHasItem(528) then
if IsMissionCompleated("C_Chem_4") and PlayerHasItem(307) and PedGetAmmoCount(gPlayer, 308) < 12 then
if not bGotCandy and PlayerHasItem(478) then
if not PlayerHasItem(321) and not PedMePlaying(gPlayer, "DrawMedTag", true) then
if not PlayerHasItem(321) then
if not PlayerHasItem(328) then
if not PlayerHasItem(522) then
if not PlayerHasItem(modelCutters) then
if PlayerGetMoney() < 100 and not shared.playerShopping and (not PlayerHasItem(479) or ItemGetCurrentNum(495) < gTicketsRequired) then
if PlayerGetMoney() < SPRAY_PAINT_COST and not PlayerHasItem(321) and not shared.playerShopping then
if PlayerHasItem(306) then
if PlayerHasItem(307) and 50 <= weaponroll then
if PlayerHasItem(307) then
if PlayerHasItem(321) then
if PlayerHasItem(426) then
if PlayerHasItem(478) then
if PlayerHasItem(479) then
if PlayerHasItem(497) then
if PlayerHasItem(528) then
if PlayerHasWeapon(321) or PlayerHasItem(321) then
if PlayerHasWeapon(326) or PlayerHasItem(326) then
return not PlayerHasItem(320)
return PlayerHasItem(312)
return PlayerHasItem(475)
while not PlayerHasItem(526) do
while not PlayerHasItem(modelDiary) do
while not PlayerIsInAreaObject(idZoe, 2, 3, 0, 0) and PlayerHasItem(modelCutters) do
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x8
cmp eax, dword ptr [0xA136B0]
mov byte ptr [esp+0x4], 0x0
jl 0x27
cmp eax, dword ptr [0xA136B4]
jnle 0x1F
mov ecx, dword ptr [0xC1AEA8]
mov ecx, dword ptr [ecx+0x1C4]
push eax
call 0x45CF40
test eax, eax
setnz dl
mov byte ptr [esp+0x4], dl
jmp 0x1F
cmp eax, dword ptr [0xA136B8]
jl 0x17
cmp eax, dword ptr [0xA136BC]
jnle 0xF
push eax
call 0x541E90
add esp, 0x4
mov byte ptr [esp+0x4], al
mov eax, dword ptr [esp+0x4]
push eax
push esi
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
pop esi
pop ecx
ret
-- never used
sub esp, 0x1C
push esi
mov esi, dword ptr [esp+0x24]
push 0x0
push esi
call LuaParam::GetString
add esp, 0x8
lea edx, ptr [esp+0x8]
mov cl, byte ptr [eax]
mov byte ptr [edx], cl
add eax, 0x1
add edx, 0x1
test cl, cl
jnz 0xFFFFFFF4
mov ecx, dword ptr [0xC1AA04]
lea eax, ptr [esp+0x8]
push eax
call 0x45BF20
mov byte ptr [esp+0x4], al
mov ecx, dword ptr [esp+0x4]
push ecx
push esi
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
pop esi
add esp, 0x1C
ret
elseif not gPlayerHasBall and PlayerHasWeapon(400) then
elseif not gPlayerHasBear and PlayerHasWeapon(363) then
elseif not gSpokeNo2 and (PedIsPlaying(gPlayer, "/Global/pxCshld/PedPropsActions", true) or PlayerHasWeapon(387)) then
elseif not PlayerHasWeapon(363) then
elseif PlayerHasWeapon(342) then
elseif PlayerHasWeapon(387) then
elseif PlayerHasWeapon(403) then
if bCheckForPoopBag and not PlayerHasWeapon(399) then
if gObjective and (PlayerHasWeapon(321) or PlayerHasItem(321)) then
if gPlayerHasBall and not PlayerHasWeapon(400) and not PlayerIsInAreaXYZ(x1, y1, z1, 0.75, 0) then
if gPlayerHasBear and not PlayerHasWeapon(363) then
if not bGotBalloon and PlayerHasWeapon(383) then
if not bPickedUpRat and PlayerHasWeapon(346) then
if not gStartingUp and (PlayerHasWeapon(342) or PlayerHasWeapon(402) or PlayerHasWeapon(401) or PlayerHasWeapon(384) or PedIsHit(edgar, 2, 1000) or GetTimer() - gTimeFinalStart > 8000) then
if not gWeaponRemark and PlayerHasWeapon(342) then
if not ObjFlag and PlayerHasWeapon(363) then
if not PlayerHasWeapon(313) and PlayerIsInAreaXYZ(bx, by, bz, 3, 1) then
if not PlayerHasWeapon(320) then
if not PlayerHasWeapon(328) then
if not PlayerHasWeapon(342) then
if not PlayerHasWeapon(387) then
if not PlayerHasWeapon(391) then
if not PlayerHasWeapon(403) then
if not PlayerHasWeapon(player.weapon.model) then
if not secondTutorial and not PlayerHasWeapon(387) and not PlayerHasWeapon(388) then
if PlayerHasWeapon(321) or PlayerHasItem(321) then
if PlayerHasWeapon(325) then
if PlayerHasWeapon(326) or PlayerHasItem(326) then
if PlayerHasWeapon(363) then
if PlayerHasWeapon(381) then
if PlayerHasWeapon(385) then
if PlayerHasWeapon(399) then
if PlayerHasWeapon(403) then
if PlayerHasWeapon(418) then
if PlayerIsInTrigger(TRIGGER._1_10_ATFURNACE) and PlayerHasWeapon(326) and not bMessageShown then
return PlayerHasWeapon(315) or PlayerHasWeapon(311)
return PlayerHasWeapon(weapon)
while not PlayerHasWeapon(399) do
while not PlayerHasWeapon(weapon) do
while PlayerHasWeapon(weapon) do
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetInt
mov ecx, dword ptr [0xC1AEA8]
mov edx, dword ptr [ecx+0x1D0]
movsx ecx, word ptr [edx+0x10E]
cmp ecx, eax
setz dl
push edx
push esi
call LuaParam::PushBool
add esp, 0x10
mov eax, 0x1
pop esi
ret
PlayerIgnoreTargeting(false)
PlayerIgnoreTargeting(true)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetBool
mov ecx, dword ptr [0xC674B4]
mov byte ptr [ecx+0x20], al
add esp, 0x8
xor eax, eax
ret
PlayerIncPunishmentPoints(120 - PlayerGetPunishmentPoints())
PlayerIncPunishmentPoints(155)
mov eax, dword ptr [esp+0x4]
push esi
mov esi, dword ptr [0xC1AEA8]
push 0x0
push eax
call LuaParam::GetInt
mov edx, dword ptr [esi]
add esp, 0x8
push eax
mov eax, dword ptr [edx+0xB4]
mov ecx, esi
call 0x5D1E43
xor eax, eax
pop esi
ret
elseif PlayerIsInAnyVehicle() and idGirlBikeBlip then
if bGordChasingPlayer and not bGoneFarEnough and PlayerIsInTrigger(TRIGGER._2_06_BIKEZONE) and not bGordGoingForBike and not PlayerIsInAnyVehicle() then
if bStoreBoughtChocolates and PlayerIsInAreaObject(idEunice.id, 2, 1.5, 0) and not PlayerIsInAnyVehicle() then
if F_CheckDistance(assistant, gPlayer) and not PlayerIsInAnyVehicle() and PedGetWeapon(gPlayer) ~= 437 then
if not bLaunchedBikeTutorial and not bBikeTutorialShown and PlayerIsInAnyVehicle() then
if not bZoeRunAway and PlayerIsInTrigger(TRIGGER._5_05_RUNAWAYZOE) and PlayerIsInAnyVehicle() and VehicleIsModel(VehicleFromDriver(gPlayer), 284) then
if not PlayerIsInAnyVehicle() then
if PlayerIsInAnyVehicle() == false then
if PlayerIsInAnyVehicle() or GetTimer() - gRussellTimer > 10000 then
if PlayerIsInAnyVehicle() then
if PlayerIsInAreaXYZ(x, y, z, 2, 0) and not PlayerIsInAnyVehicle() and PedGetWeapon(gPlayer) ~= 437 then
if PlayerIsInTrigger(TRIGGER._5_05_LASTPOTTY) and PlayerIsInAnyVehicle() and VehicleIsModel(VehicleFromDriver(gPlayer), 284) then
while not (PlayerIsInAnyVehicle() or PlayerIsInTrigger(TRIGGER._AMB_BUSINESS_AREA)) do
while not PlayerIsInAnyVehicle() do
while PlayerIsInAnyVehicle() do
push ecx
push ecx
mov eax, esp
push 0x0
mov dword ptr [eax], 0x3
call 0x5C7380
cmp dword ptr [eax+0x1554], 0x0
mov edx, dword ptr [esp+0x10]
setnz al
mov byte ptr [esp+0x8], al
mov ecx, dword ptr [esp+0x8]
push ecx
push edx
call LuaParam::PushBool
mov eax, 0x1
add esp, 0x14
ret
elseif not bAlgieFollows and PlayerIsInAreaObject(ScenarioPed, 2, 4, 0) then
elseif not bChristyFollows and PlayerIsInAreaObject(ScenarioPed, 2, 4, 0) then
elseif not bLadyFollows and PlayerIsInAreaObject(ScenarioPed, 2, 4, 0) then
elseif not bSaidSpeech and PlayerIsInAreaObject(gNerds[1], 2, 3.5, 0) then
elseif not F_PedIsDead(tblGord.id) and bOutOfRange and PlayerIsInAreaObject(tblGord.id, 2, gTooFarFromGord, 0) then
elseif PlayerIsInAreaObject(gHobo, 2, 2, 0) then
elseif VehicleExists(shared.gGoKart) and not PlayerIsInAreaObject(shared.gGoKart, 1, GOKART_KEEP_RADIUS, 0) and AreaGetVisible() == 0 then
if 0 < ItemGetCurrentNum(modelDiary) and PlayerIsInAreaObject(beatrice, 2, 3, 0) then
if bAlgieFollows and not PlayerIsInAreaObject(ScenarioPed, 2, 8, 0) then
if bChristyFollows and not PlayerIsInAreaObject(ScenarioPed, 2, 8, 0) then
if bGoToStage3 and PlayerIsInAreaObject(pedEarnest.id, 2, 3, 0) then
if bLadyFollows and not PlayerIsInAreaObject(ScenarioPed, 2, 8, 0) then
if bReturnCam and PlayerIsInAreaObject(Petey, 2, 12, 0) then
if bReturnChocolates and bPlayerHasChocolates and PlayerIsInAreaObject(pedEunice.id, 2, 3, 0) then
if bSecondFightCreated and gPeanut and (PlayerIsInAreaObject(gPeanut, 2, 20, 0) or PedIsHit(gPeanut, 2, 1000) and PedGetWhoHitMeLast(gPeanut) == gPlayer) then
if bStartedSpeaking1 and not bReleaseToPOI1 and not PlayerIsInAreaObject(tFirstFloorTable.gord.id, 2, 8, 0) then
if bStartedSpeaking2 and not bReleaseToPOI2 and not PlayerIsInAreaObject(tSecondFloorTable.tad.id, 2, 10, 0) then
if bStartedSpeaking3 and not bReleaseToPOI3 and not PlayerIsInAreaObject(tThirdFloorTable.chad.id, 2, 8, 0) then
if bStoreBoughtChocolates and PlayerIsInAreaObject(idEunice.id, 2, 1.5, 0) and not PlayerIsInAnyVehicle() then
if CounterGetCurrent() == 3 and PlayerIsInAreaObject(johnny, 2, 4, 0) then
if gGreaserAttacker ~= nil and PedIsValid(gGreaserAttacker) and (PlayerIsInAreaObject(gGreaserAttacker, 2, 15, 0) or PedIsHit(gGreaserAttacker, 2, 1000) and PedGetWhoHitMeLast(gGreaserAttacker) == gPlayer) then
if gRussell and PlayerIsInAreaObject(gRussell, 2, 5, 0) and PlayerIsInTrigger(TRIGGER._6_02_WONDERMEATS) then
if not bAlgieCleanupTags and (GetTimer() - nTimeAlgieWasAttacked > 30000 or not PlayerIsInAreaObject(algie, 2, 40, 0)) then
if not bAlgieWasAttackedAgain and bAlgieCleanupTags and (PedCanSeeObject(gPlayer, algie, 2) and PlayerIsInAreaObject(algie, 2, 10, 0) or PedIsHit(algie, 2, 1000) and PedGetWhoHitMeLast(algie) == gPlayer) and 0 < PedGetHealth(algie) then
if not bMissionFail and PlayerIsInAreaObject(Edna, 2, 1, 0) then
if not bPlayerNearLola and PlayerIsInAreaObject(idLola, 2, 3.5, 0) then
if not bStartedSpeaking1 and not bFirstFloorFight and tFirstFloorTable.gord.id and tFirstFloorTable.gord.bAlive and PlayerIsInAreaObject(tFirstFloorTable.gord.id, 2, 6, 0) then
if not bStartedSpeaking2 and not bSecondFloorFight and tSecondFloorTable.tad.id and tSecondFloorTable.tad.bAlive and PlayerIsInAreaObject(tSecondFloorTable.tad.id, 2, 8, 0) then
if not bStartedSpeaking3 and not bThirdFloorFight and tThirdFloorTable.bryce.id and tThirdFloorTable.bryce.bAlive and PlayerIsInAreaObject(tThirdFloorTable.bryce.id, 2, 6, 0) then
if not client.delivered and client.findingPlayer and PlayerIsInAreaObject(client.id, 2, deliveryParam.handoff_proximity, 0) then
if not client.findingPlayer and PlayerIsInAreaObject(client.id, 2, deliveryParam.run_proximity, 0) then
if not F_PedIsDead(tblGord.id) and not bOutOfRange and not PlayerIsInAreaObject(tblGord.id, 2, gTooFarFromGord, 0) then
if not gEdnaFirstSpeech and PedIsValid(gEdna) and PlayerIsInAreaObject(gEdna, 2, 8, 0) then
if not msgStaffRoom and PlayerIsInAreaObject(idTeacher, 2, 20, 0) then
if not PlayerIsInAreaObject(client.id, 2, deliveryParam.handoff_limit, 0) then
if not PlayerIsInAreaObject(shared.gGoKart, 1, GOKART_KEEP_RADIUS, 0) and not VehicleIsInTrigger(shared.gGoKart, TRIGGER._WM_GOKARTCREATE) then
if not PlayerIsInAreaObject(sheet4Guard, 2, CROUCH_DISTANCE, 0) then
if not zoeAfterButton and gZoeLastPath and PlayerIsInAreaObject(idZoe, 2, 4, 0) then
if PedExists(pedId) and (PlayerIsInAreaObject(pedId, 2, 7, 0) or PedIsHit(pedId, 2, 1000)) then
if PedGetAmmoCount(gPlayer, 301) == 0 and PlayerIsInAreaObject(tblPrank[4].id, 2, 1, 0) and IsButtonPressed(7, 0) and IsButtonPressed(10, 0) and bGiveWeapon then
if PedGetAmmoCount(gPlayer, 309) == 0 and PlayerIsInAreaObject(tblPrank[8].id, 2, 1, 0) and IsButtonPressed(7, 0) and IsButtonPressed(10, 0) and bGiveWeapon then
if PedGetAmmoCount(gPlayer, 312) == 0 and PlayerIsInAreaObject(tblPrank[2].id, 2, 1, 0) and IsButtonPressed(7, 0) and IsButtonPressed(10, 0) and bGiveWeapon then
if PedGetAmmoCount(gPlayer, 349) == 0 and PlayerIsInAreaObject(tblPrank[7].id, 2, 1, 0) and IsButtonPressed(7, 0) and IsButtonPressed(10, 0) and bGiveWeapon then
if PedGetAmmoCount(gPlayer, 372) == 0 and PlayerIsInAreaObject(tblPrank[6].id, 2, 1, 0) and IsButtonPressed(7, 0) and IsButtonPressed(10, 0) and bGiveWeapon then
if PedGetAmmoCount(gPlayer, 394) == 0 and PlayerIsInAreaObject(tblPrank[5].id, 2, 1, 0) and IsButtonPressed(7, 0) and IsButtonPressed(10, 0) and bGiveWeapon then
if PedIsValid(beatrice) and 0 < ItemGetCurrentNum(modelDiary) and PlayerIsInAreaObject(beatrice, 2, 3, 0) then
if phillips and PedIsValid(phillips) and PlayerIsInAreaObject(phillips, 2, 3.5, 0) and PedGetFlag(gPlayer, 1) then
if PlayerIsInAreaObject(algie, 2, 4, 0) and PedIsPlaying(gPlayer, "/Global/TagSmall/PedPropsActions/IsPlayer", true) then
if PlayerIsInAreaObject(DirtyCop, 2, 7.5, 0) then
if PlayerIsInAreaObject(Edna, 2, 1, 0) then
if PlayerIsInAreaObject(gBeatrice, 2, 3, 0) then
if PlayerIsInAreaObject(gBlockers1[2], 2, 6, 0) then
if PlayerIsInAreaObject(gCheater01, 2, 7.5, 0) then
if PlayerIsInAreaObject(gHobo, 2, 5, 0) and GetTimer() - gAchieveReveiverTime > 7000 then
if PlayerIsInAreaObject(idZoe, 2, 2, 0, 0) then
if PlayerIsInAreaObject(pedBurtonStage3.id, 2, 3.5, 0) then
if PlayerIsInAreaObject(sheet4Guard, 2, MARBLE_DISTANCE, 0) and not bMarblesMaxed and F_PedExists(sheet4Guard) and bHasMarbles then
if PlayerIsInAreaObject(tblGord.id, 2, playerSeeGordRange, 0) and not tblStageState.playerSawPrep then
if PlayerIsInAreaObject(tblPrank[3].id, 2, 1.25, 0) and IsButtonPressed(7, 0) and IsButtonPressed(10, 0) and bGiveWeapon then
if TimerPassed(gTauntTimer) and PlayerIsInAreaObject(sheet4Guard, 2, TAUNT_DISTANCE, 0) then
return PlayerIsInAreaObject(gMelvin, 2, 3, 0)
return PlayerIsInAreaObject(ped, 2, 2, 0)
while not (bSheet4GuardHit or PlayerIsInAreaObject(sheet4Guard, 2, FLEE_DISTANCE, 0)) do
while not (PlayerIsInAreaObject(sheet4Guard, 2, FLEE_DISTANCE, 0) or bSheet4GuardHit) do
while not PlayerIsInAreaObject(Beatrice, 2, 1, 0) do
while not PlayerIsInAreaObject(edna, 2, 7, 0, 0) do
while not PlayerIsInAreaObject(gPrefect1, 2, 1.5, 0) do
while not PlayerIsInAreaObject(idEunice.id, 2, 0.8, 0) do
while not PlayerIsInAreaObject(idZoe, 2, 3, 0, 0) and PlayerHasItem(modelCutters) do
while not PlayerIsInAreaObject(idZoe, 2, 8, 0) do
while not PlayerIsInAreaObject(johnny, 2, 0.8, 0) do
while not PlayerIsInAreaObject(mandy, 2, 0.8, 0) do
while not PlayerIsInAreaObject(pedBurtonStage3.id, 2, 0.8, 0) do
sub esp, 0x28
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x38]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetInt
push 0x2
push esi
mov ebp, eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x34], st
push 0x3
push esi
call LuaParam::GetInt
push 0x0
push 0x0
push ebp
push edi
mov ebx, eax
mov byte ptr [esp+0x48], 0x0
call 0x5C28D0
add esp, 0x30
test eax, eax
jz 0xE8
push ebp
lea eax, ptr [esp+0x30]
push edi
push eax
call 0x5C2970
push esi
or edi, 0xFFFFFFFF
mov byte ptr [esp+0x24], 0x0
call LuaParam::GetParamCount
add esp, 0x10
cmp eax, 0x5
jl 0xF
push 0x4
push esi
call LuaParam::GetInt
add esp, 0x8
mov edi, eax
push esi
call LuaParam::GetParamCount
add esp, 0x4
cmp eax, 0x6
jl 0x11
push 0x5
push esi
call LuaParam::GetBool
add esp, 0x8
mov byte ptr [esp+0x14], al
fldz
push esi
fstp dword ptr [esp+0x14], st
call LuaParam::GetParamCount
add esp, 0x4
cmp eax, 0x7
jl 0x1D
push 0x6
push esi
call LuaParam::GetFloat
fmul st, qword ptr [0x900160]
add esp, 0x8
fdiv st, qword ptr [0x900158]
fstp dword ptr [esp+0x10], st
mov ecx, dword ptr [esp+0x14]
fldz
push 0x1
fst dword ptr [esp+0x24], st
push 0x0
fstp dword ptr [esp+0x2C], st
fld st, dword ptr [esp+0x18]
push ecx
push 0xFFFFFFFF
fstp dword ptr [esp+0x38], st
fld st, dword ptr [esp+0x2C]
push edi
lea edx, ptr [esp+0x34]
push edx
push ebx
sub esp, 0x1C
fst dword ptr [esp+0x18], st
mov eax, esp
fst dword ptr [esp+0x14], st
fstp dword ptr [esp+0x10], st
fld st, dword ptr [esp+0x6C]
fstp dword ptr [esp+0xC], st
fld st, dword ptr [esp+0x68]
fstp dword ptr [esp+0x8], st
fld st, dword ptr [esp+0x64]
mov dword ptr [eax], 0x3
fstp dword ptr [esp+0x4], st
push 0x0
push 0x1
call 0x5C2A70
add esp, 0x40
mov byte ptr [esp+0x18], al
mov eax, dword ptr [esp+0x18]
push eax
push esi
call LuaParam::PushBool
add esp, 0x8
pop edi
pop esi
pop ebp
mov eax, 0x1
pop ebx
add esp, 0x28
ret
elseif (not PlayerIsInAreaXYZ(pX, pY, pZ, 1, 0) or not PedIsFacingObject(gPlayer, ScenarioPed, 2, 60)) and bLockThePed then
elseif 0 < PlayerGetMoney() and PlayerIsInAreaXYZ(-466.2011, -42.3588, 9.7998, 1, 7) then
elseif bGiftedEunice and not bEuniceShmecked and not PlayerIsInAreaXYZ(kissX, kissY, kissZ, 1, 0) then
elseif bNextCrumb and PlayerIsInAreaXYZ(crumbX, crumbY, crumbZ, 7.5, 7) then
elseif gOutOfMarbles and (PlayerIsInAreaXYZ(mrx, mry, mrz, 1, 0) or PedGetAmmoCount(gPlayer, 349) > 0) then
elseif MissionActiveSpecific("1_02B") and PlayerIsInAreaXYZ(-604, -304.8, 0, 5, 0) then
elseif not bFlowerDrop and PlayerIsInAreaXYZ(grave_x, grave_y, grave_z, 1.5, 7) then
elseif not bPlayerAtGirlsDorm and PlayerIsInAreaXYZ(px, py, pz, 5, 0) then
elseif not bPlayerAtLibrary and PlayerIsInAreaXYZ(areax, areay, areaz, 5, 0) then
elseif not gPlayerFlagrant and PlayerIsInAreaXYZ(x1, y1, z1, 3, 0) then
elseif not gPlayerFlagrant or not PlayerIsInAreaXYZ(x1, y1, z1, 1, 7) then
elseif not gSkipAggression and IsButtonPressed(9, 0) and PlayerIsInAreaXYZ(csX, csY, csZ, 1, 0) then
elseif not PlayerIsInAreaXYZ(cEntry.px, cEntry.py, cEntry.pz, 3, 0) then
elseif not tree.deleted and tree.fallen and not PlayerIsInAreaXYZ(tree.x, tree.y, tree.z, treeResetRange, 0) then
elseif PlayerIsInAreaXYZ(c2x, c2y, c2z, 30, 0) then
elseif tree.deleted and PlayerIsInAreaXYZ(tree.x, tree.y, tree.z, treeResetRange, 0) then
if bControlSwitchCorona and PlayerIsInAreaXYZ(controlX, controlY, controlZ, 10, 7) and not bJohnnyFree then
if bGiftedEunice and not bEuniceShmecked and bEuniceWithPlayer and PlayerIsInAreaXYZ(kissX, kissY, kissZ, 1, 0) then
if bJohnnyFree and PlayerIsInAreaXYZ(ex, ey, ez, 1, 7) then
if F_CheckClock() and PlayerIsInAreaXYZ(cx, cy, cz, 1, gCoronaType) then
if gPlayerFlagrant and not PlayerIsInAreaXYZ(x1, y1, z1, 3, 0) then
if gPlayerHasBall and not PlayerHasWeapon(400) and not PlayerIsInAreaXYZ(x1, y1, z1, 0.75, 0) then
if gPlayerHasBall and PlayerIsInAreaXYZ(x1, y1, z1, 0.5, 7) then
if gSpecialStore and PlayerIsInAreaXYZ(clx, cly, clz, 1, gCoronaTypeA) then
if IsMissionAvailable("2_06") and not MissionActive() and ClockGet() >= 8 and ClockGet() < 20 and not shared.b2_06Failed and not shared.bMovieTicketLine and PlayerIsInAreaXYZ(346.873, 218.43, 4.95147, 50, 0) then
if MissionTimerHasFinished() or PlayerIsInAreaXYZ(tempX, tempY, tempZ, 2, 0) then
if not bEnterTenements and PlayerIsInAreaXYZ(windowX, windowY, windowZ, 1, 7) then
if not gAngryJocks and PlayerIsInAreaXYZ(ax, ay, az, 10, 0) then
if not gClothing and F_CheckPedNotInGrapple(gPlayer) and PlayerIsInAreaXYZ(cx, cy, cz, 1, 6) then
if not gClothing and F_CheckPedNotInGrapple(gPlayer) and PlayerIsInAreaXYZ(cx, cy, cz, 1, 6, 90) then
if not gClothing and not gClassIsAvailable and PlayerIsInAreaXYZ(cx, cy, cz, 1, gCoronaType, 180) then
if not gClothing and PlayerIsInAreaXYZ(cx, cy, cz, 1, 6) then
if not gPlayerNearBag and PlayerIsInAreaXYZ(x1, y1, z1, 1.5, 0) then
if not gPlayerNearDog and PlayerIsInAreaXYZ(x1, y1, z1, 18, 0) then
if not gStoreLocked and F_CheckPedNotInGrapple(gPlayer) and PlayerGetPunishmentPoints() <= 0 and PlayerIsInAreaXYZ(sX, sY, sZ, 1, 6, 225) then
if not photo.taken and PlayerIsInAreaXYZ(photo.px, photo.py, photo.pz, 1, 0) then
if not PlayerHasWeapon(313) and PlayerIsInAreaXYZ(bx, by, bz, 3, 1) then
if not PlayerIsInAreaXYZ(csX, csY, csZ, 1, 0) then
if not PlayerIsInAreaXYZ(mrx, mry, mrz, 1, 0) and not PickupIsPickedUp(gOutOfMarbles) then
if not PlayerIsInAreaXYZ(x, y, z, 10, 0) then
if not PlayerIsInAreaXYZ(x, y, z, 15, 0) then
if not PlayerIsInAreaXYZ(x, y, z, 8, 0) then
if not PlayerIsInAreaXYZ(x1, y1, z1, 7, 0) then
if not tree.pedSpawned and PlayerIsInAreaXYZ(tree.x, tree.y, tree.z, 100, 0) then
if PlayerIsInAreaXYZ(-622.796, -74.4177, 59.6111, 1, 7) or PlayerIsInAreaXYZ(-672.281, -77.3737, 59.6111, 1, 7) then
if PlayerIsInAreaXYZ(49.926, -564.06, 32.6076, 1, 0) then
if PlayerIsInAreaXYZ(bouyX, bouyY, bouyZ, 2, 7) then
if PlayerIsInAreaXYZ(bx, by, 0.289442, 1, 0) then
if PlayerIsInAreaXYZ(bx, by, 6.46825, 1, 0) then
if PlayerIsInAreaXYZ(bx, by, bz, 1, 1) then
if PlayerIsInAreaXYZ(bx, by, bz, 1, 7) then
if PlayerIsInAreaXYZ(bx, by, bz, 2.5, 1) then
if PlayerIsInAreaXYZ(c1x, c1y, c1z, 30, 0) then
if PlayerIsInAreaXYZ(ceX, ceY, ceZ, 1, 0) then
if PlayerIsInAreaXYZ(cx, cy, cz, 0.5, 1) then
if PlayerIsInAreaXYZ(delX, delY, delZ, 20, 0) then
if PlayerIsInAreaXYZ(dockX, dockY, dockZ, 4, 7) then
if PlayerIsInAreaXYZ(freak.x, freak.y, freak.z, 10, 0) then
if PlayerIsInAreaXYZ(gardenX, gardenY, gardenZ, 1.5, 7) then
if PlayerIsInAreaXYZ(grave_x, grave_y, grave_z, 1.5, 7) then
if PlayerIsInAreaXYZ(gTX, gTY, gTZ, 7, 0) then
if PlayerIsInAreaXYZ(gX, gY, gZ, 2, 7) then
if PlayerIsInAreaXYZ(Locker_x, Locker_y, Locker_z, 1, 0) and PAnimIsPlaying(TRIGGER._NLOCK01B05, "/Global/NLockA/Locked", false) then
if PlayerIsInAreaXYZ(Locker_x, Locker_y, Locker_z, 1, 0) and PAnimIsPlaying(TRIGGER._NLOCK02B03, "/Global/NLockA/Locked", false) then
if PlayerIsInAreaXYZ(Locker_x, Locker_y, Locker_z, 2, 0) and not PAnimIsPlaying(TRIGGER._NLOCK01B05, "/Global/NLockA/Locked", false) then
if PlayerIsInAreaXYZ(Locker_x, Locker_y, Locker_z, 2, 0) and not PAnimIsPlaying(TRIGGER._NLOCK02B03, "/Global/NLockA/Locked", false) then
if PlayerIsInAreaXYZ(pX, pY, pZ, 1, 0) and PedIsFacingObject(gPlayer, ScenarioPed, 2, 60) and not bLockThePed then
if PlayerIsInAreaXYZ(shipX, shipY, shipZ, 5, 0) then
if PlayerIsInAreaXYZ(x, y, z, 0.75, 0) then
if PlayerIsInAreaXYZ(x, y, z, 0.8, 7) then
if PlayerIsInAreaXYZ(x, y, z, 1, 0) then
if PlayerIsInAreaXYZ(x, y, z, 1, 7) or bDebug then
if PlayerIsInAreaXYZ(x, y, z, 1, 7) then
if PlayerIsInAreaXYZ(x, y, z, 1, CORONATYPE_NEXTCLASS) then
if PlayerIsInAreaXYZ(x, y, z, 1.2, 7) then
if PlayerIsInAreaXYZ(x, y, z, 1.5, 0) then
if PlayerIsInAreaXYZ(x, y, z, 15, 0) then
if PlayerIsInAreaXYZ(x, y, z, 2, 0) and not PlayerIsInAnyVehicle() and PedGetWeapon(gPlayer) ~= 437 then
if PlayerIsInAreaXYZ(x, y, z, 2, 0) and PAnimIsPlaying(tag, "/Global/Tags/NotUseable/Tagged/", false) then
if PlayerIsInAreaXYZ(x, y, z, 2, 0) or PlayerIsInTrigger(TRIGGER._3_S11_PHILLIPS_CAR_STOP) then
if PlayerIsInAreaXYZ(x, y, z, 2, 0) then
if PlayerIsInAreaXYZ(x, y, z, 20, 0) then
if PlayerIsInAreaXYZ(x, y, z, 3, 7) and PedIsInAreaObject(ScenarioPed, Bike01, 1, 4, 0) and not bToldToGetOff and PlayerIsInVehicle(Bike01) then
if PlayerIsInAreaXYZ(x, y, z, 4, 0) and PedIsPlaying(gPlayer, "/Global/Door/PedPropsActions", true) then
if PlayerIsInAreaXYZ(x, y, z, 4, 0) and PedIsPlaying(gPlayer, "/Global/StealthDoor/PedPropActions/Unoccupied/NoAuthorityInView/RunInside/CloseDoor/WaitInside", true) then
if PlayerIsInAreaXYZ(x, y, z, 5, 0) then
if PlayerIsInAreaXYZ(x, y, z, proximity, coronatype) then
if PlayerIsInAreaXYZ(x1, y1, z1 + 1.5, 6.75, 0) then
if PlayerIsInAreaXYZ(x1, y1, z1, 0.95, 0) then
if PlayerIsInAreaXYZ(x1, y1, z1, 1, 0) then
if PlayerIsInAreaXYZ(x1, y1, z1, 1, 7) then
if PlayerIsInAreaXYZ(x1, y1, z1, 2, 0) then
if PlayerIsInAreaXYZ(x1, y1, z1, 3, 0) then
if PlayerIsInAreaXYZ(x1, y1, z1, 6, 0) then
if shared.b2_06Failed and not PlayerIsInAreaXYZ(346.873, 218.43, 4.95147, 55, 0) then
if shared.bMovieTicketLine and (not (not MissionActive() and PlayerIsInAreaXYZ(346.873, 218.43, 4.95147, 55, 0)) or not IsMissionAvailable("2_06")) then
if storeAvailable and F_CheckClock() and not PedInConversation(gPlayer) and PlayerIsInAreaXYZ(x, y, z, 0.5, 9) then
if train.path and not train.moving and PlayerIsInAreaXYZ(train.x, train.y, train.z, train.proximity, 0) then
PlayerIsInAreaXYZ(cx, cy, cz, 0.75, 7)
PlayerIsInAreaXYZ(DropX, DropY, DropZ, 1, 1)
PlayerIsInAreaXYZ(loc[1], loc[2], loc[3], 0.75, 7)
PlayerIsInAreaXYZ(tempX, tempY, tempZ, 2, 9)
PlayerIsInAreaXYZ(x, y, z, 0.75, 7)
PlayerIsInAreaXYZ(x, y, z, 2, 7)
PlayerIsInAreaXYZ(x, y, z, 3, 7)
PlayerIsInAreaXYZ(x, y, z, 4, 0)
PlayerIsInAreaXYZ(x, y, z, 4, 7)
while not (not (MissionActive() and bGetBack) or PlayerIsInAreaXYZ(theaterX, theaterY, theaterZ, 7.5, 0)) do
while not (PlayerIsInAreaXYZ(crumbX, crumbY, crumbZ, 2, 7) or PlayerIsInTrigger(TRIGGER._3_S11_PHILLIPS_CAR_STOP)) do
while not (PlayerIsInAreaXYZ(x, y, z, 10, 0) and PedIsOnVehicle(gPlayer)) do
while not PlayerIsInAreaXYZ(crumbX, crumbY, crumbZ, 2, 7) do
while not PlayerIsInAreaXYZ(tempX, tempY, tempZ, 150, 0) do
while not PlayerIsInAreaXYZ(x, y, z, 1, 0) do
while not PlayerIsInAreaXYZ(x, y, z, 40, 0) do
while not PlayerIsInAreaXYZ(x1, y1, z1, 50, 7) do
while PlayerIsInAreaXYZ(x, y, z, 100, 7) do
sub esp, 0x20
push esi
mov esi, dword ptr [esp+0x28]
push edi
push 0x0
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x20], st
push 0x1
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x24], st
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x28], st
push 0x3
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x2C], st
push 0x4
push esi
call LuaParam::GetInt
fldz
push esi
fstp dword ptr [esp+0x34], st
mov edi, eax
call LuaParam::GetParamCount
add esp, 0x2C
cmp eax, 0x6
jl 0x1D
push 0x5
push esi
call LuaParam::GetFloat
fmul st, qword ptr [0x900160]
add esp, 0x8
fdiv st, qword ptr [0x900158]
fstp dword ptr [esp+0x8], st
fldz
push 0x1
push 0x0
push 0x0
push 0xFFFFFFFF
push ecx
mov eax, esp
mov dword ptr [eax], 0xFFFFFFFF
fst dword ptr [esp+0x30], st
fstp dword ptr [esp+0x34], st
lea eax, ptr [esp+0x30]
fld st, dword ptr [esp+0x1C]
push eax
fstp dword ptr [esp+0x3C], st
push edi
fld st, dword ptr [esp+0x28]
sub esp, 0x1C
fst dword ptr [esp+0x18], st
mov eax, esp
fst dword ptr [esp+0x14], st
mov dword ptr [eax], 0x3
fstp dword ptr [esp+0x10], st
fld st, dword ptr [esp+0x48]
fstp dword ptr [esp+0xC], st
fld st, dword ptr [esp+0x4C]
fstp dword ptr [esp+0x8], st
fld st, dword ptr [esp+0x50]
fstp dword ptr [esp+0x4], st
push 0x0
push 0x1
call 0x5C2A70
mov byte ptr [esp+0x58], al
mov ecx, dword ptr [esp+0x58]
push ecx
push esi
call LuaParam::PushBool
add esp, 0x48
pop edi
mov eax, 0x1
pop esi
add esp, 0x20
ret
if not bAllowPunishmentToDrop and PlayerIsInStealthProp() then
if not bReleasePrefect and PlayerIsInStealthProp() then
if PlayerIsInStealthProp() then
if PlayerIsInTrigger(TRIGGER._2_S05_TREE) and PlayerIsInStealthProp() then
while not (not PlayerIsInTrigger(TRIGGER._5_09_CITYHALL_GROUNDS) or PlayerIsInStealthProp()) do
while PlayerIsInStealthProp() do
mov eax, dword ptr [0xC1AEA8]
movzx ecx, byte ptr [eax+0x1E91]
mov edx, dword ptr [esp+0x4]
push ecx
push edx
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
ret
elseif (PlayerIsInTrigger(TRIGGER._2_03_REARGATEAREA) or bKeyMasterHit) and not bHasKey then
elseif bGirlsCop and not PlayerIsInTrigger(TRIGGER._GIRLSTRIG) and (gCop1 or gCop2 or gCopCar) then
elseif failTimer == 0 and not PlayerIsInTrigger(TRIGGER._306POORAREA) then
elseif gInsideBathroom and not PlayerIsInTrigger(TRIGGER._1_S01_BATHROOM) then
elseif gInsideCafe and not PlayerIsInTrigger(TRIGGER._1_S01_CAFE) then
elseif gInsideCorona and not PlayerIsInTrigger(TRIGGER._IBOXING_FAKECORONATRIGGER) then
elseif gInsideTrophy and not PlayerIsInTrigger(TRIGGER._1_S01_BOTTLE_TRIG_CASE) then
elseif gLackey[9].bActivated == true and (bFireBathroomNIS or PlayerIsInTrigger(TRIGGER._CHANGEROOM)) then
elseif gMidgetFight and not PlayerIsInTrigger(TRIGGER._FREAKSHOW_MIDGETS) then
elseif gPlayerInStore and not PlayerIsInTrigger(TRIGGER._ISCHOOL_STOREAREA) then
elseif gPunishmentOff and PlayerIsInTrigger(TRIGGER._COMICSHOP) then
elseif nodeID == 4 and PlayerIsInTrigger(TRIGGER._1_05B_AREASECONDFLOORBR) then
elseif not bAlleyWarning and not PlayerIsInTrigger(TRIGGER._FINALFIGHTTRIG) then
elseif not gPlayerInOmarTrigger and PlayerIsInTrigger(TRIGGER._5_07_OMARFIGHT) then
elseif not PlayerIsInTrigger(gameArea) then
elseif not PlayerIsInTrigger(TRIGGER._1_02B_BATHROOM) then
elseif not PlayerIsInTrigger(TRIGGER._1_08_CAFTRIG) and gLackey[8].bAlive == true and gLackey[8].ped ~= nil and PedIsValid(gLackey[8].ped) then
elseif not PlayerIsInTrigger(TRIGGER._1_11X2_SHITTARGET) then
elseif not PlayerIsInTrigger(TRIGGER._2_07_OUT_OF_AREA_WARN) then
elseif not PlayerIsInTrigger(TRIGGER._3_01_MISSIONAREA) then
elseif not PlayerIsInTrigger(TRIGGER._3_R06_KILL_ZONE) and not PedIsDead(damon) and damontable ~= {} then
elseif not PlayerIsInTrigger(TRIGGER._3_R06_KILL_ZONE) and not PedIsDead(dan) and dantable ~= {} then
elseif not PlayerIsInTrigger(TRIGGER._3_R06_KILL_ZONE) and not PedIsDead(kirby) and kirbytable ~= {} then
elseif not PlayerIsInTrigger(TRIGGER._4_01_GIRLSDORMBATHROOM) then
elseif not PlayerIsInTrigger(TRIGGER._4_06_LOAD_FIELD) and FieldLoaded then
elseif not PlayerIsInTrigger(TRIGGER._5_09_TOWERTOP) then
elseif not PlayerIsInTrigger(TRIGGER._6_03_WARNFAIL01) or PlayerIsInTrigger(TRIGGER._6_03_WARNFAIL02) or PlayerIsInTrigger(TRIGGER._6_03_WARNFAIL03) then
elseif not PlayerIsInTrigger(TRIGGER._AMB_BUSINESS_AREA) then
elseif not PlayerIsInTrigger(TRIGGER._AMBIENTEVENT1) and bPoliceCreated1 then
elseif not PlayerIsInTrigger(TRIGGER._ASYLUMPATROLS) then
elseif not PlayerIsInTrigger(TRIGGER._BOYSDORMCOURTYARD) then
elseif not PlayerIsInTrigger(TRIGGER._GIRLSDORMCOURTYARD) then
elseif PedCanSeeObject(entry, gPlayer, 3) and PlayerIsInTrigger(TRIGGER._TRIGGERBACKALLEY) then
elseif PlayerIsInTrigger(TRIGGER._1_02B_LOCKERMESSAGE02) then
elseif PlayerIsInTrigger(TRIGGER._1_04_SUPPRESSPARKINGPOP) and bSetWindows and gWindowsTimer <= GetTimer() and not bMakeEmHard then
elseif PlayerIsInTrigger(TRIGGER._1_05B_FIRSTFLOORAMBIENTON) then
elseif PlayerIsInTrigger(TRIGGER._1_05B_LOADSMOKE) then
elseif PlayerIsInTrigger(TRIGGER._2_05_FRONTEXIT) then
elseif PlayerIsInTrigger(TRIGGER._2_05_FRONTGATE) or PlayerIsInTrigger(TRIGGER._2_05_BACKGATE) then
elseif PlayerIsInTrigger(TRIGGER._2_05_TADSYARD) then
elseif PlayerIsInTrigger(TRIGGER._2_05_TREE01) then
elseif PlayerIsInTrigger(TRIGGER._2_05_TREE02) then
elseif PlayerIsInTrigger(TRIGGER._2_05_WALLBREAK01) then
elseif PlayerIsInTrigger(TRIGGER._2_05_WALLBREAK02) then
elseif PlayerIsInTrigger(TRIGGER._2_B_DRBRACE_DOOR) then
elseif PlayerIsInTrigger(TRIGGER._2_G2_PINKYANGRYFAIL) then
elseif PlayerIsInTrigger(TRIGGER._2_S02_CARINIT) and not bHattrickCarMade then
elseif PlayerIsInTrigger(TRIGGER._3_04_CORNELIUSCUT) then
elseif PlayerIsInTrigger(TRIGGER._3_B_STAGE_2_TRIGGER) and TriggerHandler == 6 then
elseif PlayerIsInTrigger(TRIGGER._3_S03_PARKINGLOT) then
elseif PlayerIsInTrigger(TRIGGER._4_S12_PEANUTBIKE) then
elseif PlayerIsInTrigger(TRIGGER._5_07_BARRICADENIS) then
elseif PlayerIsInTrigger(TRIGGER._5_B_CHEMCAMSHOT) then
elseif PlayerIsInTrigger(TRIGGER._5_B_CHEMCAMSHOT02) then
elseif PlayerIsInTrigger(TRIGGER._5_B_LADDERCAMSHOT02) then
elseif PlayerIsInTrigger(TRIGGER._5_B_LADDERCAMSHOT03) then
elseif PlayerIsInTrigger(TRIGGER._5_B_LIFTDOWN) and IsButtonPressed(9, 0) then
elseif PlayerIsInTrigger(TRIGGER._AMB_BUSINESS_AREA) then
elseif PlayerIsInTrigger(TRIGGER._FINALFIGHTTRIG) then
elseif PlayerIsInTrigger(TRIGGER._GIRLSBATHROOM1) or PlayerIsInTrigger(TRIGGER._GIRLSBATHROOM2) then
elseif PlayerIsInTrigger(TRIGGER._GIRLSTRIG) and not gCop1 then
elseif PlayerIsInTrigger(TRIGGER._GREASERS_JET01) then
elseif PlayerIsInTrigger(TRIGGER._GREASERS_JET02) then
elseif PlayerIsInTrigger(TRIGGER._GREASERS_JET03) then
elseif PlayerIsInTrigger(TRIGGER._GREASERS_JET04) then
elseif PlayerIsInTrigger(TRIGGER._GREASERS_JET05) then
elseif PlayerIsInTrigger(TRIGGER._HIGHGROUND) then
elseif PlayerIsInTrigger(TRIGGER._JOHNNYRAMBLE02) then
elseif PlayerIsInTrigger(TRIGGER._LOWCORONA) and PedIsPlaying(gPlayer, "/Global/Ladder/Ladder_Actions", true) then
elseif PlayerIsInTrigger(TRIGGER._PLAYER_ROOM) and timerGarySpeak + 10000 <= GetTimer() then
elseif PlayerIsInTrigger(TRIGGER._TF02_FIGHT2) then
elseif PlayerIsInTrigger(TRIGGER._ZONEBUSINESS) then
elseif PlayerIsInTrigger(TRIGGER._ZONEINDUSTRIAL) then
elseif PlayerIsInTrigger(TRIGGER._ZONEPOOR) then
elseif PlayerIsInTrigger(TRIGGER._ZONERICH) then
elseif TalkFive and PlayerIsInTrigger(TRIGGER._6_B_BELLS_TWO) then
elseif tblPrank[PrankToCreate].bOnDeck and PlayerIsInTrigger(tblPrank[PrankToCreate].trigger) then
elseif tree.pedSpawned and not tree.fallen and PlayerIsInTrigger(tree.fallTrigger) then
elseif Wave_Counter == 3 and PlayerIsInTrigger(TRIGGER._2_07_PREPPY_NINJA_TRIG) and PedIsValid(pedGord) then
if (not MissionActiveSpecific2("3_S11") or not MissionActiveSpecific("5_03")) and PlayerIsInTrigger(TRIGGER._ASYLUMPATROLS) then
if (PlayerIsInTrigger(TRIGGER._3_05_HAMMERWALL01) or PlayerIsInTrigger(TRIGGER._3_05_HAMMERWALL02) or PlayerIsInTrigger(TRIGGER._3_05_HAMMERWALL03) or PlayerIsInTrigger(TRIGGER._3_05_HAMMERWALL03) or PlayerIsInTrigger(TRIGGER._3_05_HAMMERWALL05)) and not WeaponEquipped(324) then
if AreaGetVisible() == 14 and PlayerIsInTrigger(TRIGGER._PLAYER_ROOM) then
if bGaryRoom00 and bGiveHints and PlayerIsInTrigger(TRIGGER._1_10_ROOM0) then
if bGaryRoom01 and bGiveHints and PlayerIsInTrigger(TRIGGER._1_10_ROOM1) then
if bGaryRoom02 and bGiveHints and PlayerIsInTrigger(TRIGGER._1_10_ROOM2) then
if bGaryRoom03 and bGiveHints and PlayerIsInTrigger(TRIGGER._1_10_ROOM3) then
if bGaryRoom04 and bGiveHints and PlayerIsInTrigger(TRIGGER._1_10_ROOM4) then
if bGaryWaiting and not PlayerIsInTrigger(TRIGGER._1_02B_BATHROOM) then
if bGordChasingPlayer and not bGoneFarEnough and PlayerIsInTrigger(TRIGGER._2_06_BIKEZONE) and not bGordGoingForBike and not PlayerIsInAnyVehicle() then
if bIngredientsCollected and PlayerIsInTrigger(TRIGGER._AMB_SCHOOL_AREA) then
if bNerd1Dance and bNerd2Dance and not bCurtainsOpen and PlayerIsInTrigger(TRIGGER._FUNHOUSE_CURTAIN_OPEN) then
if bPeteyCreatedAndWaiting and (not (not MissionActive() and PlayerIsInTrigger(TRIGGER._PETEYPIER)) or not IsMissionAvailable("2_09")) then
if bPlayerEjected and PlayerIsInTrigger(TRIGGER._2_S06B_ATTICENTRY) then
if bReadyForStage3Cut and (PlayerIsInTrigger(TRIGGER._3_04_ALGIEFLEE) or F_AlgieIsHit()) then
if bTalkedToPhillips and PlayerIsInTrigger(TRIGGER._3_S11_ASYLUM_GATE_WARNING2) and not bNearGate then
if dog and dog.id and not dog.bAttacking and PlayerIsInTrigger(dog.trigger) then
if F_FightingDone() and bSetupFirstFloorForExit and PlayerIsInTrigger(TRIGGER._2_08_DOORSTAIRS) then
if F_PedExists(sweater_guard) and PlayerIsInTrigger(TRIGGER._IBOXING_SWEATER_TRIG) and bSweaterCheckOn and not F_PlayerHasAquaberrySweater() then
if gCurrentArea == 0 and PlayerIsInTrigger(TRIGGER._AMB_SCHOOL_AREA) or gCurrentArea == 9 or gCurrentArea == 2 or gCurrentArea == 14 or gCurrentArea == 35 or gCurrentArea == 13 then
if gDoor02 or PlayerIsInTrigger(TRIGGER._5_07_DOORLOCKED02) then
if gInsideMat and not PlayerIsInTrigger(TRIGGER._C3_MAT_BOUNDARY) then
if gPlayerInOmarTrigger and not PlayerIsInTrigger(TRIGGER._5_07_OMARFIGHT) then
if gRussell == nil and PlayerIsInTrigger(TRIGGER._FACTORYENTRANCE) then
if gRussell and PlayerIsInAreaObject(gRussell, 2, 5, 0) and PlayerIsInTrigger(TRIGGER._6_02_WONDERMEATS) then
if gSiloAttack01 and not gOmarFight and PlayerIsInTrigger(TRIGGER._5_07_OMARFIGHT) then
if gTrainCheck and shared.trainButton and PlayerIsInTrigger(TRIGGER._5_07_TRAINSWITCH) then
if gTrainCheck2 and shared.trainButton and PlayerIsInTrigger(TRIGGER._5_07_TRAINSWITCH02) then
if IsMissionAvailable("2_09") and not MissionActive() and not bPeteyCreatedAndWaiting and PlayerIsInTrigger(TRIGGER._PETEYPIER) then
if ItemGetCurrentNum(312) > 0 and bEggStashMode and not PlayerIsInTrigger(TRIGGER._2_05_EGGSTASHAREA) then
if MailMan and MailMan.id and not MailMan.bAttacking and PlayerIsInTrigger(MailMan.trigger) then
if MissionTimerHasFinished() or not PlayerIsInTrigger(TRIGGER._3_06_FailTrig) then
if MissionTimerHasFinished() or PlayerIsInTrigger(TRIGGER._3_S03_FAILALLEY) then
if MissionTimerHasFinished() or PlayerIsInTrigger(TRIGGER._3_S03_FAILGREASER) then
if MissionTimerHasFinished() or PlayerIsInTrigger(TRIGGER._3_S03_FAILPOOL) then
if not bArrivedInPool and PlayerIsInTrigger(TRIGGER._3_S03_POOLAREA) then
if not bBackGateClosed and PlayerIsInTrigger(TRIGGER._2_03_BACK_GATE) and eggs_to_tad then
if not bBifAttackedPlayer and PlayerIsInTrigger(TRIGGER._2_08_BIFATTACKTRIG) then
if not bBikesHandled and not PlayerIsInTrigger(TRIGGER._2_05_TADSYARD) then
if not bBottomStairs and PlayerIsInTrigger(TRIGGER._6_02G_BOTTOMSTAIRS) then
if not bBulliesAttack and PlayerIsInTrigger(TRIGGER._1_07_GATE_T) then
if not bChristySpeech and PlayerIsInTrigger(TRIGGER._4_01_CHRISTYSPEECH) then
if not bCompletedCafe and PlayerIsInTrigger(TRIGGER._1_02B_OBJCAFE) then
if not bCornCut and PlayerIsInTrigger(TRIGGER._3_04_CORNELIUSCUT) then
if not bCornScream2 and PlayerIsInTrigger(TRIGGER._3_04_CORNSCREAM2) and not bCornCut then
if not bCreateThad and (PlayerIsInTrigger(TRIGGER._4_02_GATEKEEPER) or PedGetWhoHitMeLast(gThad) == gPlayer) then
if not bDepopulated and PlayerIsInTrigger(TRIGGER._5_02_DEPOPULATEDOCKS) then
if not bDockersAggro and PlayerIsInTrigger(TRIGGER._5_02_ONBARGE) then
if not bEnteredSolarium and PlayerIsInTrigger(TRIGGER._2_08_TOSOLARIUM) then
if not bEntranceHandled and PlayerIsInTrigger(TRIGGER._3_S10_UNDERBRIDGE) then
if not bEuniceChat and PlayerIsInTrigger(TRIGGER._1_05B_BATHROOMSECONDFLOOR) then
if not bEuniceSawJimmy and PlayerIsInTrigger(TRIGGER._2_S06B_EUNICEFRONTDOOR) then
if not bFattyAlly and PlayerIsInTrigger(TRIGGER._4_04_MAZE_HALL_07) then
if not bFieldNISDone and PlayerIsInTrigger(TRIGGER._1_04_TREE2_TRIG) and PedIsPlaying(gPlayer, "/Global/TreeClimb/Actions/ON_BOT", false) and not bFieldNISDone then
if not bFightingRussell and (PlayerIsInTrigger(TRIGGER._GARYTRIGGER) or bBullyNISLaunched) then
if not bFireVase02 and PlayerIsInTrigger(TRIGGER._6_02G_FIREVASE02) then
if not bFirstHitBullyObjective and PlayerIsInTrigger(TRIGGER._1_04_TREE1_TRIG) and F_SittingInTree() then
if not bFoundJohnny and PlayerIsInTrigger(TRIGGER._6_02G_JOHNNY) then
if not bFountainCutscenePlayed and PlayerIsInTrigger(TRIGGER._FOUNTAINCUTSCENE) then
if not bGaryToHole and PlayerIsInTrigger(TRIGGER._1_10_NEARHOLE) then
if not bGateOpen and (PlayerIsInTrigger(TRIGGER._1_07_GATETRIG) or PlayerIsInTrigger(TRIGGER._1_07_FIGHTTRIGGER)) then
if not bGatesOpened and PlayerIsInTrigger(TRIGGER._2_03_TADSBLOCK) then
if not bGetDrugsMsg and PlayerIsInTrigger(TRIGGER._2_S05_DRUGALLEY) then
if not bGirlBEvent and PlayerIsInTrigger(TRIGGER._2_S06B_LAUNCHASIAN) then
if not bGoneFarEnough and (not PlayerIsInTrigger(TRIGGER._2_06_BIKEZONE) and PlayerIsInVehicle(idBike.id) or not PedIsInTrigger(idGord.id, TRIGGER._2_06_BIKEZONE)) then
if not bHasKey and (PlayerIsInTrigger(TRIGGER._2_03_BACK_UNLOCK) or PlayerIsInTrigger(TRIGGER._2_03_FRONT_UNLOCK)) then
if not bIsPlayerInsideGym and (PlayerIsInTrigger(TRIGGER._4_01_GYMINSIDEDOOR) or PlayerIsInTrigger(TRIGGER._4_01_GYMTUNNEL)) then
if not bJockBusted and PlayerIsInTrigger(TRIGGER._2_S06_STG1_BUSTED) then
if not bLaunchedEunice and PlayerIsInTrigger(TRIGGER._4_01_LAUNCHEUNICE) then
if not bLaunchedStage2Trigger02 and PlayerIsInTrigger(TRIGGER._2_S06B_TRIGGER02) then
if not bLaunchedStage2Trigger03 and PlayerIsInTrigger(TRIGGER._2_S06B_TRIGGER03) then
if not bLaunchFirstGreasers and PlayerIsInTrigger(TRIGGER._6_02G_ENTRANCE) then
if not bLeftDocks and PlayerIsInTrigger(TRIGGER._5_02_PORTEXIT) then
if not bLivingRoomAttack and PlayerIsInTrigger(TRIGGER._6_02G_LIVINGROOM) then
if not bLoadedEscapeBikes and PlayerIsInTrigger(TRIGGER._3_04_LOADBIKES) then
if not bLoadedPeds and PlayerIsInTrigger(TRIGGER._6_02G_LOADPEDS) then
if not bLoadSchool and PlayerIsInTrigger(TRIGGER._2_S06_TRIGGERLOADSCHOOL) then
if not bLolaAlleyGreet and PlayerIsInTrigger(TRIGGER._TRIGGERLOLA) then
if not bLolaMoved and PlayerIsInTrigger(TRIGGER._3_G3_MOVELOLA) then
if not bMakeGirlsStudy and PlayerIsInTrigger(TRIGGER._2_S06B_MAKEGIRLSSTUDY) then
if not bMandyRoomDialogue and PlayerIsInTrigger(TRIGGER._4_01_MANDYROOM) then
if not bMandyRoomWarn and PlayerIsInTrigger(TRIGGER._4_01_MANDYROOMWARN) then
if not bMandySpeak and PlayerIsInTrigger(TRIGGER._2_S06_MANDYSPEAK) then
if not bNerdObjectiveGiven and PlayerIsInTrigger(TRIGGER._4_04_JOCKNIS) then
if not bNortonAttack and PlayerIsInTrigger(TRIGGER._6_02G_NORTON) then
if not bPedroCleaned and PlayerIsInTrigger(TRIGGER._1_01_CHECKOBJS1) then
if not bPedsOnStairsAttacked and PlayerIsInTrigger(TRIGGER._2_08_TRIGGERSTAIRS) then
if not bPissedOffJocks and PedIsPlaying(gPlayer, "/Global/TagSmall/PedPropsActions/IsPlayer", true) and PlayerIsInTrigger(TRIGGER._4_G4_NERDCOMICS) then
if not bPlayerHasEntered and PlayerIsInTrigger(TRIGGER._NEW_GATE) then
if not bPlayerReachedBeach and PlayerIsInTrigger(TRIGGER._2_07_PREPPY_NINJA_TRIG) then
if not bRanCutscene and PlayerIsInTrigger(TRIGGER._TESTSAFECUT_STARTCUT) then
if not bRecruitedPete and not PedIsDead(shared.gGary) and PlayerIsInTrigger(TRIGGER._1_11X1_PETE) then
if not bReleaseBullies and PlayerIsInTrigger(TRIGGER._1_11X1_BULLIES) then
if not bSecondBulliesAttacked and PlayerIsInTrigger(TRIGGER._1_07_FIGHTTRIGGER) then
if not bSecondFightCreated and PlayerIsInTrigger(TRIGGER._STAG2TRIG) then
if not bSetupDoors and PlayerIsInTrigger(TRIGGER._PREPHOUSE_MAIN2ND) then
if not bShowerDialogue and PlayerIsInTrigger(TRIGGER._2_S06B_TRIGGERSHOWERDIALOGUE) then
if not bShowerWarn and PlayerIsInTrigger(TRIGGER._4_01_SHOWERWARN) then
if not bSpookedAngieChristy and PlayerIsInTrigger(TRIGGER._2_S06B_ANGIECHRISTYROOM) then
if not bSpookedMandy and PlayerIsInTrigger(TRIGGER._2_S06B_MANDYROOM) then
if not bTagsALoaded and PlayerIsInTrigger(TRIGGER._3_S10_ATAGSLOAD) then
if not bTagsBLoaded and PlayerIsInTrigger(TRIGGER._3_S10_BTAGSLOAD) then
if not bTagsCLoaded and PlayerIsInTrigger(TRIGGER._3_S10_CTAGSLOAD) then
if not bTagsDLoaded and PlayerIsInTrigger(TRIGGER._3_S10_DTAGSLOAD) then
if not bTextPinkyFreak and PlayerIsInTrigger(TRIGGER._2_G2_FREAKSHOW) then
if not bTextPlayDunk and PlayerIsInTrigger(TRIGGER._2_G2_DUNKTANK) and PedIsInTrigger(pedPinky.id, TRIGGER._2_G2_DUNKTANK) and not F_PlayHasEnoughTickets() then
if not bTextPlayShoot and PlayerIsInTrigger(TRIGGER._2_G2_SHOOTINGGALLERY) and PedIsInTrigger(pedPinky.id, TRIGGER._2_G2_SHOOTINGGALLERY) and not F_PlayHasEnoughTickets() then
if not bTextPlayStriker and PlayerIsInTrigger(TRIGGER._2_G2_HIGHSTRIKER) and PedIsInTrigger(pedPinky.id, TRIGGER._2_G2_HIGHSTRIKER) then
if not bTextPlayToss and PlayerIsInTrigger(TRIGGER._2_G2_BALLTOSS) and PedIsInTrigger(pedPinky.id, TRIGGER._2_G2_BALLTOSS) and not F_PlayHasEnoughTickets() then
if not bThadAlly and PlayerIsInTrigger(TRIGGER._4_04_MAZE_HALL_05) then
if not bThirdFightCreated and PlayerIsInTrigger(TRIGGER._THIRDFIGHT) then
if not bTrigger01 and PlayerIsInTrigger(TRIGGER._6_B_GARY_TRIGGER_1) then
if not bTrigger02 and PlayerIsInTrigger(TRIGGER._6_B_LADDER1_BEGIN) and PedIsPlaying(gPlayer, "/Global/Ladder/Ladder_Actions/Climb_ON_BOT", true) then
if not bTrigger03 and PlayerIsInTrigger(TRIGGER._6_B_GARY_TRIGGER_3) then
if not bTrigger04 and PlayerIsInTrigger(TRIGGER._6_B_GARY_TRIGGER_5) then
if not bTrigger05 and PlayerIsInTrigger(TRIGGER._6_B_LADDER2_BEGIN) and PedIsPlaying(gPlayer, "/Global/Ladder/Ladder_Actions/Climb_ON_BOT", true) then
if not bTrigger06 and PlayerIsInTrigger(TRIGGER._6_B_GARY_TRIGGER_6) then
if not bTrigger07 and PlayerIsInTrigger(TRIGGER._6_B_BELLS_ONE) then
if not bTrigger08 and PlayerIsInTrigger(TRIGGER._6_B_BELLS_TWO) then
if not bTrigger09 and PlayerIsInTrigger(TRIGGER._6_B_BELLS_THREE) then
if not bTrigger10 and PlayerIsInTrigger(TRIGGER._6_B_SCHOOLROOFTOP) then
if not bTriggerAlgieLocker and PlayerIsInTrigger(TRIGGER._1_05B_ALGIELOCKER) then
if not bWasAtGate and PlayerIsInTrigger(TRIGGER._3_S11_ASYLUM_GATE_WARNING) then
if not bWentInGirlsBathroom01 and PlayerIsInTrigger(TRIGGER._1_05B_FIRSTFLOORGIRLSBR) then
if not bWentInGirlsBathroom02 and PlayerIsInTrigger(TRIGGER._1_05B_SECONDFLOORGIRLSBR) then
if not bZoeRunAway and PlayerIsInTrigger(TRIGGER._5_05_RUNAWAYZOE) and PlayerIsInAnyVehicle() and VehicleIsModel(VehicleFromDriver(gPlayer), 284) then
if not ednaSawPlayer and gEdna and PlayerIsInTrigger(TRIGGER._1_S01_KITCHEN) then
if not F_ObjectiveAlreadyGiven("2_08_PESTICIDE") and PlayerIsInTrigger(TRIGGER._HOUSETHIRDFLOOR) then
if not firstZoe and part1Switches[1] and part1Switches[2] and PlayerIsInTrigger(TRIGGER._5_07_FIRSTZOE) then
if not gBarricadeCreated and PlayerIsInTrigger(TRIGGER._5_06_BRIDGE) then
if not gBathroomSetup and PlayerIsInTrigger(TRIGGER._1_S01_BATHROOMSETUP) then
if not gDoor01 and PlayerIsInTrigger(TRIGGER._5_07_DOORLOCKED01) then
if not gDumbass and PlayerIsInTrigger(TRIGGER._5_07_SECONDZOE) then
if not gFirstEvent and PlayerIsInTrigger(TRIGGER._C5_PEDEVENT01) then
if not gGetCuttersMsg and PlayerIsInTrigger(TRIGGER._5_05_ALLEY) then
if not gInsideBathroom and PlayerIsInTrigger(TRIGGER._1_S01_BATHROOM) then
if not gInsideCafe and PlayerIsInTrigger(TRIGGER._1_S01_CAFE) then
if not gInsideCorona and PlayerIsInTrigger(TRIGGER._IBOXING_FAKECORONATRIGGER) then
if not gInsideTrophy and PlayerIsInTrigger(TRIGGER._1_S01_BOTTLE_TRIG_CASE) then
if not gLackey[10].bAttackedPlayer and PlayerIsInTrigger(TRIGGER._1_08_GYMGIRLWASH) then
if not gMarblesTutorial and (PlayerIsInTrigger(TRIGGER._4_06_FIELD01) or PlayerIsInTrigger(TRIGGER._4_06_FIELD02) or PlayerIsInTrigger(TRIGGER._4_06_FIELD03)) then
if not gMidgetFight and PlayerIsInTrigger(TRIGGER._FREAKSHOW_MIDGETS) then
if not gOBjectiveTable[2] and PlayerIsInTrigger(TRIGGER._1_S01_BATHROOM) then
if not gPedAttack02 and PlayerIsInTrigger(TRIGGER._5_07_PEDATTACK02) then
if not gPedAttack03 and PlayerIsInTrigger(TRIGGER._5_07_PEDATTACK03) then
if not gPlayerInCarnival and (PlayerIsInTrigger(TRIGGER._CARNY_ENTRANCE) or PlayerIsInTrigger(TRIGGER._CARNY_GAMESAREA) or PlayerIsInTrigger(TRIGGER._CARNY_GOKARTAREA)) then
if not gPlayerInStore and PlayerIsInTrigger(TRIGGER._ISCHOOL_STOREAREA) then
if not gPlayerMoved or PlayerIsInTrigger(TRIGGER._FINALPOSCHECK) then
if not gPunishmentOff and (PlayerIsInTrigger(TRIGGER._NERDSMALLROOM) or PlayerIsInTrigger(TRIGGER._NERDMAINROOM) or PlayerIsInTrigger(TRIGGER._NERDCOMPUTERROOM)) then
if not gRanged01 and PlayerIsInTrigger(TRIGGER._5_07_RANGED01) then
if not gRanged02 and PlayerIsInTrigger(TRIGGER._5_07_RANGED02) then
if not gSecondEvent and PlayerIsInTrigger(TRIGGER._C5_PEDEVENT02) then
if not gSiloAttack01 and PlayerIsInTrigger(TRIGGER._5_07_SILOATTACK01) then
if not gSlaughterhouse and PlayerIsInTrigger(TRIGGER._5_07_SLAUGHTERHOUSE) then
if not gTablePeds[1].bFight and (PedIsHit(gTablePeds[1].id, 2, 1000) or PlayerIsInTrigger(TRIGGER._4_04_MONITOR01)) then
if not gTablePeds[2].bFight and (PedIsHit(gTablePeds[2].id, 2, 1000) or PlayerIsInTrigger(TRIGGER._4_04_MONITOR02)) then
if not gTablePeds[3].bFight and (PedIsHit(gTablePeds[3].id, 2, 1000) or PlayerIsInTrigger(TRIGGER._4_04_MONITOR03)) then
if not gThadSaysNoWay and bCreateThad and (PlayerIsInTrigger(TRIGGER._4_02_GATEKEEPER) or PedGetWhoHitMeLast(gThad) == gPlayer) then
if not gThirdEvent and PlayerIsInTrigger(TRIGGER._C5_PEDEVENT03) then
if not gTrophySetup and (PlayerIsInTrigger(TRIGGER._1_S01_TROPHYSETUP) or PAnimNumDestroyed(TRIGGER._1_S01_GLASS) > 0) then
if not MissionActive() and not IsMissionCompleated("1_E01") and not PlayerIsInTrigger(TRIGGER._PLAYER_ROOM) and not bLaunchErrandTut and IsMissionCompleated("1_05") and ClockGet() >= 8 and ClockGet() <= 18 then
if not msgMountBikeTutorial and PlayerIsInTrigger(TRIGGER._2_01_MOUNTBIKE) then
if not PlayerIsInTrigger(CurrentEscapeTrigger) then
if not PlayerIsInTrigger(CurrentEscapeTriggerFinal) then
if not PlayerIsInTrigger(gameArea) then
if not PlayerIsInTrigger(gGameArea) then
if not PlayerIsInTrigger(TRIGGER._1_02_FightArea) then
if not PlayerIsInTrigger(TRIGGER._2_03_TADHOUSE) then
if not PlayerIsInTrigger(TRIGGER._2_05_FRONTGATE) or not PlayerIsInTrigger(TRIGGER._2_05_BACKGATE) then
if not PlayerIsInTrigger(TRIGGER._2_05_TADSBLOCK) or PlayerIsInTrigger(TRIGGER._2_05_TREE02) or PlayerIsInTrigger(TRIGGER._2_05_TREE01) then
if not PlayerIsInTrigger(TRIGGER._2_05_TADSYARD) and CounterGetCurrent() ~= CounterGetMax() then
if not PlayerIsInTrigger(TRIGGER._2_05_TADSYARD) then
if not PlayerIsInTrigger(TRIGGER._2_07_OUT_OF_AREA) then
if not PlayerIsInTrigger(TRIGGER._2_07_THEDOCK) then
if not PlayerIsInTrigger(TRIGGER._2_08_SOLARIUMENTRANCE) then
if not PlayerIsInTrigger(TRIGGER._2_S02_END_TRIGGER1) then
if not PlayerIsInTrigger(TRIGGER._2_S02_HATTRICKYARD) then
if not PlayerIsInTrigger(TRIGGER._2_S05_DRUGALLEY) or not bCopSuspicious then
if not PlayerIsInTrigger(TRIGGER._3_01_MISSIONBLOCK) and 3 > CounterGetCurrent() then
if not PlayerIsInTrigger(TRIGGER._3_04_CORNELIUSCUT) then
if not PlayerIsInTrigger(TRIGGER._3_06_INNERAREA) then
if not PlayerIsInTrigger(TRIGGER._3_06_OUTERAREA) then
if not PlayerIsInTrigger(TRIGGER._3_S03_PARKINGLOT) then
if not PlayerIsInTrigger(TRIGGER._3_S10_POORAREA) then
if not PlayerIsInTrigger(TRIGGER._3_S_10_FAILTRIGGER) then
if not PlayerIsInTrigger(TRIGGER._4_02_WATER) then
if not PlayerIsInTrigger(TRIGGER._4_G4_LEFTTOWN) then
if not PlayerIsInTrigger(TRIGGER._4_G4_LIBNERDS) then
if not PlayerIsInTrigger(TRIGGER._5_02_FAILTRIGGER) then
if not PlayerIsInTrigger(TRIGGER._5_02_GAMEAREA) then
if not PlayerIsInTrigger(TRIGGER._5_05_FACTORYAREA) then
if not PlayerIsInTrigger(TRIGGER._5_05_PARK) then
if not PlayerIsInTrigger(TRIGGER._5_05_PARKOUT) then
if not PlayerIsInTrigger(TRIGGER._5_07_BARRICADENIS) then
if not PlayerIsInTrigger(TRIGGER._BathroomRightTrig) then
if not PlayerIsInTrigger(TRIGGER._BMX_WARNING_TRIG) then
if not PlayerIsInTrigger(TRIGGER._CAFBACKTRIGGER) and gEdnaAfterPlayer then
if not PlayerIsInTrigger(TRIGGER._CARNY_ENTRANCE) and not PlayerIsInTrigger(TRIGGER._CARNY_GAMESAREA) and not PlayerIsInTrigger(TRIGGER._CARNY_GOKARTAREA) then
if not PlayerIsInTrigger(TRIGGER._CORNER_CHECK1) and not PlayerIsInTrigger(TRIGGER._CORNER_CHECK3) then
if not PlayerIsInTrigger(TRIGGER._LOWCORONA) and not PlayerIsInTrigger(TRIGGER._HIGHGROUND) then
if not PlayerIsInTrigger(TRIGGER._ZONECARNIVAL) then
if not PlayerIsInTrigger(TRIGGER._ZONERICH) then
if objBlip and PlayerIsInTrigger(TRIGGER._AMB_POOR_AREA) then
if part1Switches[1] and part1Switches[2] and not gElectricDoor and PlayerIsInTrigger(TRIGGER._5_07_ELECTRICDOOR) then
if PedIsPlaying(gPlayer, "/Global/Door/PedPropsActions", true) and PlayerIsInTrigger(TRIGGER._4_04_EXIT) then
if PedIsValid(pedTad.id) and PedCanSeeObject(pedTad.id, gPlayer, 3) and PlayerIsInTrigger(TRIGGER._TRIGGERBACKALLEY) then
if photohasbeentaken and wasValid and joshLazyHack and not PlayerIsInTrigger(TRIGGER._5_09_CITYHALL_BUILDING) then
if PlayerIsInAreaXYZ(x, y, z, 2, 0) or PlayerIsInTrigger(TRIGGER._3_S11_PHILLIPS_CAR_STOP) then
if PlayerIsInTrigger(car.trigger) then
if PlayerIsInTrigger(gameArea) then
if PlayerIsInTrigger(ladyTrigger) then
if PlayerIsInTrigger(tblGord.tether.trigger) then
if PlayerIsInTrigger(trigger) then
if PlayerIsInTrigger(TRIGGER._1_01_BULLYTRIG) then
if PlayerIsInTrigger(TRIGGER._1_01_PRINCOFFICE) and not gMissionSuccess then
if PlayerIsInTrigger(TRIGGER._1_02_RUSSELTEASE) or bBullyNISLaunched then
if PlayerIsInTrigger(TRIGGER._1_02B_BATHROOM) then
if PlayerIsInTrigger(TRIGGER._1_02B_LOCKERMESSAGE) then
if PlayerIsInTrigger(TRIGGER._1_02B_OBJLOCKER) then
if PlayerIsInTrigger(TRIGGER._1_02B_RECRUITGARY) then
if PlayerIsInTrigger(TRIGGER._1_02B_SOCIALMESSAGE) then
if PlayerIsInTrigger(TRIGGER._1_02B_WARN01) or PlayerIsInTrigger(TRIGGER._1_02B_WARN02) or PlayerIsInTrigger(TRIGGER._1_02B_WARN03) or PlayerIsInTrigger(TRIGGER._1_02B_WARN04) then
if PlayerIsInTrigger(TRIGGER._1_03_FAILTRIGGER01) or PlayerIsInTrigger(TRIGGER._1_03_FAILTRIGGER02) or PlayerIsInTrigger(TRIGGER._1_03_FAILTRIGGER04) or AreaGetVisible() ~= 0 then
if PlayerIsInTrigger(TRIGGER._1_04_BOTTLESHOOTAREA) then
if PlayerIsInTrigger(TRIGGER._1_04_BOTTLEZONE) then
if PlayerIsInTrigger(TRIGGER._1_04_PARKING) then
if PlayerIsInTrigger(TRIGGER._1_04_SUPPRESSPARKINGPOP) and not bSetWindows then
if PlayerIsInTrigger(TRIGGER._1_04_TREE2_TRIG) and PedIsPlaying(gPlayer, "/Global/TreeClimb/Actions/ON_BOT", false) and not MissionTimerHasFinished() then
if PlayerIsInTrigger(TRIGGER._1_05_BACKDOOROFF) then
if PlayerIsInTrigger(TRIGGER._1_05_FRONTDOOROFF) then
if PlayerIsInTrigger(TRIGGER._1_05B_AREASECONDFLOORBR) then
if PlayerIsInTrigger(TRIGGER._1_05B_FIRSTFLOORAMBIENTOFF) then
if PlayerIsInTrigger(TRIGGER._1_07_GATETRIG) or PlayerIsInTrigger(TRIGGER._1_07_FIGHTTRIGGER) then
if PlayerIsInTrigger(TRIGGER._1_08_CAFTRIG) then
if PlayerIsInTrigger(TRIGGER._1_08_GYMGIRLWASH) then
if PlayerIsInTrigger(TRIGGER._1_10_ATFURNACE) and PlayerHasWeapon(326) and not bMessageShown then
if PlayerIsInTrigger(TRIGGER._1_10_BULLYTRIGGER) or not bBulliesPeaceful then
if PlayerIsInTrigger(TRIGGER._1_10_CROUCHHINT) and not PedGetFlag(gPlayer, 3) then
if PlayerIsInTrigger(TRIGGER._1_10_INCAGE) then
if PlayerIsInTrigger(TRIGGER._1_10_NEAR_BASEMENTDOOR) then
if PlayerIsInTrigger(TRIGGER._1_10_THEHOLE) or bGaryAttacked then
if PlayerIsInTrigger(TRIGGER._1_11X2_SHITTARGET) and bPlayerIsHoldingPoopBag then
if PlayerIsInTrigger(TRIGGER._1_11X2_SHITTARGET) then
if PlayerIsInTrigger(TRIGGER._1_S01_BATHROOM) or gMandyHit or shared.gAlarmOn then
if PlayerIsInTrigger(TRIGGER._1_S01_BOTTLE_TRIG_CASE) or gBrokeGlass then
if PlayerIsInTrigger(TRIGGER._1_S01_CAFE) then
if PlayerIsInTrigger(TRIGGER._1_S01_PLAYERBLOCKING) then
if PlayerIsInTrigger(TRIGGER._2_01_TUTOFF2) and IsButtonPressed(9, 0) then
if PlayerIsInTrigger(TRIGGER._2_02_RETURNCOMIC) then
if PlayerIsInTrigger(TRIGGER._2_03_FRONTGATEAREA) or bKeyMasterHit then
if PlayerIsInTrigger(TRIGGER._2_03_TADHOUSE) then
if PlayerIsInTrigger(TRIGGER._2_03_TADNIS) or bTadGroupAttacked then
if PlayerIsInTrigger(TRIGGER._2_05_EGGSTASHAREA) then
if PlayerIsInTrigger(TRIGGER._2_05_REAREXIT) then
if PlayerIsInTrigger(TRIGGER._2_05_RECRUITRUSSELL) or PlayerIsInTrigger(TRIGGER._2_05_TADSYARD) then
if PlayerIsInTrigger(TRIGGER._2_05_TADSYARD) then
if PlayerIsInTrigger(TRIGGER._2_07_OUTSIDEDOOR) then
if PlayerIsInTrigger(TRIGGER._2_07_PREPPY_NINJA_TRIG) and PedIsValid(pedGord) then
if PlayerIsInTrigger(TRIGGER._2_07_REAR_PIER) then
if PlayerIsInTrigger(TRIGGER._2_07_THEDOCK) then
if PlayerIsInTrigger(TRIGGER._2_08_FIRSTFLOORTRIG) then
if PlayerIsInTrigger(TRIGGER._2_08_SECNDFLOORTRIG) then
if PlayerIsInTrigger(TRIGGER._2_08_THRDFLOORTRIG) then
if PlayerIsInTrigger(TRIGGER._2_B_BOSS_FIGHT) and intCurrentPreppies == 1 then
if PlayerIsInTrigger(TRIGGER._2_B_DRBRACE_DOOR01) then
if PlayerIsInTrigger(TRIGGER._2_G2_PINKYARRIVED) then
if PlayerIsInTrigger(TRIGGER._2_G2_TICKETSHOP) and bPlayerHasBear and not bGiveBearObjective then
if PlayerIsInTrigger(TRIGGER._2_G2_TICKETSHOP) and not bRanOutro then
if PlayerIsInTrigger(TRIGGER._2_S02_CARFAILTRIGGER) or PedIsStandingOnVehicle(gPlayer, gHattrickCar) then
if PlayerIsInTrigger(TRIGGER._2_S02_CARTRIGGER) then
if PlayerIsInTrigger(TRIGGER._2_S02_HATTRICKYARD) then
if PlayerIsInTrigger(TRIGGER._2_S04_LIBRARYJUMP) and (PedIsPlaying(gPlayer, "/Global/WProps/WallClimb", true) or PedIsPlaying(gPlayer, "/Global/Player/JumpActions/Jump/IdleJump", true)) then
if PlayerIsInTrigger(TRIGGER._2_S04_NERD_ESCAPE) then
if PlayerIsInTrigger(TRIGGER._2_S04_SHEET1) or Sheet1Interrupt() then
if PlayerIsInTrigger(TRIGGER._2_S04_SHEET3) or bSheet3GuysHit then
if PlayerIsInTrigger(TRIGGER._2_S04_SHEET3OUTER) or bSheet3GuysHit then
if PlayerIsInTrigger(TRIGGER._2_S05_TREE) and PlayerIsInStealthProp() then
if PlayerIsInTrigger(TRIGGER._2_S05_TREE2) then
if PlayerIsInTrigger(TRIGGER._2_S06_MANDYSPEAK) then
if PlayerIsInTrigger(TRIGGER._2_S06_STG3LEFTDORM) then
if PlayerIsInTrigger(TRIGGER._2_S06_TUTLATTICE) and PedIsPlaying(gPlayer, "/Global/Trellis/Trellis_Actions/Climb_ON_BOT", true) then
if PlayerIsInTrigger(TRIGGER._2_S06B_ATTICENTRY) then
if PlayerIsInTrigger(TRIGGER._2_S06B_SHOWERWARN) then
if PlayerIsInTrigger(TRIGGER._306POORAREA) then
if PlayerIsInTrigger(TRIGGER._3_02_PARKENTRANCE) and not bOutOfRange and not bGarageOpen then
if PlayerIsInTrigger(TRIGGER._3_04_STG4_RETURN) then
if PlayerIsInTrigger(TRIGGER._3_06_FIGHTTRIG) or PlayerIsInTrigger(TRIGGER._3_06_FailTrig) and (gRooftopPeds1[1] and PedIsValid(gRooftopPeds1[1]) and PedGetWhoHitMeLast(gRooftopPeds1[1]) == gPlayer or gRooftopPeds1[2] and PedIsValid(gRooftopPeds1[2]) and PedGetWhoHitMeLast(gRooftopPeds1[2]) == gPlayer or gPeanut and PedIsValid(gPeanut) and PedGetWhoHitMeLast(gPeanut) == gPlayer) then
if PlayerIsInTrigger(TRIGGER._3_B_MAGNET) then
if PlayerIsInTrigger(TRIGGER._3_R06_BOUNDARY) and player_in_trigger == 0 then
if PlayerIsInTrigger(TRIGGER._3_R06_CROUCH1) and crouch1 == false then
if PlayerIsInTrigger(TRIGGER._3_R06_CROUCH2) and crouch2 == false then
if PlayerIsInTrigger(TRIGGER._3_R06_CROUCH3) and crouch3 == false then
if PlayerIsInTrigger(TRIGGER._3_R06_CROUCH4) and crouch4 == false then
if PlayerIsInTrigger(TRIGGER._3_R06_EAST_BOUNDARY) and player_in_trigger == 0 then
if PlayerIsInTrigger(TRIGGER._3_R06_EAST_BOUNDARY) and player_in_trigger == 1 then
if PlayerIsInTrigger(TRIGGER._3_R06_EAST_EXIT) then
if PlayerIsInTrigger(TRIGGER._3_R06_ENEMY_SIDE) and player_in_trigger == 0 then
if PlayerIsInTrigger(TRIGGER._3_R06_ENEMY_SIDE) and player_in_trigger == 1 then
if PlayerIsInTrigger(TRIGGER._3_R06_KILL_ZONE) and not PedIsDead(damon) then
if PlayerIsInTrigger(TRIGGER._3_R06_KILL_ZONE) and not PedIsDead(dan) then
if PlayerIsInTrigger(TRIGGER._3_R06_KILL_ZONE) and not PedIsDead(kirby) then
if PlayerIsInTrigger(TRIGGER._3_R06_PLAYER_SIDE) and player_in_trigger == 0 then
if PlayerIsInTrigger(TRIGGER._3_R06_WEST_BOUNDARY) and player_in_trigger == 0 then
if PlayerIsInTrigger(TRIGGER._3_R06_WEST_BOUNDARY) and player_in_trigger == 1 then
if PlayerIsInTrigger(TRIGGER._3_R06_WEST_EXIT) then
if PlayerIsInTrigger(TRIGGER._3_R09_AREAT01) then
if PlayerIsInTrigger(TRIGGER._3_R09_AREAT02) then
if PlayerIsInTrigger(TRIGGER._3_R09_UPSTAIRS) then
if PlayerIsInTrigger(TRIGGER._3_S03_FAILALLEY) then
if PlayerIsInTrigger(TRIGGER._3_S03_FAILGREASER) then
if PlayerIsInTrigger(TRIGGER._3_S03_FAILPOOL) then
if PlayerIsInTrigger(TRIGGER._3_S03_OBJECTIVEALLEY) then
if PlayerIsInTrigger(TRIGGER._3_S03_OBJECTIVEGREASER) then
if PlayerIsInTrigger(TRIGGER._3_S03_OBJECTIVEPOOL) then
if PlayerIsInTrigger(TRIGGER._3_S03_PARKINGLOT) then
if PlayerIsInTrigger(TRIGGER._3_S09_LEAVINGTRIGGER) and not gAttackingDumpster then
if PlayerIsInTrigger(TRIGGER._3_S10_TUTORIALSTART) then
if PlayerIsInTrigger(TRIGGER._3_S10_TUTTRIGGER) then
if PlayerIsInTrigger(TRIGGER._3_S11_GALLOWAY_TRIGGER) then
if PlayerIsInTrigger(TRIGGER._3_S11_INSIDE_ASYLUM) then
if PlayerIsInTrigger(TRIGGER._3B_COPSSPEEDUP) then
if PlayerIsInTrigger(TRIGGER._4_01_GIRLSDORMBATHROOM) then
if PlayerIsInTrigger(TRIGGER._4_01_MANDYROOMBUSTED) then
if PlayerIsInTrigger(TRIGGER._4_01_SHOWERROOM) then
if PlayerIsInTrigger(TRIGGER._4_01_TUTLATTICE) and PedIsPlaying(gPlayer, "/Global/Trellis/Trellis_Actions/Climb_ON_BOT", true) then
if PlayerIsInTrigger(TRIGGER._4_02_DELETE_WAVE3) then
if PlayerIsInTrigger(TRIGGER._4_02_WATER) then
if PlayerIsInTrigger(TRIGGER._4_03_OPEN_DOOR) then
if PlayerIsInTrigger(TRIGGER._4_04_ENDMINE) and PedIsPlaying(gPlayer, "/Global/Door/PedPropsActions", true) then
if PlayerIsInTrigger(TRIGGER._4_04_MONITOR01) then
if PlayerIsInTrigger(TRIGGER._4_04_MONITOR02) then
if PlayerIsInTrigger(TRIGGER._4_04_MONITOR03) then
if PlayerIsInTrigger(TRIGGER._4_04_REACHED_FUNHOUSE) then
if PlayerIsInTrigger(TRIGGER._4_05_FAILPATH) or PlayerIsInTrigger(TRIGGER._4_05_FAILMAIN) or PlayerIsInTrigger(TRIGGER._4_05_FAILALLEY) then
if PlayerIsInTrigger(TRIGGER._4_05_FIELD) then
if PlayerIsInTrigger(TRIGGER._4_05_WARNPATH) or PlayerIsInTrigger(TRIGGER._4_05_WARNMAIN) or PlayerIsInTrigger(TRIGGER._4_05_WARNALLEY) then
if PlayerIsInTrigger(TRIGGER._4_06_LOAD_FIELD) and not FieldLoaded then
if PlayerIsInTrigger(TRIGGER._4_06_OUTSIDEGATE) then
if PlayerIsInTrigger(TRIGGER._4_G4_LIBNERDS) then
if PlayerIsInTrigger(TRIGGER._4_S12_PEANUTBIKE2) then
if PlayerIsInTrigger(TRIGGER._5_02_BONFIRETRIGGER01) or PlayerIsInTrigger(TRIGGER._5_02_BonfireTrigger02) then
if PlayerIsInTrigger(TRIGGER._5_02_BONFIRETRIGGER01) then
if PlayerIsInTrigger(TRIGGER._5_02_DOCKPARTYCREATE) then
if PlayerIsInTrigger(TRIGGER._5_02_FINALNIS) or bPrepsHit then
if PlayerIsInTrigger(TRIGGER._5_02_GREASERHANGOUT) or bGreasersAttacked then
if PlayerIsInTrigger(TRIGGER._5_02_NEARNIS) then
if PlayerIsInTrigger(TRIGGER._5_02_STARTRATPHOTO) then
if PlayerIsInTrigger(TRIGGER._5_02_WAREHOUSEUPSTAIRS) and RatPatrolFollowedPlayer() then
if PlayerIsInTrigger(TRIGGER._5_03_1ST_FLOOR_1ST_HALL) then
if PlayerIsInTrigger(TRIGGER._5_03_GAMEOVER) or PlayerIsInTrigger(TRIGGER._5_03_LEFT) then
if PlayerIsInTrigger(TRIGGER._5_03_PLAYER_IN_CR) then
if PlayerIsInTrigger(TRIGGER._5_05_LASTPOTTY) and PlayerIsInAnyVehicle() and VehicleIsModel(VehicleFromDriver(gPlayer), 284) then
if PlayerIsInTrigger(TRIGGER._5_06_BARRICADEDOOR) then
if PlayerIsInTrigger(TRIGGER._5_06_BIKETRIGGER) or gRussellObjs and GetTimer() - gRussellTimer > 3000 then
if PlayerIsInTrigger(TRIGGER._5_06_BIKETRIGGER) then
if PlayerIsInTrigger(TRIGGER._5_06_RUSSELLGARAGE) then
if PlayerIsInTrigger(TRIGGER._5_07_CHEMENTRANCE) then
if PlayerIsInTrigger(TRIGGER._5_07_MISSIONINIT) then
if PlayerIsInTrigger(TRIGGER._5_07_PARTTHREE) then
if PlayerIsInTrigger(TRIGGER._5_09_PLAYERS_ROOM) then
if PlayerIsInTrigger(TRIGGER._5_09_TOWERTOP) then
if PlayerIsInTrigger(TRIGGER._5_B_CRAWL) then
if PlayerIsInTrigger(TRIGGER._5_B_ENTRANCE) or F_PedIsHitByPlayer(edgar) then
if PlayerIsInTrigger(TRIGGER._5_B_FALL_INTO_SLUDGE) then
if PlayerIsInTrigger(TRIGGER._5_B_LADDERCAMSHOT) then
if PlayerIsInTrigger(TRIGGER._5_B_LIFTUP) then
if PlayerIsInTrigger(TRIGGER._5_B_LOWSTAIRCASE) then
if PlayerIsInTrigger(TRIGGER._5_B_STAGE2_START) and 0 < PlayerGetHealth() then
if PlayerIsInTrigger(TRIGGER._5_B_STEAMAREA) and PlayerGetHealth() > 0 and not PedIsPlaying(gPlayer, "/Global/5_B/Reactions/SteamReaction", false) then
if PlayerIsInTrigger(TRIGGER._5_G5_WHFRONTDOOR) or PlayerIsInTrigger(TRIGGER._5_G5_WHBACKDOOR) then
if PlayerIsInTrigger(TRIGGER._6_03_FAIL01) or PlayerIsInTrigger(TRIGGER._6_03_FAIL02) or PlayerIsInTrigger(TRIGGER._6_03_FAIL03) then
if PlayerIsInTrigger(TRIGGER._6_03_WARNFAIL01) and not gCop1 then
if PlayerIsInTrigger(TRIGGER._6_03_WARNFAIL01) or PlayerIsInTrigger(TRIGGER._6_03_WARNFAIL02) or PlayerIsInTrigger(TRIGGER._6_03_WARNFAIL03) then
if PlayerIsInTrigger(TRIGGER._6_B_GARY_TRIGGER_1) then
if PlayerIsInTrigger(TRIGGER._6_B_GARY_TRIGGER_2) then
if PlayerIsInTrigger(TRIGGER._6_B_GARY_TRIGGER_4) then
if PlayerIsInTrigger(TRIGGER._6_B_GARY_TRIGGER_6) then
if PlayerIsInTrigger(TRIGGER._6_B_OFFROOF) then
if PlayerIsInTrigger(TRIGGER._AMB_BUSINESS_AREA) then
if PlayerIsInTrigger(TRIGGER._AMB_RICH_AREA) and shared.gParkSprinklers == false then
if PlayerIsInTrigger(TRIGGER._AMB_RICH_AREA) then
if PlayerIsInTrigger(TRIGGER._AMB_SCHOOL_AREA) or AreaGetVisible() == 14 or AreaGetVisible() == 9 or AreaGetVisible() == 35 or AreaGetVisible() == 2 or AreaGetVisible() == 13 then
if PlayerIsInTrigger(TRIGGER._AMBIENTEVENT1) and not bPoliceCreated1 then
if PlayerIsInTrigger(TRIGGER._BathroomExit) and shared.gAreaDATFileLoaded[13] == true and AreaGetVisible() == 13 and not PAnimIsPlaying(TRIGGER._LCKRGYMM, "/Global/NLockA/Locked1_08", false) then
if PlayerIsInTrigger(TRIGGER._BOXHALFTHERING) then
if PlayerIsInTrigger(TRIGGER._BOYSBATHROOM1) or PlayerIsInTrigger(TRIGGER._BOYSBATHROOM2) then
if PlayerIsInTrigger(TRIGGER._BOYSDORMCOURTYARD) then
if PlayerIsInTrigger(TRIGGER._C3_MAT_BOUNDARY) then
if PlayerIsInTrigger(TRIGGER._CAFBACKTRIGGER) and gNotInNIS then
if PlayerIsInTrigger(TRIGGER._DT_BMXGARAGE) and not bOutOfRange and bGarageOpen then
if PlayerIsInTrigger(TRIGGER._DT_BMXGARAGE) then
if PlayerIsInTrigger(TRIGGER._FACTORYENTRANCE) then
if PlayerIsInTrigger(TRIGGER._FIGHTINGAREA) then
if PlayerIsInTrigger(TRIGGER._FUNHOUSE_U_TO_G_TRANS) or bDebug then
if PlayerIsInTrigger(TRIGGER._FUNHOUSE_UPSIDEDOWN) then
if PlayerIsInTrigger(TRIGGER._GIRLSDORMCOURTYARD) then
if PlayerIsInTrigger(TRIGGER._INDUSTRIALAREA_DROPOUTENCLAVE) then
if PlayerIsInTrigger(TRIGGER._INDUSTRIALGATES) then
if PlayerIsInTrigger(TRIGGER._JANSWTCH03A) and PAnimIsPlaying(TRIGGER._JANSWTCH03A, "/Global/AsySwtch/Active", true) and bElectricArcsOn then
if PlayerIsInTrigger(TRIGGER._LOWCORONA) and PedIsPlaying(gPlayer, "/Global/Ladder/Ladder_Actions", true) then
if PlayerIsInTrigger(TRIGGER._PLAYER_ROOM) then
if PlayerIsInTrigger(TRIGGER._POWERSTATIONTRIG) and table.getn(cops) == 0 then
if PlayerIsInTrigger(TRIGGER._PR_HILLTOP) then
if PlayerIsInTrigger(TRIGGER._PR_JOGGERTRIGGER) then
if PlayerIsInTrigger(TRIGGER._PR_PAPERPICKUPTRIGGER) then
if PlayerIsInTrigger(TRIGGER._TENEMENTS_FIRE_ESCAPE_CAMERA) then
if PlayerIsInTrigger(TRIGGER._TF02_FIGHT1) then
if PlayerIsInTrigger(TRIGGER._TRIGGERBALCONY2) then
if PlayerIsInTrigger(TRIGGER._TRIGGERSTAGE4FRONTDOOR) then
if PlayerIsInTrigger(TRIGGER._TRIGGERSTAGE4REARRIGHT) then
if PlayerIsInTrigger(TRIGGER._WM_GOKARTCREATE) then
if PlayerIsInTrigger(TRIGGER._ZONECARNIVAL) and 0 >= ItemGetCurrentNum(479) then
if PlayerIsInTrigger(TRIGGER._ZONESCHOOL) then
if PlayerIsInTrigger(wave.trigger) and not wave.processed then
if Progress_Check ~= 2 or not PlayerIsInTrigger(TRIGGER._5_B_CHEMCAMSHOT) and not PlayerIsInTrigger(TRIGGER._5_B_CHEMCAMSHOT02) then
return (PlayerIsInTrigger(gGameArea))
return (PlayerIsInTrigger(TRIGGER._2_05_FRONTGATE) or PlayerIsInTrigger(TRIGGER._2_05_BACKGATE)) and (PAnimIsOpen(TRIGGER._TRICH_TADGATES) or PAnimIsOpen(TRIGGER._TRICH_TADGATES01))
return bJohnnyFree and PlayerIsInTrigger(TRIGGER._5_03_REC_ROOM)
return on_cannon == false and PlayerIsInTrigger(TRIGGER._DT_OBSERVATORY)
return PlayerIsInTrigger(gGameArea) and not PlayerIsInTrigger(gNoGoArea)
return PlayerIsInTrigger(TRIGGER._3_S11_BREAK_OUT)
return PlayerIsInTrigger(TRIGGER._3_S11_PHILLIPS_REUNION)
return PlayerIsInTrigger(TRIGGER._3_S11_PLAYER_ON_A_GROUNDS)
return PlayerIsInTrigger(TRIGGER._4_02_DELETE_WAVE1)
return PlayerIsInTrigger(TRIGGER._4_02_FINALE)
return PlayerIsInTrigger(TRIGGER._4_02_P_WAVE2)
return PlayerIsInTrigger(TRIGGER._4_02_P_WAVE3)
return PlayerIsInTrigger(TRIGGER._4_02_P_WAVE4)
return PlayerIsInTrigger(TRIGGER._4_02_PLAYER_ON_CANNONT)
return PlayerIsInTrigger(TRIGGER._4_02_SPOTTED_SCOUT)
return PlayerIsInTrigger(TRIGGER._5_03_ASYLUM_GROUNDS_SETUP)
return PlayerIsInTrigger(TRIGGER._5_03_DOW_1)
return PlayerIsInTrigger(TRIGGER._5_03_GEN_JOHNNY)
return PlayerIsInTrigger(TRIGGER._5_03_JOHNNY_TRIG1)
return PlayerIsInTrigger(TRIGGER._5_03_JOHNNY_YELLING)
return PlayerIsInTrigger(TRIGGER._5_03_LEAVING)
return PlayerIsInTrigger(TRIGGER._5_03_ONGROUNDS)
return PlayerIsInTrigger(TRIGGER._5_03_ORDERLY_CS1_1)
return PlayerIsInTrigger(TRIGGER._5_03_PLAYER_IN_CR)
return PlayerIsInTrigger(TRIGGER._RACE3BRAKETUTORIAL) and not bPowerSlideTutorialHandled
while not (MissionTimerHasFinished() or PlayerIsInTrigger(TRIGGER._4_03_OPEN_DOOR)) do
while not (not MissionActive() or PlayerIsInTrigger(TRIGGER._4_S12_MSPHILLIPS)) do
while not (not PlayerIsInTrigger(TRIGGER._5_09_CITYHALL_GROUNDS) or PlayerIsInStealthProp()) do
while not (not PlayerIsInTrigger(TRIGGER._INDUSTRIALAREA_DROPOUTENCLAVE) or SystemShouldEndScript()) do
while not (PedCanSeeObject(ped1, gPlayer, 3) or PedIsHit(ped1, 2, 1000) or PlayerIsInTrigger(TRIGGER._3_05_STARTCATWALK)) do
while not (PlayerIsInAnyVehicle() or PlayerIsInTrigger(TRIGGER._AMB_BUSINESS_AREA)) do
while not (PlayerIsInAreaXYZ(crumbX, crumbY, crumbZ, 2, 7) or PlayerIsInTrigger(TRIGGER._3_S11_PHILLIPS_CAR_STOP)) do
while not (PlayerIsInTrigger(TRIGGER._1_03_FIGHT1) or bDavisGroupHit) do
while not (PlayerIsInTrigger(TRIGGER._1_04_FIELDTRIG) or bHasFailedElsewhere) do
while not (PlayerIsInTrigger(TRIGGER._3_05_STARTSHOOTING) or PedIsHit(tblFirstGrease[5], 2, 1000) or PedIsHit(tblFirstGrease[6], 2, 1000)) do
while not (PlayerIsInTrigger(TRIGGER._3_05_STARTSHOOTING2) or PedIsHit(tblSecondGrease[2], 2, 1000) or PedIsHit(tblSecondGrease[3], 2, 1000) or PedIsHit(tblSecondGrease[4], 2, 1000)) do
while not (PlayerIsInTrigger(TRIGGER._4_03_TRIGGER_WAVE1) or F_CurrentTargetBreached()) do
while not (PlayerIsInTrigger(TRIGGER._5_09_CITYHALL_BUILDING) and PedIsPlaying(gPlayer, "/Global/Ladder/Ladder_Actions", true)) do
while not PlayerIsInTrigger(trigger) do
while not PlayerIsInTrigger(TRIGGER._1_03_DAVISREGISTERHIT) do
while not PlayerIsInTrigger(TRIGGER._1_03_DAVISRUN) do
while not PlayerIsInTrigger(TRIGGER._1_03_PETERTRIGGER) do
while not PlayerIsInTrigger(TRIGGER._1_10_CRAWL_ELEC) do
while not PlayerIsInTrigger(TRIGGER._1_10_GARY_TURN_OFF_ELEC) do
while not PlayerIsInTrigger(TRIGGER._1_10_ROOM4) do
while not PlayerIsInTrigger(TRIGGER._2_01_EDNAFACEPLAYER) do
while not PlayerIsInTrigger(TRIGGER._2_01_TUTPLAY1) do
while not PlayerIsInTrigger(TRIGGER._2_04_CHANGEBEACH) do
while not PlayerIsInTrigger(TRIGGER._2_B_PLAYER_NEAR_BAR) do
while not PlayerIsInTrigger(TRIGGER._3_05_2CATWALKSTART) do
while not PlayerIsInTrigger(TRIGGER._3_05_CATWALK2) do
while not PlayerIsInTrigger(TRIGGER._3_05_SECONDFLOOR) do
while not PlayerIsInTrigger(TRIGGER._3_07_STARTCONV) do
while not PlayerIsInTrigger(TRIGGER._3_S11_PHILLIPS_CAR_STOP) do
while not PlayerIsInTrigger(TRIGGER._4_06_GATOBJECTIVE) do
while not PlayerIsInTrigger(TRIGGER._5_07_OUTSIDETHEOFFICE) do
while not PlayerIsInTrigger(TRIGGER._5_09_CITYHALL_GROUNDS) or objGetSpray do
while not PlayerIsInTrigger(TRIGGER._5_09_CITYHALL_TOWER) do
while not PlayerIsInTrigger(TRIGGER._5_09_CITYHALL_WALL_CLIMBED) do
while not PlayerIsInTrigger(TRIGGER._5_09_CITYHALLTAG2) do
while not PlayerIsInTrigger(TRIGGER._6_B_GLASS_TRIGGER) do
while not PlayerIsInTrigger(TRIGGER._AFTERSTEAM) do
while not PlayerIsInTrigger(TRIGGER._AMB_BUSINESS_AREA) do
while not PlayerIsInTrigger(TRIGGER._AMB_RICH_AREA) do
while not PlayerIsInTrigger(TRIGGER._BMX_WARNING_TRIG) do
while not PlayerIsInTrigger(TRIGGER._ZONESCHOOL) or shared.gBusTransition do
while PlayerIsInTrigger(TRIGGER._5_T1_BIKEGARAGE) == false and bMissionFailed == false do
while PlayerIsInTrigger(TRIGGER._RICHAREA) do
push ecx
push ebx
mov ebx, dword ptr [esp+0xC]
push esi
push edi
push 0x0
push ebx
call LuaParam::GetInt
add esp, 0x4
movzx esi, ax
mov eax, esp
push 0x0
mov dword ptr [eax], 0x3
call 0x5C7380
push ebx
mov edi, eax
call 0x73AEA0
add esp, 0xC
cmp eax, 0x2
jnz 0x2A
push 0x1
push ebx
call LuaParam::IsBool
add esp, 0x8
test al, al
jz 0x1B
cmp byte ptr [edi+0x1C98], 0x0
jnz 0xB
cmp dword ptr [edi+0x155C], 0x0
jz 0x9
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret
test si, si
mov byte ptr [esp+0xC], 0x0
jl 0x48
movsx ecx, si
test ecx, ecx
jnl 0x6
xor eax, eax
jmp 0x1D
mov edx, dword ptr [0x20C7C48]
mov eax, dword ptr [edx+0x4]
test byte ptr [ecx+eax*1], 0x80
jz 0x6
xor eax, eax
jmp 0xA
mov eax, dword ptr [edx+0xC]
imul eax, ecx
add eax, dword ptr [edx]
mov edx, dword ptr [edi+0x14]
test edx, edx
jz 0x7
add edx, 0x30
jmp 0x5
lea edx, ptr [edi+0x4]
push edx
mov ecx, eax
call 0x6D6FA0
test al, al
jz 0x7
mov byte ptr [esp+0xC], 0x1
mov ecx, dword ptr [esp+0xC]
push ecx
push ebx
call LuaParam::PushBool
add esp, 0x8
pop edi
pop esi
mov eax, 0x1
pop ebx
pop ecx
ret
elseif not PlayerIsInVehicle(Bike01) and not PedIsInAreaObject(ScenarioPed, Bike01, 1, 4, 0) and bToldToGetOff then
elseif PlayerIsInVehicle(idDOBike) then
if aBike == gRussellBike and not PlayerIsInVehicle(gRussellBike) then
if not bGoneFarEnough and (not PlayerIsInTrigger(TRIGGER._2_06_BIKEZONE) and PlayerIsInVehicle(idBike.id) or not PedIsInTrigger(idGord.id, TRIGGER._2_06_BIKEZONE)) then
if not bGordChasingPlayer and (PlayerIsInVehicle(idBike.id) or not PedIsInAreaObject(idGord.id, idBike.id, 1, 12, 0)) then
if not bGordChasingPlayer and not PlayerIsInVehicle(idBike.id) then
if not PlayerIsInVehicle(Bike01) and PedIsInAreaObject(ScenarioPed, Bike01, 1, 4, 0) then
if not PlayerIsInVehicle(idDOBike) then
if not PlayerIsInVehicle(idGirlBike) then
if PlayerIsInAreaXYZ(x, y, z, 3, 7) and PedIsInAreaObject(ScenarioPed, Bike01, 1, 4, 0) and not bToldToGetOff and PlayerIsInVehicle(Bike01) then
if PlayerIsInVehicle(Bike01) and not bPlayerGotBike then
if PlayerIsInVehicle(Bike01) then
if PlayerIsInVehicle(idBike.id) then
if VehicleIsValid(bike) and not PlayerIsInVehicle(bike) then
while not PlayerIsInVehicle(gBike) do
push ecx
push ebx
mov ebx, dword ptr [esp+0xC]
push esi
push edi
push 0x0
push ebx
call LuaParam::GetInt
add esp, 0x4
movzx edi, ax
mov eax, esp
push 0x0
mov byte ptr [esp+0x14], 0x0
mov dword ptr [eax], 0x3
call 0x5C7380
mov esi, eax
add esp, 0x8
cmp dword ptr [esi+0x1554], 0x0
jz 0x1B
movzx eax, di
push eax
call 0x44A580
add esp, 0x4
cmp dword ptr [esi+0x1554], eax
setz cl
mov byte ptr [esp+0xC], cl
mov edx, dword ptr [esp+0xC]
push edx
push ebx
call LuaParam::PushBool
add esp, 0x8
pop edi
pop esi
mov eax, 0x1
pop ebx
pop ecx
ret
-- never used
mov ecx, dword ptr [0xC1AEA8]
mov eax, dword ptr [ecx]
mov edx, dword ptr [eax+0xA8]
push 0x0
push 0x0
call 0x5D1FB4
mov byte ptr [0xC1AF00], 0x1
xor eax, eax
ret
PlayerLockButtonInputsExcept(false)
PlayerLockButtonInputsExcept(true)
PlayerLockButtonInputsExcept(true, 10)
PlayerLockButtonInputsExcept(true, 10, 7)
PlayerLockButtonInputsExcept(true, 10, 8)
PlayerLockButtonInputsExcept(true, 12)
PlayerLockButtonInputsExcept(true, 18, 22, 19, 23, 2, 3, 12)
PlayerLockButtonInputsExcept(true, 9)
push edi
mov edi, dword ptr [esp+0x8]
push 0x0
push edi
call LuaParam::GetBool
add esp, 0x8
test al, al
mov byte ptr [0xC1AF8C], al
jz 0x67
xor eax, eax
push ebx
push esi
mov ebx, 0x1
push edi
mov dword ptr [0xC1AF8D], eax
mov dword ptr [0xC1AF91], eax
mov dword ptr [0xC1AF95], eax
mov dword ptr [0xC1AF99], eax
mov dword ptr [0xC1AF9D], eax
mov dword ptr [0xC1AFA1], eax
mov byte ptr [0xC1AFA5], al
mov esi, ebx
call 0x73AEA0
add esp, 0x4
cmp eax, ebx
jle 0x1E
push esi
push edi
call LuaParam::GetInt
push edi
mov byte ptr [eax+0xC1AF8D], bl
add esi, ebx
call 0x73AEA0
add esp, 0xC
cmp esi, eax
jl 0xFFFFFFE6
pop esi
mov byte ptr [0xC1AF91], bl
mov byte ptr [0xC1AF92], bl
pop ebx
xor eax, eax
pop edi
ret
PlayerPutOnBike(gBike)
PlayerPutOnBike(gPlayerBike)
PlayerPutOnBike(new_bike)
PlayerPutOnBike(player.bike)
PlayerPutOnBike(player.bike.id)
PlayerPutOnBike(vehiclePlayerBike.id)
push ecx
mov eax, dword ptr [esp+0x8]
push esi
push edi
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x4
movzx esi, ax
mov eax, esp
push 0x0
mov dword ptr [eax], 0x3
call 0x5C7380
movzx ecx, si
push ecx
mov edi, eax
call 0x44A580
mov esi, eax
add esp, 0xC
cmp dword ptr [esi+0x46C], 0x1
jnz 0x9C
push edi
mov ecx, esi
call 0x4BDF80
push esi
mov ecx, edi
call 0x476640
mov eax, dword ptr [esi+0x14]
test eax, eax
jz 0x7
add eax, 0x30
jmp 0x5
lea eax, ptr [esi+0x4]
fld st, dword ptr [eax+0x8]
sub esp, 0xC
fstp dword ptr [esp+0x8], st
mov ecx, edi
fld st, dword ptr [eax+0x4]
fstp dword ptr [esp+0x4], st
fld st, dword ptr [eax]
fstp dword ptr [esp], st
call 0x41C4E0
lea edx, ptr [esp+0x8]
push edx
mov ecx, esi
call 0x4CAF30
cmp dword ptr [eax], 0x3
jnz 0x19
push 0x901018
push 0x90D030
mov ecx, edi
call 0x4740F0
xor eax, eax
pop edi
pop esi
pop ecx
ret
lea eax, ptr [esp+0x8]
push eax
mov ecx, esi
call 0x4CAF30
cmp dword ptr [eax], 0x8
push 0x901018
mov ecx, edi
jnz 0x12
push 0x90D008
call 0x4740F0
xor eax, eax
pop edi
pop esi
pop ecx
ret
push 0x900FF0
call 0x4740F0
pop edi
xor eax, eax
pop esi
pop ecx
ret
PlayerRecordAttackTime(2000)
push esi
push edi
mov edi, dword ptr [esp+0xC]
push edi
xor esi, esi
call 0x73AEA0
add esp, 0x4
test eax, eax
jz 0x1D
push edi
call 0x73AEA0
add esp, 0x4
cmp eax, 0x1
jnz 0xF
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x8
mov esi, eax
mov eax, dword ptr [0xC1AEA8]
test eax, eax
jz 0xE
push esi
lea ecx, ptr [eax+0x3BC]
call 0x48C190
pop edi
xor eax, eax
pop esi
ret
-- never used
mov ecx, 0xC1AEA8
call 0x446B40
xor eax, eax
ret
PlayerRegisterSocialCallbackVsPed(fatty, 30, F_FattyHit, true)
PlayerRegisterSocialCallbackVsPed(fatty, 32, F_FattyGift, true)
PlayerRegisterSocialCallbackVsPed(gControlOrderly, 35, F_Player_Greets_1)
PlayerRegisterSocialCallbackVsPed(gCorn, 28, F_Player_Greets_2)
PlayerRegisterSocialCallbackVsPed(gCorn, 35, F_Player_Greets_1)
PlayerRegisterSocialCallbackVsPed(gFatty, 28, F_Player_Greets_2)
PlayerRegisterSocialCallbackVsPed(gFatty, 35, F_Player_Greets_1)
PlayerRegisterSocialCallbackVsPed(gThad, 28, F_Player_Greets_3)
PlayerRegisterSocialCallbackVsPed(gThad, 35, F_Player_Greets_3)
PlayerRegisterSocialCallbackVsPed(idLola, 32, F_PlayerGiveGiftCallback, true)
PlayerRegisterSocialCallbackVsPed(johnny, 32, cbJohnnyTalk, true)
PlayerRegisterSocialCallbackVsPed(pedMascot.id, 28, F_PlayerTauntedMascot)
PlayerRegisterSocialCallbackVsPed(pedPinky.id, 32, F_PlayerGiveGiftCallback, true)
PlayerRegisterSocialCallbackVsPed(shared.gBif, 23, F_PlayerGreetedBif)
PlayerRegisterSocialCallbackVsPed(shared.gBif, 35, F_PlayerGreetedBif)
PlayerRegisterSocialCallbackVsPed(tblGord.id, 28, F_InsultGord, true)
push ebx
mov ebx, dword ptr [esp+0x8]
push esi
push edi
push 0x0
push ebx
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov edi, eax
add esp, 0x8
test edi, edi
jz 0x2A
push 0x1
push ebx
call LuaParam::GetInt
mov esi, eax
sub esi, 0x17
lea eax, ptr [edi+esi*4+0xB68]
push eax
push 0x2
push ebx
call 0x5DA060
add esp, 0x14
mov byte ptr [esi+edi*1+0xBA0], 0x1
pop edi
pop esi
xor eax, eax
pop ebx
ret
PlayerResetPhysicalState()
push 0x0
mov ecx, 0xC1AEA8
call 0x445E30
xor eax, eax
ret
-- never used
push ecx
mov eax, dword ptr [esp+0x8]
push 0x0
push eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x8], st
fld st, dword ptr [esp+0x8]
mov ecx, dword ptr [0xC0F78C]
add esp, 0x4
fstp dword ptr [esp], st
call 0x44E310
xor eax, eax
pop ecx
ret
-- never used
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetInt
mov ecx, dword ptr [0xC0F78C]
mov dword ptr [ecx+0xC], eax
add esp, 0x8
xor eax, eax
ret
PlayerSetControl(0)
PlayerSetControl(1)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x8
test eax, eax
jnz 0x56
push 0x1
mov ecx, 0xC1AEA8
call 0x445DA0
push 0x0
mov ecx, 0xA45A30
call 0x50DFA0
mov ecx, dword ptr [0xC1AEA8]
mov ecx, dword ptr [ecx+0x2E0]
call 0x5F3A40
mov ecx, dword ptr [0xC1AEA8]
call 0x474570
mov edx, dword ptr [0xC1AEA8]
mov eax, dword ptr [edx+0x2E0]
mov ecx, dword ptr [eax]
mov dword ptr [eax+0xC], ecx
mov edx, dword ptr [eax+0x4]
mov dword ptr [eax+0x10], edx
mov ecx, dword ptr [eax+0x8]
mov dword ptr [eax+0x14], ecx
xor eax, eax
ret
cmp eax, 0x1
jnz 0x36
mov edx, dword ptr [0xC1AEA8]
push 0x0
mov ecx, 0xC1AEA8
mov dword ptr [edx+0x1370], 0x0
call 0x445DA0
push 0x1
mov ecx, 0xA45A30
call 0x50DFA0
push 0x1
mov ecx, 0xA45A30
call 0x50DFD0
xor eax, eax
ret
-- never used
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetBool
add esp, 0x8
xor eax, eax
ret
PlayerSetGrade(0, gGrade)
PlayerSetGrade(1, gGrade)
PlayerSetGrade(2, tblClasses1[nCurrentClass].grade)
PlayerSetGrade(2, tblClasses[nCurrentClass].grade)
PlayerSetGrade(3, tblClasses[nCurrentClass].grade)
PlayerSetGrade(4, tblClasses[nCurrentClass].grade)
PlayerSetGrade(5, tblClasses[nCurrentClass].grade)
PlayerSetGrade(6, gGrade)
PlayerSetGrade(7, gGrade)
PlayerSetGrade(8, gGrade)
PlayerSetGrade(9, gGrade)
push esi
mov esi, dword ptr [esp+0x8]
push edi
push 0x1
push esi
call LuaParam::GetInt
push 0x0
push esi
mov edi, eax
call LuaParam::GetInt
add esp, 0x10
mov dword ptr [eax*4+0xC1B02C], edi
pop edi
xor eax, eax
pop esi
ret
PlayerSetHealth(0)
PlayerSetHealth(200)
PlayerSetHealth(75)
PlayerSetHealth(gMaxPlayerHealth)
PlayerSetHealth(PedGetMaxHealth(gPlayer))
PlayerSetHealth(PlayerGetHealth() + 1)
PlayerSetHealth(PlayerGetHealth() + 20)
PlayerSetHealth(playerHealth)
PlayerSetHealth(playerMax)
push ecx
mov eax, dword ptr [esp+0x8]
push 0x0
push eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x8], st
add esp, 0x4
mov eax, esp
push 0x0
mov dword ptr [eax], 0x3
call 0x5C7380
fld st, dword ptr [esp+0x8]
add esp, 0x4
mov ecx, eax
fstp dword ptr [esp], st
call 0x4782E0
xor eax, eax
pop ecx
ret
-- never used
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetInt
mov ecx, dword ptr [0xC0F78C]
movzx eax, ax
add esp, 0x8
test ax, ax
setnz dl
mov byte ptr [ecx+0x2], dl
mov dword ptr [ecx+0x4], 0x0
xor eax, eax
ret
PlayerSetInvulnerable(false)
PlayerSetInvulnerable(true)
mov eax, dword ptr [esp+0x4]
push ebx
push 0x0
push eax
call LuaParam::GetBool
add esp, 0x4
mov bl, al
mov eax, esp
push 0x0
mov dword ptr [eax], 0x3
call 0x5C7380
movzx ecx, bl
add esp, 0x8
mov dword ptr [eax+0x138C], ecx
xor eax, eax
pop ebx
ret
PlayerSetMinPunishmentPoints(0)
PlayerSetMinPunishmentPoints(199)
PlayerSetMinPunishmentPoints(95)
push esi
mov esi, dword ptr [0xC1AEA8]
test esi, esi
jz 0x17
mov eax, dword ptr [esp+0x8]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x8
mov dword ptr [esi+0x1EBC], eax
xor eax, eax
pop esi
ret
PlayerSetMoney(100)
PlayerSetMoney(1000)
PlayerSetMoney(1200)
PlayerSetMoney(150)
PlayerSetMoney(200)
PlayerSetMoney(PlayerGetMoney() - 200)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x8
test eax, eax
jl 0xE
mov ecx, dword ptr [0xC1AEA8]
push eax
call 0x4752A0
xor eax, eax
ret
PlayerSetPosPoint(endPointCS, 1)
PlayerSetPosPoint(flgPlayerPos, 1)
PlayerSetPosPoint(gEndPoint, 1)
PlayerSetPosPoint(gPlayerEnd, 1)
PlayerSetPosPoint(gPlayerStart, 1)
PlayerSetPosPoint(idPoint)
PlayerSetPosPoint(idPoint, numPoint)
PlayerSetPosPoint(Objectives[1].loc, 3)
PlayerSetPosPoint(Objectives[2].loc, 3)
PlayerSetPosPoint(Objectives[4].loc, 3)
PlayerSetPosPoint(player.start_pos)
PlayerSetPosPoint(playerStart, 2)
PlayerSetPosPoint(POINTLIST._1_01_PLAYERPICKED, 1)
PlayerSetPosPoint(POINTLIST._1_02_NISLOCATIONS, 1)
PlayerSetPosPoint(POINTLIST._1_02_PLAYERNISLOCS, 1)
PlayerSetPosPoint(POINTLIST._1_02B_EXITEDCAFE, 1)
PlayerSetPosPoint(POINTLIST._1_03_PLAYERCS2, 1)
PlayerSetPosPoint(POINTLIST._1_03_START, 1)
PlayerSetPosPoint(POINTLIST._1_04_NEMESISPARKING)
PlayerSetPosPoint(POINTLIST._1_05B_NIS_LOCKER, 1)
PlayerSetPosPoint(POINTLIST._1_06BEGIN, 2)
PlayerSetPosPoint(POINTLIST._1_07_BULLYENDNIS, 3)
PlayerSetPosPoint(POINTLIST._1_07_PLYRDOOR, 1)
PlayerSetPosPoint(POINTLIST._1_08_STARTPOINT, 1)
PlayerSetPosPoint(POINTLIST._1_09_CUTSTART)
PlayerSetPosPoint(POINTLIST._1_10_FAILURE, 1)
PlayerSetPosPoint(POINTLIST._1_11_X2_STARTPLAYER)
PlayerSetPosPoint(POINTLIST._1_11X1_SPAWNPLAYER)
PlayerSetPosPoint(POINTLIST._1_11X1_SPAWNPLAYERDOWNSTAIRS)
PlayerSetPosPoint(POINTLIST._1_11X2_CUTPLAYER, 1)
PlayerSetPosPoint(POINTLIST._1_B_BOOKIE)
PlayerSetPosPoint(POINTLIST._2_01_CAFENDPOS, 1)
PlayerSetPosPoint(POINTLIST._2_03_PLAYER_AFTER_EGGS)
PlayerSetPosPoint(POINTLIST._2_03_PLAYERREBUFFED, 1)
PlayerSetPosPoint(POINTLIST._2_03_PLAYERREBUFFED, 2)
PlayerSetPosPoint(POINTLIST._2_04_NIS_END, 2)
PlayerSetPosPoint(POINTLIST._2_05_PLAYERSTART, 1)
PlayerSetPosPoint(POINTLIST._2_06_NISPINKYEND, 1)
PlayerSetPosPoint(POINTLIST._2_06_PLAYER_START)
PlayerSetPosPoint(POINTLIST._2_08_FINALPOS, 1)
PlayerSetPosPoint(POINTLIST._2_08_OUTHAR, 1)
PlayerSetPosPoint(POINTLIST._2_B_PLAYERNIS01)
PlayerSetPosPoint(POINTLIST._2_G2_CUTBEARSPAWNJIMMY, 1)
PlayerSetPosPoint(POINTLIST._2_G2_INTROJIMMY)
PlayerSetPosPoint(POINTLIST._2_G2_STAGE3DEBUG, 2)
PlayerSetPosPoint(POINTLIST._2_GN_MissionEnd, 1)
PlayerSetPosPoint(POINTLIST._2_R03_PLAYERSTART, 1)
PlayerSetPosPoint(POINTLIST._2_R03_PLAYERSTART, 2)
PlayerSetPosPoint(POINTLIST._2_S02_AFTER_NIS, 1)
PlayerSetPosPoint(POINTLIST._2_S04_START)
PlayerSetPosPoint(POINTLIST._2_S05_ENDPOS, 1)
PlayerSetPosPoint(POINTLIST._2_S05_ENDPOS, 2)
PlayerSetPosPoint(POINTLIST._3_02_PLAYER)
PlayerSetPosPoint(POINTLIST._3_02_PLAYERPARK)
PlayerSetPosPoint(POINTLIST._3_04_SPAWNPLAYERSTG3)
PlayerSetPosPoint(POINTLIST._3_05_CINESTART, 1)
PlayerSetPosPoint(POINTLIST._3_06_RIGHTSIDE, 1)
PlayerSetPosPoint(POINTLIST._3_08_AFTERPRES, 1)
PlayerSetPosPoint(POINTLIST._3_08_DESTINATION, 1)
PlayerSetPosPoint(POINTLIST._3_10_PLAYERSCENE01)
PlayerSetPosPoint(POINTLIST._3_10_PLAYERWARP, 1)
PlayerSetPosPoint(POINTLIST._3_R06_PLAYERSTART)
PlayerSetPosPoint(POINTLIST._3_R09_BLIPP3)
PlayerSetPosPoint(POINTLIST._3_R09_BOXERS, 6)
PlayerSetPosPoint(POINTLIST._3_R09_NISPLAYER, 1)
PlayerSetPosPoint(POINTLIST._3_R09_UNLOCKPEDS)
PlayerSetPosPoint(POINTLIST._3_S03_FACETARGETALLEY)
PlayerSetPosPoint(POINTLIST._3_S03_FACETARGETGREASER)
PlayerSetPosPoint(POINTLIST._3_S10_PLAYER_START)
PlayerSetPosPoint(POINTLIST._3_S10_PLAYEREMERGENCYSPOT, 1)
PlayerSetPosPoint(POINTLIST._3_S11_PLAYER_AT_ASYLUM)
PlayerSetPosPoint(POINTLIST._3_S11_PLAYER_AT_ASYLUM2)
PlayerSetPosPoint(POINTLIST._3_XM_PLAYERSCENE, 1)
PlayerSetPosPoint(POINTLIST._3_XM_PLAYERSTART, 1)
PlayerSetPosPoint(POINTLIST._4_01_CUTSHOWERPLAYER)
PlayerSetPosPoint(POINTLIST._4_01_GYMMOVEJIMMY)
PlayerSetPosPoint(POINTLIST._4_01_SPAWNPLAYER)
PlayerSetPosPoint(POINTLIST._4_02_PLAYERENDCUT)
PlayerSetPosPoint(POINTLIST._4_04_AFTERREAPER, 1)
PlayerSetPosPoint(POINTLIST._4_04_CONTROLROOM, 1)
PlayerSetPosPoint(POINTLIST._4_04_DEBUGGRAVE, 1)
PlayerSetPosPoint(POINTLIST._4_04_FINALROOMPLYR, 1)
PlayerSetPosPoint(POINTLIST._4_04_FIRSTROOMNIS, 3)
PlayerSetPosPoint(POINTLIST._4_04_GRVDOORCORONAS, nCurrentEntrance)
PlayerSetPosPoint(POINTLIST._4_04_MAZESTART, 1)
PlayerSetPosPoint(POINTLIST._4_05CUT_POOLJIMMY)
PlayerSetPosPoint(POINTLIST._4_05CUT_SPAWNPLAYER, 1)
PlayerSetPosPoint(POINTLIST._4_05CUT_SPAWNPLAYER, 2)
PlayerSetPosPoint(POINTLIST._4_06_MISSIONFAIL)
PlayerSetPosPoint(POINTLIST._4_S12_MSPHILLIPS, 2)
PlayerSetPosPoint(POINTLIST._5_02_PLAYER_START)
PlayerSetPosPoint(POINTLIST._5_02_PLAYERENDPOINT, 1)
PlayerSetPosPoint(POINTLIST._5_02_PLAYERGREASERNS)
PlayerSetPosPoint(POINTLIST._5_04_INGYM_END)
PlayerSetPosPoint(POINTLIST._5_05_CHECKPOT2)
PlayerSetPosPoint(POINTLIST._5_05_PLAYERAFTERPUSH)
PlayerSetPosPoint(POINTLIST._5_06_NISRECRUITRUSSELL, 1)
PlayerSetPosPoint(POINTLIST._5_06_RUSSELLNIS, 2)
PlayerSetPosPoint(POINTLIST._5_06_RUSSELLWALKTO, 1)
PlayerSetPosPoint(POINTLIST._5_07_A_CORONA)
PlayerSetPosPoint(POINTLIST._5_09_ENDPOINT, 1)
PlayerSetPosPoint(POINTLIST._5_B_START)
PlayerSetPosPoint(POINTLIST._5_T1_PLAYERDROP)
PlayerSetPosPoint(POINTLIST._6_02_ENDNIS, 1)
PlayerSetPosPoint(POINTLIST._AFTERCUTSCENE, 1)
PlayerSetPosPoint(POINTLIST._BASEBALLTOSS_MINIGAME_ENTRY)
PlayerSetPosPoint(POINTLIST._BEGGINING, 3)
PlayerSetPosPoint(POINTLIST._BOYSDORM_PLAYERBED)
PlayerSetPosPoint(POINTLIST._C3_PEND)
PlayerSetPosPoint(POINTLIST._C3_PLAYERINIT)
PlayerSetPosPoint(POINTLIST._C4_P_TABLE)
PlayerSetPosPoint(POINTLIST._C5_ENDINGPOINTS, 2)
PlayerSetPosPoint(POINTLIST._C8_PLAYERSTAND)
PlayerSetPosPoint(POINTLIST._CHAPT3ENDPLYR, 1)
PlayerSetPosPoint(POINTLIST._CHAPT4TRANS_DRIVER, 1)
PlayerSetPosPoint(POINTLIST._DBALL_PLAYER)
PlayerSetPosPoint(POINTLIST._DBALL_PLAYEREND)
PlayerSetPosPoint(POINTLIST._ENDING)
PlayerSetPosPoint(POINTLIST._ENDING, 1)
PlayerSetPosPoint(POINTLIST._ENDPLAYERLOCATION, 1)
PlayerSetPosPoint(POINTLIST._ENDPOSITION, 1)
PlayerSetPosPoint(POINTLIST._FINALFIGHTNIS, 2)
PlayerSetPosPoint(POINTLIST._FINALFIGHTNIS, 4)
PlayerSetPosPoint(POINTLIST._GIRLSDORM, 4)
PlayerSetPosPoint(POINTLIST._GRAVEYARD_START)
PlayerSetPosPoint(POINTLIST._HARRINGTONHOUSE, 4)
PlayerSetPosPoint(POINTLIST._IBOXING_NO_SWEATER)
PlayerSetPosPoint(POINTLIST._INDUS_POINTS, 4)
PlayerSetPosPoint(POINTLIST._INDUS_POINTS, 9)
PlayerSetPosPoint(POINTLIST._LIBPEDS, 4)
PlayerSetPosPoint(POINTLIST._MGS_PLAYERENTER)
PlayerSetPosPoint(POINTLIST._MGS_PLAYEREXIT)
PlayerSetPosPoint(POINTLIST._PLAYERBUSTED)
PlayerSetPosPoint(POINTLIST._PLAYERSTART)
PlayerSetPosPoint(POINTLIST._TFIGHT01_C)
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x24]
push esi
xor bl, bl
call 0x73AEA0
add esp, 0x4
cmp eax, 0x2
jnz 0x13
push 0x1
push esi
mov bl, 0x1
call LuaParam::GetInt
add esp, 0x8
mov dword ptr [esp+0x10], eax
push 0x0
push esi
call LuaParam::GetInt
movzx eax, ax
movzx eax, ax
add esp, 0x8
push eax
mov ecx, 0xBC5E7C
call 0x6D6450
mov ebp, eax
mov ecx, ebp
call 0x6D59B0
test bl, bl
mov esi, eax
jz 0x25
mov ebx, dword ptr [esp+0x10]
push edi
mov edi, 0x1
cmp ebx, edi
jle 0x16
mov ecx, ebp
call 0x6D59F0
test eax, eax
jz 0xB
add edi, 0x1
cmp edi, ebx
mov esi, eax
jl 0xFFFFFFEE
pop edi
mov ecx, dword ptr [esi]
mov dword ptr [esp+0x14], ecx
mov edx, dword ptr [esi+0x4]
mov dword ptr [esp+0x18], edx
mov eax, dword ptr [esi+0x8]
mov dword ptr [esp+0x1C], eax
fld st, dword ptr [esi+0x1C]
fmul st, qword ptr [0x900160]
push ecx
fdiv st, qword ptr [0x900158]
fstp dword ptr [esp+0x14], st
fld st, dword ptr [esp+0x14]
fstp dword ptr [esp], st
call 0x4333A0
fstp dword ptr [esp+0x14], st
movsx eax, byte ptr [ebp+0xC]
add esp, 0x4
cmp eax, 0xFFFFFFFF
pop esi
pop ebp
mov dword ptr [esp+0x4], eax
pop ebx
jnz 0xB
mov ecx, dword ptr [0xBD1008]
mov dword ptr [esp], ecx
fld st, dword ptr [esp+0x4]
mov edx, dword ptr [0x9E4F4C]
lea eax, ptr [esp]
push eax
push ecx
lea ecx, ptr [esp+0x10]
fstp dword ptr [esp], st
push ecx
mov ecx, 0xBCC580
mov byte ptr [edx+0x8DC], 0x1
call 0x415880
xor eax, eax
add esp, 0x14
ret
PlayerSetPosPointArea(idArea, idPoint)
PlayerSetPosPointArea(idArea, idPoint, numPoint)
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x24]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov dword ptr [esp+0x24], eax
call LuaParam::GetInt
movzx eax, ax
add esp, 0x10
push eax
mov ecx, 0xBC5E7C
call 0x6D6450
mov edi, eax
push esi
mov dword ptr [esp+0x14], edi
xor bl, bl
call 0x73AEA0
add esp, 0x4
cmp eax, 0x3
jnz 0x13
push 0x2
push esi
mov bl, 0x1
call LuaParam::GetInt
add esp, 0x8
mov ebp, eax
jmp 0x6
mov ebp, dword ptr [esp+0x14]
mov ecx, edi
call 0x6D59B0
test bl, bl
mov edi, eax
jz 0x21
mov esi, 0x1
cmp ebp, esi
jle 0x18
mov ecx, dword ptr [esp+0x10]
call 0x6D59F0
test eax, eax
jz 0xB
add esi, 0x1
cmp esi, ebp
mov edi, eax
jl 0xFFFFFFEC
mov ecx, dword ptr [edi]
mov dword ptr [esp+0x18], ecx
mov edx, dword ptr [edi+0x4]
mov dword ptr [esp+0x1C], edx
mov eax, dword ptr [edi+0x8]
mov dword ptr [esp+0x20], eax
fld st, dword ptr [edi+0x1C]
fmul st, qword ptr [0x900160]
push ecx
fdiv st, qword ptr [0x900158]
fstp dword ptr [esp+0x14], st
fld st, dword ptr [esp+0x14]
fstp dword ptr [esp], st
call 0x4333A0
fstp dword ptr [esp+0x14], st
mov ecx, dword ptr [0x9E4F4C]
fld st, dword ptr [esp+0x14]
add esp, 0x4
lea edx, ptr [esp+0x14]
push edx
push ecx
lea eax, ptr [esp+0x20]
fstp dword ptr [esp], st
mov byte ptr [ecx+0x8DC], 0x1
push eax
mov ecx, 0xBCC580
call 0x415880
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
PlayerSetPosSimple(-21.7, -24, 2)
PlayerSetPosSimple(-499.8, 318.3, 31.4)
PlayerSetPosSimple(-621.3, -60, 59.6)
PlayerSetPosSimple(-645.80054, 222.25, -0.39)
PlayerSetPosSimple(-655.834, 82.6622, 0.239465)
PlayerSetPosSimple(-730.2934, 36.06182, -2.3)
PlayerSetPosSimple(0.2, -40.7, 1.1)
PlayerSetPosSimple(142.9, 56.5, 14.5)
PlayerSetPosSimple(157, 6.6, 6.4)
PlayerSetPosSimple(389.1, 279.9, 8.8)
PlayerSetPosSimple(ax, ay, az)
PlayerSetPosSimple(bustX, bustY, bustZ)
PlayerSetPosSimple(lx, ly, lz)
PlayerSetPosSimple(plx, ply, plz)
PlayerSetPosSimple(prx, pry, prz)
PlayerSetPosSimple(px, py, pz)
PlayerSetPosSimple(startx, starty, startz)
PlayerSetPosSimple(tempx, tempy, tempz)
PlayerSetPosSimple(tempX, tempY, tempZ)
PlayerSetPosSimple(tx, ty, tz)
PlayerSetPosSimple(x, y, z)
sub esp, 0xC
push esi
mov esi, dword ptr [esp+0x14]
push 0x0
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0xC], st
push 0x1
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x18], st
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x24], st
mov ecx, dword ptr [0xC1AEA8]
mov eax, dword ptr [ecx]
mov edx, dword ptr [eax+0xC]
add esp, 0x18
call 0x5D2D6C
fld st, dword ptr [esp+0xC]
mov ecx, dword ptr [0xC1AEA8]
sub esp, 0xC
fstp dword ptr [esp+0x8], st
fld st, dword ptr [esp+0x14]
fstp dword ptr [esp+0x4], st
fld st, dword ptr [esp+0x10]
fstp dword ptr [esp], st
call 0x41C4E0
mov ecx, dword ptr [0xC1AEA8]
call 0x443AA0
mov ecx, dword ptr [0xC1AEA8]
call 0x465760
mov ecx, dword ptr [0xC1AEA8]
mov eax, dword ptr [ecx]
mov edx, dword ptr [eax+0x8]
call 0x5D2DB4
xor eax, eax
pop esi
add esp, 0xC
ret
PlayerSetPosXYZ(-637.4, -296.2, 0)
PlayerSetPosXYZ(-764.595, -451.721, 15.502)
PlayerSetPosXYZ(516.14, -70.544, 4.64)
PlayerSetPosXYZ(ax - 0.5, ay, az)
PlayerSetPosXYZ(px + dx, py + dy, z)
PlayerSetPosXYZ(px, py, pz)
PlayerSetPosXYZ(setX, setY, setZ)
PlayerSetPosXYZ(x, y, z)
PlayerSetPosXYZ(x2 + dx, y2 + dy, z2)
PlayerSetPosXYZ(x2, y2, z2)
sub esp, 0x18
push esi
mov esi, dword ptr [esp+0x20]
push 0x0
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0xC], st
push 0x1
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x18], st
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x24], st
fld st, dword ptr [esp+0x1C]
mov eax, dword ptr [0x9E4F4C]
fstp dword ptr [esp+0x28], st
add esp, 0x18
fld st, dword ptr [esp+0x8]
lea ecx, ptr [esp+0x10]
fstp dword ptr [esp+0x14], st
push ecx
fld st, dword ptr [esp+0x10]
mov ecx, 0xBCC580
fstp dword ptr [esp+0x1C], st
mov byte ptr [eax+0x8DC], 0x1
call 0x416100
xor eax, eax
pop esi
add esp, 0x18
ret
PlayerSetPosXYZArea(lx, ly, lz, 2)
PlayerSetPosXYZArea(Px, Py, Pz, PLAYER_AREA)
PlayerSetPosXYZArea(tblCard[card].x, tblCard[card].y, tblCard[card].z + zplus, tblCard[card].area)
PlayerSetPosXYZArea(tblGnomes[gnome].x, tblGnomes[gnome].y, tblGnomes[gnome].z + zplus, tblGnomes[gnome].area)
PlayerSetPosXYZArea(tblRB[band].x, tblRB[band].y, tblRB[band].z + zplus, tblRB[band].area)
PlayerSetPosXYZArea(tblScenario[currentScen][4], tblScenario[currentScen][5], tblScenario[currentScen][6], tblScenario[currentScen][1])
PlayerSetPosXYZArea(tblScenario[number][4], tblScenario[number][5], tblScenario[number][6], tblScenario[number][1])
PlayerSetPosXYZArea(x, y, z, 22)
PlayerSetPosXYZArea(x, y, z, idArea)
PlayerSetPosXYZArea(x, y, z, visibleArea)
sub esp, 0x1C
push esi
mov esi, dword ptr [esp+0x24]
push 0x0
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0xC], st
push 0x1
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x18], st
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x24], st
fld st, dword ptr [esp+0x1C]
push 0x3
fstp dword ptr [esp+0x30], st
push esi
fld st, dword ptr [esp+0x28]
fstp dword ptr [esp+0x38], st
fld st, dword ptr [esp+0x2C]
fstp dword ptr [esp+0x3C], st
call LuaParam::GetInt
fldz
mov dword ptr [esp+0x30], eax
mov eax, dword ptr [0xC1AEA8]
fstp dword ptr [esp+0x24], st
add esp, 0x20
test eax, eax
pop esi
jz 0x28
cmp dword ptr [eax+0x14], 0x0
jz 0x1C
mov eax, dword ptr [eax+0x14]
fld st, dword ptr [eax+0x10]
fchs
fld st, dword ptr [eax+0x14]
call 0x85CF1A
fstp dword ptr [esp+0x8], st
fld st, dword ptr [esp+0x8]
jmp 0x5
fld st, dword ptr [eax+0x10]
fstp dword ptr [esp], st
fld st, dword ptr [esp]
mov eax, dword ptr [0x9E4F4C]
lea ecx, ptr [esp+0xC]
push ecx
push ecx
lea edx, ptr [esp+0x18]
fstp dword ptr [esp], st
push edx
mov ecx, 0xBCC580
mov byte ptr [eax+0x8DC], 0x1
call 0x415880
xor eax, eax
add esp, 0x1C
ret
PlayerSetPunishmentPoints(0)
PlayerSetPunishmentPoints(200)
PlayerSetPunishmentPoints(95)
PlayerSetPunishmentPoints(PlayerGetPunishmentPoints() + 150)
PlayerSetPunishmentPoints(PlayerGetPunishmentPoints() + 200)
PlayerSetPunishmentPoints(ppoints)
PlayerSetPunishmentPoints(punishment)
mov eax, dword ptr [esp+0x4]
push esi
mov esi, dword ptr [0xC1AEA8]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, esi
call 0x477520
xor eax, eax
pop esi
ret
PlayerSetScriptSavedData(11, 1)
PlayerSetScriptSavedData(12, 1)
PlayerSetScriptSavedData(13, 1)
PlayerSetScriptSavedData(14, 0)
PlayerSetScriptSavedData(14, 1)
PlayerSetScriptSavedData(15, 1)
PlayerSetScriptSavedData(17, 1)
PlayerSetScriptSavedData(23, 1)
PlayerSetScriptSavedData(24, timesBusted)
PlayerSetScriptSavedData(25, currentDay)
PlayerSetScriptSavedData(25, shared.ChemistrySetLastTimeUsed)
PlayerSetScriptSavedData(26, 1)
PlayerSetScriptSavedData(3, PlayerGetNumTimesBusted())
PlayerSetScriptSavedData(3, timesBusted)
push esi
mov esi, dword ptr [esp+0x8]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetInt
add esp, 0x10
mov dword ptr [edi*4+0xC1AFB8], eax
pop edi
xor eax, eax
pop esi
ret
PlayerSetTakeDamageWhenAttachedToVehicle(true)
mov eax, dword ptr [esp+0x4]
push ebx
push 0x0
push eax
call LuaParam::GetBool
add esp, 0x4
mov bl, al
mov eax, esp
push 0x0
mov dword ptr [eax], 0x3
call 0x5C7380
movzx ecx, bl
add esp, 0x8
mov dword ptr [eax+0x1454], ecx
xor eax, eax
pop ebx
ret
PlayerSetWeapon(300, 1, false)
PlayerSetWeapon(301, 3, false)
PlayerSetWeapon(301, PedGetAmmoCount(gPlayer, 301) + 1)
PlayerSetWeapon(305, 10, false)
PlayerSetWeapon(305, 25)
PlayerSetWeapon(307, 1, false)
PlayerSetWeapon(309, 3, false)
PlayerSetWeapon(309, 5)
PlayerSetWeapon(312, 12)
PlayerSetWeapon(312, 140)
PlayerSetWeapon(312, 6)
PlayerSetWeapon(321, 100)
PlayerSetWeapon(326, 0)
PlayerSetWeapon(328, 1, false)
PlayerSetWeapon(349, 5)
PlayerSetWeapon(364, 1, false)
PlayerSetWeapon(372, 1)
PlayerSetWeapon(383, 1, true)
PlayerSetWeapon(394, 3, false)
PlayerSetWeapon(394, 5)
PlayerSetWeapon(400, 1)
PlayerSetWeapon(426, 1, false)
PlayerSetWeapon(bGun, ammo, false)
PlayerSetWeapon(MODELENUM._WBRUSH, 1, false)
PlayerSetWeapon(shared.gWeaponBeforeCut, shared.gAmmoBeforeCut, false)
PlayerSetWeapon(weaponTable[weapon].model, 1)
PlayerSetWeapon(weaponTable[weapon].model, 50)
push ecx
push ebx
push esi
push edi
mov edi, dword ptr [esp+0x14]
push edi
mov byte ptr [esp+0x10], 0x1
call 0x73AEA0
add esp, 0x4
cmp eax, 0x3
jl 0x11
push 0x2
push edi
call LuaParam::GetBool
add esp, 0x8
mov byte ptr [esp+0xC], al
push 0x0
push edi
call LuaParam::GetInt
push 0x1
push edi
mov esi, eax
call LuaParam::GetInt
mov edi, dword ptr [0xC1AEA8]
mov ecx, dword ptr [edi+0x1C4]
add esp, 0x10
push esi
movzx ebx, ax
call 0x45CF40
test eax, eax
jnz 0x1A
push eax
mov eax, dword ptr [esp+0x10]
movzx ecx, bx
push eax
push ecx
mov ecx, dword ptr [edi+0x1C4]
push esi
call 0x45D030
jmp 0x17
mov edx, dword ptr [esp+0xC]
mov ecx, dword ptr [edi+0x1C4]
movzx eax, bx
push edx
push eax
push esi
call 0x45D240
mov ecx, dword ptr [edi+0x2E0]
mov dword ptr [ecx+0x18], esi
mov ecx, dword ptr [0xC674F0]
push esi
call 0x55C840
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
PlayerSocialDisableActionAgainstPed(beatrice, 28, false)
PlayerSocialDisableActionAgainstPed(beatrice, 28, true)
PlayerSocialDisableActionAgainstPed(beatrice, 29, false)
PlayerSocialDisableActionAgainstPed(beatrice, 29, true)
PlayerSocialDisableActionAgainstPed(clint, 28, true)
PlayerSocialDisableActionAgainstPed(clint, 29, true)
PlayerSocialDisableActionAgainstPed(Crazy01, 23, true)
PlayerSocialDisableActionAgainstPed(Crazy01, 28, true)
PlayerSocialDisableActionAgainstPed(Crazy01, 29, true)
PlayerSocialDisableActionAgainstPed(Crazy01, 30, true)
PlayerSocialDisableActionAgainstPed(Crazy01, 35, true)
PlayerSocialDisableActionAgainstPed(Crazy02, 23, true)
PlayerSocialDisableActionAgainstPed(Crazy02, 28, true)
PlayerSocialDisableActionAgainstPed(Crazy02, 29, true)
PlayerSocialDisableActionAgainstPed(Crazy02, 30, true)
PlayerSocialDisableActionAgainstPed(Crazy02, 35, true)
PlayerSocialDisableActionAgainstPed(elf_01, 30, true)
PlayerSocialDisableActionAgainstPed(elf_02, 30, true)
PlayerSocialDisableActionAgainstPed(elf_03, 30, true)
PlayerSocialDisableActionAgainstPed(elf_04, 30, true)
PlayerSocialDisableActionAgainstPed(gBeatrice, 28, false)
PlayerSocialDisableActionAgainstPed(gBeatrice, 28, true)
PlayerSocialDisableActionAgainstPed(gBeatrice, 29, false)
PlayerSocialDisableActionAgainstPed(gBeatrice, 29, true)
PlayerSocialDisableActionAgainstPed(gBully01, 28, true)
PlayerSocialDisableActionAgainstPed(gControlOrderly, 27, true)
PlayerSocialDisableActionAgainstPed(gFatty, 27, true)
PlayerSocialDisableActionAgainstPed(gFatty, 28, true)
PlayerSocialDisableActionAgainstPed(gFatty, 32, true)
PlayerSocialDisableActionAgainstPed(gFatty, 35, true)
PlayerSocialDisableActionAgainstPed(gHobo, 28, true)
PlayerSocialDisableActionAgainstPed(gHobo, 29, true)
PlayerSocialDisableActionAgainstPed(Girl1, 28, true)
PlayerSocialDisableActionAgainstPed(gMelvin, 28, true)
PlayerSocialDisableActionAgainstPed(gMelvin, 29, true)
PlayerSocialDisableActionAgainstPed(gMelvin, 32, true)
PlayerSocialDisableActionAgainstPed(gMelvin, 35, true)
PlayerSocialDisableActionAgainstPed(gThad, 27, true)
PlayerSocialDisableActionAgainstPed(gThad, 35, true)
PlayerSocialDisableActionAgainstPed(idBucky, 23, true)
PlayerSocialDisableActionAgainstPed(idBucky, 24, true)
PlayerSocialDisableActionAgainstPed(idBucky, 25, true)
PlayerSocialDisableActionAgainstPed(idBucky, 28, true)
PlayerSocialDisableActionAgainstPed(idBucky, 29, true)
PlayerSocialDisableActionAgainstPed(idBucky, 35, true)
PlayerSocialDisableActionAgainstPed(idConst.id, 23, true)
PlayerSocialDisableActionAgainstPed(idConst.id, 28, true)
PlayerSocialDisableActionAgainstPed(idConst.id, 29, true)
PlayerSocialDisableActionAgainstPed(idConst.id, 35, true)
PlayerSocialDisableActionAgainstPed(idEunice.id, 28, true)
PlayerSocialDisableActionAgainstPed(idEunice.id, 29, true)
PlayerSocialDisableActionAgainstPed(idEunice.id, 32, true)
PlayerSocialDisableActionAgainstPed(idNorton, 23, true)
PlayerSocialDisableActionAgainstPed(idNorton, 28, true)
PlayerSocialDisableActionAgainstPed(idNorton, 29, true)
PlayerSocialDisableActionAgainstPed(idNorton, 30, true)
PlayerSocialDisableActionAgainstPed(idNorton, 35, true)
PlayerSocialDisableActionAgainstPed(idPetey.id, 23, true)
PlayerSocialDisableActionAgainstPed(idPetey.id, 28, true)
PlayerSocialDisableActionAgainstPed(idPetey.id, 29, true)
PlayerSocialDisableActionAgainstPed(idPetey.id, 35, true)
PlayerSocialDisableActionAgainstPed(idPinky.id, 23, true)
PlayerSocialDisableActionAgainstPed(idPinky.id, 28, true)
PlayerSocialDisableActionAgainstPed(idPinky.id, 29, true)
PlayerSocialDisableActionAgainstPed(idPinky.id, 32, true)
PlayerSocialDisableActionAgainstPed(idTeacher, 28, true)
PlayerSocialDisableActionAgainstPed(idTeacher, 29, true)
PlayerSocialDisableActionAgainstPed(item.elf, 30, true)
PlayerSocialDisableActionAgainstPed(nemesis, 28, true)
PlayerSocialDisableActionAgainstPed(nemesis, 29, true)
PlayerSocialDisableActionAgainstPed(opponent, 23, true)
PlayerSocialDisableActionAgainstPed(opponent, 24, true)
PlayerSocialDisableActionAgainstPed(opponent, 25, true)
PlayerSocialDisableActionAgainstPed(opponent, 26, true)
PlayerSocialDisableActionAgainstPed(opponent, 27, true)
PlayerSocialDisableActionAgainstPed(opponent, 28, true)
PlayerSocialDisableActionAgainstPed(opponent, 29, true)
PlayerSocialDisableActionAgainstPed(opponent, 30, true)
PlayerSocialDisableActionAgainstPed(opponent, 31, true)
PlayerSocialDisableActionAgainstPed(opponent, 32, true)
PlayerSocialDisableActionAgainstPed(opponent, 33, true)
PlayerSocialDisableActionAgainstPed(opponent, 34, true)
PlayerSocialDisableActionAgainstPed(opponent, 35, true)
PlayerSocialDisableActionAgainstPed(pedBurtonStage3.id, 28, false)
PlayerSocialDisableActionAgainstPed(pedBurtonStage3.id, 28, true)
PlayerSocialDisableActionAgainstPed(pedBurtonStage3.id, 29, false)
PlayerSocialDisableActionAgainstPed(pedBurtonStage3.id, 29, true)
PlayerSocialDisableActionAgainstPed(pedBurtonStage3.id, 35, false)
PlayerSocialDisableActionAgainstPed(pedBurtonStage3.id, 35, true)
PlayerSocialDisableActionAgainstPed(pedConstantine.id, 28, true)
PlayerSocialDisableActionAgainstPed(pedConstantine.id, 30, true)
PlayerSocialDisableActionAgainstPed(pedEarnest.id, 28, false)
PlayerSocialDisableActionAgainstPed(pedEarnest.id, 28, true)
PlayerSocialDisableActionAgainstPed(pedEarnest.id, 29, false)
PlayerSocialDisableActionAgainstPed(pedEarnest.id, 29, true)
PlayerSocialDisableActionAgainstPed(pedEarnest.id, 35, false)
PlayerSocialDisableActionAgainstPed(pedEarnest.id, 35, true)
PlayerSocialDisableActionAgainstPed(pedEunice.id, 28, false)
PlayerSocialDisableActionAgainstPed(pedEunice.id, 28, true)
PlayerSocialDisableActionAgainstPed(pedEunice.id, 29, false)
PlayerSocialDisableActionAgainstPed(pedEunice.id, 29, true)
PlayerSocialDisableActionAgainstPed(pedEunice.id, 35, false)
PlayerSocialDisableActionAgainstPed(pedEunice.id, 35, true)
PlayerSocialDisableActionAgainstPed(pedGary.id, 28, true)
PlayerSocialDisableActionAgainstPed(pedGary.id, 29, true)
PlayerSocialDisableActionAgainstPed(pedGary.id, 35, true)
PlayerSocialDisableActionAgainstPed(pedGord, 30, false)
PlayerSocialDisableActionAgainstPed(pedGord, 30, true)
PlayerSocialDisableActionAgainstPed(pedId, 23, bDisable)
PlayerSocialDisableActionAgainstPed(pedId, 23, bDisableX)
PlayerSocialDisableActionAgainstPed(pedId, 24, bDisable)
PlayerSocialDisableActionAgainstPed(pedId, 24, bDisableX)
PlayerSocialDisableActionAgainstPed(pedId, 25, bDisable)
PlayerSocialDisableActionAgainstPed(pedId, 25, bDisableX)
PlayerSocialDisableActionAgainstPed(pedId, 26, bDisable)
PlayerSocialDisableActionAgainstPed(pedId, 26, bDisableX)
PlayerSocialDisableActionAgainstPed(pedId, 27, bDisable)
PlayerSocialDisableActionAgainstPed(pedId, 28, bDisable)
PlayerSocialDisableActionAgainstPed(pedId, 28, bDisableO)
PlayerSocialDisableActionAgainstPed(pedID, 28, true)
PlayerSocialDisableActionAgainstPed(pedId, 29, bDisable)
PlayerSocialDisableActionAgainstPed(pedId, 29, bDisableO)
PlayerSocialDisableActionAgainstPed(pedID, 29, true)
PlayerSocialDisableActionAgainstPed(pedId, 30, bDisable)
PlayerSocialDisableActionAgainstPed(pedId, 30, bDisableO)
PlayerSocialDisableActionAgainstPed(pedId, 31, bDisable)
PlayerSocialDisableActionAgainstPed(pedId, 31, bDisableO)
PlayerSocialDisableActionAgainstPed(pedId, 32, bDisable)
PlayerSocialDisableActionAgainstPed(pedId, 32, bDisableX)
PlayerSocialDisableActionAgainstPed(pedId, 33, bDisable)
PlayerSocialDisableActionAgainstPed(pedId, 33, bDisableO)
PlayerSocialDisableActionAgainstPed(pedId, 34, bDisable)
PlayerSocialDisableActionAgainstPed(pedId, 34, bDisableO)
PlayerSocialDisableActionAgainstPed(pedId, 35, bDisable)
PlayerSocialDisableActionAgainstPed(pedId, 35, bDisableX)
PlayerSocialDisableActionAgainstPed(pedId, 36, bDisable)
PlayerSocialDisableActionAgainstPed(pedId, 36, bDisableO)
PlayerSocialDisableActionAgainstPed(pedMandyBedroom.id, 23, true)
PlayerSocialDisableActionAgainstPed(pedMandyBedroom.id, 28, true)
PlayerSocialDisableActionAgainstPed(pedMandyBedroom.id, 29, true)
PlayerSocialDisableActionAgainstPed(pedMandyBedroom.id, 35, true)
PlayerSocialDisableActionAgainstPed(pedMandyShower.id, 23, true)
PlayerSocialDisableActionAgainstPed(pedMandyShower.id, 28, true)
PlayerSocialDisableActionAgainstPed(pedMandyShower.id, 29, true)
PlayerSocialDisableActionAgainstPed(pedMandyShower.id, 35, true)
PlayerSocialDisableActionAgainstPed(pedMascot.id, 35, true)
PlayerSocialDisableActionAgainstPed(pedPinky.id, 28, true)
PlayerSocialDisableActionAgainstPed(pedPinky.id, 29, true)
PlayerSocialDisableActionAgainstPed(pedPinky.id, 32, true)
PlayerSocialDisableActionAgainstPed(pedRussell.id, 23, false)
PlayerSocialDisableActionAgainstPed(pedRussell.id, 23, true)
PlayerSocialDisableActionAgainstPed(pedRussell.id, 28, true)
PlayerSocialDisableActionAgainstPed(pedRussell.id, 29, true)
PlayerSocialDisableActionAgainstPed(pedRussell.id, 32, false)
PlayerSocialDisableActionAgainstPed(pedRussell.id, 32, true)
PlayerSocialDisableActionAgainstPed(pedRussell.id, 35, true)
PlayerSocialDisableActionAgainstPed(Petey, 28, true)
PlayerSocialDisableActionAgainstPed(Petey, 29, true)
PlayerSocialDisableActionAgainstPed(Petey, 35, false)
PlayerSocialDisableActionAgainstPed(Petey, 35, true)
PlayerSocialDisableActionAgainstPed(prank.id, 23, true)
PlayerSocialDisableActionAgainstPed(prank.id, 28, true)
PlayerSocialDisableActionAgainstPed(prank.id, 29, true)
push ebx
push esi
push edi
mov edi, dword ptr [esp+0x10]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
push 0x1
push edi
mov ebx, eax
call LuaParam::GetInt
mov esi, eax
push 0x2
push edi
sub esi, 0x17
call LuaParam::GetBool
add esp, 0x18
mov byte ptr [esi+ebx*1+0xB4C], al
pop edi
pop esi
xor eax, eax
pop ebx
ret
PlayerSocialEnableOverrideAgainstPed(Greaser1, 35, true)
PlayerSocialEnableOverrideAgainstPed(idEunice.id, 32, false)
PlayerSocialEnableOverrideAgainstPed(pedBurtonStage3.id, 32, true)
PlayerSocialEnableOverrideAgainstPed(pedConstantine.id, 32, false)
PlayerSocialEnableOverrideAgainstPed(pedConstantine.id, 32, true)
PlayerSocialEnableOverrideAgainstPed(pedEarnest.id, 32, true)
PlayerSocialEnableOverrideAgainstPed(pedEunice.id, 32, false)
PlayerSocialEnableOverrideAgainstPed(pedEunice.id, 32, true)
PlayerSocialEnableOverrideAgainstPed(pedID, 32, false)
PlayerSocialEnableOverrideAgainstPed(pedID, 32, true)
PlayerSocialEnableOverrideAgainstPed(pedPinky.id, 32, true)
push ebx
push esi
push edi
mov edi, dword ptr [esp+0x10]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
push 0x1
push edi
mov ebx, eax
call LuaParam::GetInt
mov esi, eax
push 0x2
push edi
sub esi, 0x17
call LuaParam::GetBool
add esp, 0x18
mov byte ptr [esi+ebx*1+0xB5A], al
pop edi
pop esi
xor eax, eax
pop ebx
ret
PlayerSocialOverrideLoad(32, "Mission/" .. (shared.missionCode and shared.missionCode .. "GiveGift.act" or "GiveGift.act"))
PlayerSocialOverrideLoad(32, "Mission/1_02BGiveChocolates.act")
PlayerSocialOverrideLoad(32, "Mission/206GiveChocolates.act")
PlayerSocialOverrideLoad(32, "Mission/2_G2PlayerGift.act")
PlayerSocialOverrideLoad(32, "Mission/2_S06PlayerGift.act")
PlayerSocialOverrideLoad(32, "Mission/4_01PlayerGift.act")
sub esp, 0x100
push esi
mov esi, dword ptr [esp+0x108]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0xFD
mov edi, eax
lea eax, ptr [esp+0x16]
push 0x0
push eax
mov word ptr [esp+0x1C], 0x0
call 0x85B3B0
push 0x1
push esi
call LuaParam::GetString
add esp, 0x1C
cmp byte ptr [eax], 0x0
jz 0x1F
push 0x1
push esi
call LuaParam::GetString
add esp, 0x8
lea edx, ptr [esp+0x8]
mov cl, byte ptr [eax]
mov byte ptr [edx], cl
add eax, 0x1
add edx, 0x1
test cl, cl
jnz 0xFFFFFFF4
add edi, 0xFFFFFFE9
mov ecx, edi
shl ecx, 0x7
add ecx, 0x910950
push 0x0
push ecx
call 0x5F5B10
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x46
push ebx
mov ebx, dword ptr [esi]
add ebx, 0x4
call 0x5C6190
mov edx, dword ptr [ebx]
mov ecx, esi
push eax
call 0x5D21FF
test al, al
pop ebx
jz 0x2F
mov ecx, esi
call 0x5F6670
lea eax, ptr [esp+0x8]
push eax
mov ecx, esi
call 0x5F56B0
mov ecx, esi
call 0x5F6CE0
push esi
push edi
mov ecx, 0xD02850
call 0x5DB940
mov ecx, eax
call 0x5D92E0
pop edi
xor eax, eax
pop esi
add esp, 0x100
ret
PlayerStopAllActionControllers()
mov eax, dword ptr [0xC1AEA8]
mov ecx, dword ptr [eax+0x2E0]
add ecx, 0x290
call 0x5F40A0
mov ecx, dword ptr [0xC1AEA8]
mov ecx, dword ptr [ecx+0x2E0]
add ecx, 0x258
call 0x5F40A0
mov edx, dword ptr [0xC1AEA8]
mov ecx, dword ptr [edx+0x2E0]
add ecx, 0x2C8
call 0x5F40A0
xor eax, eax
ret
PlayerSuppressFailDisplayOnDeath()
or byte ptr [0xC1AF6C], 0x8
xor eax, eax
ret
-- never used
mov eax, dword ptr [esp+0x4]
sub esp, 0x104
push esi
push 0x0
push eax
call LuaParam::GetString
add esp, 0x8
lea edx, ptr [esp+0x8]
lea ebx, ptr [ebx]
mov cl, byte ptr [eax]
mov byte ptr [edx], cl
add eax, 0x1
add edx, 0x1
test cl, cl
jnz 0xFFFFFFF4
push ecx
mov eax, esp
push 0x0
mov dword ptr [eax], 0x3
call 0x5C7380
lea ecx, ptr [esp+0xC]
push ecx
lea edx, ptr [esp+0x14]
push edx
mov esi, eax
mov dword ptr [esp+0x14], 0xFFFFFFFF
call 0x51C190
mov ecx, dword ptr [esp+0x14]
mov eax, dword ptr [esi]
mov edx, dword ptr [eax+0x20]
add esp, 0x10
push 0x1
push ecx
mov ecx, esi
call 0x5D1B3A
xor eax, eax
pop esi
add esp, 0x104
ret
PlayerUnequip()
mov ecx, dword ptr [0xC674F0]
call 0x55C8D0
xor eax, eax
ret
-- never used
mov eax, dword ptr [esp+0x4]
sub esp, 0x18
push 0x0
push eax
call LuaParam::GetString
add esp, 0x8
lea edx, ptr [esp]
mov cl, byte ptr [eax]
mov byte ptr [edx], cl
add eax, 0x1
add edx, 0x1
test cl, cl
jnz 0xFFFFFFF4
lea ecx, ptr [esp]
push ecx
mov ecx, dword ptr [0xC1AA04]
call 0x45C170
xor eax, eax
add esp, 0x18
ret
PlayerWeaponHudLock(false)
PlayerWeaponHudLock(not bShow)
PlayerWeaponHudLock(not show)
PlayerWeaponHudLock(true)
push ecx
mov eax, dword ptr [esp+0x8]
push 0x0
push eax
call LuaParam::GetBool
mov byte ptr [esp+0x8], al
mov ecx, dword ptr [esp+0x8]
add esp, 0x8
push ecx
mov ecx, dword ptr [0xC674F0]
call 0x55BC70
xor eax, eax
pop ecx
ret
local result = POIActionNode2(Boy, Girl, "/Global/Ambient/Scripted/Cuddle", "Act/Anim/Ambient.act")
local result = POIActionNode2(Boy, Girl, "/Global/Ambient/Scripted/Kiss_Me_Baby", "Act/Anim/Ambient.act")
local result = POIActionNode2(Teacher, Victim, "/Global/Ambient/Scripted/Tell_Off", "Act/Anim/Ambient.act")
local result = POIActionNode2(Thug, Victim, "/Global/Ambient/Scripted/BookHarass", "Act/Anim/Ambient.act")
local result = POIActionNode2(Thug, Victim, "/Global/Ambient/Scripted/CanDump", "Act/Anim/Ambient.act")
local result = POIActionNode2(Thug, Victim, "/Global/Ambient/Scripted/LockerStuff", "Act/Anim/Ambient.act")
local result = POIActionNode2(Thug, Victim, "/Global/Ambient/Scripted/Swirlie", "Act/Anim/Ambient.act")
function POIActionNode2(ped1, ped2, actionNode, fileName)
if string.find(actionNode, "Global") == nil then
--print("============>>>> YOU HAVE NOT SPECIFIED A PROPER PATH FOR THE NODE!!!!")
--print("============>>>> NODE PASSED IN: ", actionNode)
--print("============>>>> FILE NAME REFERRENCED: ", fileName)
return
end
while PedIsValid(ped1) and PedIsValid(ped2) do
if not PedIsPlaying(ped1, actionNode, true) and not PedIsPlaying(ped1, actionNode, false) then
PedSetActionNode(ped1, actionNode, fileName)
else
return true
end
Wait(0)
end
if PedIsValid(ped1) then
PedClearPOI(ped1)
end
if PedIsValid(ped2) then
PedClearPOI(ped2)
end
return false
end
if override or POIClearForPeds(POIInfo, 0.5) then
sub esp, 0x8
push edi
mov edi, dword ptr [esp+0x10]
push 0x0
push edi
call LuaParam::GetInt
mov ecx, dword ptr [0xC0F5E4]
add esp, 0x8
push eax
call 0x448DC0
test eax, eax
mov byte ptr [esp+0x4], 0x0
jz 0x3A
mov ecx, dword ptr [eax+0x14]
test ecx, ecx
push esi
lea esi, ptr [ecx+0x30]
jnz 0x5
lea esi, ptr [eax+0x4]
push 0x0
push 0xFFFFFFFF
push 0x0
push 0x1
push edi
call LuaParam::GetInt ; optional
mov dword ptr [esp+0x20], eax
fild st, dword ptr [esp+0x20]
add esp, 0x8
fstp dword ptr [esp], st
push esi
call 0x48C990
add esp, 0x10
mov byte ptr [esp+0x8], al
pop esi
mov eax, dword ptr [esp+0x4]
push eax
push edi
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
pop edi
add esp, 0x8
ret
local x, y, z = POIGetPosXYZ(POI._SCENARIO_CRAZYFARM)
local x, y, z = POIGetPosXYZ(POIInfo)
local x1, y1, z1 = POIGetPosXYZ(POIInfo)
x, y, z = POIGetPosXYZ(POIInfo)
sub esp, 0xC
push esi
mov esi, dword ptr [esp+0x14]
push 0x0
push esi
call LuaParam::GetInt
mov ecx, dword ptr [0xC0F5E4]
add esp, 0x8
push eax
call 0x448DC0
fld st, dword ptr [0x9009B8]
test eax, eax
fst dword ptr [esp+0x4], st
fst dword ptr [esp+0x8], st
fstp dword ptr [esp+0xC], st
jz 0x25
mov ecx, dword ptr [eax+0x14]
test ecx, ecx
jz 0x7
lea eax, ptr [ecx+0x30]
jmp 0x5
add eax, 0x4
mov ecx, dword ptr [eax]
mov edx, dword ptr [eax+0x4]
mov eax, dword ptr [eax+0x8]
mov dword ptr [esp+0x4], ecx
mov dword ptr [esp+0x8], edx
mov dword ptr [esp+0xC], eax
fld st, dword ptr [esp+0x4]
push ecx
fstp dword ptr [esp], st
push esi
call LuaParam::PushFloat
fld st, dword ptr [esp+0x10]
add esp, 0x4
fstp dword ptr [esp], st
push esi
call LuaParam::PushFloat
fld st, dword ptr [esp+0x14]
add esp, 0x4
fstp dword ptr [esp], st
push esi
call LuaParam::PushFloat
add esp, 0x8
mov eax, 0x3
pop esi
add esp, 0xC
ret
POIGroupsEnabled(false)
POIGroupsEnabled(true)
mov eax, dword ptr [esp+0x4]
push esi
mov esi, dword ptr [0xC2C108]
push 0x0
push eax
call LuaParam::GetBool
shl al, 0x4
xor al, byte ptr [esi+0x7898]
add esp, 0x8
and al, 0x10
xor byte ptr [esi+0x7898], al
xor eax, eax
pop esi
ret
elseif POIIsValid(POIInfo) then
if POIIsValid(POIInfo) then
if pos == 21 and POIIsValid(POIInfo) then
while not VehicleRequestModel(bike, true) and POIIsValid(POIInfo) do
while not VehicleRequestModel(carc, true) and POIIsValid(POIInfo) do
while not WeaponRequestModel(377, true) and POIIsValid(POIInfo) do
while not WeaponRequestModel(381, true) and POIIsValid(POIInfo) do
push ecx
mov eax, dword ptr [esp+0x8]
push esi
push 0x0
push eax
call LuaParam::GetInt
mov ecx, dword ptr [0xC0F5E4]
add esp, 0x8
push eax
mov byte ptr [esp+0x8], 0x0
call 0x448DC0
mov esi, eax
test esi, esi
jz 0x51
cmp dword ptr [esi+0x70], 0x3
jnz 0x18
mov ecx, dword ptr [0xC0F5E4]
cmp dword ptr [ecx+0x14C], 0x0
jz 0x9
mov byte ptr [esp+0x4], 0x1
jmp 0x35
push ebp
mov ebp, dword ptr [0x20C7C84]
mov ecx, dword ptr [ebp+0xC]
push edi
mov edi, dword ptr [ebp]
sub eax, edi
cdq
idiv ecx
test eax, eax
jl 0x17
cmp eax, dword ptr [ebp+0x8]
jnl 0x12
imul ecx, eax
add ecx, edi
cmp esi, ecx
setz dl
mov byte ptr [esp+0xC], dl
jmp 0x7
mov byte ptr [esp+0xC], 0x0
pop edi
pop ebp
mov eax, dword ptr [esp+0x4]
mov ecx, dword ptr [esp+0xC]
push eax
push ecx
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
pop esi
pop ecx
ret
POISetDisablePedProduction(gPOIList[index], false)
POISetDisablePedProduction(POI._5_07_POI_01, true)
POISetDisablePedProduction(POI._5_07_POI_02, true)
POISetDisablePedProduction(POI._5_07_POI_06, true)
POISetDisablePedProduction(POI._BULLYHO1, true)
POISetDisablePedProduction(POI._CNERD1, false)
POISetDisablePedProduction(POI._CNERD1, true)
POISetDisablePedProduction(POI._CNERD2, false)
POISetDisablePedProduction(POI._CNERD2, true)
POISetDisablePedProduction(POI._CNERD3, false)
POISetDisablePedProduction(POI._CNERD3, true)
POISetDisablePedProduction(POI._POIBULLIESRIGHT, true)
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetInt
mov ecx, dword ptr [0xC0F5E4]
add esp, 0x8
push eax
call 0x448DC0
mov esi, eax
test esi, esi
jz 0x13
push 0x1
push edi
call LuaParam::GetBool
add esp, 0x8
mov byte ptr [esi+0x83], al
pop edi
xor eax, eax
pop esi
ret
POISetScriptedPedExitObjective(POIInfo, 0)
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetInt
mov ecx, dword ptr [0xC0F5E4]
add esp, 0x8
push eax
call 0x448DC0
push 0x1
push edi
mov esi, eax
call LuaParam::GetInt
add esp, 0x8
test esi, esi
jz 0xF
xor ecx, ecx
test eax, eax
setnz cl
add ecx, 0x9
mov dword ptr [esi+0x7C], ecx
pop edi
xor eax, eax
pop esi
ret
POISetSystemEnabled(false)
POISetSystemEnabled(true)
mov eax, dword ptr [esp+0x4]
push esi
mov esi, dword ptr [0xC0F5E4]
push 0x0
push eax
call LuaParam::GetBool
add esp, 0x8
mov byte ptr [esi+0xA4], al
xor eax, eax
pop esi
ret
A standard Lua 5.0 function documented on lua.org.
SHARED
Like PrintOutput, but in error text. May include the current thread name if known.
SHARED
Takes any amount of arguments and prints them to the console. Any argument that is not a string will be converted using tostring.
CLIENT
Returns a pointer object to the address. Use a string for address to preserve accuracy.
PunishersRespondToPlayerOnly(false)
PunishersRespondToPlayerOnly(true)
mov eax, dword ptr [esp+0x4]
push esi
mov esi, dword ptr [0xC0F78C]
push 0x0
push eax
call LuaParam::GetBool
add esp, 0x8
mov byte ptr [esi+0x1], al
xor eax, eax
pop esi
ret
QueueSoundSpeech(gGary, "M_1_02A", 116)
QueueSoundSpeech(gLackey[8].ped, "M_1_08", 14, nil, "medium")
QueueSoundSpeech(gLackey[8].ped, "M_1_08", 15, nil, "large")
QueueSoundSpeech(gLackey[8].ped, "M_1_08", 15, nil, "medium")
QueueSoundSpeech(pervId, "WTF_TV", 0, nil, "large")
QueueSoundSpeech(shared.gBif, "GREET_CLOTHES_LIKE", 0, nil, "large")
QueueSoundSpeech(shared.gBif, "GREET_PLAYER_HAIRCUT_LIKE", 0, nil, "large")
QueueSoundSpeech(shared.gBif, "GREET_PLAYER_SHIRT_LIKE", 0, nil, "large")
QueueSoundSpeech(shared.gBif, "RESPONSE_GREET_FRIENDLY", 0, nil, "large")
QueueSoundSpeech(shared.gSecretaryID, "M_1_02", 101, nil, "large")
QueueSoundSpeech(shared.gSecretaryID, "M_1_02", 123, CB_DoneSecretaryDialogue, "large")
QueueSoundSpeech(tFirstFloorTable.gord.id, "M_2_08", 38, nil, "large")
QueueSoundSpeech(tFirstFloorTable.gord.id, "M_2_08", 40, nil, "large")
QueueSoundSpeech(tFirstFloorTable.gord.id, "M_2_08", 42, nil, "large")
QueueSoundSpeech(tFirstFloorTable.gord.id, "M_2_08", 44, nil, "large")
QueueSoundSpeech(tFirstFloorTable.parker.id, "M_2_08", 39, nil, "large")
QueueSoundSpeech(tFirstFloorTable.parker.id, "M_2_08", 41, nil, "large")
QueueSoundSpeech(tFirstFloorTable.parker.id, "M_2_08", 43, nil, "large")
QueueSoundSpeech(tFirstFloorTable.parker.id, "M_2_08", 45, F_ReleaseToPOI, "large")
QueueSoundSpeech(tSecondFloorTable.justin.id, "M_2_08", 30, nil, "large")
QueueSoundSpeech(tSecondFloorTable.justin.id, "M_2_08", 31, F_ReleaseToPOI2, "large")
QueueSoundSpeech(tSecondFloorTable.tad.id, "M_2_08", 29, nil, "large")
QueueSoundSpeech(tThirdFloorTable.bryce.id, "M_2_08", 33, nil, "large")
QueueSoundSpeech(tThirdFloorTable.bryce.id, "M_2_08", 35, nil, "large")
QueueSoundSpeech(tThirdFloorTable.chad.id, "M_2_08", 32, nil, "large")
QueueSoundSpeech(tThirdFloorTable.chad.id, "M_2_08", 34, nil, "large")
QueueSoundSpeech(tThirdFloorTable.chad.id, "M_2_08", 36, F_ReleaseToPOI3, "large")
function QueueSoundSpeech(pedId, speechEvent, param, cb_func, volume)
table.insert(gTextTable, {
mSpeechPed = pedId,
mSpeechEvent = speechEvent,
mParam = param,
callback = cb_func,
vol = volume
})
end
QueueText("1_08_OBJ05", 4, 1)
QueueText("1_08_OBJ09", 5, 1)
QueueText("1_08_OBJ15", 3, 1)
QueueText("1_08_OBJ19", 3, 1)
QueueText("3_07_Speech01", 3, 2, false)
QueueText("3_07_Speech02", 3, 2, false)
QueueText("3_07_Speech03", 3, 2, false)
QueueText("3_07_Speech04", 5, 2, false)
QueueText("3_07_Speech05", 5, 2, false)
QueueText("3_07_Speech06", 3, 2, false, CB_ENDIT)
function QueueText(text, textTime, style, skip, cb_func)
table.insert(gTextTable, {
mText = text,
mTime = textTime,
mStyle = style,
mType = false,
mSkip = F_DefaultTrue(skip),
callback = cb_func or nil
})
end
QueueTextString("", 0.1, 1, false, CB_RunTutorial)
QueueTextString("", 0.1, 1, false, CB_TurnOnTheCheck)
QueueTextString("", 0.1, 2, false, CB_BulliesLeave)
QueueTextString("", 0.1, 2, false, CB_Point)
QueueTextString("And you, go into the dorm and change into your uniform!", 3, 2, false, CB_Point)
QueueTextString("Hey you two, break it up!", 4, 2, false, CB_Point)
function QueueTextString(text, textTime, style, skip, cb_func)
table.insert(gTextTable, {
mText = text,
mTime = textTime,
mStyle = style,
mType = true,
mSkip = F_DefaultToTrue(skip),
callback = cb_func
})
end
SERVER
Gracefully quits the server. If restart is given and is true, the server will instantly restart after shutting down (without the process ever fully exiting).
RaceAddBarrier(-37.44, -51.68, 27.25, -41.43, -41.74, 26.82)
RaceAddBarrier(-41.5506, 44.4887, 0.471533, -28.0112, 36.8176, 0.834364)
RaceAddBarrier(-95.0424, 56.7946, 62.6542, -106.673, 56.9224, 62.6542)
RaceAddBarrier(-98.31, -9.84, 27.63, -113.03, -9.58, 26.82)
RaceAddBarrier(109.595, -87.8961, 62.4894, 100.759, -81.6735, 62.6203)
sub esp, 0x18
push esi
mov esi, dword ptr [esp+0x20]
push 0x0
lea eax, ptr [esp+0x14]
push esi
push eax
call LuaParam::GetVector
push 0x3
lea ecx, ptr [esp+0x14]
push esi
push ecx
call LuaParam::GetVector
mov edx, dword ptr [esp+0x1C]
mov ecx, dword ptr [esp+0x20]
add esp, 0xC
mov eax, esp
mov dword ptr [eax], edx
mov edx, dword ptr [esp+0x18]
mov dword ptr [eax+0x4], ecx
mov ecx, dword ptr [esp+0x1C]
mov dword ptr [eax+0x8], edx
mov edx, dword ptr [esp+0x20]
sub esp, 0xC
mov eax, esp
mov dword ptr [eax], ecx
mov ecx, dword ptr [esp+0x30]
mov dword ptr [eax+0x4], edx
mov dword ptr [eax+0x8], ecx
mov ecx, dword ptr [0x20C8704]
call 0x70B7A0
xor eax, eax
pop esi
add esp, 0x18
ret
RaceAddBoostPoint(-29.9513, -43.1431, 135)
RaceAddBoostPoint(-87.2465, -49.3929, 90)
RaceAddBoostPoint(113.897, -52.1505, 0)
RaceAddBoostPoint(14.8956, -33.6964, 90)
RaceAddBoostPoint(173.306, 56.9456, 235)
RaceAddBoostPoint(18.9915, 62.6205, 270)
RaceAddBoostPoint(4.47953, 68.9892, 270)
mov eax, dword ptr [esp+0x4]
sub esp, 0xC
push 0x0
push eax
lea ecx, ptr [esp+0x8]
push ecx
call LuaParam::GetVector
mov edx, dword ptr [esp+0xC]
mov ecx, dword ptr [esp+0x10]
mov eax, esp
mov dword ptr [eax], edx
mov edx, dword ptr [esp+0x14]
mov dword ptr [eax+0x4], ecx
mov ecx, dword ptr [0x20C8704]
mov dword ptr [eax+0x8], edx
call 0x70B800
xor eax, eax
add esp, 0xC
ret
RaceAddJumpNode(race.path, node)
RaceAddJumpNode(shortcut.path, node)
push esi
mov esi, dword ptr [esp+0x8]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetInt
mov ecx, dword ptr [0x20C8704]
add esp, 0x10
push eax
push edi
call 0x70F7F0
pop edi
xor eax, eax
pop esi
ret
RaceAddJumpPath(shortcut.path, shortcut.start_node, shortcut.end_node)
push ecx
push ebx
push ebp
push esi
mov esi, dword ptr [0x20C8704]
push edi
mov edi, dword ptr [esp+0x18]
push 0x0
push edi
call LuaParam::GetInt
mov ecx, dword ptr [0xD13CB4]
mov ebp, eax
mov eax, dword ptr [esi+0x118]
add esp, 0x8
push eax
call 0x5ED3A0
push 0x1
push edi
mov ebx, eax
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, ebx
call 0x5EC940
push 0x2
push edi
mov dword ptr [esp+0x18], eax
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, ebx
call 0x5EC940
push eax
mov eax, dword ptr [esp+0x14]
push eax
push ebp
mov ecx, esi
call 0x70F010
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
-- never used
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetInt
mov ecx, dword ptr [0x20C8704]
add esp, 0x8
test ecx, ecx
jz 0x8
push eax
call 0x70F670
xor eax, eax
ret
RaceAddNodeToHighlight(node)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetInt
mov ecx, dword ptr [0x20C8704]
add esp, 0x8
test ecx, ecx
jz 0x8
push eax
call 0x70F400
xor eax, eax
ret
RaceAddRacer(racer.id)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
jz 0xE
mov ecx, dword ptr [0x20C8704]
push eax
call 0x710B60
xor eax, eax
ret
RaceAddShortcutPath(shortcut.path, shortcut.start_node, shortcut.end_node)
push ecx
push ebx
push ebp
push esi
mov esi, dword ptr [0x20C8704]
push edi
mov edi, dword ptr [esp+0x18]
push 0x0
push edi
call LuaParam::GetInt
mov ecx, dword ptr [0xD13CB4]
mov ebp, eax
mov eax, dword ptr [esi+0x118]
add esp, 0x8
push eax
call 0x5ED3A0
push 0x1
push edi
mov ebx, eax
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, ebx
call 0x5EC940
push 0x2
push edi
mov dword ptr [esp+0x18], eax
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, ebx
call 0x5EC940
push eax
mov eax, dword ptr [esp+0x14]
push eax
push ebp
mov ecx, esi
call 0x70EFB0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
RaceCleanUpRace()
mov ecx, dword ptr [0x20C8704]
call 0x70B640
xor eax, eax
ret
RaceClearResults()
mov ecx, dword ptr [0xC674C8]
call 0x5467B0
xor eax, eax
ret
RaceDestroyTransition()
mov ecx, dword ptr [0x20C8704]
call 0x70B830
xor eax, eax
ret
RaceDisplayTransition(0)
RaceDisplayTransition(0, true)
RaceDisplayTransition(1)
RaceDisplayTransition(1, true)
RaceDisplayTransition(2)
RaceDisplayTransition(2, true)
RaceDisplayTransition(3)
RaceDisplayTransition(3, true)
RaceDisplayTransition(4)
RaceDisplayTransition(4, true)
RaceDisplayTransition(5)
RaceDisplayTransition(5, true)
RaceDisplayTransition(6)
RaceDisplayTransition(6, true)
RaceDisplayTransition(7)
RaceDisplayTransition(7, true)
RaceDisplayTransition(8)
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x0
push 0x1
push esi
mov edi, eax
call LuaParam::GetBool ; optional
mov ecx, dword ptr [0x20C8704]
mov byte ptr [esp+0x1C], al
mov eax, dword ptr [esp+0x1C]
add esp, 0x14
push eax
push edi
call 0x70F960
push eax
push esi
call LuaParam::PushInt
add esp, 0x8
pop edi
mov eax, 0x1
pop esi
pop ecx
ret
-- never used
mov ecx, dword ptr [0x20C8704]
call 0x70D480
mov eax, dword ptr [esp+0x4]
push ecx
fstp dword ptr [esp], st
push eax
call LuaParam::PushFloat
add esp, 0x8
mov eax, 0x1
ret
-- never used
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetInt
mov ecx, dword ptr [0x20C8704]
add esp, 0x8
sub eax, 0x1
push eax
call 0x70D460
or ecx, 0xFFFFFFFF
test eax, eax
jz 0x1A
mov ecx, dword ptr [0xC0F5F0]
sub eax, dword ptr [ecx]
cdq
idiv dword ptr [ecx+0xC]
mov ecx, dword ptr [ecx+0x4]
movzx ecx, byte ptr [ecx+eax*1]
shl eax, 0x8
add ecx, eax
push ecx
push esi
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
pop esi
ret
if RaceGetPositionInRaceOfRacer(gPlayer) == 1 then
if RaceGetPositionInRaceOfRacer(racer.id) == 1 and not bFirstHandled then
if RaceGetPositionInRaceOfRacer(racer.id) == 2 and not bSecondHandled then
local playerPosition = RaceGetPositionInRaceOfRacer(gPlayer)
local pos = RaceGetPositionInRaceOfRacer(gPlayer)
race.end_position = RaceGetPositionInRaceOfRacer(gPlayer)
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
jnz 0x14
push 0xFFFFFFFF
push esi
call LuaParam::PushInt
mov eax, 0x1
add esp, 0x8
pop esi
ret
mov ecx, dword ptr [0x20C8704]
push eax
call 0x70D420
push eax
push esi
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
pop esi
ret
current_lap = RaceGetRacerLapNum(gPlayer)
local current_lap = RaceGetRacerLapNum(gPlayer)
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
jnz 0x14
push 0xFFFFFFFF
push esi
call LuaParam::PushInt
mov eax, 0x1
add esp, 0x8
pop esi
ret
mov ecx, dword ptr [0x20C8704]
push eax
call 0x70D390
mov eax, dword ptr [eax+0x8]
add eax, 0x1
push eax
push esi
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
pop esi
ret
-- never used
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
jnz 0xA
fld st, dword ptr [0x9009AC]
jmp 0x16
mov ecx, dword ptr [0x20C8704]
push eax
call 0x70EF50
fstp dword ptr [esp+0x4], st
fld st, dword ptr [esp+0x4]
push ecx
fstp dword ptr [esp], st
push esi
call LuaParam::PushFloat
add esp, 0x8
mov eax, 0x1
pop esi
pop ecx
ret
while not (countdown_started or RaceHasFinished()) do
while not (RaceHasFinished() or countdown_started) do
while not RaceHasFinished() and race_ongoing do
while not RaceHasFinished() do
push ecx
mov eax, dword ptr [0x20C8704]
test eax, eax
jz 0x14
mov ecx, dword ptr [eax+0x120]
cmp ecx, dword ptr [eax+0x124]
mov byte ptr [esp], 0x0
jnz 0x6
mov byte ptr [esp], 0x1
mov edx, dword ptr [esp]
mov eax, dword ptr [esp+0x8]
push edx
push eax
call LuaParam::PushBool
mov eax, 0x1
add esp, 0xC
ret
if not RaceHasRacerFinished(gPlayer) and RaceHasRacerFinished(racer.id) then
if RaceHasRacerFinished(racer.id) then
if VehicleIsValid(racer.car) and not racer.bFinished and RaceHasRacerFinished(racer.id) then
return MissionTimerHasFinished() or RaceHasRacerFinished(gPlayer)
return not RaceHasRacerFinished(gPlayer) and race_ongoing
while not (MissionTimerHasFinished() or RaceHasRacerFinished(gPlayer)) do
while not (not MinigameIsActive() or RaceHasRacerFinished(gPlayer)) and race_ongoing do
while not (RaceHasRacerFinished(gPlayer) or RaceHasAnyRacerFinished()) and race_ongoing do
while not RaceHasRacerFinished(gPlayer) and race_ongoing do
while not RaceHasRacerFinished(gPlayer) and TimerPassed(gTimeOutTimer) do
push ebx
push esi
push edi
mov edi, dword ptr [esp+0x10]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jnz 0x16
push 0x0
push edi
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
pop edi
pop esi
pop ebx
ret
mov ebx, dword ptr [0x20C8704]
push esi
mov ecx, ebx
call 0x70D3E0
test al, al
jz 0xFFFFFFDC
push esi
mov ecx, ebx
call 0x70D500
push eax
push edi
call LuaParam::PushBool
add esp, 0x8
pop edi
pop esi
mov eax, 0x1
pop ebx
ret
RaceHUDVisible(false)
RaceHUDVisible(true)
mov eax, dword ptr [esp+0x4]
push esi
push edi
mov edi, dword ptr [0xC674C8]
mov esi, dword ptr [edi]
push 0x0
push eax
add esi, 0x14
call LuaParam::GetBool
mov edx, dword ptr [esi]
add esp, 0x8
mov ecx, edi
push eax
call 0x713C43
pop edi
xor eax, eax
pop esi
ret
-- never used
movzx eax, byte ptr [0x20C8824]
mov ecx, dword ptr [esp+0x4]
push eax
push ecx
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
ret
RaceOverridePlayerPos(Px, Py, Pz)
sub esp, 0xC
push esi
mov esi, dword ptr [esp+0x14]
push 0x0
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0xC], st
push 0x1
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x18], st
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x24], st
mov eax, dword ptr [0xC674CC]
mov ecx, dword ptr [esp+0x1C]
mov edx, dword ptr [esp+0x20]
add eax, 0xE838
mov dword ptr [eax], ecx
mov ecx, dword ptr [esp+0x24]
add esp, 0x18
mov dword ptr [eax+0x4], edx
mov dword ptr [eax+0x8], ecx
xor eax, eax
pop esi
add esp, 0xC
ret
RaceRemoveRacer(racer.id)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
jz 0xE
mov ecx, dword ptr [0x20C8704]
push eax
call 0x710560
xor eax, eax
ret
RaceSetArcade()
mov ecx, dword ptr [0x20C8704]
call 0x70B630
xor eax, eax
ret
RaceSetRacerStats(racer.id, racer.max_sprint_speed, racer.max_normal_speed, racer.catch_up_dist, racer.catch_up_speed, racer.slow_down_dist, racer.slow_down_speed, racer.shortcut_odds, racer.shooting_odds, racer.trick_odds, 0, 0, 0, racer.aggressiveness)
RaceSetRacerStats(racer.id, racer.max_sprint_speed, racer.max_normal_speed, racer.catch_up_dist, racer.catch_up_speed, racer.slow_down_dist, racer.slow_down_speed, racer.shortcut_odds, racer.shooting_odds, racer.trick_odds, racer.sprint_freq, racer.sprint_duration, racer.sprint_likelyhood, racer.aggressiveness)
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
jz 0xCC
mov ecx, dword ptr [0x20C8704]
push eax
call 0x70D390
push 0x1
push edi
mov esi, eax
call LuaParam::GetFloat
fstp dword ptr [esi+0x24], st
push 0x2
push edi
call LuaParam::GetFloat
fstp dword ptr [esi+0x28], st
push 0x3
push edi
call LuaParam::GetFloat
fstp dword ptr [esi+0x2C], st
push 0x4
push edi
call LuaParam::GetFloat
fstp dword ptr [esi+0x30], st
push 0x5
push edi
call LuaParam::GetFloat
fstp dword ptr [esi+0x34], st
push 0x6
push edi
call LuaParam::GetFloat
fstp dword ptr [esi+0x38], st
push 0x0
push 0x7
push edi
call LuaParam::GetInt ; optional
push 0x0
push 0x8
push edi
mov dword ptr [esi+0x3C], eax
call LuaParam::GetInt ; optional
add esp, 0x48
push 0x0
push 0x9
push edi
mov dword ptr [esi+0x40], eax
call LuaParam::GetInt ; optional
push 0x0
push 0xA
push edi
mov dword ptr [esi+0x44], eax
call LuaParam::GetInt ; optional
push 0x0
push 0xB
push edi
mov dword ptr [esi+0x48], eax
call LuaParam::GetInt ; optional
fldz
add esp, 0x20
fstp dword ptr [esp], st
push 0xC
push edi
mov dword ptr [esi+0x4C], eax
call LuaParam::GetFloat ; optional
call 0x85C720
fld st, dword ptr [0x9055A0]
add esp, 0x8
fstp dword ptr [esp], st
push 0xD
push edi
mov dword ptr [esi+0x50], eax
call LuaParam::GetFloat ; optional
fstp dword ptr [esi+0x54], st
add esp, 0xC
pop edi
xor eax, eax
pop esi
ret
RaceSetupRace(race.path, race.laps, table.getn(racers))
RaceSetupRace(race.path, race.laps, table.getn(racers), true)
push ecx
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x14]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetInt
push 0x2
push esi
mov ebx, eax
call LuaParam::GetInt
push 0x0
push 0x3
push esi
mov ebp, eax
call LuaParam::GetBool ; optional
mov ecx, dword ptr [0x20C8704]
add esp, 0x24
mov byte ptr [esp+0x10], al
mov eax, dword ptr [esp+0x10]
push eax
push ebp
push ebx
push edi
call 0x7110C0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
RaceShowFinishPointOnly(true)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetBool
mov ecx, dword ptr [0x20C8704]
mov byte ptr [ecx+0x155], al
add esp, 0x8
xor eax, eax
ret
RaceStartRace()
mov ecx, dword ptr [0x20C8704]
call 0x711BC0
mov ecx, dword ptr [0xC674C8]
call 0x5467C0
xor eax, eax
ret
RadarBusBlipSetVisible(false)
RadarBusBlipSetVisible(true)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetBool
mov ecx, dword ptr [0xC674CC]
mov byte ptr [ecx+0xE844], al
add esp, 0x8
xor eax, eax
ret
-- never used
mov eax, dword ptr [esp+0x4]
push esi
mov esi, dword ptr [0xC674CC]
push 0x0
push eax
call LuaParam::GetBool
add esp, 0x8
mov byte ptr [esi+0xE812], al
xor eax, eax
pop esi
ret
-- never used
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetInt
mov ecx, dword ptr [0xC674CC]
mov dword ptr [ecx+0xE7FC], eax
add esp, 0x8
mov byte ptr [ecx+0xE810], 0x1
xor eax, eax
ret
-- never used
sub esp, 0x10
push esi
mov esi, dword ptr [esp+0x18]
push 0x0
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x10], st
push 0x1
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x1C], st
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x28], st
push 0x3
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x24], st
mov eax, dword ptr [0xC674CC]
fld st, dword ptr [esp+0x24]
mov ecx, dword ptr [esp+0x28]
fstp dword ptr [eax+0xE80C], st
mov edx, dword ptr [esp+0x2C]
mov dword ptr [eax+0xE800], ecx
mov ecx, dword ptr [esp+0x30]
add esp, 0x20
mov dword ptr [eax+0xE804], edx
mov byte ptr [eax+0xE811], 0x1
mov dword ptr [eax+0xE808], ecx
xor eax, eax
pop esi
add esp, 0x10
ret
-- never used
mov eax, dword ptr [0xC674CC]
xor cl, cl
mov byte ptr [eax+0xE810], cl
mov byte ptr [eax+0xE811], cl
xor eax, eax
ret
RadarRestoreMinMax()
mov eax, dword ptr [0xC674CC]
mov ecx, dword ptr [eax+0x1A4]
mov edx, dword ptr [eax+0x1A8]
mov dword ptr [eax+0xE7D8], ecx
mov ecx, dword ptr [eax+0x1AC]
mov dword ptr [eax+0xE7DC], edx
mov edx, dword ptr [eax+0x1B0]
mov dword ptr [eax+0xE7E0], ecx
mov dword ptr [eax+0xE7E4], edx
xor eax, eax
ret
RadarSetIndoorRange(20)
RadarSetIndoorRange(60)
mov eax, dword ptr [esp+0x4]
push esi
mov esi, dword ptr [0xC674CC]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x8
mov dword ptr [esi+0xE7E4], eax
xor eax, eax
pop esi
ret
RadarSetMinMax(10, 75, 15)
RadarSetMinMax(15, 75, 25)
RadarSetMinMax(30, 30, 30)
RadarSetMinMax(30, 60, 30)
RadarSetMinMax(30, 65, 30)
RadarSetMinMax(30, 75, 45)
RadarSetMinMax(40, 50, 50)
RadarSetMinMax(50, 100, 90)
push ebx
push ebp
push esi
mov esi, dword ptr [0xC674CC]
push edi
mov edi, dword ptr [esp+0x14]
push 0x2
push edi
call LuaParam::GetInt
push 0x1
push edi
mov ebx, eax
call LuaParam::GetInt
push 0x0
push edi
mov ebp, eax
call LuaParam::GetInt
add esp, 0x18
pop edi
mov dword ptr [esi+0xE7D8], eax
mov dword ptr [esi+0xE7DC], ebp
mov dword ptr [esi+0xE7E0], ebx
pop esi
pop ebp
xor eax, eax
pop ebx
ret
RadarSetVisibility(true)
push ecx
mov eax, dword ptr [esp+0x8]
push esi
push 0x0
push eax
call LuaParam::GetBool
mov ecx, dword ptr [0xC674B8]
mov edx, dword ptr [ecx]
mov byte ptr [esp+0xC], al
mov esi, dword ptr [esp+0xC]
mov eax, dword ptr [edx+0x14]
add esp, 0x8
push esi
call 0x5B83E7
mov ecx, dword ptr [0xC674CC]
mov edx, dword ptr [ecx]
mov eax, dword ptr [edx+0x14]
push esi
call 0x5B83F5
xor eax, eax
pop esi
pop ecx
ret
pickedModel = RandomElement11(159, 161, 162, 163, 164, 168, 169, 170, 171, 173, 174)
function RandomElement11(elem1, elem2, elem3, elem4, elem5, elem6, elem7, elem8, elem9, elem10, elem11)
rand = math.random(1, 11)
if rand == 1 then
return elem1
end
if rand == 2 then
return elem2
end
if rand == 3 then
return elem3
end
if rand == 4 then
return elem4
end
if rand == 5 then
return elem5
end
if rand == 6 then
return elem6
end
if rand == 7 then
return elem7
end
if rand == 8 then
return elem8
end
if rand == 9 then
return elem9
end
if rand == 10 then
return elem10
end
if rand == 11 then
return elem11
end
return elem1
end
pickedModel = RandomElement13(159, 161, 162, 163, 164, 166, 168, 167, 169, 170, 171, 173, 174)
pickedModel = RandomElement13(168, 159, 161, 162, 163, 164, 166, 167, 169, 170, 171, 173, 174)
pickedModel = RandomElement13(200, 201, 203, 204, 206, 207, 208, 209, 210, 211, 212, 213, 214)
function RandomElement13(elem1, elem2, elem3, elem4, elem5, elem6, elem7, elem8, elem9, elem10, elem11, elem12, elem13)
rand = math.random(1, 13)
if rand == 1 then
return elem1
end
if rand == 2 then
return elem2
end
if rand == 3 then
return elem3
end
if rand == 4 then
return elem4
end
if rand == 5 then
return elem5
end
if rand == 6 then
return elem6
end
if rand == 7 then
return elem7
end
if rand == 8 then
return elem8
end
if rand == 9 then
return elem9
end
if rand == 10 then
return elem10
end
if rand == 11 then
return elem11
end
if rand == 12 then
return elem12
end
if rand == 13 then
return elem13
end
return elem1
end
function RandomElement14(elem1, elem2, elem3, elem4, elem5, elem6, elem7, elem8, elem9, elem10, elem11, elem12, elem13, elem14)
rand = math.random(1, 14)
if rand == 1 then
return elem1
end
if rand == 2 then
return elem2
end
if rand == 3 then
return elem3
end
if rand == 4 then
return elem4
end
if rand == 5 then
return elem5
end
if rand == 6 then
return elem6
end
if rand == 7 then
return elem7
end
if rand == 8 then
return elem8
end
if rand == 9 then
return elem9
end
if rand == 10 then
return elem10
end
if rand == 11 then
return elem11
end
if rand == 12 then
return elem12
end
if rand == 13 then
return elem13
end
if rand == 14 then
return elem14
end
return elem1
end
bike = RandomElement2(274, 279)
bike = RandomElement2(279, 282)
bike = RandomElement2(281, 274)
bike = RandomElement2(283, 282)
char = RandomElement2(157, 116)
charType = RandomElement2(1, 6)
charType = RandomElement2(1, 6, false)
facchoice = RandomElement2(3, 4)
local model = RandomElement2(116, 157)
ped1 = RandomElement2(157, 116)
ped2 = GetStudent(RandomElement2(6, POIPointFaction), 1, 1, false)
ped2 = GetStudent(RandomElement2(6, POIPointFaction), 2, -1)
ped2 = GetStudent(RandomElement2(6, POIPointFaction), 2, 1)
ped2 = GetStudent(RandomElement2(6, POIPointFaction), 2, 1, false)
ped2 = RandomElement2(1, 6)
POIPointFaction = RandomElement2(2, 6)
POIPointFaction = RandomElement2(4, 11)
POIPointFaction = RandomElement2(8, 0)
sizeType = RandomElement2(2, 1)
sizeType2 = RandomElement2(0, 1)
WChoice = RandomElement2(301, 307)
WChoice = RandomElement2(307, 301)
function RandomElement2(elem1, elem2)
rand = math.random(1, 100)
if rand > 50 then
return elem2
end
return elem1
end
charType = RandomElement3(3, 11, 1)
local carc = RandomElement3(291, 297, 288)
local model = RandomElement3(123, 236, 237)
local ped2 = RandomElement3(141, 219, 220)
ped1 = RandomElement3(141, 219, 220)
ped1 = RandomElement3(4, 5, 2)
pickedModel = RandomElement3(204, 206, 207)
POIPointFaction = RandomElement3(5, 6, 9)
WChoice = RandomElement3(303, 306, 301)
function RandomElement3(elem1, elem2, elem3)
rand = math.random(1, 3)
if rand == 1 then
return elem1
end
if rand == 2 then
return elem2
end
if rand == 3 then
return elem3
end
return elem1
end
charType = RandomElement4(4, 11, 5, 2)
copmodel = RandomElement4(83, 97, 234, 238)
model = RandomElement4(49, 50, 51, 52)
ped1 = GetStudent(RandomElement4(6, 5, 2, 4), 1, 1)
ped1 = GetStudent(RandomElement4(6, 5, 2, 4), 1, 1, false)
ped1 = GetStudent(RandomElement4(6, 5, 2, 4), 2, 1, false)
ped1 = RandomElement4(279, 278, 280, 274)
ped2 = GetStudent(RandomElement4(4, 5, 2, 11), 1, 1)
ped2 = GetStudent(RandomElement4(6, 5, 2, 4), 1, 1, false)
ped2 = GetStudent(RandomElement4(6, 5, 2, 4), 2, 1, false)
POIPointFaction = RandomElement4(11, 5, 2, 4)
WChoice = RandomElement4(309, 301, 397, 307)
function RandomElement4(elem1, elem2, elem3, elem4)
rand = math.random(1, 4)
if rand == 1 then
return elem1
end
if rand == 2 then
return elem2
end
if rand == 3 then
return elem3
end
if rand == 4 then
return elem4
end
return elem1
end
charType = RandomElement5(4, 11, 5, 2, 1)
ped1 = GetStudent(RandomElement5(6, 5, 2, 4, 11), 1, 1, false)
POIPointFaction = RandomElement5(4, 11, 5, 2, 1)
possibleFaction = RandomElement5(6, 1, 5, 2, 4)
function RandomElement5(elem1, elem2, elem3, elem4, elem5)
rand = math.random(1, 5)
if rand == 1 then
return elem1
end
if rand == 2 then
return elem2
end
if rand == 3 then
return elem3
end
if rand == 4 then
return elem4
end
if rand == 5 then
return elem5
end
return elem1
end
local driverc = RandomElement6(123, 223, 222, 195, 236, 237)
local ped1 = RandomElement6(123, 223, 222, 195, 236, 237)
local ped2 = RandomElement6(123, 223, 222, 195, 236, 237)
function RandomElement6(elem1, elem2, elem3, elem4, elem5, elem6)
rand = math.random(1, 6)
if rand == 1 then
return elem1
end
if rand == 2 then
return elem2
end
if rand == 3 then
return elem3
end
if rand == 4 then
return elem4
end
if rand == 5 then
return elem5
end
if rand == 6 then
return elem6
end
return elem1
end
facchoice = RandomElement7(11, 1, 6, 6, 5, 2, 4)
function RandomElement7(elem1, elem2, elem3, elem4, elem5, elem6, elem7)
rand = math.random(1, 7)
if rand == 1 then
return elem1
end
if rand == 2 then
return elem2
end
if rand == 3 then
return elem3
end
if rand == 4 then
return elem4
end
if rand == 5 then
return elem5
end
if rand == 6 then
return elem6
end
if rand == 7 then
return elem7
end
return elem1
end
WChoice = RandomElement8(397, 372, 349, 312, 346, 309, 301, 394)
function RandomElement8(elem1, elem2, elem3, elem4, elem5, elem6, elem7, elem8)
rand = math.random(1, 8)
if rand == 1 then
return elem1
end
if rand == 2 then
return elem2
end
if rand == 3 then
return elem3
end
if rand == 4 then
return elem4
end
if rand == 5 then
return elem5
end
if rand == 6 then
return elem6
end
if rand == 7 then
return elem7
end
if rand == 8 then
return elem8
end
return elem1
end
local default_index = RandomIndex(actions_default)
local default_index = RandomIndex(racers_default)
local random_index = RandomIndex(arg_table)
function RandomIndex(arg_table)
if type(arg_table) == "table" then
return math.random(1, table.getn(arg_table))
end
end
bike = RandomTableElement({
car.driver = PedCreatePoint(RandomTableElement(gDrivers), POINTLIST._PR_DRIVERSPAWN, 1)
car.id = VehicleCreatePoint(RandomTableElement(gCarModels), car.point, 1)
chosenPoint = RandomTableElement(tblAvailableSpawnLocations)
client.model = RandomTableElement(client.model)
client.point = RandomTableElement(client.point)
dog.id = PedCreatePoint(RandomTableElement(gDogModels), dog.point, 1)
event = RandomTableElement(gOldLadyEvents)
event = RandomTableElement(gRoom01Hints)
event = RandomTableElement(gRoom02Hints)
event = RandomTableElement(gRoom04Hints)
event = RandomTableElement(taunts)
faction = RandomTableElement(CafFactionTable)
faction = RandomTableElement({
gEnemies[index].id = PedCreatePoint(RandomTableElement(gSpawnModels), pointList, index)
gPartierB01 = PedCreatePoint(RandomTableElement(gDropoutModels), POINTLIST._5_02_DOPARTIERS02, 1)
gPartierB02 = PedCreatePoint(RandomTableElement(gDropoutModels), POINTLIST._5_02_DOPARTIERS02, 2)
gPartierFire = PedCreatePoint(RandomTableElement(gDropoutModels), POINTLIST._5_02_DOFIREBARREL01, 1)
idChase = RandomTableElement(tblAnnoyPeds).id
idModel = RandomTableElement(tblDOModels)
idModel = RandomTableElement(tblDropOutModels)
idModel = RandomTableElement(tblPreppyModels)
local allyId = PedCreatePoint(RandomTableElement(gAllyModels), pointList, index)
local chosenPoint = RandomTableElement(tblAvailableSpawnLocations)
local damontarget = RandomTableElement(damontable)
local dantarget = RandomTableElement(dantable)
local guy = PedCreatePoint(RandomTableElement(gMailboxPedModels), point, 1)
local idModel = RandomTableElement(tblDOModels)
local kirbytarget = RandomTableElement(kirbytable)
local melvintarget = RandomTableElement(melvintable)
local move = RandomTableElement(AnimSeq)
local ped = PedCreatePoint(RandomTableElement(gReinforcementModels), POINTLIST._RESPAWN, 1)
local ped = RandomTableElement(trigger.target)
local pedmodel = RandomTableElement(tblCityFolk)
local q = RandomTableElement(runQuotes)
local randIndex = RandomTableElement(indices)
local sound = RandomTableElement(tblCrowdCheers)
local target = RandomTableElement(tblPrepWH)
local tempAction = RandomTableElement(actions)
local thadtarget = RandomTableElement(thadtable)
model = RandomTableElement(models)
ped = PedCreatePoint(RandomTableElement({
PedSetActionNode(client.id, RandomTableElement(tblLookAnim), ClientAnimTree)
PedSetWeapon(pedID, RandomTableElement(tblPrepWeapon), 99)
randomCan = RandomTableElement(tblTrashTriggers)
return RandomTableElement(pTable)
TextPrint(RandomTableElement(tblDeliveryNotDone), 3, 2)
TextPrint(RandomTableElement(tblDeliverySuccess), 3, 2)
texture = RandomTableElement(gFoodBad)
texture = RandomTableElement(gFoodGood)
UsingTags = RandomTableElement(tagFactions)
function RandomTableElement(arg_table)
local random_index = RandomIndex(arg_table)
if random_index then
return arg_table[random_index]
end
return {}
end
A standard Lua 5.0 function documented on lua.org.
A standard Lua 5.0 function documented on lua.org.
A standard Lua 5.0 function documented on lua.org.
ReadyToLoad()
mov byte ptr [0xBD0FD0], 0x1
xor eax, eax
ret
-- never used
push ecx
mov eax, dword ptr [esp+0x8]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
mov dword ptr [esp], 0x0
jz 0x28
movsx edx, word ptr [eax+0x10E]
lea ecx, ptr [esp]
push ecx
mov ecx, dword ptr [0xC1AEA8]
push edx
call 0x49BBD0
mov eax, dword ptr [esp]
mov ecx, dword ptr [0xC1AA04]
push eax
call 0x45BEF0
xor eax, eax
pop ecx
ret
RegisterCallbackOnBusted(F_PlayerBusted)
mov eax, dword ptr [esp+0x4]
push 0xBD3E68
push 0x0
push eax
call 0x5DA060
add esp, 0xC
xor eax, eax
ret
RegisterCallbackOnYearbookPhoto(CB_YearbookPhotoMain)
RegisterCallbackOnYearbookPhoto(F_YearBookDummy)
mov eax, dword ptr [0xC1AEA8]
mov ecx, dword ptr [esp+0x4]
add eax, 0x1F00
push eax
push 0x0
push ecx
call 0x5DA060
add esp, 0xC
xor eax, eax
ret
SHARED
Registers a global function. Use this instead of setting the function with _G whenever possible.
This is better than replacing _G because it ensures the function is cleaned up when the script dies.
CLIENT
Only usable during the pre-init phase. Archive can be "act.img", "cuts.img", "trigger.img", "ide.img", "scripts.img", or "world.img".
Usually you should use a mod’s config settings to replace files instead, unless certain behavior needs to be scripted.
RegisterGlobalEventHandler(1, F_MMPropBroken)
RegisterGlobalEventHandler(6, F_WalkableMeshCallback)
RegisterGlobalEventHandler(7, cbMissionCritical)
RegisterGlobalEventHandler(7, cbMissionCriticalEunice)
RegisterGlobalEventHandler(7, cbPedsHit)
RegisterGlobalEventHandler(7, F_CheckHit)
RegisterGlobalEventHandler(7, F_CheckOrderlyHit)
RegisterGlobalEventHandler(7, F_DeadRatHit)
RegisterGlobalEventHandler(7, F_EggHit)
RegisterGlobalEventHandler(7, F_F4000Hit)
RegisterGlobalEventHandler(7, F_FirecrackerHit)
RegisterGlobalEventHandler(7, F_ItchPowderHit)
RegisterGlobalEventHandler(7, F_MarblesHit)
RegisterGlobalEventHandler(7, F_PedWasAttacked, 1)
RegisterGlobalEventHandler(7, F_StinkBombHit)
RegisterGlobalEventHandler(7, nil)
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push esi
call LuaParam::GetParamCount
push 0x0
push esi
mov edi, eax
call LuaParam::GetInt
push 0x1
push esi
mov dword ptr [esp+0x1C], eax
call LuaParam::IsFunction
add esp, 0x14
test al, al
jz 0x45
cmp edi, 0x2
jnz 0x20
push 0x0
lea eax, ptr [esp+0xC]
push eax
call 0x5B1DC0
push eax
push 0x1
push esi
call 0x5DA060
add esp, 0x14
pop edi
xor eax, eax
pop esi
pop ecx
ret
push 0x2
push esi
call LuaParam::GetInt
add esp, 0x8
test eax, eax
jnz 0xA
push eax
lea ecx, ptr [esp+0xC]
push ecx
jmp 0xFFFFFFD4
push 0x1
lea edx, ptr [esp+0xC]
push edx
jmp 0xFFFFFFCB
lea eax, ptr [esp+0x8]
push 0x0
push eax
call 0x5B1DF0
add esp, 0x8
pop edi
xor eax, eax
pop esi
pop ecx
ret
RegisterHashEventHandler(entry.hash, 0, nil)
RegisterHashEventHandler(entry.hash, 0, OnObjectCreatedCallback)
RegisterHashEventHandler(entry.hash, 3, cbLawnPropBroken)
RegisterHashEventHandler(entry.hash, 3, cbPropBroken)
RegisterHashEventHandler(entry.hash, 3, nil)
RegisterHashEventHandler(entry.hash, 3, OnObjectBrokenCallback)
RegisterHashEventHandler(entry.hash, 4, OnObjectBrokenCallback)
RegisterHashEventHandler(entry.id, 0, cbObjectCreatedCallback)
RegisterHashEventHandler(entry.id, 3, -1)
RegisterHashEventHandler(entry.id, 3, cbObjectBrokenCallback)
RegisterHashEventHandler(entry.id, 3, OnObjectBrokenCallback)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_Gramophone"), 3, -1)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_Gramophone"), 3, CB_Floor1HeardNoise)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pChair"), 3, -1)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pChair"), 3, CB_Floor2HeardNoise)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pChair01"), 3, -1)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pChair01"), 3, CB_Floor2HeardNoise)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pChair02"), 3, -1)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pChair02"), 3, CB_Floor2HeardNoise)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pChair03"), 3, -1)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pChair03"), 3, CB_Floor2HeardNoise)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pChair04"), 3, -1)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pChair04"), 3, CB_Floor2HeardNoise)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pChair07"), 3, -1)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pChair07"), 3, CB_Floor2HeardNoise)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pChair08"), 3, -1)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pChair08"), 3, CB_Floor2HeardNoise)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pChair09"), 3, -1)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pChair09"), 3, CB_Floor2HeardNoise)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pChair10"), 3, -1)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pChair10"), 3, CB_Floor2HeardNoise)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pChair11"), 3, -1)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pChair11"), 3, CB_Floor2HeardNoise)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pChair12"), 3, -1)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pChair12"), 3, CB_Floor2HeardNoise)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pDoorBrk01"), 3, -1)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pDoorBrk01"), 3, CB_EnablePath)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pDoorBrk02"), 3, -1)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pDoorBrk02"), 3, CB_EnablePath)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_PokerTbl"), 3, -1)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_PokerTbl"), 3, CB_Floor2HeardNoise)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_PokerTbl01"), 3, -1)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_PokerTbl01"), 3, CB_Floor2HeardNoise)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_PokerTbl02"), 3, CB_Floor2HeardNoise)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pPlant02"), 3, -1)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pPlant02"), 3, CB_Floor3HeardNoise)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pPlant03"), 3, -1)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pPlant03"), 3, CB_Floor3HeardNoise)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pPlant04"), 3, -1)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pPlant04"), 3, CB_Floor3HeardNoise)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pPlant05"), 3, -1)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pPlant05"), 3, CB_Floor3HeardNoise)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_prepWinBrk"), 3, -1)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_prepWinBrk"), 3, CB_EnablePath)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_prepWinBrk01"), 3, -1)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_prepWinBrk01"), 3, CB_EnablePath)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pVase06"), 3, -1)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pVase06"), 3, CB_Floor3HeardNoise)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pVase07"), 3, -1)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pVase07"), 3, CB_Floor3HeardNoise)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pVase08"), 3, -1)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_pVase08"), 3, CB_Floor3HeardNoise)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_SCfern03"), 3, -1)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_SCfern03"), 3, CB_Floor1HeardNoise)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_StableS02"), 3, -1)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_StableS02"), 3, CB_Floor2HeardNoise)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_StableS03"), 3, -1)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_StableS03"), 3, CB_Floor2HeardNoise)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_StableS04"), 3, -1)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_StableS04"), 3, CB_Floor1HeardNoise)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_StableS05"), 3, -1)
RegisterHashEventHandler(ObjectNameToHashID("isc_prep_DPI_StableS05"), 3, CB_Floor1HeardNoise)
RegisterHashEventHandler(SpeakerTable[i].id, 3, F_SpeakerBroken)
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetUserData
push 0x1
push esi
mov edi, eax
call LuaParam::GetInt
push 0x2
push esi
mov dword ptr [esp+0x20], eax
call LuaParam::IsFunction
add esp, 0x18
test al, al
jz 0x25
push edi
call 0x5B4040
lea eax, ptr [esp+0xC]
push eax
push edi
call 0x5B3990
push eax
push 0x2
push esi
call 0x5DA060
add esp, 0x18
pop edi
xor eax, eax
pop esi
pop ecx
ret
lea ecx, ptr [esp+0x8]
push ecx
push edi
call 0x5B3CE0
add esp, 0x8
pop edi
xor eax, eax
pop esi
pop ecx
ret
SHARED
Registers a local event handler, calling the callback function when the event is run.
Many local events exist by default, but you may also script your own using RunLocalEvent.
Returns an event handler object.
CLIENT
Registers a localized text replacement. The init argument may be an initial number of bytes, or an initial string.
This function is also available as RegisterLocalisedText.
SHARED
Registers a network event handler, calling the callback function when the event is run. Any arguments sent with SendNetworkEvent are also passed.
On the client, a network event can only be triggered by the server.
On the server, a network event can only be triggered by a connected player. The first argument is the player, and the rest are from the player.
Returns an event handler object.
RegisterPedEventHandler(dude, 0, F_HitReceiver)
RegisterPedEventHandler(gBully1, 0, cbBullyHit)
RegisterPedEventHandler(gBully1, 0, nil)
RegisterPedEventHandler(gBully2, 0, cbBullyHit)
RegisterPedEventHandler(gBully2, 0, nil)
RegisterPedEventHandler(gBully3, 0, cbBullyHit)
RegisterPedEventHandler(gBully3, 0, nil)
RegisterPedEventHandler(gChad, 0, cbTadGroupAttacked)
RegisterPedEventHandler(gChad, 0, nil)
RegisterPedEventHandler(gCSBully, 0, cbDavisGroupHit)
RegisterPedEventHandler(gCSBully, 0, nil)
RegisterPedEventHandler(gDavis, 0, cbDavisGroupHit)
RegisterPedEventHandler(gDavis, 0, cbDavisHit)
RegisterPedEventHandler(gDavis, 0, nil)
RegisterPedEventHandler(gGord, 0, cbTadGroupAttacked)
RegisterPedEventHandler(gGord, 0, nil)
RegisterPedEventHandler(gGreaser1, 0, cbGreasersAttacked)
RegisterPedEventHandler(gGreaser2, 0, cbGreasersAttacked)
RegisterPedEventHandler(gGreaser3, 0, cbGreasersAttacked)
RegisterPedEventHandler(gHattrick, 0, cbHattrickHit)
RegisterPedEventHandler(gKeyMaster1, 0, cbKeymasterHit)
RegisterPedEventHandler(gKeyMaster2, 0, cbKeymasterHit)
RegisterPedEventHandler(gPlayer, 0, cbResetPlayer)
RegisterPedEventHandler(gPlayer, 0, nil)
RegisterPedEventHandler(gTad, 0, cbTadGroupAttacked)
RegisterPedEventHandler(gTad, 0, nil)
RegisterPedEventHandler(guard, 0, cbGuardHit)
RegisterPedEventHandler(ped, 0, cb)
RegisterPedEventHandler(ped, 0, nil)
push ecx
push esi
push edi
mov edi, dword ptr [esp+0x10]
push 0x0
push edi
call LuaParam::GetInt
push 0x1
push edi
mov esi, eax
call LuaParam::GetInt
mov dword ptr [esp+0x18], eax
add esp, 0xC
mov eax, esp
push esi
mov dword ptr [eax], 0x2
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x42
push 0x2
push edi
call LuaParam::IsFunction
add esp, 0x8
test al, al
jz 0x25
push esi
call 0x5B4760
lea eax, ptr [esp+0xC]
push eax
push esi
call 0x5B4190
push eax
push 0x2
push edi
call 0x5DA060
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ecx
ret
lea ecx, ptr [esp+0x8]
push ecx
push esi
call 0x5B4430
add esp, 0x8
pop edi
xor eax, eax
pop esi
pop ecx
ret
RegisterPropEventHandler(prop.id, 0, L_PropOnBrokenNew)
RegisterPropEventHandler(prop.id, 1, L_PropOnUsedNew)
push ecx
push esi
push edi
mov edi, dword ptr [esp+0x10]
push 0x0
push edi
call LuaParam::GetInt
push 0x1
push edi
mov esi, eax
call LuaParam::GetInt
add esp, 0x10
test esi, esi
mov dword ptr [esp+0x8], eax
jl 0x62
mov ecx, dword ptr [0x20C7C48]
mov eax, dword ptr [ecx+0x4]
test byte ptr [esi+eax*1], 0x80
jnz 0x53
mov eax, dword ptr [ecx+0xC]
imul eax, esi
add eax, dword ptr [ecx]
jz 0x49
mov esi, dword ptr [eax+0x1C]
test esi, esi
jz 0x42
push 0x2
push edi
call LuaParam::IsFunction
add esp, 0x8
test al, al
jz 0x25
push esi
call 0x5B4F90
lea ecx, ptr [esp+0xC]
push ecx
push esi
call 0x5B4880
push eax
push 0x2
push edi
call 0x5DA060
add esp, 0x18
pop edi
xor eax, eax
pop esi
pop ecx
ret
lea edx, ptr [esp+0x8]
push edx
push esi
call 0x5B4BA0
add esp, 0x8
pop edi
xor eax, eax
pop esi
pop ecx
ret
RegisterTriggerEventHandler(TRIGGER._1_11XP_F4000, 1, T_EnterF4000)
RegisterTriggerEventHandler(TRIGGER._1_11XP_F4000, 4, T_ExitF4000)
RegisterTriggerEventHandler(TRIGGER._1_11XP_ITCHPOWDER, 1, T_EnterItchPowder)
RegisterTriggerEventHandler(TRIGGER._1_11XP_ITCHPOWDER, 4, T_ExitItchPowder)
RegisterTriggerEventHandler(TRIGGER._1_11XP_JOKECANDY, 1, T_EnterEggMan)
RegisterTriggerEventHandler(TRIGGER._1_11XP_JOKECANDY, 4, T_ExitEggMan)
RegisterTriggerEventHandler(TRIGGER._1_11XP_KICKME, 1, T_EnterKickMe)
RegisterTriggerEventHandler(TRIGGER._1_11XP_KICKME, 4, T_ExitKickMe)
RegisterTriggerEventHandler(TRIGGER._1_11XP_MARBLES, 1, T_EnterMarbles)
RegisterTriggerEventHandler(TRIGGER._1_11XP_MARBLES, 4, T_ExitMarbles)
RegisterTriggerEventHandler(TRIGGER._1_11XP_STINKBOMB, 1, T_EnterStinkBomb)
RegisterTriggerEventHandler(TRIGGER._1_11XP_STINKBOMB, 4, T_ExitStinkBomb)
RegisterTriggerEventHandler(TRIGGER._4_06_BIB01, 1, F_BackInBound)
RegisterTriggerEventHandler(TRIGGER._4_06_BIB02, 1, F_BackInBound)
RegisterTriggerEventHandler(TRIGGER._4_06_BIB03, 1, F_BackInBound)
RegisterTriggerEventHandler(TRIGGER._4_06_OOB01, 1, F_OutOfBound)
RegisterTriggerEventHandler(TRIGGER._4_06_OOB02, 1, F_OutOfBound)
RegisterTriggerEventHandler(TRIGGER._4_06_OOB03, 1, F_OutOfBound)
RegisterTriggerEventHandler(TRIGGER._AMBIENTEVENT1, 0, nil)
RegisterTriggerEventHandler(TRIGGER._AMBIENTEVENT1, 3, nil)
RegisterTriggerEventHandler(TRIGGER._AMBIENTEVENT2, 0, nil)
RegisterTriggerEventHandler(TRIGGER._AMBIENTEVENT2, 3, nil)
RegisterTriggerEventHandler(TRIGGER._BA_BMXGARAGE, 1, cbOpenBMXGarage)
RegisterTriggerEventHandler(TRIGGER._BA_BMXGARAGE, 1, nil)
RegisterTriggerEventHandler(TRIGGER._BA_BMXGARAGE, 4, cbCloseBMXGarage)
RegisterTriggerEventHandler(TRIGGER._BA_BMXGARAGE, 4, nil)
RegisterTriggerEventHandler(TRIGGER._BMX_GARAGEDOOR, 1, cbOpenBMXGarage)
RegisterTriggerEventHandler(TRIGGER._BMX_GARAGEDOOR, 1, nil)
RegisterTriggerEventHandler(TRIGGER._BMX_GARAGEDOOR, 4, cbCloseBMXGarage)
RegisterTriggerEventHandler(TRIGGER._BMX_GARAGEDOOR, 4, nil)
RegisterTriggerEventHandler(TRIGGER._DORMDOORTRIG1, 1, F_DormTriggas, 0)
RegisterTriggerEventHandler(TRIGGER._DORMDOORTRIG2, 1, F_DormTriggas, 0)
RegisterTriggerEventHandler(TRIGGER._DORMDOORTRIG3, 1, F_DormTriggas, 0)
RegisterTriggerEventHandler(TRIGGER._DORMDOORTRIG4, 1, F_DormTriggas, 0)
RegisterTriggerEventHandler(TRIGGER._DT_BMXGARAGE, 1, cbTransToBMX)
RegisterTriggerEventHandler(TRIGGER._DT_BMXGARAGE, 1, nil)
RegisterTriggerEventHandler(TRIGGER._DT_BMXGARAGEDOOR, 1, cbTransToBMX)
RegisterTriggerEventHandler(TRIGGER._DT_BMXGARAGEDOOR, 1, nil)
RegisterTriggerEventHandler(TRIGGER._FOOTFIELDTRIG, 1, F_MMTriggerEnterEvents, 0)
RegisterTriggerEventHandler(TRIGGER._FOOTFIELDTRIG, 4, F_MMTriggerExitEvents, 0)
RegisterTriggerEventHandler(TRIGGER._LUNCHLADYTRIGGER, 1, F_LunchLadyCreate, 0)
RegisterTriggerEventHandler(TRIGGER._LUNCHLADYTRIGGER, 4, F_LunchLadyDestroy, 0)
RegisterTriggerEventHandler(TRIGGER._MAILMANTRIGGER, 1, F_MMTriggerEnterEvents, 0)
RegisterTriggerEventHandler(TRIGGER._MAILMANTRIGGER, 4, F_MMTriggerExitEvents, 0)
RegisterTriggerEventHandler(TRIGGER._PSECRETARY, 1, F_SecCreate, 0)
RegisterTriggerEventHandler(TRIGGER._RETIREMENTTRIGGER, 1, F_MMTriggerEnterEvents, 0)
RegisterTriggerEventHandler(TRIGGER._RETIREMENTTRIGGER, 4, F_MMTriggerExitEvents, 0)
RegisterTriggerEventHandler(TRIGGER._RICHFOLKTRIGGER, 1, F_MMTriggerEnterEvents, 0)
RegisterTriggerEventHandler(TRIGGER._RICHFOLKTRIGGER, 4, F_MMTriggerExitEvents, 0)
RegisterTriggerEventHandler(trigger.id, 0, nil)
RegisterTriggerEventHandler(trigger.id, 2, nil)
RegisterTriggerEventHandler(trigger.id, 3, nil)
RegisterTriggerEventHandler(trigger.id, 5, nil)
RegisterTriggerEventHandler(trigger_id.id, 0, L_TriggerOnEnterOld)
RegisterTriggerEventHandler(trigger_id.id, 2, L_TriggerOnImpactOld)
RegisterTriggerEventHandler(trigger_id.id, 3, L_TriggerOnExitOld)
RegisterTriggerEventHandler(trigger_id.id, 5, L_TriggerInTriggerOld)
push ecx
push ebx
push ebp
push edi
mov edi, dword ptr [esp+0x14]
push edi
call LuaParam::GetParamCount
push 0x0
push edi
mov ebp, eax
call LuaParam::GetInt
push 0x1
push edi
mov ebx, eax
call LuaParam::GetInt
add esp, 0x14
test ebx, ebx
mov dword ptr [esp+0xC], eax
jl 0xCD
mov eax, dword ptr [0x20C7C48]
mov ecx, dword ptr [eax+0x4]
test byte ptr [ebx+ecx*1], 0x80
jnz 0xBB
push esi
mov esi, dword ptr [eax+0xC]
imul esi, ebx
add esi, dword ptr [eax]
jz 0xAB
push 0x2
push edi
call LuaParam::IsFunction
add esp, 0x8
test al, al
jz 0x66
cmp ebp, 0x3
jnz 0x2B
push 0x1
push esi
call 0x5B5E70
push 0x1
lea edx, ptr [esp+0x1C]
push edx
push esi
call 0x5B5150
push eax
push 0x2
push edi
call 0x5DA060
add esp, 0x20
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
cmp ebp, 0x4
jnz 0x65
push 0x3
push edi
call LuaParam::GetInt
mov ebx, eax
push ebx
push esi
call 0x5B5E70
push ebx
lea eax, ptr [esp+0x24]
push eax
push esi
call 0x5B5150
push eax
push 0x2
push edi
call 0x5DA060
add esp, 0x28
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
cmp ebp, 0x3
jnz 0x1A
push 0x1
lea ecx, ptr [esp+0x14]
push ecx
push esi
call 0x5B5850
add esp, 0xC
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
cmp ebp, 0x4
jnz 0x12
push 0x0
lea edx, ptr [esp+0x14]
push edx
push esi
call 0x5B5850
add esp, 0xC
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
-- never used
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, 0xBC5E7C
call 0x6D6450
mov ecx, eax
call 0x6D59B0
push eax
mov ecx, 0xBD1078
call 0x430F30
xor eax, eax
ret
SHARED
Unregisters an event handler given an event handler object. The callback function for the event will no longer be called.
-- never used
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, 0xBC5E7C
call 0x6D6450
mov ecx, eax
call 0x6D59B0
push eax
mov ecx, 0xBD1078
call 0x430A00
xor eax, eax
ret
CLIENT
Similar to PickupDelete, but deletes the pickup in the same way PickupRemoveAll would have.
SERVER
Removes a role from the player's account. Keep in mind the role has to be defined in the server's config. Returns true if successful.
RemovePlayerItem(487)
RemovePlayerItem(490)
RemovePlayerItem(494)
RemovePlayerItem(496)
RemovePlayerItem(507)
RemovePlayerItem(508)
RemovePlayerItem(509)
RemovePlayerItem(521)
RemovePlayerItem(526)
mov eax, dword ptr [esp+0x4]
push esi
push 0x0
push eax
call LuaParam::GetInt
mov esi, eax
add esp, 0x8
cmp esi, dword ptr [0xA136B0]
jl 0x4F
cmp esi, dword ptr [0xA136B4]
jnle 0x47
push edi
mov edi, dword ptr [0xC1AEA8]
mov ecx, dword ptr [edi+0x1D0]
movsx edx, word ptr [ecx+0x10E]
cmp edx, esi
jnz 0x1A
push ebx
mov ebx, dword ptr [0xC674F0]
push 0xFFFFFFFF
mov ecx, ebx
call 0x55C840
mov ecx, ebx
call 0x55C8D0
pop ebx
mov ecx, dword ptr [edi+0x1C4]
push 0x1
push 0x0
push esi
call 0x45D240
pop edi
xor eax, eax
pop esi
ret
CLIENT
Replaces instructions at the pointer. The code argument should be a hexadecimal string for each byte to replace.
CLIENT
Replaces a base game function. Pass nil for func to restore the original function.
If exclusive is true, no other script can replace this function until your script clears it (or dies).
CLIENT
Replaces localized text. This function can always safely be used instead of RegisterLocalizedText if desired.
This function is also available as ReplaceLocalisedText.
ActionTreeIndex = RequestActionTree("NLockA")
ActionTreeIndex = RequestActionTree("Rails")
ActionTreeIndex = RequestActionTree(actionTreeName)
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetString
add esp, 0x8
push eax
mov ecx, 0xC0F7B4
call 0x4507B0
mov esi, eax
cmp esi, 0xFFFFFFFF
jz 0x13
lea eax, ptr [esi+0x5D41]
push 0x13
push eax
call 0x532020
add esp, 0x8
push esi
push edi
call LuaParam::PushInt
add esp, 0x8
pop edi
mov eax, 0x1
pop esi
ret
RequestAnimGroup("POI_Telloff")
mov eax, dword ptr [esp+0x4]
push esi
push 0x8FEFBB
push 0x0
push eax
call LuaParam::GetString ; optional
push eax
call 0x52DAD0
mov esi, eax
push esi
call 0x52DD30
add esp, 0x14
cmp byte ptr [eax+0x4], 0x2
jz 0x1C
push esi
call 0x52DD30
add esp, 0x4
cmp byte ptr [eax+0x4], 0x1
jz 0xD
push 0x0
push esi
call 0x532020
add esp, 0x8
xor eax, eax
pop esi
ret
if model ~= nil and model ~= -1 and not RequestModel(model, true) then
if not RequestModel(model) then
while not RequestModel(134, true) do
while not RequestModel(25, true) do
while not RequestModel(3) do
while not RequestModel(30, true) do
while not RequestModel(363) do
while not RequestModel(370) do
while not RequestModel(38, true) do
while not RequestModel(45) do
while not RequestModel(486) do
while not RequestModel(526) do
while not RequestModel(56, true) do
while not RequestModel(59, true) do
while not RequestModel(62, true) do
while not RequestModel(bumSantaModel) do
while not RequestModel(elfModel_01) do
while not RequestModel(elfModel_02) do
while not RequestModel(kidModel_01) do
while not RequestModel(kidModel_02) do
while not RequestModel(kidModel_03) do
while not RequestModel(kidModel_04) do
while not RequestModel(nEdnaModel, true) do
while not RequestModel(parentModel_01) do
while not RequestModel(parentModel_02) do
while not RequestModel(parentModel_03) do
while not RequestModel(ped1, true) do
while not RequestModel(santaModel) do
while RequestModel(82, true) == false do
while RequestModel(AttackModel, true) == false do
while RequestModel(DormPed, true) == false do
while RequestModel(SchoolPed, true) == false do
push ebx
push esi
push edi
mov edi, dword ptr [esp+0x10]
push 0x0
push edi
call LuaParam::GetInt
push 0x0
push 0x1
push edi
mov esi, eax
call LuaParam::GetBool ; optional
push esi
mov bl, al
call 0x52DD30
add esp, 0x18
cmp byte ptr [eax+0x4], 0x1
push esi
jz 0x86
call 0x52DD30
add esp, 0x4
cmp byte ptr [eax+0x4], 0x2
jz 0x60
push esi
call 0x52DD30
add esp, 0x4
cmp byte ptr [eax+0x4], 0x3
jz 0x51
push esi
call 0x52DD30
add esp, 0x4
cmp byte ptr [eax+0x4], 0x4
jz 0x42
test bl, bl
jnz 0x33
push 0x16
push esi
call 0x532020
add esp, 0x8
push esi
mov ecx, 0xD02850
call 0x5DB940
mov ecx, eax
call 0x5D9450
push 0x0
push edi
call LuaParam::PushBool
add esp, 0x8
pop edi
pop esi
mov eax, 0x1
pop ebx
ret
push 0x15
push esi
call 0x532020
add esp, 0x8
push 0x0
push edi
call LuaParam::PushBool
add esp, 0x8
pop edi
pop esi
mov eax, 0x1
pop ebx
ret
SHARED
Somewhat similar to Lua 5.0.2's require function, with a few key differences. It searches the _derpy_script_loader/packages folder for files (or just “packages” on the server), and also provides the ability to load built-in utility packages. When loading packages from the “packages” folder, the file extension is optional (.lua / .lur will be attempted).
If the optional argument is true, false will be returned when the package is not found. You can use this to provide optional support for certain packages, since normally an error would be raised if a package isn’t found.
SHARED
A script header function that lists another mod this mod is dependent on. The script will stop if the dependency cannot start.
It is suggested you list dependencies in the script's config file, since this guarantees the dependency runs first.
SHARED
A script header function that requires a certain version of DSL. If incompatible, the script will stop.
CLIENT
A script header function that requires a certain pool size. If not met, the script will stop. Useful for mods that require the user to increase their pool size.
SHARED
A script header function that requires integrated sync to be enabled. If not, the script will stop.
SHARED
A script header function that requires system access to be enabled. If not, the script will stop.
ResetGiftRequirements()
mov ecx, 0x20C3698
call 0x6A99D0
xor eax, eax
ret
ResetYearbookPhotos()
sub esp, 0xC
push 0x0
push 0x14
mov ecx, 0xC1AEA8
call 0x4466D0
push 0x0
push 0x15
mov ecx, 0xC1AEA8
call 0x4466D0
push 0x0
push 0x16
mov ecx, 0xC1AEA8
call 0x4466D0
lea eax, ptr [esp]
push eax
lea ecx, ptr [esp+0x8]
push ecx
lea edx, ptr [esp+0x10]
push edx
push 0x0
mov dword ptr [esp+0x18], 0x0
mov dword ptr [esp+0x14], 0x0
mov dword ptr [esp+0x10], 0x0
call 0x6A2250
mov eax, dword ptr [esp+0x10]
mov ecx, dword ptr [esp+0x14]
mov edx, dword ptr [esp+0x18]
add esp, 0x10
push eax
push ecx
mov ecx, dword ptr [0xC1AA04]
push edx
call 0x45BE70
xor eax, eax
add esp, 0xC
ret
ResolveActionTreeReferences()
xor eax, eax
ret
CLIENT
Restores all timecycle data to what it was when DSL started. Timecycle changes are permanent until the game closes, so make sure to use this to clean up after yourself if needed.
SHARED
Rotates the vector given and returns it. May take an optional rotation order.
SHARED
Returns a 3x3 rotation matrix object. May take an optional rotation order.
SHARED
Returns a 3x3 rotation matrix object. This function is also available as Rx.
SHARED
Returns a 3x3 rotation matrix object. This function is also available as Ry.
SHARED
Returns a 3x3 rotation matrix object. This function is also available as Rz.
SHARED
Runs the argument as a command, basically as if it was typed into the console. Returns if the command was run, and if it was run an additional return value indicates if it was successful. Only some commands will return an accurate success result since it is a relatively new feature.
For security, some commands will refuse to work when using this function.
SHARED
Triggers a local event. This will not do anything if no event handlers for the event have been registered. Returns true unless any event handler callback returned true.
SHARED
Save all persistent data tables to savedata.bin. Use this after changing something in a persistent data table if it needs to be saved.
Persistent data can always be written, even if connected to a server. You do not need to check CanWriteFiles to use this function.
SERVER
Saves the player's account table to the account file system. Returns true if successful.
SHARED
Saves a table to a file. No extension is necessary, but ".bin" is usually recommended.
Will fail if CanWriteFiles wouldn't have returned true.
CLIENT
Returns the current season index. Should always be in the range [0, 3]. The season is determined by the current chapter, so you can only set it using ChapterSet.
SHARED
Sets the current file pointer for the file, so the next read or write operation goes from there.
The whence argument can be "SEEK_SET", "SEEK_CUR", or "SEEK_END".
CLIENT
Sends a network event to the server. The server needs to use RegisterNetworkEventHandler to do anything with the event.
Note that there is also a server version, also called SendNetworkEvent.
SERVER
Sends a network event to a player. The player needs to use RegisterNetworkEventHandler to do anything with the event. Use -1 for the player to send to all connected players.
Note that there is also a client version, also called SendNetworkEvent.
SetAmbientPedsIgnoreStimuli(false)
SetAmbientPedsIgnoreStimuli(true)
mov eax, dword ptr [esp+0x4]
push ebx
push ebp
push edi
push 0x0
push eax
call LuaParam::GetBool
mov ebp, dword ptr [0xC0F5F0]
mov edi, dword ptr [ebp+0x8]
add esp, 0x8
test edi, edi
mov bl, al
jz 0x33
push esi
mov ecx, dword ptr [ebp+0x4]
sub edi, 0x1
test byte ptr [edi+ecx*1], 0x80
jnz 0x21
mov esi, dword ptr [ebp+0xC]
imul esi, edi
add esi, dword ptr [ebp]
jz 0x16
mov ecx, esi
call 0x4765C0
test al, al
jz 0xB
movzx edx, bl
mov dword ptr [esi+0x1370], edx
test edi, edi
jnz 0xFFFFFFD3
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
ret
SetArrestRestartPointCameraPos(POINTLIST._ARREST_RESTART_1, POINTLIST._ARREST_RESTART_1_CAM)
SetArrestRestartPointCameraPos(POINTLIST._BOYSDORM_BEDWAKEUP, POINTLIST._BOYSDORM_BEDWAKEUP_CAM)
SetArrestRestartPointCameraPos(POINTLIST._KO_SCHOOL_INFIRMOUT, POINTLIST._KO_SCHOOL_INFIRMOUT_CAM)
SetArrestRestartPointCameraPos(POINTLIST._RESTART_B_PS, POINTLIST._RESTART_B_PS_CAM)
SetArrestRestartPointCameraPos(POINTLIST._RESTART_I_PS, POINTLIST._RESTART_I_PS_CAM)
SetArrestRestartPointCameraPos(POINTLIST._RESTART_P_PS, POINTLIST._RESTART_P_PS_CAM)
SetArrestRestartPointCameraPos(POINTLIST._RESTART_R_PS, POINTLIST._RESTART_R_PS_CAM)
push esi
mov esi, dword ptr [esp+0x8]
push edi
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, 0xBC5E7C
call 0x6D6450
mov ecx, eax
call 0x6D59B0
push 0x1
push esi
mov edi, eax
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, 0xBC5E7C
call 0x6D6450
mov ecx, eax
call 0x6D59B0
push eax
push edi
mov ecx, 0xBD1078
call 0x430C70
pop edi
xor eax, eax
pop esi
ret
SetAsleepRestartPointCameraPos(POINTLIST._BOYSDORM_BEDWAKEUP, POINTLIST._BOYSDORM_BEDWAKEUP_CAM)
SetAsleepRestartPointCameraPos(POINTLIST._KO_SCHOOL_INFIRMOUT, POINTLIST._KO_SCHOOL_INFIRMOUT_CAM)
SetAsleepRestartPointCameraPos(POINTLIST._RESTART_B_HS, POINTLIST._RESTART_B_HS_CAM)
SetAsleepRestartPointCameraPos(POINTLIST._RESTART_I_HS, POINTLIST._RESTART_I_HS_CAM)
SetAsleepRestartPointCameraPos(POINTLIST._RESTART_P_HS, POINTLIST._RESTART_P_HS_CAM)
SetAsleepRestartPointCameraPos(POINTLIST._RESTART_R_HS, POINTLIST._RESTART_R_HS_CAM)
push esi
mov esi, dword ptr [esp+0x8]
push edi
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, 0xBC5E7C
call 0x6D6450
mov ecx, eax
call 0x6D59B0
push 0x1
push esi
mov edi, eax
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, 0xBC5E7C
call 0x6D6450
mov ecx, eax
call 0x6D59B0
push eax
push edi
mov ecx, 0xBD1078
call 0x430D00
pop edi
xor eax, eax
pop esi
ret
-- never used
mov eax, dword ptr [esp+0x4]
push 0x1B89178
push 0x0
push eax
call 0x5D9FD0
add esp, 0xC
xor eax, eax
ret
CLIENT
Sets a button as pressed or not. Only useful inside the ControllerUpdating or ControllersUpdated events.
SetClipRange(0, 448)
push esi
mov esi, dword ptr [esp+0x8]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetInt
push eax
push edi
call 0x43A7A0
add esp, 0x18
pop edi
xor eax, eax
pop esi
ret
SHARED
Registers a scripted command, calling the callback function when the command is run. Each argument is passed as a string to the callback function. If the callback function returns false, the command will be considered unsuccessful. If the return value is not a boolean, it is assumed to have been successful (the same as if it returned true).
If raw is true, only a maximum of one argument will be passed and it will not have spaces stripped.
If help is given, it should be a string to be shown when the /help command is used to get help for this command.
Returns true if registered successfully. A command will fail to register if it already exists, unless it was set by the current script.
This function is also capable of setting the “default” command if you give a single slash for the name argument (“/”). When a user types tries to run a command that doesn’t exist, the default command is executed (if one exists).
SetCurrentDay(0)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x8
cmp eax, 0x4
mov dword ptr [0x20C3640], eax
jnle 0x6
test eax, eax
jnl 0xC
mov dword ptr [0x20C3640], 0x0
xor eax, eax
ret
SetDefaultArrestPoint(POINTLIST._KO_SCHOOL_INFIRMOUT, 0)
SetDefaultArrestPoint(POINTLIST._RESTART_B_PS, 0)
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x30]
push edi
push 0x1
push esi
call LuaParam::GetInt
xor ebp, ebp
push ebp
push esi
mov dword ptr [esp+0x28], eax
or ebx, 0xFFFFFFFF
mov dword ptr [esp+0x24], 0x18
call LuaParam::GetInt
add esp, 0x10
push eax
mov ecx, 0xBC5E7C
call 0x6D6450
mov edi, eax
mov ecx, edi
call 0x6D59B0
mov ecx, edi
mov dword ptr [esp+0x20], eax
call 0x6D59B0
fld st, dword ptr [eax+0x1C]
fsub st, qword ptr [0x900AB8]
mov eax, dword ptr [0xAE9F68]
mov ecx, dword ptr [0xAE9F6C]
mov edx, dword ptr [0xAE9F70]
fstp dword ptr [esp+0x1C], st
push esi
fldz
mov dword ptr [esp+0x28], eax
fstp dword ptr [esp+0x14], st
mov dword ptr [esp+0x2C], ecx
mov dword ptr [esp+0x30], edx
call 0x73AEA0
add esp, 0x4
cmp eax, 0x4
jz 0x10
push esi
call 0x73AEA0
add esp, 0x4
cmp eax, 0x6
jnz 0x1B
push 0x2
push esi
call LuaParam::GetInt
push 0x3
push esi
mov ebp, eax
call LuaParam::GetInt
add esp, 0x10
mov dword ptr [esp+0x14], eax
push esi
call 0x73AEA0
add esp, 0x4
cmp eax, 0x6
jnz 0x56
push 0x4
push esi
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, 0xBC5E7C
call 0x6D6450
mov edi, eax
mov ecx, edi
call 0x6D59B0
mov ecx, dword ptr [eax]
mov dword ptr [esp+0x24], ecx
mov edx, dword ptr [eax+0x4]
mov dword ptr [esp+0x28], edx
mov eax, dword ptr [eax+0x8]
mov ecx, edi
mov dword ptr [esp+0x2C], eax
call 0x6D59B0
fld st, dword ptr [eax+0x1C]
fsub st, qword ptr [0x900AB8]
push 0x5
push esi
fstp dword ptr [esp+0x18], st
call LuaParam::GetInt
add esp, 0x8
mov ebx, eax
fld st, dword ptr [esp+0x10]
mov edx, dword ptr [esp+0x14]
mov eax, dword ptr [esp+0x18]
push ebx
push ecx
fstp dword ptr [esp], st
lea ecx, ptr [esp+0x2C]
fld st, dword ptr [esp+0x24]
push ecx
push edx
push ebp
push eax
push ecx
mov ecx, dword ptr [esp+0x3C]
fstp dword ptr [esp], st
push ecx
mov ecx, 0xBD1078
call 0x4311F0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret
SetDefaultArrestRestartCameraPos(POINTLIST._KO_SCHOOL_INFIRMOUT_CAM)
SetDefaultArrestRestartCameraPos(POINTLIST._RESTART_B_PS_CAM)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, 0xBC5E7C
call 0x6D6450
mov ecx, eax
call 0x6D59B0
push eax
mov ecx, 0xBD1078
call 0x430DC0
xor eax, eax
ret
-- never used
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x30]
push edi
push 0x1
push esi
call LuaParam::GetInt
xor ebp, ebp
push ebp
push esi
mov dword ptr [esp+0x28], eax
or ebx, 0xFFFFFFFF
mov dword ptr [esp+0x24], 0x18
call LuaParam::GetInt
add esp, 0x10
push eax
mov ecx, 0xBC5E7C
call 0x6D6450
mov edi, eax
mov ecx, edi
call 0x6D59B0
mov ecx, edi
mov dword ptr [esp+0x20], eax
call 0x6D59B0
fld st, dword ptr [eax+0x1C]
fsub st, qword ptr [0x900AB8]
mov eax, dword ptr [0xAE9F68]
mov ecx, dword ptr [0xAE9F6C]
mov edx, dword ptr [0xAE9F70]
fstp dword ptr [esp+0x1C], st
push esi
fldz
mov dword ptr [esp+0x28], eax
fstp dword ptr [esp+0x14], st
mov dword ptr [esp+0x2C], ecx
mov dword ptr [esp+0x30], edx
call 0x73AEA0
add esp, 0x4
cmp eax, 0x4
jz 0x10
push esi
call 0x73AEA0
add esp, 0x4
cmp eax, 0x6
jnz 0x1B
push 0x2
push esi
call LuaParam::GetInt
push 0x3
push esi
mov ebp, eax
call LuaParam::GetInt
add esp, 0x10
mov dword ptr [esp+0x14], eax
push esi
call 0x73AEA0
add esp, 0x4
cmp eax, 0x6
jnz 0x56
push 0x4
push esi
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, 0xBC5E7C
call 0x6D6450
mov edi, eax
mov ecx, edi
call 0x6D59B0
mov ecx, dword ptr [eax]
mov dword ptr [esp+0x24], ecx
mov edx, dword ptr [eax+0x4]
mov dword ptr [esp+0x28], edx
mov eax, dword ptr [eax+0x8]
mov ecx, edi
mov dword ptr [esp+0x2C], eax
call 0x6D59B0
fld st, dword ptr [eax+0x1C]
fsub st, qword ptr [0x900AB8]
push 0x5
push esi
fstp dword ptr [esp+0x18], st
call LuaParam::GetInt
add esp, 0x8
mov ebx, eax
fld st, dword ptr [esp+0x10]
mov edx, dword ptr [esp+0x14]
mov eax, dword ptr [esp+0x18]
push ebx
push ecx
fstp dword ptr [esp], st
lea ecx, ptr [esp+0x2C]
fld st, dword ptr [esp+0x24]
push ecx
push edx
push ebp
push eax
push ecx
mov ecx, dword ptr [esp+0x3C]
fstp dword ptr [esp], st
push ecx
mov ecx, 0xBD1078
call 0x431290
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret
-- never used
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, 0xBC5E7C
call 0x6D6450
mov ecx, eax
call 0x6D59B0
push eax
mov ecx, 0xBD1078
call 0x430DF0
xor eax, eax
ret
SetDefaultKOPoint(POINTLIST._KO_SCHOOL_INFIRMOUT, 0)
SetDefaultKOPoint(POINTLIST._RESTART_B_HS, 0)
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x30]
push edi
push 0x1
push esi
call LuaParam::GetInt
xor ebp, ebp
push ebp
push esi
mov dword ptr [esp+0x28], eax
or ebx, 0xFFFFFFFF
mov dword ptr [esp+0x24], 0x18
call LuaParam::GetInt
add esp, 0x10
push eax
mov ecx, 0xBC5E7C
call 0x6D6450
mov edi, eax
mov ecx, edi
call 0x6D59B0
mov ecx, edi
mov dword ptr [esp+0x20], eax
call 0x6D59B0
fld st, dword ptr [eax+0x1C]
fsub st, qword ptr [0x900AB8]
mov eax, dword ptr [0xAE9F68]
mov ecx, dword ptr [0xAE9F6C]
mov edx, dword ptr [0xAE9F70]
fstp dword ptr [esp+0x1C], st
push esi
fldz
mov dword ptr [esp+0x28], eax
fstp dword ptr [esp+0x14], st
mov dword ptr [esp+0x2C], ecx
mov dword ptr [esp+0x30], edx
call 0x73AEA0
add esp, 0x4
cmp eax, 0x4
jz 0x10
push esi
call 0x73AEA0
add esp, 0x4
cmp eax, 0x6
jnz 0x1B
push 0x2
push esi
call LuaParam::GetInt
push 0x3
push esi
mov ebp, eax
call LuaParam::GetInt
add esp, 0x10
mov dword ptr [esp+0x14], eax
push esi
call 0x73AEA0
add esp, 0x4
cmp eax, 0x6
jnz 0x56
push 0x4
push esi
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, 0xBC5E7C
call 0x6D6450
mov edi, eax
mov ecx, edi
call 0x6D59B0
mov ecx, dword ptr [eax]
mov dword ptr [esp+0x24], ecx
mov edx, dword ptr [eax+0x4]
mov dword ptr [esp+0x28], edx
mov eax, dword ptr [eax+0x8]
mov ecx, edi
mov dword ptr [esp+0x2C], eax
call 0x6D59B0
fld st, dword ptr [eax+0x1C]
fsub st, qword ptr [0x900AB8]
push 0x5
push esi
fstp dword ptr [esp+0x18], st
call LuaParam::GetInt
add esp, 0x8
mov ebx, eax
fld st, dword ptr [esp+0x10]
mov edx, dword ptr [esp+0x14]
mov eax, dword ptr [esp+0x18]
push ebx
push ecx
fstp dword ptr [esp], st
lea ecx, ptr [esp+0x2C]
fld st, dword ptr [esp+0x24]
push ecx
push edx
push ebp
push eax
push ecx
mov ecx, dword ptr [esp+0x3C]
fstp dword ptr [esp], st
push ecx
mov ecx, 0xBD1078
call 0x431140
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret
SetDefaultKORestartCameraPos(POINTLIST._KO_SCHOOL_INFIRMOUT_CAM)
SetDefaultKORestartCameraPos(POINTLIST._RESTART_B_HS_CAM)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, 0xBC5E7C
call 0x6D6450
mov ecx, eax
call 0x6D59B0
push eax
mov ecx, 0xBD1078
call 0x430D90
xor eax, eax
ret
CLIENT
Defines when cached draw functions will actually be drawn. Reset every thread update, so you usually don't need to call this just to restore the default ("PRE_FADE"). Possible options are "POST_WORLD", "PRE_FADE", “PRE_FADE2”, and "POST_FADE". Also note that all cached functions are called after any relevant thread type is run.
CLIENT
Copies the timecycle data onto an extra timecycle. See GetExtraTimecycle for help with the other arguments.
SetFactionRespect(1, 0)
SetFactionRespect(1, 100)
SetFactionRespect(1, 25)
SetFactionRespect(1, 50)
SetFactionRespect(1, 55)
SetFactionRespect(1, 60)
SetFactionRespect(1, 65)
SetFactionRespect(1, 70)
SetFactionRespect(1, 75)
SetFactionRespect(1, 85)
SetFactionRespect(1, GetFactionRespect(1) + 15)
SetFactionRespect(1, GetFactionRespect(1) + 20)
SetFactionRespect(1, GetFactionRespect(1) + 5)
SetFactionRespect(1, GetFactionRespect(1) - 5)
SetFactionRespect(11, 0)
SetFactionRespect(11, 10)
SetFactionRespect(11, 100)
SetFactionRespect(11, 20)
SetFactionRespect(11, 25)
SetFactionRespect(2, 0)
SetFactionRespect(2, 100)
SetFactionRespect(2, 25)
SetFactionRespect(2, 45)
SetFactionRespect(2, 50)
SetFactionRespect(2, GetFactionRespect(2) + 15)
SetFactionRespect(2, GetFactionRespect(2) - 10)
SetFactionRespect(3, 0)
SetFactionRespect(3, 100)
SetFactionRespect(3, 25)
SetFactionRespect(3, GetFactionRespect(3) + 100)
SetFactionRespect(3, GetFactionRespect(3) - 25)
SetFactionRespect(4, 0)
SetFactionRespect(4, 100)
SetFactionRespect(4, 25)
SetFactionRespect(4, 50)
SetFactionRespect(4, GetFactionRespect(4) + 25)
SetFactionRespect(4, GetFactionRespect(4) + 5)
SetFactionRespect(4, GetFactionRespect(4) - 10)
SetFactionRespect(4, GetFactionRespect(4) - 20)
SetFactionRespect(4, GetFactionRespect(4) - 25)
SetFactionRespect(4, GetFactionRespect(4) - 5)
SetFactionRespect(5, 0)
SetFactionRespect(5, 100)
SetFactionRespect(5, 15)
SetFactionRespect(5, 25)
SetFactionRespect(5, 50)
SetFactionRespect(5, GetFactionRespect(5) + 15)
SetFactionRespect(5, GetFactionRespect(5) + 5)
SetFactionRespect(5, GetFactionRespect(5) - 10)
SetFactionRespect(5, GetFactionRespect(5) - 5)
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetInt
mov dword ptr [esp+0x18], eax
fild st, dword ptr [esp+0x18]
add esp, 0x10
fstp dword ptr [esp+0x8], st
fldz
fld st, dword ptr [esp+0x8]
fcom st, st(1)
fnstsw ax
test ah, 0x5
jp 0x6
fstp st(0), st
jmp 0x19
fstp st(1), st
fcom st, qword ptr [0x900130]
fnstsw ax
test ah, 0x41
jnz 0xA
fstp st(0), st
fld st, dword ptr [0x900490]
fstp dword ptr [esp+0x8], st
fld st, dword ptr [esp+0x8]
call 0x85C720
push eax
push edi
mov ecx, 0xC1AEA8
call 0x446760
pop edi
xor eax, eax
pop esi
pop ecx
ret
A standard Lua 5.0 function documented on lua.org.
SetGeneralHealthBar(damagePoints)
SetGeneralHealthBar(MAX_SANTA_DAMAGE_POINTS)
push ecx
mov eax, dword ptr [esp+0x8]
push esi
mov esi, dword ptr [0xC674D0]
push 0x0
push eax
call LuaParam::GetInt
mov dword ptr [esp+0xC], eax
fild st, dword ptr [esp+0xC]
add esp, 0x8
xor eax, eax
fstp dword ptr [esi+0x17C], st
pop esi
pop ecx
ret
CLIENT
Index can be 0 or 1. Sets the primary controller index, which effectively sets whether or not the player is using a controller since the controller at index 0 is the keyboard.
CLIENT
Sets a key as pressed or not. Only useful inside the ControllerUpdating or ControllersUpdated events.
SetKORestartPointCameraPos(POINTLIST._BOYSDORM_BEDWAKEUP, POINTLIST._BOYSDORM_BEDWAKEUP_CAM)
SetKORestartPointCameraPos(POINTLIST._KO_RESTART_1, POINTLIST._KO_RESTART_1_CAM)
SetKORestartPointCameraPos(POINTLIST._KO_SCHOOL_INFIRMOUT, POINTLIST._KO_SCHOOL_INFIRMOUT_CAM)
SetKORestartPointCameraPos(POINTLIST._RESTART_B_HS, POINTLIST._RESTART_B_HS_CAM)
SetKORestartPointCameraPos(POINTLIST._RESTART_I_HS, POINTLIST._RESTART_I_HS_CAM)
SetKORestartPointCameraPos(POINTLIST._RESTART_P_HS, POINTLIST._RESTART_P_HS_CAM)
SetKORestartPointCameraPos(POINTLIST._RESTART_R_HS, POINTLIST._RESTART_R_HS_CAM)
SetKORestartPointCameraPos(POINTLIST._RESTART_RC_HS, POINTLIST._RESTART_RC_HS_CAM)
push esi
mov esi, dword ptr [esp+0x8]
push edi
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, 0xBC5E7C
call 0x6D6450
mov ecx, eax
call 0x6D59B0
push 0x1
push esi
mov edi, eax
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, 0xBC5E7C
call 0x6D6450
mov ecx, eax
call 0x6D59B0
push eax
push edi
mov ecx, 0xBD1078
call 0x430BE0
pop edi
xor eax, eax
pop esi
ret
A standard Lua 5.0 function documented on lua.org.
CLIENT
Set the active minigame, or use -1 to set none. Using this or SetMissionActive is often a useful way to disable many game mechanics for custom missions.
CLIENT
When mirror mode is on, controls will be flipped horizontally during the next controller update and the GetScreenCoords function will flip the resulting x coordinate after each mirrored controller update. This function is primarily intended to assist world mirror mods.
CLIENT
Set the active minigame, or use -1 to set none. Using this or SetMinigameActive is often a useful way to disable many game mechanics for custom missions.
SetMissionSuccessCount(missionId.id, 0)
SetMissionSuccessCount(missions[currentMission].id, 1)
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetString
push 0x1
push esi
mov edi, eax
call LuaParam::GetInt
add esp, 0x10
push edi
lea ecx, ptr [esp+0xC]
mov esi, eax
call 0x5FA910
lea eax, ptr [esp+0x8]
push eax
mov ecx, 0x20C3CA0
call 0x6A9FD0
push eax
mov ecx, 0x20C3CA0
call 0x6AA7C0
lea ecx, ptr [esp+0x8]
mov word ptr [eax+0x2], si
call 0x49A650
pop edi
xor eax, eax
pop esi
pop ecx
ret
CLIENT
Sets the success counter for a mission by its hash (light userdata).
CLIENT
Sets a mouse button as pressed or not. Only useful inside the ControllerUpdating or ControllersUpdated events.
SetNumberOfHandledHashEventObjects(10)
SetNumberOfHandledHashEventObjects(50)
SetNumberOfHandledHashEventObjects(elems)
SetNumberOfHandledHashEventObjects(table.getn(gBreakables))
SetNumberOfHandledHashEventObjects(x + y)
mov eax, dword ptr [esp+0x4]
push esi
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x8
mov ecx, 0xD02850
mov esi, eax
call 0x5DB940
test esi, esi
jle 0xF
mov ecx, dword ptr [eax+0x44]
push ecx
push esi
call 0x5B40F0
add esp, 0x8
xor eax, eax
pop esi
ret
-- never used
mov eax, dword ptr [esp+0x4]
push esi
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x8
mov ecx, 0xD02850
mov esi, eax
call 0x5DB940
test esi, esi
jle 0xF
mov ecx, dword ptr [eax+0x44]
push ecx
push esi
call 0x5B47E0
add esp, 0x8
xor eax, eax
pop esi
ret
SetNumberOfHandledPropEventObjects(registerCount)
mov eax, dword ptr [esp+0x4]
push esi
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x8
mov ecx, 0xD02850
mov esi, eax
call 0x5DB940
test esi, esi
jle 0xF
mov ecx, dword ptr [eax+0x44]
push ecx
push esi
call 0x5B5030
add esp, 0x8
xor eax, eax
pop esi
ret
SetNumberOfHandledTriggerEventObjects(4)
SetNumberOfHandledTriggerEventObjects(nTriggerObjectCount)
SetNumberOfHandledTriggerEventObjects(triggerObjectCount)
push ebx
push ebp
push esi
push edi
mov edi, dword ptr [esp+0x14]
push edi
call LuaParam::GetParamCount
push 0x0
push edi
mov ebp, eax
call LuaParam::GetInt
add esp, 0xC
mov ecx, 0xD02850
mov esi, eax
call 0x5DB940
test esi, esi
mov ebx, dword ptr [eax+0x44]
jle 0x31
cmp ebp, 0x1
jnz 0x14
push ebp
push ebx
push esi
call 0x5B5FB0
add esp, 0xC
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
cmp ebp, 0x2
jnz 0x15
push 0x1
push edi
call LuaParam::GetInt
push eax
push ebx
push esi
call 0x5B5FB0
add esp, 0x14
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
SetPopulationFastCulling(false)
SetPopulationFastCulling(true)
mov eax, dword ptr [esp+0x4]
push esi
mov esi, dword ptr [0xC2C108]
push 0x0
push eax
call LuaParam::GetBool
mov cl, byte ptr [esi+0x7898]
xor cl, al
and cl, 0x1
xor byte ptr [esi+0x7898], cl
add esp, 0x8
xor eax, eax
pop esi
ret
CLIENT
Turn alpha blending on or off for the renderer. Should only be used in drawing threads, and should be turned back on after being turned off. Useful for drawing a render target that may have no alpha channel.
-- never used
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetBool
mov ecx, dword ptr [0xC6754C]
mov byte ptr [esp+0x18], al
mov eax, dword ptr [esp+0x18]
add esp, 0x10
push eax
push edi
call 0x435A00
pop edi
xor eax, eax
pop esi
pop ecx
ret
CLIENT
Sets the current simulation speed. Usually this is 1.0 by default.
SetSkippedClass(false)
SetSkippedClass(true)
function SetSkippedClass(skipped)
table.remove(shared.gClassesSkipped, 1)
table.insert(shared.gClassesSkipped, skipped)
end
CLIENT
Sets a stick value. Only useful inside the ControllerUpdating or ControllersUpdated events.
CLIENT
Disables automatic starting of the story mode when creating a new save. If disabled is not given, it is assumed to be true.
It is suggested you call this function during the SaveGameLoading event for optimal timing.
CLIENT
Writes a string to the pointer. If the length of the string is less than bytes, the rest is zero’d out.
SERVER
Sets the active dimension for the current script. By default, the main dimension is active for each script. The active dimension is set per-script, so you don’t have to worry about other scripts changing it.
SERVER
Changes a sync entity's dimension. Changing a ped's dimension will remove them from their vehicle, and swapping a vehicle's dimension will remove all peds from it.
SHARED
Sets a sync entity's position. The heading is optional, and should be specified in degrees if used.
SERVER
Puts a ped into a vehicle. If a seat is not specified, it will be zero by default. Putting a ped into a vehicle in another dimension will change the ped's dimension.
SERVER
Sets a player's ped to a sync ped. Fails if the ped is already a player ped for a different player.
This unties the ped from any script, meaning the ped will not be cleaned up automatically when the script that created it dies. You may want to delete the old player ped, or at least make sure it won't stay after your script dies.
CLIENT
Sets the text alignment. The horizontal alignment may be "L", "C", or "R". The vertical alignment may be "T", "C", or "B". By default, the alignment is "C" and "T".
CLIENT
Sets the maximum text size, everything else will be clipped. Either dimension may be 0 or nil to disable clipping in that dimension, which is the default.
CLIENT
Sets the text color, alpha will default to 255. By default text is red to help alert scripters they forgot to format their text.
This function is also available as SetTextColour.
CLIENT
Sets the text font using a string (recommended) or a font object created by CreateFont. If using a string, the font must be installed on the system.
CLIENT
Sets the text formatting options (including font) using either a number or text formatting table. If using a number, the range is [1, 6] to set a pre-defined format. Use 1 for objective text (on the top) and 2 for subtitle text (on the bottom).
CLIENT
Sets the text height. Be sure to use a small number, as 1 will take up the entire screen. It is often more intuitive to use SetTextScale unless you need an exact height.
CLIENT
Sets the text to be outlined in black, or in a certain color if specified.
CLIENT
Sets where the text will be drawn. Also be sure to see SetTextAlign.
CLIENT
Defines when the text should be re-drawn. Valid options are "R" to always redraw, "A" to automatically detect when to redraw based on size (default), or "N" to never redraw. It may be more performant to use "N" sometimes when text is likely to be re-scaled often.
CLIENT
Sets the text height using a reasonable pre-defined height. By default, text height is set with a scale of 1.
CLIENT
Sets the text to be drop shadowed in black, or in a certain color if specified.
CLIENT
Sets the texture blending mode used. Should only be used in drawing threads, and should be set back to 0 after any drawing. Mode 0 is the default, mode 1 only uses the texture alpha, and mode 2 only uses the alpha argument.
CLIENT
Sets the UV coordinates that will be used when drawing a texture. By default they’re 0, 0, 1, 1.
CLIENT
Sets the texture blending mode used. Should only be used in drawing threads, and should be set back to 0 after any drawing. Mode 0 is the default, mode 1 only uses the texture colors, and mode 2 only uses the color arguments.
CLIENT
Sets the maximum width before wrapping around. If 0 or nil, wrapping is disabled (default).
CLIENT
Copies the timecycle data onto a main timecycle. See GetTimecycle for help with the other arguments.
SetupPedObject(entry.index, entry.modelid, entry.tdx, entry.sex, entry.size, entry.fact, entry.stat, entry.angrp1, entry.angrp2, entry.angrp3, entry.angrp4, entry.unique, entry.actTree, entry.actFile, entry.aiTree, entry.aiFile)
sub esp, 0x34
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x44]
push edi
push 0x1
push esi
call LuaParam::GetString
push 0x2
push esi
mov dword ptr [esp+0x20], eax
call LuaParam::GetString
push 0x3
push esi
mov ebp, eax
call LuaParam::GetInt
push 0x4
push esi
mov dword ptr [esp+0x48], eax
call LuaParam::GetString
push 0x5
push esi
mov edi, eax
call LuaParam::GetString
push 0x6
push esi
mov dword ptr [esp+0x54], eax
call LuaParam::GetString
push 0x7
push esi
mov dword ptr [esp+0x64], eax
call LuaParam::GetString
push 0x8
push esi
mov dword ptr [esp+0x54], eax
call LuaParam::GetString
add esp, 0x40
push 0x9
push esi
mov dword ptr [esp+0x20], eax
call LuaParam::GetString
push 0xA
push esi
mov dword ptr [esp+0x2C], eax
call LuaParam::GetString
push 0xB
push esi
mov dword ptr [esp+0x38], eax
call LuaParam::GetInt
push 0xC
push esi
mov dword ptr [esp+0x50], eax
call LuaParam::GetString
push 0xD
push esi
mov dword ptr [esp+0x60], eax
call LuaParam::GetString
push 0xE
push esi
mov dword ptr [esp+0x64], eax
call LuaParam::GetString
push 0xF
push esi
mov dword ptr [esp+0x78], eax
call LuaParam::GetString
push 0x0
push esi
mov dword ptr [esp+0x7C], eax
call LuaParam::GetInt
mov ebx, eax
mov eax, dword ptr [ebx*4+0xC67738]
add esp, 0x40
xor esi, esi
test eax, eax
jnz 0x10
push eax
mov eax, dword ptr [esp+0x14]
push eax
push ebx
call 0x51C960
jmp 0x15
cmp byte ptr [eax+0x8], 0x8
jnz 0x14
mov ecx, dword ptr [esp+0x10]
push 0x0
push ecx
push ebx
call 0x51B360
mov esi, eax
add esp, 0xC
push 0x0
push ebp
mov ecx, esi
mov byte ptr [esi+0x78], bl
call 0x50E900
mov edx, dword ptr [esi]
mov eax, dword ptr [esp+0x14]
mov edx, dword ptr [edx+0x18]
push eax
mov ecx, esi
call 0x5C1CB9
mov eax, dword ptr [esp+0x18]
push eax
mov ecx, esi
call 0x522190
mov ecx, dword ptr [esp+0x1C]
push ecx
mov ecx, esi
call 0x5221C0
mov edx, dword ptr [esp+0x20]
push edx
mov ecx, esi
call 0x5221F0
push edi
call 0x488B70
push edi
call 0x488B70
add esp, 0x8
push eax
mov ecx, esi
call 0x522370
mov eax, dword ptr [0xCF312C]
push 0x0
push eax
mov ecx, esi
call 0x50EB30
mov ecx, dword ptr [esp+0x24]
push ecx
call 0x488B10
add esp, 0x4
cmp dword ptr [esp+0x28], 0x0
mov dword ptr [esi+0x4C], eax
mov eax, dword ptr [esp+0x2C]
setnz dl
mov byte ptr [esi+0x50], dl
mov ecx, dword ptr [0xC2C084]
push eax
call 0x49A0F0
mov edx, dword ptr [esp+0x34]
mov cx, word ptr [esp+0x30]
mov dword ptr [esi+0x54], eax
mov eax, dword ptr [esp+0x38]
push edx
mov word ptr [esi+0x5C], cx
push eax
mov ecx, esi
mov dword ptr [esi+0x60], 0x0
call 0x5226D0
mov ecx, dword ptr [esp+0x3C]
mov edx, dword ptr [esp+0x40]
push ecx
push edx
mov ecx, esi
call 0x5227D0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x34
ret
CLIENT
Sets the volume for a type of audio. See GetVolumeSetting for type numbers.
SetWeaponLOD(331, 120)
SetWeaponLOD(331, OldFootballLOD)
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x0
push esi
mov edi, eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x18], st
mov eax, dword ptr [edi*4+0xC67738]
fld st, dword ptr [esp+0x18]
add esp, 0x10
fstp dword ptr [eax+0x50], st
pop edi
xor eax, eax
pop esi
pop ecx
ret
ShopAddItem(0, 276, POINTLIST._STORECARN_ITEM14, 0, vespaPrice, CbCarnieStore, 1)
ShopAddItem(0, 276, POINTLIST._STORECARN_ITEM14, 1, vespaPrice, CbCarnieStore, 1)
ShopAddItem(0, 280, POINTLIST._STORE_BIKE_ITEM1, 1, 3500, CbBikeRich, 1)
ShopAddItem(0, 282, POINTLIST._STORE_BIKE_ITEM3, 1, 1500, CbBikeRich, 1)
ShopAddItem(0, 283, POINTLIST._STORE_BIKE_ITEM5, 1, 2500, CbBikeRich, 1)
ShopAddItem(0, 309, POINTLIST._STORE_DT_COMIC_ITEM3, 100, 400, CbComicRich, 5)
ShopAddItem(0, 312, POINTLIST._STORE_DT_GENERAL_ITEM4, 100, 150, CbGroceryStore, 12)
ShopAddItem(0, 316, POINTLIST._STORE_DT_GENERAL_ITEM7, 100, 300, CbGroceryStore, 10)
ShopAddItem(0, 321, POINTLIST._STORE_DT_GENERAL_ITEM6, 100, 100, CbGroceryStore, 12)
ShopAddItem(0, 349, POINTLIST._STORE_DT_COMIC_ITEM7, 30, 300, CbComicRich, 5)
ShopAddItem(0, 363, POINTLIST._STORECARN_ITEM01, -1, 10, CbCarnieStore, 1)
ShopAddItem(0, 394, POINTLIST._STORE_DT_COMIC_ITEM1, 100, 400, CbComicRich, 5)
ShopAddItem(0, 464, POINTLIST._STORECARN_ITEM09, 0, 40, CbCarnieStore, 1)
ShopAddItem(0, 464, POINTLIST._STORECARN_ITEM09, 1, 40, CbCarnieStore, 1)
ShopAddItem(0, 465, POINTLIST._STORECARN_ITEM10, 0, 40, CbCarnieStore, 1)
ShopAddItem(0, 465, POINTLIST._STORECARN_ITEM10, 1, 40, CbCarnieStore, 1)
ShopAddItem(0, 466, POINTLIST._STORECARN_ITEM08, 0, 20, CbCarnieStore, 1)
ShopAddItem(0, 466, POINTLIST._STORECARN_ITEM08, 1, 20, CbCarnieStore, 1)
ShopAddItem(0, 467, POINTLIST._STORECARN_ITEM13, 0, 20, CbCarnieStore, 1)
ShopAddItem(0, 467, POINTLIST._STORECARN_ITEM13, 1, 20, CbCarnieStore, 1)
ShopAddItem(0, 468, POINTLIST._STORECARN_ITEM07, 0, 15, CbCarnieStore, 1)
ShopAddItem(0, 468, POINTLIST._STORECARN_ITEM07, 1, 15, CbCarnieStore, 1)
ShopAddItem(0, 469, POINTLIST._STORECARN_ITEM12, 0, 15, CbCarnieStore, 1)
ShopAddItem(0, 469, POINTLIST._STORECARN_ITEM12, 1, 15, CbCarnieStore, 1)
ShopAddItem(0, 470, POINTLIST._STORECARN_ITEM04, 0, 15, CbCarnieStore, 1)
ShopAddItem(0, 470, POINTLIST._STORECARN_ITEM04, 1, 15, CbCarnieStore, 1)
ShopAddItem(0, 471, POINTLIST._STORECARN_ITEM03, 0, 40, CbCarnieStore, 1)
ShopAddItem(0, 471, POINTLIST._STORECARN_ITEM03, 1, 40, CbCarnieStore, 1)
ShopAddItem(0, 472, POINTLIST._STORECARN_ITEM02, 0, 40, CbCarnieStore, 1)
ShopAddItem(0, 472, POINTLIST._STORECARN_ITEM02, 1, 40, CbCarnieStore, 1)
ShopAddItem(0, 473, POINTLIST._STORECARN_ITEM05, 0, 10, CbCarnieStore, 1)
ShopAddItem(0, 473, POINTLIST._STORECARN_ITEM05, 1, 10, CbCarnieStore, 1)
ShopAddItem(0, 475, POINTLIST._STORE_DT_GENERAL_ITEM2, 100, 100, CbGroceryStore, 1)
ShopAddItem(0, 478, POINTLIST._STORE_DT_GENERAL_ITEM1, 100, 100, CbGroceryStore, 1)
ShopAddItem(0, 502, POINTLIST._STORE_DT_GENERAL_ITEM3, 100, 0, CbGroceryStore, 1)
ShopAddItem(0, 502, POINTLIST._STORE_DT_GENERAL_ITEM3, 100, 100, CbGroceryStore, 1)
ShopAddItem(0, 512, POINTLIST._STORECARN_ITEM06, 0, 10, CbCarnieStore, 1)
ShopAddItem(0, 512, POINTLIST._STORECARN_ITEM06, 1, 10, CbCarnieStore, 1)
ShopAddItem(0, 513, POINTLIST._STORECARN_ITEM11, 0, 10, CbCarnieStore, 1)
ShopAddItem(0, 513, POINTLIST._STORECARN_ITEM11, 1, 10, CbCarnieStore, 1)
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x24]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov ebx, eax
call LuaParam::GetInt
push 0x2
push esi
mov ebp, eax
call LuaParam::GetInt
add esp, 0x18
push eax
mov ecx, 0xBC5E7C
call 0x6D6450
mov ecx, eax
call 0x6D59B0
push 0x3
push esi
mov edi, eax
call LuaParam::GetInt
push 0x4
push esi
mov dword ptr [esp+0x24], eax
call LuaParam::GetInt
push 0x6
push esi
mov dword ptr [esp+0x28], eax
call LuaParam::GetInt
fld st, dword ptr [edi+0x1C]
mov ecx, dword ptr [esp+0x2C]
fstp dword ptr [esp+0x30], st
fldz
mov edx, dword ptr [esp+0x30]
add esp, 0x18
fst dword ptr [esp+0x1C], st
push eax
fstp dword ptr [esp+0x24], st
mov eax, dword ptr [esp+0x14]
push eax
push ecx
mov ecx, dword ptr [esp+0x28]
sub esp, 0xC
mov eax, esp
mov dword ptr [eax], edx
mov edx, dword ptr [esp+0x38]
mov dword ptr [eax+0x4], ecx
mov ecx, dword ptr [edi]
mov dword ptr [eax+0x8], edx
mov edx, dword ptr [edi+0x4]
sub esp, 0xC
mov eax, esp
mov dword ptr [eax], ecx
mov ecx, dword ptr [edi+0x8]
mov dword ptr [eax+0x4], edx
push ebp
mov dword ptr [eax+0x8], ecx
push ebx
mov ecx, 0xC18748
call 0x4553E0
lea edi, ptr [eax+0x40]
push edi
push 0x5
push esi
call 0x5D9FD0
add esp, 0xC
mov ecx, edi
call 0x5D80E0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
ShopEnd()
mov ecx, 0xC18748
call 0x457560
xor eax, eax
ret
gClerk = ShopGetClerkID()
mov ecx, 0xC18748
call 0x77E8D0
push eax
call 0x5C6230
push eax
mov eax, dword ptr [esp+0xC]
push eax
call LuaParam::PushInt
add esp, 0xC
mov eax, 0x1
ret
-- never used
movzx eax, byte ptr [0xC18754]
mov ecx, dword ptr [esp+0x4]
push eax
push ecx
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
ret
ShopSetCameraAngleOffset(11)
ShopSetCameraAngleOffset(15)
ShopSetCameraAngleOffset(8)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetFloat
fstp dword ptr [0xC187A0], st
add esp, 0x8
xor eax, eax
ret
ShopSetCameraPos(POINTLIST._STORE_BIKE_CAMERA)
ShopSetCameraPos(POINTLIST._STORE_DT_COMIC_CAMERA)
ShopSetCameraPos(POINTLIST._STORE_DT_GENERAL_CAMERA)
ShopSetCameraPos(POINTLIST._STORECARN_CAMERA)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, 0xBC5E7C
call 0x6D6450
mov ecx, eax
call 0x6D59B0
mov edx, dword ptr [eax]
sub esp, 0xC
mov ecx, esp
mov dword ptr [ecx], edx
mov edx, dword ptr [eax+0x4]
mov eax, dword ptr [eax+0x8]
mov dword ptr [ecx+0x4], edx
mov dword ptr [ecx+0x8], eax
mov ecx, 0xC18748
call 0x4550D0
xor eax, eax
ret
ShopSetCameraZoomPercentage(0)
ShopSetCameraZoomPercentage(0.4)
ShopSetCameraZoomPercentage(0.5)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetFloat
fstp dword ptr [0xC1879C], st
add esp, 0x8
xor eax, eax
ret
ShopSetConversationTree("Act/Conv/DTCarnie.act", "DTCarnie", "Cancel", "Purchase", "Broke", "NoRoom", "Browse", "Stock")
ShopSetConversationTree("Act/Conv/DTComics.act", "DTComics", "Cancel", "Purchase", "Broke", "NoRoom", "Browse", "Stock")
ShopSetConversationTree("Act/Conv/DTGeneral.act", "DTGeneral", "Cancel", "Purchase", "Broke", "NoRoom", "Browse", "Stock")
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x20]
push edi
push 0x0
push esi
call LuaParam::GetString
push 0x1
push esi
mov edi, eax
call LuaParam::GetString
push 0x2
push esi
mov ebx, eax
call LuaParam::GetString
push 0x3
push esi
mov ebp, eax
call LuaParam::GetString
push 0x4
push esi
mov dword ptr [esp+0x44], eax
call LuaParam::GetString
push 0x5
push esi
mov dword ptr [esp+0x48], eax
call LuaParam::GetString
push 0x6
push esi
mov dword ptr [esp+0x4C], eax
call LuaParam::GetString
push 0x7
push esi
mov dword ptr [esp+0x50], eax
call LuaParam::GetString
mov ecx, dword ptr [esp+0x54]
mov edx, dword ptr [esp+0x58]
add esp, 0x40
push eax
mov eax, dword ptr [esp+0x14]
push eax
mov eax, dword ptr [esp+0x24]
push ecx
push edx
push eax
push ebp
push ebx
push edi
mov ecx, 0xC18748
call 0x4550F0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
ShopSetIsPlayerInShop(false)
ShopSetIsPlayerInShop(true)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetBool
mov byte ptr [0xC1921C], al
add esp, 0x8
xor eax, eax
ret
-- never used
mov eax, dword ptr [esp+0x4]
push 0xC18A20
push 0x0
push eax
call 0x5D9FD0
add esp, 0xC
mov ecx, 0xC18A20
call 0x5D80E0
xor eax, eax
ret
ShopSetPlayerPos(POINTLIST._STORE_DT_BIKE_CUSTOMER)
ShopSetPlayerPos(POINTLIST._STORE_DT_COMIC_CUSTOMER)
ShopSetPlayerPos(POINTLIST._STORE_DT_GENERAL_CUSTOMER)
ShopSetPlayerPos(POINTLIST._STORECARN_PLAYERPOSITION)
sub esp, 0xC
mov eax, dword ptr [esp+0x10]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, 0xBC5E7C
call 0x6D6450
mov ecx, eax
call 0x6D59B0
fld st, dword ptr [eax+0x1C]
fstp dword ptr [esp], st
mov edx, dword ptr [esp]
fldz
sub esp, 0xC
mov ecx, esp
fst dword ptr [esp+0x10], st
mov dword ptr [ecx], edx
fstp dword ptr [esp+0x14], st
mov edx, dword ptr [esp+0x10]
mov dword ptr [ecx+0x4], edx
mov edx, dword ptr [esp+0x14]
mov dword ptr [ecx+0x8], edx
mov edx, dword ptr [eax]
sub esp, 0xC
mov ecx, esp
mov dword ptr [ecx], edx
mov edx, dword ptr [eax+0x4]
mov eax, dword ptr [eax+0x8]
mov dword ptr [ecx+0x4], edx
mov dword ptr [ecx+0x8], eax
mov ecx, 0xC18748
call 0x4550A0
xor eax, eax
add esp, 0xC
ret
ShopSetShopKeepInfo(114, POINTLIST._STORECARN_CLERK)
ShopSetShopKeepInfo(156, POINTLIST._STORE_DT_GENERAL_CLERK)
ShopSetShopKeepInfo(84, POINTLIST._STORE_DT_COMIC_CLERK)
ShopSetShopKeepInfo(86, POINTLIST._STORE_DT_BIKE_CLERK)
ShopSetShopKeepInfo(89, POINTLIST._STORE_DT_GENERAL_CLERK)
sub esp, 0xC
push esi
mov esi, dword ptr [esp+0x14]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetInt
add esp, 0x10
push eax
mov ecx, 0xBC5E7C
call 0x6D6450
mov ecx, eax
call 0x6D59B0
fld st, dword ptr [eax+0x1C]
sub esp, 0xC
fstp dword ptr [esp+0x14], st
fldz
mov edx, dword ptr [esp+0x14]
mov ecx, esp
fst dword ptr [esp+0x18], st
mov dword ptr [ecx], edx
fstp dword ptr [esp+0x1C], st
mov edx, dword ptr [esp+0x18]
mov dword ptr [ecx+0x4], edx
mov edx, dword ptr [esp+0x1C]
mov dword ptr [ecx+0x8], edx
mov edx, dword ptr [eax]
sub esp, 0xC
mov ecx, esp
mov dword ptr [ecx], edx
mov edx, dword ptr [eax+0x4]
mov eax, dword ptr [eax+0x8]
mov dword ptr [ecx+0x4], edx
mov dword ptr [ecx+0x8], eax
push edi
mov ecx, 0xC18748
call 0x455060
pop edi
xor eax, eax
pop esi
add esp, 0xC
ret
ShopStart()
ShopStart(1)
push esi
push edi
mov edi, dword ptr [esp+0xC]
push edi
xor esi, esi
call 0x73AEA0
add esp, 0x4
cmp eax, 0x1
jl 0xE
push esi
push edi
call LuaParam::GetInt
add esp, 0x8
mov esi, eax
push esi
mov ecx, 0xC18748
call 0x4574A0
pop edi
xor eax, eax
pop esi
ret
if ShouldEventInitiate(POIInfo) then
function ShouldEventInitiate(info)
local POIPointType = AreaPOIGetInterestType(info)
local gShouldCreate = false
local roll = 0
if shared.gRunPOITest == false then
return true
end
roll = math.random(1, 100)
if POIPointType == 15 then
if shared.gMissionPhoto4 == true and (AreaPOICompareName(info, "F_DrunkenBeggar") or AreaPOICompareName(info, "F_BullyDogs")) then
--print("Drunken beggar trying to activate: ", roll)
if 10 <= roll then
gShouldCreate = true
else
gShouldCreate = false
end
elseif AreaPOICompareName(info, "F_ClassSmokers") or AreaPOICompareName(info, "F_SmokingFireman") then
if 40 <= roll then
gShouldCreate = true
else
gShouldCreate = false
end
elseif AreaPOICompareName(info, "F_InstantBully") then
if 30 <= roll then
gShouldCreate = true
else
gShouldCreate = false
end
elseif AreaPOICompareName(info, "F_DrunkenBeggar") then
if 30 <= roll then
gShouldCreate = true
else
gShouldCreate = false
end
elseif AreaPOICompareName(info, "F_Russell") then
if 0 <= roll then
gShouldCreate = true
else
gShouldCreate = false
end
elseif AreaPOICompareName(info, "F_Truck") then
if 0 <= roll then
gShouldCreate = true
else
gShouldCreate = false
end
elseif AreaPOICompareName(info, "F_Biker") then
if 5 <= roll then
gShouldCreate = true
else
gShouldCreate = false
end
elseif AreaPOICompareName(info, "F_GuardDog") or AreaPOICompareName(info, "F_BullyDogs") then
if 25 <= roll then
gShouldCreate = true
else
gShouldCreate = false
end
elseif AreaPOICompareName(info, "F_LockerStuff") or AreaPOICompareName(info, "F_SocialHumiliation") or AreaPOICompareName(info, "F_TrashStuff") or AreaPOICompareName(info, "F_Swirlie") then
if 30 <= roll then
gShouldCreate = true
else
gShouldCreate = false
end
elseif AreaPOICompareName(info, "F_WorkerHangout") or AreaPOICompareName(info, "F_WorkerSmoking") then
if 0 <= roll then
gShouldCreate = true
else
gShouldCreate = false
end
elseif AreaPOICompareName(info, "F_Criminal") then
if AreaGetVisible() == 9 then
if 75 <= roll then
gShouldCreate = true
else
gShouldCreate = false
end
elseif 20 <= roll then
gShouldCreate = true
else
gShouldCreate = false
end
elseif AreaPOICompareName(info, "F_HCriminal") or AreaPOICompareName(info, "F_HStudent") then
if 5 <= roll then
gShouldCreate = true
else
gShouldCreate = false
end
elseif AreaPOICompareName(info, "F_CarnivalWalker") or AreaPOICompareName(info, "F_Industrial") or AreaPOICompareName(info, "F_DockWorker") or AreaPOICompareName(info, "F_MillWorker") or AreaPOICompareName(info, "F_PrincipalPOI") or AreaPOICompareName(info, "F_DockWorker") or AreaPOICompareName(info, "F_MillWorker") or AreaPOICompareName(info, "F_Fireman") or AreaPOICompareName(info, "F_RandomStudent") or AreaPOICompareName(info, "F_SocialHangout") then
if 0 <= roll then
gShouldCreate = true
else
gShouldCreate = false
end
elseif AreaPOICompareName(info, "F_CBarkerGame") or AreaPOICompareName(info, "F_CBarkerGame2") or AreaPOICompareName(info, "F_DunkMidget") or AreaPOICompareName(info, "F_CBarkerHouse") then
gShouldCreate = truethen
gShouldCreate = true
elseif AreaPOICompareName(info, "F_Rats") then
if 30 <= roll then
gShouldCreate = true
else
gShouldCreate = false
end
elseif AreaPOICompareName(info, "F_RoofSniper") then
if 75 <= roll then
gShouldCreate = true
else
gShouldCreate = false
end
elseif AreaPOICompareName(info, "F_Puker") then
if 50 <= roll then
gShouldCreate = true
else
gShouldCreate = false
end
elseif AreaPOICompareName(info, "F_ProjAttack") then
if 30 <= roll then
gShouldCreate = true
else
gShouldCreate = false
end
elseif AreaPOICompareName(info, "F_Crying") then
if 50 <= roll then
gShouldCreate = true
else
gShouldCreate = false
end
elseif AreaPOICompareName(info, "F_Workout") or AreaPOICompareName(info, "F_Cheerleading") then
if 50 <= roll then
gShouldCreate = true
else
gShouldCreate = false
end
elseif AreaPOICompareName(info, "F_DogWalker") then
if 40 <= roll then
gShouldCreate = true
else
gShouldCreate = false
end
elseif AreaPOICompareName(info, "F_Catch") then
if 25 <= roll then
gShouldCreate = true
else
gShouldCreate = false
end
elseif AreaPOICompareName(info, "F_Straggler") then
if 70 <= roll then
gShouldCreate = true
else
gShouldCreate = false
end
elseif AreaGetVisible == 13 then
if 25 <= roll then
gShouldCreate = true
else
gShouldCreate = false
end
elseif 50 <= roll then
gShouldCreate = true
else
gShouldCreate = false
end
elseif POIPointType == 8 then
if 60 <= roll then
gShouldCreate = true
else
gShouldCreate = false
end
elseif 55 <= roll then
gShouldCreate = true
else
gShouldCreate = false
end
if gShouldCreate == true then
return true
end
return false
end
ShowGeneralHealthBar(MAX_SANTA_DAMAGE_POINTS, "3_XM_BAR", false)
push ecx
push esi
push edi
mov edi, dword ptr [esp+0x10]
push 0x0
push edi
call LuaParam::GetInt
mov esi, dword ptr [0xC674D0]
mov dword ptr [esp+0x10], eax
fild st, dword ptr [esp+0x10]
mov eax, dword ptr [esi]
mov edx, dword ptr [eax+0x14]
add esp, 0x8
fstp dword ptr [esp+0x8], st
push 0x1
fld st, dword ptr [esp+0xC]
mov ecx, esi
fstp dword ptr [esi+0x178], st
mov byte ptr [esi+0x174], 0x1
call 0x5CA8B0
push 0x1
push edi
call LuaParam::GetString
add esp, 0x8
push eax
mov ecx, esi
call 0x5514D0
push edi
call 0x73AEA0
add esp, 0x4
cmp eax, 0x2
jle 0x19
push 0x2
push edi
call LuaParam::GetBool
add esp, 0x8
test al, al
mov byte ptr [esi+0xBA], al
jnz 0x12
jmp 0x9
mov byte ptr [esi+0xBA], 0x0
mov byte ptr [esi+0xBB], 0x0
push 0x0
mov ecx, esi
call 0x551500
pop edi
xor eax, eax
pop esi
pop ecx
ret
SoccerPAllowAim(false)
SoccerPAllowAim(true)
xor eax, eax
ret
local x, y, z = SoccerPGetHitPos()
mov ecx, dword ptr [0x20C8704]
sub esp, 0xC
push esi
lea eax, ptr [esp+0x4]
push eax
call 0x714040
fld st, dword ptr [eax]
mov esi, dword ptr [esp+0x14]
push ecx
fstp dword ptr [esp], st
push esi
call LuaParam::PushFloat
add esp, 0x8
lea ecx, ptr [esp+0x4]
push ecx
mov ecx, dword ptr [0x20C8704]
call 0x714040
fld st, dword ptr [eax+0x4]
push ecx
fstp dword ptr [esp], st
push esi
call LuaParam::PushFloat
mov ecx, dword ptr [0x20C8704]
add esp, 0x8
lea edx, ptr [esp+0x4]
push edx
call 0x714040
fld st, dword ptr [eax+0x8]
push ecx
fstp dword ptr [esp], st
push esi
call LuaParam::PushFloat
add esp, 0x8
mov eax, 0x3
pop esi
add esp, 0xC
ret
targetindex = SoccerPGetHitTarget()
mov ecx, dword ptr [0x20C8704]
call 0x714160
add eax, 0x1
push eax
mov eax, dword ptr [esp+0x8]
push eax
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
ret
SoccerPSetBallsToKick(max_num_kicks_allowed)
SoccerPSetBallsToKick(num_kicked)
mov eax, dword ptr [esp+0x4]
push esi
mov esi, dword ptr [0x20C8704]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x8
mov dword ptr [esi+0xE0], eax
xor eax, eax
pop esi
ret
SoccerPSetGoalArea(69.8239, -86.369, 5.15712, 69.8389, -92.414, 5.15712, 2.89)
sub esp, 0x18
push esi
mov esi, dword ptr [esp+0x20]
push edi
push 0x3
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x10], st
push 0x4
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x1C], st
push 0x5
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x28], st
push 0x0
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x34], st
push 0x1
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x40], st
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x4C], st
mov edi, dword ptr [0x20C8704]
push 0x6
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x34], st
mov ecx, dword ptr [esp+0x40]
mov edx, dword ptr [esp+0x44]
add esp, 0x28
mov eax, esp
mov dword ptr [eax], ecx
mov ecx, dword ptr [esp+0x20]
mov dword ptr [eax+0x4], edx
mov edx, dword ptr [esp+0x24]
mov dword ptr [eax+0x8], ecx
mov ecx, dword ptr [esp+0x28]
sub esp, 0xC
mov eax, esp
mov dword ptr [eax], edx
mov edx, dword ptr [esp+0x38]
mov dword ptr [eax+0x4], ecx
mov ecx, edi
mov dword ptr [eax+0x8], edx
call 0x714440
pop edi
xor eax, eax
pop esi
add esp, 0x18
ret
-- never used
sub esp, 0x10
push esi
mov esi, dword ptr [0x20C8704]
push edi
mov edi, dword ptr [esp+0x1C]
push 0x0
push edi
call LuaParam::GetFloat
fstp dword ptr [esp+0x10], st
push 0x1
push edi
call LuaParam::GetFloat
fstp dword ptr [esp+0x1C], st
push 0x2
push edi
call LuaParam::GetFloat
fstp dword ptr [esp+0x28], st
push 0x3
push edi
call LuaParam::GetFloat
fstp dword ptr [esp+0x34], st
fld st, dword ptr [esp+0x28]
add esp, 0x20
fstp dword ptr [esi+0xC4], st
pop edi
fld st, dword ptr [esp+0x8]
xor eax, eax
fstp dword ptr [esi+0xC8], st
fld st, dword ptr [esp+0xC]
fstp dword ptr [esi+0xCC], st
fld st, dword ptr [esp+0x10]
fstp dword ptr [esi+0xD0], st
pop esi
add esp, 0x10
ret
SoccerPSetMeterSpeed(0.02, 0.02)
sub esp, 0x8
push esi
mov esi, dword ptr [0x20C8704]
push edi
mov edi, dword ptr [esp+0x14]
push 0x0
push edi
call LuaParam::GetFloat
fstp dword ptr [esp+0x10], st
push 0x1
push edi
call LuaParam::GetFloat
fstp dword ptr [esp+0x1C], st
fld st, dword ptr [esp+0x18]
add esp, 0x10
fstp dword ptr [esi+0xEC], st
pop edi
fld st, dword ptr [esp+0x8]
xor eax, eax
fstp dword ptr [esi+0xF0], st
pop esi
add esp, 0x8
ret
SoccerPSetPed(gTargetBoy)
mov eax, dword ptr [esp+0x4]
push edi
push 0x0
push eax
call LuaParam::GetInt
mov edi, eax
push edi
call 0x46DF10
mov ecx, dword ptr [0xC0F5F0]
mov edx, dword ptr [ecx+0x4]
add esp, 0xC
test byte ptr [eax+edx*1], 0x80
jnz 0x2E
push esi
mov esi, dword ptr [ecx+0xC]
imul esi, eax
add esi, dword ptr [ecx]
jz 0x1E
mov eax, dword ptr [esi]
mov edx, dword ptr [eax+0xAC]
mov ecx, esi
call 0x71601E
cmp eax, edi
jnz 0xE
mov ecx, dword ptr [0x20C8704]
push esi
call 0x715F50
pop esi
xor eax, eax
pop edi
ret
SoccerPSetPedsHealthBar(gPedHealth, gMaxTargetHealth)
sub esp, 0x8
push esi
mov esi, dword ptr [0x20C8704]
push edi
mov edi, dword ptr [esp+0x14]
push 0x0
push edi
call LuaParam::GetFloat
fstp dword ptr [esp+0x10], st
push 0x1
push edi
call LuaParam::GetFloat
fstp dword ptr [esp+0x1C], st
fld st, dword ptr [esp+0x18]
add esp, 0x10
fstp dword ptr [esi+0xD4], st
pop edi
fld st, dword ptr [esp+0x8]
xor eax, eax
fstp dword ptr [esi+0xD8], st
pop esi
add esp, 0x8
ret
SoccerPSetProjectile(proj1)
mov eax, dword ptr [esp+0x4]
push esi
push edi
push 0x0
push eax
call LuaParam::GetInt
push eax
call 0x4D3DD0
mov esi, dword ptr [0x20C8704]
add esi, 0x9F8
mov edi, eax
mov eax, dword ptr [esi]
add esp, 0xC
cmp edi, eax
jz 0x20
test eax, eax
jz 0xC
push esi
push eax
call 0x4657E0
add esp, 0x8
test edi, edi
mov dword ptr [esi], edi
jz 0xC
push esi
push edi
call 0x4657D0
add esp, 0x8
pop edi
xor eax, eax
pop esi
ret
SoccerPSetTarget(1, 69.7939, -87.054, 7.62712, 1, 0.7, gSoccerValues[1])
SoccerPSetTarget(10, 69.8335, -90.2746, 5.68212, 0.5, 0.3, gSoccerValues[10])
SoccerPSetTarget(2, 69.8064, -88.2215, 6.61594, 0.7, 0.7, gSoccerValues[2])
SoccerPSetTarget(3, 69.8539, -91.824, 7.62712, 1, 0.7, gSoccerValues[3])
SoccerPSetTarget(4, 69.7939, -87.054, 5.68212, 1, 0.7, gSoccerValues[4])
SoccerPSetTarget(5, 69.8364, -90.6065, 6.61594, 0.7, 0.7, gSoccerValues[5])
SoccerPSetTarget(6, 69.8539, -91.824, 5.68212, 1, 0.7, gSoccerValues[6])
SoccerPSetTarget(7, 69.8292, -88.5083, 7.62712, 0.5, 0.3, gSoccerValues[7])
SoccerPSetTarget(8, 69.8335, -90.2746, 7.62712, 0.5, 0.3, gSoccerValues[8])
SoccerPSetTarget(9, 69.8292, -88.5083, 5.68212, 0.5, 0.3, gSoccerValues[9])
sub esp, 0x14
push ebx
push esi
mov esi, dword ptr [esp+0x20]
push edi
push esi
xor ebx, ebx
call LuaParam::GetParamCount
add esp, 0x4
cmp eax, 0x7
jl 0xF
push 0x6
push esi
call LuaParam::GetInt
add esp, 0x8
mov ebx, eax
push 0x4
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x14], st
push 0x5
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x20], st
push 0x1
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x2C], st
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x38], st
push 0x3
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x44], st
mov eax, dword ptr [esp+0x38]
mov ecx, dword ptr [esp+0x34]
mov edx, dword ptr [esp+0x3C]
mov edi, dword ptr [0x20C8704]
add esp, 0x28
push ebx
push eax
push ecx
mov ecx, dword ptr [esp+0x24]
sub esp, 0xC
mov eax, esp
mov dword ptr [eax], edx
mov edx, dword ptr [esp+0x34]
push 0x0
mov dword ptr [eax+0x4], ecx
push esi
mov dword ptr [eax+0x8], edx
call LuaParam::GetInt
add esp, 0x8
sub eax, 0x1
push eax
mov ecx, edi
call 0x713EF0
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x14
ret
SoccerPSetTargetCount(10)
mov eax, dword ptr [esp+0x4]
push esi
mov esi, dword ptr [0x20C8704]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x8
cmp eax, 0xC
jle 0x11
mov eax, 0xC
mov dword ptr [esi+0x8B0], eax
xor eax, eax
pop esi
ret
test eax, eax
jnl 0x4
xor eax, eax
mov dword ptr [esi+0x8B0], eax
xor eax, eax
pop esi
ret
SoccerPStartAiming()
mov ecx, dword ptr [0x20C8704]
call 0x715B40
xor eax, eax
ret
SoccerPStopAiming()
mov eax, dword ptr [0x20C8704]
mov byte ptr [eax+0x4], 0x0
xor eax, eax
ret
-- never used
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, 0xCF4378
call 0x8A20A0
xor eax, eax
ret
-- never used
mov ecx, dword ptr [0xCF4280]
call 0x58DAC0
xor eax, eax
ret
-- never used
mov ecx, dword ptr [0xCF4280]
call 0x58D900
xor eax, eax
ret
-- never used
mov ecx, dword ptr [0xCF4280]
call 0x58D940
xor eax, eax
ret
-- never used
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetInt
mov ecx, dword ptr [0xCF4280]
add esp, 0x8
push eax
call 0x58DA60
xor eax, eax
ret
-- never used
mov ecx, dword ptr [0xCF4280]
call 0x58DA80
xor eax, eax
ret
SoundCancelConversation()
call 0x6842C0
xor eax, eax
ret
-- never used
mov ecx, dword ptr [0xCF4374]
call 0x593DC0
xor eax, eax
ret
-- never used
mov ecx, 0xCF4378
call 0x5A09A0
xor eax, eax
ret
SoundContinue()
xor al, al
mov byte ptr [0xCF3DD7], al
mov byte ptr [0xCF6C71], al
xor eax, eax
ret
SoundDisableSpeech()
mov ecx, 0xCF4E10
call 0x59FC90
xor eax, eax
ret
SoundDisableSpeech_ActionTree()
mov eax, dword ptr [0xCF4374]
test eax, eax
mov cl, 0x1
mov byte ptr [0xCF3DA3], cl
jz 0x5
mov byte ptr [eax+0x1], cl
xor eax, eax
ret
SoundEmitterEnable("Dorm1stFLoorArcade", shared.ArcadeMachinesOn)
SoundEmitterEnable("DropArcade", shared.ArcadeMachinesOn)
SoundEmitterEnable("GreaserArcade", shared.ArcadeMachinesOn)
SoundEmitterEnable("MagnetHum", false)
SoundEmitterEnable("MagnetHum", true)
SoundEmitterEnable("Nerd Arcade", shared.ArcadeMachinesOn)
SoundEmitterEnable("NerdArcade", shared.ArcadeMachinesOn)
SoundEmitterEnable("PlasmaBall", false)
SoundEmitterEnable("PlasmaBall", true)
SoundEmitterEnable("Poor_AutoBodyShop", false)
SoundEmitterEnable("Poor_AutoBodyShop", true)
SoundEmitterEnable("Poor_TennmentsDay01", false)
SoundEmitterEnable("Poor_TennmentsDay01", true)
SoundEmitterEnable("PrepArcade", shared.ArcadeMachinesOn)
SoundEmitterEnable("SouvineerArcade", shared.ArcadeMachinesOn)
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push 0x1
push esi
call LuaParam::GetBool
push 0x0
push esi
mov byte ptr [esp+0x14], al
call LuaParam::GetString
mov ecx, dword ptr [esp+0x14]
add esp, 0x10
push ecx
push eax
call 0x576ED0
mov ecx, dword ptr [0xCF4278]
add esp, 0x4
push eax
call 0x5873C0
xor eax, eax
pop esi
pop ecx
ret
SoundEmitterStart(186.275, -71.1643, 46.4597, "BELLSONE", "BellTower")
SoundEmitterStart(191.725, -75.7203, 46.4597, "BELLSTWO", "BellTower")
SoundEmitterStart(197.159, -75.7203, 46.4597, "BELLSTHREE", "BellTower")
sub esp, 0x10
push esi
mov esi, dword ptr [esp+0x18]
push edi
push 0x0
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x1C], st
push 0x1
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x20], st
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x24], st
push 0x3
push esi
call LuaParam::GetString
add esp, 0x20
push eax
mov ecx, 0xCF3DA0
call 0x595B80
push 0x4
push esi
mov edi, eax
call LuaParam::GetString
push eax
call 0x59E170
mov esi, eax
lea eax, ptr [esp+0x14]
push eax
mov byte ptr [esp+0x18], 0x0
call 0x593DE0
fld st, dword ptr [esp+0x1C]
mov ecx, dword ptr [esp+0x18]
add esp, 0x10
push ecx
mov ecx, dword ptr [0xCF4278]
push esi
push edi
sub esp, 0xC
fstp dword ptr [esp+0x8], st
fld st, dword ptr [esp+0x28]
fstp dword ptr [esp+0x4], st
fld st, dword ptr [esp+0x2C]
fstp dword ptr [esp], st
call 0x586820
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret
SoundEmitterStop(186.275, -71.1643, 46.4597, "BELLSONE")
SoundEmitterStop(191.725, -75.7203, 46.4597, "BELLSTWO")
SoundEmitterStop(197.159, -75.7203, 46.4597, "BELLSTHREE")
sub esp, 0xC
push esi
mov esi, dword ptr [esp+0x14]
push 0x0
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x14], st
push 0x1
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x18], st
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x1C], st
push 0x3
push esi
call LuaParam::GetString
add esp, 0x20
push eax
mov ecx, 0xCF3DA0
call 0x595B80
fld st, dword ptr [esp+0x4]
mov ecx, dword ptr [0xCF4278]
push eax
sub esp, 0xC
fstp dword ptr [esp+0x8], st
fld st, dword ptr [esp+0x18]
fstp dword ptr [esp+0x4], st
fld st, dword ptr [esp+0x1C]
fstp dword ptr [esp], st
call 0x587190
xor eax, eax
pop esi
add esp, 0xC
ret
SoundEnableInteractiveMusic(false)
SoundEnableInteractiveMusic(true)
mov eax, dword ptr [esp+0x4]
push 0x1
push 0x0
push eax
call LuaParam::GetBool ; optional
add esp, 0xC
test al, al
setz al
test al, al
mov byte ptr [0xCF3AE7], al
jnz 0xC
mov dword ptr [0xCF3AEC], 0x2
xor eax, eax
ret
SoundEnableSpeech()
mov ecx, 0xCF4E10
call 0x59E8D0
xor eax, eax
ret
SoundEnableSpeech_ActionTree()
mov eax, dword ptr [0xCF4374]
xor ecx, ecx
cmp eax, ecx
mov byte ptr [0xCF3DA3], cl
jz 0x5
mov byte ptr [eax+0x1], cl
xor eax, eax
ret
SoundFadeoutAmbience(500)
mov eax, dword ptr [esp+0x4]
push 0xFFFFFFFF
push 0x0
push eax
call LuaParam::GetInt ; optional
add esp, 0xC
push eax
push 0x0
mov ecx, 0xCF4324
call 0x5913D0
xor eax, eax
ret
SoundFadeoutStream()
SoundFadeoutStream(0)
mov eax, dword ptr [esp+0x4]
push 0xFFFFFFFF
push 0x0
push eax
call LuaParam::GetInt ; optional
add esp, 0xC
push eax
push 0x0
mov ecx, 0xCF42D4
call 0x5913D0
xor eax, eax
ret
SoundFadeWithCamera(false)
SoundFadeWithCamera(true)
push ecx
mov eax, dword ptr [esp+0x8]
push esi
push 0x1
push 0x0
push eax
call LuaParam::GetBool ; optional
mov byte ptr [esp+0x10], al
mov esi, dword ptr [esp+0x10]
push esi
push 0x4
call 0x59E5E0
push esi
push 0x3
call 0x59E5E0
push esi
push 0x2
call 0x59E5E0
add esp, 0x24
xor eax, eax
pop esi
pop ecx
ret
-- never used
mov ecx, 0xCF3DA0
call 0x595D30
xor eax, eax
ret
while not SoundIsPreloadReady() do
push ecx
mov ecx, 0xCF42D4
mov byte ptr [esp], 0x0
call 0x58EDC0
cmp eax, 0x6
jnz 0x14
mov ecx, 0xCF42D4
call 0x58EE40
test al, al
jz 0x6
mov byte ptr [esp], 0x1
mov eax, dword ptr [esp]
mov ecx, dword ptr [esp+0x8]
push eax
push ecx
call LuaParam::PushBool
mov eax, 0x1
add esp, 0xC
ret
while not SoundIsSpeechPreloaded() do
movzx eax, byte ptr [0xCFB3BD]
mov ecx, dword ptr [esp+0x4]
push eax
push ecx
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
ret
SoundLoadBank("Clapping\\Claps.bnk")
SoundLoadBank("Engine.bnk")
SoundLoadBank("FEET\\FEETSCHL.BNK")
SoundLoadBank("MINIGAME\\COWBELL_01.bnk")
SoundLoadBank("MINIGAME\\DnkTnk.bnk")
SoundLoadBank("MINIGAME\\HiStrkr.bnk")
SoundLoadBank("MINIGAME\\MARACAS_01.bnk")
SoundLoadBank("MINIGAME\\SNARE_01.bnk")
SoundLoadBank("MINIGAME\\TIMPANI_001.bnk")
SoundLoadBank("MINIGAME\\TIMPANI_002.bnk")
SoundLoadBank("MINIGAME\\TIMPANI_003.bnk")
SoundLoadBank("MINIGAME\\TIMPANI_004.bnk")
SoundLoadBank("MINIGAME\\TIMPANI_005.bnk")
SoundLoadBank("MINIGAME\\TIMPANI_01.bnk")
SoundLoadBank("MINIGAME\\XYLO_01a.bnk")
SoundLoadBank("MINIGAME\\XYLO_01b.bnk")
SoundLoadBank("MINIGAME\\XYLO_01c.bnk")
SoundLoadBank("MISSION\\1_10.bnk")
SoundLoadBank("Mission\\2_09.bnk")
SoundLoadBank("MISSION\\4_06.bnk")
SoundLoadBank("MISSION\\DdgBall.bnk")
SoundLoadBank("MISSIONFlameBag.bnk")
SoundLoadBank("OBJECTS\\FIRECAN.bnk")
SoundLoadBank("OBJECTS_3\\HrlyLeev.bnk")
SoundLoadBank("weapons\\Marbles.bnk")
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetString
add esp, 0x8
push eax
mov ecx, 0xCF5DC4
call 0x597FC0
test eax, eax
jl 0x11
push 0x1
push 0x1
push eax
mov ecx, 0xCF5DC4
call 0x59A3E0
xor eax, eax
ret
SoundLoopPlay2D("AsyAlrm", false)
SoundLoopPlay2D("AsyAlrm", true)
SoundLoopPlay2D("Balcony Rumble", false)
SoundLoopPlay2D("Balcony Rumble", true)
SoundLoopPlay2D("BsTargetTrack", false)
SoundLoopPlay2D("BsTargetTrack", true)
SoundLoopPlay2D("ChemDoorClose", false)
SoundLoopPlay2D("ChemDoorClose", true)
SoundLoopPlay2D("ChemDoorOpen", false)
SoundLoopPlay2D("ChemDoorOpen", true)
SoundLoopPlay2D("CowDanceMusic", false)
SoundLoopPlay2D("CowDanceMusic", true)
SoundLoopPlay2D("CrowdCheers", false)
SoundLoopPlay2D("CrowdCheers", true)
SoundLoopPlay2D("DivitClimb", false)
SoundLoopPlay2D("DivitClimb", true)
SoundLoopPlay2D("GunTargetTrack", false)
SoundLoopPlay2D("GunTargetTrack", true)
SoundLoopPlay2D("MonkeyTalkLoop", false)
SoundLoopPlay2D("MonkeyTalkLoop", true)
SoundLoopPlay2D("PanelLoop", false)
SoundLoopPlay2D("PanelLoop", true)
SoundLoopPlay2D("RoundHouseTurns", false)
SoundLoopPlay2D("RoundHouseTurns", true)
SoundLoopPlay2D("TimeWarningLOOP", false)
SoundLoopPlay2D("TimeWarningLOOP", true)
push ebx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetString
push 0x1
push esi
mov edi, eax
call LuaParam::GetBool
add esp, 0x10
push edi
mov ecx, 0xCF3DA0
mov bl, al
call 0x595B80
pop edi
pop esi
test bl, bl
pop ebx
mov ecx, 0xCF3DA0
jz 0xB
push eax
call 0x59C0A0
xor eax, eax
ret
call 0x59B860
xor eax, eax
ret
-- never used
sub esp, 0xC
fldz
push ebx
push esi
fst dword ptr [esp+0x8], st
mov esi, dword ptr [esp+0x18]
fst dword ptr [esp+0xC], st
push edi
fstp dword ptr [esp+0x14], st
push 0x0
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x14], st
push 0x1
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x20], st
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x2C], st
push 0x3
push esi
call LuaParam::GetString
add esp, 0x20
push eax
mov ecx, 0xCF3DA0
call 0x595B80
push esi
mov ebx, eax
mov edi, 0x1
call 0x73AEA0
add esp, 0x4
cmp eax, 0x4
jle 0x15
push 0x4
push esi
call LuaParam::GetString
push eax
call 0x59E170
add esp, 0xC
mov edi, eax
mov ecx, dword ptr [0xCF4274]
push 0x0
push edi
lea eax, ptr [esp+0x14]
push eax
push ebx
call 0x593010
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xC
ret
SoundLoopPlayOnPed(edgar, "ChemElevator", false)
SoundLoopPlayOnPed(edgar, "ChemElevator", true, "large")
push ecx
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x14]
push edi
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
push 0x1
push esi
mov ebp, eax
call LuaParam::GetString
push 0x2
push esi
mov edi, eax
call LuaParam::GetBool
add esp, 0x18
push edi
mov ecx, 0xCF3DA0
mov byte ptr [esp+0x17], al
call 0x595B80
push esi
mov ebx, eax
mov edi, 0x1
call 0x73AEA0
add esp, 0x4
cmp eax, 0x4
jnz 0x15
push 0x3
push esi
call LuaParam::GetString
push eax
call 0x59E170
add esp, 0xC
mov edi, eax
cmp byte ptr [esp+0x13], 0x0
mov ecx, dword ptr [0xCF4274]
jz 0x14
push 0x0
push edi
push ebx
push ebp
call 0x592F30
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push ebx
push 0x0
push ebp
call 0x592400
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
-- never used
push ecx
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x14]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetInt
push eax
push edi
call 0x44A660
push 0x2
push esi
mov ebp, eax
call LuaParam::GetString
push 0x3
push esi
mov edi, eax
call LuaParam::GetBool
add esp, 0x28
push edi
mov ecx, 0xCF3DA0
mov byte ptr [esp+0x17], al
call 0x595B80
push esi
mov ebx, eax
mov edi, 0x1
call 0x73AEA0
add esp, 0x4
cmp eax, 0x5
jnz 0x15
push 0x4
push esi
call LuaParam::GetString
push eax
call 0x59E170
add esp, 0xC
mov edi, eax
cmp byte ptr [esp+0x13], 0x0
mov ecx, dword ptr [0xCF4274]
jz 0x14
push 0x0
push edi
push ebx
push ebp
call 0x592F30
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
push ebx
push 0x0
push ebp
call 0x592400
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
SoundLoopStop3D("SprinklerA")
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetString
add esp, 0x8
push eax
mov ecx, 0xCF3DA0
call 0x595B80
mov ecx, dword ptr [0xCF4274]
push eax
push 0x0
push 0x0
call 0x592400
xor eax, eax
ret
SoundMakeEverythingCloser(false)
SoundMakeEverythingCloser(true)
mov eax, dword ptr [esp+0x4]
push 0x0
push 0x0
push eax
call LuaParam::GetBool ; optional
mov byte ptr [0xCF6C70], al
add esp, 0xC
xor eax, eax
ret
SoundMusicJimmyComeToTheOfficePA(false)
SoundMusicJimmyComeToTheOfficePA(true)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetBool
mov ecx, dword ptr [0xCF4374]
mov byte ptr [ecx+0x2], al
mov edx, dword ptr [0xCF4374]
mov byte ptr [edx+0x3], 0x0
mov eax, dword ptr [0xCF4374]
mov dword ptr [eax+0x8], 0x0
add esp, 0x8
xor eax, eax
ret
SoundPause()
mov al, 0x1
mov byte ptr [0xCF3DD7], al
mov byte ptr [0xCF6C71], al
xor eax, eax
ret
SoundPlay2D("Applause")
SoundPlay2D("BalconeyFall01")
SoundPlay2D("BalconeyFall02")
SoundPlay2D("BananaTreeHit")
SoundPlay2D("BannaTreeFall")
SoundPlay2D("BatDestroyed")
SoundPlay2D("BatEntrance")
SoundPlay2D("BatWaveFire")
SoundPlay2D("BatWaveHit")
SoundPlay2D("BeepCount")
SoundPlay2D("BellHit")
SoundPlay2D("BIGWINDOW_BRK")
SoundPlay2D("BikeRight")
SoundPlay2D("BikeWrong")
SoundPlay2D("BottleBreak")
SoundPlay2D("Bounce")
SoundPlay2D("Bs_FailBoos")
SoundPlay2D("Bs_SuccessCheer")
SoundPlay2D("BsBallBonus")
SoundPlay2D("BsBallHitTarget")
SoundPlay2D("BsWin")
SoundPlay2D("BUMP02")
SoundPlay2D("BUMP06")
SoundPlay2D("BUMP07")
SoundPlay2D("ButtonDown")
SoundPlay2D("ButtonUp")
SoundPlay2D("BuyItem")
SoundPlay2D("Car_DoorClose")
SoundPlay2D("Car_DoorOpen")
SoundPlay2D("ChemDoorClunk")
SoundPlay2D("ChemRight")
SoundPlay2D("ChemWrong")
SoundPlay2D("Clapping01")
SoundPlay2D("CountBeep")
SoundPlay2D("COWBELL_BOTH_H")
SoundPlay2D("COWBELL_LEFT_H")
SoundPlay2D("COWBELL_MISTAKE")
SoundPlay2D("COWBELL_RIGHT_H")
SoundPlay2D("Death")
SoundPlay2D("DogBark")
SoundPlay2D("EagleDestroyed")
SoundPlay2D("EagleEntrance")
SoundPlay2D("EagleFire")
SoundPlay2D("EagleHit")
SoundPlay2D("EatBad")
SoundPlay2D("EatGood")
SoundPlay2D("ElectricSparks")
SoundPlay2D("Erand")
SoundPlay2D("ESCDOORL_Open")
SoundPlay2D("Fatigued01")
SoundPlay2D("Fite_Bell")
SoundPlay2D("Go")
SoundPlay2D("GoBeep")
SoundPlay2D("Gong")
SoundPlay2D("GunPump")
SoundPlay2D("GunWin")
SoundPlay2D("Half Bell 2D")
SoundPlay2D("HarleyLeaves")
SoundPlay2D("HornetDestroyed")
SoundPlay2D("HornetEntrance")
SoundPlay2D("HornetStingFire")
SoundPlay2D("HornetStingHit")
SoundPlay2D("LiteBulbPop")
SoundPlay2D("LoseBuzzer")
SoundPlay2D("MARACAS_BOTH_H")
SoundPlay2D("MARACAS_LEFT_H")
SoundPlay2D("MARACAS_MISTAKE")
SoundPlay2D("MARACAS_RIGHT_H")
SoundPlay2D("MathCorrect")
SoundPlay2D("MathIncorrect")
SoundPlay2D("MEDWINDOW_BREAK")
SoundPlay2D("MISTAKE")
SoundPlay2D("MoneyIn")
SoundPlay2D("MonkeyEat")
SoundPlay2D("MonkeyHit")
SoundPlay2D("MotorDamge03")
SoundPlay2D("NavDwn")
SoundPlay2D("NavInvalid")
SoundPlay2D("NavUp")
SoundPlay2D("NIS_BIKECEM")
SoundPlay2D("NIS_BIKEDIRT")
SoundPlay2D("NutFire")
SoundPlay2D("PaperbagDrop")
SoundPlay2D("PaperbagPicup")
SoundPlay2D("PlateBreakLarge")
SoundPlay2D("PooFling")
SoundPlay2D("PortaCrash")
SoundPlay2D("RightBtn")
SoundPlay2D("ScaffoldCrash")
SoundPlay2D("School Bell 2D")
SoundPlay2D("SMLWINDOW_BREAK")
SoundPlay2D("SNARE_BOTH_H")
SoundPlay2D("SNARE_LEFT_H")
SoundPlay2D("SNARE_LEFT_S")
SoundPlay2D("SNARE_MISTAKE")
SoundPlay2D("SNARE_RIGHT_H")
SoundPlay2D("SNARE_RIGHT_S")
SoundPlay2D("SpecialHit")
SoundPlay2D("SpellRight")
SoundPlay2D("SpellWrong")
SoundPlay2D("SpiderBiteMonk")
SoundPlay2D("SpiderGetsHit")
SoundPlay2D("SpiderPopOff")
SoundPlay2D("Sprinklers")
SoundPlay2D("SquirrelDestroy")
SoundPlay2D("SumoLevelUp")
SoundPlay2D("TargetBonus")
SoundPlay2D("TargetHit")
SoundPlay2D("TimeTransition")
SoundPlay2D("TIMP_BOTH_H")
SoundPlay2D("TIMP_BOTH_S")
SoundPlay2D("TIMP_LEFT_H")
SoundPlay2D("TIMP_LEFT_S")
SoundPlay2D("TIMP_MISTAKE")
SoundPlay2D("TIMP_RIGHT_H")
SoundPlay2D("TIMP_RIGHT_S")
SoundPlay2D("TIMPANI_BOTH_H")
SoundPlay2D("TIMPANI_LEFT_H")
SoundPlay2D("TIMPANI_MISTAKE")
SoundPlay2D("TIMPANI_RIGHT_H")
SoundPlay2D("Toilet_Flush")
SoundPlay2D("TrainStop")
SoundPlay2D("Trans03")
SoundPlay2D("WrongBtn")
SoundPlay2D(sNote)
SoundPlay2D(tableGlassSound[math.random(1, table.getn(tableGlassSound))])
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetString
add esp, 0x8
push eax
mov ecx, 0xCF3DA0
call 0x595B80
fld1
push 0x0
push ecx
fstp dword ptr [esp], st
push 0x1
push 0x6
push 0x0
push 0x0
push 0x0
push 0x0
push 0x78
push 0x0
push 0x0
push 0x1
push 0x0
push eax
mov ecx, 0xCF3DA0
call 0x59B8A0
xor eax, eax
ret
SoundPlay3D(-769.089, 63.4668, 7.6697, "PipeSteam", "jumbo")
SoundPlay3D(352.26694, -240.08286, 2.4768896, "GasPourLoop", "Jumbo")
SoundPlay3D(352.26694, -240.08286, 2.4768896, "TrophyFire", "Jumbo")
SoundPlay3D(sx, sy, sz, sound.sfx)
SoundPlay3D(thumpX, thumpY, thumpZ, "InTble_HitLrg")
SoundPlay3D(x, y, z, "Chrybmb_Exp")
SoundPlay3D(x, y, z, "FlameOut")
SoundPlay3D(x, y, z, "ToiletExp")
SoundPlay3D(x, y, z, "WitchCauldren")
SoundPlay3D(x, y, z, szSound)
sub esp, 0xC
fldz
push esi
mov esi, dword ptr [esp+0x14]
fst dword ptr [esp+0x4], st
push edi
fst dword ptr [esp+0xC], st
push 0x0
fstp dword ptr [esp+0x14], st
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x10], st
push 0x1
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x1C], st
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x28], st
push 0x3
push esi
call LuaParam::GetString
add esp, 0x20
push eax
mov ecx, 0xCF3DA0
call 0x595B80
push esi
mov edi, eax
call 0x73AEA0
add esp, 0x4
cmp eax, 0x5
jnz 0x46
push 0x4
push esi
call LuaParam::GetString
push eax
call 0x59E170
fld1
add esp, 0xC
push 0x0
push ecx
fstp dword ptr [esp], st
push 0x1
push 0x6
push 0x0
push 0x0
push 0x0
push 0x0
push 0x78
push 0x0
push 0x0
push eax
lea eax, ptr [esp+0x38]
push eax
push edi
mov ecx, 0xCF3DA0
call 0x59B8A0
pop edi
xor eax, eax
pop esi
add esp, 0xC
ret
fld1
push 0x0
push ecx
fstp dword ptr [esp], st
push 0x1
push 0x6
push 0x0
push 0x0
push 0x0
push 0x0
push 0x78
push 0x0
push 0x0
push 0x1
lea ecx, ptr [esp+0x38]
push ecx
push edi
mov ecx, 0xCF3DA0
call 0x59B8A0
pop edi
xor eax, eax
pop esi
add esp, 0xC
ret
SoundPlay3DIgnoreFade(-493.3519, 315.53796, 32.145157, "Alarm Clock", "large")
SoundPlay3DIgnoreFade(-654.122, 250.885, 15.9965, "Alarm Clock", "large")
SoundPlay3DIgnoreFade(-699.269, 341.508, 4.02137, "Alarm Clock", "large")
SoundPlay3DIgnoreFade(-738.806, 38.3087, -1.3985, "Alarm Clock", "large")
SoundPlay3DIgnoreFade(-743.409, 355.714, 4.09885, "Alarm Clock", "large")
SoundPlay3DIgnoreFade(-765.543, 358.094, 7.2061, "Alarm Clock", "large")
sub esp, 0xC
fldz
push esi
mov esi, dword ptr [esp+0x14]
fst dword ptr [esp+0x4], st
push edi
fst dword ptr [esp+0xC], st
push 0x0
fstp dword ptr [esp+0x14], st
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x10], st
push 0x1
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x1C], st
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x28], st
push 0x3
push esi
call LuaParam::GetString
add esp, 0x20
push eax
mov ecx, 0xCF3DA0
call 0x595B80
push esi
mov edi, eax
call 0x73AEA0
add esp, 0x4
cmp eax, 0x5
jnz 0x46
push 0x4
push esi
call LuaParam::GetString
push eax
call 0x59E170
fld1
add esp, 0xC
push 0x0
push ecx
fstp dword ptr [esp], st
push 0x0
push 0x5
push 0x0
push 0x0
push 0x0
push 0x0
push 0x0
push 0x0
push 0x0
push eax
lea eax, ptr [esp+0x38]
push eax
push edi
mov ecx, 0xCF3DA0
call 0x59B8A0
pop edi
xor eax, eax
pop esi
add esp, 0xC
ret
fld1
push 0x0
push ecx
fstp dword ptr [esp], st
push 0x0
push 0x5
push 0x0
push 0x0
push 0x0
push 0x0
push 0x0
push 0x0
push 0x0
push 0x1
lea ecx, ptr [esp+0x38]
push ecx
push edi
mov ecx, 0xCF3DA0
call 0x59B8A0
pop edi
xor eax, eax
pop esi
add esp, 0xC
ret
SoundPlayAmbience("Fight_Group_Sml_Int.rsm", 0.5)
SoundPlayAmbience("FootballGameAmbience.rsm", 0.5)
SoundPlayAmbience("MS_5-09_CrowdNIS.rsm", 1)
push ecx
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x14]
push edi
push 0x0
push esi
call LuaParam::GetString
push 0x1
push esi
mov edi, eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x20], st
push 0x9C4
push 0x2
push esi
call LuaParam::GetInt ; optional
push 0x7D0
push 0x3
push esi
mov ebx, eax
call LuaParam::GetInt ; optional
push 0x1
push edi
mov ebp, eax
call 0x5A7D60
mov ecx, dword ptr [0xCF70D4]
add esp, 0x30
mov esi, eax
push esi
call 0x5A6DD0
fld st, dword ptr [esp+0x10]
push ebp
push ebx
push 0x6
push 0x1
push ecx
fstp dword ptr [esp], st
push eax
push esi
mov ecx, 0xCF4324
call 0x590470
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
SoundPlayAmbientSpeechEvent(a, "DEFEAT_INDIVIDUAL")
SoundPlayAmbientSpeechEvent(a, "VICTIMIZED")
SoundPlayAmbientSpeechEvent(buster, "WARNING_TRESPASSING")
SoundPlayAmbientSpeechEvent(enemy, "DISGUST")
SoundPlayAmbientSpeechEvent(enemy, "FIGHT_INITIATE")
SoundPlayAmbientSpeechEvent(GateNerd.id, "ALLY_ORDER_REJECT")
SoundPlayAmbientSpeechEvent(GateNerd.id, "BUMP_RUDE")
SoundPlayAmbientSpeechEvent(GateNerd.id, "CONGRATULATIONS")
SoundPlayAmbientSpeechEvent(GateNerd.id, "HELP_EXPLANATION")
SoundPlayAmbientSpeechEvent(gCarnie, "CARNIE_GAME_EXIT_LOSE")
SoundPlayAmbientSpeechEvent(gCarnie, "CARNIE_GAME_SELL")
SoundPlayAmbientSpeechEvent(gCarny, "CARNIE_GAME_EXIT_LOSE")
SoundPlayAmbientSpeechEvent(gCarny, "CARNIE_GAME_EXIT_WIN")
SoundPlayAmbientSpeechEvent(gCarny, "CARNIE_GAME_SELL")
SoundPlayAmbientSpeechEvent(gChaser01, "FIGHT_INITIATE")
SoundPlayAmbientSpeechEvent(gChaser02, "FIGHT_INITIATE")
SoundPlayAmbientSpeechEvent(gHallMon, "CHASE")
SoundPlayAmbientSpeechEvent(gHallMon, "STEALTH_CONFUSION")
SoundPlayAmbientSpeechEvent(gHallMon, "STEALTH_INVESTIGATING")
SoundPlayAmbientSpeechEvent(gHallMon, "STEALTH_PURSUIT")
SoundPlayAmbientSpeechEvent(gHallMon, "WARNING_COMING_TO_CATCH")
SoundPlayAmbientSpeechEvent(gPlayer, "PLAYER_GREET_FRIENDLY_DOG")
SoundPlayAmbientSpeechEvent(gPlayer, "PLAYER_TAUNT")
SoundPlayAmbientSpeechEvent(gTargetBoy, "FIGHT_SACKED")
SoundPlayAmbientSpeechEvent(gTargetBoy, "JEER")
SoundPlayAmbientSpeechEvent(gTargetBoy, "LAUGH_CRUEL")
SoundPlayAmbientSpeechEvent(gThad, "SCARED")
SoundPlayAmbientSpeechEvent(idConst.id, "INDIGNANT")
SoundPlayAmbientSpeechEvent(idEunice.id, "GIFT_REQUEST_GIRL")
SoundPlayAmbientSpeechEvent(idEunice.id, "THANKS_JIMMY")
SoundPlayAmbientSpeechEvent(idGord.id, "BIKE_STOLEN")
SoundPlayAmbientSpeechEvent(idNemesis, "THIS_WAY")
SoundPlayAmbientSpeechEvent(idPed, "TRASH_TALK_TEAM")
SoundPlayAmbientSpeechEvent(idPetey.id, "TAUNT_RESPONSE_CRY")
SoundPlayAmbientSpeechEvent(idPinky.id, "DISGUST")
SoundPlayAmbientSpeechEvent(kissGirl, "GREET")
SoundPlayAmbientSpeechEvent(pedAlgie.id, "BOISTEROUS")
SoundPlayAmbientSpeechEvent(pedAngieGym.id, "CHEERLEADING")
SoundPlayAmbientSpeechEvent(pedBeatrice.id, "FREAK_OUT_GIRL_DORM")
SoundPlayAmbientSpeechEvent(pedChad.id, "BOISTEROUS")
SoundPlayAmbientSpeechEvent(pedChad.id, "COMPLAIN")
SoundPlayAmbientSpeechEvent(pedID, "FIGHT_WTF")
SoundPlayAmbientSpeechEvent(pedId, strEvent)
SoundPlayAmbientSpeechEvent(pedLibrarian.id, "WARNING_TRESPASSING")
SoundPlayAmbientSpeechEvent(pedMandyGym.id, "CHEERLEADING")
SoundPlayAmbientSpeechEvent(pedPrefectKarl.id, "WARNING_COMING_TO_CATCH")
SoundPlayAmbientSpeechEvent(pedPrep.id, "TAUNT")
SoundPlayAmbientSpeechEvent(pedStrippedKid, "WHINE")
SoundPlayAmbientSpeechEvent(Petey, "HELP_EXPLANATION")
SoundPlayAmbientSpeechEvent(ScenarioPed, "BYE")
SoundPlayAmbientSpeechEvent(ScenarioPed, "CONVERSATION_GOSSIP")
SoundPlayAmbientSpeechEvent(ScenarioPed, "DISGUST")
SoundPlayAmbientSpeechEvent(ScenarioPed, "THANKS_JIMMY")
SoundPlayAmbientSpeechEvent(tblPrank[2].id, "HELP_EXPLANATION")
SoundPlayAmbientSpeechEvent(tblPrank[3].id, "HELP_EXPLANATION")
SoundPlayAmbientSpeechEvent(tblPrank[5].id, "HELP_EXPLANATION")
SoundPlayAmbientSpeechEvent(tblPrank[6].id, "HELP_EXPLANATION")
SoundPlayAmbientSpeechEvent(tblPrank[7].id, "HELP_EXPLANATION")
SoundPlayAmbientSpeechEvent(tblPrank[8].id, "HELP_EXPLANATION")
sub esp, 0x30
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x40]
push edi
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
mov ebp, eax
add esp, 0x8
test ebp, ebp
jz 0x91
push 0x1
push esi
call LuaParam::GetString
mov ebx, eax
mov eax, dword ptr [0xAE74E8]
push eax
push 0x91F114
xor esi, esi
call 0x85F5DF
add esp, 0x10
test eax, eax
jz 0x6A
mov edi, 0xAE74E8
lea esp, ptr [esp]
mov ecx, dword ptr [edi]
push ecx
push ebx
call 0x85F5DF
add esp, 0x8
test eax, eax
jz 0x2D
add esi, 0x1
mov edx, dword ptr [esi*4+0xAE74E8]
lea edi, ptr [esi*4+0xAE74E8]
push edx
push 0x91F114
call 0x85F5DF
add esp, 0x8
test eax, eax
jnz 0xFFFFFFCF
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
CLIENT
Plays an ambient speech event like SoundPlayAmbientSpeechEvent, but takes a specific index for the exact RSM to play. The RSM index is equal to one less than the line number of the desired audio file in audio/PLAYLIST/Speech.lst - 1.
SoundPlayInteractiveStream("MS_ActionLow.rsm", MUSIC_DEFAULT_VOLUME)
SoundPlayInteractiveStream("MS_ActionMid.rsm", 0.6, 500, 500)
SoundPlayInteractiveStream("MS_BikeChaseLow.rsm", 0.5)
SoundPlayInteractiveStream("MS_BikeFunLow.rsm", 0.6, 0, 1000)
SoundPlayInteractiveStream("MS_BikeFunLow.rsm", MUSIC_DEFAULT_VOLUME)
SoundPlayInteractiveStream("MS_Candidate.rsm", 0.6)
SoundPlayInteractiveStream("MS_CarnivalFunhouseAmbient.rsm", 0.3, 0, 1000)
SoundPlayInteractiveStream("MS_CarnivalFunhouseMaze.rsm", 0.45, 500, 500)
SoundPlayInteractiveStream("MS_CarnivalFunhouseMiner.rsm", 0.4)
SoundPlayInteractiveStream("MS_EpicConfrontationLow.rsm", 0.6)
SoundPlayInteractiveStream("MS_FightingPrepsLow.rsm", MUSIC_DEFAULT_VOLUME)
SoundPlayInteractiveStream("MS_FightMid02.rsm", 0.5, 250, 500)
SoundPlayInteractiveStream("MS_FootStealthLow.rsm", 0.5)
SoundPlayInteractiveStream("MS_FootStealthLow.rsm", MUSIC_DEFAULT_VOLUME)
SoundPlayInteractiveStream("MS_FriendshipAllyLow.rsm", MUSIC_DEFAULT_VOLUME)
SoundPlayInteractiveStream("MS_FunLow.rsm", 0.5, 0, 500)
SoundPlayInteractiveStream("MS_FunLow.rsm", MUSIC_DEFAULT_VOLUME)
SoundPlayInteractiveStream("MS_HalloweenLow.rsm", 0.5)
SoundPlayInteractiveStream("MS_InTroubleLow.rsm", 0.8)
SoundPlayInteractiveStream("MS_KidsPlay.rsm", RUDY_DEFAULT_VOLUME)
SoundPlayInteractiveStream("MS_MisbehavingHigh.rsm", 0.5, 0, 250)
SoundPlayInteractiveStream("MS_MisbehavingHigh.rsm", 0.5, 0, 500)
SoundPlayInteractiveStream("MS_MisbehavingHigh_NIS01.rsm", 0.5, 0, 250)
SoundPlayInteractiveStream("MS_MisbehavingHigh_NIS02.rsm", 0.5, 0, 250)
SoundPlayInteractiveStream("MS_MisbehavingHigh_NIS03.rsm", 0.5, 0, 250)
SoundPlayInteractiveStream("MS_MisbehavingLow.rsm", 0.4)
SoundPlayInteractiveStream("MS_MisbehavingLow.rsm", MUSIC_DEFAULT_VOLUME)
SoundPlayInteractiveStream("MS_MovieTixRomance.rsm", 0.5, 0, 1000)
SoundPlayInteractiveStream("MS_NerdBossBattle.rsm", MUSIC_DEFAULT_VOLUME)
SoundPlayInteractiveStream("MS_PunishmentDetention.rsm", MUSIC_DEFAULT_VOLUME)
SoundPlayInteractiveStream("MS_PunishmentDetention.rsm", MUSIC_DEFAULT_VOLUME, 500, 500)
SoundPlayInteractiveStream("MS_RomanceHigh.rsm", MUSIC_DEFAULT_VOLUME)
SoundPlayInteractiveStream("MS_RunningLow.rsm", 0.5)
SoundPlayInteractiveStream("MS_RunningLow02.rsm", 0.4)
SoundPlayInteractiveStream("MS_RunningLow02.rsm", 0.5, 1000, 1000)
SoundPlayInteractiveStream("MS_RunningLow02.rsm", 0.6)
SoundPlayInteractiveStream("MS_RunningLow02.rsm", MUSIC_DEFAULT_VOLUME)
SoundPlayInteractiveStream("MS_SearchingLow.rsm", 0.8)
SoundPlayInteractiveStream("MS_SearchingLow.rsm", MUSIC_DEFAULT_VOLUME)
SoundPlayInteractiveStream("MS_StealthLow.rsm", 0.35)
SoundPlayInteractiveStream("MS_StealthLow.rsm", MUSIC_DEFAULT_VOLUME)
SoundPlayInteractiveStream("MS_StreetFightLargeLow_Boxing.rsm", 0.6)
SoundPlayInteractiveStream("MS_TenementsLow.rsm", 0.6)
SoundPlayInteractiveStream("MS_TenementsLow.rsm", 0.6, 500, 500)
SoundPlayInteractiveStream("MS_WildstyleLow.rsm", MUSIC_DEFAULT_VOLUME)
SoundPlayInteractiveStream("MS_WIldstyleLow.rsm", MUSIC_DEFAULT_VOLUME)
SoundPlayInteractiveStream("MS_XmasBellsRudyHigh.rsm", 0.9, 0, 500)
SoundPlayInteractiveStream("MS_XmasBellsRudyLow.rsm", 0.9, 0, 500)
SoundPlayInteractiveStream("MS_XmasComeRudyLow.rsm", 1, 0, 500)
SoundPlayInteractiveStream("MS_XmasJingleMiracleLow.rsm", 0.9, 0, 500)
push ecx
push ebx
push esi
mov esi, dword ptr [esp+0x10]
push edi
push 0x0
push esi
call LuaParam::GetString
push 0x1
push esi
mov edi, eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x1C], st
push 0x9C4
push 0x2
push esi
call LuaParam::GetInt ; optional
push 0x7D0
push 0x3
push esi
mov ebx, eax
call LuaParam::GetInt ; optional
fld st, dword ptr [esp+0x34]
add esp, 0x28
push 0x0
push eax
push ebx
push ecx
fstp dword ptr [esp], st
push 0x1
push edi
call 0x5A7D60
add esp, 0x8
push eax
call 0x591900
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
SoundPlayInteractiveStreamLocked("MS_ActionHigh.rsm", 0.7, 500, 500)
SoundPlayInteractiveStreamLocked("MS_ActionHigh.rsm", MUSIC_DEFAULT_VOLUME)
SoundPlayInteractiveStreamLocked("MS_BikeActionHigh.rsm", MUSIC_DEFAULT_VOLUME, 500, 500)
SoundPlayInteractiveStreamLocked("MS_BikeActionMid.rsm", MUSIC_DEFAULT_VOLUME)
SoundPlayInteractiveStreamLocked("MS_BikeActionMid.rsm", MUSIC_DEFAULT_VOLUME, 500, 500)
SoundPlayInteractiveStreamLocked("MS_BikeChaseHigh.rsm", 0.6)
SoundPlayInteractiveStreamLocked("MS_BikeFastHigh.rsm", 0.8)
SoundPlayInteractiveStreamLocked("MS_DestructionVandalismHigh.rsm", 0.7, 500, 500)
SoundPlayInteractiveStreamLocked("MS_DestructionVandalismMid.rsm", 0.6, 500, 500)
SoundPlayInteractiveStreamLocked("MS_DestructionVandalismMid.rsm", MUSIC_DEFAULT_VOLUME, 500, 500)
SoundPlayInteractiveStreamLocked("MS_EpicConfrontationHigh.rsm", 0.6, 0, 500)
SoundPlayInteractiveStreamLocked("MS_EpicConfrontationHigh.rsm", 0.7, 500, 500)
SoundPlayInteractiveStreamLocked("MS_EpicConfrontationHighPart2.rsm", 0.6, 0, 500)
SoundPlayInteractiveStreamLocked("MS_EpicConfrontationLow.rsm", MUSIC_DEFAULT_VOLUME, 500, 500)
SoundPlayInteractiveStreamLocked("MS_FunHigh.rsm", MUSIC_DEFAULT_VOLUME)
SoundPlayInteractiveStreamLocked("MS_SearchingHigh.rsm", 0.6)
SoundPlayInteractiveStreamLocked("MS_SearchingLow.rsm", MUSIC_DEFAULT_VOLUME)
SoundPlayInteractiveStreamLocked("MS_StealthHigh.rsm", 0.35)
SoundPlayInteractiveStreamLocked("MS_StealthLow.rsm", 0.35)
SoundPlayInteractiveStreamLocked("MS_StreetFightLargeHigh_Boxing.rsm", 0.8)
SoundPlayInteractiveStreamLocked("MS_StreetFightLargeHigh_Boxing.rsm", 0.85)
SoundPlayInteractiveStreamLocked("MS_StreetFightLargeLow_Boxing.rsm", 0.8)
SoundPlayInteractiveStreamLocked("MS_StreetFightLargeLow_Boxing.rsm", 0.85)
SoundPlayInteractiveStreamLocked("MS_TenementsHigh.rsm", 0.5, 500, 500)
push ecx
push ebx
push esi
mov esi, dword ptr [esp+0x10]
push edi
push 0x0
push esi
call LuaParam::GetString
push 0x1
push esi
mov edi, eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x1C], st
push 0x9C4
push 0x2
push esi
call LuaParam::GetInt ; optional
push 0x7D0
push 0x3
push esi
mov ebx, eax
call LuaParam::GetInt ; optional
fld st, dword ptr [esp+0x34]
add esp, 0x28
push 0x1
push eax
push ebx
push ecx
fstp dword ptr [esp], st
push 0x1
push edi
call 0x5A7D60
add esp, 0x8
push eax
call 0x591900
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
SoundPlayMissionEndMusic(false, 0)
SoundPlayMissionEndMusic(false, 10)
SoundPlayMissionEndMusic(false, 4)
SoundPlayMissionEndMusic(false, 6)
SoundPlayMissionEndMusic(false, 7)
SoundPlayMissionEndMusic(false, 8)
SoundPlayMissionEndMusic(false, 9)
SoundPlayMissionEndMusic(false, gMusicType)
SoundPlayMissionEndMusic(true, 0)
SoundPlayMissionEndMusic(true, 10)
SoundPlayMissionEndMusic(true, 4)
SoundPlayMissionEndMusic(true, 7)
SoundPlayMissionEndMusic(true, 8)
SoundPlayMissionEndMusic(true, 9)
SoundPlayMissionEndMusic(true, gMusicType)
sub esp, 0x34
push esi
push edi
mov edi, dword ptr [esp+0x40]
push 0x1
push edi
call LuaParam::GetInt
push 0x0
push edi
mov esi, eax
call LuaParam::GetBool
add esp, 0x10
test al, al
jz 0xE9
cmp esi, 0xA
jnbe 0x1DF
jmp dword ptr [esi*4+0x5D4A7C]
mov edx, dword ptr [0x929F20]
mov eax, dword ptr [0x929F18]
mov ecx, dword ptr [0x929F1C]
mov dword ptr [esp+0x10], edx
mov dl, byte ptr [0x929F2C]
mov dword ptr [esp+0x8], eax
mov eax, dword ptr [0x929F24]
mov dword ptr [esp+0xC], ecx
mov ecx, dword ptr [0x929F28]
mov byte ptr [esp+0x1C], dl
jmp 0x198
mov ecx, 0x5
mov esi, 0x929F00
lea edi, ptr [esp+0x8]
rep movsd dword ptr [edi], dword ptr [esi]
movsw word ptr [edi], word ptr [esi]
movsb byte ptr [edi], byte ptr [esi]
jmp 0x188
mov ecx, 0x6
mov esi, 0x929EE4
lea edi, ptr [esp+0x8]
rep movsd dword ptr [edi], dword ptr [esi]
movsw word ptr [edi], word ptr [esi]
jmp 0x171
mov ecx, dword ptr [0x929ED4]
mov edx, dword ptr [0x929ED8]
mov eax, dword ptr [0x929ED0]
mov dword ptr [esp+0xC], ecx
mov cx, word ptr [0x929EE0]
mov dword ptr [esp+0x10], edx
mov dl, byte ptr [0x929EE2]
mov dword ptr [esp+0x8], eax
mov eax, dword ptr [0x929EDC]
mov word ptr [esp+0x18], cx
mov byte ptr [esp+0x1A], dl
jmp 0x130
mov ecx, 0x6
mov esi, 0x929EB4
lea edi, ptr [esp+0x8]
rep movsd dword ptr [edi], dword ptr [esi]
movsw word ptr [edi], word ptr [esi]
movsb byte ptr [edi], byte ptr [esi]
jmp 0x11C
mov ecx, 0x6
mov esi, 0x929E98
lea edi, ptr [esp+0x8]
rep movsd dword ptr [edi], dword ptr [esi]
movsw word ptr [edi], word ptr [esi]
movsb byte ptr [edi], byte ptr [esi]
jmp 0x104
cmp esi, 0xA
jnbe 0xFC
jmp dword ptr [esi*4+0x5D4AA8]
mov edx, dword ptr [0x929E88]
mov eax, dword ptr [0x929E80]
mov ecx, dword ptr [0x929E84]
mov dword ptr [esp+0x10], edx
mov dl, byte ptr [0x929E94]
mov dword ptr [esp+0x8], eax
mov eax, dword ptr [0x929E8C]
mov dword ptr [esp+0xC], ecx
mov ecx, dword ptr [0x929E90]
mov byte ptr [esp+0x1C], dl
jmp 0xB5
mov ecx, 0x5
mov esi, 0x929E68
lea edi, ptr [esp+0x8]
rep movsd dword ptr [edi], dword ptr [esi]
movsw word ptr [edi], word ptr [esi]
movsb byte ptr [edi], byte ptr [esi]
jmp 0xA5
mov ecx, 0x6
mov esi, 0x929E4C
lea edi, ptr [esp+0x8]
rep movsd dword ptr [edi], dword ptr [esi]
movsw word ptr [edi], word ptr [esi]
jmp 0x8E
mov ecx, dword ptr [0x929E3C]
mov edx, dword ptr [0x929E40]
mov eax, dword ptr [0x929E38]
mov dword ptr [esp+0xC], ecx
mov cx, word ptr [0x929E48]
mov dword ptr [esp+0x10], edx
mov dl, byte ptr [0x929E4A]
mov dword ptr [esp+0x8], eax
mov eax, dword ptr [0x929E44]
mov word ptr [esp+0x18], cx
mov byte ptr [esp+0x1A], dl
jmp 0x4D
mov ecx, 0x6
mov esi, 0x929E1C
lea edi, ptr [esp+0x8]
rep movsd dword ptr [edi], dword ptr [esi]
movsw word ptr [edi], word ptr [esi]
movsb byte ptr [edi], byte ptr [esi]
jmp 0x3C
mov edx, dword ptr [0x929E0C]
mov eax, dword ptr [0x929E04]
mov ecx, dword ptr [0x929E08]
mov dword ptr [esp+0x10], edx
mov edx, dword ptr [0x929E18]
mov dword ptr [esp+0x8], eax
mov eax, dword ptr [0x929E10]
mov dword ptr [esp+0xC], ecx
mov ecx, dword ptr [0x929E14]
mov dword ptr [esp+0x1C], edx
mov dword ptr [esp+0x18], ecx
mov dword ptr [esp+0x14], eax
fld1
push 0x7
push 0x0
push ecx
lea eax, ptr [esp+0x14]
fstp dword ptr [esp], st
push eax
mov ecx, 0xCF42D4
call 0x591330
pop edi
xor eax, eax
pop esi
add esp, 0x34
ret
SoundPlayPreloadedSpeech()
mov byte ptr [0xCFB3BC], 0x1
xor eax, eax
ret
SoundPlayPreloadedStream()
push 0x0
mov ecx, 0xCF42D4
call 0x5905E0
xor eax, eax
ret
--DebugPrint("SoundPlayScriptedSpeechEvent had error: " .. soundret)
--print(">>>[RUI]", "T3_PerimeterGreasesTaunt SoundPlayScriptedSpeechEvent(greaser.id, FIGHTING, 0)")
sound_retval = SoundPlayScriptedSpeechEvent(event.mSpeechPed, event.mSpeechEvent, event.mParam, event.vol or "large")
SoundPlayScriptedSpeechEvent(a, "M_4_04", 51, "large")
SoundPlayScriptedSpeechEvent(a, "M_5_04", 16, "large")
SoundPlayScriptedSpeechEvent(a, "M_5_04", 18, "large")
SoundPlayScriptedSpeechEvent(a, "M_5_04", 7, "large")
SoundPlayScriptedSpeechEvent(algie, "M_4_G4", 22, "large")
SoundPlayScriptedSpeechEvent(algie, "TAUNT_RESPONSE_CRY", 0, "large")
SoundPlayScriptedSpeechEvent(algie, "VICTIMIZED", 0, "large")
SoundPlayScriptedSpeechEvent(bGreaserBoss, "M_6_03", 34, "large", true)
SoundPlayScriptedSpeechEvent(bioTeacher, "ClassBiology", 10, "large", true)
SoundPlayScriptedSpeechEvent(bioTeacher, "ClassBiology", 11, "large", true)
SoundPlayScriptedSpeechEvent(bioTeacher, "ClassBiology", 12, "large", true)
SoundPlayScriptedSpeechEvent(bioTeacher, "ClassBiology", 6, "large", true)
SoundPlayScriptedSpeechEvent(bioTeacher, "ClassBiology", nCurrentClass + 5, "large", true)
SoundPlayScriptedSpeechEvent(bioTeacher, "ClassBiology", nCurrentClass, "large", true)
SoundPlayScriptedSpeechEvent(blueTeam[math.random(1, 4)], "DEFEAT_TEAM", 0, "large")
SoundPlayScriptedSpeechEvent(blueTeam[math.random(1, 4)], "VICTORY_TEAM", 0, "large")
SoundPlayScriptedSpeechEvent(bPreppyBoss, "M_6_03", 46, "large", true)
SoundPlayScriptedSpeechEvent(Bum, "M_1_07", 28, "large")
SoundPlayScriptedSpeechEvent(burton, "WRESTLING", 10, "jumbo")
SoundPlayScriptedSpeechEvent(burton, "WRESTLING", 11, "jumbo")
SoundPlayScriptedSpeechEvent(burton, "WRESTLING", 12, "jumbo")
SoundPlayScriptedSpeechEvent(burton, "WRESTLING", 13, "jumbo")
SoundPlayScriptedSpeechEvent(burton, "WRESTLING", 14, "jumbo")
SoundPlayScriptedSpeechEvent(burton, "WRESTLING", 4, "jumbo")
SoundPlayScriptedSpeechEvent(burton, "WRESTLING", 7, "jumbo")
SoundPlayScriptedSpeechEvent(burton, "WRESTLING", 9, "jumbo")
SoundPlayScriptedSpeechEvent(buster, "M_1_04", 39, "generic", false, true)
SoundPlayScriptedSpeechEvent(camcoach, gTextQueue[1].textSpeechEvent, gTextQueue[1].textSpeechIndex, "speech", true)
SoundPlayScriptedSpeechEvent(chemTeach, "CHEM", 1, "jumbo", true)
SoundPlayScriptedSpeechEvent(chemTeach, "CHEM", 10, "jumbo", true)
SoundPlayScriptedSpeechEvent(chemTeach, "CHEM", 11, "jumbo", true)
SoundPlayScriptedSpeechEvent(chemTeach, "CHEM", 12, "jumbo", true)
SoundPlayScriptedSpeechEvent(chemTeach, "CHEM", 13, "jumbo", true)
SoundPlayScriptedSpeechEvent(chemTeach, "CHEM", 14, "supersize", true)
SoundPlayScriptedSpeechEvent(chemTeach, "CHEM", 15, "jumbo", true)
SoundPlayScriptedSpeechEvent(chemTeach, "CHEM", 2, "jumbo", true)
SoundPlayScriptedSpeechEvent(chemTeach, "CHEM", 3, "jumbo", true)
SoundPlayScriptedSpeechEvent(chemTeach, "CHEM", 6, "jumbo", true)
SoundPlayScriptedSpeechEvent(chemTeach, "CHEM", 7, "jumbo", true)
SoundPlayScriptedSpeechEvent(chemTeach, "CHEM", 9, "jumbo", true)
SoundPlayScriptedSpeechEvent(choice, "SEE_SOMETHING_CRAP", 0, "medium", false)
SoundPlayScriptedSpeechEvent(clint, "M_3_R07", 10, "large")
SoundPlayScriptedSpeechEvent(clint, "M_3_R07", 11, "large")
SoundPlayScriptedSpeechEvent(clint, "M_3_R07", 12, "large")
SoundPlayScriptedSpeechEvent(closestElf1, "M_3_01B", 16, "large")
SoundPlayScriptedSpeechEvent(CoachBurton.id, "M_4_06", 30, "supersize")
SoundPlayScriptedSpeechEvent(Crazy01, "M_3_S11", 21, "genric", false, false)
SoundPlayScriptedSpeechEvent(Crazy02, "M_3_S11", 21, "genric", false, false)
SoundPlayScriptedSpeechEvent(currentPed.id, "M_4_06", gSpeechTable[currentPed.speech].badDance, "supersize")
SoundPlayScriptedSpeechEvent(currentPed.id, "M_4_06", gSpeechTable[currentPed.speech].goodDance, "supersize")
SoundPlayScriptedSpeechEvent(defender, "FIGHT_BEATEN", 0, "jumbo")
SoundPlayScriptedSpeechEvent(Earnest, "M_1_09", 36, nEarnestVolume, true)
SoundPlayScriptedSpeechEvent(Earnest, "M_1_09", 45, nEarnestVolume, true)
SoundPlayScriptedSpeechEvent(Earnest, "M_1_09", 48, nEarnestVolume, true)
SoundPlayScriptedSpeechEvent(Earnest, "M_1_09", 51, nEarnestVolume, true)
SoundPlayScriptedSpeechEvent(Earnest, "M_1_09", HitResponseTable[Choice].line, nEarnestVolume, true)
SoundPlayScriptedSpeechEvent(Earnest, "M_1_09", SpeechTable[CurrentLine].line, nEarnestVolume, true)
SoundPlayScriptedSpeechEvent(edgar, "M_5_B", 1, "jumbo")
SoundPlayScriptedSpeechEvent(edgar, "M_5_B", 2, "jumbo")
SoundPlayScriptedSpeechEvent(edgar, "M_5_B", 21, "supersize")
SoundPlayScriptedSpeechEvent(edgar, "M_5_B", 22, "jumbo")
SoundPlayScriptedSpeechEvent(edgar, "M_5_B", 23)
SoundPlayScriptedSpeechEvent(edgar, "M_5_B", 24, "large")
SoundPlayScriptedSpeechEvent(edgar, "M_5_B", 4, "jumbo")
SoundPlayScriptedSpeechEvent(edna, "M_2_S05", 18, "large")
SoundPlayScriptedSpeechEvent(elf_01, "M_3_01B", 15, "large")
SoundPlayScriptedSpeechEvent(elf_02, "M_3_01B", 19, "large")
SoundPlayScriptedSpeechEvent(elf_03, "M_3_01B", 14, "large")
SoundPlayScriptedSpeechEvent(endPed, "VICTORY_TEAM", 0, "jumbo")
SoundPlayScriptedSpeechEvent(entry.handle, event, comment, nJockVolume)
SoundPlayScriptedSpeechEvent(entry.id, "M_4_03", event, "large")
SoundPlayScriptedSpeechEvent(fatty, "GIFT_RECEIVE", 0, "jumbo", false)
SoundPlayScriptedSpeechEvent(fatty, "M_2_S05", 13, "jumbo", false, false)
SoundPlayScriptedSpeechEvent(fatty, "M_2_S05", 15, "jumbo", false)
SoundPlayScriptedSpeechEvent(fCasey, "M_5_04", 12, "large")
SoundPlayScriptedSpeechEvent(fCasey, "M_5_04", 14, "large")
SoundPlayScriptedSpeechEvent(fCasey, "M_5_04", 8, "large")
SoundPlayScriptedSpeechEvent(fCasey, "M_5_04", 9, "large")
SoundPlayScriptedSpeechEvent(frSkeletonMan, "FREAK_SHOW", 5)
SoundPlayScriptedSpeechEvent(gAlgie, "ALLY_ABOUT_TO_LEAVE", 0, "jumbo", true)
SoundPlayScriptedSpeechEvent(gAlgie, "BUMP_RUDE", 0, "jumbo", true)
SoundPlayScriptedSpeechEvent(gAlgie, "CONGRATULATIONS", 0, "jumbo", true)
SoundPlayScriptedSpeechEvent(gAlgie, "LAUGH_FRIENDLY", 0, "jumbo", true)
SoundPlayScriptedSpeechEvent(gAlgie, "SEE_SOMETHING_COOL", 0, "jumbo", true)
SoundPlayScriptedSpeechEvent(gAlgie, "SEE_SOMETHING_CRAP", 0, "jumbo", true)
SoundPlayScriptedSpeechEvent(galloway, "ENGLISH", 10, "large", true)
SoundPlayScriptedSpeechEvent(galloway, "ENGLISH", 11, "large", true)
SoundPlayScriptedSpeechEvent(galloway, "ENGLISH", 12, "large", true)
SoundPlayScriptedSpeechEvent(galloway, "ENGLISH", 13, "large", true)
SoundPlayScriptedSpeechEvent(galloway, "ENGLISH", 14, "large", true)
SoundPlayScriptedSpeechEvent(galloway, "ENGLISH", 9, "large", true)
SoundPlayScriptedSpeechEvent(gAngryJock01, "M_5_04", 33, "large")
SoundPlayScriptedSpeechEvent(gAngryJock02, "M_5_04", 35, "large")
SoundPlayScriptedSpeechEvent(gBlockAOrderly02, "M_5_03", 2, "genric", false, false)
SoundPlayScriptedSpeechEvent(gBlockAOrderly02, "M_5_03", 4, "genric", false, false)
SoundPlayScriptedSpeechEvent(gBucky, "M_2_S04", 24, "large")
SoundPlayScriptedSpeechEvent(gBucky, "M_2_S04", 26, "large")
SoundPlayScriptedSpeechEvent(gBucky, "M_2_S04", 28, "large")
SoundPlayScriptedSpeechEvent(gBucky, "M_2_S04", 33, "large")
SoundPlayScriptedSpeechEvent(gBucky, "M_2_S04", 34, "large")
SoundPlayScriptedSpeechEvent(gBully02, "FIGHT_WATCH", 0, "large")
SoundPlayScriptedSpeechEvent(gBully03, "FIGHT_WATCH", 0, "large")
SoundPlayScriptedSpeechEvent(gBully03, "M_1_02", 34, "large")
SoundPlayScriptedSpeechEvent(gCarnie, "HISTRIKE", 1, "jumbo")
SoundPlayScriptedSpeechEvent(gCarnie, "HISTRIKE", 2, "jumbo")
SoundPlayScriptedSpeechEvent(gCarnie, "HISTRIKE", 20, "jumbo")
SoundPlayScriptedSpeechEvent(gCarnie, "HISTRIKE", 25, "jumbo")
SoundPlayScriptedSpeechEvent(gCarnie, "HISTRIKE", 3, "jumbo")
SoundPlayScriptedSpeechEvent(gCarnie, "HISTRIKE", 30, "jumbo")
SoundPlayScriptedSpeechEvent(gCarnie, "HISTRIKE", 4, "jumbo")
SoundPlayScriptedSpeechEvent(gCarnie, "HISTRIKE", 40, "jumbo")
SoundPlayScriptedSpeechEvent(gCarnie, "HISTRIKE", 50, "jumbo")
SoundPlayScriptedSpeechEvent(gCarnie, "HISTRIKE", 60, "jumbo")
SoundPlayScriptedSpeechEvent(gCarnie, "HISTRIKE", 70, "jumbo")
SoundPlayScriptedSpeechEvent(gCarnie, "HISTRIKE", 80, "jumbo")
SoundPlayScriptedSpeechEvent(gCarnie, "HISTRIKE", 90, "jumbo")
SoundPlayScriptedSpeechEvent(gChaseCarDriver, "BUSTING", 0, "large")
SoundPlayScriptedSpeechEvent(gClerk, "BASEBALL", 11, "large")
SoundPlayScriptedSpeechEvent(gClerk, "BASEBALL", 14, "large")
SoundPlayScriptedSpeechEvent(gClerk, "BASEBALL", 19, "jumbo")
SoundPlayScriptedSpeechEvent(gClerk, "BASEBALL", i, "jumbo")
SoundPlayScriptedSpeechEvent(gClerk, "BYE", 0, "jumbo")
SoundPlayScriptedSpeechEvent(gClerk, "CARNIE_TICKETS_NOT_ENOUGH", 0, "jumbo")
SoundPlayScriptedSpeechEvent(gClerk, "CARNIE_TICKETS_TRADE", 0, "jumbo")
SoundPlayScriptedSpeechEvent(gClerk, "GREET", 0, "jumbo")
SoundPlayScriptedSpeechEvent(gClerk, "M_2_03", 6, "jumbo")
SoundPlayScriptedSpeechEvent(gClerk, "STORE_BYE_BUY", 0, "jumbo")
SoundPlayScriptedSpeechEvent(gClerk, "STORE_BYE_NOBUY", 0, "jumbo")
SoundPlayScriptedSpeechEvent(gClerk, "STORE_VIOLENCE_RESPONSE", 0, "jumbo")
SoundPlayScriptedSpeechEvent(gClerk, "STORE_WELCOME", 0, "jumbo")
SoundPlayScriptedSpeechEvent(gControlOrderly, "M_5_03", 18, "genric", false, false)
SoundPlayScriptedSpeechEvent(gCop1, "STEALTH_TARGET_LOST", 0, "jumbo")
SoundPlayScriptedSpeechEvent(gCops[2], "CHASE", 0, "supersize")
SoundPlayScriptedSpeechEvent(gCrazy01, "M_3_S11", 21, "genric", false, false)
SoundPlayScriptedSpeechEvent(gCrazy01, "M_3_S11", 60, "genric", false, false)
SoundPlayScriptedSpeechEvent(gCSBully, "M_1_03", 3, "jumbo")
SoundPlayScriptedSpeechEvent(gDavis, "M_1_03", 11, "supersize")
SoundPlayScriptedSpeechEvent(gDavis, "M_1_03", 12, "jumbo")
SoundPlayScriptedSpeechEvent(gDavis, "M_1_03", 14, "jumbo")
SoundPlayScriptedSpeechEvent(gDavis, "M_1_03", 21, "jumbo")
SoundPlayScriptedSpeechEvent(gDavis, "M_1_03", 22, "jumbo")
SoundPlayScriptedSpeechEvent(gDavis, "M_1_03", 23, "jumbo")
SoundPlayScriptedSpeechEvent(gDavis, "M_1_03", 32, "jumbo")
SoundPlayScriptedSpeechEvent(gDavis, "M_1_03", 33, "jumbo")
SoundPlayScriptedSpeechEvent(gDavis, "M_1_03", 41, "jumbo")
SoundPlayScriptedSpeechEvent(gDavis, "M_1_03", 42, "jumbo")
SoundPlayScriptedSpeechEvent(gDavis, "M_1_03", 5, "jumbo")
SoundPlayScriptedSpeechEvent(gDefenders[1], "BIKE_SEE_TRICK_FAIL", 0, "jumbo")
SoundPlayScriptedSpeechEvent(gDefenders[1], "FIGHT_INITIATE", 0, "jumbo")
SoundPlayScriptedSpeechEvent(gDefenders[1], "M_4_B2", 12, "jumbo", true)
SoundPlayScriptedSpeechEvent(gDo10[2], "GREET_HOT_GIRL", 0, "large")
SoundPlayScriptedSpeechEvent(gDo10[4], "GREET_HOT_GIRL", 0, "large")
SoundPlayScriptedSpeechEvent(gEdgar, "LAUGH_CRUEL", 0, "supersize")
SoundPlayScriptedSpeechEvent(gEdgar, "LAUGH_FRIENDLY", 0, "large")
SoundPlayScriptedSpeechEvent(gEdgar, "M_3_S08", 0, "supersize")
SoundPlayScriptedSpeechEvent(gEdna, "CONVERSATION_GOSSIP", 0, "large")
SoundPlayScriptedSpeechEvent(gEdna, "CONVERSATION_GOSSIP_CHAPTER_1", 0, "large")
SoundPlayScriptedSpeechEvent(gEdna, "M_4_06", 8, "large")
SoundPlayScriptedSpeechEvent(gFatty, "ALLY_ABOUT_TO_LEAVE", 0, "jumbo", true)
SoundPlayScriptedSpeechEvent(gFatty, "BIKE_SEE_TRICK", 0, "jumbo", true)
SoundPlayScriptedSpeechEvent(gFatty, "BUMP_RUDE", 0, "jumbo", true)
SoundPlayScriptedSpeechEvent(gFatty, "CONGRATULATIONS", 0, "jumbo", true)
SoundPlayScriptedSpeechEvent(gFatty, "DISGUST", 0, "jumbo", true)
SoundPlayScriptedSpeechEvent(gFatty, "LAUGH_FRIENDLY", 0, "jumbo", true)
SoundPlayScriptedSpeechEvent(gFatty, "M_2_S04", 61, "supersize")
SoundPlayScriptedSpeechEvent(gFatty, "M_4_02", 12, "genric", false, false)
SoundPlayScriptedSpeechEvent(gFatty, "M_4_02", 2, "genric", false, false)
SoundPlayScriptedSpeechEvent(gFatty, "M_4_02", 2, "genric", false, true)
SoundPlayScriptedSpeechEvent(gFatty, "M_4_02", 26, "genric", false, false)
SoundPlayScriptedSpeechEvent(gFatty, "SEE_SOMETHING_COOL", 0, "jumbo", true)
SoundPlayScriptedSpeechEvent(gFatty, "SEE_SOMETHING_CRAP", 0, "jumbo", true)
SoundPlayScriptedSpeechEvent(gFenwick, "M_5_03", 39, "genric", false, false)
SoundPlayScriptedSpeechEvent(gGalloway, "LAUGH_CRUEL", 0, "large")
SoundPlayScriptedSpeechEvent(gGary, "M_1_02A", 72, "large")
SoundPlayScriptedSpeechEvent(gGary, "M_1_10", 13, "supersize")
SoundPlayScriptedSpeechEvent(gGary, "M_1_10", 19, "supersize")
SoundPlayScriptedSpeechEvent(gGary, "M_1_10", 21, "supersize")
SoundPlayScriptedSpeechEvent(gGary, "M_1_10", 23, "supersize")
SoundPlayScriptedSpeechEvent(gGary, "M_1_10", 24, "supersize")
SoundPlayScriptedSpeechEvent(gGary, "M_1_10", 28, "supersize")
SoundPlayScriptedSpeechEvent(gGary, "M_1_10", 33, "supersize")
SoundPlayScriptedSpeechEvent(gGary, "M_1_10", 37, "jumbo")
SoundPlayScriptedSpeechEvent(gGary, "M_1_10", 39, "supersize")
SoundPlayScriptedSpeechEvent(gGary, "M_1_10", 41, "supersize")
SoundPlayScriptedSpeechEvent(gGary, "M_1_10", 44, "supersize")
SoundPlayScriptedSpeechEvent(gGary, "M_1_10", 47, "supersize")
SoundPlayScriptedSpeechEvent(gGary, "M_1_10", 49, "supersize")
SoundPlayScriptedSpeechEvent(gGary, "M_1_10", event, "supersize")
SoundPlayScriptedSpeechEvent(gGary, "M_1_10", q, "supersize")
SoundPlayScriptedSpeechEvent(gGary, "M_6_03", 64, "jumbo")
SoundPlayScriptedSpeechEvent(gGary, "M_6_03", 67, "jumbo", true)
SoundPlayScriptedSpeechEvent(gGary, "M_6_B", 1, "large", false)
SoundPlayScriptedSpeechEvent(gGary, "M_6_B", 10, "large", false)
SoundPlayScriptedSpeechEvent(gGary, "M_6_B", 11, "large", false)
SoundPlayScriptedSpeechEvent(gGary, "M_6_B", 12, "large", false)
SoundPlayScriptedSpeechEvent(gGary, "M_6_B", 13, "large", false)
SoundPlayScriptedSpeechEvent(gGary, "M_6_B", 15, "large", false)
SoundPlayScriptedSpeechEvent(gGary, "M_6_B", 2, "large", false)
SoundPlayScriptedSpeechEvent(gGary, "M_6_B", 20, "large", true, true)
SoundPlayScriptedSpeechEvent(gGary, "M_6_B", 22, "large", false, true)
SoundPlayScriptedSpeechEvent(gGary, "M_6_B", 4, "large", false)
SoundPlayScriptedSpeechEvent(gGary, "M_6_B", 6, "large", false)
SoundPlayScriptedSpeechEvent(gGary, "M_6_B", 8, "large", false)
SoundPlayScriptedSpeechEvent(gGord, "M_2_03", 16, "large")
SoundPlayScriptedSpeechEvent(gGreaser1, "M_3_S10", 4, "jumbo")
SoundPlayScriptedSpeechEvent(gGreaser1, "M_5_02", 25, "jumbo")
SoundPlayScriptedSpeechEvent(gGreaser1, "M_5_02", 26, "jumbo")
SoundPlayScriptedSpeechEvent(gGreaser2, "M_3_S10", 3, "jumbo")
SoundPlayScriptedSpeechEvent(gHattrick, "M_1_S01", 36, "large")
SoundPlayScriptedSpeechEvent(gHattrick, "M_2_S02", 10, "large")
SoundPlayScriptedSpeechEvent(gHattrick, "M_2_S02", 10, "supersize")
SoundPlayScriptedSpeechEvent(gHattrick, "M_2_S02", 3, "supersize")
SoundPlayScriptedSpeechEvent(gHattrick, "M_2_S02", 4, "supersize")
SoundPlayScriptedSpeechEvent(gHattrick, "M_2_S02", 5, "supersize")
SoundPlayScriptedSpeechEvent(gHattrick, "M_2_S02", 6, "supersize")
SoundPlayScriptedSpeechEvent(gHattrick, "M_2_S02", 7, "supersize")
SoundPlayScriptedSpeechEvent(gHattrick, "M_2_S02", 8, "supersize")
SoundPlayScriptedSpeechEvent(gHattrick, "M_4_06", 27, "large")
SoundPlayScriptedSpeechEvent(gHealthNerd, "M_2_S04", 64)
SoundPlayScriptedSpeechEvent(gHobo, "M_1_06_01", 12, "large")
SoundPlayScriptedSpeechEvent(gHobo, "M_1_06_01", 128, "jumbo", true)
SoundPlayScriptedSpeechEvent(gHobo, "M_1_06_01", 13)
SoundPlayScriptedSpeechEvent(gHobo, "M_1_06_01", 14)
SoundPlayScriptedSpeechEvent(gHobo, "M_1_06_01", 33, "jumbo")
SoundPlayScriptedSpeechEvent(gHobo, "M_1_06_01", 34, "jumbo", true)
SoundPlayScriptedSpeechEvent(gHobo, "M_1_06_01", gActions.speech[gCurrentMove])
SoundPlayScriptedSpeechEvent(gHobo, "SEE_SOMETHING_CRAP", 0, "jumbo")
SoundPlayScriptedSpeechEvent(gHobo, "THANKS_JIMMY", 0, "large")
SoundPlayScriptedSpeechEvent(gJohnny, "M_5_03", 10, "genric", false, false)
SoundPlayScriptedSpeechEvent(gJohnny, "M_5_03", 22, "genric", false, false)
SoundPlayScriptedSpeechEvent(gJohnny, "M_5_03", 24, "genric", false, false)
SoundPlayScriptedSpeechEvent(gJohnny, "M_5_03", 26, "genric", false, false)
SoundPlayScriptedSpeechEvent(gJohnny, "M_5_03", 32, "genric", false, false)
SoundPlayScriptedSpeechEvent(gJohnny, "M_5_03", 34, "genric", false, false)
SoundPlayScriptedSpeechEvent(gJohnny, "M_5_03", 36, "genric", false, false)
SoundPlayScriptedSpeechEvent(gJohnny, "M_5_03", 5, "genric", false, false)
SoundPlayScriptedSpeechEvent(gJohnny, "M_5_03", 6, "genric", false, false)
SoundPlayScriptedSpeechEvent(gJohnny, "M_5_03", 7, "genric", false, false)
SoundPlayScriptedSpeechEvent(gJohnny, "M_5_03", 8, "genric", false, false)
SoundPlayScriptedSpeechEvent(gJohnny, "M_5_03", 9, "genric", false, false)
SoundPlayScriptedSpeechEvent(gJohnnyV, "M_3_B", 5, "supersize")
SoundPlayScriptedSpeechEvent(gJV_OnBike, "M_3_B", 18, "supersize")
SoundPlayScriptedSpeechEvent(gJV_OnBike, "M_3_B", 9, "medium")
SoundPlayScriptedSpeechEvent(gKeyMaster, "M_2_03", 12, "jumbo")
SoundPlayScriptedSpeechEvent(gKeyMaster, "M_2_03", event, "jumbo")
SoundPlayScriptedSpeechEvent(gLackey[8].ped, "M_1_08", 13)
SoundPlayScriptedSpeechEvent(gLackey[8].ped, "M_1_08", 15)
SoundPlayScriptedSpeechEvent(gLeon, "M_5_02", 24, "large")
SoundPlayScriptedSpeechEvent(gLuis, "JEER", 0, "speech")
SoundPlayScriptedSpeechEvent(gLuis, "KEEPUPS", 2, "speech")
SoundPlayScriptedSpeechEvent(gLuis, "KEEPUPS", 3, "speech")
SoundPlayScriptedSpeechEvent(gLuis, "SEE_SOMETHING_CRAP", 0, "speech")
SoundPlayScriptedSpeechEvent(gLuis, "TAUNT_PLAYER_FALLEN", 0, "speech")
SoundPlayScriptedSpeechEvent(gLuis, "VICTIMIZED", 0, "speech")
SoundPlayScriptedSpeechEvent(gMandy, "M_1_08", 25, "xtralarge")
SoundPlayScriptedSpeechEvent(gMandy, "M_4_01", 7)
SoundPlayScriptedSpeechEvent(gMandyArrived, "M_5_04", 20, "xtralarge")
SoundPlayScriptedSpeechEvent(gMandyArrived, "M_5_04", 21, "xtralarge")
SoundPlayScriptedSpeechEvent(gMelvin, "M_2_S04", 84)
SoundPlayScriptedSpeechEvent(gNerd01, "COMPLAIN", 0, "speech")
SoundPlayScriptedSpeechEvent(gNerd02, "COMPLAIN", 0, "speech")
SoundPlayScriptedSpeechEvent(gNerd03, "M_3_R09_N", 97, "speech")
SoundPlayScriptedSpeechEvent(gNerds[1], "FIGHTING", 0, "large")
SoundPlayScriptedSpeechEvent(gNerds[1], "M_4_G4", 199, "large")
SoundPlayScriptedSpeechEvent(gNerds[1].id, "ALLY_HELP_ME", 0, "xtralarge", false)
SoundPlayScriptedSpeechEvent(gNerds[1].id, "FIGHT_BEATEN", 0, "supersize", true)
SoundPlayScriptedSpeechEvent(gNerds[1].id, "M_4_04", 69, "large")
SoundPlayScriptedSpeechEvent(gNerds[1].id, "THANKS_JIMMY", 0, "large", false)
SoundPlayScriptedSpeechEvent(gNerds[2], "FIGHTING", 0, "large")
SoundPlayScriptedSpeechEvent(gNerds[2], "SEE_VANDALISM", 0, "large")
SoundPlayScriptedSpeechEvent(gNerds[2].id, "ALLY_HELP_ME", 0, "xtralarge", false)
SoundPlayScriptedSpeechEvent(gNerds[2].id, "M_4_04", 1, "supersize", false)
SoundPlayScriptedSpeechEvent(gNerds[2].id, "SCARED", 0, "supersize", true)
SoundPlayScriptedSpeechEvent(gNerds[2].id, "THANKS_JIMMY", 0, "large", false)
SoundPlayScriptedSpeechEvent(gNerds[nPedSpeech].id, "THANK_YOU", 0, "large", false)
SoundPlayScriptedSpeechEvent(gOldLady, event, 0, "large")
SoundPlayScriptedSpeechEvent(gord, "CONVERSATION_QUESTION_REPLY", 0, "medium", false)
SoundPlayScriptedSpeechEvent(gord, "JEER", 0, "jumbo", false)
SoundPlayScriptedSpeechEvent(gOrderly, "TAUNT_AGGRO", 0, "large")
SoundPlayScriptedSpeechEvent(gOrderly03, "M_3_S11", 32, "genric", false, false)
SoundPlayScriptedSpeechEvent(gPeter, "M_3_B", 27, "supersize")
SoundPlayScriptedSpeechEvent(gPeter, "M_3_B", 28, "jumbo")
SoundPlayScriptedSpeechEvent(gPeter, "M_3_B", 46, "supersize")
SoundPlayScriptedSpeechEvent(gPetey, "CONGRATULATIONS", 0, "jumbo")
SoundPlayScriptedSpeechEvent(gPetey, "CONGRATULATIONS", 0, "speech")
SoundPlayScriptedSpeechEvent(gPetey, "M_4_B2", 1, "xtralarge", true)
SoundPlayScriptedSpeechEvent(gPlayer, "ClassBiology", 13, "large", true)
SoundPlayScriptedSpeechEvent(gPlayer, "DODGEBALL_KO", 2)
SoundPlayScriptedSpeechEvent(gPlayer, "KEEPUPS", 1, "speech")
SoundPlayScriptedSpeechEvent(gPlayer, "LAWNMOWER", gJimmyLine, "large", true)
SoundPlayScriptedSpeechEvent(gPlayer, "M_1_01", 101, "large")
SoundPlayScriptedSpeechEvent(gPlayer, "M_1_02", 85, "jumbo", true)
SoundPlayScriptedSpeechEvent(gPlayer, "M_1_02", 90, "large", true)
SoundPlayScriptedSpeechEvent(gPlayer, "M_1_02B", 85, "jumbo")
SoundPlayScriptedSpeechEvent(gPlayer, "M_1_07", 26, "large")
SoundPlayScriptedSpeechEvent(gPlayer, "M_1_S01", 19)
SoundPlayScriptedSpeechEvent(gPlayer, "M_1_S01", 53)
SoundPlayScriptedSpeechEvent(gPlayer, "M_2_01", 19, "SpeechX3")
SoundPlayScriptedSpeechEvent(gPlayer, "M_2_G2", 1)
SoundPlayScriptedSpeechEvent(gPlayer, "M_2_G2", 57)
SoundPlayScriptedSpeechEvent(gPlayer, "M_2_G2", 6, "large")
SoundPlayScriptedSpeechEvent(gPlayer, "M_2_G2", 8, "speech")
SoundPlayScriptedSpeechEvent(gPlayer, "M_3_01", 55, "genric", false, false)
SoundPlayScriptedSpeechEvent(gPlayer, "M_3_04", 24)
SoundPlayScriptedSpeechEvent(gPlayer, "M_3_04", 25, "large", true)
SoundPlayScriptedSpeechEvent(gPlayer, "M_3_04", 27, "large", true)
SoundPlayScriptedSpeechEvent(gPlayer, "M_3_04", 31, "large", true)
SoundPlayScriptedSpeechEvent(gPlayer, "M_3_04", 40, "medium")
SoundPlayScriptedSpeechEvent(gPlayer, "M_3_08", 2, "generic")
SoundPlayScriptedSpeechEvent(gPlayer, "M_3_08", 4, "generic")
SoundPlayScriptedSpeechEvent(gPlayer, "M_3_B", 13, "supersize")
SoundPlayScriptedSpeechEvent(gPlayer, "M_3_R05A", 1, "speech")
SoundPlayScriptedSpeechEvent(gPlayer, "M_3_R09", 38, "speech")
SoundPlayScriptedSpeechEvent(gPlayer, "M_3_R09_N", 98)
SoundPlayScriptedSpeechEvent(gPlayer, "M_3_S03", 50, "medium")
SoundPlayScriptedSpeechEvent(gPlayer, "M_3_S03", 52, "medium")
SoundPlayScriptedSpeechEvent(gPlayer, "M_3_S03", 56, "medium")
SoundPlayScriptedSpeechEvent(gPlayer, "M_4_02", 1, "genric", false, false)
SoundPlayScriptedSpeechEvent(gPlayer, "M_4_02", 3, "genric", false, false)
SoundPlayScriptedSpeechEvent(gPlayer, "M_4_02", 6, "genric", false, false)
SoundPlayScriptedSpeechEvent(gPlayer, "M_4_05", 60, "supersize")
SoundPlayScriptedSpeechEvent(gPlayer, "M_5_02", 10, "jumbo")
SoundPlayScriptedSpeechEvent(gPlayer, "M_5_02", 12, "jumbo")
SoundPlayScriptedSpeechEvent(gPlayer, "M_5_02", 8, "jumbo")
SoundPlayScriptedSpeechEvent(gPlayer, "M_5_03", 20, "genric", false, false)
SoundPlayScriptedSpeechEvent(gPlayer, "M_5_03", 33, "genric", false, false)
SoundPlayScriptedSpeechEvent(gPlayer, "M_5_03", 35, "genric", false, false)
SoundPlayScriptedSpeechEvent(gPlayer, "M_5_03", 37, "genric", false, false)
SoundPlayScriptedSpeechEvent(gPlayer, "M_5_04", 28, "large")
SoundPlayScriptedSpeechEvent(gPlayer, "M_5_06", 18, "jumbo", true)
SoundPlayScriptedSpeechEvent(gPlayer, "M_5_07A", 97, "large")
SoundPlayScriptedSpeechEvent(gPlayer, "M_5_G5", 15, "speech", true)
SoundPlayScriptedSpeechEvent(gPlayer, "M_5_G5", 17, "jumbo")
SoundPlayScriptedSpeechEvent(gPlayer, "M_5_G5", 9, "jumbo")
SoundPlayScriptedSpeechEvent(gPlayer, "M_6_02", 12, "jumbo")
SoundPlayScriptedSpeechEvent(gPlayer, "M_6_03", 33, "large", true)
SoundPlayScriptedSpeechEvent(gPlayer, "M_6_03", 35, "large", true)
SoundPlayScriptedSpeechEvent(gPlayer, "M_6_03", 39, "large", true)
SoundPlayScriptedSpeechEvent(gPlayer, "M_6_03", 51, "large", true)
SoundPlayScriptedSpeechEvent(gPlayer, "M_6_03", 59, "large")
SoundPlayScriptedSpeechEvent(gPlayer, "M_6_03", 62, "supersize")
SoundPlayScriptedSpeechEvent(gPlayer, "M_6_03", 63, "jumbo", true)
SoundPlayScriptedSpeechEvent(gPlayer, "PLAYER_CAMERA_GOOD", 0, "jumbo")
SoundPlayScriptedSpeechEvent(gPlayer, "PLAYER_DEJECTED", 0, "speech")
SoundPlayScriptedSpeechEvent(gPlayer, "PLAYER_GREET_GENERIC_BOY", 0, "speech")
SoundPlayScriptedSpeechEvent(gPlayer, "PLAYER_SUCCESS", 0, "jumbo")
SoundPlayScriptedSpeechEvent(gPlayer, "PLAYER_SUCCESS", 0, "speech")
SoundPlayScriptedSpeechEvent(gPlayer, "PLAYER_TAUNT", 0, "speech")
SoundPlayScriptedSpeechEvent(gPlayer, "PLAYER_TAUNT_FLEE", 0, "xtralarge", true)
SoundPlayScriptedSpeechEvent(gPlayer, "PLAYER_VICTORY_INDIVIDUAL", 0)
SoundPlayScriptedSpeechEvent(gPrefect, "BUSTING_JIMMY", 0, "large", true)
SoundPlayScriptedSpeechEvent(gPrefect, "JEER", 0, "large", true)
SoundPlayScriptedSpeechEvent(gPrefect, "LAWNMOWER", 1, "large")
SoundPlayScriptedSpeechEvent(gPrefect, "LAWNMOWER", 7, "large")
SoundPlayScriptedSpeechEvent(gPrefect, "LAWNMOWER", gPrefectLine, "large", true)
SoundPlayScriptedSpeechEvent(gPrefect, "M_1_02", 131, "large", true)
SoundPlayScriptedSpeechEvent(gPrefect, "M_1_02", 132, "jumbo", true)
SoundPlayScriptedSpeechEvent(gPrefect, "M_1_02", 134, "jumbo", true)
SoundPlayScriptedSpeechEvent(gPrefect, "SNOW_SHOVELLING", 1, "large", true)
SoundPlayScriptedSpeechEvent(gPrefect, "SNOW_SHOVELLING", 100, "large")
SoundPlayScriptedSpeechEvent(gPrefect, "SNOW_SHOVELLING", 2, "large", true)
SoundPlayScriptedSpeechEvent(gPrefect, "SNOW_SHOVELLING", 2, "supersize", true)
SoundPlayScriptedSpeechEvent(gPrefect, "WAIT_FOR_ME", 0, "large")
SoundPlayScriptedSpeechEvent(gPrefect1, "M_6_03", 68, "jumbo")
SoundPlayScriptedSpeechEvent(gPrefect1, "M_6_03", 69, "jumbo")
SoundPlayScriptedSpeechEvent(gPushers[1], "FIGHT_WATCH", 0, "large")
SoundPlayScriptedSpeechEvent(gPushers[2], "FIGHT_WATCH", 0, "large")
SoundPlayScriptedSpeechEvent(gPushers[3], "M_1_01", 1, "large")
SoundPlayScriptedSpeechEvent(greaser.id, "FIGHTING", 0, "supersize")
SoundPlayScriptedSpeechEvent(gRudy, "M_3_01A", 10, "jumbo", true)
SoundPlayScriptedSpeechEvent(gRudy, "M_3_01A", 11, "jumbo", true)
SoundPlayScriptedSpeechEvent(gRudy, "M_3_01A", 9, "jumbo", true)
SoundPlayScriptedSpeechEvent(gRussell, "M_6_02", 3, "jumbo")
SoundPlayScriptedSpeechEvent(gRussell, "M_6_02", 5, "jumbo")
SoundPlayScriptedSpeechEvent(gRussell, "M_6_03", 20, "jumbo")
SoundPlayScriptedSpeechEvent(gRussell, "M_6_03", 70, "jumbo")
SoundPlayScriptedSpeechEvent(gRussell, "M_6_03", 71, "jumbo")
SoundPlayScriptedSpeechEvent(gRussell, "M_6_03", 72, "supersize")
SoundPlayScriptedSpeechEvent(gRussell, "M_6_03", 9, "jumbo")
SoundPlayScriptedSpeechEvent(gRussell, "M_6_03", 9, "large", true)
SoundPlayScriptedSpeechEvent(gSecretary, "M_3_08", 1, "generic")
SoundPlayScriptedSpeechEvent(gSecretary, "M_3_08", 3, "generic")
SoundPlayScriptedSpeechEvent(gSecretary, "M_3_08", 5, "generic")
SoundPlayScriptedSpeechEvent(gSidelines[currentPasser.id], "M_4_B2", currentPasser.speech, "jumbo")
SoundPlayScriptedSpeechEvent(gSidelines[currentPasser.id], "TAUNT", 0, "jumbo")
SoundPlayScriptedSpeechEvent(gTablePeds[1].id, "FIGHT_INITIATE", 0, "large", false)
SoundPlayScriptedSpeechEvent(gTablePeds[2].id, "FIGHT_INITIATE", 0, "large", false)
SoundPlayScriptedSpeechEvent(gTablePeds[3].id, "FIGHT_INITIATE", 0, "large", false)
SoundPlayScriptedSpeechEvent(gTablePeds[gCurrentJock].id, "FIGHT_BEATEN", 0, "supersize", true)
SoundPlayScriptedSpeechEvent(gTablePeds[gCurrentJock].id, "FIGHT_INITIATE", 0, "supersize", true)
SoundPlayScriptedSpeechEvent(gTad, "M_2_03", 11, "jumbo")
SoundPlayScriptedSpeechEvent(gTargetBoy, "PENALTY", 1, "speech")
SoundPlayScriptedSpeechEvent(gTargetBoy, "PENALTY", 2, "speech")
SoundPlayScriptedSpeechEvent(gTargetBoy, "PENALTY", 3, "speech")
SoundPlayScriptedSpeechEvent(gTed, "FIGHT_INITIATE", 0, "jumbo")
SoundPlayScriptedSpeechEvent(gTed, "INDIGNANT", 0, "jumbo")
SoundPlayScriptedSpeechEvent(gTed, "M_4_03", 18, "jumbo")
SoundPlayScriptedSpeechEvent(gTed, "M_4_B2", 11, "large")
SoundPlayScriptedSpeechEvent(gTed, "M_4_B2", 13, "jumbo")
SoundPlayScriptedSpeechEvent(gTed, "TAUNT", 0, "jumbo")
SoundPlayScriptedSpeechEvent(gTed, "TAUNT", 0, "supersize")
SoundPlayScriptedSpeechEvent(gTed, "TAUNT", 0, "xtralarge", true, true)
SoundPlayScriptedSpeechEvent(gThad, "M_2_S04", 63, "large")
SoundPlayScriptedSpeechEvent(gThad, "M_4_02", 13, "genric", false, true)
SoundPlayScriptedSpeechEvent(gThad, "M_4_02", 15, "genric", false, false)
SoundPlayScriptedSpeechEvent(gThad, "M_4_02", 17, "genric", false, true)
SoundPlayScriptedSpeechEvent(gTheo, "M_3_S11", 11, "genric", false, false)
SoundPlayScriptedSpeechEvent(hattrick, "ClassMath", 1, "large")
SoundPlayScriptedSpeechEvent(hattrick, "ClassMath", 11, "large", true)
SoundPlayScriptedSpeechEvent(hattrick, "ClassMath", 12, "generic", true)
SoundPlayScriptedSpeechEvent(hattrick, "ClassMath", 2, "large")
SoundPlayScriptedSpeechEvent(hattrick, "ClassMath", 3, "large")
SoundPlayScriptedSpeechEvent(hattrick, "ClassMath", 4, "large")
SoundPlayScriptedSpeechEvent(hattrick, "ClassMath", 5, "large")
SoundPlayScriptedSpeechEvent(hattrick, "ClassMath", 6, "large", true)
SoundPlayScriptedSpeechEvent(hattrick, "ClassMath", 7, "large", true)
SoundPlayScriptedSpeechEvent(hattrick, "ClassMath", 8, "large", true)
SoundPlayScriptedSpeechEvent(hattrick, "ClassMath", 9, "large", true)
SoundPlayScriptedSpeechEvent(id, "FIGHT_WTF", 0, "jumbo")
SoundPlayScriptedSpeechEvent(id2ndMan, "M_1_07", 3, "xtralarge")
SoundPlayScriptedSpeechEvent(idBucky, "THANKS_JIMMY", 0, "xtralarge")
SoundPlayScriptedSpeechEvent(idBurton, "M_1_04", 34, "genric", false, false)
SoundPlayScriptedSpeechEvent(idBurton, "M_1_04", 38, "genric", false, false)
SoundPlayScriptedSpeechEvent(idBurton, "M_5_05", 11, "supersize")
SoundPlayScriptedSpeechEvent(idBurton, "M_5_05", 20, "supersize")
SoundPlayScriptedSpeechEvent(idDarby, "M_2_B", 1, "large")
SoundPlayScriptedSpeechEvent(idDarby, "M_2_B", 11, "large")
SoundPlayScriptedSpeechEvent(idDarby, "M_2_B", 12, "large")
SoundPlayScriptedSpeechEvent(idDarby, "M_2_B", 14, "large")
SoundPlayScriptedSpeechEvent(idDarby, "M_2_B", 5, "jumbo")
SoundPlayScriptedSpeechEvent(idDarby, "M_2_B", 6, "supersize")
SoundPlayScriptedSpeechEvent(idDarby, "M_2_B", 9, "large")
SoundPlayScriptedSpeechEvent(idDO, "M_5_04", 29, "large")
SoundPlayScriptedSpeechEvent(idDO, "M_5_04", 31, "large")
SoundPlayScriptedSpeechEvent(idDO, "M_5_04", 40, "large")
SoundPlayScriptedSpeechEvent(idDO, "M_5_04", 45, "jumbo")
SoundPlayScriptedSpeechEvent(idEunice.id, "M_1_02", 96, "genric", false, false)
SoundPlayScriptedSpeechEvent(idGord.id, "M_2_06", 99, "genric", false, false)
SoundPlayScriptedSpeechEvent(idHitMan, "M_1_07", 17, "large")
SoundPlayScriptedSpeechEvent(idLittleBoy, "BIKE_STOLEN", 0, "jumbo")
SoundPlayScriptedSpeechEvent(idNemesis, "M_1_04", 10, "genric", false, false)
SoundPlayScriptedSpeechEvent(idNemesis, "M_1_04", 32, "genric", false, false)
SoundPlayScriptedSpeechEvent(idNemesis, "M_1_04", 47, "genric", false, true)
SoundPlayScriptedSpeechEvent(idNemesis, "M_1_04", 48, "genric", false, false)
SoundPlayScriptedSpeechEvent(idNemesis, "M_1_04", 51, "genric", false, false)
SoundPlayScriptedSpeechEvent(idNemesis, "M_1_04", 6, "genric", false, false)
SoundPlayScriptedSpeechEvent(idNemesis, "M_1_04", 8, "genric", false, false)
SoundPlayScriptedSpeechEvent(idOmar, "M_5_07A", 38, "large")
SoundPlayScriptedSpeechEvent(idOmar, "M_5_07A", 40, "large")
SoundPlayScriptedSpeechEvent(idPed, "M_1_07", 3, "xtralarge")
SoundPlayScriptedSpeechEvent(idPed, "M_1_07", 4, "xtralarge")
SoundPlayScriptedSpeechEvent(idPed, "M_1_07", 6, "xtralarge")
SoundPlayScriptedSpeechEvent(idPinky.id, "M_2_06", 3, "genric", false, false)
SoundPlayScriptedSpeechEvent(idRussell, "M_5_06", 12, "jumbo", true)
SoundPlayScriptedSpeechEvent(idRussell, "M_5_07A", 15, "large", true)
SoundPlayScriptedSpeechEvent(idRussell, "M_5_07A", 96, "large")
SoundPlayScriptedSpeechEvent(idTeacher, "CONVERSATION_NEGATIVE_REPLY", 0, "medium", false)
SoundPlayScriptedSpeechEvent(idTeacher2, "CONVERSATION_NEGATIVE_PERSONAL", 0, "medium", false)
SoundPlayScriptedSpeechEvent(idZoe, "M_5_07A", 12, "large")
SoundPlayScriptedSpeechEvent(idZoe, "M_5_07A", 13, "large")
SoundPlayScriptedSpeechEvent(idZoe, "M_5_07A", 17, "large")
SoundPlayScriptedSpeechEvent(idZoe, "M_5_07A", 23, "large")
SoundPlayScriptedSpeechEvent(idZoe, "M_5_07A", 31, "large")
SoundPlayScriptedSpeechEvent(idZoe, "M_5_07A", 4, "large")
SoundPlayScriptedSpeechEvent(idZoe, "M_5_07A", 5, "large")
SoundPlayScriptedSpeechEvent(idZoe, "M_5_07A", 7, "large")
SoundPlayScriptedSpeechEvent(idZoe, "SEE_SOMETHING_COOL", 0, "large")
SoundPlayScriptedSpeechEvent(insultBoy, "LAUGH_CRUEL", -1, "jumbo", true)
SoundPlayScriptedSpeechEvent(insultBoy, "SCARED", 0, "large")
SoundPlayScriptedSpeechEvent(item.kid, "BUMP_RUDE", 0, "large")
SoundPlayScriptedSpeechEvent(item.parent, "BUMP_RUDE", 0, "large", false, true)
SoundPlayScriptedSpeechEvent(johnny, "M_3_01", 56, "jumbo", false)
SoundPlayScriptedSpeechEvent(kby, "M_5_04", 4, "large")
SoundPlayScriptedSpeechEvent(kidActive, "M_3_01D", tKidSet[Kid_Index].speech1[Anim_Index].dialogue, "jumbo")
SoundPlayScriptedSpeechEvent(L_PedGetIDByIndex("ambush01", 1), "M_5_04", 41, "large")
SoundPlayScriptedSpeechEvent(lackey1, "M_6_03", 66, "supersize")
SoundPlayScriptedSpeechEvent(lackey2, "BOISTEROUS", 0, "supersize")
SoundPlayScriptedSpeechEvent(lackey2, "FIGHT_WATCH", 0, "supersize")
SoundPlayScriptedSpeechEvent(lackey2, "M_6_03", 75, "supersize")
SoundPlayScriptedSpeechEvent(librarian, "M_5_01", 1, "large")
SoundPlayScriptedSpeechEvent(librarian, "M_5_01", 11, "jumbo")
SoundPlayScriptedSpeechEvent(librarian, "M_5_01", 4, "large")
SoundPlayScriptedSpeechEvent(librarian, "M_5_01", 5, "large")
SoundPlayScriptedSpeechEvent(librarian, "M_5_01", 7, "jumbo")
SoundPlayScriptedSpeechEvent(lola, "BUMP_RUDE", 0, "jumbo", false)
SoundPlayScriptedSpeechEvent(lola, "CONVERSATION_QUESTION", 0, "medium", false)
SoundPlayScriptedSpeechEvent(lola, "M_3_01", 59, "jumbo", false)
SoundPlayScriptedSpeechEvent(lola, "SEE_BOY_IN_DORM", 0, "jumbo", false)
SoundPlayScriptedSpeechEvent(mandy, "M_4_G4", 27, "large")
SoundPlayScriptedSpeechEvent(model, event, parameter)
SoundPlayScriptedSpeechEvent(model, event, parameter, volume)
SoundPlayScriptedSpeechEvent(model, event, parameter, volume, play2D)
SoundPlayScriptedSpeechEvent(MomTalker, "M_3_01D", tKidSet[Kid_Index].ParentSpeech.Behave[math.random(1, F_tsize(tKidSet[Kid_Index].ParentSpeech.Behave))], "jumbo")
SoundPlayScriptedSpeechEvent(MomTalker, "M_3_01D", tKidSet[Kid_Index].ParentSpeech.Fail[math.random(1, F_tsize(tKidSet[Kid_Index].ParentSpeech.Fail))], "jumbo")
SoundPlayScriptedSpeechEvent(MomTalker, "M_3_01D", tKidSet[Kid_Index].ParentSpeech.Hurry[math.random(1, F_tsize(tKidSet[Kid_Index].ParentSpeech.Hurry))], "jumbo")
SoundPlayScriptedSpeechEvent(MomTalker, "M_3_01D", tKidSet[Kid_Index].ParentSpeech.Nice[math.random(1, F_tsize(tKidSet[Kid_Index].ParentSpeech.Nice))], "jumbo")
SoundPlayScriptedSpeechEvent(MomTalker, "M_3_01D", tKidSet[Kid_Index].ParentSpeech.Pass[math.random(1, F_tsize(tKidSet[Kid_Index].ParentSpeech.Pass))], "jumbo")
SoundPlayScriptedSpeechEvent(musicTeach, "ClassMusic", 11, "jumbo", true)
SoundPlayScriptedSpeechEvent(musicTeach, "ClassMusic", 12, "jumbo", true)
SoundPlayScriptedSpeechEvent(musicTeach, "ClassMusic", 6, "jumbo", true)
SoundPlayScriptedSpeechEvent(musicTeach, "ClassMusic", MusicTecherIntroTime[nCurrentClass][1], "jumbo", true)
SoundPlayScriptedSpeechEvent(musicTeach, "ClassMusic", nCurrentClass + 5, "jumbo", true)
SoundPlayScriptedSpeechEvent(NISPed, "FIGHTING", 0, "jumbo")
SoundPlayScriptedSpeechEvent(opponent, "DEFEAT_INDIVIDUAL", 0, "large", false, true)
SoundPlayScriptedSpeechEvent(opponent, "SCARED", 0, "large", false, true)
SoundPlayScriptedSpeechEvent(opponent, "VICTIMIZED", 0, "large", false, true)
SoundPlayScriptedSpeechEvent(outroPedA, "M_4_06", 80, "jumbo", true)
SoundPlayScriptedSpeechEvent(outroPedA, "M_4_06", 90, "jumbo", true)
SoundPlayScriptedSpeechEvent(outroPedA, "M_4_06", 96, "jumbo", true)
SoundPlayScriptedSpeechEvent(outroPedA, "M_4_06", 97, "supersize")
SoundPlayScriptedSpeechEvent(outroPedB, "LAUGH_CRUEL", 93, "jumbo", true)
SoundPlayScriptedSpeechEvent(outroPedB, "M_4_06", 23, "jumbo", true)
SoundPlayScriptedSpeechEvent(outroPedB, "M_4_06", 91, "supersize")
SoundPlayScriptedSpeechEvent(outroPedB, "M_4_06", 92, "jumbo", true)
SoundPlayScriptedSpeechEvent(outroPedB, "M_4_06", 93, "jumbo", true)
SoundPlayScriptedSpeechEvent(outroPedB, "M_4_06", 96, "jumbo", true)
SoundPlayScriptedSpeechEvent(outroPedC, "M_4_06", 94, "jumbo", true)
SoundPlayScriptedSpeechEvent(outroPedC, "M_4_06", 98, "supersize")
SoundPlayScriptedSpeechEvent(outroPedC, "M_4_06", 99, "supersize")
SoundPlayScriptedSpeechEvent(ped, "CHASE", 0, "large")
SoundPlayScriptedSpeechEvent(ped, "FIGHT_INITIATE", 0, "supersize", true)
SoundPlayScriptedSpeechEvent(ped, "M_2_01", line, "SpeechX3")
SoundPlayScriptedSpeechEvent(ped, "M_2_R03", event, "large")
SoundPlayScriptedSpeechEvent(ped, "M_4_G4", 5, "large")
SoundPlayScriptedSpeechEvent(ped.id, "FIGHTING", 0, "large")
SoundPlayScriptedSpeechEvent(ped1, "FIGHT_WATCH", 0, "supersize")
SoundPlayScriptedSpeechEvent(ped1, "M_3_05", 10, "jumbo", false)
SoundPlayScriptedSpeechEvent(ped1, "M_3_05", 9, "jumbo", false)
SoundPlayScriptedSpeechEvent(ped2, "FIGHT_WATCH", 0, "supersize")
SoundPlayScriptedSpeechEvent(pedAlgie.id, "M_1_02B", 76)
SoundPlayScriptedSpeechEvent(pedAlgie.id, "M_1_05", 10)
SoundPlayScriptedSpeechEvent(pedAlgie.id, "M_1_05", 11)
SoundPlayScriptedSpeechEvent(pedAlgie.id, "M_1_05", 13)
SoundPlayScriptedSpeechEvent(pedAlgie.id, "M_1_05", 15)
SoundPlayScriptedSpeechEvent(pedAlgie.id, "M_1_05", 16)
SoundPlayScriptedSpeechEvent(pedAlgie.id, "M_1_05", 18)
SoundPlayScriptedSpeechEvent(pedAlgie.id, "M_1_05", 19)
SoundPlayScriptedSpeechEvent(pedAlgie.id, "M_1_05", 25)
SoundPlayScriptedSpeechEvent(pedAlgie.id, "M_1_05", 27)
SoundPlayScriptedSpeechEvent(pedAlgie.id, "M_1_05", 29)
SoundPlayScriptedSpeechEvent(pedAlgie.id, "M_1_05", 30)
SoundPlayScriptedSpeechEvent(pedAlgie.id, "M_1_05", 31)
SoundPlayScriptedSpeechEvent(pedAlgie.id, "M_1_05", 34)
SoundPlayScriptedSpeechEvent(pedAlgie.id, "M_1_05", 5)
SoundPlayScriptedSpeechEvent(pedAlgie.id, "M_3_04", 16, "medium")
SoundPlayScriptedSpeechEvent(pedAlgie.id, "M_3_04", 33, "large", true)
SoundPlayScriptedSpeechEvent(pedAlgie.id, "M_3_04", 35)
SoundPlayScriptedSpeechEvent(pedAlgie.id, "M_3_04", 39, "medium")
SoundPlayScriptedSpeechEvent(pedAsianGirl.id, "M_2_S06", 35, "large")
SoundPlayScriptedSpeechEvent(pedChad.id, "M_2_R11", 10, "large", true)
SoundPlayScriptedSpeechEvent(pedChad.id, "M_3_04", 26, "large", true)
SoundPlayScriptedSpeechEvent(pedChad.id, "M_3_04", 28, "large", true)
SoundPlayScriptedSpeechEvent(pedChad.id, "M_3_04", 32, "large", true)
SoundPlayScriptedSpeechEvent(pedChad.id, "M_3_04", 34)
SoundPlayScriptedSpeechEvent(pedConstantine.id, "M_1_02B", 104, "medium", false, true)
SoundPlayScriptedSpeechEvent(pedCornelius.id, "M_3_04", 11, "medium")
SoundPlayScriptedSpeechEvent(pedCornelius.id, "M_3_04", 12, "medium", false, true)
SoundPlayScriptedSpeechEvent(pedCornelius.id, "M_3_04", 2, "large")
SoundPlayScriptedSpeechEvent(pedCornelius.id, "M_3_04", 37, "medium")
SoundPlayScriptedSpeechEvent(pedCornelius.id, "M_3_04", 5, "medium")
SoundPlayScriptedSpeechEvent(pedCrabbleSnitch.id, "M_3_S03", 49, "medium")
SoundPlayScriptedSpeechEvent(pedCrabbleSnitch.id, "M_3_S03", 51, "medium")
SoundPlayScriptedSpeechEvent(pedCrabbleSnitch.id, "M_3_S03", 54, "medium")
SoundPlayScriptedSpeechEvent(pedCrabbleSnitch.id, "M_3_S03", 57, "medium")
SoundPlayScriptedSpeechEvent(pedCutBo.id, "CHASE", 0, "supersize")
SoundPlayScriptedSpeechEvent(pedCutBo.id, "M_4_05", 13, "large")
SoundPlayScriptedSpeechEvent(pedCutBo.id, "M_4_05", 40, "jumbo")
SoundPlayScriptedSpeechEvent(pedCutCasey.id, "M_4_05", 39, "jumbo")
SoundPlayScriptedSpeechEvent(pedCutJuri.id, "M_4_05", 45, "large")
SoundPlayScriptedSpeechEvent(pedEarnest.id, "M_3_04", 38, "medium")
SoundPlayScriptedSpeechEvent(pedEarnest.id, "M_4_B1", 1, "jumbo", true)
SoundPlayScriptedSpeechEvent(pedEarnest.id, "M_4_B1", 2, "jumbo", true)
SoundPlayScriptedSpeechEvent(pedEarnest.id, "M_4_B1", 3, "jumbo", true)
SoundPlayScriptedSpeechEvent(pedFirstBully.id, "M_1_05", 1, "large")
SoundPlayScriptedSpeechEvent(pedFirstBully.id, "M_1_05", 2)
SoundPlayScriptedSpeechEvent(pedFirstBully.id, "M_1_05", 3)
SoundPlayScriptedSpeechEvent(pedGary.id, "M_1_02B", 117, "supersize")
SoundPlayScriptedSpeechEvent(pedGary.id, "M_1_02B", 118, "speech", true)
SoundPlayScriptedSpeechEvent(pedGary.id, "M_1_02B", 119, "supersize", true)
SoundPlayScriptedSpeechEvent(pedGary.id, "M_1_02B", 120, "speech", true)
SoundPlayScriptedSpeechEvent(pedGary.id, "M_1_02B", 121, "large")
SoundPlayScriptedSpeechEvent(pedGary.id, "M_1_02B", 124, "supersize")
SoundPlayScriptedSpeechEvent(pedGary.id, "M_1_02B", 125, "supersize")
SoundPlayScriptedSpeechEvent(pedGary.id, "M_1_02B", 126, "supersize")
SoundPlayScriptedSpeechEvent(pedGary.id, "M_1_02B", 35, "large")
SoundPlayScriptedSpeechEvent(pedGary.id, "M_1_02B", 37, "large")
SoundPlayScriptedSpeechEvent(pedGary.id, "M_1_02B", 81, "large", false, true)
SoundPlayScriptedSpeechEvent(pedGary.id, "M_1_11", 21, "supersize")
SoundPlayScriptedSpeechEvent(pedGary.id, "M_1_11X1", 42, "medium", true, true)
SoundPlayScriptedSpeechEvent(pedGary.id, "M_3_04", 6, "medium")
SoundPlayScriptedSpeechEvent(pedGord, "M_2_07", 51, "large")
SoundPlayScriptedSpeechEvent(pedGord, "M_2_07", 52, "large")
SoundPlayScriptedSpeechEvent(pedGord, "M_2_07", 53, "large")
SoundPlayScriptedSpeechEvent(pedGord, "M_2_07", 54, "large")
SoundPlayScriptedSpeechEvent(pedGord, "M_2_07", 55, "large", false, true)
SoundPlayScriptedSpeechEvent(pedGord, "M_2_07", 56, "large")
SoundPlayScriptedSpeechEvent(pedGreaser01.id, "FIGHT_WATCH", 0, "small")
SoundPlayScriptedSpeechEvent(pedGreaser01.id, "M_3_04", 30, "large", true)
SoundPlayScriptedSpeechEvent(pedGreaser02.id, "FIGHT_WATCH", 0, "small")
SoundPlayScriptedSpeechEvent(pedGreaser02.id, "M_3_04", 10, "small")
SoundPlayScriptedSpeechEvent(pedGreaser03.id, "FIGHT_WATCH", 0, "small")
SoundPlayScriptedSpeechEvent(pedGreaser04.id, "FIGHT_WATCH", 0, "small")
SoundPlayScriptedSpeechEvent(pedHattrick.id, "M_3_S03", 48, "medium")
SoundPlayScriptedSpeechEvent(pedHattrick.id, "M_3_S03", 53, "medium")
SoundPlayScriptedSpeechEvent(pedHattrick.id, "M_3_S03", 55, "medium")
SoundPlayScriptedSpeechEvent(pedHeadmistress, "M_2_S06", 4)
SoundPlayScriptedSpeechEvent(pedHeadmistress, "M_2_S06", 40)
SoundPlayScriptedSpeechEvent(pedHeadmistress.id, "M_2_S06", 45, "large")
SoundPlayScriptedSpeechEvent(pedID, "M_2_02", 1)
SoundPlayScriptedSpeechEvent(pedID, "M_2_02", 24)
SoundPlayScriptedSpeechEvent(pedid, "M_2_S05", entry.event, "medium", true)
SoundPlayScriptedSpeechEvent(pedId, "M_4_06", 42, "supersize")
SoundPlayScriptedSpeechEvent(pedid, entry.mis, entry.event, "medium", true)
SoundPlayScriptedSpeechEvent(pedId, strEvent, commentId, volume)
SoundPlayScriptedSpeechEvent(pedJock.id, "M_3_S03", 21, "large", true)
SoundPlayScriptedSpeechEvent(pedJock.id, "M_3_S03", 62, "large", true)
SoundPlayScriptedSpeechEvent(pedJockBathroomFirstFloor01.id, "M_1_05", 17, "large")
SoundPlayScriptedSpeechEvent(pedJockBathroomFirstFloor02.id, "M_1_05", 8)
SoundPlayScriptedSpeechEvent(pedJohnny.id, "M_3_04", 1, "large")
SoundPlayScriptedSpeechEvent(pedJohnny.id, "M_3_04", 4, "medium")
SoundPlayScriptedSpeechEvent(pedJohnny.id, "M_3_04", 7, "medium")
SoundPlayScriptedSpeechEvent(pedJohnny.id, "M_3_04", 8, "medium")
SoundPlayScriptedSpeechEvent(pedMandy.id, "M_3_S03", 20, "large", true)
SoundPlayScriptedSpeechEvent(pedMandyShower.id, "M_4_01", 10, "jumbo")
SoundPlayScriptedSpeechEvent(pedMandyShower.id, "M_4_01", 11, "jumbo")
SoundPlayScriptedSpeechEvent(pedMascot.id, "M_4_05", 44, "jumbo", false, true)
SoundPlayScriptedSpeechEvent(pedMascot.id, "M_4_05", 52)
SoundPlayScriptedSpeechEvent(pedMascot.id, "M_4_05", 52, "jumbo", false, true)
SoundPlayScriptedSpeechEvent(pedMascot.id, "M_4_05", 52, "large", false, true)
SoundPlayScriptedSpeechEvent(pedMascot.id, "M_4_05", 53, "large")
SoundPlayScriptedSpeechEvent(pedMascot.id, "M_4_05", 54, "large")
SoundPlayScriptedSpeechEvent(pedMascot.id, "M_4_05", 55, "large")
SoundPlayScriptedSpeechEvent(pedMascot.id, "M_4_05", 56, "large")
SoundPlayScriptedSpeechEvent(pedMascot.id, "M_4_05", 57, "jumbo", false, true)
SoundPlayScriptedSpeechEvent(pedMascot.id, "M_4_05", 58, "large", false, true)
SoundPlayScriptedSpeechEvent(pedNorton.id, "M_3_04", 14, "medium")
SoundPlayScriptedSpeechEvent(pedPinky.id, "M_2_G2", 100)
SoundPlayScriptedSpeechEvent(pedPinky.id, "M_2_G2", 14)
SoundPlayScriptedSpeechEvent(pedPinky.id, "M_2_G2", 15)
SoundPlayScriptedSpeechEvent(pedPinky.id, "M_2_G2", 26)
SoundPlayScriptedSpeechEvent(pedPinky.id, "M_2_G2", 27)
SoundPlayScriptedSpeechEvent(pedPinky.id, "M_2_G2", 28)
SoundPlayScriptedSpeechEvent(pedPinky.id, "M_2_G2", 3, "large")
SoundPlayScriptedSpeechEvent(pedPinky.id, "M_2_G2", 30)
SoundPlayScriptedSpeechEvent(pedPinky.id, "M_2_G2", 31)
SoundPlayScriptedSpeechEvent(pedPinky.id, "M_2_G2", 34)
SoundPlayScriptedSpeechEvent(pedPinky.id, "M_2_G2", 35)
SoundPlayScriptedSpeechEvent(pedPinky.id, "M_2_G2", 36)
SoundPlayScriptedSpeechEvent(pedPinky.id, "M_2_G2", 4)
SoundPlayScriptedSpeechEvent(pedPinky.id, "M_2_G2", 43)
SoundPlayScriptedSpeechEvent(pedPinky.id, "M_2_G2", 44)
SoundPlayScriptedSpeechEvent(pedPinky.id, "M_2_G2", 45)
SoundPlayScriptedSpeechEvent(pedPinky.id, "M_2_G2", 49)
SoundPlayScriptedSpeechEvent(pedPinky.id, "M_2_G2", 54)
SoundPlayScriptedSpeechEvent(pedPinky.id, "M_2_G2", 56)
SoundPlayScriptedSpeechEvent(pedPinky.id, "M_2_G2", 7, "large")
SoundPlayScriptedSpeechEvent(pedPoolPrep.id, "M_3_S03", 59, "large", true)
SoundPlayScriptedSpeechEvent(pedPoolPrep.id, "M_3_S03", 60, "large", false, true)
SoundPlayScriptedSpeechEvent(pedPrefect.id, "M_1_02B", 169, "supersize")
SoundPlayScriptedSpeechEvent(pedPrefectKarl.id, "M_1_02B", 83, "supersize", true)
SoundPlayScriptedSpeechEvent(pedPrep.id, "M_3_S03", 59, "large", true)
SoundPlayScriptedSpeechEvent(pedPrep.id, "M_3_S03", 60, "large", false, true)
SoundPlayScriptedSpeechEvent(pedPrep.id, "M_3_S03", 61, "large", false, true)
SoundPlayScriptedSpeechEvent(pedRicky, "M_2_07", 6, "large")
SoundPlayScriptedSpeechEvent(pedStoreOwner.id, "M_2_02", 26, "medium")
SoundPlayScriptedSpeechEvent(pedZoe.id, "M_5_G5", 10, "jumbo")
SoundPlayScriptedSpeechEvent(pedZoe.id, "M_5_G5", 103, "speech", true)
SoundPlayScriptedSpeechEvent(pedZoe.id, "M_5_G5", 16, "jumbo")
SoundPlayScriptedSpeechEvent(pedZoe.id, "M_5_G5", 21, "speech", true)
SoundPlayScriptedSpeechEvent(pedZoe.id, "M_5_G5", 34, "speech", true)
SoundPlayScriptedSpeechEvent(pedZoe.id, "M_5_G5", 35, "speech", true)
SoundPlayScriptedSpeechEvent(pedZoe.id, "M_5_G5", 8, "jumbo")
SoundPlayScriptedSpeechEvent(pervId, "M_4_G4", 14, "large")
SoundPlayScriptedSpeechEvent(pervId, "M_4_G4", 15, "large")
SoundPlayScriptedSpeechEvent(pete, "BYE", 0, "large")
SoundPlayScriptedSpeechEvent(phillips, "M_1_S01", 18)
SoundPlayScriptedSpeechEvent(phillips, "M_1_S01", 99)
SoundPlayScriptedSpeechEvent(prefect, "BUSTED_CLASS", 0, "speech")
SoundPlayScriptedSpeechEvent(prep, "FIGHT_INITIATE", 0, "large")
SoundPlayScriptedSpeechEvent(prep, "M_2_05", event, "large")
SoundPlayScriptedSpeechEvent(racer.id, "VICTORY_INDIVIDUAL", 0, "xtralarge")
SoundPlayScriptedSpeechEvent(racer.id, "WHINE", 0, "xtralarge")
SoundPlayScriptedSpeechEvent(ratPacker, "M_5_02", line, "supersize")
SoundPlayScriptedSpeechEvent(redTeam[math.random(1, 3)], "DEFEAT_TEAM", 0, "large")
SoundPlayScriptedSpeechEvent(redTeam[math.random(1, 3)], "VICTORY_TEAM", 0, "large")
SoundPlayScriptedSpeechEvent(referee, "DODGEBALL", math.random(1, 2))
SoundPlayScriptedSpeechEvent(Rudy, "M_3_01D", tKidSet[Kid_Index].speech1[Anim_Index].dialogue, "jumbo")
SoundPlayScriptedSpeechEvent(Rudy, "M_3_01D", tSantaTalk[Kid_Index].intro, "jumbo", true)
SoundPlayScriptedSpeechEvent(Rudy, "M_3_01D", tSantaTalk[Kid_Index].outtro, "jumbo", true)
SoundPlayScriptedSpeechEvent(russell, "M_1_B", 10, "large")
SoundPlayScriptedSpeechEvent(russell, "M_1_B", 12, "large")
SoundPlayScriptedSpeechEvent(russell, "M_1_B", 2, "large")
SoundPlayScriptedSpeechEvent(russell, "M_1_B", 8, "large")
SoundPlayScriptedSpeechEvent(santa, "M_3_01B", 10, "large")
SoundPlayScriptedSpeechEvent(santa, "M_3_01B", 21, "large")
SoundPlayScriptedSpeechEvent(santa, "M_3_01B", 38, "large")
SoundPlayScriptedSpeechEvent(santa, "M_3_01B", 39, "large")
SoundPlayScriptedSpeechEvent(santa, "M_3_01B", 43, "large")
SoundPlayScriptedSpeechEvent(santa, "M_3_01B", 45, "large")
SoundPlayScriptedSpeechEvent(santa, "M_3_01B", 46, "large")
SoundPlayScriptedSpeechEvent(santa, "M_3_01B", 47, "large")
SoundPlayScriptedSpeechEvent(santa, "M_3_01B", 7, "large")
SoundPlayScriptedSpeechEvent(santa, "M_3_01B", 8, "large")
SoundPlayScriptedSpeechEvent(santa, "M_3_01B", 9, "large")
SoundPlayScriptedSpeechEvent(ScenarioPed, "AMBIENT_SCENARIO", 1, "generic", false, true)
SoundPlayScriptedSpeechEvent(ScenarioPed, "AMBIENT_SCENARIO", 10, "generic", false, true)
SoundPlayScriptedSpeechEvent(ScenarioPed, "AMBIENT_SCENARIO", 11, "generic", false, true)
SoundPlayScriptedSpeechEvent(ScenarioPed, "AMBIENT_SCENARIO", 13, "generic", false, true)
SoundPlayScriptedSpeechEvent(ScenarioPed, "AMBIENT_SCENARIO", 142, "generic", false, true)
SoundPlayScriptedSpeechEvent(ScenarioPed, "AMBIENT_SCENARIO", 2, "generic", false, true)
SoundPlayScriptedSpeechEvent(ScenarioPed, "AMBIENT_SCENARIO", 3, "generic", false, true)
SoundPlayScriptedSpeechEvent(ScenarioPed, "AMBIENT_SCENARIO", 30, "generic", false, true)
SoundPlayScriptedSpeechEvent(ScenarioPed, "AMBIENT_SCENARIO", 34, "generic", false, true)
SoundPlayScriptedSpeechEvent(ScenarioPed, "AMBIENT_SCENARIO", 35, "generic", false, true)
SoundPlayScriptedSpeechEvent(ScenarioPed, "AMBIENT_SCENARIO", 37, "generic", false, true)
SoundPlayScriptedSpeechEvent(ScenarioPed, "AMBIENT_SCENARIO", 38, "generic", false, true)
SoundPlayScriptedSpeechEvent(ScenarioPed, "AMBIENT_SCENARIO", 39, "generic", false, true)
SoundPlayScriptedSpeechEvent(ScenarioPed, "AMBIENT_SCENARIO", 4, "generic", false, true)
SoundPlayScriptedSpeechEvent(ScenarioPed, "AMBIENT_SCENARIO", 41, "generic", false, true)
SoundPlayScriptedSpeechEvent(ScenarioPed, "AMBIENT_SCENARIO", 42, "generic", false, true)
SoundPlayScriptedSpeechEvent(ScenarioPed, "AMBIENT_SCENARIO", 43, "generic", false, true)
SoundPlayScriptedSpeechEvent(ScenarioPed, "AMBIENT_SCENARIO", 44, "generic", false, true)
SoundPlayScriptedSpeechEvent(ScenarioPed, "AMBIENT_SCENARIO", 46, "generic", false, true)
SoundPlayScriptedSpeechEvent(ScenarioPed, "AMBIENT_SCENARIO", 47, "generic", false, true)
SoundPlayScriptedSpeechEvent(ScenarioPed, "AMBIENT_SCENARIO", 48, "generic", false, true)
SoundPlayScriptedSpeechEvent(ScenarioPed, "AMBIENT_SCENARIO", 5, "generic", false, true)
SoundPlayScriptedSpeechEvent(ScenarioPed, "AMBIENT_SCENARIO", 54, "generic", false, true)
SoundPlayScriptedSpeechEvent(ScenarioPed, "AMBIENT_SCENARIO", 55, "generic", false, true)
SoundPlayScriptedSpeechEvent(ScenarioPed, "AMBIENT_SCENARIO", 57, "generic", false, true)
SoundPlayScriptedSpeechEvent(ScenarioPed, "AMBIENT_SCENARIO", 6, "generic", false, true)
SoundPlayScriptedSpeechEvent(ScenarioPed, "AMBIENT_SCENARIO", 68, "generic", false, true)
SoundPlayScriptedSpeechEvent(ScenarioPed, "AMBIENT_SCENARIO", 70, "generic", false, true)
SoundPlayScriptedSpeechEvent(ScenarioPed, "AMBIENT_SCENARIO", 75, "generic", false, true)
SoundPlayScriptedSpeechEvent(ScenarioPed, "AMBIENT_SCENARIO", 76, "generic", false, true)
SoundPlayScriptedSpeechEvent(ScenarioPed, "AMBIENT_SCENARIO", 77, "generic", false, true)
SoundPlayScriptedSpeechEvent(ScenarioPed, "AMBIENT_SCENARIO", 78, "generic", false, true)
SoundPlayScriptedSpeechEvent(ScenarioPed, "AMBIENT_SCENARIO", 79, "generic", false, true)
SoundPlayScriptedSpeechEvent(ScenarioPed, "AMBIENT_SCENARIO", 8, "generic", false, true)
SoundPlayScriptedSpeechEvent(ScenarioPed, "AMBIENT_SCENARIO", 81, "generic", false, true)
SoundPlayScriptedSpeechEvent(ScenarioPed, "AMBIENT_SCENARIO", 82, "generic", false, true)
SoundPlayScriptedSpeechEvent(ScenarioPed, "THANKS_JIMMY", 0, "speech")
SoundPlayScriptedSpeechEvent(shared.gBif, "FIGHT_INITIATE", 0, "large")
SoundPlayScriptedSpeechEvent(shared.gBif, "M_2_08", 53, "large")
SoundPlayScriptedSpeechEvent(shared.gGary, "M_1_11X1", 7)
SoundPlayScriptedSpeechEvent(shared.ped1, "WARNING_MINOR_INFRACTION", 0, "supersize")
SoundPlayScriptedSpeechEvent(shared.vendettaClerk, "M_2_01", 6, "SpeechX3")
SoundPlayScriptedSpeechEvent(shared.vendettaClerk, "STORE_VIOLENCE_RESPONSE", 0, "supersize")
SoundPlayScriptedSpeechEvent(sheet1Bruiser, "M_2_S04", 76)
SoundPlayScriptedSpeechEvent(sheet1Bruiser, "M_2_S04", 77)
SoundPlayScriptedSpeechEvent(sheet3Guard, "M_2_S04", 23, "large")
SoundPlayScriptedSpeechEvent(sheet3Guard, "M_2_S04", 25, "large")
SoundPlayScriptedSpeechEvent(sheet3Guard, "M_2_S04", 27, "large")
SoundPlayScriptedSpeechEvent(sheet3Guard, "M_2_S04", 30, "large")
SoundPlayScriptedSpeechEvent(sheet4Guard, "M_2_S04", 16, "supersize")
SoundPlayScriptedSpeechEvent(sheet4Guard, "M_2_S04", 18, "supersize")
SoundPlayScriptedSpeechEvent(sheet4Guard, "M_2_S04", 19, "large")
SoundPlayScriptedSpeechEvent(sheet4Guard, "M_2_S04", 21, "large")
SoundPlayScriptedSpeechEvent(sheet4Guard, "M_2_S04", 3, "supersize")
SoundPlayScriptedSpeechEvent(sheet4Guard, "M_2_S04", PickRandom(arriveTaunts), "large")
SoundPlayScriptedSpeechEvent(sheet4Guard, "M_2_S04", PickRandom(marbleTaunts))
SoundPlayScriptedSpeechEvent(shopTeach, "SHOP_CLASS", 10, "jumbo", true)
SoundPlayScriptedSpeechEvent(shopTeach, "SHOP_CLASS", 11, "jumbo", true)
SoundPlayScriptedSpeechEvent(shopTeach, "SHOP_CLASS", 12, "jumbo", true)
SoundPlayScriptedSpeechEvent(shopTeach, "SHOP_CLASS", 13, "jumbo", true)
SoundPlayScriptedSpeechEvent(shopTeach, "SHOP_CLASS", 14, "jumbo", true)
SoundPlayScriptedSpeechEvent(shopTeach, "SHOP_CLASS", 15, "jumbo", true)
SoundPlayScriptedSpeechEvent(shopTeach, "SHOP_CLASS", 7, "jumbo", true)
SoundPlayScriptedSpeechEvent(shopTeach, "SHOP_CLASS", 8, "jumbo", true)
SoundPlayScriptedSpeechEvent(shopTeach, "SHOP_CLASS", 9, "jumbo", true)
SoundPlayScriptedSpeechEvent(speaker, "M_2_S05", event, "jumbo")
SoundPlayScriptedSpeechEvent(speaker, "M_3_01", event, "jumbo")
SoundPlayScriptedSpeechEvent(speaker, "M_3_01", nEvent, "jumbo")
SoundPlayScriptedSpeechEvent(speaker, "M_3_05", nEvent, "jumbo")
SoundPlayScriptedSpeechEvent(speaker, mis, event, "jumbo")
SoundPlayScriptedSpeechEvent(speech, "VICTORY_TEAM", 0, "jumbo")
SoundPlayScriptedSpeechEvent(tableEntry.id, "M_4_06", gSpeechTable[tableEntry.speech].seePlayer, "supersize")
SoundPlayScriptedSpeechEvent(tblDatalogue[1].id, "M_2_S05", tblDatalogue[1].event, "jumbo")
SoundPlayScriptedSpeechEvent(tblDialogue[1].id, "M_3_01", tblDialogue[1].event, nVolumeKissers, false)
SoundPlayScriptedSpeechEvent(tblFirstGrease[5], "CONVERSATION_NEGATIVE_PERSONAL", 0, "large", false)
SoundPlayScriptedSpeechEvent(tblFirstGrease[5], "TAUNT_NEIGHBOURHOOD_GREASER", 0, "jumbo", false)
SoundPlayScriptedSpeechEvent(tblFirstGrease[6], "CONVERSATION_NEGATIVE_REPLY", 0, "large", false)
SoundPlayScriptedSpeechEvent(tblGoonText[nCurrentGoonRoute][1].ped, "M_1_04", tblGoonText[nCurrentGoonRoute][1].speechid)
SoundPlayScriptedSpeechEvent(tblJohnnyWH.id, "M_3_02", 10, "supersize")
SoundPlayScriptedSpeechEvent(tblOfTheRace.racers[nRacer].id, "TRASH_TALK_TEAM", 0, "jumbo", nil)
SoundPlayScriptedSpeechEvent(tblOfTheRace[nRacer].id, "TRASH_TALK_TEAM", 0, "jumbo", nil)
SoundPlayScriptedSpeechEvent(tblRaceInfo.race.countdown_ped.id, "M_2_04", 19, "supersize")
SoundPlayScriptedSpeechEvent(tblRaceInfo.race.countdown_ped.id, "M_2_04", 21, "supersize", true)
SoundPlayScriptedSpeechEvent(tblSecondGrease[2], "CONVERSATION_NEGATIVE_PERSONAL", 0, "medium", false)
SoundPlayScriptedSpeechEvent(tblSecondGrease[3], "CONVERSATION_NEGATIVE_REPLY", 0, "medium", false)
SoundPlayScriptedSpeechEvent(tblSecondGrease[4], "TAUNT_NEIGHBOURHOOD_GREASER", 0, "jumbo", false)
SoundPlayScriptedSpeechEvent(tblTad.id, "M_2_05", 11, "supersize")
SoundPlayScriptedSpeechEvent(tblTad.id, "M_2_05", 12, "supersize")
SoundPlayScriptedSpeechEvent(tblTad.id, "M_2_05", 13, "supersize")
SoundPlayScriptedSpeechEvent(tblTad.id, "M_2_05", 22, "supersize")
SoundPlayScriptedSpeechEvent(teacher, "ART", 10, "large", true)
SoundPlayScriptedSpeechEvent(teacher, "ART", 11, "jumbo", true)
SoundPlayScriptedSpeechEvent(teacher, "ART", gTeacherSpeech, "jumbo", true)
SoundPlayScriptedSpeechEvent(teacher, "ClassGeography", 10, "large", true)
SoundPlayScriptedSpeechEvent(teacher, "ClassGeography", 11, "large", true)
SoundPlayScriptedSpeechEvent(teacher, "ClassGeography", 12, "large", true)
SoundPlayScriptedSpeechEvent(teacher, "ClassGeography", 6, "large", true)
SoundPlayScriptedSpeechEvent(teacher, "ClassGeography", nCurrentClass + 5, "large", true)
SoundPlayScriptedSpeechEvent(teacher, "ClassGeography", nCurrentClass, "large", true)
SoundPlayScriptedSpeechEvent(teacher, "PHOTOGRAPHY", 1, "large", true)
SoundPlayScriptedSpeechEvent(teacher, "PHOTOGRAPHY", 10, "large", true)
SoundPlayScriptedSpeechEvent(teacher, "PHOTOGRAPHY", 3, "large", true)
SoundPlayScriptedSpeechEvent(teacher, "PHOTOGRAPHY", 5, "large", true)
SoundPlayScriptedSpeechEvent(teacher, "PHOTOGRAPHY", 6, "large", true)
SoundPlayScriptedSpeechEvent(teacher, "PHOTOGRAPHY", 8, "large", true)
SoundPlayScriptedSpeechEvent(teacher, "PHOTOGRAPHY", 9, "large", true)
soundret = SoundPlayScriptedSpeechEvent(id, bank, speechid)
soundret = SoundPlayScriptedSpeechEvent(id, bank, speechid, voltable)
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x54]
push edi
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
push 0x1
push esi
mov ebp, eax
call LuaParam::GetString
push 0x2
push esi
mov dword ptr [esp+0x2C], eax
call LuaParam::GetInt
push 0x0
push 0x4
push esi
mov dword ptr [esp+0x44], eax
call LuaParam::GetBool ; optional
push 0x0
push 0x5
push esi
mov byte ptr [esp+0x4C], al
call LuaParam::GetBool ; optional
push esi
mov byte ptr [esp+0x4C], al
xor edi, edi
mov dword ptr [esp+0x44], 0x4
call 0x73AEA0
add esp, 0x34
cmp eax, 0x4
jl 0x17
push 0x3
push esi
call LuaParam::GetString
push eax
call 0x59E170
add esp, 0xC
mov dword ptr [esp+0x10], eax
mov eax, dword ptr [0xAE74E8]
push eax
push 0x91F114
call 0x85F5DF
add esp, 0x8
test eax, eax
jz 0xB0
mov ebx, 0xAE74E8
mov ecx, dword ptr [ebx]
mov edx, dword ptr [esp+0x14]
push ecx
push edx
call 0x85F5DF
add esp, 0x8
test eax, eax
jz 0x32
add edi, 0x1
mov eax, dword ptr [edi*4+0xAE74E8]
lea ebx, ptr [edi*4+0xAE74E8]
push eax
push 0x91F114
call 0x85F5DF
add esp, 0x8
test eax, eax
jnz 0xFFFFFFCB
mov eax, 0x1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
--DebugPrint("SoundPlayScriptedSpeechEventWrapper() ped: " .. id .. " bank: " .. bank .. " speechid: " .. speechid .. " voltable: " .. tostring(voltable))
SoundPlayScriptedSpeechEventWrapper(buster, "M_5_03", 38, "genric", false, true)
SoundPlayScriptedSpeechEventWrapper(buster, "M_5_03", 99, "genric", false, true)
SoundPlayScriptedSpeechEventWrapper(gPlayer, "M_1_11X2", 102)
SoundPlayScriptedSpeechEventWrapper(gPlayer, "M_2_S06", 50)
SoundPlayScriptedSpeechEventWrapper(gPlayer, "M_3_04", 15)
SoundPlayScriptedSpeechEventWrapper(gPlayer, "M_4_01", 25)
SoundPlayScriptedSpeechEventWrapper(gPlayer, "M_4_05", 47)
SoundPlayScriptedSpeechEventWrapper(pedAlgie.id, "M_1_05", 21)
SoundPlayScriptedSpeechEventWrapper(pedAlgie.id, "M_1_05", 99)
SoundPlayScriptedSpeechEventWrapper(pedArtTeacher.id, "M_2_S06", 42, "jumbo")
SoundPlayScriptedSpeechEventWrapper(pedAsianGirl.id, "M_2_S06", 16)
SoundPlayScriptedSpeechEventWrapper(pedAsianGirl.id, "M_2_S06", 18)
SoundPlayScriptedSpeechEventWrapper(pedAsianGirl.id, "M_2_S06", 20)
SoundPlayScriptedSpeechEventWrapper(pedBeatrice.id, "M_2_S06", 29, "jumbo")
SoundPlayScriptedSpeechEventWrapper(pedBulliesRight02.id, "M_1_05", 4)
SoundPlayScriptedSpeechEventWrapper(pedBurton.id, "M_1_11X2", 113, "large")
SoundPlayScriptedSpeechEventWrapper(pedBurton.id, "M_1_11X2", 114, "large")
SoundPlayScriptedSpeechEventWrapper(pedBurton.id, "M_2_S06", 1, "large")
SoundPlayScriptedSpeechEventWrapper(pedBurtonStage3.id, "M_2_S06", 51)
SoundPlayScriptedSpeechEventWrapper(pedChad.id, "M_1_11X2", 99, "jumbo")
SoundPlayScriptedSpeechEventWrapper(pedChristyDorm.id, "M_4_01", 18, "large")
SoundPlayScriptedSpeechEventWrapper(pedChristyDorm.id, "M_4_01", 19, "large")
SoundPlayScriptedSpeechEventWrapper(pedConstantine.id, "M_1_02B", 97)
SoundPlayScriptedSpeechEventWrapper(pedConstantine.id, "M_1_02B", 98)
SoundPlayScriptedSpeechEventWrapper(pedConstantine.id, "M_1_02B", 99)
SoundPlayScriptedSpeechEventWrapper(pedCutBo.id, "M_4_05", 16, "jumbo")
SoundPlayScriptedSpeechEventWrapper(pedCutCasey.id, "M_4_05", 15, "jumbo")
SoundPlayScriptedSpeechEventWrapper(pedCutCornelius.id, "M_4_05", 14, "large")
SoundPlayScriptedSpeechEventWrapper(pedCutJuri.id, "M_4_05", 17, "jumbo")
SoundPlayScriptedSpeechEventWrapper(pedCutThad.id, "M_4_05", 8, "jumbo")
SoundPlayScriptedSpeechEventWrapper(pedEarnest.id, "M_4_01", 26)
SoundPlayScriptedSpeechEventWrapper(pedEunice.id, "M_1_02B", 101, "large")
SoundPlayScriptedSpeechEventWrapper(pedEunice.id, "M_1_02B", 95)
SoundPlayScriptedSpeechEventWrapper(pedEunice.id, "M_1_05", 23)
SoundPlayScriptedSpeechEventWrapper(pedEunice.id, "M_2_S06", 22)
SoundPlayScriptedSpeechEventWrapper(pedEunice.id, "M_2_S06", 33)
SoundPlayScriptedSpeechEventWrapper(pedEunice.id, "M_4_01", 15)
SoundPlayScriptedSpeechEventWrapper(pedEunice.id, "M_4_01", 17)
SoundPlayScriptedSpeechEventWrapper(pedFirstBully.id, "M_1_05", 3)
SoundPlayScriptedSpeechEventWrapper(pedGary.id, "M_1_11X2", 100)
SoundPlayScriptedSpeechEventWrapper(pedGary.id, "M_1_11X2", 101)
SoundPlayScriptedSpeechEventWrapper(pedGary.id, "M_1_11X2", 103)
SoundPlayScriptedSpeechEventWrapper(pedGary.id, "M_1_11X2", 104)
SoundPlayScriptedSpeechEventWrapper(pedGary.id, "M_1_11X2", 106)
SoundPlayScriptedSpeechEventWrapper(pedGary.id, "M_1_11X2", 45, "medium")
SoundPlayScriptedSpeechEventWrapper(pedGary.id, "M_1_11X2", 57, "medium")
SoundPlayScriptedSpeechEventWrapper(pedGary.id, "M_1_11X2", 92, "large")
SoundPlayScriptedSpeechEventWrapper(pedGary.id, "M_1_11X2", 93, "large")
SoundPlayScriptedSpeechEventWrapper(pedGary.id, "M_1_11X2", 97, "large")
SoundPlayScriptedSpeechEventWrapper(pedGary.id, "M_1_11X2", 98, "large")
SoundPlayScriptedSpeechEventWrapper(pedGary.id, "WHERES_YOUR_COSTUME", 121)
SoundPlayScriptedSpeechEventWrapper(pedGary.id, "WHERES_YOUR_COSTUME", 122)
SoundPlayScriptedSpeechEventWrapper(pedGirlsShower_01.id, "M_2_S06", 12)
SoundPlayScriptedSpeechEventWrapper(pedGirlsShower_01.id, "M_2_S06", 75, "large")
SoundPlayScriptedSpeechEventWrapper(pedGirlsShower_02.id, "M_2_S06", 11)
SoundPlayScriptedSpeechEventWrapper(pedGirlsShower_02.id, "M_2_S06", 75, "large")
SoundPlayScriptedSpeechEventWrapper(pedGirlsShower_02.id, "M_2_S06", 76, "large")
SoundPlayScriptedSpeechEventWrapper(pedGreaser01.id, "M_3_04", 21, "supersize", true)
SoundPlayScriptedSpeechEventWrapper(pedGreaser01.id, "M_3_S03", 8, "large")
SoundPlayScriptedSpeechEventWrapper(pedGreaser02.id, "M_3_04", 22, "medium")
SoundPlayScriptedSpeechEventWrapper(pedHattrick.id, "M_3_S03", 14, "large")
SoundPlayScriptedSpeechEventWrapper(pedHattrick.id, "M_3_S03", 19, "large")
SoundPlayScriptedSpeechEventWrapper(pedHattrick.id, "M_3_S03", 46, "large")
SoundPlayScriptedSpeechEventWrapper(pedJockBathroomSecondFloor02.id, "M_1_05", 22, "large")
SoundPlayScriptedSpeechEventWrapper(pedJockBathroomSecondFloor02.id, "M_1_05", 40, "large")
SoundPlayScriptedSpeechEventWrapper(pedMandyBedroom.id, "M_4_01", 10, "large")
SoundPlayScriptedSpeechEventWrapper(pedMandyBedroom.id, "M_4_01", 11, "large")
SoundPlayScriptedSpeechEventWrapper(pedMandyBedroom.id, "M_4_01", 90, "large")
SoundPlayScriptedSpeechEventWrapper(pedMandyGym.id, "M_4_01", 5, "large")
SoundPlayScriptedSpeechEventWrapper(pedMandyGym.id, "M_4_01", 7, "large")
SoundPlayScriptedSpeechEventWrapper(pedMandyGym.id, "M_4_01", 91, "large")
SoundPlayScriptedSpeechEventWrapper(pedMandyGym.id, "M_4_01", 92, "large")
SoundPlayScriptedSpeechEventWrapper(pedMandyShower.id, "M_4_01", 9, "large")
SoundPlayScriptedSpeechEventWrapper(pedPete.id, "M_1_11X2", 94, "large")
SoundPlayScriptedSpeechEventWrapper(pedPete.id, "M_1_11X2", 97, "large")
SoundPlayScriptedSpeechEventWrapper(pedPinky.id, "M_2_G2", 37)
SoundPlayScriptedSpeechEventWrapper(pedPinky.id, "M_2_G2", 44)
SoundPlayScriptedSpeechEventWrapper(pedPinkyUW.id, "M_2_S06", 30, "jumbo")
SoundPlayScriptedSpeechEventWrapper(pedPrep.id, "M_3_S03", 35, "large")
SoundPlayScriptedSpeechEventWrapper(pedPrep.id, "M_3_S03", 37, "medium")
SoundPlayScriptedSpeechEventWrapper(pedPrep.id, "M_3_S03", 39, "medium")
SoundPlayScriptedSpeechEventWrapper(pedSexyGirl.id, "M_2_S06", 15)
SoundPlayScriptedSpeechEventWrapper(pedSexyGirl.id, "M_2_S06", 17)
SoundPlayScriptedSpeechEventWrapper(pedSexyGirl.id, "M_2_S06", 19)
SoundPlayScriptedSpeechEventWrapper(pedSexyGirl.id, "M_2_S06", 21)
SoundPlayScriptedSpeechEventWrapper(pedStg1Pref.id, "M_2_S06", 2, "jumbo")
SoundPlayScriptedSpeechEventWrapper(pedStg3Girl02.id, "M_2_S06", 34, "large")
SoundPlayScriptedSpeechEventWrapper(pedStg3Girl03.id, "M_2_S06", 32, "large")
SoundPlayScriptedSpeechEventWrapper(pedZoe.id, "M_5_G5", 1, "large")
SoundPlayScriptedSpeechEventWrapper(shared.gdormHeadID, "M_2_S06", 40, "medium")
SoundPlayScriptedSpeechEventWrapper(shared.gdormHeadID, "M_2_S06", 45, "large")
SoundPlayScriptedSpeechEventWrapper(shared.gdormHeadID, "M_4_01", 40, "medium")
SoundPlayScriptedSpeechEventWrapper(shared.gdormHeadID, "M_4_01", 45, "large")
SoundPlayScriptedSpeechEventWrapper(shared.gGary, "M_1_11X1", 6)
SoundPlayScriptedSpeechEventWrapper(shared.gGary, "M_1_11X1", 9)
SoundPlayScriptedSpeechEventWrapper(shared.gPetey, "M_1_11X1", 10)
SoundPlayScriptedSpeechEventWrapper(shared.gPetey, "M_1_11X1", 8)
function SoundPlayScriptedSpeechEventWrapper(id, bank, speechid, voltable)
--DebugPrint("SoundPlayScriptedSpeechEventWrapper() ped: " .. id .. " bank: " .. bank .. " speechid: " .. speechid .. " voltable: " .. tostring(voltable))
--DebugPrint("Time is now: " .. GetTimer())
if voltable ~= nil then
soundret = SoundPlayScriptedSpeechEvent(id, bank, speechid, voltable)
else
soundret = SoundPlayScriptedSpeechEvent(id, bank, speechid)
end
if soundret < 0 then
--DebugPrint("SoundPlayScriptedSpeechEvent had error: " .. soundret)
end
end
SoundPlayScriptedSpeechEvent_2D("BUS", 1)
SoundPlayScriptedSpeechEvent_2D("BUS", 2)
SoundPlayScriptedSpeechEvent_2D("M_2_09", 1)
SoundPlayScriptedSpeechEvent_2D("M_2_09", 10)
SoundPlayScriptedSpeechEvent_2D("M_2_09", 2)
SoundPlayScriptedSpeechEvent_2D("M_2_09", 3)
SoundPlayScriptedSpeechEvent_2D("M_2_09", 30)
SoundPlayScriptedSpeechEvent_2D("M_2_09", 4)
SoundPlayScriptedSpeechEvent_2D("M_3_B_2D", 3)
SoundPlayScriptedSpeechEvent_2D("M_3_B_2D", 4)
SoundPlayScriptedSpeechEvent_2D("M_3_B_2D", 4, "supersize")
SoundPlayScriptedSpeechEvent_2D("M_4_02_2D", 19)
SoundPlayScriptedSpeechEvent_2D("M_4_02_2D", 21)
SoundPlayScriptedSpeechEvent_2D("M_4_02_2D", 31)
SoundPlayScriptedSpeechEvent_2D("M_4_02_2D", 36)
SoundPlayScriptedSpeechEvent_2D("M_4_03_2D", 16)
SoundPlayScriptedSpeechEvent_2D("M_4_03_2D", 17)
SoundPlayScriptedSpeechEvent_2D("M_4_03_2D", 8)
SoundPlayScriptedSpeechEvent_2D("PA_CHRISTMAS_JIMMY", 0)
SoundPlayScriptedSpeechEvent_2D("PA_JIMMY_OFFICE_STRONG", 0)
sub esp, 0x34
push ebx
mov ebx, dword ptr [esp+0x3C]
push ebp
push esi
push edi
push 0x0
push ebx
call LuaParam::GetString
push 0x1
push ebx
mov ebp, eax
call LuaParam::GetInt
mov dword ptr [esp+0x20], eax
mov eax, dword ptr [0xAE74E8]
push eax
push 0x91F114
xor esi, esi
call 0x85F5DF
add esp, 0x18
test eax, eax
jz 0x7B
mov edi, 0xAE74E8
nop
mov ecx, dword ptr [edi]
push ecx
push ebp
call 0x85F5DF
add esp, 0x8
test eax, eax
jz 0x32
add esi, 0x1
mov edx, dword ptr [esi*4+0xAE74E8]
lea edi, ptr [esi*4+0xAE74E8]
push edx
push 0x91F114
call 0x85F5DF
add esp, 0x8
test eax, eax
jnz 0xFFFFFFCF
pop edi
pop esi
pop ebp
mov eax, 0x1
pop ebx
add esp, 0x34
ret
SoundPlayStream("Arc_FlyingSquirrelMenu.rsm", 1, 0, 0)
SoundPlayStream("Arc_FlyingSquirrelMenu.rsm", 1, 9500, 2500)
SoundPlayStream("Arc_MonkeyFlingGame01.rsm", 1, 0, 0)
SoundPlayStream("Arc_MonkeyFlingMenu01.rsm", 1)
SoundPlayStream("Arc_MonkeyFlingMenu01.rsm", 1, 0, 0)
SoundPlayStream("Arc_SUMO_Game01.rsm", 1, 0, 1.5)
SoundPlayStream("Arc_SUMO_Menu.rsm", 1, 0, 0)
SoundPlayStream("ArcRaceMXmidi02Drive01.rsm", 1)
SoundPlayStream("ArcRaceMXmidi02Drive02.rsm", 1)
SoundPlayStream("ArcRaceMXmidi02Drive03.rsm", 1)
SoundPlayStream("ArcRaceMXmidi02SPLASH.rsm", 1)
SoundPlayStream("MS_3B_JohhnyV_NIS.rsm", 0.6, 0, 500)
SoundPlayStream("MS_5-05_MeetZoe_NIS.rsm", 0.4, 1000, 500)
SoundPlayStream("MS_6B_EndlessSummerCreditsNIS.rsm", 1, 0, 2000)
SoundPlayStream("MS_ActionBeatBreak.rsm", 0.7, 0, 0)
SoundPlayStream("MS_ActionHigh_NISReturn.rsm", 0.7, 0)
SoundPlayStream("MS_ArtClass.rsm", 0.2)
SoundPlayStream("MS_BikeChaseHigh.rsm", 0.6)
SoundPlayStream("MS_BikeChaseMid.rsm", 0.6)
SoundPlayStream("MS_BikeChaseMid.rsm", MUSIC_DEFAULT_VOLUME)
SoundPlayStream("MS_BikeFastHigh.rsm", MUSIC_DEFAULT_VOLUME)
SoundPlayStream("MS_BikeFastLow.rsm", MUSIC_DEFAULT_VOLUME)
SoundPlayStream("MS_BikeFastMid.rsm", MUSIC_DEFAULT_VOLUME)
SoundPlayStream("MS_BikeFun_NIS.rsm", 0.5, 0, 2000)
SoundPlayStream("MS_BiologyClass.rsm", 0.15, 0, 0)
SoundPlayStream("MS_Candidate.rsm", 0.4)
SoundPlayStream("MS_CarnivalFunhouseAmbient.rsm", 0.6)
SoundPlayStream("MS_ChemistryClass.rsm", 0.25, 2, 1)
SoundPlayStream("MS_Confrontation_NIS.rsm", 0.4, 1000, 1000)
SoundPlayStream("MS_DestructionVandalismHigh.rsm", 0.7, 500, 500)
SoundPlayStream("MS_DestructionVandalismMid.rsm", MUSIC_DEFAULT_VOLUME)
SoundPlayStream("MS_DishonorableFight.rsm", 0.7)
SoundPlayStream("MS_EnglishClass.rsm", 0.15, 0, 0)
SoundPlayStream("MS_EpicConfrantation_NIS.rsm", 0.6, 0, 500)
SoundPlayStream("MS_FightingJohnnyVincentBikeRide.rsm", 0.8, 0, 500)
SoundPlayStream("MS_FightingJohnnyVincentBossFight.rsm", 0.7, 500, 250)
SoundPlayStream("MS_FightingJohnnyVincentFight.rsm", 0.8, 0, 500)
SoundPlayStream("MS_FightingPreps.rsm", MUSIC_DEFAULT_VOLUME)
SoundPlayStream("MS_FinalShowdown03High.rsm", 0.75)
SoundPlayStream("MS_FinalShowdown03Low.rsm", 0.75)
SoundPlayStream("MS_FinalShowdown03Mid.rsm", 0.75)
SoundPlayStream("MS_FinalShowdownHigh.rsm", 0.7, 500, 500)
SoundPlayStream("MS_FinalShowdownMid.rsm", 0.35, 500, 500)
SoundPlayStream("MS_FinalShowdownMid.rsm", 0.6, 500, 500)
SoundPlayStream("MS_GeographyClass.rsm", 0.15, 0, 0)
SoundPlayStream("MS_GymClass.rsm", 0.5, 2, 1)
SoundPlayStream("MS_GymClass.rsm", 0.6, 2, 1)
SoundPlayStream("MS_JockBossBattle.rsm", 1)
SoundPlayStream("MS_MathClass.rsm", 0.15, 0, 0)
SoundPlayStream("MS_Misbehaving_NISPrankInfo.rsm", 0.35, 0, 500)
SoundPlayStream("MS_Misbehaving_NISPrankSucess.rsm", 0.5, 0, 1000)
SoundPlayStream("MS_Misbehaving_NISPrankSucess.rsm", 0.5, 0, 250)
SoundPlayStream("MS_Misbehaving_NISPrankSucess.rsm", 0.5, 250, 250)
SoundPlayStream("MS_MisbehavingHigh.rsm", 0.5, 0, 1000)
SoundPlayStream("MS_PhotographyClass.rsm", 0.25, 2, 1)
SoundPlayStream("MS_RussellInTheHole.rsm", 0.7)
SoundPlayStream("MS_RussellInTheHole.rsm", 0.7, 500, 0)
SoundPlayStream("MS_ShopClass.rsm", 0.45, 2, 1)
SoundPlayStream("MS_ShowdownAtThePlantHigh.rsm", 0.6, 500, 0)
SoundPlayStream("MS_ShowdownAtThePlantLow.rsm", 0.5, 500, 0)
SoundPlayStream("MS_StealthHigh.rsm", 0.5, 0, 1000)
SoundPlayStream("zzzPat_limbo.rsm", 0.25)
SoundPlayStream(gKartThemeMusic, 0.75)
SoundPlayStream(gMusic, 0.6)
SoundPlayStream(gMusicToPlay, 0.7)
SoundPlayStream(race.soundTrack, race.volume)
SoundPlayStream(tblMusicStreams[randomizer], 1)
SoundPlayStream(tblMusicStreams[randomizer], 1, 0, 0)
push ecx
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x14]
push edi
push 0x0
push esi
call LuaParam::GetString
push 0x1
push esi
mov edi, eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x20], st
push 0x9C4
push 0x2
push esi
call LuaParam::GetInt ; optional
push 0x7D0
push 0x3
push esi
mov ebx, eax
call LuaParam::GetInt ; optional
push 0x1
push edi
mov ebp, eax
call 0x5A7D60
mov ecx, dword ptr [0xCF70D4]
add esp, 0x30
mov esi, eax
push esi
call 0x5A6DD0
fld st, dword ptr [esp+0x10]
push ebp
push ebx
push 0x6
push 0x1
push ecx
fstp dword ptr [esp], st
push eax
push esi
mov ecx, 0xCF42D4
call 0x590470
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
SoundPlayStreamNoLoop("Arc_FlyingSquirrelLose.rsm", 1)
SoundPlayStreamNoLoop("Arc_MonkeyFlingLose.rsm", 1)
SoundPlayStreamNoLoop("Arc_SUMO_Lose.rsm", 1, 0)
SoundPlayStreamNoLoop("ArcRaceMXmidi02LOSE01.rsm", 1)
SoundPlayStreamNoLoop("ArcRaceMXmidi02WIN.rsm", 1)
SoundPlayStreamNoLoop("MS_3-B_ENDTAG.rsm", 0.7, 0, 0)
SoundPlayStreamNoLoop("MS_EpicConfrontationEnding.rsm", 0.6, 0, 500)
push ecx
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x14]
push edi
push 0x0
push esi
call LuaParam::GetString
push 0x1
push esi
mov edi, eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x20], st
push 0x9C4
push 0x2
push esi
call LuaParam::GetInt ; optional
push 0x7D0
push 0x3
push esi
mov ebx, eax
call LuaParam::GetInt ; optional
push 0x1
push edi
mov ebp, eax
call 0x5A7D60
mov ecx, dword ptr [0xCF70D4]
add esp, 0x30
mov esi, eax
push esi
call 0x5A6DD0
fld st, dword ptr [esp+0x10]
push ebp
push ebx
push 0x6
push 0x0
push ecx
fstp dword ptr [esp], st
push eax
push esi
mov ecx, 0xCF42D4
call 0x590470
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
SoundPreloadSpeech(gPlayer, "NARRATION", 101, "supersize", true)
SoundPreloadSpeech(gPlayer, "NARRATION", 102, "supersize", true)
SoundPreloadSpeech(gPlayer, "NARRATION", 103, "supersize", true)
SoundPreloadSpeech(gPlayer, "NARRATION", 104, "supersize", true)
SoundPreloadSpeech(gPlayer, "NARRATION", 105, "supersize", true)
SoundPreloadSpeech(gPlayer, "NARRATION", 106, "supersize", true)
SoundPreloadSpeech(gPlayer, "NARRATION", 107, "supersize", true)
SoundPreloadSpeech(gPlayer, "NARRATION", 108, "supersize", true)
SoundPreloadSpeech(gPlayer, "NARRATION", 109, "supersize", true)
SoundPreloadSpeech(gPlayer, "NARRATION", 110, "supersize", true)
SoundPreloadSpeech(gPlayer, "NARRATION", 111, "supersize", true)
SoundPreloadSpeech(gPlayer, "NARRATION", 112, "supersize", true)
SoundPreloadSpeech(gPlayer, "NARRATION", 113, "supersize", true)
SoundPreloadSpeech(gPlayer, "NARRATION", 114, "supersize", true)
SoundPreloadSpeech(gPlayer, "NARRATION", 115, "supersize", true)
SoundPreloadSpeech(gPlayer, "NARRATION", 116, "supersize", true)
SoundPreloadSpeech(gPlayer, "NARRATION", 117, "supersize", true)
SoundPreloadSpeech(gPlayer, "NARRATION", 120, "supersize", true)
SoundPreloadSpeech(gPlayer, "NARRATION", 121, "supersize", true)
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x54]
push edi
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
push 0x1
push esi
mov ebp, eax
call LuaParam::GetString
push 0x2
push esi
mov dword ptr [esp+0x2C], eax
call LuaParam::GetInt
push 0x0
push 0x4
push esi
mov dword ptr [esp+0x44], eax
call LuaParam::GetBool ; optional
push 0x0
push 0x5
push esi
mov byte ptr [esp+0x4C], al
call LuaParam::GetBool ; optional
push esi
mov byte ptr [esp+0x4C], al
xor edi, edi
mov dword ptr [esp+0x44], 0x4
call 0x73AEA0
add esp, 0x34
cmp eax, 0x4
jl 0x17
push 0x3
push esi
call LuaParam::GetString
push eax
call 0x59E170
add esp, 0xC
mov dword ptr [esp+0x10], eax
mov eax, dword ptr [0xAE74E8]
push eax
push 0x91F114
call 0x85F5DF
add esp, 0x8
test eax, eax
jz 0xE8
mov ebx, 0xAE74E8
mov ecx, dword ptr [ebx]
mov edx, dword ptr [esp+0x14]
push ecx
push edx
call 0x85F5DF
add esp, 0x8
test eax, eax
jz 0x32
add edi, 0x1
mov eax, dword ptr [edi*4+0xAE74E8]
lea ebx, ptr [edi*4+0xAE74E8]
push eax
push 0x91F114
call 0x85F5DF
add esp, 0x8
test eax, eax
jnz 0xFFFFFFCB
mov eax, 0x1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
-- never used
push ecx
push ebx
push esi
mov esi, dword ptr [esp+0x10]
push edi
push 0x0
push esi
call LuaParam::GetString
push 0x1
push esi
mov edi, eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x1C], st
push 0x1F4
push 0x2
push esi
call LuaParam::GetInt ; optional
push 0x7D0
push 0x3
push esi
mov ebx, eax
call LuaParam::GetInt ; optional
fld st, dword ptr [esp+0x34]
add esp, 0x28
push eax
push ebx
push 0x6
push 0x1
push ecx
fstp dword ptr [esp], st
push edi
mov ecx, 0xCF42D4
call 0x591380
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
SoundPreloadStreamNoLoop("1-06_HoboNIS.rsm", 1)
SoundPreloadStreamNoLoop("5-05_NIS_PottyFall.rsm", 1, 0, 500)
SoundPreloadStreamNoLoop("5-06_Garage_NIS.rsm", 1)
SoundPreloadStreamNoLoop("5-06_HarleyLeavesExplode_NIS.rsm", 1)
push ecx
push ebx
push esi
mov esi, dword ptr [esp+0x10]
push edi
push 0x0
push esi
call LuaParam::GetString
push 0x1
push esi
mov edi, eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x1C], st
push 0x1F4
push 0x2
push esi
call LuaParam::GetInt ; optional
push 0x7D0
push 0x3
push esi
mov ebx, eax
call LuaParam::GetInt ; optional
fld st, dword ptr [esp+0x34]
add esp, 0x28
push eax
push ebx
push 0x6
push 0x0
push ecx
fstp dword ptr [esp], st
push edi
mov ecx, 0xCF42D4
call 0x591380
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
SoundRemoveAllQueuedSpeech(edna, true)
SoundRemoveAllQueuedSpeech(fCasey, true)
SoundRemoveAllQueuedSpeech(gGary, true)
SoundRemoveAllQueuedSpeech(gNerds[1].id, true)
SoundRemoveAllQueuedSpeech(gPlayer)
SoundRemoveAllQueuedSpeech(idBucky)
SoundRemoveAllQueuedSpeech(jock.id, true)
SoundRemoveAllQueuedSpeech(pedPinky.id, true)
SoundRemoveAllQueuedSpeech(tFirstFloorTable.gord.id, true)
SoundRemoveAllQueuedSpeech(tFirstFloorTable.parker.id, true)
SoundRemoveAllQueuedSpeech(tSecondFloorTable.justin.id, true)
SoundRemoveAllQueuedSpeech(tSecondFloorTable.tad.id, true)
SoundRemoveAllQueuedSpeech(tThirdFloorTable.bryce.id, true)
SoundRemoveAllQueuedSpeech(tThirdFloorTable.chad.id, true)
SoundRemoveAllQueuedSpeech(watts, true)
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0xFFFFFFFF
push 0x0
push edi
call LuaParam::GetInt ; optional
add esp, 0xC
cmp eax, 0xFFFFFFFF
jz 0x18
push ecx
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
mov esi, eax
jmp 0x4
xor esi, esi
push 0x0
push 0x1
push edi
call LuaParam::GetBool ; optional
add esp, 0xC
test esi, esi
jz 0x30
test al, al
jz 0x16
push 0x19
push 0x0
push esi
mov ecx, 0xCF4378
call 0x5A59D0
xor eax, eax
pop edi
pop esi
ret
movsx eax, word ptr [esi+0x10E]
push 0xFFFFFFFF
push 0x0
push eax
mov ecx, 0xCF4E10
call 0x59F8D0
pop edi
xor eax, eax
pop esi
ret
-- never used
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, 0xCF4378
call 0x8A20A0
xor eax, eax
ret
SoundRestartAmbiences()
mov eax, dword ptr [0xCF4374]
mov byte ptr [eax], 0x0
mov ecx, dword ptr [0xCF4278]
mov byte ptr [ecx+0xA8], 0x0
xor eax, eax
ret
SoundRestartPA()
mov eax, dword ptr [0xCF4374]
mov byte ptr [eax+0x1], 0x0
xor eax, eax
ret
SoundSetAudioFocusCamera()
mov byte ptr [0xCF3DA0], 0x0
mov byte ptr [0xCF3DA1], 0x1
xor eax, eax
ret
SoundSetAudioFocusPlayer()
mov byte ptr [0xCF3DA0], 0x1
mov byte ptr [0xCF3DA1], 0x0
xor eax, eax
ret
-- never used
mov eax, dword ptr [esp+0x4]
push 0xFFFFFFFF
push 0x0
push eax
call LuaParam::GetInt ; optional
mov dword ptr [0xAE6284], eax
add esp, 0xC
xor eax, eax
ret
SoundSetHighIntensityStream("MS_ActionHigh.rsm", 0.7, 500, 1000)
SoundSetHighIntensityStream("MS_ActionHigh.rsm", MUSIC_DEFAULT_VOLUME)
SoundSetHighIntensityStream("MS_BikeChaseHigh.rsm", 0.6)
SoundSetHighIntensityStream("MS_BikeFunHigh.rsm", 0.55, 0, 2000)
SoundSetHighIntensityStream("MS_BikeFunHigh.rsm", MUSIC_DEFAULT_VOLUME)
SoundSetHighIntensityStream("MS_EpicConfrontationHigh.rsm", 0.7)
SoundSetHighIntensityStream("MS_FightHigh02.rsm", 0.7, 0, 0)
SoundSetHighIntensityStream("MS_FightingDropouts.rsm", 0.7)
SoundSetHighIntensityStream("MS_FightingPreps.rsm", MUSIC_DEFAULT_VOLUME)
SoundSetHighIntensityStream("MS_FootStealthHigh.rsm", 0.7)
SoundSetHighIntensityStream("MS_FootStealthHigh.rsm", MUSIC_DEFAULT_VOLUME)
SoundSetHighIntensityStream("MS_FriendshipAllyHigh.rsm", MUSIC_DEFAULT_VOLUME)
SoundSetHighIntensityStream("MS_FunHigh.rsm", 0.5, 0, 500)
SoundSetHighIntensityStream("MS_FunHigh.rsm", MUSIC_DEFAULT_VOLUME)
SoundSetHighIntensityStream("MS_HalloweenHigh.rsm", 1)
SoundSetHighIntensityStream("MS_InTroubleHigh.rsm", 0.8)
SoundSetHighIntensityStream("MS_KidsPlay.rsm", RUDY_DEFAULT_VOLUME)
SoundSetHighIntensityStream("MS_MisbehavingHigh.rsm", MUSIC_DEFAULT_VOLUME)
SoundSetHighIntensityStream("MS_RunningHigh.rsm", 0.5)
SoundSetHighIntensityStream("MS_RunningHigh.rsm", MUSIC_DEFAULT_VOLUME)
SoundSetHighIntensityStream("MS_SearchingHigh.rsm", 0.7)
SoundSetHighIntensityStream("MS_SearchingHigh.rsm", 0.8)
SoundSetHighIntensityStream("MS_SearchingHigh.rsm", MUSIC_DEFAULT_VOLUME)
SoundSetHighIntensityStream("MS_StealthHigh.rsm", 0.5)
SoundSetHighIntensityStream("MS_StealthHigh.rsm", 0.7)
SoundSetHighIntensityStream("MS_StealthHigh.rsm", MUSIC_DEFAULT_VOLUME)
SoundSetHighIntensityStream("MS_StreetFightLargeHigh_Boxing.rsm", 0.7)
SoundSetHighIntensityStream("MS_TenementsMid.rsm", 0.6)
SoundSetHighIntensityStream("MS_WIldstyleHigh.rsm", MUSIC_DEFAULT_VOLUME)
SoundSetHighIntensityStream("MS_WildstyleHigh.rsm", MUSIC_DEFAULT_VOLUME)
SoundSetHighIntensityStream("MS_XmasBellsRudyHigh.rsm", 0.9, 0, 500)
SoundSetHighIntensityStream("MS_XmasComeRudyHigh.rsm", 0.9, 0, 500)
SoundSetHighIntensityStream("MS_XmasJingleMiracleHigh.rsm", 0.9, 0, 500)
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetString
push 0x1
push esi
mov edi, eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x18], st
fld st, dword ptr [esp+0x18]
add esp, 0xC
fstp dword ptr [esp], st
push 0x1
push edi
call 0x5A7D60
add esp, 0x8
push eax
push 0x2
call 0x5922B0
add esp, 0xC
pop edi
xor eax, eax
pop esi
pop ecx
ret
SoundSetMidIntensityStream("MS_ActionMid.rsm", MUSIC_DEFAULT_VOLUME)
SoundSetMidIntensityStream("MS_BikeChaseMid.rsm", 0.6)
SoundSetMidIntensityStream("MS_BikeFunMid.rsm", 0.55, 0, 2000)
SoundSetMidIntensityStream("MS_EpicConfrontationMid.rsm", 0.7)
SoundSetMidIntensityStream("MS_FootStealthMid.rsm", 0.6)
SoundSetMidIntensityStream("MS_FootStealthMid.rsm", MUSIC_DEFAULT_VOLUME)
SoundSetMidIntensityStream("MS_FriendshipAllyMid.rsm", MUSIC_DEFAULT_VOLUME)
SoundSetMidIntensityStream("MS_FunMid.rsm", 0.5, 0, 500)
SoundSetMidIntensityStream("MS_FunMid.rsm", MUSIC_DEFAULT_VOLUME)
SoundSetMidIntensityStream("MS_HalloweenMid.rsm", 0.6)
SoundSetMidIntensityStream("MS_KidsPlay.rsm", RUDY_DEFAULT_VOLUME)
SoundSetMidIntensityStream("MS_MisbehavingMid.rsm", MUSIC_DEFAULT_VOLUME)
SoundSetMidIntensityStream("MS_RunningMid.rsm", 0.6)
SoundSetMidIntensityStream("MS_RunningMid.rsm", MUSIC_DEFAULT_VOLUME)
SoundSetMidIntensityStream("MS_SearchingMid.rsm", 0.6)
SoundSetMidIntensityStream("MS_SearchingMid.rsm", 0.8)
SoundSetMidIntensityStream("MS_SearchingMid.rsm", MUSIC_DEFAULT_VOLUME)
SoundSetMidIntensityStream("MS_StealthMid.rsm", 0.4)
SoundSetMidIntensityStream("MS_StealthMid.rsm", 0.6)
SoundSetMidIntensityStream("MS_StealthMid.rsm", MUSIC_DEFAULT_VOLUME)
SoundSetMidIntensityStream("MS_StreetFightLargeMid_Boxing.rsm", 0.7)
SoundSetMidIntensityStream("MS_WildstyleMid.rsm", MUSIC_DEFAULT_VOLUME)
SoundSetMidIntensityStream("MS_WIldstyleMid.rsm", MUSIC_DEFAULT_VOLUME)
SoundSetMidIntensityStream("MS_XmasBellsRudyHigh.rsm", 0.9, 0, 500)
SoundSetMidIntensityStream("MS_XmasBellsRudyMid.rsm", 0.9, 0, 500)
SoundSetMidIntensityStream("MS_XmasComeRudyMid.rsm", 1, 0, 500)
SoundSetMidIntensityStream("MS_XmasJingleMiracleMid.rsm", 0.9, 0, 500)
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetString
push 0x1
push esi
mov edi, eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x18], st
fld st, dword ptr [esp+0x18]
add esp, 0xC
fstp dword ptr [esp], st
push 0x1
push edi
call 0x5A7D60
add esp, 0x8
push eax
push 0x1
call 0x5922B0
add esp, 0xC
pop edi
xor eax, eax
pop esi
pop ecx
ret
-- never used
push ecx
push ebx
push esi
mov esi, dword ptr [esp+0x10]
push edi
push 0x0
push esi
call LuaParam::GetString
push 0x1
push esi
mov edi, eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x1C], st
push 0x2
push esi
call LuaParam::GetInt
push 0x3
push esi
mov ebx, eax
call LuaParam::GetInt
fld st, dword ptr [esp+0x2C]
add esp, 0x20
push eax
push ebx
push ecx
mov ecx, dword ptr [0xCF4374]
fstp dword ptr [esp], st
push edi
call 0x593D80
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
-- never used
xor eax, eax
ret
-- never used
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, 0xCF4378
call 0x8A20A0
xor eax, eax
ret
--print("SoundSpeechPlaying() == true")
--print(SoundSpeechPlaying())
elseif bNerdSpeaking == 2 and not SoundSpeechPlaying(gNerds[2]) and not bWalkingAway then
elseif not PedIsValid(event.mSpeechPed) or SoundSpeechPlaying() == false or F_SkipOrNot(true) then
elseif not SoundSpeechPlaying(idBurton) then
elseif not SoundSpeechPlaying(idNemesis) and DistanceBetweenCoords2d(X1, Y1, X2, Y2) <= 6.9 then
elseif speech == 2 and not SoundSpeechPlaying(phillips) then
elseif speech == 3 and not SoundSpeechPlaying(gPlayer) then
if 0 < table.getn(tblDatalogue) and CounterGetCurrent() < CounterGetMax() and not SoundSpeechPlaying(edna) and not SoundSpeechPlaying(watts) and bDinnerStatus ~= DINNER_FAIL then
if 0 < table.getn(tblDialogue) and PedIsValid(tblDialogue[1].id) and not SoundSpeechPlaying(gord) and not SoundSpeechPlaying(lola) then
if bBurtonSeesHit and not SoundSpeechPlaying(idBurton) then
if bHandHolding and not bPlayerIsSpotted and PedIsValid(gord) and PedIsValid(lola) and GetTimer() - nTimerSpeech >= 6500 and not SoundSpeechPlaying(gord) and not SoundSpeechPlaying(lola) then
if event.mSpeechPed and PedIsValid(event.mSpeechPed) and SoundSpeechPlaying(event.mSpeechPed) == true then
if math.random(1, 100) >= 50 and not SoundSpeechPlaying(gGary) then
if not SoundSpeechPlaying(gKeyMaster) and not F_PedIsDead(gKeyMaster) then
if not SoundSpeechPlaying(gNerds[1]) and not bWalkingAway then
if not SoundSpeechPlaying(idNemesis) and DistanceBetweenCoords2d(X1, Y1, X2, Y2) >= 7 then
if not SoundSpeechPlaying(idTeacher) and not SoundSpeechPlaying(idTeacher2) then
if not SoundSpeechPlaying(pedAngieGym.id) and not SoundSpeechPlaying(pedMandyGym.id) then
if not SoundSpeechPlaying(tblFirstGrease[5]) and not SoundSpeechPlaying(tblFirstGrease[6]) and GetTimer() - timeSlice > 9000 then
if not SoundSpeechPlaying(tblSecondGrease[2]) and not SoundSpeechPlaying(tblSecondGrease[3]) and GetTimer() - timeSlice > 9000 then
if pLastPed == nil or not SoundSpeechPlaying(pLastPed) then
if SoundSpeechPlaying() then
if SoundSpeechPlaying(gBully01) then
if SoundSpeechPlaying(gBully02) then
if SoundSpeechPlaying(gBully03) then
if SoundSpeechPlaying(gLastPersonTalked) then
if SoundSpeechPlaying(gPlayer) then
if speech == 1 and not SoundSpeechPlaying(gPlayer) then
if table.getn(tblDatalogue) == 0 and not SoundSpeechPlaying(watts) and not SoundSpeechPlaying(edna) then
if TimerPassed(gRoomHintTimer) and not SoundSpeechPlaying() then
if TimerPassed(gRoomHintTimer) and not SoundSpeechPlaying(gGary) then
LineTime = SoundSpeechPlaying()
SoundSpeechPlaying()
while not (not SoundSpeechPlaying() or bSkip) do
while not (not SoundSpeechPlaying() or skip) do
while PedIsPlaying(ped, action, true) or SoundSpeechPlaying() do
while PedIsPlaying(ped, action, true) or SoundSpeechPlaying(ped) do
while SoundSpeechPlaying() == 1 do
while SoundSpeechPlaying() do
while SoundSpeechPlaying(algie) do
while SoundSpeechPlaying(Bum) do
while SoundSpeechPlaying(buster) do
while SoundSpeechPlaying(Crazy01) do
while SoundSpeechPlaying(Crazy02) do
while SoundSpeechPlaying(gBlockAOrderly02) do
while SoundSpeechPlaying(gClerk) do
while SoundSpeechPlaying(gCrazy01) do
while SoundSpeechPlaying(gFatty) do
while SoundSpeechPlaying(gGary) and bBulliesPeaceful do
while SoundSpeechPlaying(gGary) do
while SoundSpeechPlaying(gGreaser1) do
while SoundSpeechPlaying(gGreaser2) do
while SoundSpeechPlaying(gJohnny) do
while SoundSpeechPlaying(gJohnnyV) do
while SoundSpeechPlaying(gLastPersonTalked) do
while SoundSpeechPlaying(gNerds[1].id) do
while SoundSpeechPlaying(gPeter) do
while SoundSpeechPlaying(gPlayer) do
while SoundSpeechPlaying(gPlayer, "NARRATION", 101) do
while SoundSpeechPlaying(gPlayer, "NARRATION", 102) do
while SoundSpeechPlaying(gPlayer, "NARRATION", 103) do
while SoundSpeechPlaying(gPlayer, "NARRATION", 104) do
while SoundSpeechPlaying(gPlayer, "NARRATION", 105) do
while SoundSpeechPlaying(gPlayer, "NARRATION", 106) do
while SoundSpeechPlaying(gPlayer, "NARRATION", 107) do
while SoundSpeechPlaying(gPlayer, "NARRATION", 108) do
while SoundSpeechPlaying(gPlayer, "NARRATION", 109) do
while SoundSpeechPlaying(gPlayer, "NARRATION", 110) do
while SoundSpeechPlaying(gPlayer, "NARRATION", 111) do
while SoundSpeechPlaying(gPlayer, "NARRATION", 112) do
while SoundSpeechPlaying(gPlayer, "NARRATION", 113) do
while SoundSpeechPlaying(gPlayer, "NARRATION", 114) do
while SoundSpeechPlaying(gPlayer, "NARRATION", 115) do
while SoundSpeechPlaying(gPlayer, "NARRATION", 116) do
while SoundSpeechPlaying(gPlayer, "NARRATION", 117) do
while SoundSpeechPlaying(gPlayer, "NARRATION", 120, true) do
while SoundSpeechPlaying(gPrefect) do
while SoundSpeechPlaying(gSecretary) do
while SoundSpeechPlaying(gThad) do
while SoundSpeechPlaying(gTheo) do
while SoundSpeechPlaying(id2ndMan) do
while SoundSpeechPlaying(idBurton) do
while SoundSpeechPlaying(idConst.id) do
while SoundSpeechPlaying(idGord.id) do
while SoundSpeechPlaying(idNemesis) do
while SoundSpeechPlaying(idPetey.id) do
while SoundSpeechPlaying(idPinky.id) do
while SoundSpeechPlaying(mandy) do
while SoundSpeechPlaying(model) do
while SoundSpeechPlaying(MomTalker) do
while SoundSpeechPlaying(NISPed) do
while SoundSpeechPlaying(ped) do
while SoundSpeechPlaying(pedBurton.id) do
while SoundSpeechPlaying(pedGary.id) do
while SoundSpeechPlaying(pedID) do
while SoundSpeechPlaying(ratPacker) do
while SoundSpeechPlaying(shared.gBif) do
while SoundSpeechPlaying(sweater_guard) do
while SoundSpeechPlaying(tblGordWH.id) do
while SoundSpeechPlaying(tblJohnnyWH.id) do
sub esp, 0x8
push ebx
mov ebx, dword ptr [esp+0x10]
push ebp
push esi
push edi
or esi, 0xFFFFFFFF
push esi
push 0x0
push ebx
call LuaParam::GetInt ; optional
add esp, 0xC
cmp eax, esi
jz 0x1A
push ecx
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
mov dword ptr [esp+0x14], eax
jmp 0xA
mov dword ptr [esp+0x14], 0x0
push ebx
mov dword ptr [esp+0x14], esi
call 0x73AEA0
add esp, 0x4
cmp eax, 0x1
jle 0x87
push 0x0
push 0x1
push ebx
call LuaParam::GetString ; optional
mov ebp, eax
mov eax, dword ptr [0xAE74E8]
push eax
push 0x91F114
xor esi, esi
call 0x85F5DF
add esp, 0x14
test eax, eax
jz 0x3C
mov edi, 0xAE74E8
mov edi, edi
mov ecx, dword ptr [edi]
push ecx
push ebp
call 0x85F5DF
add esp, 0x8
test eax, eax
jz 0x28
add esi, 0x1
mov edx, dword ptr [esi*4+0xAE74E8]
lea edi, ptr [esi*4+0xAE74E8]
push edx
push 0x91F114
call 0x85F5DF
add esp, 0x8
test eax, eax
jnz 0xFFFFFFCF
or esi, 0xFFFFFFFF
push ebx
call 0x73AEA0
add esp, 0x4
cmp eax, 0x2
jle 0x13
push 0xFFFFFFFF
push 0x2
push ebx
call LuaParam::GetInt ; optional
add esp, 0xC
mov dword ptr [esp+0x10], eax
mov eax, dword ptr [esp+0x10]
mov ecx, dword ptr [esp+0x14]
push eax
push esi
push ecx
call 0x5A2900
push eax
push ebx
call LuaParam::PushBool
add esp, 0x14
pop edi
pop esi
pop ebp
mov eax, 0x1
pop ebx
add esp, 0x8
ret
SoundStartFireAlarm()
mov ecx, 0xCF3DA8
call 0x595920
xor eax, eax
ret
SoundStopAmbiences()
mov eax, dword ptr [0xCF4374]
mov byte ptr [eax], 0x1
mov ecx, dword ptr [0xCF4278]
mov byte ptr [ecx+0xA8], 0x1
xor eax, eax
ret
SoundStopCurrentSpeechEvent()
SoundStopCurrentSpeechEvent(algie)
SoundStopCurrentSpeechEvent(bioTeacher)
SoundStopCurrentSpeechEvent(chemTeach)
SoundStopCurrentSpeechEvent(clerk)
SoundStopCurrentSpeechEvent(Earnest)
SoundStopCurrentSpeechEvent(galloway)
SoundStopCurrentSpeechEvent(gBlockAOrderly02)
SoundStopCurrentSpeechEvent(gBully01)
SoundStopCurrentSpeechEvent(gBully02)
SoundStopCurrentSpeechEvent(gBully03)
SoundStopCurrentSpeechEvent(gCarnie)
SoundStopCurrentSpeechEvent(gDefenders[1])
SoundStopCurrentSpeechEvent(gFatty)
SoundStopCurrentSpeechEvent(gGary)
SoundStopCurrentSpeechEvent(gKeyMaster)
SoundStopCurrentSpeechEvent(gKeyMaster1)
SoundStopCurrentSpeechEvent(gKeyMaster2)
SoundStopCurrentSpeechEvent(gNerds[1].id)
SoundStopCurrentSpeechEvent(gNerds[2].id)
SoundStopCurrentSpeechEvent(gPlayer)
SoundStopCurrentSpeechEvent(gRudy)
SoundStopCurrentSpeechEvent(gTargetBoy)
SoundStopCurrentSpeechEvent(gTed)
SoundStopCurrentSpeechEvent(hattrick)
SoundStopCurrentSpeechEvent(idRussell)
SoundStopCurrentSpeechEvent(idZoe)
SoundStopCurrentSpeechEvent(insultBoy)
SoundStopCurrentSpeechEvent(mandy)
SoundStopCurrentSpeechEvent(model)
SoundStopCurrentSpeechEvent(musicTeach)
SoundStopCurrentSpeechEvent(ped)
SoundStopCurrentSpeechEvent(pedAlgie.id)
SoundStopCurrentSpeechEvent(pedBurtonStage3.id)
SoundStopCurrentSpeechEvent(pedCornelius.id)
SoundStopCurrentSpeechEvent(pedEunice.id)
SoundStopCurrentSpeechEvent(pedGary.id)
SoundStopCurrentSpeechEvent(pedLibrarian.id)
SoundStopCurrentSpeechEvent(pedMandyBedroom.id)
SoundStopCurrentSpeechEvent(pedMandyShower.id)
SoundStopCurrentSpeechEvent(pedMascot.id)
SoundStopCurrentSpeechEvent(ratPacker)
SoundStopCurrentSpeechEvent(santa)
SoundStopCurrentSpeechEvent(shared.gdormHeadID)
SoundStopCurrentSpeechEvent(sheet4Guard)
SoundStopCurrentSpeechEvent(shopTeach)
SoundStopCurrentSpeechEvent(tblFirstGrease[5])
SoundStopCurrentSpeechEvent(teacher)
push esi
mov esi, dword ptr [esp+0x8]
push esi
call 0x73AEA0
add esp, 0x4
test eax, eax
jle 0x31
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
push 0x19
push 0x0
push eax
mov ecx, 0xCF4378
call 0x5A59D0
xor eax, eax
pop esi
ret
call 0x5A5DB0
xor eax, eax
pop esi
ret
SoundStopFireAlarm()
mov ecx, 0xCF3DA8
call 0x5950B0
xor eax, eax
ret
SoundStopInteractiveStream()
SoundStopInteractiveStream(0)
SoundStopInteractiveStream(1000)
SoundStopInteractiveStream(3000)
mov eax, dword ptr [esp+0x4]
push 0xFFFFFFFF
push 0x0
push eax
call LuaParam::GetInt ; optional
push eax
call 0x591A70
add esp, 0x10
xor eax, eax
ret
SoundStopPA()
mov eax, dword ptr [0xCF4374]
mov byte ptr [eax+0x1], 0x1
xor eax, eax
ret
SoundStopStream()
push 0x0
mov ecx, 0xCF42D4
call 0x591480
xor eax, eax
ret
SoundUnLoadBank("Clapping\\Claps.bnk")
SoundUnLoadBank("FEET\\FEETSCHL.BNK")
SoundUnLoadBank("MINIGAME\\COWBELL_01.bnk")
SoundUnLoadBank("MINIGAME\\DnkTnk.bnk")
SoundUnLoadBank("MINIGAME\\HiStrkr.bnk")
SoundUnLoadBank("MINIGAME\\MARACAS_01.bnk")
SoundUnLoadBank("MINIGAME\\SNARE_01.bnk")
SoundUnLoadBank("MINIGAME\\TIMPANI_01.bnk")
SoundUnLoadBank("MINIGAME\\XYLO_01a.bnk")
SoundUnLoadBank("MINIGAME\\XYLO_01b.bnk")
SoundUnLoadBank("MINIGAME\\XYLO_01c.bnk")
SoundUnLoadBank("MISSION\\1_10.bnk")
SoundUnLoadBank("MISSION\\4_06.bnk")
SoundUnLoadBank("MISSION\\DdgBall.bnk")
SoundUnLoadBank("MISSIONFlameBag.bnk")
SoundUnLoadBank("OBJECTS\\FIRECAN.bnk")
SoundUnLoadBank("OBJECTS_3\\HrlyLeev.bnk")
SoundUnLoadBank("weapons\\Marbles.bnk")
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetString
add esp, 0x8
push eax
mov ecx, 0xCF5DC4
call 0x597FC0
test eax, eax
jle 0x11
push 0x1
push 0x1
push eax
mov ecx, 0xCF5DC4
call 0x59A420
xor eax, eax
ret
SpawnerClearOverrideActiveSetting(BEntranceDoor)
SpawnerClearOverrideActiveSetting(ExitSpawner)
SpawnerClearOverrideActiveSetting(shared.gSchoolSpawner)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetUserData
mov ecx, dword ptr [0xC2C12C]
add esp, 0x8
push eax
call 0x4A1A80
and byte ptr [eax+0xBC], 0xFD
xor eax, eax
ret
SpawnerSetActiveWithinRadius(346.873, 218.43, 4.95147, 20, false)
SpawnerSetActiveWithinRadius(346.873, 218.43, 4.95147, 20, true)
sub esp, 0x14
push esi
mov esi, dword ptr [esp+0x1C]
push 0x0
lea eax, ptr [esp+0x10]
push esi
push eax
call LuaParam::GetVector
push 0x3
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x1C], st
push 0x4
push esi
call LuaParam::GetBool
fld st, dword ptr [esp+0x24]
add esp, 0x1C
mov byte ptr [esp+0x4], al
mov ecx, dword ptr [esp+0x4]
push ecx
push ecx
mov ecx, dword ptr [0xC2C12C]
fstp dword ptr [esp], st
lea edx, ptr [esp+0x14]
push edx
call 0x4A1D90
xor eax, eax
pop esi
add esp, 0x14
ret
SpawnerSetOverrideActiveSetting(BEntranceDoor, false)
SpawnerSetOverrideActiveSetting(ExitSpawner, false)
SpawnerSetOverrideActiveSetting(shared.gSchoolSpawner, true)
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetUserData
mov ecx, dword ptr [0xC2C12C]
add esp, 0x8
push eax
call 0x4A1A80
push 0x1
push edi
mov esi, eax
call LuaParam::GetBool
add al, al
add al, al
xor al, byte ptr [esi+0xBC]
add esp, 0x8
and al, 0x4
xor al, byte ptr [esi+0xBC]
pop edi
or al, 0x2
mov byte ptr [esi+0xBC], al
xor eax, eax
pop esi
ret
SplashScreenDisable()
call 0x458140
xor eax, eax
ret
SplashScreenDisplay("Chapter2", "Chapter2")
push esi
mov esi, dword ptr [esp+0x8]
push edi
push 0x0
push esi
call LuaParam::GetString
push 0x1
push esi
mov edi, eax
call LuaParam::GetString
mov esi, eax
call 0x52E700
push esi
push edi
call 0x4581D0
add esp, 0x18
call 0x52E710
pop edi
xor eax, eax
pop esi
ret
StartCutscene()
call 0x6C6370
xor eax, eax
ret
StartMission("6_PassAll")
push ecx
mov eax, dword ptr [esp+0x8]
push 0x0
push eax
call LuaParam::GetString
add esp, 0x8
push eax
lea ecx, ptr [esp+0x4]
call 0x5FA910
lea ecx, ptr [esp]
push ecx
mov ecx, 0x20C3CA0
call 0x6A9FD0
push 0x0
push eax
mov ecx, 0x20C3CA0
call 0x6AD100
lea ecx, ptr [esp]
call 0x49A650
xor eax, eax
pop ecx
ret
SHARED
Starts a new script. Returns the created script unless it was killed while running.
CLIENT
Starts allowing user input from the keyboard, and returns a typing state to be given to other typing functions.
Returns nothing if typing cannot start, usually due to some other typing already being active.
StartVibration(0, 1000, 128)
StartVibration(0, 1000, 255)
StartVibration(1, 400, 7)
StartVibration(2, 1500, 254)
push ecx
push ebx
push esi
mov esi, dword ptr [esp+0x10]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov ebx, eax
call LuaParam::GetInt
push 0x2
push esi
movzx edi, ax
call LuaParam::GetInt
add esp, 0x18
cmp ebx, 0x3
mov byte ptr [esp+0xC], al
jnbe 0x5B
jmp dword ptr [ebx*4+0x5BDCA4]
push 0x1
push 0x0
push edi
push 0x0
call 0x738680
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
SHARED
Starts a new script using a function instead of a file. Returns the created script unless it was killed while running.
-- never used
push ecx
fld1
push esi
mov esi, dword ptr [esp+0xC]
fstp dword ptr [esp+0x4], st
push esi
call 0x73AEA0
add esp, 0x4
cmp eax, 0x2
jl 0x11
push 0x1
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0xC], st
add esp, 0x8
push 0x0
push esi
call LuaParam::GetInt
fld st, dword ptr [esp+0xC]
add esp, 0x4
fstp dword ptr [esp], st
push eax
call 0x4585B0
add esp, 0x8
xor eax, eax
pop esi
pop ecx
ret
StatAddToInt(133, 1)
StatAddToInt(15)
StatAddToInt(155)
StatAddToInt(16)
StatAddToInt(166)
StatAddToInt(171, gReward)
StatAddToInt(172)
StatAddToInt(173)
StatAddToInt(174, xTime)
StatAddToInt(175, rewardMoney)
StatAddToInt(176)
StatAddToInt(177)
StatAddToInt(178, xTime)
StatAddToInt(179, gReward)
StatAddToInt(180)
StatAddToInt(181)
StatAddToInt(182, rewardMoney)
StatAddToInt(195)
StatAddToInt(212)
StatAddToInt(213)
StatAddToInt(214)
StatAddToInt(215)
StatAddToInt(226)
StatAddToInt(227, 50)
StatAddToInt(228)
StatAddToInt(229, 50)
StatAddToInt(233)
StatAddToInt(234)
StatAddToInt(235)
StatAddToInt(236)
StatAddToInt(238)
StatAddToInt(239)
StatAddToInt(240, 1)
StatAddToInt(3)
StatAddToInt(50)
StatAddToInt(51)
StatAddToInt(54)
StatAddToInt(55)
StatAddToInt(56)
StatAddToInt(57)
StatAddToInt(66)
push esi
push edi
mov edi, dword ptr [esp+0xC]
push edi
mov esi, 0x1
call 0x73AEA0
add esp, 0x4
cmp eax, 0x2
jl 0xE
push esi
push edi
call LuaParam::GetInt
add esp, 0x8
mov esi, eax
push 0x0
push edi
call LuaParam::GetInt
push esi
push eax
call 0x458480
add esp, 0x10
pop edi
xor eax, eax
pop esi
ret
-- never used
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push 0x0
push esi
call LuaParam::GetInt
push eax
call 0x45A900
fstp dword ptr [esp+0x10], st
fld st, dword ptr [esp+0x10]
add esp, 0x8
fstp dword ptr [esp], st
push esi
call LuaParam::PushFloat
add esp, 0x8
mov eax, 0x1
pop esi
pop ecx
ret
elseif 100 < StatGetAsInt(88) then
elseif 100 < StatGetAsInt(90) then
elseif 100 < StatGetAsInt(92) then
if shared.gSkippedWeedKiller or StatGetAsInt(264) == 19 then
if shared.gSkippedWeedKiller or StatGetAsInt(265) == 27 then
if shared.gSkippedWeedKiller or StatGetAsInt(266) == 25 then
if StatGetAsInt(84) > 100 then
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetInt
push eax
call 0x459A00
push eax
push esi
call LuaParam::PushInt
add esp, 0x14
mov eax, 0x1
pop esi
ret
-- never used
call 0x6A98C0
mov eax, dword ptr [esp+0x4]
push ecx
fstp dword ptr [esp], st
push eax
call LuaParam::PushFloat
add esp, 0x8
mov eax, 0x1
ret
-- never used
movzx eax, word ptr [0xC1A748]
mov ecx, dword ptr [esp+0x4]
push eax
push ecx
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
ret
-- never used
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push 0x0
push esi
call LuaParam::GetInt
push eax
call 0x45A630
mov dword ptr [esp+0x10], eax
fild st, dword ptr [esp+0x10]
add esp, 0x8
fstp dword ptr [esp+0x8], st
fld st, dword ptr [esp+0x8]
fstp dword ptr [esp], st
push esi
call LuaParam::PushFloat
add esp, 0x8
mov eax, 0x1
pop esi
pop ecx
ret
count = StatGetPrincipalDiffAsInt(refEntry.stat)
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetInt
push eax
call 0x45A630
push eax
push esi
call LuaParam::PushInt
add esp, 0x14
mov eax, 0x1
pop esi
ret
StatLayoutAddGroup("G1")
StatLayoutAddGroup("G2")
StatLayoutAddGroup("G3")
StatLayoutAddGroup("G4")
StatLayoutAddGroup("G5")
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetString
push eax
call 0x459150
add esp, 0xC
xor eax, eax
ret
StatLayoutAddHeading("H1-0")
StatLayoutAddHeading("H1-1")
StatLayoutAddHeading("H1-10")
StatLayoutAddHeading("H1-2")
StatLayoutAddHeading("H1-3")
StatLayoutAddHeading("H1-4")
StatLayoutAddHeading("H1-5")
StatLayoutAddHeading("H1-6")
StatLayoutAddHeading("H1-7")
StatLayoutAddHeading("H1-8")
StatLayoutAddHeading("H2-0")
StatLayoutAddHeading("H2-1")
StatLayoutAddHeading("H2-2")
StatLayoutAddHeading("H3-0")
StatLayoutAddHeading("H3-1")
StatLayoutAddHeading("H3-2")
StatLayoutAddHeading("H4-0")
StatLayoutAddHeading("H4-1")
StatLayoutAddHeading("H4-2")
StatLayoutAddHeading("H4-3")
StatLayoutAddHeading("H4-4")
StatLayoutAddHeading("H4-5")
StatLayoutAddHeading("H4-6")
StatLayoutAddHeading("H5-0")
StatLayoutAddHeading("H5-2")
StatLayoutAddHeading("H5-3")
StatLayoutAddHeading("H5-4")
StatLayoutAddHeading("H5-5")
StatLayoutAddHeading("H5-6")
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetString
push eax
call 0x4591A0
add esp, 0xC
xor eax, eax
ret
StatLayoutAddStat("STAT0000", 261)
StatLayoutAddStat("STAT0001", 262)
StatLayoutAddStat("STAT0002", 0)
StatLayoutAddStat("STAT0003", 1)
StatLayoutAddStat("STAT0004", 2)
StatLayoutAddStat("STAT0005", 3)
StatLayoutAddStat("STAT0006", 4)
StatLayoutAddStat("STAT0007", 5)
StatLayoutAddStat("STAT0008", 7)
StatLayoutAddStat("STAT0009", 8)
StatLayoutAddStat("STAT0010", 9)
StatLayoutAddStat("STAT0011", 10)
StatLayoutAddStat("STAT0012", 11)
StatLayoutAddStat("STAT0013", 12)
StatLayoutAddStat("STAT0014", 13)
StatLayoutAddStat("STAT0015", 14)
StatLayoutAddStat("STAT0016", 15)
StatLayoutAddStat("STAT0017", 16)
StatLayoutAddStat("STAT0018", 263)
StatLayoutAddStat("STAT0019", 17)
StatLayoutAddStat("STAT0020", 18)
StatLayoutAddStat("STAT0021", 19)
StatLayoutAddStat("STAT0022", 20)
StatLayoutAddStat("STAT0023", 21)
StatLayoutAddStat("STAT0024", 22)
StatLayoutAddStat("STAT0025", 23)
StatLayoutAddStat("STAT0026", 24)
StatLayoutAddStat("STAT0028", 26)
StatLayoutAddStat("STAT0029", 264)
StatLayoutAddStat("STAT0030", 265)
StatLayoutAddStat("STAT0031", 266)
StatLayoutAddStat("STAT0032", 27)
StatLayoutAddStat("STAT0035", 28)
StatLayoutAddStat("STAT0036", 29)
StatLayoutAddStat("STAT0037", 30)
StatLayoutAddStat("STAT0038", 31)
StatLayoutAddStat("STAT0040", 32)
StatLayoutAddStat("STAT0041", 33)
StatLayoutAddStat("STAT0042", 34)
StatLayoutAddStat("STAT0043", 35)
StatLayoutAddStat("STAT0044", 267)
StatLayoutAddStat("STAT0045", 268)
StatLayoutAddStat("STAT0046", 36)
StatLayoutAddStat("STAT0047", 37)
StatLayoutAddStat("STAT0048", 38)
StatLayoutAddStat("STAT0049", 39)
StatLayoutAddStat("STAT0050", 269)
StatLayoutAddStat("STAT0051", 270)
StatLayoutAddStat("STAT0052", 40)
StatLayoutAddStat("STAT0053", 41)
StatLayoutAddStat("STAT0054", 42)
StatLayoutAddStat("STAT0055", 43)
StatLayoutAddStat("STAT0056", 44)
StatLayoutAddStat("STAT0057", 45)
StatLayoutAddStat("STAT0058", 271)
StatLayoutAddStat("STAT0059", 46)
StatLayoutAddStat("STAT0060", 47)
StatLayoutAddStat("STAT0061", 48)
StatLayoutAddStat("STAT0062", 49)
StatLayoutAddStat("STAT0065", 52)
StatLayoutAddStat("STAT0067", 54)
StatLayoutAddStat("STAT0068", 55)
StatLayoutAddStat("STAT0069", 272)
StatLayoutAddStat("STAT0070", 56)
StatLayoutAddStat("STAT0071", 57)
StatLayoutAddStat("STAT0072", 273)
StatLayoutAddStat("STAT0073", 58)
StatLayoutAddStat("STAT0074", 59)
StatLayoutAddStat("STAT0075", 60)
StatLayoutAddStat("STAT0076", 61)
StatLayoutAddStat("STAT0077", 62)
StatLayoutAddStat("STAT0078", 63)
StatLayoutAddStat("STAT0079", 64)
StatLayoutAddStat("STAT0080", 65)
StatLayoutAddStat("STAT0081", 66)
StatLayoutAddStat("STAT0082", 67)
StatLayoutAddStat("STAT0083", 68)
StatLayoutAddStat("STAT0084", 69)
StatLayoutAddStat("STAT0085", 70)
StatLayoutAddStat("STAT0086", 71)
StatLayoutAddStat("STAT0087", 274)
StatLayoutAddStat("STAT0088", 72)
StatLayoutAddStat("STAT0089", 73)
StatLayoutAddStat("STAT0090", 275)
StatLayoutAddStat("STAT0091", 74)
StatLayoutAddStat("STAT0092", 75)
StatLayoutAddStat("STAT0093", 276)
StatLayoutAddStat("STAT0094", 76)
StatLayoutAddStat("STAT0095", 77)
StatLayoutAddStat("STAT0096", 78)
StatLayoutAddStat("STAT0097", 277)
StatLayoutAddStat("STAT0102", 82)
StatLayoutAddStat("STAT0103", 83)
StatLayoutAddStat("STAT0104", 278)
StatLayoutAddStat("STAT0105", 279)
StatLayoutAddStat("STAT0106", 198)
StatLayoutAddStat("STAT0107", 53)
StatLayoutAddStat("STAT0108", 280)
StatLayoutAddStat("STAT0109", 84)
StatLayoutAddStat("STAT0110", 85)
StatLayoutAddStat("STAT0111", 281)
StatLayoutAddStat("STAT0112", 86)
StatLayoutAddStat("STAT0113", 87)
StatLayoutAddStat("STAT0114", 282)
StatLayoutAddStat("STAT0115", 88)
StatLayoutAddStat("STAT0116", 89)
StatLayoutAddStat("STAT0117", 283)
StatLayoutAddStat("STAT0118", 90)
StatLayoutAddStat("STAT0119", 91)
StatLayoutAddStat("STAT0120", 284)
StatLayoutAddStat("STAT0121", 92)
StatLayoutAddStat("STAT0122", 93)
StatLayoutAddStat("STAT0123", 285)
StatLayoutAddStat("STAT0124", 94)
StatLayoutAddStat("STAT0125", 95)
StatLayoutAddStat("STAT0126", 286)
StatLayoutAddStat("STAT0131", 96)
StatLayoutAddStat("STAT0133", 97)
StatLayoutAddStat("STAT0134", 98)
StatLayoutAddStat("STAT0135", 99)
StatLayoutAddStat("STAT0136", 100)
StatLayoutAddStat("STAT0137", 287)
StatLayoutAddStat("STAT0138", 101)
StatLayoutAddStat("STAT0139", 102)
StatLayoutAddStat("STAT0140", 288)
StatLayoutAddStat("STAT0141", 103)
StatLayoutAddStat("STAT0142", 104)
StatLayoutAddStat("STAT0143", 289)
StatLayoutAddStat("STAT0145", 105)
StatLayoutAddStat("STAT0146", 106)
StatLayoutAddStat("STAT0147", 290)
StatLayoutAddStat("STAT0149", 107)
StatLayoutAddStat("STAT0150", 108)
StatLayoutAddStat("STAT0151", 291)
StatLayoutAddStat("STAT0153", 109)
StatLayoutAddStat("STAT0154", 110)
StatLayoutAddStat("STAT0155", 111)
StatLayoutAddStat("STAT0156", 292)
StatLayoutAddStat("STAT0157", 112)
StatLayoutAddStat("STAT0158", 113)
StatLayoutAddStat("STAT0159", 114)
StatLayoutAddStat("STAT0160", 293)
StatLayoutAddStat("STAT0161", 115)
StatLayoutAddStat("STAT0162", 116)
StatLayoutAddStat("STAT0163", 117)
StatLayoutAddStat("STAT0164", 294)
StatLayoutAddStat("STAT0165", 118)
StatLayoutAddStat("STAT0166", 119)
StatLayoutAddStat("STAT0167", 120)
StatLayoutAddStat("STAT0168", 295)
StatLayoutAddStat("STAT0169", 121)
StatLayoutAddStat("STAT0170", 122)
StatLayoutAddStat("STAT0171", 296)
StatLayoutAddStat("STAT0172", 123)
StatLayoutAddStat("STAT0173", 124)
StatLayoutAddStat("STAT0174", 297)
StatLayoutAddStat("STAT0175", 125)
StatLayoutAddStat("STAT0176", 126)
StatLayoutAddStat("STAT0177", 298)
StatLayoutAddStat("STAT0178", 127)
StatLayoutAddStat("STAT0179", 128)
StatLayoutAddStat("STAT0180", 299)
StatLayoutAddStat("STAT0181", 129)
StatLayoutAddStat("STAT0182", 132)
StatLayoutAddStat("STAT0183", 130)
StatLayoutAddStat("STAT0184", 131)
StatLayoutAddStat("STAT0188", 300)
StatLayoutAddStat("STAT0189", 301)
StatLayoutAddStat("STAT0190", 196)
StatLayoutAddStat("STAT0191", 197)
StatLayoutAddStat("STAT0192", 133)
StatLayoutAddStat("STAT0193", 134)
StatLayoutAddStat("STAT0194", 135)
StatLayoutAddStat("STAT0195", 136)
StatLayoutAddStat("STAT0196", 137)
StatLayoutAddStat("STAT0197", 138)
StatLayoutAddStat("STAT0198", 139)
StatLayoutAddStat("STAT0199", 140)
StatLayoutAddStat("STAT0200", 141)
StatLayoutAddStat("STAT0201", 142)
StatLayoutAddStat("STAT0202", 143)
StatLayoutAddStat("STAT0203", 144)
StatLayoutAddStat("STAT0204", 145)
StatLayoutAddStat("STAT0205", 147)
StatLayoutAddStat("STAT0206", 146)
StatLayoutAddStat("STAT0207", 149)
StatLayoutAddStat("STAT0208", 148)
StatLayoutAddStat("STAT0209", 151)
StatLayoutAddStat("STAT0210", 150)
StatLayoutAddStat("STAT0213", 154)
StatLayoutAddStat("STAT0214", 155)
StatLayoutAddStat("STAT0218", 156)
StatLayoutAddStat("STAT0220", 302)
StatLayoutAddStat("STAT0221", 158)
StatLayoutAddStat("STAT0222", 159)
StatLayoutAddStat("STAT0223", 160)
StatLayoutAddStat("STAT0224", 161)
StatLayoutAddStat("STAT0225", 162)
StatLayoutAddStat("STAT0226", 163)
StatLayoutAddStat("STAT0227", 164)
StatLayoutAddStat("STAT0228", 165)
StatLayoutAddStat("STAT0229", 306)
StatLayoutAddStat("STAT0230", 166)
StatLayoutAddStat("STAT0231", 303)
StatLayoutAddStat("STAT0232", 304)
StatLayoutAddStat("STAT0233", 305)
StatLayoutAddStat("STAT0234", 307)
StatLayoutAddStat("STAT0235", 308)
StatLayoutAddStat("STAT0236", 309)
StatLayoutAddStat("STAT0237", 310)
StatLayoutAddStat("STAT0238", 311)
StatLayoutAddStat("STAT0239", 312)
StatLayoutAddStat("STAT0240", 313)
StatLayoutAddStat("STAT0241", 314)
StatLayoutAddStat("STAT0242", 315)
StatLayoutAddStat("STAT0243", 316)
StatLayoutAddStat("STAT0244", 317)
StatLayoutAddStat("STAT0245", 318)
StatLayoutAddStat("STAT0246", 319)
StatLayoutAddStat("STAT0247", 320)
StatLayoutAddStat("STAT0248", 321)
StatLayoutAddStat("STAT0249", 322)
StatLayoutAddStat("STAT0250", 323)
StatLayoutAddStat("STAT0251", 324)
StatLayoutAddStat("STAT0252", 337)
StatLayoutAddStat("STAT0253", 338)
StatLayoutAddStat("STAT0254", 339)
StatLayoutAddStat("STAT0255", 167)
StatLayoutAddStat("STAT0256", 168)
StatLayoutAddStat("STAT0257", 340)
StatLayoutAddStat("STAT0258", 169)
StatLayoutAddStat("STAT0259", 170)
StatLayoutAddStat("STAT0261", 171)
StatLayoutAddStat("STAT0262", 172)
StatLayoutAddStat("STAT0263", 173)
StatLayoutAddStat("STAT0264", 341)
StatLayoutAddStat("STAT0265", 342)
StatLayoutAddStat("STAT0266", 174)
StatLayoutAddStat("STAT0267", 175)
StatLayoutAddStat("STAT0268", 176)
StatLayoutAddStat("STAT0269", 177)
StatLayoutAddStat("STAT0270", 343)
StatLayoutAddStat("STAT0271", 344)
StatLayoutAddStat("STAT0272", 178)
StatLayoutAddStat("STAT0274", 345)
StatLayoutAddStat("STAT0275", 346)
StatLayoutAddStat("STAT0276", 347)
StatLayoutAddStat("STAT0277", 348)
StatLayoutAddStat("STAT0278", 179)
StatLayoutAddStat("STAT0279", 180)
StatLayoutAddStat("STAT0280", 181)
StatLayoutAddStat("STAT0281", 349)
StatLayoutAddStat("STAT0282", 350)
StatLayoutAddStat("STAT0283", 182)
StatLayoutAddStat("STAT0284", 183)
StatLayoutAddStat("STAT0287", 185)
StatLayoutAddStat("STAT0288", 186)
StatLayoutAddStat("STAT0289", 187)
StatLayoutAddStat("STAT0290", 188)
StatLayoutAddStat("STAT0291", 189)
StatLayoutAddStat("STAT0292", 190)
StatLayoutAddStat("STAT0293", 191)
StatLayoutAddStat("STAT0294", 192)
StatLayoutAddStat("STAT0295", 193)
StatLayoutAddStat("STAT0302", 200)
StatLayoutAddStat("STAT0303", 201)
StatLayoutAddStat("STAT0304", 202)
StatLayoutAddStat("STAT0305", 203)
StatLayoutAddStat("STAT0306", 204)
StatLayoutAddStat("STAT0308", 205)
StatLayoutAddStat("STAT0309", 206)
StatLayoutAddStat("STAT0310", 207)
StatLayoutAddStat("STAT0311", 351)
StatLayoutAddStat("STAT0312", 208)
StatLayoutAddStat("STAT0314", 352)
StatLayoutAddStat("STAT0315", 353)
StatLayoutAddStat("STAT0316", 354)
StatLayoutAddStat("STAT0317", 355)
StatLayoutAddStat("STAT0318", 356)
StatLayoutAddStat("STAT0319", 209)
StatLayoutAddStat("STAT0320", 210)
StatLayoutAddStat("STAT0321", 211)
StatLayoutAddStat("STAT0325", 212)
StatLayoutAddStat("STAT0326", 213)
StatLayoutAddStat("STAT0327", 357)
StatLayoutAddStat("STAT0328", 214)
StatLayoutAddStat("STAT0329", 215)
StatLayoutAddStat("STAT0330", 358)
StatLayoutAddStat("STAT0331", 359)
StatLayoutAddStat("STAT0332", 360)
StatLayoutAddStat("STAT0333", 361)
StatLayoutAddStat("STAT0335", 216)
StatLayoutAddStat("STAT0336", 217)
StatLayoutAddStat("STAT0337", 218)
StatLayoutAddStat("STAT0338", 219)
StatLayoutAddStat("STAT0339", 220)
StatLayoutAddStat("STAT0340", 221)
StatLayoutAddStat("STAT0341", 222)
StatLayoutAddStat("STAT0342", 223)
StatLayoutAddStat("STAT0343", 224)
StatLayoutAddStat("STAT0344", 225)
StatLayoutAddStat("STAT0345", 226)
StatLayoutAddStat("STAT0346", 227)
StatLayoutAddStat("STAT0347", 228)
StatLayoutAddStat("STAT0348", 229)
StatLayoutAddStat("STAT0349", 230)
StatLayoutAddStat("STAT0350", 231)
StatLayoutAddStat("STAT0351", 232)
StatLayoutAddStat("STAT0352", 362)
StatLayoutAddStat("STAT0353", 363)
StatLayoutAddStat("STAT0354", 364)
StatLayoutAddStat("STAT0355", 365)
StatLayoutAddStat("STAT0356", 366)
StatLayoutAddStat("STAT0357", 367)
StatLayoutAddStat("STAT0358", 368)
StatLayoutAddStat("STAT0360", 369)
StatLayoutAddStat("STAT0361", 370)
StatLayoutAddStat("STAT0362", 371)
StatLayoutAddStat("STAT0363", 233)
StatLayoutAddStat("STAT0364", 234)
StatLayoutAddStat("STAT0365", 235)
StatLayoutAddStat("STAT0366", 236)
StatLayoutAddStat("STAT0368", 372)
StatLayoutAddStat("STAT0369", 373)
StatLayoutAddStat("STAT0370", 374)
StatLayoutAddStat("STAT0371", 375)
StatLayoutAddStat("STAT0372", 237)
StatLayoutAddStat("STAT0373", 238)
StatLayoutAddStat("STAT0374", 376)
StatLayoutAddStat("STAT0375", 377)
StatLayoutAddStat("STAT0376", 378)
StatLayoutAddStat("STAT0377", 379)
StatLayoutAddStat("STAT0378", 380)
StatLayoutAddStat("STAT0379", 381)
StatLayoutAddStat("STAT0380", 239)
StatLayoutAddStat("STAT0381", 240)
StatLayoutAddStat("STAT0383", 241)
StatLayoutAddStat("STAT0384", 194)
StatLayoutAddStat("STAT0385", 195)
StatLayoutAddStat("STAT0386", 325)
StatLayoutAddStat("STAT0387", 326)
StatLayoutAddStat("STAT0388", 327)
StatLayoutAddStat("STAT0389", 328)
StatLayoutAddStat("STAT0390", 329)
StatLayoutAddStat("STAT0391", 330)
StatLayoutAddStat("STAT0392", 331)
StatLayoutAddStat("STAT0393", 332)
StatLayoutAddStat("STAT0394", 333)
StatLayoutAddStat("STAT0396", 334)
StatLayoutAddStat("STAT0397", 335)
StatLayoutAddStat("STAT0398", 336)
StatLayoutAddStat("STAT2007", 6)
push esi
mov esi, dword ptr [esp+0x8]
push edi
push 0x0
push esi
call LuaParam::GetString
push 0x1
push esi
mov edi, eax
call LuaParam::GetInt
push eax
push edi
call 0x4591F0
add esp, 0x18
pop edi
xor eax, eax
pop esi
ret
StatResetAll()
call 0x4593F0
xor eax, eax
ret
-- never used
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x18], st
fld st, dword ptr [esp+0x18]
add esp, 0xC
fstp dword ptr [esp], st
push edi
call 0x458470
add esp, 0x8
pop edi
xor eax, eax
pop esi
pop ecx
ret
StatSetAsInt(1, numtroph)
push esi
mov esi, dword ptr [esp+0x8]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetInt
push eax
push edi
call 0x458460
add esp, 0x18
pop edi
xor eax, eax
pop esi
ret
StatSetIsTrackingEnabled(true)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetBool
mov byte ptr [0xC193E4], al
add esp, 0x8
xor eax, eax
ret
StatUpdatePrincipalStats()
call 0x45A9D0
xor eax, eax
ret
StopAmbientPedAttacks()
mov eax, dword ptr [0xC0F5F0]
push ebx
push ebp
mov ebp, dword ptr [eax+0x8]
test ebp, ebp
push esi
push edi
mov ebx, eax
jz 0x90
mov eax, dword ptr [ebx+0x4]
sub ebp, 0x1
test byte ptr [eax+ebp*1], 0x80
jnz 0x78
mov esi, dword ptr [ebx+0xC]
imul esi, ebp
add esi, dword ptr [ebx]
jz 0x6E
mov ecx, esi
call 0x4765C0
test al, al
jz 0x63
lea edi, ptr [esi+0x5F0]
mov ecx, edi
call 0x470340
test eax, eax
jz 0x52
cmp dword ptr [eax+0x8], 0x7
jnz 0x4C
mov ecx, eax
call 0x8B6120
test eax, eax
jz 0x41
cmp byte ptr [eax+0x1570], 0x2
jz 0xB
cmp dword ptr [eax+0x1310], 0xD
jnz 0x2F
push ecx
mov eax, esp
mov ecx, edi
mov dword ptr [eax], 0x7
call 0x470260
lea edi, ptr [esi+0xB44]
mov ecx, edi
call 0x48F380
mov ecx, edi
call 0x4910A0
push 0x0
mov ecx, esi
call 0x498B10
test ebp, ebp
jnz 0xFFFFFF7C
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
SHARED
Stops the current mod.
Does not cause the current thread to yield, so your script will keep running until it waits / yields.
StopCutscene()
call 0x6C4030
xor eax, eax
ret
StopPedProduction(false)
StopPedProduction(true)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetBool
mov byte ptr [0xC2C10C], al
add esp, 0x8
xor eax, eax
ret
StopVibration()
push 0x0
call 0x738740
add esp, 0x4
xor eax, eax
ret
if StreamedScriptHasLoaded(scenario.script) == false then
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push 0x0
push esi
call LuaParam::GetString
add esp, 0x8
push eax
mov ecx, 0xD02850
call 0x5DAFF0
add eax, 0x5DB9
push eax
call 0x52DD30
cmp byte ptr [eax+0x4], 0x1
setz al
mov byte ptr [esp+0x8], al
mov ecx, dword ptr [esp+0x8]
push ecx
push esi
call LuaParam::PushBool
add esp, 0xC
mov eax, 0x1
pop esi
pop ecx
ret
StreamedScriptLaunch(scenario.script, true)
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetString
add esp, 0x8
mov esi, eax
push esi
mov ecx, 0xD02850
call 0x5DAFF0
push 0x1
push esi
mov ecx, 0xD02850
call 0x5DC0F0
push 0x0
push 0x1
push edi
mov esi, eax
call LuaParam::GetBool ; optional
add esp, 0xC
test esi, esi
jz 0x1E
test al, al
jz 0x1A
mov edi, dword ptr [0xC0F5E4]
add esi, 0x4
push esi
call 0x576ED0
add esp, 0x4
mov dword ptr [edi+0x14C], eax
pop edi
xor eax, eax
pop esi
ret
StreamedScriptRequest(scenario.script)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetString
add esp, 0x8
push eax
mov ecx, 0xD02850
call 0x5DAFF0
test eax, eax
jl 0x12
add eax, 0x5DB9
push 0x1E
push eax
call 0x532020
add esp, 0x8
xor eax, eax
ret
-- never used
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetString
add esp, 0x8
push eax
mov ecx, 0xD02850
call 0x5DAFF0
push eax
mov ecx, 0xD02850
call 0x5DBDF0
test eax, eax
jz 0xB
push 0x0
mov ecx, eax
call 0x5D9E40
xor eax, eax
ret
A standard Lua 5.0 function documented on lua.org.
A standard Lua 5.0 function documented on lua.org.
A standard Lua 5.0 function documented on lua.org.
A standard Lua 5.0 function documented on lua.org.
A standard Lua 5.0 function documented on lua.org.
A standard Lua 5.0 function documented on lua.org.
A standard Lua 5.0 function documented on lua.org.
A standard Lua 5.0 function documented on lua.org.
A standard Lua 5.0 function documented on lua.org.
A standard Lua 5.0 function documented on lua.org.
A standard Lua 5.0 function documented on lua.org.
A standard Lua 5.0 function documented on lua.org.
-- never used
mov eax, dword ptr [esp+0x4]
push esi
mov esi, dword ptr [0xC674E4]
push 0x0
push eax
call LuaParam::GetInt
fldz
add esp, 0x8
fstp dword ptr [esi+0x164], st
mov dword ptr [esi+0x20], eax
xor eax, eax
pop esi
ret
StruggleButtonSetDisplay(1)
mov eax, dword ptr [esp+0x4]
push esi
mov esi, dword ptr [0xC674E4]
push 0x0
push eax
call LuaParam::GetInt
add esp, 0x8
mov dword ptr [esi+0x15C], eax
xor eax, eax
pop esi
ret
StruggleButtonSetText("MEN_BLANK")
mov eax, dword ptr [esp+0x4]
push esi
mov esi, dword ptr [0xC674E4]
push 0x0
push eax
call LuaParam::GetString
push 0xFF
push eax
add esi, 0x44
push esi
call 0x85C7D0
add esp, 0x14
xor eax, eax
pop esi
ret
SystemAllowMissionManagerToForceRunMissions()
mov byte ptr [0x20C441D], 0x1
xor eax, eax
ret
SystemBustedAreaTransitionHandled()
mov byte ptr [0xBD3E6C], 0x1
xor eax, eax
ret
SystemEnableFrontEndAndSelectScreens(false)
SystemEnableFrontEndAndSelectScreens(true)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetBool
mov byte ptr [0xBA688D], al
add esp, 0x8
xor eax, eax
ret
moveX, moveY, moveZ, moveHeading, moveAreaCode, bRestartMission = SystemGetSavedPositionInformation()
push ecx
fld st, dword ptr [0xBD0FE0]
push esi
mov esi, dword ptr [esp+0xC]
push ecx
fstp dword ptr [esp], st
push esi
call LuaParam::PushFloat
fld st, dword ptr [0xBD0FE4]
add esp, 0x4
fstp dword ptr [esp], st
push esi
call LuaParam::PushFloat
fld st, dword ptr [0xBD0FE8]
add esp, 0x4
fstp dword ptr [esp], st
push esi
call LuaParam::PushFloat
fld st, dword ptr [0xBD0FD8]
fmul st, qword ptr [0x900158]
add esp, 0x4
fdiv st, qword ptr [0x900160]
fstp dword ptr [esp+0x8], st
fld st, dword ptr [esp+0x8]
fstp dword ptr [esp], st
push esi
call LuaParam::PushFloat
mov eax, dword ptr [0x9F4760]
push eax
push esi
call LuaParam::PushInt
movzx ecx, byte ptr [0xBD0FDC]
push ecx
push esi
call LuaParam::PushBool
add esp, 0x18
mov eax, 0x6
pop esi
pop ecx
ret
while not SystemIsReady() do
movzx eax, byte ptr [0xBD0FCB]
mov ecx, dword ptr [esp+0x4]
push eax
push ecx
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
ret
SystemMarkCollisionForExclusion("BikeGar")
SystemMarkCollisionForExclusion("pAnimsE")
SystemMarkCollisionForExclusion("pAnimsI")
SystemMarkCollisionForExclusion("PortaPoo")
SystemMarkCollisionForExclusion("ppoor")
SystemMarkCollisionForExclusion("psc_rich")
SystemMarkCollisionForExclusion("psc_veg")
SystemMarkCollisionForExclusion("psc_yard")
SystemMarkCollisionForExclusion("pstreets")
SystemMarkCollisionForExclusion("tGlobal")
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetString
push eax
call 0x56EDB0
add esp, 0xC
xor eax, eax
ret
SystemResetShouldMovePlayer()
call 0x42E720
xor eax, eax
ret
--print("System should end script?: ", tostring(SystemShouldEndScript()))
if AreaGetVisible() ~= 0 or SystemShouldEndScript() then
if AreaGetVisible() ~= 2 or SystemShouldEndScript() then
if AreaGetVisible() ~= 35 or SystemShouldEndScript() then
if not SystemShouldEndScript() then
if shared.gBDormFAlarmOn == false and not SystemShouldEndScript() then
if shared.gGDormFAlarmOn == false and not SystemShouldEndScript() then
if shared.gSchoolFAlarmOn == false and not SystemShouldEndScript() then
if SystemShouldEndScript() then
while AreaGetVisible() == 18 and not SystemShouldEndScript() do
while AreaGetVisible() == 38 and not SystemShouldEndScript() do
while AreaGetVisible() == 62 and not SystemShouldEndScript() do
while not (AreaGetVisible() ~= 0 or SystemShouldEndScript()) do
while not (AreaGetVisible() ~= 13 or SystemShouldEndScript()) do
while not (AreaGetVisible() ~= 14 or SystemShouldEndScript()) do
while not (AreaGetVisible() ~= 15 or SystemShouldEndScript()) do
while not (AreaGetVisible() ~= 17 or SystemShouldEndScript()) do
while not (AreaGetVisible() ~= 19 or SystemShouldEndScript()) do
while not (AreaGetVisible() ~= 2 or SystemShouldEndScript()) do
while not (AreaGetVisible() ~= 20 or SystemShouldEndScript()) do
while not (AreaGetVisible() ~= 22 or SystemShouldEndScript()) do
while not (AreaGetVisible() ~= 23 or SystemShouldEndScript()) do
while not (AreaGetVisible() ~= 27 or SystemShouldEndScript()) do
while not (AreaGetVisible() ~= 31 or SystemShouldEndScript()) do
while not (AreaGetVisible() ~= 32 or SystemShouldEndScript()) do
while not (AreaGetVisible() ~= 35 or SystemShouldEndScript()) do
while not (AreaGetVisible() ~= 36 or SystemShouldEndScript()) do
while not (AreaGetVisible() ~= 37 or SystemShouldEndScript()) do
while not (AreaGetVisible() ~= 4 or SystemShouldEndScript()) do
while not (AreaGetVisible() ~= 40 or SystemShouldEndScript()) do
while not (AreaGetVisible() ~= 42 or SystemShouldEndScript()) do
while not (AreaGetVisible() ~= 43 or SystemShouldEndScript()) do
while not (AreaGetVisible() ~= 45 or SystemShouldEndScript()) do
while not (AreaGetVisible() ~= 5 or SystemShouldEndScript()) do
while not (AreaGetVisible() ~= 50 or SystemShouldEndScript()) do
while not (AreaGetVisible() ~= 51 or SystemShouldEndScript()) do
while not (AreaGetVisible() ~= 52 or SystemShouldEndScript()) do
while not (AreaGetVisible() ~= 53 or SystemShouldEndScript()) do
while not (AreaGetVisible() ~= 54 or SystemShouldEndScript()) do
while not (AreaGetVisible() ~= 55 or SystemShouldEndScript()) do
while not (AreaGetVisible() ~= 6 or SystemShouldEndScript()) do
while not (AreaGetVisible() ~= 8 or SystemShouldEndScript()) do
while not (AreaGetVisible() ~= 9 or SystemShouldEndScript()) do
while not (AreaGetVisible() ~= Area or SystemShouldEndScript()) do
while not (AreaGetVisible() ~= currentArea or SystemShouldEndScript()) do
while not (AreaGetVisible() ~= gArea or SystemShouldEndScript()) do
while not (not (waitCount < 200) or SystemShouldEndScript()) do
while not (not PlayerIsInTrigger(TRIGGER._INDUSTRIALAREA_DROPOUTENCLAVE) or SystemShouldEndScript()) do
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push esi
mov ecx, 0xD02850
call 0x5DBD50
test eax, eax
mov byte ptr [esp+0x4], 0x0
jz 0xC
mov al, byte ptr [eax+0x2B08]
mov byte ptr [esp+0x4], al
mov ecx, dword ptr [esp+0x4]
push ecx
push esi
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
pop esi
pop ecx
ret
shouldMovePlayer, playerPositioningMechanism = SystemShouldMovePlayer()
push esi
call 0x42E700
mov esi, dword ptr [esp+0x8]
push eax
push esi
call LuaParam::PushBool
mov eax, dword ptr [0xBD0FD4]
push eax
push esi
call LuaParam::PushInt
add esp, 0x10
mov eax, 0x2
pop esi
ret
A standard Lua 5.0 function documented on lua.org.
A standard Lua 5.0 function documented on lua.org.
A standard Lua 5.0 function documented on lua.org.
A standard Lua 5.0 function documented on lua.org.
A standard Lua 5.0 function documented on lua.org.
A standard Lua 5.0 function documented on lua.org.
A standard Lua 5.0 function documented on lua.org.
A standard Lua 5.0 function documented on lua.org.
TaggingOnlyShowMissionTags(false)
TaggingOnlyShowMissionTags(true)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetBool
mov byte ptr [0x20C8B9C], al
add esp, 0x8
xor eax, eax
ret
-- never used
sub esp, 0xC
push ebp
push esi
lea eax, ptr [esp+0x10]
push eax
lea ecx, ptr [esp+0x10]
push ecx
mov ecx, 0x20C8A00
mov byte ptr [esp+0x10], 0x0
xor esi, esi
call 0x72C100
test al, al
mov ebp, dword ptr [esp+0x18]
jz 0x3A
mov edx, dword ptr [esp+0xC]
push edi
push edx
mov ecx, 0x20C7E98
call 0x6D79C0
push ebp
mov edi, eax
call 0x73AEA0
add esp, 0x4
cmp eax, 0x1
jnz 0x12
push esi
push ebp
call LuaParam::GetInt
add esp, 0x8
cmp dword ptr [esp+0x14], eax
jnz 0x9
mov esi, edi
mov byte ptr [esp+0xC], 0x1
pop edi
mov eax, dword ptr [esp+0x8]
push eax
push ebp
call LuaParam::PushBool
push esi
push ebp
call LuaParam::PushInt
add esp, 0x10
pop esi
mov eax, 0x2
pop ebp
add esp, 0xC
ret
TaggingSetTVsState(false)
TaggingSetTVsState(true)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetBool
mov byte ptr [0x20C8AC0], al
add esp, 0x8
xor eax, eax
ret
TaggingStartPersistentTag()
mov ecx, 0x20C8A00
call 0x72C8F0
xor eax, eax
ret
TaggingStopPersistentTag()
mov ecx, 0x20C8A00
call 0x72C950
xor eax, eax
ret
TattooStoreAdd(0, 0, "black", 1000, 1)
TattooStoreAdd(0, 0, "dagger", 1000, 2)
TattooStoreAdd(0, 0, "loveand", 1000, 4)
TattooStoreAdd(0, 0, "skull", 1000, 7)
TattooStoreAdd(0, 2, "fish", 1000, 3)
TattooStoreAdd(0, 2, "ship", 1000, 5)
TattooStoreAdd(0, 2, "stitches", 1000, 6)
TattooStoreAdd(1, 0, "barbs", 1000, 10)
TattooStoreAdd(1, 0, "mermaid", 1000, 12)
TattooStoreAdd(1, 0, "snake", 1000, 11)
TattooStoreAdd(1, 0, "swallow", 1000, 14)
TattooStoreAdd(1, 1, "band", 1000, 8)
TattooStoreAdd(1, 2, "cards", 1000, 9)
TattooStoreAdd(1, 2, "star", 1000, 13)
push ecx
push ebx
push ebp
push esi
mov esi, dword ptr [esp+0x14]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetInt
push 0x2
push esi
mov ebx, eax
call LuaParam::GetString
push 0x3
push esi
mov ebp, eax
call LuaParam::GetInt
push 0x4
push esi
mov dword ptr [esp+0x38], eax
call LuaParam::GetInt
add esp, 0x28
push eax
mov eax, dword ptr [esp+0x14]
push eax
push ebp
push ebx
push edi
call 0x55AEE0
mov ecx, eax
call 0x6D0360
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
TattooStoreRegisterFeedbackCallback(FeedbackCallback)
call 0x55AEE0
push eax
mov eax, dword ptr [esp+0x8]
push 0x0
push eax
call 0x5DA060
add esp, 0xC
xor eax, eax
ret
-- never used
push 0x0
mov ecx, 0xD02850
call 0x5DB940
mov ecx, eax
call 0x5D9E40
xor eax, eax
ret
SHARED
Terminates the current script.
Does not cause the current thread to yield, so your script will keep running until it waits / yields.
SHARED
Terminates the current thread.
Does not cause the current thread to yield, so your script will keep running until it waits / yields.
SHARED
Terminates the script.
Does not cause the current thread to yield, so your script will keep running until it waits / yields.
TerminateThread(AutoLose)
TerminateThread(CrouchHint1)
TerminateThread(CrouchHint2)
TerminateThread(CrouchHint3)
TerminateThread(CrouchHint4)
TerminateThread(johnnyAttacksHandle)
TerminateThread(johnnyUpdatesHandle)
TerminateThread(monThreadID)
TerminateThread(objThreadID)
TerminateThread(thread.id)
TerminateThread(threadAlgieInSchoolTimer)
TerminateThread(threadMonitorPreppies)
TerminateThread(threadPreppySpawner)
TerminateThread(threadStage2_Locates)
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::IsNil
add esp, 0x8
test al, al
jnz 0x1F
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, 0xD02850
call 0x5DB940
mov ecx, eax
call 0x5D9F80
xor eax, eax
pop esi
ret
SHARED
Terminates the thread.
Does not cause the current thread to yield, so your script will keep running until it waits / yields.
TextAddNonLocalizedString(RaceString)
cmp dword ptr [0xCFB6D4], 0x3
jnl 0x3B
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetString
mov ecx, dword ptr [0xCFB6D4]
imul ecx, ecx, 0x104
mov dword ptr [ecx+0xCFB3C8], 0x4
lea ecx, ptr [ecx+0xCFB3CC]
push ecx
push eax
call 0x690090
add esp, 0x10
add dword ptr [0xCFB6D4], 0x1
xor eax, eax
ret
TextAddParamNum(counter)
TextAddParamNum(CounterGetMax() - CounterGetCurrent())
TextAddParamNum(gAreaCountDown)
TextAddParamNum(gBallsHit)
TextAddParamNum(gBikeCountDown)
TextAddParamNum(gCurrentBet)
TextAddParamNum(gMowerCountDown)
TextAddParamNum(minutes)
TextAddParamNum(param)
TextAddParamNum(percent)
TextAddParamNum(playerTotal)
TextAddParamNum(zoeTotal)
push ecx
cmp dword ptr [0xCFB6D4], 0x3
jnl 0x40
mov eax, dword ptr [esp+0x8]
push 0x0
push eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x8], st
mov ecx, dword ptr [0xCFB6D4]
fld st, dword ptr [esp+0x8]
mov eax, ecx
imul eax, eax, 0x104
add esp, 0x8
add ecx, 0x1
mov dword ptr [eax+0xCFB3C8], 0x2
mov dword ptr [0xCFB6D4], ecx
fstp dword ptr [eax+0xCFB3CC], st
xor eax, eax
pop ecx
ret
-- never used
cmp dword ptr [0xCFB6D4], 0x3
jnl 0x3D
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetString
mov ecx, dword ptr [0xCFB6D4]
imul ecx, ecx, 0x104
push 0x7F
mov dword ptr [ecx+0xCFB3C8], 0x3
push eax
lea ecx, ptr [ecx+0xCFB3CC]
push ecx
call 0x85C7D0
add esp, 0x14
add dword ptr [0xCFB6D4], 0x1
xor eax, eax
ret
TextClear()
push esi
push edi
mov edi, dword ptr [0xC674C4]
xor esi, esi
lea ebx, ptr [ebx]
push esi
mov ecx, edi
call 0x5400B0
add esi, 0x1
cmp esi, 0x5
jl 0xFFFFFFF2
mov ecx, dword ptr [0xC674A8]
call 0x5539D0
mov ecx, dword ptr [0xC674A4]
call 0x5539D0
pop edi
xor eax, eax
pop esi
ret
TextPrint("", 0, 1)
TextPrint("", 1, 1)
TextPrint("", 8, 1)
TextPrint("1_02A_CLOTHOBJ", 5, 1)
TextPrint("1_02A_LOGOBJ04", 5, 1)
TextPrint("1_02A_SODAMACH", 5, 1)
TextPrint("1_02B_EMPTY", 1, 1)
TextPrint("1_02B_EMPTY", 4, 1)
TextPrint("1_02B_GARB_01", 3, 1)
TextPrint("1_02B_LOGOBJ04", 4, 1)
TextPrint("1_02B_MOBJ_01", 3, 1)
TextPrint("1_02B_MOBJ_02", 3, 1)
TextPrint("1_02B_MOBJ_03", 4, 1)
TextPrint("1_02B_MOBJ_04", 1000, 1)
TextPrint("1_02B_MOBJ_04", 4, 1)
TextPrint("1_02B_MOBJ_04A", 4, 1)
TextPrint("1_02B_MOBJ_04B", 4, 1)
TextPrint("1_02B_MOBJ_04C", 4, 1)
TextPrint("1_02B_WARNLEAVE", 1, 1)
TextPrint("1_02C_OBJ01", 5, 1)
TextPrint("1_03_D10", 0.5, 1)
TextPrint("1_03_D13", 0.5, 1)
TextPrint("1_03_INSTRUC02", 6, 1)
TextPrint("1_04_BOT", 3, 1)
TextPrint("1_04_CLIMBTREE", 7, 1)
TextPrint("1_04_FIELDOBJ", 5, 1)
TextPrint("1_04_LOT", 0.1, 1)
TextPrint("1_04_OBJ01", 3, 1)
TextPrint("1_04_OBJ02", 3, 1)
TextPrint("1_04_TREE", 5, 1)
TextPrint("1_04_TREE_WARN", 4, 1)
TextPrint("1_05_EMPTY", 1, 1)
TextPrint("1_05_MOBJ_00", 3, 1)
TextPrint("1_05_MOBJ_01", 3, 1)
TextPrint("1_05_MOBJ_02", 4, 1)
TextPrint("1_05_MOBJ_02B", 3, 1)
TextPrint("1_05_MOBJ_03", 3, 1)
TextPrint("1_05_MOBJ_05", 5, 1)
TextPrint("1_06_OBJ01", 3, 1)
TextPrint("1_06_OBJ02", 5, 1)
TextPrint("1_06_OBJ03", 5, 1)
TextPrint("1_07_command", 3, 1)
TextPrint("1_07_Objective1", 4, 1)
TextPrint("1_07_Objective2", 4, 1)
TextPrint("1_07_Objective3", 4, 1)
TextPrint("1_07_Objective4", 4, 1)
TextPrint("1_08_FATTYAGAIN", 3, 1)
TextPrint("1_08_OBJ05", 4, 1)
TextPrint("1_08_OBJ07", 5, 1)
TextPrint("1_08_OBJ17", 5, 1)
TextPrint("1_08_STINKBOMBS", 3, 1)
TextPrint("1_09_08", 6, 1)
TextPrint("1_09_CRAP", 2, 2)
TextPrint("1_09_TRIGGER", 3, 1)
TextPrint("1_10_CRAWL", 0.1, 3)
TextPrint("1_11_XP_OBJ", 5, 1)
TextPrint("1_11X1_EMPTY", 1, 1)
TextPrint("1_11X1_MOBJ01", 4, 1)
TextPrint("1_11X1_MOBJ02", 4, 1)
TextPrint("1_11X2_DROPPOOP", 0.1, 3)
TextPrint("1_11X2_EMPTY", 1, 1)
TextPrint("1_11X2_FIREWARN", 4, 1)
TextPrint("1_11X2_MOBJ_01B", 3, 1)
TextPrint("1_11X2_MOBJ_02", 3, 1)
TextPrint("1_11X2_MOBJ_03", 4, 1)
TextPrint("1_11X2_MOBJ_03B", 4, 1)
TextPrint("1_11X2_PICKUPPOOP", 0.1, 1)
TextPrint("1_G1_GETDIARY", 0.1, 3)
TextPrint("1_G1_OBJ1", 4, 1)
TextPrint("1_G1_OBJ3", 4, 1)
TextPrint("1_G1_OBJ4", 4, 1)
TextPrint("1_G1_OBJ5", 4, 1)
TextPrint("1_S01_01", 3, 1)
TextPrint("1_S01_02", 3, 1)
TextPrint("1_S01_03", 3, 1)
TextPrint("1_S01_42", 3, 1)
TextPrint("1_S01_56", 3, 1)
TextPrint("1_S01_56", 4, 1)
TextPrint("2_01_BARB1", 4, 2)
TextPrint("2_01_BARB2", 4, 2)
TextPrint("2_01_BARB3", 4, 2)
TextPrint("2_01_BARB4", 4, 2)
TextPrint("2_01_CLOTH1", 4, 2)
TextPrint("2_01_CLOTH2", 4, 2)
TextPrint("2_01_CLOTH3", 4, 2)
TextPrint("2_01_CLOTH4", 4, 2)
TextPrint("2_01_GOTOBUS", 4, 1)
TextPrint("2_01_GROC1", 4, 2)
TextPrint("2_01_GROC2", 4, 2)
TextPrint("2_01_GROC3", 4, 2)
TextPrint("2_01_GROC4", 4, 2)
TextPrint("2_01_OBACKEDNA", 4, 1)
TextPrint("2_01_OFINDBIKE", 3, 1)
TextPrint("2_01_OFINDITEMS", 3, 1)
TextPrint("2_01_OGETREMAIN", 2.5, 1)
TextPrint("2_01_OGETREMAIN1", 2.5, 1)
TextPrint("2_02_EMPTY", 1, 1)
TextPrint("2_02_INSTRUC01", 3, 1)
TextPrint("2_02_INSTRUC03", 4, 1)
TextPrint("2_02_INSTRUC04", 4, 1)
TextPrint("2_02_WARN", 4, 1)
TextPrint("2_03_11", 7, 1)
TextPrint("2_03_OBJ6", 0.5, 1)
TextPrint("2_04_INSTRUC01", 4, 1)
TextPrint("2_04_INSTRUC02", 4, 1)
TextPrint("2_05_61", 0.5, 1)
TextPrint("2_05_64", 0.5, 1)
TextPrint("2_06_ALLEY", 5, 1)
TextPrint("2_06_CHOCOGIVE", 5, 1)
TextPrint("2_06_CHOCOLATE", 5, 1)
TextPrint("2_06_EUNICE", 5, 1)
TextPrint("2_06_GET_EUNICE", 5, 1)
TextPrint("2_06_GETBACK", 5, 1)
TextPrint("2_06_MAIN_OBJ", 4, 1)
TextPrint("2_06_PETEY", 5, 1)
TextPrint("2_06_STEAL_BIKE", 5, 1)
TextPrint("2_07_MOBJ_01", 2.5, 1)
TextPrint("2_07_MOBJ_02", 1, 1)
TextPrint("2_07_MOBJ_End", 4, 1)
TextPrint("2_08_AQUAOBJ", 4, 1)
TextPrint("2_08_DISGUISE", 4, 1)
TextPrint("2_08_HATOBJ", 4, 1)
TextPrint("2_08_RICHBARBOBJ", 4, 1)
TextPrint("2_09_Objective", 5, 1)
TextPrint("2_B_11", 4, 1)
TextPrint("2_G2_EMPTY", 1, 1)
TextPrint("2_G2_MOBJ_01", 5, 1)
TextPrint("2_G2_MOBJ_02", 4, 1)
TextPrint("2_G2_MOBJ_02", 5, 1)
TextPrint("2_G2_MOBJ_03", 5, 1)
TextPrint("2_G2_MOBJ_04", 4, 1)
TextPrint("2_G2_NOFLOWER", 5, 1)
TextPrint("2_R04_10", 4, 1)
TextPrint("2_R04_11", 4, 1)
TextPrint("2_R04_12", 4, 1)
TextPrint("2_S02_25", 0, 1)
TextPrint("2_S04_OBJ1", 6, 1)
TextPrint("2_S05_O2", 4, 1)
TextPrint("2_S05_O6", 6, 1)
TextPrint("2_S05_OBRANCH", 4, 1)
TextPrint("2_S05_ODATE1", 4, 1)
TextPrint("2_S05_ODRUG", 4, 1)
TextPrint("2_S05_OITEMS2", 4, 1)
TextPrint("2_S05_OPERFUME", 4, 1)
TextPrint("2_S05_OPROTDATE", 4, 1)
TextPrint("2_S05_RETEDNA", 4, 1)
TextPrint("2_S06_EMPTY", 1, 1)
TextPrint("2_S06_MOBJ_01", 3, 1)
TextPrint("2_S06_MOBJ_01", 4, 1)
TextPrint("2_S06_MOBJ_02", 3, 1)
TextPrint("2_S06_MOBJ_02", 4, 1)
TextPrint("2_S06_MOBJ_03", 3, 1)
TextPrint("2_S06_MOBJ_04", 7, 1)
TextPrint("2_S06_WARN", 0.1, 1)
TextPrint("2_S07_MOBJ_01", 5, 1)
TextPrint("3_01_OALLEY", 4, 1)
TextPrint("3_01_OALLEY", 6.5, 1)
TextPrint("3_01_ORETCASH", 4, 1)
TextPrint("3_01_PHOT" .. h .. k .. g, 4, 1)
TextPrint("3_01_SEARCH", 4, 1)
TextPrint("3_01_SPOTTED", 0.2, 1)
TextPrint("3_01C_BEGIN", 1, 1)
TextPrint("3_01D_OBJ1_01", 5, 1)
TextPrint("3_01D_OBJ1_03", 5, 1)
TextPrint("3_01D_SCENE1", 5, 1)
TextPrint("3_02_BRAWLOBJ", 5, 1)
TextPrint("3_02_FINDOBJ", 5, 1)
TextPrint("3_02_LUREOBJ", 5, 1)
TextPrint("3_02_MADOBJ", 5, 1)
TextPrint("3_02_TOOFAR", 5, 1)
TextPrint("3_03_GREASER_01", 3, 2)
TextPrint("3_03_GREASER_02", 3, 2)
TextPrint("3_03_GREASER_03", 3, 2)
TextPrint("3_03_GREASER_04", 3, 2)
TextPrint("3_03_GREASER_05", 3, 2)
TextPrint("3_03_GREASER_07", 3, 2)
TextPrint("3_03_LOLA_01", 3, 2)
TextPrint("3_03_LOLA_02", 3, 2)
TextPrint("3_03_LOLA_03", 3, 2)
TextPrint("3_03_LOLA_04", 3, 2)
TextPrint("3_03_LOLA_05", 4, 2)
TextPrint("3_03_LOLA_06", 4, 2)
TextPrint("3_03_LOLA_07", 3, 2)
TextPrint("3_03_LOLA_08", 3, 2)
TextPrint("3_03_MFAIL", 3, 1)
TextPrint("3_03_MOBJ_01", 3, 1)
TextPrint("3_03_MOBJ_02", 3, 1)
TextPrint("3_03_MOBJ_03", 4, 1)
TextPrint("3_03_MOBJ_05", 4, 1)
TextPrint("3_03_TAD_01", 3, 2)
TextPrint("3_03_TAD_02", 3, 2)
TextPrint("3_03_TAD_03", 3, 2)
TextPrint("3_03_TAD_05", 4, 2)
TextPrint("3_04_EMPTY", 1, 1)
TextPrint("3_04_MOBJ_01", 4, 1)
TextPrint("3_04_MOBJ_02", 3, 1)
TextPrint("3_04_MOBJ_02", 4, 1)
TextPrint("3_04_MOBJ_03", 4, 1)
TextPrint("3_04_MOBJ_04", 4, 1)
TextPrint("3_04_MOBJ_05", 4, 1)
TextPrint("3_05_GETITEMS", 4, 1)
TextPrint("3_05_GETSLEDGE", 4, 1)
TextPrint("3_05_GOTHAMR", 4, 1)
TextPrint("3_05_OBRWALL", 0.5, 1)
TextPrint("3_05_OENTER", 4, 1)
TextPrint("3_05_OLEAVE", 4, 1)
TextPrint("3_05_ONORTON", 4, 1)
TextPrint("3_05_ORETLOLA", 4, 1)
TextPrint("3_06_FightPeanut", 4, 1)
TextPrint("3_06_GetBackRumble", 4, 1)
TextPrint("3_06_Obj01", 4, 1)
TextPrint("3_06_Obj05", 1000000, 1)
TextPrint("3_06_PENTFLLW", 4, 1)
TextPrint("3_06_Warn02", 4, 1)
TextPrint("3_R05B_ASSISTANT", 5, 1)
TextPrint("3_R05b_INSTRUC", 3, 1)
TextPrint("3_R05B_MOBJ_01", 5, 1)
TextPrint("3_R05B_MOBJ_02", 5, 1)
TextPrint("3_R05B_MOBJ_03", 5, 1)
TextPrint("3_R06_06", 3, 2)
TextPrint("3_R06_07", 3, 2)
TextPrint("3_R06_08", 3, 2)
TextPrint("3_R06_09", 3, 2)
TextPrint("3_R06_10", 3, 2)
TextPrint("3_R06_12", 3, 1)
TextPrint("3_R06_13", 3, 1)
TextPrint("3_R06_14", 3, 1)
TextPrint("3_R06_15", 3, 1)
TextPrint("3_R06_16", 3, 1)
TextPrint("3_R06_17", 3, 2)
TextPrint("3_R06_18", 3, 2)
TextPrint("3_R06_19", 3, 2)
TextPrint("3_R06_20", 3, 2)
TextPrint("3_R06_21", 3, 2)
TextPrint("3_R06_22", 3, 2)
TextPrint("3_R06_23", 3, 2)
TextPrint("3_R06_24", 3, 2)
TextPrint("3_R09_69", 4, 1)
TextPrint("3_R09_70", 4, 1)
TextPrint("3_R09_72", 4, 1)
TextPrint("3_R09_96", 4, 1)
TextPrint("3_R09_98", 4, 1)
TextPrint("3_R09_ArObj", 4, 1)
TextPrint("3_R09_B1", 4, 1)
TextPrint("3_R09_B3", 4, 1)
TextPrint("3_R09_C5", 3, 1)
TextPrint("3_R09_Upstairs", 1, 1)
TextPrint("3_S03_EMPTY", 1, 1)
TextPrint("3_S03_MOBJ_01", 3, 1)
TextPrint("3_S03_MOBJ_02", 3, 1)
TextPrint("3_S03_MOBJ_03", 3, 1)
TextPrint("3_S03_MOBJ_04", 4, 1)
TextPrint("3_S03_MOBJ_05", 3, 1)
TextPrint("3_S03_MOBJ_06", 3, 1)
TextPrint("3_S03_MOBJ_07", 3, 1)
TextPrint("3_S03_MOBJ_08", 3, 1)
TextPrint("3_S08_MOBJ_01", 5, 1)
TextPrint("3_S08_MOBJ_02", 5, 1)
TextPrint("3_S09_C01", 3, 2)
TextPrint("3_S09_C02", 2, 2)
TextPrint("3_S09_C03", 1, 2)
TextPrint("3_S09_C04", 1, 2)
TextPrint("3_S09_C05", 4, 2)
TextPrint("3_S09_C06", 2, 2)
TextPrint("3_S09_C07", 5, 2)
TextPrint("3_S09_C08", 3, 2)
TextPrint("3_S09_C09", 4, 2)
TextPrint("3_S09_C10", 3, 2)
TextPrint("3_S09_C11", 4, 2)
TextPrint("3_S09_C12", 4, 2)
TextPrint("3_S09_C13", 3, 2)
TextPrint("3_S09_C14", 3, 2)
TextPrint("3_S09_C15", 3, 2)
TextPrint("3_S10_07", 6, 1)
TextPrint("3_S11_16", 5, 1)
TextPrint("3_S11_74", 5, 1)
TextPrint("3_S11_92", 5, 1)
TextPrint("3_S11_94", 5, 1)
TextPrint("3_S11_MEETP", 5, 1)
TextPrint("3_S11_SECRET", 5, 1)
TextPrint("3_XM_CANDLES", 4, 1)
TextPrint("3_XM_CANDYCANES", 4, 1)
TextPrint("3_XM_CASTLE", 4, 1)
TextPrint("3_XM_PRESENTS", 4, 1)
TextPrint("3_XM_SLEIGH", 4, 1)
TextPrint("3_XM_SNOWMAN", 4, 1)
TextPrint("3_XM_SQUARE", 4, 1)
TextPrint("3_XM_WARN_AREA", 1, 1)
TextPrint("4_01_EMPTY", 1, 1)
TextPrint("4_01_MOBJ_01", 4, 1)
TextPrint("4_01_MOBJ_01B", 3, 1)
TextPrint("4_01_MOBJ_01C", 3, 1)
TextPrint("4_01_MOBJ_02", 4, 1)
TextPrint("4_01_WARN_01", 4, 1)
TextPrint("4_02_25", 3, 2)
TextPrint("4_02_26", 3, 2)
TextPrint("4_02_27", 3, 2)
TextPrint("4_02_29", 4, 2)
TextPrint("4_02_30", 4, 2)
TextPrint("4_02_31", 3, 2)
TextPrint("4_02_32", 4, 2)
TextPrint("4_02_33", 3, 2)
TextPrint("4_02_34", 3, 2)
TextPrint("4_02_35", 3, 2)
TextPrint("4_02_36", 3, 2)
TextPrint("4_02_37", 3, 2)
TextPrint("4_02_38", 3, 2)
TextPrint("4_02_40", 3, 2)
TextPrint("4_02_41", 3, 2)
TextPrint("4_02_42", 3, 2)
TextPrint("4_02_43", 3, 2)
TextPrint("4_02_44", 3, 2)
TextPrint("4_02_45", 3, 2)
TextPrint("4_02_46", 3, 2)
TextPrint("4_02_52", 3, 1)
TextPrint("4_02_53", 3, 1)
TextPrint("4_02_CODE", 5, 1)
TextPrint("4_02_GCANNON", 4, 1)
TextPrint("4_02_GO_OBS", 5, 1)
TextPrint("4_02_KEYCODE", 4, 1)
TextPrint("4_02_KILLDOORS", 4, 1)
TextPrint("4_02_NERDS", 5, 1)
TextPrint("4_02_OPENDOOR", 5, 1)
TextPrint("4_02_SECDOOR", 5, 1)
TextPrint("4_02_TRANS", 5, 1)
TextPrint("4_03_01", 3, 1)
TextPrint("4_03_07", 3, 1)
TextPrint("4_03_21", 3, 1)
TextPrint("4_03_22", 4, 1)
TextPrint("4_03_23", 3, 1)
TextPrint("4_03_LEAVINGOBS", 0.3, 1)
TextPrint("4_04_ACTIVATEREPR", 4, 1)
TextPrint("4_04_DISABLELAST", 4, 1)
TextPrint("4_04_DISABLEREST", 4, 1)
TextPrint("4_04_FINDFATTY", 4, 1)
TextPrint("4_04_FINDNERDS", 4, 1)
TextPrint("4_04_FINDTHAD", 4, 1)
TextPrint("4_04_INSTRUC00", 4, 1)
TextPrint("4_04_INSTRUC00A", 3, 1)
TextPrint("4_04_INSTRUC00B", 4, 1)
TextPrint("4_04_INSTRUC01", 4, 1)
TextPrint("4_04_INSTRUC02", 4, 1)
TextPrint("4_04_INSTRUC03", 4, 1)
TextPrint("4_04_INSTRUC04", 4, 1)
TextPrint("4_04_INSTRUC04A", 4, 1)
TextPrint("4_04_INSTRUC05", 4, 1)
TextPrint("4_04_INSTRUC05A", 4, 1)
TextPrint("4_04_INSTRUC05B", 4, 1)
TextPrint("4_05_EMPTY", 1, 1)
TextPrint("4_05_MOBJ_01", 6, 1)
TextPrint("4_05_MOBJ_04", 4, 1)
TextPrint("4_05_WARN", 1, 1)
TextPrint("4_06_CD04", 3, 1)
TextPrint("4_06_CD05", 3, 1)
TextPrint("4_06_CD06", 3, 1)
TextPrint("4_06_GATENERD", 5, 1)
TextPrint("4_06_NEXT_OP", 5, 1)
TextPrint("4_06_NEXT_OP3", 5, 1)
TextPrint("4_06_NEXT_OP_2", 4, 1)
TextPrint("4_06_NEXT_OP_2", 5, 1)
TextPrint("4_06_OP_D_01", 4, 1)
TextPrint("4_06_OP_D_05", 4, 1)
TextPrint("4_06_OP_E_01", 4, 1)
TextPrint("4_06_OP_E_10", 4, 1)
TextPrint("4_06_OP_F_01", 4, 1)
TextPrint("4_06_OPA_01", 4, 1)
TextPrint("4_06_OPA_05", 4, 1)
TextPrint("4_06_OPC_04", 3, 1)
TextPrint("4_06_OPC_06", 5, 1)
TextPrint("4_06_OUTOFBOUNDS", 4, 1)
TextPrint("4_B2_Obj1", 3, 1)
TextPrint("4_B2_Obj2", 1, 1)
TextPrint("4_B2_Obj2", 3, 1)
TextPrint("4_G4_19", 4, 1)
TextPrint("4_G4_ALGIECLEAN", 4, 1)
TextPrint("4_G4_OBJ1", 4, 1)
TextPrint("4_G4_SEARCH", 4000000, 1)
TextPrint("4_G4_SPRAYBUY", 4, 1)
TextPrint("4_S12_MAINOBJ", 4, 1)
TextPrint("4_S12_RETURN_ITEMS", 5, 1)
TextPrint("5_01_Obj", 4, 1)
TextPrint("5_02_AREAWARN", 0.5, 1)
TextPrint("5_03_024", 5, 1)
TextPrint("5_03_032", 0.1, 3)
TextPrint("5_03_039", 5, 1)
TextPrint("5_03_37", 5, 1)
TextPrint("5_03_39", 5, 1)
TextPrint("5_03_94", 5, 1)
TextPrint("5_03_GETBACK", 1, 1)
TextPrint("5_03_GETIN", 5, 1)
TextPrint("5_03_OPENDOOR", 5, 1)
TextPrint("5_03_TALK", 5, 1)
TextPrint("5_04_05", 4, 1)
TextPrint("5_04_11", 4, 1)
TextPrint("5_04_12", 4, 1)
TextPrint("5_04_35", 4, 1)
TextPrint("5_04_40", 5, 1)
TextPrint("5_04_41", 2, 1)
TextPrint("5_04_41", 4, 1)
TextPrint("5_05_17", 3, 1)
TextPrint("5_05_BURTSPOT", 4, 2)
TextPrint("5_05_MEETZOE2", 4, 1)
TextPrint("5_05_OGETBOLT", 3, 1)
TextPrint("5_05_OGETCUTS", 4, 1)
TextPrint("5_05_OPUSHPOT", 4, 1)
TextPrint("5_05_PUSH2", 4, 2)
TextPrint("5_05_PUSH3", 4, 2)
TextPrint("5_05_RETPARK", 0.1, 1)
TextPrint("5_05_SABOTAGE", 4, 1)
TextPrint("5_06_01", 5, 1)
TextPrint("5_06_04", 5, 1)
TextPrint("5_06_05", 5, 1)
TextPrint("5_06_06", 3, 2)
TextPrint("5_06_07", 3, 2)
TextPrint("5_06_08", 2, 1)
TextPrint("5_07A_32", 4, 1)
TextPrint("5_07A_33", 4, 1)
TextPrint("5_07A_OBJ10", 4, 1)
TextPrint("5_07A_OBJ4", 4, 1)
TextPrint("5_07A_OBJ5", 4, 1)
TextPrint("5_07A_OBJ6", 4, 1)
TextPrint("5_07A_OBJ7", 4, 1)
TextPrint("5_07A_OBJ8", 4, 1)
TextPrint("5_07A_OBJ9", 4, 1)
TextPrint("5_09_OC_03", 4, 1)
TextPrint("5_09_OGETHALL", 4, 1)
TextPrint("5_09_ORETURN", 4, 1)
TextPrint("5_09_OSPRAY", 4, 1)
TextPrint("5_09_OT_01", 4, 1)
TextPrint("5_09_OT_07", 4, 1)
TextPrint("5_09_OT_09", 4, 1)
TextPrint("5_09_OTAGCITY", 4, 1)
TextPrint("5_B_Crawl", 1, 3)
TextPrint("5_B_obj1", 3, 1)
TextPrint("5_B_obj2", 3, 1)
TextPrint("5_G5_EMPTY", 1, 1)
TextPrint("5_G5_FINALSCORE01", 4, 1)
TextPrint("5_G5_FINALSCORE02", 4, 1)
TextPrint("5_G5_HINT", 4, 1)
TextPrint("5_G5_MOBJ01", 4, 1)
TextPrint("5_G5_MOBJ02", 4, 1)
TextPrint("5_G5_TIMEUP", 3, 1)
TextPrint("5_T1_OBJ01", 4, 1)
TextPrint("5_T1_OBJ02", 4, 1)
TextPrint("5_T1_OBJ03", 4, 1)
TextPrint("6_01_EXPELLED", 4, 1)
TextPrint("6_02_OBJ1", 4, 1)
TextPrint("6_02_OBJ2", 4, 1)
TextPrint("6_02_OBJ3", 4, 1)
TextPrint("6_03_FAILWARN", 4, 1)
TextPrint("6_03_OBJ00", 4, 1)
TextPrint("6_03_OBJ01", 4, 1)
TextPrint("6_03_OBJ01C", 3, 1)
TextPrint("6_03_OBJ02", 4, 1)
TextPrint("6_03_OBJ03", 4, 1)
TextPrint("6_03_OBJ04", 4, 1)
TextPrint("6_B_EMPTY", 1, 1)
TextPrint("6_B_MOBJ_01", 3, 1)
TextPrint("Arc_01", 2, 1)
TextPrint("Arc_01", 3, 1)
TextPrint("Arc_02", 2, 1)
TextPrint("Arc_02", 3, 1)
TextPrint("Arc_03", 2, 1)
TextPrint("Arc_03", 3, 1)
TextPrint("Arc_04", 3, 1)
TextPrint("Arc_05", 2, 1)
TextPrint("Arc_06", 2, 1)
TextPrint("Arc_07", 2, 1)
TextPrint("Arc_08", 2, 1)
TextPrint("Arc_09", 2, 1)
TextPrint("Arc_10", 2, 1)
TextPrint("Arc_11", 2, 1)
TextPrint("Arc_12", 3, 1)
TextPrint("Arc_13", 3, 1)
TextPrint("AS_RK_FAIL", 4, 1)
TextPrint("AS_TW_BUTDISPL", 0.5, 3)
TextPrint("BOX_SWEATER", 5, 1)
TextPrint("BOXING_02", 2, 1)
TextPrint("BOXING_03", 3, 1)
TextPrint("BOXING_09", 10, 1)
TextPrint("BOXING_INST", 50, 3)
TextPrint("BUT_BETS", 1, 2)
TextPrint("BUT_CLASS_CHE", 0.1, 3)
TextPrint("BUT_CLASS_GYM", 1, 3)
TextPrint("BUT_CLOTH", 1, 3)
TextPrint("BUT_CLOTHSTR", 1, 3)
TextPrint("BUT_STORE", 1, 3)
TextPrint("C3_01_24", 3, 1)
TextPrint("C3_01_25", 3, 1)
TextPrint("C3_01_26", 3, 1)
TextPrint("C3_01_27", 3, 1)
TextPrint("C3_01_28", 3, 1)
TextPrint("C3_01_30", 4, 1)
TextPrint("C3_01_31", 4, 1)
TextPrint("C4_BEGIN", 1, 1)
TextPrint("C5_02", 5, 1)
TextPrint("C5_10", 4, 1)
TextPrint("C5_13", 4, 1)
TextPrint("C6_INST01", 3, 1)
TextPrint("C6_INT_08", 1, 1)
TextPrint("CLT_JSHIRT", 3, 2)
TextPrint("Entering camera tweak mode.", 4, 1)
TextPrint("GIFT_NEG", 1, 3)
TextPrint("GKART_1ST", 2, 1)
TextPrint("GKART_2ND", 2, 1)
TextPrint("GKART_3RD", 2, 1)
TextPrint("GKART_4TH", 2, 1)
TextPrint("GKART_5TH", 2, 1)
TextPrint("GKART_6TH", 2, 1)
TextPrint("GKART_NEXTTIME", 3, 1)
TextPrint("GKART_RACEOVER", 2, 1)
TextPrint("GKART_TIMELIMIT", 1, 1)
TextPrint("GKART_WINRACE", 3, 1)
TextPrint("GKART_YOUWON", 3, 1)
TextPrint("GOTO_PRINCIPAL", 5, 1)
TextPrint("GOTO_RACEBUSINESS", 3, 1)
TextPrint("GOTO_RACEPOOR", 3, 1)
TextPrint("GOTO_RACERICH1", 3, 1)
TextPrint("GOTO_RACERICH2", 3, 1)
TextPrint("GOTO_RACESCHOOL", 3, 1)
TextPrint("GRAF_TAG_C", 4, 1)
TextPrint("HS_XSTART", 0.5, 1)
TextPrint("M_FAIL", 3, 0)
TextPrint("M_FAIL", 3, 1)
TextPrint("M_PASS", 3, 0)
TextPrint("M_PASS", 3, 1)
TextPrint("MC_BEGIN", 1, 1)
TextPrint("MEN_BLANK", 1, 1)
TextPrint("MEN_BLANK", 1, 3)
TextPrint("MFAIL", 3, 1)
TextPrint("MG_GO", 1, 1)
TextPrint("MG_READY", 1, 1)
TextPrint("MG_SET", 1, 1)
TextPrint("MGBT_46", 4, 1)
TextPrint("MGBT_INSTRUCT", gMissionTime, 4)
TextPrint("MGBT_XSTART", 0.5, 1)
TextPrint("MGDT_INSTRUCT", 0.5, 3)
TextPrint("MGDT_XSTART", 0.5, 1)
TextPrint("MGSG_40", 2, 2)
TextPrint("MGSG_41", 2, 2)
TextPrint("MGSG_42", 2, 2)
TextPrint("MGSG_INST", gMissionTime, 3)
TextPrint("MGSG_XSTART", 0.5, 1)
TextPrint("MGSK_18", 2, 1)
TextPrint("MGSK_19", 1, 1)
TextPrint("MGSP_BET", 1, 2)
TextPrint("MIF_BET02", 1, 2)
TextPrint("MIF_BET03", 3, 1)
TextPrint("MIF_BET04", 3, 1)
TextPrint("MPASS", 3, 1)
TextPrint("P_GRAF_01", 0.5, 1)
TextPrint("P_SNOW_06", 5, 1)
TextPrint("PUN_04", 0.5, 1)
TextPrint("RACE_FAR", 0.3, 1)
TextPrint("RACE_GETONOBJ", 4, 1)
TextPrint("RACE_GETONOBJ", getOnDelay, 1)
TextPrint("RACE_GETONOBJ", race.get_on_delay, 1)
TextPrint("RACE_LAST_LAP", 7, 1)
TextPrint("RACE_OFFTRACK", 0.5, 1)
TextPrint("RACING_1", 1, 1)
TextPrint("RACING_2", 1, 1)
TextPrint("RACING_3", 1, 1)
TextPrint("RACING_GO", 1, 1)
TextPrint("RACING_L_GEN", 2, 1)
TextPrint("RACING_W_GEN", 2, 1)
TextPrint("SOC_VND1", 3, 2)
TextPrint("SOC_VND2", 3, 2)
TextPrint("SOC_VND3", 3, 2)
TextPrint("SOC_VND4", 3, 2)
TextPrint("SOC_VND5", 3, 2)
TextPrint("STEALTH_SPOTTED", 4, 2)
TextPrint("TIMER_D", 3, 1)
TextPrint("TM_TIRED5", 4, 2)
TextPrint("TUT_STARTOBJ1", 3, 1)
TextPrint("USE_BUYTICKET", 1, 3)
TextPrint(event.mText, event.mTime, 2)
TextPrint(event.mText, event.mTime, event.mStyle)
TextPrint(gCompleteStr, 4, 1)
TextPrint(gCurrentObjectiveText, 4, 1)
TextPrint(gGetReadyText, 2, 1)
TextPrint(gMissionText, 4, 1)
TextPrint(gObjectiveString, 4, 1)
TextPrint(gObjectiveText, 5, 1)
TextPrint(gShoppingString, 1, 3)
TextPrint(gTextQueue[1].textVal, gTextQueue[1].textTime / 1000, gTextQueue[1].tStyle)
TextPrint(gUnlockName, 3, 1)
TextPrint(gUnlockName, 5, 1)
TextPrint(instruction, 0, 3)
TextPrint(instruction, 0.1, 3)
TextPrint(newObjStr, 3, 1)
TextPrint(newObjStr, 4, 1)
TextPrint(newObjStr, 5, 1)
TextPrint(newObjStr, 5.5, 1)
TextPrint(newObjStr, 6, 1)
TextPrint(newObjStr, 7, 1)
TextPrint(photo.text, 4, 1)
TextPrint(race.missionCode .. "_13", 2, 1)
TextPrint(race.missionCode .. "_14", 2, 1)
TextPrint(race.missionCode .. "_16", 3, 1)
TextPrint(RandomTableElement(tblDeliveryNotDone), 3, 2)
TextPrint(RandomTableElement(tblDeliverySuccess), 3, 2)
TextPrint(reference, 3, 1)
TextPrint(reference, 4, 1)
TextPrint(tblMissionParams[CurrentMissionIndex][1], 5, 1)
TextPrint(tblMissionParams[CurrentMissionIndex][3], 5, 1)
jmp 0xFFFFFDE0
int3
int3
int3
int3
int3
int3
int3
int3
int3
int3
int3
sub esp, 0x200
push esi
push edi
mov edi, dword ptr [esp+0x20C]
push 0x0
push edi
call LuaParam::GetString
mov esi, dword ptr [0xC3CD0C]
lea ecx, ptr [esp+0x10]
neg esi
push ecx
sbb esi, esi
push eax
and esi, 0x2
call 0x690090
push edi
call 0x73AEA0
add esp, 0x14
cmp eax, 0x3
jz 0x10
push edi
call 0x73AEA0
add esp, 0x4
cmp eax, 0x4
jnz 0xF
push 0x2
push edi
call LuaParam::GetInt
add esp, 0x8
mov esi, eax
test esi, esi
jnz 0x30
mov esi, dword ptr [0xC674C4]
push 0xFFFFFFFF
push 0x1
push edi
call LuaParam::GetFloat
fstp dword ptr [esp+0x4], st
add esp, 0x4
lea edx, ptr [esp+0x10]
push edx
mov ecx, esi
call 0x540250
pop edi
xor eax, eax
pop esi
add esp, 0x200
ret
cmp esi, 0x6
jnz 0x3A
mov esi, dword ptr [0xC674C4]
push 0x3
push edi
call LuaParam::GetInt
add esp, 0x8
push eax
push 0x1
push edi
call LuaParam::GetFloat
fstp dword ptr [esp+0x4], st
add esp, 0x4
lea eax, ptr [esp+0x10]
push eax
mov ecx, esi
call 0x540250
pop edi
xor eax, eax
pop esi
add esp, 0x200
ret
cmp esi, 0x1
jnz 0x37
call 0x5142C0
lea ecx, ptr [esp+0x8]
push ecx
call 0x514280
push esi
push edi
call LuaParam::GetFloat
fstp dword ptr [esp+0x8], st
add esp, 0x8
push 0x92A54C
call 0x5142A0
add esp, 0x8
pop edi
xor eax, eax
pop esi
add esp, 0x200
ret
cmp esi, 0x2
jnz 0x28
lea edx, ptr [esp+0x8]
push edx
call 0x514320
push 0x1
push edi
call LuaParam::GetFloat
fstp dword ptr [esp+0x8], st
add esp, 0x8
push 0x92A54C
call 0x514340
add esp, 0x8
pop edi
xor eax, eax
pop esi
add esp, 0x200
ret
-- never used
push ebx
mov ebx, dword ptr [esp+0x8]
push ebp
push esi
push 0x0
push ebx
call LuaParam::GetString
mov esi, dword ptr [0xC3CD0C]
neg esi
sbb esi, esi
push ebx
mov ebp, eax
and esi, 0x2
call 0x73AEA0
add esp, 0xC
cmp eax, 0x3
jnz 0xF
push 0x2
push ebx
call LuaParam::GetInt
add esp, 0x8
mov esi, eax
test esi, esi
jnz 0x32
mov esi, dword ptr [0xC674C4]
push 0xFFFFFFFF
push 0x1
push ebx
call LuaParam::GetFloat
fstp dword ptr [esp+0x4], st
add esp, 0x4
push ebp
mov ecx, 0x20C2FA4
call 0x68FE80
push eax
mov ecx, esi
call 0x540250
pop esi
pop ebp
xor eax, eax
pop ebx
ret
cmp esi, 0x1
push edi
jnz 0x8C
xor edi, edi
cmp dword ptr [0xCFB6D4], edi
jle 0x55
mov esi, 0xCFB3CC
mov eax, dword ptr [esi-0x4]
add eax, 0xFFFFFFFF
cmp eax, 0x3
jnbe 0x34
jmp dword ptr [eax*4+0x5D57B8]
fild st, dword ptr [esi]
push ecx
fstp dword ptr [esp], st
call 0x514240
jmp 0x1D
fld st, dword ptr [esi]
push ecx
fstp dword ptr [esp], st
call 0x514240
jmp 0x10
push esi
call 0x514260
jmp 0x8
push esi
call 0x514280
add esp, 0x4
add edi, 0x1
add esi, 0x104
cmp edi, dword ptr [0xCFB6D4]
jl 0xFFFFFFB4
push 0x1
push ebx
mov dword ptr [0xCFB6D4], 0x0
call LuaParam::GetFloat
fstp dword ptr [esp+0x4], st
add esp, 0x4
push ebp
call 0x5142A0
add esp, 0x8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
TextPrintF("3B_BIKEWARN", 0.5, 1)
TextPrintF("3S10_AREAWARN", 0.5, 1)
TextPrintF("GKART_TIME2BEAT", 3, 1)
TextPrintF("MGSK_20", 1, 2)
TextPrintF("P_LAWN_07", 0.5, 1)
TextPrintF(newObjStr, 5, 1)
jmp 0xFFFFFDE0
int3
int3
int3
int3
int3
int3
int3
int3
int3
int3
int3
sub esp, 0x200
push esi
push edi
mov edi, dword ptr [esp+0x20C]
push 0x0
push edi
call LuaParam::GetString
mov esi, dword ptr [0xC3CD0C]
lea ecx, ptr [esp+0x10]
neg esi
push ecx
sbb esi, esi
push eax
and esi, 0x2
call 0x690090
push edi
call 0x73AEA0
add esp, 0x14
cmp eax, 0x3
jz 0x10
push edi
call 0x73AEA0
add esp, 0x4
cmp eax, 0x4
jnz 0xF
push 0x2
push edi
call LuaParam::GetInt
add esp, 0x8
mov esi, eax
test esi, esi
jnz 0x30
mov esi, dword ptr [0xC674C4]
push 0xFFFFFFFF
push 0x1
push edi
call LuaParam::GetFloat
fstp dword ptr [esp+0x4], st
add esp, 0x4
lea edx, ptr [esp+0x10]
push edx
mov ecx, esi
call 0x540250
pop edi
xor eax, eax
pop esi
add esp, 0x200
ret
cmp esi, 0x6
jnz 0x3A
mov esi, dword ptr [0xC674C4]
push 0x3
push edi
call LuaParam::GetInt
add esp, 0x8
push eax
push 0x1
push edi
call LuaParam::GetFloat
fstp dword ptr [esp+0x4], st
add esp, 0x4
lea eax, ptr [esp+0x10]
push eax
mov ecx, esi
call 0x540250
pop edi
xor eax, eax
pop esi
add esp, 0x200
ret
cmp esi, 0x1
jnz 0x37
call 0x5142C0
lea ecx, ptr [esp+0x8]
push ecx
call 0x514280
push esi
push edi
call LuaParam::GetFloat
fstp dword ptr [esp+0x8], st
add esp, 0x8
push 0x92A54C
call 0x5142A0
add esp, 0x8
pop edi
xor eax, eax
pop esi
add esp, 0x200
ret
cmp esi, 0x2
jnz 0x28
lea edx, ptr [esp+0x8]
push edx
call 0x514320
push 0x1
push edi
call LuaParam::GetFloat
fstp dword ptr [esp+0x8], st
add esp, 0x8
push 0x92A54C
call 0x514340
add esp, 0x8
pop edi
xor eax, eax
pop esi
add esp, 0x200
ret
TextPrintString(" Now we can open the main door", 3, 2)
TextPrintString(" press ~s~ to set crate on path sideways", 3, 1)
TextPrintString(" press ~t~ to Set crate on path going up", 3, 1)
TextPrintString("", 0)
TextPrintString("", 0, 1)
TextPrintString("", 0, 2)
TextPrintString("", 0.1, 1)
TextPrintString("", 0.1, 2)
TextPrintString("", 0.5, 1)
TextPrintString("", 0.5, 2)
TextPrintString("", 1, 1)
TextPrintString("", 1, 2)
TextPrintString("", 2, 1)
TextPrintString("", 2, 2)
TextPrintString("==============>>>> POI's be created at regular intervals!", 5, 2)
TextPrintString("==============>>>> POI's will be created 100% of the time!", 5, 2)
TextPrintString("==>> Next Punishment Mission will be: Garbage Pickup!", 10, 1)
TextPrintString("==>> Next Punishment Mission will be: Grafitti Cleanup!", 10, 1)
TextPrintString("==>> Next Punishment Mission will be: Lawnmower!", 10, 1)
TextPrintString("==>> Next Punishment Mission will be: Snow Shoveling!", 10, 1)
TextPrintString("ANIMATION:" .. anims[L3_2].anim, 5, 1)
TextPrintString("ANIMATION:" .. anims[L3_2].fail_anim, 5, 1)
TextPrintString("Ball " .. gBalls, 2000, 2)
TextPrintString("Ball 4! You lost the game ! ", 2000, 2)
TextPrintString("Better luck next time ! ", 2000, 2)
TextPrintString("CALLBACK CALLED MMM RED TEXT", 4, 1)
TextPrintString("Car Model Decreased", 3, 1)
TextPrintString("Car Model Increased", 3, 1)
TextPrintString("Clear Fight Test", 2000)
TextPrintString("Clear Full Nelson Test", 2000)
TextPrintString("Clear Projectile AI Test", 2000)
TextPrintString("Color Upgrade", 2, 1)
TextPrintString("Creating Bike Line-up", 2, 2)
TextPrintString("Creating Character Line-up", 2, 2)
TextPrintString("Creating ped", 2)
TextPrintString("Creating pickup: " .. wt[index].name, 2)
TextPrintString("Creating Pikcup Line-up", 2, 2)
TextPrintString("Debugging to make halloween available!", 3, 2)
TextPrintString("DETECTED EGG IMPACT! NUMBER STANDS AT: " .. tostring(eggImpacts), 3)
TextPrintString("Dude: Leave our Garden or Die!", 4, 2)
TextPrintString("Dude: Running sucks!", 4, 2)
TextPrintString("Entering NIS Mode.", 4, 1)
TextPrintString("Excellent Job Kid ! ", 2000, 2)
TextPrintString("Excellent job, now return to the classroom", 5, 1)
TextPrintString("Executed: " .. gMenuTable[gCurrentMenu].ftable[gMenuTable[gCurrentMenu].currentmenu].str, 4, 1)
TextPrintString("Executed: " .. gMenuTable[gCurrentMenu].str, 4, 1)
TextPrintString("Executing Option 1", 4, 1)
TextPrintString("Executing Option 2", 4, 1)
TextPrintString("Executing Option 3", 4, 1)
TextPrintString("Executing Option 4", 4, 1)
TextPrintString("Fight Test Mode", 2, 2)
TextPrintString("Finished NIS", 4, 1)
TextPrintString("GAME OVER.", 1)
TextPrintString("Get back in the Rumble Area", 3, 2)
TextPrintString("Get back on a bike!", 3, 1)
TextPrintString("Get to the Bike", 5, 1)
TextPrintString("Get to the Centre of the Garden", 4, 1)
TextPrintString("Go Find Edna's Bike.", 6, 1)
TextPrintString("Go into the Garden", 4, 1)
TextPrintString("Going into scripted cam in 3 seconds", 4, 2)
TextPrintString("GOOD PICTURE", 3, 2)
TextPrintString("Graffiti Test", 4, 1)
TextPrintString("Greaser: Hey it's Jimmy, Johnny's going to like this...", 4, 2)
TextPrintString("Greaser: What the hell!", 4, 2)
TextPrintString("He is OUT!", 3000, 2)
TextPrintString("Hey you ! What the hell you think you are doing ! Get out of my here !", 4, 2)
TextPrintString("Hit all 6 red squares before time runs out to advance to the next stage.", 4, 1)
TextPrintString("Hit ~x~ to Execute", 2, 2)
TextPrintString("Hit ~x~ to Execute: " .. gMenuTable[gCurrentMenu].ftable[gMenuTable[gCurrentMenu].currentmenu].str, 2, 2)
TextPrintString("Hold L2 and press LEFT or right on the D-PAD to select a car", 4, 1)
TextPrintString("HOLYSHIT", 3, 1)
TextPrintString("I RECEIVED THE GIFT!", 4, 1)
TextPrintString("Initializing Trains in 5s. Press SELECT on Debug Controller to end test.", 4, 1)
TextPrintString("Jimmy Wins!", 3, 2)
TextPrintString("JIMMY: Don't hate the player, hate the game.", 3)
TextPrintString("Jimmy: I'll distract the cop, you drive the bike!", 3, 2)
TextPrintString("Jimmy: Maybe we can steal that bike and crash it against the barricade!", 3, 2)
TextPrintString("Jimmy: What's going on in here loverboy?", 4, 2)
TextPrintString("Johnny: Oh man... Don't tell Lola, I'll do whatever you want.", 4, 2)
TextPrintString("JOHNNY: What do you think you're doing?", 3)
TextPrintString("Key was picked up!", 4, 1)
TextPrintString("KO all the Drop Outs to win", 4, 1)
TextPrintString("Let's see your soccer skills!", 2, 1)
TextPrintString("Locking Bikeshopdoor", 4, 1)
TextPrintString("LOLA: Here's your reward...", 3)
TextPrintString("LOLA: Wow Jimmy, you really are FAST.", 3)
TextPrintString("Lua NIS - initial camera pos depends on player pos", 4, 1)
TextPrintString("MANDY IS GOING TO USE THE PROP!", 1, 1)
TextPrintString("Mission succeeded!", 5, 1)
TextPrintString("Mission Success: " .. tostring(MissionGetCurrentName()) .. " not yet implemented.", 4, 1)
TextPrintString("Move to Caf Entrance to ready NIS", 4, 1)
TextPrintString("Ms. Phillips: I'll be handing out your cameras and first assignment in a moment.", 3, 2)
TextPrintString("Ms. Phillips: Nice work Jimmy, you're quite the photographer.", 3, 2)
TextPrintString("Ms. Phillips: Welcome back everybody. I hope none of you forgot your cameras.", 3, 2)
TextPrintString("Ms. Phillips: Welcome to photography class, I'm Miss Phillips.", 3, 2)
TextPrintString("Nemesis should pick up key now.", 4, 1)
TextPrintString("New Car Spawned", 3, 1)
TextPrintString("New Ped Spawned", 3, 1)
TextPrintString("NIS ready to fire", 4, 1)
TextPrintString("NIS: " .. gNIS, 3, 1)
TextPrintString("Norton: You got some nerve showing up here...", 4, 2)
TextPrintString("Objective complete!", 4, 2)
TextPrintString("Objective: Find Johnny", 4, 1)
TextPrintString("Ped Model Decreased", 3, 1)
TextPrintString("Ped Model Increased", 3, 1)
TextPrintString("PLACEHOLDER: Russell crashes against barricade", 3, 2)
TextPrintString("PlayNPC Test Mode", 2, 2)
TextPrintString("Power up your kick, aim your shot and let 'er rip. ", 3, 1)
TextPrintString("Press R2 on the player controller to reset the sequence!", 5, 2)
TextPrintString("PRESS R2 TO GET BUSTED! PRINCIPAL WILL SAY EVERY LINE OF DIALOGUE", 10, 1)
TextPrintString("PRESS R2 TO GET BUSTED!", 10, 1)
TextPrintString("Press R3 end script", 4)
TextPrintString("Press R3 to transition player to Main Map", 4)
TextPrintString("Press up on the d-pad to get the train to move", 3, 1)
TextPrintString("Press UP on the D-PAD to spawn said car and release L2", 4, 1)
TextPrintString("Press ~L2~ + ~x~ to create peds again or ~L2~ + ~t~ to quit", 5, 2)
TextPrintString("Press ~o~ for instructions, ~x~ to continue", 1000, 1)
TextPrintString("Press ~t~ + ~R1~ to restart!", 4, 2)
TextPrintString("Press ~t~ to end the script!", 3, 2)
TextPrintString("Press ~x~ to make cop patrol, ~t~ to reset props, ~o~ to return to start.", 0.1, 2)
TextPrintString("Press ~x~ to make cop stop.", 0.1, 2)
TextPrintString("Press ~x~ to make peds stop.", 0.1, 2)
TextPrintString("Press ~x~ to make peds walk, ~s~ to run, ~t~ to sprint, ~o~ to return to start.", 0.1, 2)
TextPrintString("press ~x~ to quit", 3, 1)
TextPrintString("Removing Bike Line-up", 2, 2)
TextPrintString("Removing Character Line-up", 2, 2)
TextPrintString("Removing Pickup Line-up", 2, 2)
TextPrintString("run NIS", 3, 1)
TextPrintString("Russell: Sure, I like crushing!", 3, 2)
TextPrintString("Selecting" .. anims[L3_2].anim, 3, 2)
TextPrintString("START DEBUG ! ", 3, 1)
TextPrintString("Stay on your bike and knock out the other contenders!", 3, 2)
TextPrintString("Strike " .. gStrikes .. " Score " .. gCurrentScore, 2000, 2)
TextPrintString("Take a picture of Gord or the fire (you cannot see the fire through the glass).", 2, 1)
TextPrintString("Take a picture of Gord or the fire", 2, 1)
TextPrintString("Take Out Enemies On Bikes", 3, 1)
TextPrintString("TEST : Set Player and Ped headings", 8)
TextPrintString("TEST FIGHT 2 -- MULTILEVEL", 2)
TextPrintString("TEST MISSION 1 : CLEANUP", 5)
TextPrintString("TEST MISSION 1 : MAIN", 5)
TextPrintString("TEST MISSION 1 : Mission Fail", 5)
TextPrintString("TEST MISSION 1 : Mission Success", 5)
TextPrintString("TEST MISSION 1 : SETUP", 5)
TextPrintString("TEST MISSION 2 : Just walk through the triggers!", 5)
TextPrintString("TEST MISSION 2 : Mission Fail", 5)
TextPrintString("TEST MISSION 2 : Mission Success", 5)
TextPrintString("TEST MISSION 3 : Just walk through the triggers!", 5)
TextPrintString("TEST MISSION 3 : Mission Fail", 5)
TextPrintString("TEST MISSION 3 : Mission Success", 5)
TextPrintString("That's it, the Rumble is over", 3, 2)
TextPrintString("This is the BMX Rumble, last man standing wins.", 3, 2)
TextPrintString("This is your final score: " .. gCurrentScore, 2000, 2)
TextPrintString("Try to run away from the bully after he dies so you don't accidentally pick up the key yourself.", 3, 1)
TextPrintString("Try to stay out of the water", 3, 1)
TextPrintString("Ugh, Hit the umpire, you lost the game! ", 3000, 2)
TextPrintString("UNKNOWN DESTROYED SOMETHING - PLEASE REPORT BUG", 4, 1)
TextPrintString("Unlocking Bikeshopdoor", 4, 1)
TextPrintString("USING R2 TO GET BUSTED IS NO LONGER AVAILABLE. RUN MISSION AGAIN TO MAKE IT AVAILABLE!", 10, 1)
TextPrintString("You didn't get back on your bike in time", 3, 1)
TextPrintString("You got home in time for curfew", 4)
TextPrintString("You lose!", 4, 1)
TextPrintString("You lose. GAME OVER.", 3)
TextPrintString("You went out of bounds!", 3, 1)
TextPrintString("You win!", 1)
TextPrintString("You win!", 3)
TextPrintString("You win!", 4, 1)
TextPrintString("Your made $" .. string.format("%.2f", L_DeliveryGetReward() / 200) .. " in profit", 1, 1)
TextPrintString("~L2~ + ~x~ - Reset Mission ~L2~ + ~t~ Quit Mission ~n~. ~L1~ + ~L2~ or ~L1~ + ~R1~ Iterate missions. ~n~ ~L1~ + ~R1~ Succeed Mission.", 5, 2)
TextPrintString(carTable[car_loc].name, 2, 2)
TextPrintString(cutsceneTable[CutSceneIndex].name, 2, 2)
TextPrintString(DisplayString, 0.3)
TextPrintString(EmotionTable[EmotionIndex].EString, 2, 2)
TextPrintString(event.mText, event.mTime, 2)
TextPrintString(event.mText, event.mTime, event.mStyle)
TextPrintString(FactionTable[FactionIndex].FString, 2, 2)
TextPrintString(gFunctionTable[gCurrentOption].str, 4, 2)
TextPrintString(gMenuTable[gCurrentMenu].str, 2, 1)
TextPrintString(gObjectiveText, 5, 1)
TextPrintString(gTextQueue[1].textVal, gTextQueue[1].textTime / 1000, gTextQueue[1].tStyle)
TextPrintString(key.name, 2, 2)
TextPrintString(missionName, 2, 1)
TextPrintString(missions[currentMission].desc, 5, 1)
TextPrintString(myAreaTable[area].name, 5, 2)
TextPrintString(objectiveTable[obj_loc].name, 2, 2)
TextPrintString(outputString, 2, 2)
TextPrintString(shared.areaTable[area].name, 5, 2)
TextPrintString(shared.areaTable[location].name, 2, 1)
TextPrintString(strText, 4, 2)
TextPrintString(tblCar[indexChange].name, changeInterval / 1000, 2)
TextPrintString(tblScenario[currentScen][2], 3, 1)
TextPrintString(tostring(gCountdown), 1, 2)
TextPrintString(weaponTable[weap_loc].name, 2, 2)
TextPrintString(wt[index].name, 2)
sub esp, 0x200
push esi
push edi
mov edi, dword ptr [esp+0x20C]
push 0x0
push edi
call LuaParam::GetString
mov esi, dword ptr [0xC3CD0C]
lea ecx, ptr [esp+0x10]
neg esi
push ecx
sbb esi, esi
push eax
and esi, 0x2
call 0x690090
push edi
call 0x73AEA0
add esp, 0x14
cmp eax, 0x3
jz 0x10
push edi
call 0x73AEA0
add esp, 0x4
cmp eax, 0x4
jnz 0xF
push 0x2
push edi
call LuaParam::GetInt
add esp, 0x8
mov esi, eax
test esi, esi
jnz 0x30
mov esi, dword ptr [0xC674C4]
push 0xFFFFFFFF
push 0x1
push edi
call LuaParam::GetFloat
fstp dword ptr [esp+0x4], st
add esp, 0x4
lea edx, ptr [esp+0x10]
push edx
mov ecx, esi
call 0x540250
pop edi
xor eax, eax
pop esi
add esp, 0x200
ret
cmp esi, 0x6
jnz 0x3A
mov esi, dword ptr [0xC674C4]
push 0x3
push edi
call LuaParam::GetInt
add esp, 0x8
push eax
push 0x1
push edi
call LuaParam::GetFloat
fstp dword ptr [esp+0x4], st
add esp, 0x4
lea eax, ptr [esp+0x10]
push eax
mov ecx, esi
call 0x540250
pop edi
xor eax, eax
pop esi
add esp, 0x200
ret
cmp esi, 0x1
jnz 0x37
call 0x5142C0
lea ecx, ptr [esp+0x8]
push ecx
call 0x514280
push esi
push edi
call LuaParam::GetFloat
fstp dword ptr [esp+0x8], st
add esp, 0x8
push 0x92A54C
call 0x5142A0
add esp, 0x8
pop edi
xor eax, eax
pop esi
add esp, 0x200
ret
cmp esi, 0x2
jnz 0x28
lea edx, ptr [esp+0x8]
push edx
call 0x514320
push 0x1
push edi
call LuaParam::GetFloat
fstp dword ptr [esp+0x8], st
add esp, 0x8
push 0x92A54C
call 0x514340
add esp, 0x8
pop edi
xor eax, eax
pop esi
add esp, 0x200
ret
--print("ThreadNameSpace", filename, func)
function ThreadNameSpace(filename, func)
--print("ThreadNameSpace", filename, func)
local nst = _nspaces[filename]
--assert(nst)
return nst.func_env._Thread(func)
end
-- never used
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call 0x73FEF0
add esp, 0x8
ret
ToggleHUDComponentFlashing(4, true)
push esi
mov esi, dword ptr [esp+0x8]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetBool
mov ecx, dword ptr [edi*4+0xC674A0]
add esp, 0x10
test al, al
mov byte ptr [ecx+0x14], al
jz 0x21
cmp byte ptr [0x20C43FD], 0x0
jz 0xD
mov edx, dword ptr [0xA14A50]
mov dword ptr [ecx+0x18], edx
jmp 0x14
mov edx, dword ptr [0xC1A9B4]
mov dword ptr [ecx+0x18], edx
jmp 0x9
mov dword ptr [ecx+0x18], 0x0
cmp edi, 0xD
pop edi
pop esi
jnz 0x11
test al, al
jz 0xD
mov ecx, dword ptr [0xC674D4]
call 0x542810
xor eax, eax
ret
ToggleHUDComponentLocked(37, false)
ToggleHUDComponentLocked(37, true)
ToggleHUDComponentLocked(40, false)
ToggleHUDComponentLocked(40, true)
push esi
mov esi, dword ptr [esp+0x8]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
mov edi, eax
call LuaParam::GetBool
mov ecx, dword ptr [edi*4+0xC674A0]
add esp, 0x10
pop edi
mov byte ptr [ecx+0x15], al
xor eax, eax
pop esi
ret
ToggleHUDComponentVisibility(0, b_on)
ToggleHUDComponentVisibility(0, bShow)
ToggleHUDComponentVisibility(0, false)
ToggleHUDComponentVisibility(0, show)
ToggleHUDComponentVisibility(0, true)
ToggleHUDComponentVisibility(11, b_on)
ToggleHUDComponentVisibility(11, bShow)
ToggleHUDComponentVisibility(11, false)
ToggleHUDComponentVisibility(11, show)
ToggleHUDComponentVisibility(11, true)
ToggleHUDComponentVisibility(12, true)
ToggleHUDComponentVisibility(14, false)
ToggleHUDComponentVisibility(14, true)
ToggleHUDComponentVisibility(17, false)
ToggleHUDComponentVisibility(17, true)
ToggleHUDComponentVisibility(19, false)
ToggleHUDComponentVisibility(19, true)
ToggleHUDComponentVisibility(20, bShow)
ToggleHUDComponentVisibility(20, false)
ToggleHUDComponentVisibility(20, true)
ToggleHUDComponentVisibility(21, false)
ToggleHUDComponentVisibility(21, true)
ToggleHUDComponentVisibility(3, false)
ToggleHUDComponentVisibility(3, true)
ToggleHUDComponentVisibility(39, false)
ToggleHUDComponentVisibility(39, true)
ToggleHUDComponentVisibility(4, b_on)
ToggleHUDComponentVisibility(4, bShow)
ToggleHUDComponentVisibility(4, false)
ToggleHUDComponentVisibility(4, show)
ToggleHUDComponentVisibility(4, true)
ToggleHUDComponentVisibility(42, true)
ToggleHUDComponentVisibility(5, b_on)
ToggleHUDComponentVisibility(5, false)
ToggleHUDComponentVisibility(5, true)
ToggleHUDComponentVisibility(6, false)
ToggleHUDComponentVisibility(6, true)
ToggleHUDComponentVisibility(8, false)
ToggleHUDComponentVisibility(gHudComponent, false)
ToggleHUDComponentVisibility(gHudComponent, true)
push ecx
push ebx
push esi
push edi
mov edi, dword ptr [esp+0x14]
push 0x0
push edi
call LuaParam::GetInt
push 0x1
push edi
mov esi, eax
call LuaParam::GetBool
mov ecx, dword ptr [esi*4+0xC674A0]
mov bl, al
mov eax, dword ptr [ecx]
mov eax, dword ptr [eax+0x14]
mov byte ptr [esp+0x1C], bl
mov edx, dword ptr [esp+0x1C]
add esp, 0x10
push edx
call 0x5BD696
cmp esi, 0xD
jnz 0x11
test bl, bl
jz 0xD
mov ecx, dword ptr [0xC674D4]
call 0x542810
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
CLIENT
Forces the money HUD component to be visible, or unlocks its visibility.
A standard Lua 5.0 function documented on lua.org.
A standard Lua 5.0 function documented on lua.org.
SHARED
Returns a matrix object that is a transposed version of the argument.
TutorialMessage("C4_INST01")
function TutorialMessage(messageString, bForceWait, messageWaitTime, gKeepMessage)
local waitTime = messageWaitTime or 3000
TutorialShowMessage(messageString)
if bForceWait then
Wait(waitTime)
else
WaitSkippable(waitTime)
end
if not gKeepMessage then
TutorialRemoveMessage()
end
end
TutorialRemoveMessage()
mov ecx, dword ptr [0xC67540]
mov eax, dword ptr [ecx]
mov edx, dword ptr [eax+0x1C]
call 0x5D5DBD
xor eax, eax
ret
TutorialShowMessage("1_02_FightTut", 3500, false)
TutorialShowMessage("1_02B_TUT09", 6000)
TutorialShowMessage("1_03_T01")
TutorialShowMessage("1_03_T02")
TutorialShowMessage("1_08_OBJ08", 6000)
TutorialShowMessage("1_08_OBJ14", 4)
TutorialShowMessage("1_10_FURNEXT", 6000)
TutorialShowMessage("2_03_22", 4000)
TutorialShowMessage("2_G2_FLOWERTUT", 6000, true)
TutorialShowMessage("2_G2_TUT_01", 6000)
TutorialShowMessage("2_R03_05", 4000, true)
TutorialShowMessage("2_S02_24", 4000)
TutorialShowMessage("3_01A_WARNING2", -1, true)
TutorialShowMessage("3_S10_12", 7000)
TutorialShowMessage("3_S11_SNEAK", 10000, false)
TutorialShowMessage("4_06_OBJDANCE", 5000)
TutorialShowMessage("4_B2_Tut1", 9500, true)
TutorialShowMessage("5_B_Tut1", 5000, true)
TutorialShowMessage("5_B_Tut2", 5000, true)
TutorialShowMessage("5_B_Tut3", 5000, true)
TutorialShowMessage("BIKECOMBAT_TUT01", 6000)
TutorialShowMessage("C3_01_03", 4000)
TutorialShowMessage("C4_INST01")
TutorialShowMessage("C6_INST01")
TutorialShowMessage("CHEMSET_FULL", 3000)
TutorialShowMessage("DB_TUT_HOLDBALL", 5000)
TutorialShowMessage("DB_UNLOCK01", -1, true)
TutorialShowMessage("MGCA_KISS01", -1, true)
TutorialShowMessage("MGCA_KISS02", -1, true)
TutorialShowMessage("MGCA_KISS03", -1, true)
TutorialShowMessage("MGCE_ENG0401", -1, true)
TutorialShowMessage("MGCE_ENG0402", -1, true)
TutorialShowMessage("MGCE_PREFAPOL01", -1, true)
TutorialShowMessage("MGCE_PREFAPOL02", -1, true)
TutorialShowMessage("MGCE_TAUNT01", -1, true)
TutorialShowMessage("MGCE_TAUNT02", -1, true)
TutorialShowMessage("MGCE_TUTORIAL01", -1, true)
TutorialShowMessage("MGCE_TUTORIAL02", -1, true)
TutorialShowMessage("MGSK_11", 5000)
TutorialShowMessage("MGSK_21")
TutorialShowMessage("MGSP_BTUT")
TutorialShowMessage("MGSP_INST")
TutorialShowMessage("MIF_BET01")
TutorialShowMessage("TUT_APOLOGY1", 4000, false)
TutorialShowMessage("TUT_AQUA1", 5000, false)
TutorialShowMessage("TUT_BIKE3", 5000, false)
TutorialShowMessage("TUT_BULL1")
TutorialShowMessage("TUT_CLASS01", 4500, false)
TutorialShowMessage("TUT_CLASS02", 4500, false)
TutorialShowMessage("TUT_CLASS03", 4500, false)
TutorialShowMessage("TUT_ERR1", 4500, false)
TutorialShowMessage("TUT_ERR2", 4500, false)
TutorialShowMessage("TUT_ERR3", -1, false)
TutorialShowMessage("TUT_ERR4", 4500, false)
TutorialShowMessage("TUT_ERR5", -1, false)
TutorialShowMessage("TUT_ERR6", 4500, false)
TutorialShowMessage("TUT_EUNSOC01", 4500, false)
TutorialShowMessage("TUT_EUNSOC03", -1, false)
TutorialShowMessage("TUT_GBIN1")
TutorialShowMessage("TUT_GIRLD1", 5000)
TutorialShowMessage("TUT_GP_02", 6000)
TutorialShowMessage("TUT_LMP_03", 8000)
TutorialShowMessage("TUT_MARBX1", 6000)
TutorialShowMessage("TUT_NOW01", 5000, false)
TutorialShowMessage("TUT_PSLIDE", 4000)
TutorialShowMessage("TUT_PUN01", 4500, false)
TutorialShowMessage("TUT_PUN03", 4500, false)
TutorialShowMessage("TUT_PUN04", 4500, false)
TutorialShowMessage("TUT_RMGL1", 5000, false)
TutorialShowMessage("TUT_RSPX02", 4500, true)
TutorialShowMessage("TUT_RSPX03", 4500, true)
TutorialShowMessage("TUT_RUSS01A", 4500, false)
TutorialShowMessage("TUT_RUSS02C", -1, false)
TutorialShowMessage("TUT_RUSS03A", 4500, false)
TutorialShowMessage("TUT_RUSS03C", -1, false)
TutorialShowMessage("TUT_RUSS04A", 5000, false)
TutorialShowMessage("TUT_SKTC01", 5000, false)
TutorialShowMessage("TUT_SP_01", 7000)
TutorialShowMessage("TUT_START1A", 4500, false)
TutorialShowMessage("TUT_START1B", 4500, false)
TutorialShowMessage("TUT_TARGET01", 4000, false)
TutorialShowMessage("TUT_TRANX01", 4500, false)
TutorialShowMessage("TUT_VESPA", 5000)
TutorialShowMessage(gTutorialMessage, 8000)
TutorialShowMessage(gTutorialMessage2, 8000)
TutorialShowMessage(messageString)
TutorialShowMessage(tutorialMessage, -1, true)
TutorialShowMessage(unlkTut, -1, true)
TutorialShowMessage(unlockMissionText, -1, true)
TutorialShowMessage(unlockText, -1, true)
TutorialShowMessage(unlockTextRoom, -1, true)
TutorialShowMessage(warning)
push ebx
push esi
push edi
mov edi, dword ptr [esp+0x10]
push 0x0
push edi
call LuaParam::GetString
mov esi, dword ptr [0xC67540]
add esp, 0x8
push eax
mov ecx, esi
call 0x55B6E0
push edi
or ebx, 0xFFFFFFFF
call LuaParam::GetParamCount
add esp, 0x4
cmp eax, 0x2
jl 0xF
push 0x1
push edi
call LuaParam::GetInt
add esp, 0x8
mov ebx, eax
push edi
call LuaParam::GetParamCount
add esp, 0x4
cmp eax, 0x3
jl 0x10
push 0x2
push edi
call LuaParam::GetBool
add esp, 0x8
mov byte ptr [esi+0x3C], al
push ebx
mov ecx, esi
call 0x55B720
mov eax, dword ptr [esi]
mov edx, dword ptr [eax+0x14]
push 0x1
mov ecx, esi
call 0x5D5D9D
pop edi
pop esi
xor eax, eax
pop ebx
ret
CLIENT
Shows a tutorial box using non-localized text (just a normal string). If ms is zero or not given, a default duration will be used.
TutorialStart("AQUASTORE")
TutorialStart("ART2X")
TutorialStart("BIKEPARK4X")
TutorialStart("BUS01")
TutorialStart("BUSTCOPS")
TutorialStart("BUSTPREFCLASS")
TutorialStart("BUSTPREFNIGHT")
TutorialStart("BUSTPREFNOCLASS")
TutorialStart("CheckObjs")
TutorialStart("CLIMBING")
TutorialStart("CLOCKTUTX")
TutorialStart("CONSTANTX")
TutorialStart("CRAWLING1")
TutorialStart("GAMESTART")
TutorialStart("GirlRats")
TutorialStart("HIDING2X")
TutorialStart("HUMILIATEX")
TutorialStart("InTheBin")
TutorialStart("KNOCKEDOUT")
TutorialStart("LOCKERBOMB")
TutorialStart("LOSEWEAPONS")
TutorialStart("MANAIMREMX")
TutorialStart("PASSEDOUT")
TutorialStart("PHOTO1X")
TutorialStart("PHOTO2X")
TutorialStart("PUNHIDINGX")
TutorialStart("REDX1")
TutorialStart("Remember")
TutorialStart("RUSLOCKX")
TutorialStart("Shooting")
TutorialStart("SODACAN")
TutorialStart("SPRINT1")
TutorialStart("SSLING1")
TutorialStart("TAGGINGTUT1")
TutorialStart("Timer")
TutorialStart("TRESPASSX")
TutorialStart("WRESTCHANGE")
TutorialStart("YELAROW1")
push ecx
mov eax, dword ptr [esp+0x8]
push 0x0
push eax
call LuaParam::GetString
add esp, 0x8
push eax
lea ecx, ptr [esp+0x4]
call 0x5FA910
lea ecx, ptr [esp]
push ecx
mov ecx, 0x20C3CA0
call 0x6A9FD0
push eax
mov ecx, 0x20C3CA0
call 0x6AA7C0
or byte ptr [eax+0x4], 0x2
push 0x1
mov ecx, 0x20C3CA0
call 0x6AD290
lea ecx, ptr [esp]
call 0x49A650
xor eax, eax
pop ecx
ret
TutorialStop("RUSLOCKX")
push ecx
mov eax, dword ptr [esp+0x8]
push 0x0
push eax
call LuaParam::GetString
add esp, 0x8
push eax
lea ecx, ptr [esp+0x4]
call 0x5FA910
lea ecx, ptr [esp]
push ecx
mov ecx, 0x20C3CA0
call 0x6A9FD0
lea ecx, ptr [esp]
mov byte ptr [0x20C43FC], 0x1
call 0x49A650
xor eax, eax
pop ecx
ret
SHARED
Like the normal type function, but can also return the type name for custom userdata types.
For example type2(GetScriptConfig()) will return "config", whereas type(GetScriptConfig()) would just return "userdata".
SHARED
Raises an error in a way similar to luaL_typerror in Lua's C API. Useful for validating arguments in custom functions.
CreateThread("T_ChristmasdLogic")
function T_ChristmasdLogic()
local nTimerStarted = GetTimer()
local gCurrentArea = AreaGetVisible()
Wait(2000)
gCurrentArea = AreaGetVisible()
if gCurrentArea == 0 and PlayerIsInTrigger(TRIGGER._AMB_SCHOOL_AREA) or gCurrentArea == 9 or gCurrentArea == 2 or gCurrentArea == 14 or gCurrentArea == 35 or gCurrentArea == 13 then
SoundPlayScriptedSpeechEvent_2D("PA_CHRISTMAS_JIMMY", 0)
Wait(3000)
end
PauseGameClock()
TextPrint("GOTO_PRINCIPAL", 5, 1)
while not MissionActiveSpecific("3_08") do
if not MissionActive() and GetTimer() - nTimerStarted > 120000 then
gCurrentArea = AreaGetVisible()
if gCurrentArea == 0 and PlayerIsInTrigger(TRIGGER._AMB_SCHOOL_AREA) or gCurrentArea == 9 or gCurrentArea == 2 or gCurrentArea == 14 or gCurrentArea == 35 or gCurrentArea == 13 then
SoundPlayScriptedSpeechEvent_2D("PA_CHRISTMAS_JIMMY", 0)
end
nTimerStarted = GetTimer()
TextPrint("GOTO_PRINCIPAL", 5, 1)
end
Wait(1000)
end
collectgarbage()
end
CreateThread("T_ExpelledLogic")
function T_ExpelledLogic()
local nTimerStarted = GetTimer()
local gCurrentArea = AreaGetVisible()
local exphour, expminute = ClockGet()
Wait(2000)
gCurrentArea = AreaGetVisible()
if gCurrentArea == 0 and PlayerIsInTrigger(TRIGGER._AMB_SCHOOL_AREA) or gCurrentArea == 9 or gCurrentArea == 2 or gCurrentArea == 14 or gCurrentArea == 35 or gCurrentArea == 13 then
SoundPlayScriptedSpeechEvent_2D("PA_JIMMY_OFFICE_STRONG", 0)
Wait(3000)
end
while not MissionActiveSpecific("6_01") do
exphour, expminute = ClockGet()
if 8 <= exphour and exphour < 19 and not MissionActive() and GetTimer() - nTimerStarted > 240000 then
gCurrentArea = AreaGetVisible()
if gCurrentArea == 0 and PlayerIsInTrigger(TRIGGER._AMB_SCHOOL_AREA) or gCurrentArea == 9 or gCurrentArea == 2 or gCurrentArea == 14 or gCurrentArea == 35 or gCurrentArea == 13 then
SoundPlayScriptedSpeechEvent_2D("PA_JIMMY_OFFICE_STRONG", 0)
end
nTimerStarted = GetTimer()
end
Wait(1000)
end
collectgarbage()
end
CLIENT
Returns a 2 byte unsigned integer object. Use a string for value to preserve accuracy.
CLIENT
Returns a 4 byte unsigned integer object. Use a string for value to preserve accuracy.
CLIENT
Returns a 1 byte unsigned integer object. Use a string for value to preserve accuracy.
UnLoadAnimationGroup("1_02_MeetWithGary")
UnLoadAnimationGroup("1_02BYourSchool")
UnLoadAnimationGroup("1_03The Setup")
UnLoadAnimationGroup("1_04TheSlingshot")
UnLoadAnimationGroup("1_06ALittleHelp")
UnLoadAnimationGroup("1_07_SaveBucky")
UnLoadAnimationGroup("1_08_MandPuke")
UnLoadAnimationGroup("1_09_Candidate")
UnLoadAnimationGroup("1_10Betrayal")
UnLoadAnimationGroup("1_G1_TheDiary")
UnLoadAnimationGroup("2_01LastMinuteShop")
UnLoadAnimationGroup("2_05TadsHouse")
UnLoadAnimationGroup("2_07BeachRumble")
UnLoadAnimationGroup("2_08WeedKiller")
UnLoadAnimationGroup("2_G2_GiftExchange")
UnLoadAnimationGroup("2_G2CarnivalDate")
UnLoadAnimationGroup("2_R03PaperRoute")
UnLoadAnimationGroup("2_S04CharSheets")
UnLoadAnimationGroup("2_S05_CooksCrush")
UnLoadAnimationGroup("3_04WrongPtTown")
UnLoadAnimationGroup("3_BFightJohnnyV")
UnLoadAnimationGroup("3_G3")
UnLoadAnimationGroup("3_R08RaceLeague")
UnLoadAnimationGroup("3_R09_J")
UnLoadAnimationGroup("4_04_FUNHOUSEFUN")
UnLoadAnimationGroup("4_04_FunhouseFun")
UnLoadAnimationGroup("4_06BIGGAME")
UnLoadAnimationGroup("5_01Grp")
UnLoadAnimationGroup("5_02PrVandalized")
UnLoadAnimationGroup("5_09MakingAMark")
UnLoadAnimationGroup("6B_PARA")
UnLoadAnimationGroup("Ambient")
UnLoadAnimationGroup("Ambient3")
UnLoadAnimationGroup("Area_Asylum")
UnLoadAnimationGroup("Area_Funhouse")
UnLoadAnimationGroup("Area_School")
UnLoadAnimationGroup("Area_Tenements")
UnLoadAnimationGroup("AsyBars")
UnLoadAnimationGroup("B_Striker")
UnLoadAnimationGroup("BeardLady")
UnLoadAnimationGroup("BOXING")
UnLoadAnimationGroup("Boxing")
UnLoadAnimationGroup("C_Wrestling")
UnLoadAnimationGroup("Car_Ham")
UnLoadAnimationGroup("carnies")
UnLoadAnimationGroup("Cheer_Cool1")
UnLoadAnimationGroup("CHEER_COOL1")
UnLoadAnimationGroup("Cheer_Cool2")
UnLoadAnimationGroup("Cheer_Cool3")
UnLoadAnimationGroup("CHEER_COOL3")
UnLoadAnimationGroup("Cheer_Gen3")
UnLoadAnimationGroup("Cheer_Girl3")
UnLoadAnimationGroup("Cheer_Nerd1")
UnLoadAnimationGroup("Cheer_Nerd3")
UnLoadAnimationGroup("Cheer_Posh3")
UnLoadAnimationGroup("ChLead_Idle")
UnLoadAnimationGroup("CONV")
UnLoadAnimationGroup("Cop_Frisk")
UnLoadAnimationGroup("DO_STRIKECOMBO")
UnLoadAnimationGroup("DO_StrikeCombo")
UnLoadAnimationGroup("DO_Striker")
UnLoadAnimationGroup("DodgeBall")
UnLoadAnimationGroup("Dodgeball")
UnLoadAnimationGroup("Dodgeball2")
UnLoadAnimationGroup("Drumming")
UnLoadAnimationGroup("Earnest")
UnLoadAnimationGroup("ENGLISHCLASS")
UnLoadAnimationGroup("F_Adult")
UnLoadAnimationGroup("F_CRAZY")
UnLoadAnimationGroup("F_Douts")
UnLoadAnimationGroup("F_Girls")
UnLoadAnimationGroup("F_JOCKS")
UnLoadAnimationGroup("F_Nerds")
UnLoadAnimationGroup("F_NERDS")
UnLoadAnimationGroup("F_Pref")
UnLoadAnimationGroup("G_Grappler")
UnLoadAnimationGroup("G_Johnny")
UnLoadAnimationGroup("G_Striker")
UnLoadAnimationGroup("GEN_Socia")
UnLoadAnimationGroup("GEN_Social")
UnLoadAnimationGroup("GEN_SOCIAL")
UnLoadAnimationGroup("Go_Cart")
UnLoadAnimationGroup("Halloween")
UnLoadAnimationGroup("Hang_Argue")
UnLoadAnimationGroup("Hang_Jock")
UnLoadAnimationGroup("Hang_Moshing")
UnLoadAnimationGroup("Hang_Talking")
UnLoadAnimationGroup("Hang_Workout")
UnLoadAnimationGroup("Hobo_Cheer")
UnLoadAnimationGroup("Hobos")
UnLoadAnimationGroup("HUMIL_5-8F_A")
UnLoadAnimationGroup("HUMIL_6-5VPLY")
UnLoadAnimationGroup("IDLE_BULLY_C")
UnLoadAnimationGroup("IDLE_BULLY_D")
UnLoadAnimationGroup("IDLE_DOUT_C")
UnLoadAnimationGroup("IDLE_GREAS_C")
UnLoadAnimationGroup("IDLE_GSF")
UnLoadAnimationGroup("IDLE_JOCK_A")
UnLoadAnimationGroup("IDLE_NERD_A")
UnLoadAnimationGroup("IDLE_NERD_C")
UnLoadAnimationGroup("IDLE_SEXY_C")
UnLoadAnimationGroup("Jv_Asylum")
UnLoadAnimationGroup("KISS2")
UnLoadAnimationGroup("KISS3")
UnLoadAnimationGroup("KISS4")
UnLoadAnimationGroup("KISSF")
UnLoadAnimationGroup("LE_ORDERLY")
UnLoadAnimationGroup("LE_Orderly")
UnLoadAnimationGroup("Mermaid")
UnLoadAnimationGroup("MG_Craps")
UnLoadAnimationGroup("MINI_BallToss")
UnLoadAnimationGroup("MINI_Lock")
UnLoadAnimationGroup("MINI_REACT")
UnLoadAnimationGroup("MINI_React")
UnLoadAnimationGroup("MINIBIKE")
UnLoadAnimationGroup("MINICHEM")
UnLoadAnimationGroup("MINIDunk")
UnLoadAnimationGroup("MINIGraf")
UnLoadAnimationGroup("MINIGRAF")
UnLoadAnimationGroup("MINIHACKY")
UnLoadAnimationGroup("N2B Dishonerable")
UnLoadAnimationGroup("N_Striker_B")
UnLoadAnimationGroup("N_STRIKER_B")
UnLoadAnimationGroup("Nemesis")
UnLoadAnimationGroup("NIS_1_02")
UnLoadAnimationGroup("NIS_1_02B")
UnLoadAnimationGroup("NIS_1_04")
UnLoadAnimationGroup("NIS_1_07")
UnLoadAnimationGroup("NIS_1_08_1")
UnLoadAnimationGroup("NIS_1_09")
UnLoadAnimationGroup("NIS_1_11")
UnLoadAnimationGroup("NIS_2_01")
UnLoadAnimationGroup("NIS_2_04")
UnLoadAnimationGroup("NIS_2_B")
UnLoadAnimationGroup("NIS_2_S04")
UnLoadAnimationGroup("NIS_3_01")
UnLoadAnimationGroup("NIS_3_02")
UnLoadAnimationGroup("NIS_3_04")
UnLoadAnimationGroup("NIS_3_05")
UnLoadAnimationGroup("NIS_3_06")
UnLoadAnimationGroup("NIS_3_08")
UnLoadAnimationGroup("NIS_3_B")
UnLoadAnimationGroup("NIS_3_R09_J")
UnLoadAnimationGroup("NIS_3_R09_N")
UnLoadAnimationGroup("NIS_3_R09_P")
UnLoadAnimationGroup("NIS_3_S03")
UnLoadAnimationGroup("NIS_3_S03_B")
UnLoadAnimationGroup("NIS_3_S11")
UnLoadAnimationGroup("NIS_3R09_P")
UnLoadAnimationGroup("NIS_4_01")
UnLoadAnimationGroup("NIS_4_05")
UnLoadAnimationGroup("NIS_4_06")
UnLoadAnimationGroup("NIS_4_B2")
UnLoadAnimationGroup("NIS_5_01")
UnLoadAnimationGroup("NIS_5_02")
UnLoadAnimationGroup("NIS_5_03")
UnLoadAnimationGroup("NIS_5_04")
UnLoadAnimationGroup("NIS_5_05")
UnLoadAnimationGroup("NIS_5_07")
UnLoadAnimationGroup("NIS_5_G5")
UnLoadAnimationGroup("NIS_6_02")
UnLoadAnimationGroup("NIS_6_03")
UnLoadAnimationGroup("NPC_ADULT")
UnLoadAnimationGroup("NPC_Adult")
UnLoadAnimationGroup("NPC_AggroTaunt")
UnLoadAnimationGroup("NPC_Chat_1")
UnLoadAnimationGroup("NPC_CHEERING")
UnLoadAnimationGroup("NPC_Cheering")
UnLoadAnimationGroup("NPC_Love")
UnLoadAnimationGroup("NPC_MASCOT")
UnLoadAnimationGroup("NPC_Mascot")
UnLoadAnimationGroup("NPC_NeedsResolving")
UnLoadAnimationGroup("NPC_Principal")
UnLoadAnimationGroup("NPC_Shopping")
UnLoadAnimationGroup("NPC_Spectator")
UnLoadAnimationGroup("P_Striker")
UnLoadAnimationGroup("Pageant")
UnLoadAnimationGroup("PedCoaster")
UnLoadAnimationGroup("Player_VTired")
UnLoadAnimationGroup("POI_Booktease")
UnLoadAnimationGroup("POI_Cafeteria")
UnLoadAnimationGroup("POI_ChLead")
UnLoadAnimationGroup("POI_Smoking")
UnLoadAnimationGroup("POI_WarmHands")
UnLoadAnimationGroup("Px_Gen")
UnLoadAnimationGroup("Px_Ladr")
UnLoadAnimationGroup("Px_Rail")
UnLoadAnimationGroup("Px_RedButton")
UnLoadAnimationGroup("Px_Sink")
UnLoadAnimationGroup("PX_TLET")
UnLoadAnimationGroup("Px_Tlet")
UnLoadAnimationGroup("Px_Tree")
UnLoadAnimationGroup("Px_Urinal")
UnLoadAnimationGroup("QPED")
UnLoadAnimationGroup("QPed")
UnLoadAnimationGroup("Russell")
UnLoadAnimationGroup("Santa_lap")
UnLoadAnimationGroup("SAUTH_U")
UnLoadAnimationGroup("Sbarels1")
UnLoadAnimationGroup("SBULL_A")
UnLoadAnimationGroup("SBULL_X")
UnLoadAnimationGroup("SCgrdoor")
UnLoadAnimationGroup("SGEN_I")
UnLoadAnimationGroup("SGEN_S")
UnLoadAnimationGroup("SGIRL_F")
UnLoadAnimationGroup("SGIRL_S")
UnLoadAnimationGroup("SHOPBIKE")
UnLoadAnimationGroup("SHWR")
UnLoadAnimationGroup("SIAMESE")
UnLoadAnimationGroup("Siamese2")
UnLoadAnimationGroup("Sitting_Boys")
UnLoadAnimationGroup("SkeltonMan")
UnLoadAnimationGroup("SNERD_I")
UnLoadAnimationGroup("SNERD_S")
UnLoadAnimationGroup("STRAF_WREST")
UnLoadAnimationGroup("TadGates")
UnLoadAnimationGroup("TE_Female")
UnLoadAnimationGroup("TE_FEMALE")
UnLoadAnimationGroup("Try_Clothes")
UnLoadAnimationGroup("TSGate")
UnLoadAnimationGroup("UBO")
UnLoadAnimationGroup("W_PooBag")
UnLoadAnimationGroup("W_PRANK")
UnLoadAnimationGroup("W_Snowshwl")
UnLoadAnimationGroup("W_SprayCan")
UnLoadAnimationGroup("W_Thrown")
UnLoadAnimationGroup("WeaponUnlock")
UnLoadAnimationGroup(group)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetString
push eax
call 0x52DAD0
add esp, 0xC
test eax, eax
jl 0x14
push eax
mov ecx, 0xD02850
call 0x5DB940
mov ecx, eax
call 0x5D95A0
xor eax, eax
ret
UnLoadBranch("/Global/1_07")
UnLoadBranch("/Global/5_01/")
UnLoadBranch("/Global/Actions")
UnLoadBranch("/Global/Shots")
UnLoadBranch("/Global/Vehicles")
UnLoadBranch("/Global/WBrush")
UnLoadBranch("/Global/Weapons")
UnLoadBranch(CharacterActionTreesBranches[i])
mov eax, dword ptr [esp+0x4]
sub esp, 0x104
push 0x0
push eax
call LuaParam::GetString
add esp, 0x8
lea edx, ptr [esp+0x4]
lea esp, ptr [esp]
mov cl, byte ptr [eax]
mov byte ptr [edx], cl
add eax, 0x1
add edx, 0x1
test cl, cl
jnz 0xFFFFFFF4
lea ecx, ptr [esp+0x4]
push 0x0
push ecx
call 0x5F5B10
add esp, 0x8
test eax, eax
mov dword ptr [esp], eax
jz 0xF6
push ebx
mov ebx, dword ptr [0xC0F608]
push ebp
mov ebp, dword ptr [ebx+0x8]
push esi
push edi
xor edi, edi
test ebp, ebp
jle 0x4E
jmp 0x5
lea ecx, ptr [ecx]
mov edx, dword ptr [ebx+0x4]
test byte ptr [edi+edx*1], 0x80
jnz 0x35
mov esi, dword ptr [ebx+0xC]
imul esi, edi
add esi, dword ptr [ebx]
jz 0x2B
push eax
push esi
mov ecx, 0xD02850
call 0x5DB940
mov ecx, eax
call 0x5D87D0
test al, al
jz 0x14
push esi
mov ecx, 0xD02850
call 0x5DB940
mov ecx, eax
call 0x5D9230
mov eax, dword ptr [esp+0x10]
add edi, 0x1
cmp edi, ebp
jl 0xFFFFFFBB
mov ebx, dword ptr [0xC0F5F0]
mov ebp, dword ptr [ebx+0x8]
xor edi, edi
test ebp, ebp
jle 0x49
mov ecx, dword ptr [ebx+0x4]
test byte ptr [edi+ecx*1], 0x80
jnz 0x35
mov esi, dword ptr [ebx+0xC]
imul esi, edi
add esi, dword ptr [ebx]
jz 0x2B
push eax
push esi
mov ecx, 0xD02850
call 0x5DB940
mov ecx, eax
call 0x5D86F0
test al, al
jz 0x14
push esi
mov ecx, 0xD02850
call 0x5DB940
mov ecx, eax
call 0x5D87B0
mov eax, dword ptr [esp+0x10]
add edi, 0x1
cmp edi, ebp
jl 0xFFFFFFBB
cmp eax, dword ptr [0x1B649DC]
mov esi, eax
jz 0x17
mov edx, dword ptr [eax]
mov esi, eax
mov ecx, eax
mov eax, dword ptr [edx+0x34]
push 0xFFFFFFFF
call 0x5CAFC4
cmp eax, dword ptr [0x1B649DC]
jnz 0xFFFFFFED
push esi
mov ecx, 0xD02850
call 0x5DBF80
lea ecx, ptr [esp+0x14]
push ecx
call 0x5F6500
add esp, 0x4
pop edi
pop esi
pop ebp
pop ebx
xor eax, eax
add esp, 0x104
ret
-- never used
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetInt
push eax
call 0x687D10
add esp, 0xC
xor eax, eax
ret
--print(">>>[RUI]", "--UnloadModels")
UnloadModels(crowdModels)
UnloadModels(tblModelsToLoad)
UnloadModels(tblPedModels)
UnloadModels(tblPickupModels)
UnloadModels(tblVehicleModels)
UnloadModels(tblWeaponModels)
UnloadModels({
UnloadModels({ 134 })
UnloadModels({ 284, 291 })
UnloadModels({ 288 })
UnloadModels({ 327 }, true)
function UnloadModels(models)
for _, model in models do
ModelNotNeeded(model)
end
--print(">>>[RUI]", "--UnloadModels")
end
SERVER
Unlocks the owner of a sync entity. When the owner is unlocked, the owner may change at any point.
In general unlocked sync entities will be owned by the nearest player, but this isn't always going to be the case.
UnlockYearbookPicture(10)
UnlockYearbookPicture(110)
UnlockYearbookPicture(130)
UnlockYearbookPicture(134)
UnlockYearbookPicture(23)
UnlockYearbookPicture(37)
UnlockYearbookPicture(75)
UnlockYearbookPicture(91)
sub esp, 0xC
xor eax, eax
push esi
push eax
mov dword ptr [esp+0x10], eax
mov dword ptr [esp+0xC], eax
mov dword ptr [esp+0x8], eax
mov eax, dword ptr [esp+0x18]
push eax
call LuaParam::GetInt
mov esi, eax
push esi
call 0x6A1350
add esp, 0xC
test al, al
jz 0x34
lea ecx, ptr [esp+0x4]
push ecx
lea edx, ptr [esp+0xC]
push edx
lea eax, ptr [esp+0x14]
push eax
push esi
call 0x6A2250
mov ecx, dword ptr [esp+0x14]
mov edx, dword ptr [esp+0x18]
mov eax, dword ptr [esp+0x1C]
add esp, 0x10
push ecx
mov ecx, dword ptr [0xC1AA04]
push edx
push eax
call 0x45BE70
xor eax, eax
pop esi
add esp, 0xC
ret
A standard Lua 5.0 function documented on lua.org.
UnpauseGameClock()
push 0x0
call 0x425EA0
add esp, 0x4
xor eax, eax
ret
-- never used
fld1
push 0x0
mov ecx, 0xC1AEA8
fstp dword ptr [0xC1A9A8], st
call 0x445DA0
push 0x1
mov ecx, 0xA45A30
call 0x50DFA0
xor eax, eax
ret
UpdateAsylum()
function UpdateAsylum()
if gAsylumThread == false then
if (not MissionActiveSpecific2("3_S11") or not MissionActiveSpecific("5_03")) and PlayerIsInTrigger(TRIGGER._ASYLUMPATROLS) then
gAsylumThread = true
LoadPedPOIModel(53)
gAsylumTable.ped1 = PedCreatePoint(53, POINTLIST._ASYLUMSPAWNPOINTS, 1)
PedModelNotNeededAmbient(gAsylumTable.ped1)
ModelNotNeededAmbient(53)
if gAsylumTable.ped1 ~= -1 then
PedFollowPath(gAsylumTable.ped1, PATH._ASYLUMPATH1, 2, 0)
PedSetActionNode(gAsylumTable.ped1, "/Global/Ambient/Scripted/OrderlyPatrol/OrderlyPatrol_Child", "Act/Anim/Ambient.act")
end
gAsylumTable.ped2 = PedCreatePoint(53, POINTLIST._ASYLUMSPAWNPOINTS, 2)
PedModelNotNeededAmbient(gAsylumTable.ped2)
ModelNotNeededAmbient(53)
if gAsylumTable.ped2 ~= -1 then
PedFollowPath(gAsylumTable.ped2, PATH._ASYLUMPATH2, 2, 0)
PedSetActionNode(gAsylumTable.ped2, "/Global/Ambient/Scripted/OrderlyPatrol/OrderlyPatrol_Child", "Act/Anim/Ambient.act")
end
end
elseif not PlayerIsInTrigger(TRIGGER._ASYLUMPATROLS) then
gAsylumThread = false
if gAsylumTable.ped1 ~= nil and gAsylumTable.ped1 ~= -1 and not PedIsDead(gAsylumTable.ped1) then
PedDelete(gAsylumTable.ped1)
gAsylumTable.ped1 = -1
end
if gAsylumTable.ped2 ~= nil and gAsylumTable.ped2 ~= -1 and not PedIsDead(gAsylumTable.ped2) then
PedDelete(gAsylumTable.ped2)
gAsylumTable.ped2 = -1
end
end
end
--print("returning early from UpdateTextQueue")
--print("UpdateTextQueue: Ped not valid")
UpdateTextQueue()
function UpdateTextQueue()
if table.getn(gTextTable) > 0 then
local event = gTextTable[1]
if event.mText then
if (GetTimer() - gPreviousTextClock) / 1000 > gPreviousTextTimer or F_SkipOrNot(event.mSkip) then
if 0 < gPreviousTextClock then
--DebugPrint("removing from queue: mText: " .. tostring(event.mText) .. " mTime: " .. tostring(event.mTime) .. " mStyle: " .. tostring(event.mStyle) .. " at time: " .. GetTimer())
table.remove(gTextTable, 1)
if table.getn(gTextTable) == 0 then
gPreviousTextClock = 0
return
end
end
event = gTextTable[1]
gPreviousTextClock = GetTimer()
gPreviousTextTimer = event.mTime
if event.mType then
if event.mStyle then
if event.mText then
TextPrintString(event.mText, event.mTime, event.mStyle)
end
elseif event.mText then
TextPrintString(event.mText, event.mTime, 2)
end
elseif event.mStyle then
if event.mText then
TextPrint(event.mText, event.mTime, event.mStyle)
end
elseif event.mText then
TextPrint(event.mText, event.mTime, 2)
end
if event.callback then
event.callback(event.mText)
end
end
elseif event.mSpeechPed then
if event.mSpeechPed and PedIsValid(event.mSpeechPed) and SoundSpeechPlaying(event.mSpeechPed) == true then
--print("SoundSpeechPlaying() == true")
return
elseif not PedIsValid(event.mSpeechPed) or SoundSpeechPlaying() == false or F_SkipOrNot(true) then
if 0 < gPreviousTextClock then
--DebugPrint("removing from queue: mSpeechPed: " .. tostring(event.mSpeechPed) .. " mSpeechEvent: " .. tostring(event.mSpeechEvent) .. " mParam: " .. tostring(event.mParam) .. " at time: " .. GetTimer())
table.remove(gTextTable, 1)
if table.getn(gTextTable) == 0 then
gPreviousTextClock = 0
--print("returning early from UpdateTextQueue")
return
end
end
event = gTextTable[1]
gPreviousTextClock = GetTimer()
gPreviousTextTimer = 1
if event.mSpeechPed and PedIsValid(event.mSpeechPed) then
sound_retval = SoundPlayScriptedSpeechEvent(event.mSpeechPed, event.mSpeechEvent, event.mParam, event.vol or "large")
if sound_retval ~= 0 then
--print("Error " .. sound_retval .. " when playing sound event id:" .. event.mSpeechEvent .. " parameter: " .. event.mParam)
else
--print("playing event:" .. tostring(event.mSpeechEvent) .. " parameter: " .. tostring(event.mParam) .. " at time: " .. GetTimer())
end
else
--print("UpdateTextQueue: Ped not valid")
end
--print("Just called speech for ped " .. tostring(event.mSpeechPed) .. " param: " .. tostring(event.mParam))
if event.callback then
event.callback(event.mSpeechEvent)
end
Wait(100)
end
end
end
end
CLIENT
A function that is useless unless you know what you're doing.
CLIENT
Sets up a proxy function in the calling environment. Basically, this means attempting to call the function of a certain name will result in it being called with CallFunctionFromScript instead.
This can be useful for things like blip functions, as ground blips don't render when owned by DSL scripts. For example at the top of your script, UseProxyScriptForFunction("main.lua", "BlipAddXYZ") and UseProxyScriptForFunction("main.lua", "BlipRemove").
A standard Lua 5.4 function documented on lua.org.
A standard Lua 5.4 function documented on lua.org.
A standard Lua 5.4 function documented on lua.org.
SERVER
Validates an area the same way the server does internally when syncing entities from clients. Includes type checking (for the area, not the entity).
Returns true if the area is valid, or false if it would have been rejected by a client setting it.
SERVER
Validates a model the same way the server does internally when syncing entities from clients. Includes type checking (for the model, not the entity).
Returns true if the model is valid, or false if it would have been rejected by a client setting it.
SERVER
Validates a position the same way the server does internally when syncing entities from clients. Includes type checking (for the position, not the entity).
Returns true if the position is valid, or false if it would have been rejected by a client setting it.
VehicleBikeForceBoundingSphereUpdate(gJV_Bike, true)
push ebx
mov ebx, dword ptr [esp+0x8]
push esi
push edi
mov edi, dword ptr [0xC0F5F4]
push 0x0
push ebx
call LuaParam::GetInt
mov edx, dword ptr [edi+0x4]
mov ecx, eax
sar ecx, 0x8
add esp, 0x8
cmp byte ptr [ecx+edx*1], al
jnz 0xC
mov esi, dword ptr [edi+0xC]
imul esi, ecx
add esi, dword ptr [edi]
jmp 0x4
xor esi, esi
push 0x1
push ebx
call LuaParam::GetBool
add al, al
add al, al
xor al, byte ptr [esi+0x6B9]
add esp, 0x8
and al, 0x4
xor byte ptr [esi+0x6B9], al
pop edi
pop esi
xor eax, eax
pop ebx
ret
VehicleBikeGeneratorToggle(false)
VehicleBikeGeneratorToggle(true)
push ecx
mov eax, dword ptr [esp+0x8]
push 0x0
push eax
call LuaParam::GetBool
mov byte ptr [esp+0x8], al
mov ecx, dword ptr [esp+0x8]
push ecx
call 0x4C7200
mov eax, 0x1
add esp, 0x10
ret
VehicleCreateCarGenerator(118.05, -517.75, 3.319, 30, 274, -1, -1, false, 0, 0, 1500, 45000, true)
VehicleCreateCarGenerator(12.75, -448.55, 0.432, 225, 279, -1, -1, false, 0, 0, 1500, 45000, true)
VehicleCreateCarGenerator(129.8, -407.797, 2.629, 275, 279, -1, -1, false, 0, 0, 1500, 45000, true)
VehicleCreateCarGenerator(139.95, 424.37, 8.035, 342, 282, -1, -1, false, 0, 0, 1500, 45000, true)
VehicleCreateCarGenerator(161.33, -375.49, 3.99, 100, 291, -1, -1, false, 0, 0, 1500, 45000, true)
VehicleCreateCarGenerator(219.03, 424.416, 4.89, 235, 274, -1, -1, false, 0, 0, 1500, 45000, true)
VehicleCreateCarGenerator(223.513, -303.35, 5.465, 180, 274, -1, -1, false, 0, 0, 1500, 45000, true)
VehicleCreateCarGenerator(238.061, -439.7, 2.633, 20, 281, -1, -1, false, 0, 0, 1500, 45000, true)
VehicleCreateCarGenerator(276.05, 207.318, 6.168, 270, 279, -1, -1, false, 0, 0, 1500, 45000, true)
VehicleCreateCarGenerator(310.8, -328.49, 3.59, 0, 294, -1, -1, false, 0, 0, 1500, 45000, true)
VehicleCreateCarGenerator(317.56, 401.49, 25.73, -30, 292, -1, -1, false, 0, 0, 1500, 45000, true)
VehicleCreateCarGenerator(332.13, 270.67, 5.95, 90, 282, -1, -1, false, 0, 0, 1500, 45000, true)
VehicleCreateCarGenerator(349.2, 124.888, 5.375, 90, 282, -1, -1, false, 0, 0, 1500, 45000, true)
VehicleCreateCarGenerator(387.933, 393.29, 21.471, 0, 280, -1, -1, false, 0, 0, 1500, 45000, true)
VehicleCreateCarGenerator(396.75, 148.604, 5.207, 90, 274, -1, -1, false, 0, 0, 1500, 45000, true)
VehicleCreateCarGenerator(401.311, 189.79, 6.649, 0, 274, -1, -1, false, 0, 0, 1500, 45000, true)
VehicleCreateCarGenerator(429.67, 163.67, 7.15, 90, 297, -1, -1, false, 0, 0, 1500, 45000, true)
VehicleCreateCarGenerator(434.4, 486.24, 24.34, 0, 286, -1, -1, false, 0, 0, 1500, 45000, true)
VehicleCreateCarGenerator(445.3, 236.5, 9.7, 90, 282, -1, -1, true, 0, 0, 1500, 45000, true)
VehicleCreateCarGenerator(467.97, -204.32, 4.19, -15, 286, -1, -1, false, 0, 0, 1500, 45000, true)
VehicleCreateCarGenerator(482.1, 430.216, 18.053, 90, 279, -1, -1, false, 0, 0, 1500, 45000, true)
VehicleCreateCarGenerator(485.3, -79.32, 5.4, 180, 274, -1, -1, false, 0, 0, 1500, 45000, true)
VehicleCreateCarGenerator(487.19, -384.22, 3.33, 75, 294, -1, -1, false, 0, 0, 1500, 45000, true)
VehicleCreateCarGenerator(498.17, -18.72, 7.25, 0, 293, -1, -1, false, 0, 0, 1500, 45000, true)
VehicleCreateCarGenerator(513.21, -152.52, 5.211, 15, 282, -1, -1, false, 0, 0, 1500, 45000, true)
VehicleCreateCarGenerator(518.2, -32.77, 6.24, 190, 279, -1, -1, false, 0, 0, 1500, 45000, true)
VehicleCreateCarGenerator(522.725, -487.275, 4.307, 340, 282, -1, -1, false, 0, 0, 1500, 45000, true)
VehicleCreateCarGenerator(547.82, 247.167, 16.894, 90, 274, -1, -1, false, 0, 0, 1500, 45000, true)
VehicleCreateCarGenerator(548.57, -455.09, 5.4, -15, 296, -1, -1, false, 0, 0, 1500, 45000, true)
VehicleCreateCarGenerator(552.15, -367.7, 2.235, 140, 279, -1, -1, false, 0, 0, 1500, 45000, true)
VehicleCreateCarGenerator(576.25, 457.22, 19.52, 0, 293, -1, -1, false, 0, 0, 1500, 45000, true)
VehicleCreateCarGenerator(588.9, -139, 6.98, 0, 297, -1, -1, false, 0, 0, 1500, 45000, true)
VehicleCreateCarGenerator(599.25, -12.786, 6.396, 90, 274, -1, -1, false, 0, 0, 1500, 45000, true)
VehicleCreateCarGenerator(60.42, -462.31, 5.97, 135, 291, -1, -1, false, 0, 0, 1500, 45000, true)
VehicleCreateCarGenerator(603.45, 393.616, 16.471, 90, 282, -1, -1, false, 0, 0, 1500, 45000, true)
sub esp, 0xC
push esi
mov esi, dword ptr [esp+0x14]
push 0x0
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x14], st
push 0x1
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x18], st
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x1C], st
push 0x0
push 0xC
push esi
call LuaParam::GetBool ; optional
add esp, 0x24
push eax
push 0xB
push esi
call LuaParam::GetInt
add esp, 0x8
push eax
push 0xA
push esi
call LuaParam::GetInt
add esp, 0x8
push eax
push 0x9
push esi
call LuaParam::GetBool
add esp, 0x8
push eax
push 0x8
push esi
call LuaParam::GetBool
add esp, 0x8
push eax
push 0x7
push esi
call LuaParam::GetBool
add esp, 0x8
push eax
push 0x6
push esi
call LuaParam::GetInt
add esp, 0x8
push eax
push 0x5
push esi
call LuaParam::GetInt
add esp, 0x8
push eax
push 0x4
push esi
call LuaParam::GetInt
add esp, 0x8
push eax
push 0x3
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x4], st
fld st, dword ptr [esp+0x30]
sub esp, 0x8
fstp dword ptr [esp+0x8], st
fld st, dword ptr [esp+0x3C]
fstp dword ptr [esp+0x4], st
fld st, dword ptr [esp+0x40]
fstp dword ptr [esp], st
call 0x4C74E0
push eax
push esi
call LuaParam::PushInt
add esp, 0x3C
mov eax, 0x1
pop esi
add esp, 0xC
ret
bike = VehicleCreatePoint(273, POINTLIST._2_04_PLAYERBIKE, 1)
bike = VehicleCreatePoint(273, POINTLIST._2_04_RESTARTPLAYER, 2)
car = VehicleCreatePoint(286, POINTLIST._ENTERCAR_CAR)
car = VehicleCreatePoint(295, POINTLIST._ENTERCAR_CAR)
car = VehicleCreatePoint(297, POINTLIST._ENTERCAR_CAR)
car = VehicleCreatePoint(tblCar[i], carpoint, i)
car = VehicleCreatePoint(tblCars[cInd], POINTLIST._ENTERCAR_CAR)
car.id = VehicleCreatePoint(car.model, car.point)
car.id = VehicleCreatePoint(car.model, car.point, car.e)
car.id = VehicleCreatePoint(RandomTableElement(gCarModels), car.point, 1)
CopCar = VehicleCreatePoint(295, POINTLIST._5_07_NIS_COPCAR, 1)
copCar = VehicleCreatePoint(295, POINTLIST._6_02_OUTSIDECOPS, 1)
copCar = VehicleCreatePoint(295, POINTLIST._6_02_OUTSIDECOPS, 2)
copCar = VehicleCreatePoint(295, POINTLIST._AMBIENTEVENT1, 1)
copCar = VehicleCreatePoint(295, POINTLIST._COPS, 3)
copCar = VehicleCreatePoint(295, POINTLIST._COPS, 4)
currentBike = VehicleCreatePoint(modelId, POINTLIST._5_T1_BIKEDROP)
currentCar.id = VehicleCreatePoint(currentCar.model, currentCar.spawnLocation)
gBaddie.Bikeid = VehicleCreatePoint(273, gBaddie.point, 2)
gBaddie02.Bikeid = VehicleCreatePoint(273, gBaddie02.point, 2)
gBaddie03.Bikeid = VehicleCreatePoint(273, gBaddie03.point, 2)
gBaddie04.Bikeid = VehicleCreatePoint(273, gBaddie04.point, 2)
gBaddie05.Bikeid = VehicleCreatePoint(273, gBaddie05.point, 2)
gBaddie06.Bikeid = VehicleCreatePoint(273, gBaddie06.point, 2)
gBike = VehicleCreatePoint(281, POINTLIST._2_R03_BIKESTART)
gBike = VehicleCreatePoint(281, POINTLIST._3_S08_BIKESTART)
gBike1 = VehicleCreatePoint(275, POINTLIST._2_S02_COP_BIKE1)
gBike2 = VehicleCreatePoint(275, POINTLIST._2_S02_COP_BIKE2)
gCopCar = VehicleCreatePoint(295, POINTLIST._6_02_COPSBACKENTRANCE, 1)
gCopCar = VehicleCreatePoint(295, POINTLIST._6_02_COPSFRONTENTRANCE, 2)
gCopCar1 = VehicleCreatePoint(295, POINTLIST._2_S02_COP_CAR1)
gCopCar2 = VehicleCreatePoint(295, POINTLIST._2_S02_COP_CAR2)
gCopChaseCar = VehicleCreatePoint(295, POINTLIST._3_B_COPCAR_WARP)
gHattrickCar = VehicleCreatePoint(297, POINTLIST._2_S02_HATTRICK_CAR, 1)
gHattrickCar = VehicleCreatePoint(297, POINTLIST._2_S02_HATTRICK_CAR, 2)
gJohnnyBike = VehicleCreatePoint(282, POINTLIST._JOHNNYBIKEFIRSTSTART)
gJV_Bike = VehicleCreatePoint(282, POINTLIST._3_B_JOHNNY_BIKE_SPAWN)
gMsPhillipsCar = VehicleCreatePoint(293, POINTLIST._3_S11_CARLEAVING)
gMsPhillipsCar = VehicleCreatePoint(293, POINTLIST._3_S11_PHILLIPS_CAR)
gPeanutBike = VehicleCreatePoint(272, POINTLIST._3_06_PEANUTBIKE)
gPlayerBike = VehicleCreatePoint(273, POINTLIST._BMX_PLAYERSTART, 2)
gPlayerBike = VehicleCreatePoint(273, POINTLIST._PLAYERBIKEFIRSTSTART)
gPlayersBike = VehicleCreatePoint(282, POINTLIST._3_02_PLAYERPARK, 2)
gPlayersBike = VehicleCreatePoint(282, POINTLIST._3_02_WHPLAYERBIKE)
gRussellBike = VehicleCreatePoint(274, POINTLIST._2_05_RUSSELLBIKE)
gRussellBike = VehicleCreatePoint(274, POINTLIST._2_05_RUSSELLBIKE, 2)
gVehicle = VehicleCreatePoint(288, POINTLIST._C3T_CONSTRUCTION, 4)
idBike = VehicleCreatePoint(273, POINTLIST._5_04_PBIKE)
idBike = VehicleCreatePoint(275, POINTLIST._5_06_COPEVENT, 1)
idBike = VehicleCreatePoint(275, POINTLIST._5_06_RUSELLBIKESTART, 1)
idBike = VehicleCreatePoint(275, POINTLIST._5_06_RUSSELLNIS, 1)
idBike.id = VehicleCreatePoint(idBike.model, POINTLIST._2_06_GORDSBIKE, 1)
idCar1 = VehicleCreatePoint(295, POINTLIST._5_04_COP_CAR_04)
idCar2 = VehicleCreatePoint(295, POINTLIST._5_04_COP_CAR_05)
idCar3 = VehicleCreatePoint(295, POINTLIST._5_04_COP_CAR_06)
idCopCar = VehicleCreatePoint(295, POINTLIST._5_09_COPCAR)
idDOBike = VehicleCreatePoint(282, POINTLIST._5_04_DO_BIKE)
idGirlBike = VehicleCreatePoint(281, POINTLIST._2_01_BIKESPAWN)
idMower = VehicleCreatePoint(284, POINTLIST._5_05_MOWER)
idPlayerBike = VehicleCreatePoint(276, POINTLIST._5_06_PLAYERBIKE)
item.bike = VehicleCreatePoint(274, item.pedPoint)
item.bike = VehicleCreatePoint(item.bikeModel, item.pedPoint)
local bike = VehicleCreatePoint(273, bikePt, 1)
local car = VehicleCreatePoint(295, point)
local car = VehicleCreatePoint(carTable[car_loc].model, POINTLIST._CARSTARTPOINT, 1)
local idBike = VehicleCreatePoint(273, idBikePoint)
local idCar1 = VehicleCreatePoint(295, POINTLIST._5_04_COP_CAR_01)
local idCar2 = VehicleCreatePoint(295, POINTLIST._5_04_COP_CAR_02)
local idCar3 = VehicleCreatePoint(295, POINTLIST._5_04_COP_CAR_03)
local tempVehicle = VehicleCreatePoint(282, POINTLIST._3_04_BIKEATTACKERS, node)
local truck = VehicleCreatePoint(291, POINTLIST._CHAPT4TRANS_TRUCK, 1)
LT_GroupObjectCreate(defaultCarGroup, VehicleCreatePoint, "model", "spawnLocation")
LT_GroupObjectCreate(groupName, VehicleCreatePoint, "model", "spawnLocation")
mower = VehicleCreatePoint(284, lmPoint)
Mower = VehicleCreatePoint(284, POINTLIST._CHAPT4TRANS_MOW, 2)
PatrolCar.id = VehicleCreatePoint(295, PatrolCar.point, 2)
PatrolCar.id2 = VehicleCreatePoint(295, PatrolCar.point, 3)
peanutBike = VehicleCreatePoint(tblPeanut.bike.model, tblPeanut.bike.point)
peanutBike2 = VehicleCreatePoint(tblPeanut.bike.model, tblPeanut.bike.point, 2)
ped.bike.id = VehicleCreatePoint(ped.bike.model, ped.bike.point)
peteBike = VehicleCreatePoint(273, POINTLIST._2_04_PETEYSPAWN, 2)
peteBike = VehicleCreatePoint(273, POINTLIST._2_04_RESTARTPLAYER, 3)
player.bike = VehicleCreatePoint(player.bike_model, bike_start_pos)
player.bike = VehicleCreatePoint(player.bike_model, player.bike_start_pos)
player.bike.id = VehicleCreatePoint(player.bike.model, player.bike.location)
player.car = VehicleCreatePoint(player.car_model, player.car_start_pos)
racer.bike = VehicleCreatePoint(racer.bike_model, racer.bike_start_pos)
racer.car = VehicleCreatePoint(racer.car_model, racer.car_start_pos)
shared.gGoKart = VehicleCreatePoint(289, POINTLIST._MM_GOKART, 1)
shared.veh1 = VehicleCreatePoint(295, POINTLIST._BUS_POLICEDROP, 1)
tbl.bike.id = VehicleCreatePoint(tbl.bike.model, tbl.bike.point)
tblGord.bike.id = VehicleCreatePoint(tblGord.bike.model, tblGord.bike.point)
tblGordWH.bike.id = VehicleCreatePoint(tblGordWH.bike.model, tblGordWH.bike.point)
tblGreaser1WH.bike.id = VehicleCreatePoint(tblGreaser1WH.bike.model, tblGreaser1WH.bike.point)
tblGreaser2WH.bike.id = VehicleCreatePoint(tblGreaser2WH.bike.model, tblGreaser2WH.bike.point)
tblJohnnyWH.bike.id = VehicleCreatePoint(tblJohnnyWH.bike.model, tblJohnnyWH.bike.point)
tblPrep1WH.bike.id = VehicleCreatePoint(tblPrep1WH.bike.model, tblPrep1WH.bike.point)
tblPrep2WH.bike.id = VehicleCreatePoint(tblPrep2WH.bike.model, tblPrep2WH.bike.point)
tblVictimInfo[VictimCounter].lBike = VehicleCreatePoint(ModelBikes[math.random(1, 4)], tblVictimInfo[VictimCounter].BIKESTART, 1)
Transport.id1 = VehicleCreatePoint(Transport.model, Transport.point, 1)
Transport.id2 = VehicleCreatePoint(Transport.model2, Transport.point, 2)
veh1 = VehicleCreatePoint(273, POINTLIST._2_04_PREP1BIKE)
veh2 = VehicleCreatePoint(273, POINTLIST._2_04_PREP2BIKE)
veh3 = VehicleCreatePoint(273, POINTLIST._2_04_PREP3BIKE)
vehicleBikeAlgie.id = VehicleCreatePoint(vehicleBikeAlgie.model, POINTLIST._3_04_STG3WARPALGIE, 1)
vehicleBikeAlgie.id = VehicleCreatePoint(vehicleBikeAlgie.model, POINTLIST._3_04_STG4_SPAWNALGIEBIKE, 1)
vehicleBikeAlgie.id = VehicleCreatePoint(vehicleBikeAlgie.model, vehicleBikeAlgie.spawn, vehicleBikeAlgie.element)
vehicleBikeC01.id = VehicleCreatePoint(vehicleBikeC01.model, POINTLIST._SPAWNBIKES, 3)
vehicleBikeC02.id = VehicleCreatePoint(vehicleBikeC02.model, POINTLIST._SPAWNBIKES, 4)
vehicleBikeChad.id = VehicleCreatePoint(vehicleBikeChad.model, vehicleBikeChad.spawn, vehicleBikeChad.element)
VehicleCreatePoint(272, POINTLIST._C6_BIKELOC)
VehicleCreatePoint(273, POINTLIST._C6_BIKELOC)
VehicleCreatePoint(273, POINTLIST._PLAYERBIKE)
VehicleCreatePoint(274, POINTLIST._C6_BIKELOC)
VehicleCreatePoint(277, POINTLIST._C6_BIKELOC)
VehicleCreatePoint(278, POINTLIST._C6_BIKELOC)
VehicleCreatePoint(282, POINTLIST._3_02_PLAYERBIKE)
VehicleCreatePoint(293, POINTLIST._3_R09_VEHICLES01, 1)
VehicleCreatePoint(293, POINTLIST._3_R09_VEHICLES01, 2)
VehicleCreatePoint(295, POINTLIST._3_S09_CAR01)
VehicleCreatePoint(295, POINTLIST._3_S09_CAR02)
VehicleCreatePoint(295, POINTLIST._3_S09_CAR03)
VehicleCreatePoint(i, POINTLIST._CORYCAR_CARS, j)
VehicleCreatePoint(vehicleLolaBike.model, POINTLIST._SPAWNLOLABIKEALLEY, vehicleLolaBike.element)
VehicleCreatePoint(vehicleLolaBike.model, POINTLIST._SPAWNPLAYERBIKE, 1)
vehicleEnemyBike01.id = VehicleCreatePoint(vehicleEnemyBike01.model, vehicleEnemyBike01.spawn, vehicleEnemyBike01.element)
vehicleEnemyBike02.id = VehicleCreatePoint(vehicleEnemyBike02.model, vehicleEnemyBike02.spawn, vehicleEnemyBike02.element)
vehicleEnemyBike03.id = VehicleCreatePoint(vehicleEnemyBike03.model, vehicleEnemyBike03.spawn, vehicleEnemyBike03.element)
vehicleEnemyBike04.id = VehicleCreatePoint(vehicleEnemyBike04.model, vehicleEnemyBike04.spawn, vehicleEnemyBike04.element)
vehicleKleptoBike.id = VehicleCreatePoint(vehicleKleptoBike.model, vehicleKleptoBike.spawn, vehicleKleptoBike.element)
vehicleLolaBike.id = VehicleCreatePoint(vehicleLolaBike.model, vehicleLolaBike.spawn, vehicleLolaBike.element)
vehiclePlayerBike.id = VehicleCreatePoint(vehiclePlayerBike.model, vehiclePlayerBike.spawn, vehiclePlayerBike.element)
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, dword ptr [esp+0x28]
push edi
xor bl, bl
call 0x73AEA0
add esp, 0x4
cmp eax, 0x3
jnz 0x13
push 0x2
push edi
mov bl, 0x1
call LuaParam::GetInt
add esp, 0x8
mov dword ptr [esp+0x10], eax
push 0x0
push edi
call LuaParam::GetInt
movzx eax, ax
push 0x1
push edi
mov dword ptr [esp+0x24], eax
call LuaParam::GetInt
movzx eax, ax
movzx ecx, ax
add esp, 0x10
push ecx
mov ecx, 0xBC5E7C
call 0x6D6450
mov ebp, eax
mov ecx, ebp
call 0x6D59B0
test bl, bl
mov esi, eax
jz 0x23
mov ebx, 0x1
cmp dword ptr [esp+0x10], ebx
jle 0x18
mov ecx, ebp
call 0x6D59F0
test eax, eax
jz 0xD
add ebx, 0x1
cmp ebx, dword ptr [esp+0x10]
mov esi, eax
jl 0xFFFFFFEC
fld st, dword ptr [esi+0x1C]
mov ecx, dword ptr [esi+0x8]
fsub st, qword ptr [0x900AB8]
mov eax, dword ptr [esi+0x4]
mov edx, dword ptr [esi]
sub esp, 0x10
fmul st, qword ptr [0x900160]
mov dword ptr [esp+0x30], ecx
mov dword ptr [esp+0x2C], eax
mov dword ptr [esp+0x28], edx
fdiv st, qword ptr [0x900158]
mov edx, dword ptr [esp+0x24]
fstp dword ptr [esp+0x20], st
fld st, dword ptr [esp+0x20]
fstp dword ptr [esp+0xC], st
fld st, dword ptr [esp+0x30]
fstp dword ptr [esp+0x8], st
fld st, dword ptr [esp+0x2C]
fstp dword ptr [esp+0x4], st
fld st, dword ptr [esp+0x28]
fstp dword ptr [esp], st
push edx
push edi
call 0x5D7870
movsx esi, ax
add esp, 0x18
cmp esi, 0xFFFFFFFF
jz 0x14
push esi
mov ecx, 0xD02850
call 0x5DB940
mov ecx, eax
call 0x5D99E0
push esi
push edi
call LuaParam::PushInt
add esp, 0x8
pop edi
pop esi
pop ebp
mov eax, 0x1
pop ebx
add esp, 0x14
ret
bike = VehicleCreateXYZ(273, x + 5, y, z)
Bike01 = VehicleCreateXYZ(273, b1x, b1y, b1z)
BikeLineupTable[i].handle = VehicleCreateXYZ(BikeLineupTable[i].model, BikeLineupTable[i].x + TestX, BikeLineupTable[i].y + TestY, TestZ)
carID[0] = VehicleCreateXYZ(273, AIStartPos[Path][1], AIStartPos[Path][2], AIStartPos[Path][3])
carID[0] = VehicleCreateXYZ(295, 320, 160, 5)
carID[0] = VehicleCreateXYZ(MODELENUM._Taxicab, 320, 158, 5)
carID[0] = VehicleCreateXYZ(MODELENUM._Taxicab, 320, 160, 5)
carID[1] = VehicleCreateXYZ(MODELENUM._Taxicab, 306, 222, 5)
carID[1] = VehicleCreateXYZ(MODELENUM._Taxicab, 342, 115, 5)
carID[2] = VehicleCreateXYZ(MODELENUM._Taxicab, 342, 105, 5)
carID[3] = VehicleCreateXYZ(MODELENUM._Taxicab, 312, 167, 5)
local bikeID = VehicleCreateXYZ(283, x, y, z)
local car = VehicleCreateXYZ(carc, x, y, z)
local kart = VehicleCreateXYZ(289, x + 1, y + 1, z)
local mower = VehicleCreateXYZ(284, x + 1, y + 1, z)
local new_bike = VehicleCreateXYZ(bikeTable[currentBikeIndex], x, y, z + 2)
local ride = VehicleCreateXYZ(bike, x, y, z)
local vecId = VehicleCreateXYZ(carTable[car_loc].model, px, py + 4, pz)
player.bike = VehicleCreateXYZ(player.bike_model, Xp + dX, Yp - dY, z)
racers[i].bike = VehicleCreateXYZ(racers[i].bike_model, Xp + dX, Yp - dY, z)
vehicle = VehicleCreateXYZ(ped1, x, y, z)
push esi
mov esi, dword ptr [esp+0x8]
push edi
push 0x0
push esi
call LuaParam::GetInt
fld st, dword ptr [0x900FB8]
add esp, 0x4
fstp dword ptr [esp], st
push 0x3
push esi
movzx edi, ax
call LuaParam::GetFloat
add esp, 0x4
fstp dword ptr [esp], st
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x4], st
add esp, 0x4
push 0x1
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x4], st
add esp, 0x4
push edi
push esi
call 0x5D7870
movsx edi, ax
add esp, 0x18
cmp edi, 0xFFFFFFFF
jz 0x14
push edi
mov ecx, 0xD02850
call 0x5DB940
mov ecx, eax
call 0x5D99E0
push edi
push esi
call LuaParam::PushInt
add esp, 0x8
pop edi
mov eax, 0x1
pop esi
ret
L_PedExec("ambush02", VehicleDelete, "idBike")
L_PedExec("ambush05", VehicleDelete, "idBike")
VehicleDelete(bike)
VehicleDelete(bikeID)
VehicleDelete(BikeLineupTable[i].handle)
VehicleDelete(car)
VehicleDelete(car.id)
VehicleDelete(carcar)
VehicleDelete(CopCar)
VehicleDelete(currentBike)
VehicleDelete(currentBikesTable[1])
VehicleDelete(currentCar.id)
VehicleDelete(currentCars[1])
VehicleDelete(entry)
VehicleDelete(entry.id)
VehicleDelete(gAmbientEventTable.tCopCar)
VehicleDelete(gBaddie.Bikeid)
VehicleDelete(gBaddie02.Bikeid)
VehicleDelete(gBaddie03.Bikeid)
VehicleDelete(gBaddie04.Bikeid)
VehicleDelete(gBaddie05.Bikeid)
VehicleDelete(gBaddie06.Bikeid)
VehicleDelete(gHattrickCar)
VehicleDelete(gMsPhillipsCar)
VehicleDelete(gPlayerBike)
VehicleDelete(gRussellBike)
VehicleDelete(gVehicle)
VehicleDelete(idBike)
VehicleDelete(idCar)
VehicleDelete(idVeh)
VehicleDelete(item.bike)
VehicleDelete(mower)
VehicleDelete(Mower)
VehicleDelete(peanutBike)
VehicleDelete(peanutBike2)
VehicleDelete(player.car)
VehicleDelete(racer.bike)
VehicleDelete(racer.car)
VehicleDelete(shared.gGoKart)
VehicleDelete(shared.veh1)
VehicleDelete(tblGordWH.bike.id)
VehicleDelete(tblGreaser1WH.bike.id)
VehicleDelete(tblGreaser2WH.bike.id)
VehicleDelete(tblJohnnyWH.bike.id)
VehicleDelete(tblPrep1WH.bike.id)
VehicleDelete(tblPrep2WH.bike.id)
VehicleDelete(tempBikeID)
VehicleDelete(tped.lBike)
VehicleDelete(truck)
VehicleDelete(vehicle)
VehicleDelete(vehicleBikeAlgie.id)
VehicleDelete(vehicleLolaBike.id)
mov eax, dword ptr [esp+0x4]
push ebx
push 0x0
push eax
call LuaParam::GetInt
mov ecx, dword ptr [0xC0F5F4]
mov edx, dword ptr [ecx+0x4]
movzx eax, ax
movzx ebx, ax
mov eax, ebx
sar eax, 0x8
add esp, 0x8
cmp byte ptr [eax+edx*1], bl
jnz 0x27
push esi
mov esi, dword ptr [ecx+0xC]
imul esi, eax
add esi, dword ptr [ecx]
jz 0x1B
push esi
call 0x45DD70
push esi
call 0x45E690
mov eax, dword ptr [esi]
mov edx, dword ptr [eax]
add esp, 0x8
push 0x1
mov ecx, esi
call 0x5D643D
pop esi
push ebx
mov ecx, 0xD02850
call 0x5DB940
mov ecx, eax
call 0x5D9A00
xor eax, eax
pop ebx
ret
VehicleDontCleanup(player.bike)
mov eax, dword ptr [esp+0x4]
push ebx
push 0x0
push eax
call LuaParam::GetInt
mov edx, dword ptr [0xC0F5F4]
mov ecx, dword ptr [edx+0x4]
movzx eax, ax
movzx ebx, ax
mov eax, ebx
sar eax, 0x8
add esp, 0x8
cmp byte ptr [eax+ecx*1], bl
jnz 0xC
mov ecx, dword ptr [edx+0xC]
imul ecx, eax
add ecx, dword ptr [edx]
jmp 0x4
xor ecx, ecx
push 0x1
call 0x4CB230
push ebx
mov ecx, 0xD02850
call 0x5DB940
mov ecx, eax
call 0x5D9A00
xor eax, eax
pop ebx
ret
VehicleEnableEngine(car.id, true)
VehicleEnableEngine(copCar, true)
VehicleEnableEngine(gBike1, false)
VehicleEnableEngine(gBike2, false)
VehicleEnableEngine(gCopCar1, false)
VehicleEnableEngine(gCopCar2, false)
VehicleEnableEngine(gHattrickCar, false)
VehicleEnableEngine(gHattrickCar, true)
VehicleEnableEngine(gMsPhillipsCar, false)
VehicleEnableEngine(gMsPhillipsCar, true)
VehicleEnableEngine(gVehicle, true)
VehicleEnableEngine(Mower, false)
VehicleEnableEngine(Mower, true)
VehicleEnableEngine(truck, true)
push ebx
push esi
mov esi, dword ptr [esp+0xC]
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push 0x1
push esi
mov ebx, eax
call LuaParam::GetBool ; optional
mov esi, dword ptr [0xC0F5F4]
mov edx, dword ptr [esi+0x4]
mov ecx, ebx
sar ecx, 0x8
add esp, 0x14
cmp byte ptr [ecx+edx*1], bl
jnz 0x1C
mov edx, dword ptr [esi+0xC]
imul edx, ecx
add edx, dword ptr [esi]
jz 0x12
add al, al
xor al, byte ptr [edx+0x33A]
and al, 0x2
xor byte ptr [edx+0x33A], al
pop esi
xor eax, eax
pop ebx
ret
VehicleEnableSiren(car, false)
VehicleEnableSiren(car, true)
VehicleEnableSiren(copCar, true)
VehicleEnableSiren(CopCar, true)
VehicleEnableSiren(gBike1, true)
VehicleEnableSiren(gBike2, true)
VehicleEnableSiren(gCopCar, true)
VehicleEnableSiren(gCopCar1, true)
VehicleEnableSiren(gCopCar2, true)
VehicleEnableSiren(gCopChaseCar, true)
VehicleEnableSiren(idCopCar, true)
VehicleEnableSiren(PatrolCar.id, true)
VehicleEnableSiren(PatrolCar.id2, true)
push ebx
mov ebx, dword ptr [esp+0x8]
push esi
push edi
mov edi, dword ptr [0xC0F5F4]
push 0x0
push ebx
call LuaParam::GetInt
mov edx, dword ptr [edi+0x4]
mov ecx, eax
sar ecx, 0x8
add esp, 0x8
cmp byte ptr [ecx+edx*1], al
jnz 0xC
mov esi, dword ptr [edi+0xC]
imul esi, ecx
add esi, dword ptr [edi]
jmp 0x4
xor esi, esi
mov ecx, esi
call 0x4CB1F0
test al, al
jz 0x13
push 0x1
push ebx
call LuaParam::GetBool
add esp, 0x8
mov byte ptr [esi+0x36D], al
pop edi
pop esi
xor eax, eax
pop ebx
ret
VehicleFaceHeading(vehicle, PedGetHeading(curPed))
push ecx
push ebx
mov ebx, dword ptr [esp+0xC]
push esi
push edi
mov edi, dword ptr [0xC0F5F4]
push 0x0
push ebx
call LuaParam::GetInt
mov edx, dword ptr [edi+0x4]
mov ecx, eax
sar ecx, 0x8
add esp, 0x8
cmp byte ptr [ecx+edx*1], al
jnz 0xC
mov esi, dword ptr [edi+0xC]
imul esi, ecx
add esi, dword ptr [edi]
jmp 0x4
xor esi, esi
push 0x1
push ebx
call LuaParam::GetInt
mov dword ptr [esp+0x14], eax
fild st, dword ptr [esp+0x14]
mov ecx, dword ptr [esi+0x14]
add esp, 0x8
test ecx, ecx
fmul st, qword ptr [0x900160]
fdiv st, qword ptr [0x900158]
fstp dword ptr [esp+0xC], st
jz 0xF
fld st, dword ptr [esp+0xC]
push ecx
fstp dword ptr [esp], st
call 0x412C20
fld st, dword ptr [esp+0xC]
pop edi
fstp dword ptr [esi+0x10], st
pop esi
xor eax, eax
pop ebx
pop ecx
ret
bikes = VehicleFindInAreaXYZ(x, y, z, 10, false)
bikes = VehicleFindInAreaXYZ(x, y, z, 100, false)
bikes = VehicleFindInAreaXYZ(x, y, z, 70, false)
if not VehicleFindInAreaXYZ(x, y, z, 3, false) then
local bike = VehicleFindInAreaXYZ(x, y, z, 15, true)
local bikes = VehicleFindInAreaXYZ(68.0681, -89.2663, 5.0771, 5)
local tblAreaBike = VehicleFindInAreaXYZ(x, y, z, 1, false)
local tblAreaBikes = VehicleFindInAreaXYZ(bx, by, bz, 3, true)
local tblAreaBikes = VehicleFindInAreaXYZ(px, py, pz, 15, true)
local tblAreaBikes = VehicleFindInAreaXYZ(x, y, z, 15, true)
local tempVehicleTable = VehicleFindInAreaXYZ(x, y, z, 9, true)
local vehicleTable = VehicleFindInAreaXYZ(vx, vy, vz, 20, true)
local vehicleTable = VehicleFindInAreaXYZ(vx, vy, vz, radius, true)
tblBikes = VehicleFindInAreaXYZ(x, y, z, 200, false)
tblCars = VehicleFindInAreaXYZ(x, y, z, 3, false)
tblDeleteVehicles = VehicleFindInAreaXYZ(x, y, z, prox, false)
tblFoundVehicles = VehicleFindInAreaXYZ(x, y, z, radius, false)
sub esp, 0x28
push ebx
push ebp
mov ebp, dword ptr [esp+0x34]
push esi
push 0x0
lea eax, ptr [esp+0x20]
push ebp
push eax
call LuaParam::GetVector
push 0x3
push ebp
call LuaParam::GetFloat
fstp dword ptr [esp+0x2C], st
push 0x0
push 0x4
push ebp
call LuaParam::GetBool ; optional
mov esi, dword ptr [0xC0F5F4]
mov byte ptr [esp+0x2F], al
mov eax, dword ptr [esi+0x8]
add esp, 0x20
xor ebx, ebx
test eax, eax
jz 0xF5
push edi
jmp 0x8
lea ebx, ptr [ebx]
mov ecx, dword ptr [esi+0x4]
sub eax, 0x1
test byte ptr [eax+ecx*1], 0x80
mov dword ptr [esp+0x14], eax
jnz 0xCB
mov edi, dword ptr [esi+0xC]
imul edi, eax
add edi, dword ptr [esi]
jz 0xBD
cmp byte ptr [esp+0x13], 0x0
jz 0xF
cmp dword ptr [edi+0x46C], 0x1
jnz 0xA9
mov eax, dword ptr [edi+0x14]
test eax, eax
jz 0x7
add eax, 0x30
jmp 0x5
lea eax, ptr [edi+0x4]
lea edx, ptr [esp+0x20]
push edx
push eax
lea eax, ptr [esp+0x34]
push eax
call 0x414B70
fld st, dword ptr [eax+0x4]
fld st, dword ptr [eax]
add esp, 0xC
fld st, dword ptr [eax+0x8]
fld st, st(1)
fmulp st(2), st
fld st, st(2)
fmulp st(3), st
fxch st, st(1)
faddp st(2), st
fmul st(0), st
faddp st(1), st
fstp dword ptr [esp+0x18], st
fld st, dword ptr [esp+0x18]
fabs
fstp dword ptr [esp+0x18], st
fld st, dword ptr [esp+0x18]
call 0x85C500
fstp dword ptr [esp+0x18], st
fld st, dword ptr [esp+0x18]
fld st, dword ptr [esp+0x1C]
fcompp
fnstsw ax
test ah, 0x41
jnz 0x3B
test ebx, ebx
jnz 0xB
push ebp
call LuaParam::CreateTable
add esp, 0x4
mov eax, edi
sub eax, dword ptr [esi]
mov ecx, dword ptr [esi+0x4]
cdq
idiv dword ptr [esi+0xC]
movzx edx, byte ptr [ecx+eax*1]
shl eax, 0x8
add edx, eax
push edx
push ebp
call LuaParam::PushInt
lea edi, ptr [ebx+0x1]
push edi
push 0xFFFFFFFE
push ebp
call LuaParam::SetTableArrayValue
add esp, 0x14
mov ebx, edi
mov eax, dword ptr [esp+0x14]
test eax, eax
jnz 0xFFFFFF25
test ebx, ebx
pop edi
jnz 0xB
push ebp
call LuaParam::PushNil
add esp, 0x4
pop esi
pop ebp
mov eax, 0x1
pop ebx
add esp, 0x28
ret
x, y, z = VehicleFindRandomSpawnPosition(bike)
x, y, z = VehicleFindRandomSpawnPosition(carc)
sub esp, 0x70
push ebp
mov ebp, dword ptr [esp+0x78]
push esi
push edi
push 0x0
push ebp
call LuaParam::GetInt
fld st, dword ptr [0x90D1C8]
mov ecx, dword ptr [0xBCC568]
fst dword ptr [esp+0x3C], st
mov edx, dword ptr [0xBCC56C]
fst dword ptr [esp+0x40], st
mov edi, eax
fstp dword ptr [esp+0x44], st
mov eax, dword ptr [0xBCC564]
fldz
mov dword ptr [esp+0x30], eax
fstp dword ptr [esp+0x28], st
mov eax, dword ptr [0xC3CCF4]
push eax
mov dword ptr [esp+0x1C], 0x0
mov dword ptr [esp+0x20], 0x0
mov dword ptr [esp+0x38], ecx
mov dword ptr [esp+0x3C], edx
call 0x6C82F0
push eax
call 0x6C9A90
fld st, dword ptr [eax+0x8]
fstp dword ptr [esp+0x50], st
add esp, 0x10
fld st, dword ptr [eax+0x14]
fstp dword ptr [esp+0x44], st
fld st, dword ptr [eax+0x20]
fstp dword ptr [esp+0x48], st
fld st, dword ptr [esp+0x40]
fstp dword ptr [esp+0x4C], st
mov edx, dword ptr [esp+0x4C]
fld st, dword ptr [esp+0x44]
fstp dword ptr [esp+0x50], st
mov esi, dword ptr [esp+0x50]
fld st, dword ptr [esp+0x48]
fstp dword ptr [esp+0x54], st
mov ecx, dword ptr [esp+0x54]
fldz
mov dword ptr [esp+0x48], ecx
mov ecx, dword ptr [0xC1AEA8]
fstp dword ptr [esp+0x48], st
mov eax, dword ptr [ecx+0x14]
test eax, eax
jz 0x7
lea ecx, ptr [eax+0x30]
jmp 0x5
add ecx, 0x4
fld st, dword ptr [0x9055A0]
push 0x0
push 0x0
lea eax, ptr [esp+0x28]
push eax
lea eax, ptr [esp+0x20]
push eax
lea eax, ptr [esp+0x20]
push eax
lea eax, ptr [esp+0x3C]
push eax
push 0x1
sub esp, 0x14
fstp dword ptr [esp+0x10], st
mov eax, esp
fld st, dword ptr [0x900E1C]
sub esp, 0xC
fstp dword ptr [esp+0x18], st
mov dword ptr [eax], edx
mov edx, dword ptr [esp+0x84]
mov dword ptr [eax+0x4], esi
mov dword ptr [eax+0x8], edx
mov edx, dword ptr [ecx]
mov eax, esp
mov dword ptr [eax], edx
mov edx, dword ptr [ecx+0x4]
mov ecx, dword ptr [ecx+0x8]
mov dword ptr [eax+0x4], edx
mov dword ptr [eax+0x8], ecx
mov ecx, 0xBF6228
call 0x440870
test al, al
jnz 0xC
lea edx, ptr [esp+0x34]
push edx
jmp 0x140
mov eax, dword ptr [esp+0x10]
movzx ecx, byte ptr [eax+0x16]
mov eax, dword ptr [esp+0x14]
and cl, 0xF
movzx edx, cl
movzx ecx, byte ptr [eax+0x16]
mov dword ptr [esp+0x18], edx
and cl, 0xF
movzx edx, cl
fild st, dword ptr [esp+0x18]
mov dword ptr [esp+0x18], edx
fstp dword ptr [esp+0x24], st
fild st, dword ptr [esp+0x18]
fstp dword ptr [esp+0x18], st
fld st, dword ptr [esp+0x24]
fld st, dword ptr [esp+0x18]
fcom st, st(1)
fnstsw ax
test ah, 0x5
jp 0x6
fstp st(0), st
jmp 0x4
fstp st(1), st
fstp dword ptr [esp+0x18], st
fld st, dword ptr [esp+0x18]
call 0x85C720
test eax, eax
jnz 0xB
lea eax, ptr [esp+0x34]
jmp 0xDA
fld st, dword ptr [esp+0x30]
push 0x1
fadd qword ptr [0x900980]
lea ecx, ptr [esp+0x13]
push ecx
sub esp, 0xC
fstp dword ptr [esp+0x38], st
fld st, dword ptr [esp+0x38]
fstp dword ptr [esp+0x8], st
fld st, dword ptr [esp+0x40]
fstp dword ptr [esp+0x4], st
fld st, dword ptr [esp+0x3C]
fstp dword ptr [esp], st
call 0x4635A0
add esp, 0x14
fstp dword ptr [esp+0x24], st
cmp byte ptr [esp+0xF], 0x0
jz 0xFFFFFF51
mov ecx, dword ptr [edi*4+0xC67738]
mov eax, dword ptr [ecx+0xC]
mov edx, dword ptr [eax+0x10]
mov dword ptr [esp+0x4C], edx
mov edx, dword ptr [eax+0x14]
mov dword ptr [esp+0x50], edx
mov edx, dword ptr [eax+0x18]
mov eax, dword ptr [eax+0x1C]
mov dword ptr [esp+0x54], edx
fld st, dword ptr [esp+0x54]
fmul st, qword ptr [0x900550]
push 0x6
lea edx, ptr [esp+0x60]
push edx
fadd dword ptr [esp+0x2C]
push 0x8
mov dword ptr [esp+0x64], eax
lea eax, ptr [esp+0x28]
fstp dword ptr [esp+0x3C], st
mov ecx, dword ptr [ecx+0xC]
fld st, dword ptr [ecx+0xC]
push eax
fstp dword ptr [esp+0x34], st
push 0x1
fld st, dword ptr [esp+0x38]
push ecx
fadd st(0), st
lea ecx, ptr [esp+0x40]
mov dword ptr [esp+0x34], 0x0
fadd qword ptr [0x900140]
fstp dword ptr [esp+0x3C], st
fld st, dword ptr [esp+0x3C]
fstp dword ptr [esp], st
push ecx
call 0x45E3C0
add esp, 0x1C
cmp word ptr [esp+0x1C], 0x0
jnle 0xFFFFFEC6
lea eax, ptr [esp+0x28]
push eax
push ebp
call LuaParam::PushVector
add esp, 0x8
pop edi
pop esi
mov eax, 0x3
pop ebp
add esp, 0x70
ret
VehicleFollowEntity(carID[1], carID[0], 1, 5)
push ebx
mov ebx, dword ptr [0xC0F5F4]
push esi
push edi
mov edi, dword ptr [esp+0x10]
push 0x0
push edi
call LuaParam::GetInt
mov edx, dword ptr [ebx+0x4]
mov ecx, eax
sar ecx, 0x8
add esp, 0x8
cmp byte ptr [ecx+edx*1], al
jnz 0xC
mov esi, dword ptr [ebx+0xC]
imul esi, ecx
add esi, dword ptr [ebx]
jmp 0x4
xor esi, esi
push 0x2
push edi
call LuaParam::GetInt
add esp, 0x8
push 0x0
push 0x0
push eax
push 0x1
push edi
call LuaParam::GetInt
add esp, 0x8
push eax
call 0x5C28D0
fld st, dword ptr [0x900E6C]
add esp, 0xC
fstp dword ptr [esp], st
push 0x3
push edi
mov ebx, eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x4], st
add esp, 0x4
push ebx
push esi
call 0x41A2C0
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
ret
VehicleFollowPath(car, path)
VehicleFollowPath(car, PATH._CARPATH)
VehicleFollowPath(car.id, car.path)
VehicleFollowPath(car.id, car.path, true)
VehicleFollowPath(CopCar, PATH._5_07_COPSCHASERUSSELL, 10)
VehicleFollowPath(currentCar.id, currentCar.path)
VehicleFollowPath(gCopCar1, PATH._2_S02_COP_CAR1_PATH, true)
VehicleFollowPath(gCopCar2, PATH._2_S02_COP_CAR2_PATH, true)
VehicleFollowPath(gCopChaseCar, PATH._3_B_COPCARCHASEPLAYER, true)
VehicleFollowPath(gCopChaseCar, PATH._3B_COPCARALLEYCHASE)
VehicleFollowPath(gHattrickCar, PATH._2_S02_CARENTERDRIVEWAY, true)
VehicleFollowPath(gHattrickCar, PATH._2_S02_FROMSCHOOL, true)
VehicleFollowPath(gMsPhillipsCar, PATH._3_S11_NIS_CARLEAVE, true)
VehicleFollowPath(gMsPhillipsCar, PATH._3_S11_PHILLIPS_CAR_PATH, true)
VehicleFollowPath(gVehicle, PATH._C3T_TRACTOR)
VehicleFollowPath(idCopCar, PATH._5_09_COPCARNISPATH, false, false)
VehicleFollowPath(Mower, PATH._CHAPT4TRANS_MOWER)
VehicleFollowPath(player.car, PATH._ARC1_ARCADERACETRACK)
VehicleFollowPath(player.car, PATH._ARC2_MAINTRACK)
VehicleFollowPath(player.car, PATH._ARC3_MAINPATH)
VehicleFollowPath(player.car, player.endPath)
VehicleFollowPath(racer.car, race.path)
VehicleFollowPath(racer.car, racer.endPath)
VehicleFollowPath(truck, PATH._CHAPT4TRANS_TRUCK)
push ecx
push ebx
mov ebx, dword ptr [0xC0F5F4]
push esi
push edi
mov edi, dword ptr [esp+0x14]
push 0x0
push edi
call LuaParam::GetInt
mov edx, dword ptr [ebx+0x4]
mov ecx, eax
sar ecx, 0x8
add esp, 0x8
cmp byte ptr [ecx+edx*1], al
jnz 0xC
mov esi, dword ptr [ebx+0xC]
imul esi, ecx
add esi, dword ptr [ebx]
jmp 0x4
xor esi, esi
push edi
mov byte ptr [esp+0x10], 0x0
call 0x73AEA0
add esp, 0x4
cmp eax, 0x2
jle 0x20
push 0x2
push edi
call LuaParam::IsBool
add esp, 0x8
test al, al
jz 0x11
push 0x2
push edi
call LuaParam::GetBool
add esp, 0x8
mov byte ptr [esp+0xC], al
push 0x0
push 0x2
push edi
call LuaParam::GetBool ; optional
add esp, 0xC
push eax
mov eax, dword ptr [esp+0x10]
push eax
push 0x1
push edi
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, esi
call 0x4CB480
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
bike = VehicleFromDriver(gPlayer)
gBMXPlayerBike = VehicleFromDriver(gPlayer)
gPlayersBike = VehicleFromDriver(gPlayer)
if not bZoeRunAway and PlayerIsInTrigger(TRIGGER._5_05_RUNAWAYZOE) and PlayerIsInAnyVehicle() and VehicleIsModel(VehicleFromDriver(gPlayer), 284) then
if PedIsInAnyVehicle(gPlayer) and not VehicleIsModel(VehicleFromDriver(gPlayer), 276) then
if PlayerIsInTrigger(TRIGGER._5_05_LASTPOTTY) and PlayerIsInAnyVehicle() and VehicleIsModel(VehicleFromDriver(gPlayer), 284) then
local aBike = VehicleFromDriver(gRussell.id)
local bike = VehicleFromDriver(gPlayer)
local idVeh = VehicleFromDriver(gPlayer)
local vehicle = VehicleFromDriver(gPlayer)
pBike = VehicleFromDriver(gPlayer)
tblPlayer.bike = VehicleFromDriver(gPlayer)
push esi
mov esi, dword ptr [esp+0x8]
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x8
test eax, eax
jz 0x16
push ecx
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
jmp 0x7
mov eax, dword ptr [0xC1AEA8]
test eax, eax
jz 0x3A
mov eax, dword ptr [eax+0x1554]
test eax, eax
jz 0x30
mov ecx, dword ptr [0xC0F5F4]
sub eax, dword ptr [ecx]
cdq
idiv dword ptr [ecx+0xC]
mov ecx, dword ptr [ecx+0x4]
movzx dx, byte ptr [ecx+eax*1]
shl eax, 0x8
add dx, ax
movzx eax, dx
push eax
push esi
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
pop esi
ret
xor eax, eax
pop esi
ret
CLIENT
Returns a game vehicle given a sync id, or -1 if no valid game vehicle is associated with the sync id.
CLIENT
Returns a game vehicle given a sync vehicle, or -1 if no valid game vehicle is associated with the sync vehicle.
CLIENT
A get function for the VehicleSetColor / VehicleSetColours function. Returns two numbers representing the colors. This function is also available as VehicleGetColours.
car.oldHealth = VehicleGetHealth(car.id)
push esi
mov esi, dword ptr [esp+0x8]
push edi
push 0x0
push esi
call LuaParam::GetInt
mov edx, dword ptr [0xC0F5F4]
mov edi, dword ptr [edx+0x4]
mov ecx, eax
sar ecx, 0x8
add esp, 0x8
cmp byte ptr [ecx+edi*1], al
jnz 0xC
mov eax, dword ptr [edx+0xC]
imul eax, ecx
add eax, dword ptr [edx]
jmp 0x4
xor eax, eax
fld st, dword ptr [eax+0x340]
push ecx
fstp dword ptr [esp], st
push esi
call LuaParam::PushFloat
add esp, 0x8
pop edi
mov eax, 0x1
pop esi
ret
local modelId = VehicleGetModelId(currentBike)
push esi
mov esi, dword ptr [0xC0F5F4]
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetInt
mov edx, dword ptr [esi+0x4]
mov ecx, eax
sar ecx, 0x8
add esp, 0x8
cmp byte ptr [ecx+edx*1], al
jnz 0xC
mov eax, dword ptr [esi+0xC]
imul eax, ecx
add eax, dword ptr [esi]
jmp 0x4
xor eax, eax
movsx eax, word ptr [eax+0x10E]
push eax
push edi
call LuaParam::PushInt
add esp, 0x8
pop edi
mov eax, 0x1
pop esi
ret
CLIENT
Returns the ped in a vehicle, or -1 if there is none. If a seat is not specified, it defaults to zero.
cx, cy = VehicleGetPosXYZ(car)
local bx, by, bz = VehicleGetPosXYZ(Bike01)
local cx, cy, _ = VehicleGetPosXYZ(car)
local x, y, z = VehicleGetPosXYZ(tblPlayer.bike)
sub esp, 0xC
push esi
mov esi, dword ptr [0xC0F5F4]
push edi
mov edi, dword ptr [esp+0x18]
push 0x0
push edi
call LuaParam::GetInt
mov edx, dword ptr [esi+0x4]
mov ecx, eax
sar ecx, 0x8
add esp, 0x8
cmp byte ptr [ecx+edx*1], al
jnz 0xC
mov eax, dword ptr [esi+0xC]
imul eax, ecx
add eax, dword ptr [esi]
jmp 0x4
xor eax, eax
mov ecx, dword ptr [eax+0x14]
test ecx, ecx
jz 0x7
lea eax, ptr [ecx+0x30]
jmp 0x5
add eax, 0x4
mov ecx, dword ptr [eax]
mov edx, dword ptr [eax+0x4]
mov eax, dword ptr [eax+0x8]
mov dword ptr [esp+0x8], ecx
fld st, dword ptr [esp+0x8]
push ecx
fstp dword ptr [esp], st
push edi
mov dword ptr [esp+0x14], edx
mov dword ptr [esp+0x18], eax
call LuaParam::PushFloat
fld st, dword ptr [esp+0x14]
add esp, 0x4
fstp dword ptr [esp], st
push edi
call LuaParam::PushFloat
fld st, dword ptr [esp+0x18]
add esp, 0x4
fstp dword ptr [esp], st
push edi
call LuaParam::PushFloat
add esp, 0x8
pop edi
mov eax, 0x3
pop esi
add esp, 0xC
ret
CLIENT
Returns a vehicle's rotation in radians. May take an optional rotation order.
CLIENT
A get function for VehicleSetStatus. Returns the vehicle's status.
CLIENT
Returns a sync id given a game vehicle, or -1 if no sync entity is associated with the game vehicle.
CLIENT
Returns a sync vehicle given a game vehicle, or nothing if no sync vehicle is associated with the game vehicle.
if -1 < lastBike and VehicleIsInAreaXYZ(lastBike, x, y, z, 10, 0) then
if player.bike and not VehicleIsModel(player.bike, 289) and VehicleIsInAreaXYZ(player.bike, px, py, pz, 10, 0) then
if VehicleIsInAreaXYZ(car.id, x, y, z, 3, 0) then
sub esp, 0x20
push ebx
push esi
mov esi, dword ptr [esp+0x2C]
push edi
push 0x0
push esi
call LuaParam::GetInt
push 0x1
push esi
movzx edi, ax
call LuaParam::GetFloat
push 0x2
push esi
fstp dword ptr [esp+0x34], st
call LuaParam::GetFloat
push 0x3
fstp dword ptr [esp+0x34], st
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x34], st
push 0x4
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x38], st
push 0x5
push esi
call LuaParam::GetInt
fldz
push esi
fstp dword ptr [esp+0x40], st
mov ebx, eax
call LuaParam::GetParamCount
add esp, 0x34
cmp eax, 0x7
jl 0x1D
push 0x6
push esi
call LuaParam::GetFloat
fmul st, qword ptr [0x900160]
add esp, 0x8
fdiv st, qword ptr [0x900158]
fstp dword ptr [esp+0xC], st
fldz
push 0x1
push 0x0
push 0x0
push 0xFFFFFFFF
push ecx
mov eax, esp
mov dword ptr [eax], 0xFFFFFFFF
fst dword ptr [esp+0x34], st
fstp dword ptr [esp+0x38], st
lea eax, ptr [esp+0x34]
fld st, dword ptr [esp+0x20]
push eax
fstp dword ptr [esp+0x40], st
push ebx
fld st, dword ptr [esp+0x2C]
sub esp, 0x1C
fst dword ptr [esp+0x18], st
movzx ecx, di
fst dword ptr [esp+0x14], st
mov eax, esp
fstp dword ptr [esp+0x10], st
mov dword ptr [eax], 0x1
fld st, dword ptr [esp+0x4C]
fstp dword ptr [esp+0xC], st
fld st, dword ptr [esp+0x50]
fstp dword ptr [esp+0x8], st
fld st, dword ptr [esp+0x54]
fstp dword ptr [esp+0x4], st
push ecx
push 0x1
call 0x5C2A70
mov byte ptr [esp+0x5C], al
mov edx, dword ptr [esp+0x5C]
push edx
push esi
call LuaParam::PushBool
add esp, 0x48
pop edi
pop esi
mov eax, 0x1
pop ebx
add esp, 0x20
ret
if not PlayerIsInAreaObject(shared.gGoKart, 1, GOKART_KEEP_RADIUS, 0) and not VehicleIsInTrigger(shared.gGoKart, TRIGGER._WM_GOKARTCREATE) then
if not VehicleIsInTrigger(car.id, car.trigger) then
if VehicleIsInTrigger(bike, trigger) then
if VehicleIsInTrigger(gHattrickCar, TRIGGER._2_S02_HATTRICKNIS) then
while not VehicleIsInTrigger(gCopCar1, TRIGGER._2_S02_COP_CAR1_STOP) do
while not VehicleIsInTrigger(gCopCar2, TRIGGER._2_S02_COP_CAR2_STOP) do
while not VehicleIsInTrigger(gHattrickCar, TRIGGER._2_S02_CARINDRIVEWAY) do
while not VehicleIsInTrigger(gHattrickCar, TRIGGER._2_S02_INTRO_FAILURE) do
while not VehicleIsInTrigger(gHattrickCar, TRIGGER._2_S02CARSPEEDUP) do
while not VehicleIsInTrigger(gMsPhillipsCar, TRIGGER._3_S11_PHILLIPS_CAR_STOP) do
push ebx
mov ebx, dword ptr [esp+0x8]
push esi
mov esi, dword ptr [0xC0F5F4]
push edi
push 0x0
push ebx
call LuaParam::GetInt
mov edx, dword ptr [esi+0x4]
mov ecx, eax
sar ecx, 0x8
add esp, 0x8
cmp byte ptr [ecx+edx*1], al
jnz 0xC
mov edi, dword ptr [esi+0xC]
imul edi, ecx
add edi, dword ptr [esi]
jmp 0x4
xor edi, edi
push 0x1
push ebx
call LuaParam::GetInt
movzx ecx, ax
add esp, 0x8
test ecx, ecx
jnl 0x6
xor eax, eax
jmp 0x1D
mov edx, dword ptr [0x20C7C48]
mov eax, dword ptr [edx+0x4]
test byte ptr [ecx+eax*1], 0x80
jz 0x6
xor eax, eax
jmp 0xA
mov eax, dword ptr [edx+0xC]
imul eax, ecx
add eax, dword ptr [edx]
mov edx, dword ptr [edi+0x14]
test edx, edx
jz 0x7
add edx, 0x30
jmp 0x5
lea edx, ptr [edi+0x4]
push edx
mov ecx, eax
call 0x6D6FA0
push eax
push ebx
call LuaParam::PushBool
add esp, 0x8
pop edi
pop esi
mov eax, 0x1
pop ebx
ret
elseif VehicleIsModel(entry, model) then
if not bZoeRunAway and PlayerIsInTrigger(TRIGGER._5_05_RUNAWAYZOE) and PlayerIsInAnyVehicle() and VehicleIsModel(VehicleFromDriver(gPlayer), 284) then
if PedIsInAnyVehicle(gPlayer) and not VehicleIsModel(VehicleFromDriver(gPlayer), 276) then
if player.bike and not VehicleIsModel(player.bike, 289) and VehicleIsInAreaXYZ(player.bike, px, py, pz, 10, 0) then
if PlayerIsInTrigger(TRIGGER._5_05_LASTPOTTY) and PlayerIsInAnyVehicle() and VehicleIsModel(VehicleFromDriver(gPlayer), 284) then
if VehicleIsModel(carcar, car.model) then
if VehicleIsModel(vehicle, 289) or VehicleIsModel(vehicle, 284) then
if VehicleIsValid(carcar) and VehicleIsModel(carcar, car.model) then
push esi
mov esi, dword ptr [0xC0F5F4]
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetInt
mov edx, dword ptr [esi+0x4]
mov ecx, eax
sar ecx, 0x8
add esp, 0x8
cmp byte ptr [ecx+edx*1], al
jnz 0xC
mov eax, dword ptr [esi+0xC]
imul eax, ecx
add eax, dword ptr [esi]
jmp 0x4
xor eax, eax
movsx esi, word ptr [eax+0x10E]
push 0x1
push edi
call LuaParam::GetInt
cmp esi, eax
setz al
push eax
push edi
call LuaParam::PushBool
add esp, 0x10
pop edi
mov eax, 0x1
pop esi
ret
elseif intState ~= 2 or VehicleIsValid(idBike) and PedIsInVehicle(idPed, idBike) then
elseif not entry.isPed and VehicleIsValid(entry.id) then
if bike01 and VehicleIsValid(bike01) then
if bike02 and VehicleIsValid(bike02) then
if car and VehicleIsValid(car) then
if car and VehicleIsValid(car.id) then
if F_ObjectIsValid(car) and VehicleIsValid(car) then
if F_ObjectIsValid(vehicle) and VehicleIsValid(vehicle) then
if gAmbientEventTable.tCopCar and VehicleIsValid(gAmbientEventTable.tCopCar) then
if gCopChaseCar and VehicleIsValid(gCopChaseCar) then
if gPeanutBike and VehicleIsValid(gPeanutBike) then
if idBike and VehicleIsValid(idBike) then
if idBike ~= nil and VehicleIsValid(idBike) and not PedIsInVehicle(gPlayer, idBike) then
if idCar ~= nil and VehicleIsValid(idCar) then
if idDOBike ~= nil and VehicleIsValid(idDOBike) then
if item.retrieved == false and VehicleIsValid(item.bike) and PedIsInVehicle(gPlayer, item.bike) == true then
if item.retrieved == false and VehicleIsValid(item.bike) then
if not VehicleIsValid(car) then
if PedIsValid(item.ped) == true and VehicleIsValid(item.bike) == true and PedIsInVehicle(item.ped, item.bike) == false and item.pedOffBike == false then
if player.car and VehicleIsValid(player.car) then
if racer.car and VehicleIsValid(racer.car) then
if vehicle and VehicleIsValid(vehicle) then
if vehicle ~= nil and VehicleIsValid(vehicle) and vehicle ~= -1 then
if VehicleIsValid(ambBikeID) then
if VehicleIsValid(bike) and gPlayersBike ~= bike then
if VehicleIsValid(bike) and not PlayerIsInVehicle(bike) then
if VehicleIsValid(bike) then
if VehicleIsValid(Bike01) then
if VehicleIsValid(car) then
if VehicleIsValid(car.id) then
if VehicleIsValid(carcar) and VehicleIsModel(carcar, car.model) then
if VehicleIsValid(carcar) then
if VehicleIsValid(CopCar) then
if VehicleIsValid(currentBike) then
if VehicleIsValid(entry) then
if VehicleIsValid(gBMXPlayerBike) then
if VehicleIsValid(gPlayerBike) then
if VehicleIsValid(gPlayersBike) then
if VehicleIsValid(gRussellBike) then
if VehicleIsValid(idBike) and not PedIsInVehicle(idPed, idBike) then
if VehicleIsValid(idBike.id) then
if VehicleIsValid(idMower) then
if VehicleIsValid(item.bike) then
if VehicleIsValid(peteBike) then
if VehicleIsValid(racer.bike) and PedGetLastVehicle(gPlayer) ~= racer.bike then
if VehicleIsValid(racer.bike) then
if VehicleIsValid(racer.car) and not PedIsInVehicle(racer.id, racer.car) then
if VehicleIsValid(racer.car) and not PedIsOnVehicle(racer.id) then
if VehicleIsValid(racer.car) and not racer.bFinished and RaceHasRacerFinished(racer.id) then
if VehicleIsValid(racer.car) then
if VehicleIsValid(tblGord.bike.id) and gPlayersBike ~= tblGord.bike.id then
if VehicleIsValid(tblGord.bike.id) then
if VehicleIsValid(tblGordWH.bike.id) then
if VehicleIsValid(tblGreaser1WH.bike.id) then
if VehicleIsValid(tblGreaser2WH.bike.id) then
if VehicleIsValid(tblJohnnyWH.bike.id) then
if VehicleIsValid(tblPrep1.bike.id) and gPlayersBike ~= tblPrep1.bike.id then
if VehicleIsValid(tblPrep1WH.bike.id) then
if VehicleIsValid(tblPrep2WH.bike.id) then
if VehicleIsValid(vehicle) then
if VehicleIsValid(vehicleKleptoBike.id) then
if VehicleIsValid(vehicleLolaBike.id) then
if VehicleIsValid(vehiclePlayerBike.id) then
return car and VehicleIsValid(car)
push ebx
mov ebx, dword ptr [esp+0x8]
push 0x0
push ebx
call LuaParam::IsInt
add esp, 0x8
test al, al
jz 0x74
push esi
push edi
push 0x0
push ebx
call LuaParam::GetInt
mov ecx, eax
add esp, 0x8
sar ecx, 0x8
test eax, eax
jl 0x49
mov edi, dword ptr [0xC0F5F4]
cmp ecx, dword ptr [edi+0x8]
jnl 0x3E
mov esi, dword ptr [edi+0x4]
movzx edx, byte ptr [esi+ecx*1]
and eax, 0xFF
cmp edx, eax
setz dl
test dl, dl
jz 0x29
movzx edx, byte ptr [esi+ecx*1]
cmp edx, eax
jnz 0x21
mov eax, dword ptr [edi+0xC]
imul eax, ecx
add eax, dword ptr [edi]
jz 0x17
mov al, 0x1
push eax
push ebx
call LuaParam::PushBool
add esp, 0x8
pop edi
pop esi
mov eax, 0x1
pop ebx
ret
xor al, al
push eax
push ebx
call LuaParam::PushBool
add esp, 0x8
pop edi
pop esi
mov eax, 0x1
pop ebx
ret
VehicleMakeAmbient(ambBikeID)
VehicleMakeAmbient(bike)
VehicleMakeAmbient(bike01)
VehicleMakeAmbient(Bike01)
VehicleMakeAmbient(bike02)
VehicleMakeAmbient(car)
VehicleMakeAmbient(car.id)
VehicleMakeAmbient(car.id, false)
VehicleMakeAmbient(entry.id)
VehicleMakeAmbient(gCopCar, false)
VehicleMakeAmbient(gHattrickCar, false)
VehicleMakeAmbient(gPeanutBike)
VehicleMakeAmbient(gRussellBike)
VehicleMakeAmbient(idBike)
VehicleMakeAmbient(idBike.id)
VehicleMakeAmbient(idDOBike)
VehicleMakeAmbient(idMower, false)
VehicleMakeAmbient(peteBike)
VehicleMakeAmbient(player.car)
VehicleMakeAmbient(ride)
VehicleMakeAmbient(tableBikerBikes[tableMarkForDelete[i]])
VehicleMakeAmbient(tblGord.bike.id)
VehicleMakeAmbient(tblGordWH.bike.id)
VehicleMakeAmbient(tblGreaser1WH.bike.id)
VehicleMakeAmbient(tblGreaser2WH.bike.id)
VehicleMakeAmbient(tblJohnnyWH.bike.id)
VehicleMakeAmbient(tblPrep1.bike.id)
VehicleMakeAmbient(tblPrep1WH.bike.id)
VehicleMakeAmbient(tblPrep2WH.bike.id)
VehicleMakeAmbient(vehicle)
VehicleMakeAmbient(vehicleKleptoBike.id)
VehicleMakeAmbient(vehicleLolaBike.id)
VehicleMakeAmbient(vehiclePlayerBike.id)
sub esp, 0x48
push ebp
mov ebp, dword ptr [esp+0x50]
push esi
push edi
mov edi, dword ptr [0xC0F5F4]
push 0x0
push ebp
call LuaParam::GetInt
mov edx, dword ptr [edi+0x4]
mov ecx, eax
sar ecx, 0x8
add esp, 0x8
cmp byte ptr [ecx+edx*1], al
jnz 0xC
mov esi, dword ptr [edi+0xC]
imul esi, ecx
add esi, dword ptr [edi]
jmp 0x4
xor esi, esi
push ebx
push 0x1
push 0x1
push ebp
call LuaParam::GetBool ; optional
add esp, 0xC
push 0x1
mov ecx, esi
mov bl, al
call 0x4CB230
test bl, bl
pop ebx
jz 0x17A
lea eax, ptr [esp+0xF]
push eax
push esi
mov byte ptr [esp+0x17], 0x0
call 0x41E370
fld st, dword ptr [0x90CE58]
add esp, 0x8
fstp dword ptr [esi+0x2E0], st
cmp dword ptr [esi+0x46C], 0x0
mov byte ptr [esi+0x2DA], 0x1
mov byte ptr [esi+0x2E4], 0x14
jnz 0x140
mov ecx, dword ptr [esi+0x2A8]
push ecx
lea edx, ptr [esp+0x40]
push edx
mov ecx, 0xBF6228
call 0x442270
mov eax, dword ptr [esi+0x2AC]
push eax
lea ecx, ptr [esp+0x4C]
push ecx
mov ecx, 0xBF6228
call 0x442270
mov eax, dword ptr [esi+0x14]
test eax, eax
jz 0x7
add eax, 0x30
jmp 0x5
lea eax, ptr [esi+0x4]
mov edx, dword ptr [eax]
mov dword ptr [esp+0x24], edx
mov ecx, dword ptr [eax+0x4]
mov dword ptr [esp+0x28], ecx
mov edx, dword ptr [eax+0x8]
lea eax, ptr [esp+0x3C]
push eax
lea ecx, ptr [esp+0x4C]
mov dword ptr [esp+0x30], edx
push ecx
lea edx, ptr [esp+0x20]
push edx
call 0x414B70
fldz
fstp dword ptr [esp+0x2C], st
add esp, 0xC
fld st, dword ptr [esp+0x1C]
lea ecx, ptr [esp+0x18]
fld st, dword ptr [esp+0x18]
fmul st(0), st
fld st, st(1)
fmulp st(2), st
faddp st(1), st
fstp dword ptr [esp+0x10], st
fld st, dword ptr [esp+0x10]
fabs
fstp dword ptr [esp+0x10], st
fld st, dword ptr [esp+0x10]
fstp dword ptr [esp+0x14], st
call 0x414E10
lea eax, ptr [esp+0x3C]
fstp st(0), st
push eax
lea ecx, ptr [esp+0x28]
push ecx
lea edx, ptr [esp+0x38]
push edx
call 0x414B70
fld st, dword ptr [esp+0x3C]
fmul st, dword ptr [esp+0x24]
add esp, 0xC
fld st, dword ptr [esp+0x1C]
fmul st, dword ptr [esp+0x34]
faddp st(1), st
fld st, dword ptr [esp+0x38]
fmul st, dword ptr [esp+0x20]
faddp st(1), st
fstp dword ptr [esp+0x10], st
fld st, dword ptr [esp+0x10]
fstp dword ptr [esp+0x10], st
fld st, dword ptr [esp+0x14]
call 0x85C500
fstp dword ptr [esp+0x14], st
fld st, dword ptr [esp+0x14]
fdivr st, dword ptr [esp+0x10]
fstp dword ptr [esp+0x14], st
fldz
fld st, dword ptr [esp+0x14]
fcom st, st(1)
fnstsw ax
test ah, 0x5
jp 0xA
fstp st(0), st
fst dword ptr [esp+0x10], st
jmp 0x17
fld1
fcom st, st(1)
fnstsw ax
test ah, 0x5
jp 0x6
fstp st(1), st
jmp 0x4
fstp st(0), st
fstp dword ptr [esp+0x10], st
push 0x0
sub esp, 0x8
fstp dword ptr [esp+0x4], st
fld st, dword ptr [esp+0x1C]
fstp dword ptr [esp], st
push esi
call 0x41FF70
add esp, 0x10
push 0x0
push ebp
call LuaParam::GetInt
add esp, 0x8
push eax
mov ecx, 0xD02850
call 0x5DB940
mov ecx, eax
call 0x5D9A00
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x48
ret
VehicleModelNotNeededAmbient(car)
VehicleModelNotNeededAmbient(ride)
VehicleModelNotNeededAmbient(vehicle)
mov eax, dword ptr [esp+0x4]
push esi
push 0x0
push eax
call LuaParam::GetInt
mov edx, dword ptr [0xC0F5F4]
mov esi, dword ptr [edx+0x4]
movzx eax, ax
mov ecx, eax
add esp, 0x8
sar ecx, 0x8
cmp byte ptr [ecx+esi*1], al
pop esi
jnz 0x1C
mov eax, dword ptr [edx+0xC]
imul eax, ecx
add eax, dword ptr [edx]
jz 0x12
movsx ecx, word ptr [eax+0x10E]
push ecx
call 0x52FE40
add esp, 0x4
xor eax, eax
ret
VehicleMoveToXYZ(car.id, car.x, car.y, car.z)
VehicleMoveToXYZ(car.id, dx, dy, dz, 12)
VehicleMoveToXYZ(car.id, x, y, z)
VehicleMoveToXYZ(carID[0], 345, 297, 7)
VehicleMoveToXYZ(carID[0], 365, 140, 5)
VehicleMoveToXYZ(carID[0], AIEndPos[Path][1], AIEndPos[Path][2], AIEndPos[Path][3], 0.6)
VehicleMoveToXYZ(carID[1], 328, 165, 5)
VehicleMoveToXYZ(carID[2], 328, 165, 5)
VehicleMoveToXYZ(carID[3], 365, 140, 5)
VehicleMoveToXYZ(shared.veh1, 326.7, -108.2, 6.2, 10)
sub esp, 0x10
push ebx
mov ebx, dword ptr [esp+0x18]
push esi
push edi
mov edi, dword ptr [0xC0F5F4]
push 0x0
push ebx
call LuaParam::GetInt
mov edx, dword ptr [edi+0x4]
mov ecx, eax
sar ecx, 0x8
add esp, 0x8
cmp byte ptr [ecx+edx*1], al
jnz 0xC
mov esi, dword ptr [edi+0xC]
imul esi, ecx
add esi, dword ptr [edi]
jmp 0x4
xor esi, esi
push 0x0
lea ecx, ptr [esi+0x1C4]
call 0x4CE560
fld st, dword ptr [0x9055A0]
push ebx
fstp dword ptr [esp+0x10], st
mov edi, eax
call 0x73AEA0
add esp, 0x4
cmp eax, 0x5
jnz 0x1B
fld st, dword ptr [0x9055A0]
push ecx
fstp dword ptr [esp], st
push 0x4
push ebx
call LuaParam::GetFloat ; optional
fstp dword ptr [esp+0x18], st
add esp, 0xC
push 0x1
lea eax, ptr [esp+0x14]
push ebx
push eax
call LuaParam::GetVector
add esp, 0xC
cmp dword ptr [esi+0x46C], 0x1
jnz 0x51
push 0x34
call 0x5EEAA0
add esp, 0x4
test eax, eax
jz 0x25
fld st, dword ptr [0x911E30]
push 0x0
push 0x0
sub esp, 0x8
fst dword ptr [esp+0x4], st
lea ecx, ptr [esp+0x20]
fstp dword ptr [esp], st
push ecx
push edi
mov ecx, eax
call 0x4705B0
jmp 0x4
xor eax, eax
fld st, dword ptr [esp+0xC]
push eax
lea ecx, ptr [edi+0x5F0]
fstp dword ptr [eax+0x10], st
call 0x471390
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret
VehicleOverrideAmbient(0, 0, 0, 0)
VehicleOverrideAmbient(1, 1, 0, 0)
VehicleOverrideAmbient(2, 1, 1, 0)
VehicleOverrideAmbient(2, 2, 0, 0)
VehicleOverrideAmbient(3, 0, 2, 1)
VehicleOverrideAmbient(3, 1, 1, 1)
VehicleOverrideAmbient(3, 2, 0, 1)
sub esp, 0x10
push esi
push edi
mov edi, dword ptr [esp+0x1C]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x8
mov dword ptr [esp+0x8], eax
mov esi, 0x1
lea ecx, ptr [ecx]
push 0x0
push esi
push edi
call LuaParam::GetInt ; optional
mov dword ptr [esp+esi*4+0x14], eax
add esi, 0x1
add esp, 0xC
cmp esi, 0x4
jl 0xFFFFFFEA
mov ecx, dword ptr [0xBCD080]
lea eax, ptr [esp+0x8]
push eax
call 0x41A820
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret
-- never used
push ecx
mov eax, dword ptr [esp+0x8]
push 0x0
push eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x8], st
fld st, dword ptr [esp+0x8]
mov ecx, dword ptr [0xBCD080]
fstp dword ptr [ecx+0x1D68], st
xor eax, eax
add esp, 0xC
ret
if F_ObjectIsValid(model) and not VehicleRequestModel(model) then
if model ~= nil and model ~= -1 and not VehicleRequestModel(model, true) then
VehicleRequestModel(273)
VehicleRequestModel(i)
VehicleRequestModel(model)
VehicleRequestModel(racer.bike_model)
while not (PedRequestModel(83) and VehicleRequestModel(295)) do
while not (VehicleRequestModel(carTable[car_loc].model) and PedRequestModel(64)) do
while not VehicleRequestModel(273) do
while not VehicleRequestModel(283) do
while not VehicleRequestModel(284) do
while not VehicleRequestModel(286) do
while not VehicleRequestModel(289) do
while not VehicleRequestModel(293) do
while not VehicleRequestModel(295) do
while not VehicleRequestModel(bike, true) and POIIsValid(POIInfo) do
while not VehicleRequestModel(bike, true) do
while not VehicleRequestModel(bikeTable[currentBikeIndex]) do
while not VehicleRequestModel(car) do
while not VehicleRequestModel(car.model) do
while not VehicleRequestModel(carc, true) and POIIsValid(POIInfo) do
while not VehicleRequestModel(player.bike.model) do
while not VehicleRequestModel(racer.bike_model) do
while not VehicleRequestModel(racers[i].bike_model) do
push ebx
mov ebx, dword ptr [esp+0x8]
push esi
push 0x0
push ebx
call LuaParam::GetInt
push 0x0
push 0x1
push ebx
movzx esi, ax
call LuaParam::GetBool ; optional
add esp, 0x14
test al, al
jnz 0x29
push edi
movzx edi, si
push 0x2
push edi
call 0x533030
add esp, 0x8
push edi
mov ecx, 0xD02850
movzx esi, al
call 0x5DB940
mov ecx, eax
call 0x5D9450
pop edi
jmp 0x13
movzx eax, si
push 0x1
push eax
call 0x533030
add esp, 0x8
movzx esi, al
test esi, esi
setnz cl
push ecx
push ebx
call LuaParam::PushBool
add esp, 0x8
pop esi
mov eax, 0x1
pop ebx
ret
VehicleRevertToDefaultAmbient()
mov ecx, dword ptr [0xBCD080]
call 0x41A860
xor eax, eax
ret
VehicleSetAccelerationMult(CopCar, 0.3)
VehicleSetAccelerationMult(CopCar, 2)
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetInt
mov edx, dword ptr [0xC0F5F4]
mov esi, dword ptr [edx+0x4]
mov ecx, eax
sar ecx, 0x8
add esp, 0x8
cmp byte ptr [ecx+esi*1], al
jnz 0xC
mov esi, dword ptr [edx+0xC]
imul esi, ecx
add esi, dword ptr [edx]
jmp 0x4
xor esi, esi
push 0x1
push edi
call LuaParam::GetFloat
fstp dword ptr [esi+0x364], st
add esp, 0x8
pop edi
xor eax, eax
pop esi
ret
VehicleSetColor(gHattrickCar, 96, 96)
push ebx
push ebp
mov ebp, dword ptr [esp+0xC]
push esi
push edi
mov edi, dword ptr [0xC0F5F4]
push 0x0
push ebp
call LuaParam::GetInt
mov edx, dword ptr [edi+0x4]
mov ecx, eax
sar ecx, 0x8
add esp, 0x8
cmp byte ptr [ecx+edx*1], al
jnz 0xC
mov esi, dword ptr [edi+0xC]
imul esi, ecx
add esi, dword ptr [edi]
jmp 0x4
xor esi, esi
push 0x1
push ebp
call LuaParam::GetInt
push 0x2
push ebp
mov bl, al
call LuaParam::GetInt
add esp, 0x10
pop edi
mov byte ptr [esi+0x334], bl
mov byte ptr [esi+0x335], al
pop esi
pop ebp
xor eax, eax
pop ebx
ret
-- never used
push ebx
mov ebx, dword ptr [esp+0x8]
push esi
push edi
mov edi, dword ptr [0xC0F5F4]
push 0x0
push ebx
call LuaParam::GetInt
mov edx, dword ptr [edi+0x4]
mov ecx, eax
sar ecx, 0x8
add esp, 0x8
cmp byte ptr [ecx+edx*1], al
jnz 0xC
mov esi, dword ptr [edi+0xC]
imul esi, ecx
add esi, dword ptr [edi]
jmp 0x4
xor esi, esi
push 0x1
push ebx
call LuaParam::GetInt
push 0x2
push ebx
mov byte ptr [esi+0x334], al
call LuaParam::GetInt
add esp, 0x10
pop edi
mov byte ptr [esi+0x335], al
pop esi
xor eax, eax
pop ebx
ret
LT_GroupFunction(defaultCarGroup, VehicleSetCruiseSpeed, "id", "speed")
LT_GroupFunction(groupName, VehicleSetCruiseSpeed, "id", "speed")
VehicleSetCruiseSpeed(car, 0)
VehicleSetCruiseSpeed(car, 25)
VehicleSetCruiseSpeed(car.id, car.speed)
VehicleSetCruiseSpeed(carID[0], 5)
VehicleSetCruiseSpeed(carID[1], 5)
VehicleSetCruiseSpeed(carID[2], 5)
VehicleSetCruiseSpeed(carID[3], 5)
VehicleSetCruiseSpeed(gCopCar1, 0)
VehicleSetCruiseSpeed(gCopCar1, 35)
VehicleSetCruiseSpeed(gCopCar2, 0)
VehicleSetCruiseSpeed(gCopCar2, 35)
VehicleSetCruiseSpeed(gCopChaseCar, 12)
VehicleSetCruiseSpeed(gCopChaseCar, 17)
VehicleSetCruiseSpeed(gCopChaseCar, 22)
VehicleSetCruiseSpeed(gCopChaseCar, 25)
VehicleSetCruiseSpeed(gCopChaseCar, 8)
VehicleSetCruiseSpeed(gCopChaseCar, 9)
VehicleSetCruiseSpeed(gHattrickCar, 1.5)
VehicleSetCruiseSpeed(gHattrickCar, 12)
VehicleSetCruiseSpeed(gHattrickCar, 2)
VehicleSetCruiseSpeed(gHattrickCar, 2.5)
VehicleSetCruiseSpeed(gHattrickCar, 4.5)
VehicleSetCruiseSpeed(gHattrickCar, gStartSpeed)
VehicleSetCruiseSpeed(gMsPhillipsCar, 0)
VehicleSetCruiseSpeed(gMsPhillipsCar, 15)
VehicleSetCruiseSpeed(gMsPhillipsCar, 6)
VehicleSetCruiseSpeed(gVehicle, 2)
VehicleSetCruiseSpeed(Mower, 3)
VehicleSetCruiseSpeed(truck, 7)
push ebx
mov ebx, dword ptr [esp+0x8]
push esi
push edi
mov edi, dword ptr [0xC0F5F4]
push 0x0
push ebx
call LuaParam::GetInt
mov edx, dword ptr [edi+0x4]
mov ecx, eax
sar ecx, 0x8
add esp, 0x8
cmp byte ptr [ecx+edx*1], al
jnz 0xC
mov esi, dword ptr [edi+0xC]
imul esi, ecx
add esi, dword ptr [edi]
jmp 0x4
xor esi, esi
push 0x1
push ebx
call LuaParam::GetInt
add esp, 0x8
pop edi
mov byte ptr [esi+0x2E4], al
pop esi
xor eax, eax
pop ebx
ret
VehicleSetDrivingMode(car, 0)
VehicleSetDrivingMode(car, 3)
VehicleSetDrivingMode(carID[0], 0)
VehicleSetDrivingMode(carID[1], 0)
VehicleSetDrivingMode(carID[2], 0)
VehicleSetDrivingMode(carID[3], 0)
VehicleSetDrivingMode(gCopChaseCar, 3)
VehicleSetDrivingMode(gHattrickCar, 3)
push ebx
mov ebx, dword ptr [esp+0x8]
push esi
push edi
mov edi, dword ptr [0xC0F5F4]
push 0x0
push ebx
call LuaParam::GetInt
mov edx, dword ptr [edi+0x4]
mov ecx, eax
sar ecx, 0x8
add esp, 0x8
cmp byte ptr [ecx+edx*1], al
jnz 0xC
mov esi, dword ptr [edi+0xC]
imul esi, ecx
add esi, dword ptr [edi]
jmp 0x4
xor esi, esi
push 0x1
push ebx
call LuaParam::GetInt
add esp, 0x8
pop edi
mov byte ptr [esi+0x2D9], al
pop esi
xor eax, eax
pop ebx
ret
VehicleSetEntityFlag(gJV_Bike, 41, true)
push ebx
mov ebx, dword ptr [esp+0x8]
push esi
push edi
mov edi, dword ptr [0xC0F5F4]
push 0x0
push ebx
call LuaParam::GetInt
mov edx, dword ptr [edi+0x4]
mov ecx, eax
sar ecx, 0x8
add esp, 0x8
cmp byte ptr [ecx+edx*1], al
jnz 0xC
mov esi, dword ptr [edi+0xC]
imul esi, ecx
add esi, dword ptr [edi]
jmp 0x4
xor esi, esi
push 0x1
push ebx
call LuaParam::GetInt
push 0x2
push ebx
mov edi, eax
call LuaParam::GetBool
movzx eax, al
add esp, 0x10
mov dword ptr [esi+edi*4+0x1C], eax
pop edi
pop esi
xor eax, eax
pop ebx
ret
VehicleSetMission(gHattrickCar, 11)
VehicleSetMission(gHattrickCar, 22)
push ebx
mov ebx, dword ptr [esp+0x8]
push esi
push edi
mov edi, dword ptr [0xC0F5F4]
push 0x0
push ebx
call LuaParam::GetInt
mov edx, dword ptr [edi+0x4]
mov ecx, eax
sar ecx, 0x8
add esp, 0x8
cmp byte ptr [ecx+edx*1], al
jnz 0xC
mov esi, dword ptr [edi+0xC]
imul esi, ecx
add esi, dword ptr [edi]
jmp 0x4
xor esi, esi
push 0x1
push ebx
call LuaParam::GetInt
add esp, 0x8
pop edi
mov byte ptr [esi+0x2DA], al
pop esi
xor eax, eax
pop ebx
ret
-- never used
push ebx
mov ebx, dword ptr [esp+0x8]
push esi
push edi
mov edi, dword ptr [0xC0F5F4]
push 0x0
push ebx
call LuaParam::GetInt
mov edx, dword ptr [edi+0x4]
mov ecx, eax
sar ecx, 0x8
add esp, 0x8
cmp byte ptr [ecx+edx*1], al
jnz 0xC
mov esi, dword ptr [edi+0xC]
imul esi, ecx
add esi, dword ptr [edi]
jmp 0x4
xor esi, esi
push 0x1
push ebx
call LuaParam::GetBool
shl al, 0x4
xor al, byte ptr [esi+0x33C]
add esp, 0x8
and al, 0x10
xor byte ptr [esi+0x33C], al
pop edi
pop esi
xor eax, eax
pop ebx
ret
VehicleSetOwner(Bike01, gPlayer)
VehicleSetOwner(Bike01, ScenarioPed)
VehicleSetOwner(car, driver)
VehicleSetOwner(currentBike, gPlayer)
VehicleSetOwner(idBike.id, idGord.id)
VehicleSetOwner(idGirlBike, gPlayer)
VehicleSetOwner(peanutBike, tblPeanut.id)
VehicleSetOwner(peanutBike2, tblPeanut.id)
VehicleSetOwner(ped.bike.id, ped.id)
VehicleSetOwner(ride, rider)
VehicleSetOwner(vehicle, curPed)
VehicleSetOwner(vehiclePlayerBike.id, gPlayer)
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetInt
mov edx, dword ptr [0xC0F5F4]
mov esi, dword ptr [edx+0x4]
mov ecx, eax
sar ecx, 0x8
add esp, 0x8
cmp byte ptr [ecx+esi*1], al
jnz 0xC
mov esi, dword ptr [edx+0xC]
imul esi, ecx
add esi, dword ptr [edx]
jmp 0x4
xor esi, esi
push 0x1
push edi
call LuaParam::GetInt
add esp, 0x4
mov ecx, esp
push eax
mov dword ptr [ecx], 0x2
call 0x5C7380
add esp, 0x8
test eax, eax
jz 0xE
push eax
lea ecx, ptr [esi+0x358]
call 0x5D7F10
pop edi
xor eax, eax
pop esi
ret
VehicleSetPosPoint(bike, bikeStoragePoint)
VehicleSetPosPoint(bike, point)
VehicleSetPosPoint(gBMXPlayerBike, POINTLIST._BMXPARKINSIDE, 1)
VehicleSetPosPoint(gCopChaseCar, POINTLIST._3_B_COPCAR_WARP)
VehicleSetPosPoint(gPlayerBike, POINTLIST._PLAYERBIKEFIRSTSTART)
VehicleSetPosPoint(gPlayersBike, POINTLIST._3_02_PLAYERPARK)
VehicleSetPosPoint(gPlayersBike, POINTLIST._3_02_PLAYERPARK, 2)
VehicleSetPosPoint(gPlayersBike, POINTLIST._3_02_WHPLAYERBIKE)
VehicleSetPosPoint(gRussellBike, POINTLIST._2_05_RUSSELLBIKE, 2)
VehicleSetPosPoint(lastBike, player.bike.location)
VehicleSetPosPoint(pBike, point, element)
VehicleSetPosPoint(pBike, POINTLIST._3_S11_PLAYER_AT_ASYLUM2)
VehicleSetPosPoint(pBikeId, POINTLIST._5_07_PSTART, 2)
VehicleSetPosPoint(player.bike, bike_start_pos)
VehicleSetPosPoint(playerBike, POINTLIST._2_G2_MOVEBIKE)
VehicleSetPosPoint(tblPlayer.bike, POINTLIST._3_G3_ECS_PLAYERENDBIKE)
VehicleSetPosPoint(vehicleBikeAlgie.id, vehicleBikeAlgie.spawn, vehicleBikeAlgie.element)
VehicleSetPosPoint(vehicleBikeChad.id, vehicleBikeChad.spawn, vehicleBikeChad.element)
VehicleSetPosPoint(vehicleEnemyBike01.id, POINTLIST._3_04_SETUPCHASERS, 1)
VehicleSetPosPoint(vehicleEnemyBike02.id, POINTLIST._3_04_SETUPCHASERS, 2)
sub esp, 0x68
push ebx
push ebp
push esi
push edi
mov edi, dword ptr [esp+0x7C]
push edi
xor bl, bl
call 0x73AEA0
add esp, 0x4
cmp eax, 0x3
jl 0x13
push 0x2
push edi
mov bl, 0x1
call LuaParam::GetInt
add esp, 0x8
mov dword ptr [esp+0x10], eax
push 0x0
push edi
call LuaParam::GetInt
push 0x1
push edi
mov dword ptr [esp+0x24], eax
call LuaParam::GetInt
movzx eax, ax
movzx eax, ax
add esp, 0x10
push eax
mov ecx, 0xBC5E7C
call 0x6D6450
mov ebp, eax
mov ecx, ebp
call 0x6D59B0
test bl, bl
mov esi, eax
jz 0x27
mov ebx, dword ptr [esp+0x10]
mov edi, 0x1
cmp ebx, edi
jle 0x16
mov ecx, ebp
call 0x6D59F0
test eax, eax
jz 0xB
add edi, 0x1
cmp edi, ebx
mov esi, eax
jl 0xFFFFFFEE
mov edi, dword ptr [esp+0x7C]
mov edx, dword ptr [esi+0x4]
fld st, dword ptr [esi+0x1C]
mov ecx, dword ptr [esi]
fstp dword ptr [esp+0x10], st
mov eax, dword ptr [esi+0x8]
mov dword ptr [esp+0x1C], edx
mov edx, dword ptr [esp+0x14]
mov dword ptr [esp+0x20], eax
mov dword ptr [esp+0x18], ecx
mov ecx, dword ptr [0xC0F5F4]
mov esi, dword ptr [ecx+0x4]
mov eax, edx
sar eax, 0x8
cmp byte ptr [eax+esi*1], dl
jnz 0xC
mov esi, dword ptr [ecx+0xC]
imul esi, eax
add esi, dword ptr [ecx]
jmp 0x4
xor esi, esi
mov eax, dword ptr [esi+0x14]
fld st, dword ptr [esp+0x20]
test eax, eax
fld st, dword ptr [esp+0x1C]
fld st, dword ptr [esp+0x18]
jz 0x32
fst dword ptr [esp+0x24], st
mov ecx, dword ptr [esp+0x24]
fxch st, st(1)
mov dword ptr [eax+0x30], ecx
fst dword ptr [esp+0x28], st
mov edx, dword ptr [esp+0x28]
fxch st, st(2)
mov dword ptr [eax+0x34], edx
mov edx, dword ptr [esp+0x30]
fst dword ptr [esp+0x2C], st
mov ecx, dword ptr [esp+0x2C]
fxch st, st(2)
mov dword ptr [eax+0x38], ecx
fxch st, st(1)
mov dword ptr [eax+0x3C], edx
fstp dword ptr [esi+0x4], st
fstp dword ptr [esi+0x8], st
fstp dword ptr [esi+0xC], st
mov ecx, dword ptr [esi+0x14]
test ecx, ecx
fld st, dword ptr [esp+0x10]
fsub st, qword ptr [0x900AB8]
fmul st, qword ptr [0x900160]
fdiv st, qword ptr [0x900158]
fstp dword ptr [esp+0x10], st
jz 0xF
fld st, dword ptr [esp+0x10]
push ecx
fstp dword ptr [esp], st
call 0x412C20
fld st, dword ptr [esp+0x10]
push edi
fstp dword ptr [esi+0x10], st
call 0x73AEA0
add esp, 0x4
cmp eax, 0x4
jl 0x11
push 0x3
push edi
call LuaParam::GetBool
add esp, 0x8
test al, al
jz 0x55
mov eax, dword ptr [esi+0x14]
test eax, eax
jz 0x19
fld st, dword ptr [eax+0x10]
fchs
fld st, dword ptr [eax+0x14]
call 0x85CF1A
fstp dword ptr [esp+0x14], st
fld st, dword ptr [esp+0x14]
jmp 0x5
fld st, dword ptr [esi+0x10]
mov eax, dword ptr [esi]
fstp dword ptr [esp+0x10], st
fld st, dword ptr [esp+0x10]
mov edx, dword ptr [eax+0xD4]
sub esp, 0x10
fstp dword ptr [esp+0xC], st
mov ecx, esi
fld st, dword ptr [esp+0x30]
fstp dword ptr [esp+0x8], st
fld st, dword ptr [esp+0x2C]
fstp dword ptr [esp+0x4], st
fld st, dword ptr [esp+0x28]
fstp dword ptr [esp], st
call 0x5D77F7
push edi
call 0x73AEA0
add esp, 0x4
cmp eax, 0x5
jl 0x5A
push 0x4
push edi
call LuaParam::GetFloat
fstp dword ptr [esp+0x1C], st
add esp, 0x8
cmp dword ptr [esi+0x46C], 0x1
jnz 0x42
fld st, dword ptr [esp+0x14]
push ecx
fmul st, qword ptr [0x900160]
lea ecx, ptr [esp+0x38]
mov dword ptr [esp+0x78], 0x0
fdiv st, qword ptr [0x900158]
fstp dword ptr [esp+0x18], st
fld st, dword ptr [esp+0x18]
fstp dword ptr [esp], st
call 0x412CC0
lea eax, ptr [esp+0x34]
push eax
mov ecx, esi
call 0x8B6120
mov ecx, eax
call 0x412800
pop edi
pop esi
pop ebp
mov eax, 0x1
pop ebx
add esp, 0x68
ret
CLIENT
Like VehicleSetPosXYZ, but avoids extra processing related to setting a position.
VehicleSetPosXYZ(player.bike, Xp + dX, Yp - dY, z, Xs + dX, Ys - dY, z, true)
VehicleSetPosXYZ(racers[i].bike, Xp + dX, Yp - dY, z, Xs + dX, Ys - dY, z, true)
sub esp, 0x5C
push ebx
mov ebx, dword ptr [0xC0F5F4]
push esi
mov esi, dword ptr [esp+0x68]
push edi
push 0x0
push esi
call LuaParam::GetInt
mov edx, dword ptr [ebx+0x4]
mov ecx, eax
sar ecx, 0x8
add esp, 0x8
cmp byte ptr [ecx+edx*1], al
jnz 0xC
mov edi, dword ptr [ebx+0xC]
imul edi, ecx
add edi, dword ptr [ebx]
jmp 0x4
xor edi, edi
push esi
mov bl, 0x1
call 0x73AEA0
add esp, 0x4
cmp eax, 0x7
jle 0xF
push 0x7
push esi
call LuaParam::GetBool
add esp, 0x8
mov bl, al
push 0x1
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x14], st
push 0x2
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x20], st
push 0x3
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x2C], st
fld st, dword ptr [esp+0x24]
push 0x4
fstp dword ptr [esp+0x34], st
push esi
fld st, dword ptr [esp+0x30]
fstp dword ptr [esp+0x3C], st
fld st, dword ptr [esp+0x34]
fstp dword ptr [esp+0x40], st
call LuaParam::GetFloat
push 0x5
fstp dword ptr [esp+0x38], st
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x38], st
push 0x6
push esi
call LuaParam::GetFloat
fstp dword ptr [esp+0x3C], st
fld st, dword ptr [esp+0x44]
lea eax, ptr [esp+0x48]
fstp dword ptr [esp+0x60], st
push eax
fld st, dword ptr [esp+0x44]
lea ecx, ptr [esp+0x64]
fstp dword ptr [esp+0x68], st
push ecx
fld st, dword ptr [esp+0x44]
lea edx, ptr [esp+0x90]
push edx
fstp dword ptr [esp+0x74], st
call 0x414B70
push eax
call 0x433310
fstp dword ptr [esp+0x54], st
add esp, 0x40
test bl, bl
mov ecx, edi
jz 0x37
fld st, dword ptr [esp+0x14]
mov eax, dword ptr [edi]
mov edx, dword ptr [eax+0xD4]
sub esp, 0x10
fstp dword ptr [esp+0xC], st
fld st, dword ptr [esp+0x30]
fstp dword ptr [esp+0x8], st
fld st, dword ptr [esp+0x2C]
fstp dword ptr [esp+0x4], st
fld st, dword ptr [esp+0x28]
fstp dword ptr [esp], st
call 0x5D62DF
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x5C
ret
call 0x8B6120
mov esi, eax
lea eax, ptr [esp+0x18]
push eax
lea ecx, ptr [esp+0x34]
push ecx
lea edx, ptr [esp+0x2C]
push edx
call 0x414B70
add esp, 0xC
lea ecx, ptr [esp+0x24]
call 0x414E10
fstp st(0), st
fld st, dword ptr [esp+0x24]
push 0x9E33DC
fstp dword ptr [esp+0x5C], st
mov eax, dword ptr [esp+0x5C]
fld st, dword ptr [esp+0x2C]
fstp dword ptr [esp+0x60], st
mov ecx, dword ptr [esp+0x60]
fld st, dword ptr [esp+0x30]
mov dword ptr [esi+0x10], eax
mov eax, dword ptr [esp+0x68]
fstp dword ptr [esp+0x64], st
mov edx, dword ptr [esp+0x64]
mov dword ptr [esi+0x14], ecx
mov dword ptr [esi+0x18], edx
lea ecx, ptr [esp+0x28]
push ecx
lea edx, ptr [esp+0x60]
push edx
mov dword ptr [esi+0x1C], eax
call 0x414730
push 0x9E33DC
lea eax, ptr [esp+0x34]
push eax
lea ecx, ptr [esp+0x60]
push ecx
call 0x414730
push 0x9E33DC
lea edx, ptr [esp+0x40]
push edx
lea eax, ptr [esp+0x60]
push eax
call 0x414730
lea ecx, ptr [esp+0x54]
add esp, 0x24
cmp ecx, esi
jz 0x16
fld st, dword ptr [esp+0x40]
fstp dword ptr [esi], st
fld st, dword ptr [esp+0x50]
fstp dword ptr [esi+0x4], st
fld st, dword ptr [esp+0x60]
fstp dword ptr [esi+0x8], st
fld st, dword ptr [0x9E33DC]
pop edi
fstp dword ptr [esp+0x54], st
mov edx, dword ptr [esp+0x54]
fld st, dword ptr [0x9E33E0]
fstp dword ptr [esp+0x58], st
mov eax, dword ptr [esp+0x58]
fld st, dword ptr [0x9E33E4]
mov dword ptr [esi+0x20], edx
mov edx, dword ptr [esp+0x60]
fstp dword ptr [esp+0x5C], st
mov ecx, dword ptr [esp+0x5C]
mov dword ptr [esi+0x24], eax
mov dword ptr [esi+0x28], ecx
mov dword ptr [esi+0x2C], edx
pop esi
xor eax, eax
pop ebx
add esp, 0x5C
ret
CLIENT
Sets a vehicle's rotation in radians. May take an optional rotation order.
VehicleSetStatic(playerBike, true)
VehicleSetStatic(tblJohnnyWH.bike.id, true)
push ebx
mov ebx, dword ptr [esp+0x8]
push esi
push edi
push 0x0
push ebx
call LuaParam::GetInt
mov edx, dword ptr [0xC0F5F4]
mov esi, dword ptr [edx+0x4]
mov ecx, eax
sar ecx, 0x8
add esp, 0x8
cmp byte ptr [ecx+esi*1], al
jnz 0xC
mov esi, dword ptr [edx+0xC]
imul esi, ecx
add esi, dword ptr [edx]
jmp 0x4
xor esi, esi
mov edi, dword ptr [esi]
push 0x1
push ebx
call LuaParam::GetBool
add esp, 0x8
mov ecx, esi
push eax
mov eax, dword ptr [edi+0x1C]
call 0x5D7236
mov ecx, dword ptr [0xBCC564]
mov dword ptr [esi+0x124], ecx
mov edx, dword ptr [0xBCC568]
mov dword ptr [esi+0x128], edx
mov eax, dword ptr [0xBCC56C]
mov dword ptr [esi+0x12C], eax
mov ecx, dword ptr [0xBCC564]
mov dword ptr [esi+0x130], ecx
mov edx, dword ptr [0xBCC568]
mov dword ptr [esi+0x134], edx
mov eax, dword ptr [0xBCC56C]
pop edi
mov dword ptr [esi+0x138], eax
pop esi
mov eax, 0x1
pop ebx
ret
VehicleSetStatus(gHattrickCar, 4)
push ebx
mov ebx, dword ptr [esp+0x8]
push esi
push edi
mov edi, dword ptr [0xC0F5F4]
push 0x0
push ebx
call LuaParam::GetInt
mov edx, dword ptr [edi+0x4]
mov ecx, eax
sar ecx, 0x8
add esp, 0x8
cmp byte ptr [ecx+edx*1], al
jnz 0xC
mov esi, dword ptr [edi+0xC]
imul esi, ecx
add esi, dword ptr [edi]
jmp 0x4
xor esi, esi
push 0x1
push ebx
call LuaParam::GetInt
mov edx, dword ptr [esi]
add esp, 0x8
push eax
mov eax, dword ptr [edx+0x18]
mov ecx, esi
call 0x5D6DF6
pop edi
pop esi
xor eax, eax
pop ebx
ret
VehicleSirenAllwaysOn(gBike1, true)
VehicleSirenAllwaysOn(gBike2, true)
VehicleSirenAllwaysOn(gCopCar1, true)
VehicleSirenAllwaysOn(gCopCar2, true)
VehicleSirenAllwaysOn(idCopCar, true)
push ebx
mov ebx, dword ptr [esp+0x8]
push esi
push edi
mov edi, dword ptr [0xC0F5F4]
push 0x0
push ebx
call LuaParam::GetInt
mov edx, dword ptr [edi+0x4]
mov ecx, eax
sar ecx, 0x8
add esp, 0x8
cmp byte ptr [ecx+edx*1], al
jnz 0xC
mov esi, dword ptr [edi+0xC]
imul esi, ecx
add esi, dword ptr [edi]
jmp 0x4
xor esi, esi
mov ecx, esi
call 0x4CB1F0
test al, al
jz 0x1E
push 0x1
push ebx
call LuaParam::GetBool
shl al, 0x5
xor al, byte ptr [esi+0x33C]
add esp, 0x8
and al, 0x20
xor byte ptr [esi+0x33C], al
pop edi
pop esi
xor eax, eax
pop ebx
ret
VehicleStop(car)
VehicleStop(car.id)
VehicleStop(gCopCar1)
VehicleStop(gCopCar2)
VehicleStop(gCopChaseCar)
VehicleStop(gHattrickCar)
VehicleStop(gMsPhillipsCar)
VehicleStop(gRussellBike)
VehicleStop(idBike.id)
VehicleStop(mower)
VehicleStop(pBike)
VehicleStop(racer.car)
VehicleStop(shared.gGoKart)
VehicleStop(tblPlayer.bike)
VehicleStop(vehicle)
mov eax, dword ptr [esp+0x4]
push esi
mov esi, dword ptr [0xC0F5F4]
push 0x0
push eax
call LuaParam::GetInt
mov edx, dword ptr [esi+0x4]
mov ecx, eax
sar ecx, 0x8
add esp, 0x8
cmp byte ptr [ecx+edx*1], al
jnz 0x1C
mov eax, dword ptr [esi+0xC]
imul eax, ecx
add eax, dword ptr [esi]
pop esi
mov byte ptr [eax+0x2DA], 0x0
mov byte ptr [eax+0x2DB], 0x0
xor eax, eax
ret
xor eax, eax
mov byte ptr [eax+0x2DA], al
mov byte ptr [eax+0x2DB], al
pop esi
ret
--print("MissionTesting: Wait for mission", MissionGetCurrentName(), "to clean up and end")
bSkip = Wait(50)
Wait(0)
Wait(1)
Wait(10)
Wait(100)
Wait(1000)
Wait(10000)
Wait(10000000)
Wait(1001)
Wait(1005)
Wait(101)
Wait(1010)
Wait(1050)
Wait(1095)
Wait(11)
Wait(1100)
Wait(1200)
Wait(12000)
Wait(125)
Wait(1250)
Wait(1300)
Wait(1350)
Wait(1400)
Wait(1462)
Wait(150)
Wait(1500)
Wait(15000)
Wait(1505)
Wait(1538)
Wait(1550)
Wait(1600)
Wait(1750)
Wait(1800)
Wait(1838)
Wait(2)
Wait(20)
Wait(200)
Wait(2000)
Wait(20000)
Wait(2100)
Wait(2300)
Wait(250)
Wait(2500)
Wait(25000)
Wait(251)
Wait(2738)
Wait(2900)
Wait(30)
Wait(300)
Wait(3000)
Wait(30000)
Wait(3100)
Wait(32)
Wait(3200)
Wait(33)
Wait(350)
Wait(3500)
Wait(3538)
Wait(4)
Wait(40)
Wait(400)
Wait(4000)
Wait(4100)
Wait(4300)
Wait(450)
Wait(4500)
Wait(4750)
Wait(5)
Wait(50)
Wait(500)
Wait(5000 + math.random(30) * 100)
Wait(5000 + math.random(3000))
Wait(5000)
Wait(50000)
Wait(500000)
Wait(5000000)
Wait(50000000)
Wait(501)
Wait(505)
Wait(5100)
Wait(550)
Wait(5500)
Wait(600)
Wait(6000 + math.random(4000))
Wait(6000)
Wait(60000)
Wait(601)
Wait(6500)
Wait(700)
Wait(7000)
Wait(720)
Wait(7238)
Wait(750)
Wait(7500)
Wait(7508)
Wait(80)
Wait(800)
Wait(8000)
Wait(850)
Wait(900)
Wait(9000)
Wait(FADE_IN_TIME + 1)
Wait(FADE_IN_TIME)
Wait(FADE_OUT_TIME + 1)
Wait(FADE_OUT_TIME + 10)
Wait(FADE_OUT_TIME + 100)
Wait(FADE_OUT_TIME + 1000)
Wait(FADE_OUT_TIME + 110)
Wait(FADE_OUT_TIME + 500)
Wait(FADE_OUT_TIME)
Wait(fadeInTime + 1)
Wait(fadeOutTime + 1)
Wait(gBonfireStartTime)
Wait(gSheetDropDelay)
Wait(math.random(nSpeechLow, nSpeechHigh) * 1000)
Wait(minSkipDelay)
Wait(MusicTecherIntroTime[nCurrentClass][2])
Wait(nDelay)
Wait(race.head_start)
Wait(race.racer_delay)
Wait(tblEvent.reinforceDelay)
Wait(TIME_KID_WITH_SANTA / 3)
Wait(TIME_KID_WITH_SANTA)
Wait(wait_random)
Wait(waitTime)
push esi
push edi
mov edi, dword ptr [esp+0xC]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x8
mov ecx, 0xD02850
mov esi, eax
call 0x5DB940
mov ecx, eax
call 0x5D8B90
cmp dword ptr [eax+0x1C], 0xFFFFFFFF
jz 0xD
mov ecx, dword ptr [0xC1A9B4]
add ecx, esi
mov dword ptr [eax+0x1C], ecx
push 0x0
push edi
call 0x73FEF0
add esp, 0x8
pop edi
pop esi
ret
SHARED
Acts similar to the normal Wait function, yielding the current thread for the amount of milliseconds given.
If 0 is given, the thread will be able to run again as soon as another script update happens. 99% of the time, this means your code will run once per frame.
function WaitAreaDATLoad()
while not shared.gAreaDataLoaded do
Wait(0)
end
end
if not WaitInterruptible(500, GameOver) then
function WaitInterruptible(intMilliseconds, F_InterruptCondition)
--assert(intMilliseconds ~= nil, "SGlFunc.lua: WaitSkippable -- milliseconds param cannot be nil!")
--assert(0 < intMilliseconds, "SGlFunc.lua: WaitSkippable -- milliseconds param must be >= 0!")
local EndTime = GetTimer() + intMilliseconds
while EndTime > GetTimer() do
if F_InterruptCondition ~= nil and F_InterruptCondition() then
return true
end
Wait(0)
end
return false
end
--assert(0 < intMilliseconds, "SGlFunc.lua: WaitSkippable -- milliseconds param must be >= 0!")
--assert(intMilliseconds ~= nil, "SGlFunc.lua: WaitSkippable -- milliseconds param cannot be nil!")
bSkip = WaitSkippable((tblEntry.time + 1) * 1000)
bSkip = WaitSkippable(1)
if WaitSkippable(1) then
if WaitSkippable(250) then
if WaitSkippable(500) then
skip = WaitSkippable(1)
WaitSkippable(1)
WaitSkippable(1000)
WaitSkippable(1200)
WaitSkippable(1500)
WaitSkippable(1600)
WaitSkippable(1700)
WaitSkippable(2000)
WaitSkippable(250)
WaitSkippable(2500)
WaitSkippable(2800)
WaitSkippable(300)
WaitSkippable(3000)
WaitSkippable(3200)
WaitSkippable(4000)
WaitSkippable(500)
WaitSkippable(5000)
WaitSkippable(5500)
WaitSkippable(750)
WaitSkippable(800)
WaitSkippable(waitTime)
function WaitSkippable(intMilliseconds, F_OnSkip, tblParams)
--assert(intMilliseconds ~= nil, "SGlFunc.lua: WaitSkippable -- milliseconds param cannot be nil!")
--assert(0 < intMilliseconds, "SGlFunc.lua: WaitSkippable -- milliseconds param must be >= 0!")
local EndTime = GetTimer() + intMilliseconds
local WaitOccurred = false
while EndTime > GetTimer() do
if F_IsButtonPressedWithDelayCheck(7, 0) then
if F_OnSkip ~= nil then
F_OnSkip(tblParams)
end
return true
end
Wait(0)
WaitOccurred = true
end
if not WaitOccurred then
Wait(0)
end
return false
end
CLIENT
Returns true if the value for key was just marked for an update in the sync entity's scripted data table. An update means the client should apply the value as the server just updated it.
CLIENT
Returns true if typing is no longer active because of StopTyping or escape being hit.
elseif WeaponEquipped(326) then
if (PlayerIsInTrigger(TRIGGER._3_05_HAMMERWALL01) or PlayerIsInTrigger(TRIGGER._3_05_HAMMERWALL02) or PlayerIsInTrigger(TRIGGER._3_05_HAMMERWALL03) or PlayerIsInTrigger(TRIGGER._3_05_HAMMERWALL03) or PlayerIsInTrigger(TRIGGER._3_05_HAMMERWALL05)) and not WeaponEquipped(324) then
if bGoonWasHit and WeaponEquipped(303) then
if bKeepWeapon and not WeaponEquipped() and F_ObjectIsValid(shared.gWeaponBeforeCut) and shared.gWeaponBeforeCut ~= 437 and shared.gWeaponBeforeCut ~= 363 and (not ClothingIsWearingOutfit("Mascot") or ClothingIsWearingOutfit("Mascot") and not bHadProjectileWeapon) then
if F_SittingInTree() and WeaponEquipped(303) then
if not WeaponEquipped(326) then
if pedID == idBurton and WeaponEquipped(303) and not bBurtonSpotted then
if WeaponEquipped(328) or WeaponEquipped(426) then
if WeaponEquipped(MODELENUM._WBRUSH) then
while not WeaponEquipped() do
while not WeaponEquipped(324) do
while not WeaponEquipped(426) do
while WeaponEquipped() do
push esi
mov esi, dword ptr [esp+0x8]
push esi
call 0x73AEA0
add esp, 0x4
cmp eax, 0x1
jnz 0x33
push 0x0
push esi
call LuaParam::GetInt
mov ecx, dword ptr [0xC1AEA8]
mov edx, dword ptr [ecx+0x1D0]
movsx ecx, word ptr [edx+0x10E]
cmp ecx, eax
setz dl
push edx
push esi
call LuaParam::PushBool
add esp, 0x10
mov eax, 0x1
pop esi
ret
mov eax, dword ptr [0xC1AEA8]
mov ecx, dword ptr [eax+0x1D0]
cmp word ptr [ecx+0x10E], 0xFFFF
setnz dl
push edx
push esi
call LuaParam::PushBool
add esp, 0x8
mov eax, 0x1
pop esi
ret
if PedIsHit(idDarby, 2, 1000) and WeaponGetType(PedGetLastHitWeapon(idDarby)) == 0 then
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push 0x0
push esi
call LuaParam::GetInt
push eax
call 0x51B450
mov cl, byte ptr [eax+0x69]
add esp, 0xC
test cl, cl
jz 0x3A
cmp byte ptr [eax+0x68], 0x0
jz 0x19
mov eax, 0x1
push eax
push esi
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
pop esi
pop ecx
ret
test cl, cl
jz 0x19
mov eax, 0x2
push eax
push esi
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
pop esi
pop ecx
ret
cmp byte ptr [eax+0x68], 0x0
jz 0x16
xor eax, eax
push eax
push esi
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
pop esi
pop ecx
ret
mov eax, dword ptr [esp+0x4]
push eax
push esi
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
pop esi
pop ecx
ret
elseif not WeaponRequestModel(model) then
if model ~= nil and model ~= -1 and not WeaponRequestModel(model, true) then
WeaponRequestModel(300)
WeaponRequestModel(301)
WeaponRequestModel(302)
WeaponRequestModel(303)
WeaponRequestModel(304)
WeaponRequestModel(305)
WeaponRequestModel(306)
WeaponRequestModel(307)
WeaponRequestModel(308)
WeaponRequestModel(309)
WeaponRequestModel(310)
WeaponRequestModel(311)
WeaponRequestModel(312)
WeaponRequestModel(316)
WeaponRequestModel(318)
WeaponRequestModel(320)
WeaponRequestModel(321)
WeaponRequestModel(322)
WeaponRequestModel(323)
WeaponRequestModel(324)
WeaponRequestModel(326)
WeaponRequestModel(327)
WeaponRequestModel(328)
WeaponRequestModel(329)
WeaponRequestModel(331)
WeaponRequestModel(335)
WeaponRequestModel(339)
WeaponRequestModel(341)
WeaponRequestModel(343)
WeaponRequestModel(346)
WeaponRequestModel(349)
WeaponRequestModel(351)
WeaponRequestModel(353)
WeaponRequestModel(357)
WeaponRequestModel(361)
WeaponRequestModel(362)
WeaponRequestModel(363)
WeaponRequestModel(365)
WeaponRequestModel(366)
WeaponRequestModel(367)
WeaponRequestModel(368)
WeaponRequestModel(369)
WeaponRequestModel(372)
WeaponRequestModel(375)
WeaponRequestModel(378)
WeaponRequestModel(393)
WeaponRequestModel(394)
WeaponRequestModel(395)
WeaponRequestModel(397)
WeaponRequestModel(399)
WeaponRequestModel(400)
WeaponRequestModel(405)
WeaponRequestModel(406)
WeaponRequestModel(407)
WeaponRequestModel(408)
WeaponRequestModel(411)
WeaponRequestModel(418)
WeaponRequestModel(426)
WeaponRequestModel(430)
WeaponRequestModel(432)
WeaponRequestModel(433)
WeaponRequestModel(437)
WeaponRequestModel(439)
WeaponRequestModel(440)
WeaponRequestModel(443)
WeaponRequestModel(444)
WeaponRequestModel(478)
WeaponRequestModel(480)
WeaponRequestModel(483)
WeaponRequestModel(488)
WeaponRequestModel(502)
WeaponRequestModel(517)
WeaponRequestModel(528)
WeaponRequestModel(MODELENUM._W_CRUTCH)
WeaponRequestModel(MODELENUM._WBRUSH)
WeaponRequestModel(racer.weapon)
while not (WeaponRequestModel(303) and WeaponRequestModel(303)) do
while not WeaponRequestModel(312) do
while not WeaponRequestModel(326) do
while not WeaponRequestModel(329) do
while not WeaponRequestModel(331) do
while not WeaponRequestModel(348) do
while not WeaponRequestModel(359) do
while not WeaponRequestModel(372) do
while not WeaponRequestModel(377, true) and POIIsValid(POIInfo) do
while not WeaponRequestModel(378) do
while not WeaponRequestModel(381) do
while not WeaponRequestModel(381, true) and POIIsValid(POIInfo) do
while not WeaponRequestModel(385) do
while not WeaponRequestModel(397) do
while not WeaponRequestModel(411) do
while not WeaponRequestModel(417) do
while not WeaponRequestModel(WChoice, true) do
push ecx
push esi
push edi
mov edi, dword ptr [esp+0x10]
push 0x0
push edi
call LuaParam::GetInt
push 0x0
push 0x1
push edi
mov esi, eax
call LuaParam::GetBool ; optional
add esp, 0x14
cmp esi, dword ptr [0xA136B0]
mov byte ptr [esp+0x8], 0x0
jl 0x4E
cmp esi, dword ptr [0xA136B4]
jnle 0x46
test al, al
jnz 0x33
push 0x2
push esi
call 0x4D9790
add esp, 0x8
mov ecx, 0xD02850
mov byte ptr [esp+0x8], al
call 0x5DB960
test eax, eax
jz 0x25
push esi
mov ecx, 0xD02850
call 0x5DB940
mov ecx, eax
call 0x5D9450
jmp 0x11
push 0x1
push esi
call 0x4D9790
add esp, 0x8
mov byte ptr [esp+0x8], al
mov eax, dword ptr [esp+0x8]
push eax
push edi
call LuaParam::PushBool
add esp, 0x8
pop edi
mov eax, 0x1
pop esi
pop ecx
ret
WeaponSetRangeMultiplier(0, 328, 20)
WeaponSetRangeMultiplier(gPlayer, 328, 1)
WeaponSetRangeMultiplier(gPlayer, 328, 2)
WeaponSetRangeMultiplier(gPlayer, 328, 4)
WeaponSetRangeMultiplier(gPlayer, 426, 1)
WeaponSetRangeMultiplier(gPlayer, 426, 4)
push ecx
push ebx
push esi
push edi
mov edi, dword ptr [esp+0x14]
push 0x0
push edi
call LuaParam::GetInt
add esp, 0x4
mov edx, eax
neg edx
sbb edx, edx
mov ecx, esp
add edx, 0x3
push eax
mov dword ptr [ecx], edx
call 0x5C7380
mov esi, eax
add esp, 0x8
test esi, esi
jz 0x31
push 0x1
push edi
call LuaParam::GetInt
push 0x2
push edi
mov ebx, eax
call LuaParam::GetFloat
fstp dword ptr [esp+0x1C], st
mov esi, dword ptr [esi+0x1C8]
fld st, dword ptr [esp+0x1C]
fstp dword ptr [esi+0x88], st
add esp, 0x10
mov dword ptr [esi+0x8C], ebx
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
WeatherForceSnow(false)
WeatherForceSnow(true)
mov eax, dword ptr [esp+0x4]
push 0x0
push eax
call LuaParam::GetBool
mov byte ptr [0xCE754E], al
add esp, 0x8
xor eax, eax
ret
elseif RainFlag == true and WeatherGet() ~= 2 and WeatherGet() ~= 5 then
if RainFlag == false and (WeatherGet() == 2 or WeatherGet() == 5) and ChapterGet() ~= 3 then
if WeatherGet() == 2 or WeatherGet() == 5 then
local weather = WeatherGet()
local weathercheck = WeatherGet()
movsx eax, word ptr [0xCE756C]
mov ecx, dword ptr [esp+0x4]
push eax
push ecx
call LuaParam::PushInt
add esp, 0x8
mov eax, 0x1
ret
CLIENT
Returns the amount of progress in the current weather transition, in the range [0.0, 1.0].
WeatherRelease()
mov word ptr [0xCE7578], 0xFFFF
mov byte ptr [0xCE754F], 0x0
xor eax, eax
ret
WeatherSet(0)
WeatherSet(1)
WeatherSet(2)
WeatherSet(2, true)
WeatherSet(3)
WeatherSet(4)
WeatherSet(5)
WeatherSet(weather)
push ecx
push esi
mov esi, dword ptr [esp+0xC]
push esi
mov byte ptr [esp+0x8], 0x0
call 0x73AEA0
add esp, 0x4
cmp eax, 0x2
jnz 0x11
push 0x1
push esi
call LuaParam::GetBool
add esp, 0x8
mov byte ptr [esp+0x4], al
mov eax, dword ptr [esp+0x4]
push eax
push 0x0
push esi
call LuaParam::GetInt
add esp, 0x8
push eax
call 0x5360E0
add esp, 0x8
xor eax, eax
pop esi
pop ecx
ret
CLIENT
Sets the weather types for the current weather transition. May also take an optional amount of transition progress.
SHARED
Writes to the file. Will fail if CanWriteFiles wouldn't have returned true.
A standard Lua 5.0 function documented on lua.org.
if YearbookIsFull() and not MiniObjectiveGetIsComplete(14) then
sub esp, 0x8
push ebx
push ebp
push esi
push edi
push 0x14
mov ecx, 0xC1AEA8
call 0x4466F0
push 0x15
mov ecx, 0xC1AEA8
mov ebp, eax
call 0x4466F0
push 0x16
mov ecx, 0xC1AEA8
mov dword ptr [esp+0x14], eax
call 0x4466F0
xor esi, esi
xor edi, edi
xor ebx, ebx
mov dword ptr [esp+0x14], eax
xor edx, edx
lea ecx, ptr [ecx]
cmp edx, 0x20
jnl 0xF
mov eax, 0x1
mov ecx, edx
shl eax, cl
or esi, eax
jmp 0x26
cmp edx, 0x40
jnl 0x10
lea ecx, ptr [edx-0x20]
mov eax, 0x1
shl eax, cl
or edi, eax
jmp 0x13
cmp edx, 0x60
jnl 0xE
lea ecx, ptr [edx-0x40]
mov eax, 0x1
shl eax, cl
or ebx, eax
add edx, 0x1
cmp edx, 0x3D
jl 0xFFFFFFC4
cmp ebp, esi
jnz 0x1B
cmp dword ptr [esp+0x10], edi
jnz 0x15
cmp dword ptr [esp+0x14], ebx
jnz 0xF
pop edi
pop esi
pop ebp
mov eax, 0x1
pop ebx
add esp, 0x8
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x8
ret
CLIENT
Zero out input on a controller. Use in both ControllerUpdating and ControllersUpdated events to disable the controller.
A standard Lua 5.0 function without documentation.
A standard Lua 5.0 function used to back the exponentiation operator ^.