Convert global funcs that accept gentity_t, into methods that accept IEntity
Closed this issue · 3 comments
Admer456 commented
The following functions need to be inside GameWorld:
- SpawnClient
- ClientEndFrame
- ClientEvents
- ClientInactivityTimer
- ClientRespawn
- ClientThink
- ClientTimerActions
- ClientIntermissionThink
- SpectatorThink
- MoveClientToIntermission
- SendPendingPredictableEvents
- FindIntermissionPoint
- TouchTriggers
- ClientUserinfoChanged
- TeleportPlayer
- SelectSpawnPoint
- SelectRandomFurthestSpawnPoint
- P_WorldEffects
- P_DamageFeedback
- G_RunFrame
- G_RunEntity
- G_UpdateCvars
- G_FreeEntity
- G_TempEntity
- G_InitSessionData
- G_ReadSessionData
- BroadcastTeamChange
- CalculateRanks
The following needs to be in IEntity:
- KillBox
- GetName
- GetTarget
- GetOrigin
- SetOrigin
- UseTargets
Admer456 commented
Before SelectSpawnPoint can be implemented, we need to have some info_player_*
s first.
Admer456 commented
Almost there. 👌