Advertisement
julioCCs

GR's Flames only

Oct 1st, 2012
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 3.96 KB | None | 0 0
  1. Imports System
  2. Imports System.Drawing
  3. Imports System.Windows.Forms
  4. Imports GTA
  5.  
  6. Public Class flamesOnly
  7.     Inherits Script
  8.    
  9.     private bOn as boolean = false
  10.     Private flameH1, flame1, flame2, flame3, flame4 As int32
  11.    
  12.     Public Sub New()
  13.         Me.Interval = 100
  14.     End Sub
  15.    
  16.     Private Sub Flames
  17.         if not bOn then exit sub
  18.        
  19.         Native.Function.Call("STOP_PTFX", flame1)
  20.         Native.Function.Call("STOP_PTFX", flame2)
  21.         Native.Function.Call("STOP_PTFX", flame3)
  22.         Native.Function.Call("STOP_PTFX", flame4)
  23.         Native.Function.Call("STOP_PTFX", flameH1)
  24.        
  25.         'press F6 to start/stop the effect
  26.        
  27.         ' *The original is commented
  28.         ' you should change Y value, change with steps of 0.1 or 0.05 +/-
  29.         '                                                                                                           Z offset
  30.         '                                                                                                           |
  31.         '                                                                                                           |    X  Y offset      Angle
  32.         '                                                                                                           |    |  |              |
  33.         '                                                                                                           \/   \/ \/             \/
  34.         'flame1 = Native.Function.Call(Of int32)("START_PTFX_ON_PED_BONE", "shot_directed_flame", Player.Character, -0.3, 0, 0, 90.0, 0, 105.0, Bone.head, 0.15)
  35.         'flame2 = Native.Function.Call(Of int32)("START_PTFX_ON_PED_BONE", "shot_directed_flame", Player.Character, -0.3, 0, 0, 90.0, 0, 95.0, Bone.head, 0.15)
  36.         'flame3 = Native.Function.Call(Of int32)("START_PTFX_ON_PED_BONE", "shot_directed_flame", Player.Character, -0.3, 0, 0, 90.0, 0, 90.0, Bone.head, 0.15)
  37.         'flame4 = Native.Function.Call(Of int32)("START_PTFX_ON_PED_BONE", "shot_directed_flame", Player.Character, -0.3, 0, 0, 90.0, 0, 85.0, Bone.head, 0.15)
  38.         'flameH1 = Native.Function.Call(Of int32)("START_PTFX_ON_PED_BONE", "ambient_fire_generic", Player.Character, 0.05, 0, 0, 90.0, 0, 90.0, Bone.head, 0.5)
  39.        
  40.         'This is the modified, i think that should fix the position, Y original = 0, modified = -0.08
  41.         flame1 = Native.Function.Call(Of int32)("START_PTFX_ON_PED_BONE", "shot_directed_flame", Player.Character, -0.3, 0, -0.08, 90.0, 0, 105.0, Bone.head, 0.15)
  42.         flame2 = Native.Function.Call(Of int32)("START_PTFX_ON_PED_BONE", "shot_directed_flame", Player.Character, -0.3, 0, -0.08, 90.0, 0, 95.0, Bone.head, 0.15)
  43.         flame3 = Native.Function.Call(Of int32)("START_PTFX_ON_PED_BONE", "shot_directed_flame", Player.Character, -0.3, 0, -0.08, 90.0, 0, 90.0, Bone.head, 0.15)
  44.         flame4 = Native.Function.Call(Of int32)("START_PTFX_ON_PED_BONE", "shot_directed_flame", Player.Character, -0.3, 0, -0.08, 90.0, 0, 85.0, Bone.head, 0.15)
  45.         flameH1 = Native.Function.Call(Of int32)("START_PTFX_ON_PED_BONE", "ambient_fire_generic", Player.Character, 0.05, 0, -0.08, 90.0, 0, 90.0, Bone.head, 0.5)
  46.        
  47.         '* disable the effect each time you will reload the scripts with reloadscripts command
  48.         '** after a lot of tests the flames can disappear, in this case you should restart the game
  49.     End Sub
  50.    
  51.     Private Sub general_tick(ByVal sender As Object, ByVal e As EventArgs) Handles MyBase.Tick
  52.         Flames
  53.     end sub
  54.    
  55.     Private Sub keyDown(ByVal sender As Object, ByVal e As GTA.KeyEventArgs) Handles MyBase.KeyDown
  56.         if e.key = keys.f6 then
  57.             bOn = not bon
  58.            
  59.             if bon then
  60.                 player.character.makeproofto(false, true, false, false, false)
  61.             else               
  62.                 Native.Function.Call("STOP_PTFX", flame1)
  63.                 Native.Function.Call("STOP_PTFX", flame2)
  64.                 Native.Function.Call("STOP_PTFX", flame3)
  65.                 Native.Function.Call("STOP_PTFX", flame4)
  66.                 Native.Function.Call("STOP_PTFX", flameH1)
  67.                
  68.                 wait(500)
  69.                
  70.                 player.character.makeproofto(false, false, false, false, false)
  71.             end if
  72.         end if
  73.     end sub
  74. End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement