Skip to content

Player COG Functions

Function List

SetInvActivated

SetInvActivated(Thing thing, int typeId, int bActivated)

SetInvAvailable

SetInvAvailable(Thing thing, int typeId, int bAvailable)

SetInvDisabled

SetInvDisabled(Thing thing, int typeId, int bDisabled)

IsInvActivated

IsInvActivated(Thing thing, int bin) -> int

IsInvAvailable

IsInvAvailable(Thing thing, int typeId) -> int

SetGoalFlags

SetGoalFlags(Thing thing, int bin, int flags)

ClearGoalFlags

ClearGoalFlags(Thing thing, int bin, int flags)

GetNumPlayers

GetNumPlayers() -> int

GetMaxPlayers

GetMaxPlayers() -> int

GetAbsoluteMaxPlayers

GetAbsoluteMaxPlayers() -> int

GetLocalPlayerThing

GetLocalPlayerThing() -> int

GetPlayerThing

GetPlayerThing(int playerNum) -> int

GetPlayerNum

GetPlayerNum(Thing thing) -> int

PickupBackpack

PickupBackpack(Thing thing, Thing backpack)

CreateBackpack

CreateBackpack(Thing thing) -> int

NthBackpackBin

NthBackpackBin(Thing thing, int itemNum) -> int

NthBackpackValue

NthBackpackValue(Thing thing, int itemId) -> float

numbackpackitems

numbackpackitems(Thing thing) -> int

GetRespawnMask

GetRespawnMask(Thing thing) -> int

SetRespawnMask

SetRespawnMask(Thing thing, int mask)

SyncScores

SyncScores()

GetCurItem

GetCurItem(Thing thing) -> int

JewelFlyingStatus

JewelFlyingStatus(int value, Thing plasma)

StartJewelFlying

StartJewelFlying() -> int

IsAiming

IsAiming(Thing thing) -> int

SetSwimmingInventory

SetSwimmingInventory(Thing thing, int bItemsAvailable)

StartInvisibility

StartInvisibility()

EndInvisibility

EndInvisibility()

IsInvisible

IsInvisible() -> int

ResetInventory

ResetInventory(Thing thing)

MakeMeStop

MakeMeStop() -> int

IsItemFound

IsItemFound(int itemID) -> int

SetWhipElectric

SetWhipElectric(int bElectrict)

PlayerInPor

PlayerInPor(int bInPor)

GetCutsceneMode

GetCutsceneMode() -> int

GetLastWeapon

GetLastWeapon() -> int

MakeMeAPirate

MakeMeAPirate()
Toggles Guybrush easter egg.

IMPStartFiring

IMPStartFiring(int fireType)

IMPEndFiring

IMPEndFiring(int fireType)