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)
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)
def doPrecache(cls): super(HL2Pistol, cls).doPrecache() precacheActor(cls.sgActorDef) precacheSound(cls.sgFirePath) precacheSound(cls.sgEmptyPath) precacheSound(cls.sgReloadPath)
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)
def doPrecache(cls): precacheSound(cls.buttonSoundPath) precacheModel(cls.buttonPath)
def doPrecache(cls): super(WaterCooler, cls).doPrecache() precacheSound(cls.SprayOnlyPath) precacheSound(cls.CoolerAppearPath) precacheModel(cls.SprayPath)
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)
def doPrecache(cls): super(SquirtGag, cls).doPrecache() precacheSound(cls.spraySoundPath)
def doPrecache(cls): super(DistributedGagPickup, cls).doPrecache() precacheSound(cls.PickupSoundPath)
def doPrecache(cls): if cls.ModelPath: precacheModel(cls.ModelPath) if cls.ImpactSoundPath: precacheSound(cls.ImpactSoundPath)
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))
def doPrecache(cls): super(GumballBlaster, cls).doPrecache() precacheSound(cls.FireSoundPath) precacheOther("GumballProjectile", "src.coginvasion.gagsnew.GumballProjectile")
def doPrecache(cls): super(GumballBlaster, cls).doPrecache() precacheSound(cls.FireSoundPath) precacheModel(cls.BallsModelPath)
def doPrecache(cls): super(cls, CogStomper).doPrecache() precacheModel(cls.StomperModelPath) precacheSound(cls.RaiseSoundPath) precacheSound(cls.BigStompSoundPath) precacheSound(cls.SmallStompSoundPath)
def doPrecache(cls): super(Slap, cls).doPrecache() precacheSound(cls.slapFirePath) precacheSound(cls.slapHitPath)
def doPrecache(cls): super(DropGag, cls).doPrecache() precacheSound(cls.fallSoundPath)
def doPrecache(cls): super(WholeCreamPie, cls).doPrecache() precacheSound(cls.ThrowSoundPath)
def doPrecache(cls): super(Fired, cls).doPrecache() precacheModel(GlowMdl) precacheSound(FiredProjectile.ImpactSoundPath) precacheSound(FiredProjectile.FlameEmitSfx) precacheScene(SuitAttacks.getSuitParticle("fire"))
def doPrecache(cls): super(PickPocket, cls).doPrecache() precacheSound(cls.PickSoundPath)
def doPrecache(cls): super(SoundGag, cls).doPrecache() precacheModel(cls.megaphonePath) precacheSound(cls.appearSfxPath) precacheSound(cls.soundSfxPath)