"""
COG INVASION ONLINE
Copyright (c) CIO Team. All rights reserved.

@file BirthdayCake.py
@author Maverick Liberty
@date July 07, 2015

"""

from src.coginvasion.gags.ThrowGag import ThrowGag
from src.coginvasion.gags import GagGlobals

class BirthdayCake(ThrowGag):
    
    name = GagGlobals.BirthdayCake
    model = "phase_5/models/props/birthday-cake-mod.bam"
    anim = "phase_5/models/props/birthday-cake-chan.bam"
    hitSfxPath = GagGlobals.WHOLE_PIE_SPLAT_SFX
    splatColor = GagGlobals.CAKE_SPLAT_COLOR

    def __init__(self):
        ThrowGag.__init__(self)
        self.setHealth(GagGlobals.BDCAKE_HEAL)
        self.setImage('phase_3.5/maps/cake.png')

    def equip(self):
        ThrowGag.equip(self)
        if self.isLocal():
            vmGag = base.localAvatar.getFPSCam().vmGag
            if vmGag:
                # The birthday cake on the viewmodel covers up way too much of the screen.
                # scale it down
                vmGag.setScale(vmGag.getScale() * 0.8)

28189c122a52b677f9647535d2753f14bb68ca74
<mask token>


class BirthdayCake(ThrowGag):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>

    def equip(self):
        ThrowGag.equip(self)
        if self.isLocal():
            vmGag = base.localAvatar.getFPSCam().vmGag
            if vmGag:
                vmGag.setScale(vmGag.getScale() * 0.8)

<mask token>


class BirthdayCake(ThrowGag):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>

    def __init__(self):
        ThrowGag.__init__(self)
        self.setHealth(GagGlobals.BDCAKE_HEAL)
        self.setImage('phase_3.5/maps/cake.png')

    def equip(self):
        ThrowGag.equip(self)
        if self.isLocal():
            vmGag = base.localAvatar.getFPSCam().vmGag
            if vmGag:
                vmGag.setScale(vmGag.getScale() * 0.8)

<mask token>


class BirthdayCake(ThrowGag):
    name = GagGlobals.BirthdayCake
    model = 'phase_5/models/props/birthday-cake-mod.bam'
    anim = 'phase_5/models/props/birthday-cake-chan.bam'
    hitSfxPath = GagGlobals.WHOLE_PIE_SPLAT_SFX
    splatColor = GagGlobals.CAKE_SPLAT_COLOR

    def __init__(self):
        ThrowGag.__init__(self)
        self.setHealth(GagGlobals.BDCAKE_HEAL)
        self.setImage('phase_3.5/maps/cake.png')

    def equip(self):
        ThrowGag.equip(self)
        if self.isLocal():
            vmGag = base.localAvatar.getFPSCam().vmGag
            if vmGag:
                vmGag.setScale(vmGag.getScale() * 0.8)

<mask token>
from src.coginvasion.gags.ThrowGag import ThrowGag
from src.coginvasion.gags import GagGlobals


class BirthdayCake(ThrowGag):
    name = GagGlobals.BirthdayCake
    model = 'phase_5/models/props/birthday-cake-mod.bam'
    anim = 'phase_5/models/props/birthday-cake-chan.bam'
    hitSfxPath = GagGlobals.WHOLE_PIE_SPLAT_SFX
    splatColor = GagGlobals.CAKE_SPLAT_COLOR

    def __init__(self):
        ThrowGag.__init__(self)
        self.setHealth(GagGlobals.BDCAKE_HEAL)
        self.setImage('phase_3.5/maps/cake.png')

    def equip(self):
        ThrowGag.equip(self)
        if self.isLocal():
            vmGag = base.localAvatar.getFPSCam().vmGag
            if vmGag:
                vmGag.setScale(vmGag.getScale() * 0.8)

"""
COG INVASION ONLINE
Copyright (c) CIO Team. All rights reserved.

@file BirthdayCake.py
@author Maverick Liberty
@date July 07, 2015

"""

from src.coginvasion.gags.ThrowGag import ThrowGag
from src.coginvasion.gags import GagGlobals

class BirthdayCake(ThrowGag):
    
    name = GagGlobals.BirthdayCake
    model = "phase_5/models/props/birthday-cake-mod.bam"
    anim = "phase_5/models/props/birthday-cake-chan.bam"
    hitSfxPath = GagGlobals.WHOLE_PIE_SPLAT_SFX
    splatColor = GagGlobals.CAKE_SPLAT_COLOR

    def __init__(self):
        ThrowGag.__init__(self)
        self.setHealth(GagGlobals.BDCAKE_HEAL)
        self.setImage('phase_3.5/maps/cake.png')

    def equip(self):
        ThrowGag.equip(self)
        if self.isLocal():
            vmGag = base.localAvatar.getFPSCam().vmGag
            if vmGag:
                # The birthday cake on the viewmodel covers up way too much of the screen.
                # scale it down
                vmGag.setScale(vmGag.getScale() * 0.8)
