Esempio n. 1
0
 def doPrecache(cls):
     if cls.anim:
         precacheActor([cls.model, {'chan': cls.anim, 'zero': cls.model}])
     elif cls.model:
         precacheModel(cls.model)
     if cls.hitSfxPath:
         precacheSound(cls.hitSfxPath)
    def doPrecache(cls):
        super(GenericThrowAttack, cls).doPrecache()

        if hasattr(cls, 'ImpactSoundPath') and cls.ImpactSoundPath:
            precacheSound(cls.ImpactSoundPath)

        if hasattr(cls, 'ThrowSoundPath') and cls.ThrowSoundPath:
            precacheSound(cls.ThrowSoundPath)
Esempio n. 3
0
    def doPrecache(cls):
        precacheActor(cls.sgActorDef)

        precacheSound(cls.sgFirePath)
        precacheSound(cls.sgDblFirePath)
        precacheSound(cls.sgPumpPath)
        precacheSound(cls.sgEmptyPath)
        for rl in cls.sgReloadPaths:
            precacheSound(rl)
Esempio n. 4
0
    def doPrecache(cls):
        super(HL2Pistol, cls).doPrecache()

        precacheActor(cls.sgActorDef)

        precacheSound(cls.sgFirePath)
        precacheSound(cls.sgEmptyPath)
        precacheSound(cls.sgReloadPath)
Esempio n. 5
0
def precacheSurfaces():
    for name, surf in Surfaces.items():
        print("Precaching surface", name)

        for bulletImpact in surf.bulletImpacts:
            precacheSound(bulletImpact)

        for impactDecal in surf.impactDecals:
            precacheMaterial(impactDecal)

        for footstep in surf.footsteps:
            precacheSound(footstep)

        for hardImpact in surf.hardImpacts:
            precacheSound(hardImpact)

        for softImpact in surf.softImpacts:
            precacheSound(softImpact)
Esempio n. 6
0
 def doPrecache(cls):
     precacheSound(cls.buttonSoundPath)
     precacheModel(cls.buttonPath)
Esempio n. 7
0
 def doPrecache(cls):
     super(WaterCooler, cls).doPrecache()
     precacheSound(cls.SprayOnlyPath)
     precacheSound(cls.CoolerAppearPath)
     precacheModel(cls.SprayPath)
Esempio n. 8
0
 def doPrecache(cls):
     super(NPC_VP, cls).doPrecache()
     precacheActor(cls.LegsActorDef)
     precacheActor(cls.TorsoActorDef)
     precacheActor(cls.HeadActorDef)
     precacheModel(cls.TreadsModel)
     precacheSound(cls.ThrowGearsSoundPath)
     precacheSound(cls.DoorOpenSoundPath)
     precacheSound(cls.DoorCloseSoundPath)
     precacheSound(cls.StatementSoundPath)
     precacheSound(cls.QuestionSoundPath)
     precacheSound(cls.GruntSoundPath)
     precacheSound(cls.StunSoundPath)
     precacheSound(cls.RaiseSoundPath)
     precacheSound(cls.JumpStartSoundPath)
     precacheSound(cls.JumpEndSoundPath)
     precacheSound(cls.ChirpSoundPath)
Esempio n. 9
0
 def doPrecache(cls):
     super(SquirtGag, cls).doPrecache()
     precacheSound(cls.spraySoundPath)
Esempio n. 10
0
    def doPrecache(cls):
        super(DistributedGagPickup, cls).doPrecache()

        precacheSound(cls.PickupSoundPath)
Esempio n. 11
0
 def doPrecache(cls):
     if cls.ModelPath:
         precacheModel(cls.ModelPath)
     if cls.ImpactSoundPath:
         precacheSound(cls.ImpactSoundPath)
Esempio n. 12
0
 def doPrecache(cls):
     super(FireHose, cls).doPrecache()
     precacheSound(cls.spraySoundPath)
 def doPrecache(cls):
     super(EvilEye, cls).doPrecache()
     precacheSound(cls.EyeSoundPath)
 def doPrecache(cls):
     super(HL2Shotgun, cls).doPrecache()
     
     precacheActor(cls.sgActorDef)
     
     precacheSound(cls.sgFirePath)
     precacheSound(cls.sgDblFirePath)
     precacheSound(cls.sgPumpPath)
     precacheSound(cls.sgEmptyPath)
     for rl in cls.sgReloadPaths:
         precacheSound(rl)
         
     precacheModel(cls.ShellPath)
     for i in xrange(cls.ShellContactSoundRange[0], cls.ShellContactSoundRange[1] + 1):
         precacheSound(cls.ShellContactSoundPath.format(i))
Esempio n. 15
0
    def doPrecache(cls):
        super(GumballBlaster, cls).doPrecache()
        precacheSound(cls.FireSoundPath)

        precacheOther("GumballProjectile",
                      "src.coginvasion.gagsnew.GumballProjectile")
Esempio n. 16
0
 def doPrecache(cls):
     super(GumballBlaster, cls).doPrecache()
     precacheSound(cls.FireSoundPath)
     precacheModel(cls.BallsModelPath)
Esempio n. 17
0
 def doPrecache(cls):
     super(cls, CogStomper).doPrecache()
     precacheModel(cls.StomperModelPath)
     precacheSound(cls.RaiseSoundPath)
     precacheSound(cls.BigStompSoundPath)
     precacheSound(cls.SmallStompSoundPath)
Esempio n. 18
0
    def doPrecache(cls):
        super(Slap, cls).doPrecache()

        precacheSound(cls.slapFirePath)
        precacheSound(cls.slapHitPath)
Esempio n. 19
0
 def doPrecache(cls):
     super(DropGag, cls).doPrecache()
     precacheSound(cls.fallSoundPath)
Esempio n. 20
0
 def doPrecache(cls):
     super(WholeCreamPie, cls).doPrecache()
     precacheSound(cls.ThrowSoundPath)
Esempio n. 21
0
 def doPrecache(cls):
     super(Fired, cls).doPrecache()
     precacheModel(GlowMdl)
     precacheSound(FiredProjectile.ImpactSoundPath)
     precacheSound(FiredProjectile.FlameEmitSfx)
     precacheScene(SuitAttacks.getSuitParticle("fire"))
Esempio n. 22
0
 def doPrecache(cls):
     super(PickPocket, cls).doPrecache()
     precacheSound(cls.PickSoundPath)
Esempio n. 23
0
 def doPrecache(cls):
     super(SoundGag, cls).doPrecache()
     precacheModel(cls.megaphonePath)
     precacheSound(cls.appearSfxPath)
     precacheSound(cls.soundSfxPath)