Advertisement
Guest User

Untitled

a guest
Jan 4th, 2013
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.75 KB | None | 0 0
  1. {$CLEO .cs}
  2.  
  3. //-------------MAIN------------------
  4. // Fire Shield by ADVDI
  5. // Codes are free. Use as you want :P
  6. //-----------------------------------
  7. // Attention | BUGS
  8. //-----------------
  9. // if you entered a vehicle, the fire still exist. Looks weird especially when you drive a car
  10. //--------------------------------------------------------------------------------------------
  11. thread 'FSHIELD'
  12.  
  13. :FSHIELD_11
  14. wait 0
  15. if
  16. Player.Defined($PLAYER_CHAR)
  17. else_jump @FSHIELD_11
  18. 0ADC: test_cheat "FSHIELD" // type 'fshield' to activate this mod
  19. else_jump @FSHIELD_11
  20. 04C4: store_coords_to 1@ 2@ 3@ from_actor $PLAYER_ACTOR with_offset 0.0 0.0 -1.0
  21. jump @FSHIELD_83
  22.  
  23. :FSHIELD_83
  24. wait 0
  25. if
  26. Actor.SetImmunities($PLAYER_ACTOR, 1, 1, 1, 1, 1)
  27. 020C: create_explosion_with_radius 0 at 1@ 2@ 3@
  28. 0669: 9@ = attach_particle "FLAME" to_actor $PLAYER_ACTOR with_offset 0.0 1.0 -0.75 flag 1
  29. 0669: 10@ = attach_particle "FLAME" to_actor $PLAYER_ACTOR with_offset 0.75 0.75 -0.75 flag 1
  30. 0669: 11@ = attach_particle "FLAME" to_actor $PLAYER_ACTOR with_offset 1.0 0.0 -0.75 flag 1
  31. 0669: 12@ = attach_particle "FLAME" to_actor $PLAYER_ACTOR with_offset 0.75 -0.75 -0.75 flag 1
  32. 0669: 13@ = attach_particle "FLAME" to_actor $PLAYER_ACTOR with_offset 0.0 -1.0 -0.75 flag 1
  33. 0669: 14@ = attach_particle "FLAME" to_actor $PLAYER_ACTOR with_offset -0.75 -0.75 -0.75 flag 1
  34. 0669: 15@ = attach_particle "FLAME" to_actor $PLAYER_ACTOR with_offset -1.0 0.0 -0.75 flag 1
  35. 0669: 16@ = attach_particle "FLAME" to_actor $PLAYER_ACTOR with_offset -0.75 0.75 -0.75 flag 1
  36. 064C: make_particle 9@ visible
  37. 064C: make_particle 10@ visible
  38. 064C: make_particle 11@ visible
  39. 064C: make_particle 12@ visible
  40. 064C: make_particle 13@ visible
  41. 064C: make_particle 14@ visible
  42. 064C: make_particle 15@ visible
  43. 064C: make_particle 16@ visible
  44.  
  45. :FSHIELD_415
  46. wait 0
  47. 04C4: store_coords_to 4@ 5@ 6@ from_actor $PLAYER_ACTOR with_offset 0.0 1.0 -1.0
  48. if
  49. Player.Defined($PLAYER_CHAR)
  50. else_jump @FSHIELD_415
  51. 00E1: player 0 pressed_key 17 // press [fire key] to create an explosion in front of player
  52. else_jump @FSHIELD_415
  53. 020C: create_explosion_with_radius 0 at 4@ 5@ 6@
  54. wait 0
  55. jump @FSHIELD_501
  56.  
  57. :FSHIELD_501
  58. wait 0
  59. 04C4: store_coords_to 1@ 2@ 3@ from_actor $PLAYER_ACTOR with_offset 0.0 0.0 -1.0
  60. if
  61. 0ADC: test_cheat "disable" // type "disable" to deactivate this mod
  62. else_jump @FSHIELD_415
  63. 0650: destroy_particle 9@
  64. 0650: destroy_particle 10@
  65. 0650: destroy_particle 11@
  66. 0650: destroy_particle 12@
  67. 0650: destroy_particle 13@
  68. 0650: destroy_particle 14@
  69. 0650: destroy_particle 15@
  70. 0650: destroy_particle 16@
  71. 020C: create_explosion_with_radius 0 at 1@ 2@ 3@
  72. Actor.SetImmunities($PLAYER_ACTOR, 0, 0, 0, 0, 0)
  73. wait 250
  74. jump @FSHIELD_11
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement