This commit is contained in:
albion 2026-07-30 02:47:01 -05:00 committed by GitHub
commit e4b7bffd3a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 2 deletions

View File

@ -1,5 +1,6 @@
from panda3d.core import *
from toontown.toonbase.ToonBaseGlobal import *
from panda3d.otp import NametagGlobals
from .DistributedMinigame import *
from direct.interval.IntervalGlobal import *
from direct.fsm import ClassicFSM, State

View File

@ -138,8 +138,7 @@ class DistributedTwoDGame(DistributedMinigame):
toon.hideName()
toon.startSmooth()
toon.startLookAround()
distCNP = toon.find('**/distAvatarCollNode*')
distCNP.node().setIntoCollideMask(BitMask32.allOff())
toon.stashBodyCollisions()
toonSD = TwoDGameToonSD.TwoDGameToonSD(avId, self)
self.toonSDs[avId] = toonSD
toonSD.enter()
@ -255,6 +254,11 @@ class DistributedTwoDGame(DistributedMinigame):
del self.twoDWalk
self.twoDDrive = None
del self.twoDDrive
for avId in self.remoteAvIdList:
toon = self.getAvatar(avId)
if toon:
toon.unstashBodyCollisions()
return
def exitCleanup(self):