rokuL4D2

Here I go again..

Apr 8th, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. function SpawnItemMuerto(origin)
  2. {
  3. entTable <-
  4. {
  5. classname = "weapon_molotov_spawn"
  6. angles = Vector( 0, 0, 0 )
  7. body = 0
  8. solid = 0
  9. disableshadows = 1
  10. count = 1
  11. model = "models/w_models/weapons/w_eq_molotov.mdl"
  12. spawnflags = 1
  13. targetname = "infected_drop"
  14. origin = Vector( 0, 0, 0 )
  15. }
  16. g_ModeScript.CreateSingleSimpleEntityFromTable(entTable);
  17. }
  18.  
  19. ::SpawnItemMuerto <- SpawnItemMuerto;
  20.  
  21. function Muerto()
  22. {
  23. local posfuego = self.GetOrigin() + Vector(0, 0, 24);
  24. local name = self.GetClassname();
  25. if( name == "player")
  26. {
  27. printl("ALSO WORKS");
  28. //DropFire(posfuego);
  29. SpawnItemMuerto(posfuego);
  30. }
  31.  
  32.  
  33. }
  34.  
  35. ::Muerto <- Muerto;
  36.  
  37. function Fuego(x,y,z)
  38. {
  39. local posfuego = self.GetOrigin();
  40. DropFire(posfuego)
  41. }
  42.  
  43. ::Fuego <- Fuego;
Advertisement
Add Comment
Please, Sign In to add comment