Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Prototype Unknown_Function()
- Prototype IsLocal()
- Prototype.i GetParent()
- Structure CPlayerData
- *Function0.Unknown_Function
- *Function1.Unknown_Function
- *Function2.Unknown_Function
- *Function3.Unknown_Function
- *Function4.Unknown_Function
- *Function5.Unknown_Function
- *Function6.Unknown_Function
- *Function7.Unknown_Function
- *Function8.Unknown_Function
- *IsLocal.IsLocal ; Must check before GetParent, may Or may Not actually check local. But the game called it, so i do too
- *Function10.Unknown_Function
- *Function11.Unknown_Function
- *Function12.Unknown_Function
- *GetParent.GetParent
- *Function14.Unknown_Function
- *Function15.Unknown_Function
- *Function16.Unknown_Function
- *Function17.Unknown_Function
- *Function18.Unknown_Function
- *Function19.Unknown_Function
- *Function20.Unknown_Function
- unknown0.a[28]
- Name.s{28} ; 0020
- unknown1.a[108]
- Team.l ; 00A8
- EndStructure
- Structure CPlayer
- unknown0.a[528]
- *PlayerData.CPlayerData ; 0210
- unknown1.a[188]
- X.f ; 02D0
- Y.f ; 02D4
- Z.f ; 02D8
- EndStructure
- Prototype.i GetPlayerList()
- Structure CEntityManager
- *Function0.Unknown_Function
- *GetPlayerList.GetPlayerList
- *Function2.Unknown_Function
- unknown0.a[176]
- *LocalPlayerData.CPlayerData ; 00B4
- EndStructure
- Structure CGameBase
- unknown0.a[44]
- EntityManager.CEntityManager ; 002C
- EndStructure
- Procedure Main()
- *base.CGameBase = $152AC60 ; Is this the address, or a pointer to it?
- If Not *base
- ProcedureReturn #False
- EndIf
- If Not *base\EntityManager
- ProcedureReturn #False
- EndIf
- If *base\EntityManager\LocalPlayerData
- MessageRequester("", *base\EntityManager\LocalPlayerData\Name)
- EndIf
- Protected *PlayerList.Integer = *base\EntityManager\GetPlayerList()
- Protected *PlayerEnd.Integer = *PlayerList + 4
- Protected *Address
- For *Address = *PlayerList\i To *PlayerEnd\i-SizeOf(Integer) Step SizeOf(Integer)
- *Player.CPlayerData = PeekI(PeekI(*Address)) ; Not sure about that, still haven't wrapped my head around c pointers ^^
- PrintN(*Player\Name)
- Next
- EndProcedure
- Main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement