From 028a5735c5f98aa10718c94de07d2f4b4c1fa6b3 Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Wed, 29 Sep 2021 23:17:03 +0100 Subject: Spectation: add dedicated pathway for spectator mode (#5303) * Spectation: add dedicated pathway for spectator mode + Sync player rotation with spectated entity. + Add dedicated infrastructure to cPlayer for handling spectation, instead of misusing entity riding. * Avoid infinite recursion when exiting spectation, fixes #5296 * AttachTo: Change parameter to reference --- tests/Generating/Stubs.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'tests/Generating/Stubs.cpp') diff --git a/tests/Generating/Stubs.cpp b/tests/Generating/Stubs.cpp index 0564d0781..d3669c498 100644 --- a/tests/Generating/Stubs.cpp +++ b/tests/Generating/Stubs.cpp @@ -696,7 +696,7 @@ void cEntity::BroadcastMovementUpdate(class cClientHandle const * a_ClientHandle -void cEntity::AttachTo(class cEntity * a_Entity) +void cEntity::AttachTo(class cEntity & a_Entity) { } @@ -766,6 +766,15 @@ void cEntity::ResetPosition(class Vector3 a_Pos) +void cEntity::OnDetach() +{ + +} + + + + + cPawn::cPawn(enum cEntity::eEntityType, float a_Width, float a_Height) : cEntity(etMonster, Vector3d(), a_Height, a_Width) { -- cgit v1.2.3