class Entity: @ClientMethod def shoot_sounds(self): PlaySound("Shoot")
def shoot(self): self.ammo -= 1 ray = self.handler.world.ray_cast(self.gun_direction) self.shoot_sounds() def update(self): if self.inputs.shoot: self.shoot()
class Entity: @ClientMethod def shoot_sounds(self): PlaySound("Shoot") def shoot(self): self.ammo -= 1 ray = self.handler.world.ray_cast(self.gun_direction) self.shoot_sounds() def update(self): if self.inputs.shoot: self.shoot()
|