Paste Code
Paste Blends
Paste Images
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()
  1. class Entity:
  2.     @ClientMethod
  3.     def shoot_sounds(self):
  4.         PlaySound("Shoot")
  5.  
  6.     def shoot(self):
  7.         self.ammo -= 1
  8.         ray = self.handler.world.ray_cast(self.gun_direction)
  9.         self.shoot_sounds()
  10.    
  11.     def update(self):
  12.         if self.inputs.shoot:
  13.             self.shoot()
go to heaven