mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2025-01-09 17:53:50 +00:00
rage emote
This commit is contained in:
parent
ad4eab559f
commit
747bcd898b
4 changed files with 28 additions and 8 deletions
|
@ -262,7 +262,8 @@ EmoteList = ['Wave',
|
|||
'Delighted',
|
||||
'Furious',
|
||||
'Laugh',
|
||||
'Taunt']
|
||||
'Taunt',
|
||||
'Rage']
|
||||
EmoteWhispers = ['%s waves.',
|
||||
'%s is happy.',
|
||||
'%s is sad.',
|
||||
|
@ -288,7 +289,8 @@ EmoteWhispers = ['%s waves.',
|
|||
'%s is delighted.',
|
||||
'%s is furious.',
|
||||
'%s is laughing.',
|
||||
'%s taunts you.']
|
||||
'%s taunts you.',
|
||||
'%s is raging.']
|
||||
EmoteFuncDict = {'Wave': 0,
|
||||
'Happy': 1,
|
||||
'Sad': 2,
|
||||
|
@ -314,7 +316,8 @@ EmoteFuncDict = {'Wave': 0,
|
|||
'Delighted': 22,
|
||||
'Furious': 23,
|
||||
'Laugh': 24,
|
||||
'Taunt': 25}
|
||||
'Taunt': 25,
|
||||
'Rage': 26}
|
||||
SuitBrushOffs = {'f': ["I'm late for a meeting."],
|
||||
'p': ['Push off.'],
|
||||
'ym': ['Yes Man says NO.'],
|
||||
|
|
|
@ -3,7 +3,7 @@ from toontown.toonbase import ToontownGlobals
|
|||
from toontown.toonbase import TTLocalizer
|
||||
from otp.otpbase import OTPLocalizer
|
||||
from direct.interval.IntervalGlobal import *
|
||||
LoyaltyEmoteItems = (20, 21, 22, 23, 24)
|
||||
LoyaltyEmoteItems = (20, 21, 22, 23, 24, 25, 26)
|
||||
|
||||
class CatalogEmoteItem(CatalogItem.CatalogItem):
|
||||
sequenceNumber = 0
|
||||
|
|
|
@ -553,7 +553,9 @@ MonthlySchedule = ((7,
|
|||
CatalogEmoteItem(21, 45),
|
||||
CatalogEmoteItem(22, 60),
|
||||
CatalogEmoteItem(23, 75),
|
||||
CatalogEmoteItem(24, 90))),
|
||||
CatalogEmoteItem(24, 90),
|
||||
CatalogEmoteItem(25, 115),
|
||||
CatalogEmoteItem(26, 130))),
|
||||
(5,
|
||||
26,
|
||||
6,
|
||||
|
|
|
@ -318,7 +318,9 @@ def doLaugh(toon, volume = 1):
|
|||
|
||||
|
||||
def doTaunt(toon, volume=1):
|
||||
sfx = base.loadSfx('phase_4/audio/sfx/avatar_emotion_taunt.ogg')
|
||||
duration = toon.getDuration('angry', 'torso')
|
||||
sfx = None
|
||||
sfx = base.loadSfx('phase_4/audio/sfx/furious_03.ogg')
|
||||
|
||||
track = Sequence(
|
||||
Func(toon.blinkEyes),
|
||||
|
@ -328,6 +330,17 @@ def doTaunt(toon, volume=1):
|
|||
duration = toon.getDuration('taunt')
|
||||
return (track, duration, None)
|
||||
|
||||
def doRage(toon, volume=1):
|
||||
sfx = base.loadSfx('phase_4/audio/sfx/avatar_emotion_taunt.ogg')
|
||||
|
||||
track = Sequence(
|
||||
Func(toon.blinkEyes),
|
||||
Func(toon.play, 'good-putt', fromFrame=12),
|
||||
Func(base.playSfx, sfx, volume=volume, node=toon)
|
||||
)
|
||||
duration = toon.getDuration('rage')
|
||||
return (track, duration, None)
|
||||
|
||||
def returnToLastAnim(toon):
|
||||
if hasattr(toon, 'playingAnim') and toon.playingAnim:
|
||||
toon.loop(toon.playingAnim)
|
||||
|
@ -362,7 +375,8 @@ EmoteFunc = [[doWave, 0],
|
|||
[doDelighted, 0],
|
||||
[doFurious, 0],
|
||||
[doLaugh, 0],
|
||||
[doTaunt, 0]]
|
||||
[doTaunt, 0],
|
||||
[doRage, 0]]
|
||||
|
||||
class TTEmote(Emote.Emote):
|
||||
notify = DirectNotifyGlobal.directNotify.newCategory('TTEmote')
|
||||
|
@ -390,7 +404,8 @@ class TTEmote(Emote.Emote):
|
|||
22,
|
||||
23,
|
||||
24,
|
||||
25]
|
||||
25,
|
||||
26]
|
||||
self.headEmotes = [2,
|
||||
17,
|
||||
18,
|
||||
|
|
Loading…
Reference in a new issue