Пример #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)
Пример #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)
Пример #4
0
    def doPrecache(cls):
        super(HL2Pistol, cls).doPrecache()

        precacheActor(cls.sgActorDef)

        precacheSound(cls.sgFirePath)
        precacheSound(cls.sgEmptyPath)
        precacheSound(cls.sgReloadPath)
Пример #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)
Пример #6
0
 def doPrecache(cls):
     precacheSound(cls.buttonSoundPath)
     precacheModel(cls.buttonPath)
Пример #7
0
 def doPrecache(cls):
     super(WaterCooler, cls).doPrecache()
     precacheSound(cls.SprayOnlyPath)
     precacheSound(cls.CoolerAppearPath)
     precacheModel(cls.SprayPath)
Пример #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)
Пример #9
0
 def doPrecache(cls):
     super(SquirtGag, cls).doPrecache()
     precacheSound(cls.spraySoundPath)
Пример #10
0
    def doPrecache(cls):
        super(DistributedGagPickup, cls).doPrecache()

        precacheSound(cls.PickupSoundPath)
Пример #11
0
 def doPrecache(cls):
     if cls.ModelPath:
         precacheModel(cls.ModelPath)
     if cls.ImpactSoundPath:
         precacheSound(cls.ImpactSoundPath)
Пример #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))
Пример #15
0
    def doPrecache(cls):
        super(GumballBlaster, cls).doPrecache()
        precacheSound(cls.FireSoundPath)

        precacheOther("GumballProjectile",
                      "src.coginvasion.gagsnew.GumballProjectile")
Пример #16
0
 def doPrecache(cls):
     super(GumballBlaster, cls).doPrecache()
     precacheSound(cls.FireSoundPath)
     precacheModel(cls.BallsModelPath)
Пример #17
0
 def doPrecache(cls):
     super(cls, CogStomper).doPrecache()
     precacheModel(cls.StomperModelPath)
     precacheSound(cls.RaiseSoundPath)
     precacheSound(cls.BigStompSoundPath)
     precacheSound(cls.SmallStompSoundPath)
Пример #18
0
    def doPrecache(cls):
        super(Slap, cls).doPrecache()

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