Advertisement
LordNoobIV

Untitled

May 18th, 2014
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. function MuzzleFlash(args)
  2. if LocalPlayer:GetEquippedWeapon().id == 14 then
  3. ray = Physics:Raycast(LocalPlayer:GetPosition(), Camera:GetAngle() * Vector3.Forward, 0, 2)
  4. ClientParticleSystem.Play( AssetLocation.Game, {
  5. -- Required:
  6. position = Vector3(ray.position.x, (ray.position.y + 1), ray.position.z),
  7. angle = LocalPlayer:GetAngle(),
  8. path = "fx_bulhit_flash_strong_huge_01.psmb",
  9. -- Optional:
  10. timeout = 5.0
  11. } )
  12.  
  13. ClientLight.Play {
  14. -- Required:
  15. position = Vector3(ray.position.x, (ray.position.y + 1), ray.position.z),
  16. angle = LocalPlayer:GetAngle(),
  17. color = Color(255, 125, 0),
  18. -- Optional:
  19. timeout = 0.1,
  20. constant_attenuation = 1.0,
  21. linear_attenuation = 0.1,
  22. quadratic_attenuation = 0.01,
  23. multiplier = 50.0,
  24. radius = 100.0,
  25. fade_in_duration = 0,
  26. fade_out_duration = 0
  27. }
  28. end
  29. end
  30.  
  31. Events:Subscribe("MouseDown", MuzzleFlash)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement