|
Other Weapons on Vehicles |
|
MOD
|
|
Written by trigger
|
|
I used my favourite gun for this example - the Rail Gun :rolleyes:
ORIGINAL JEEP GUN - WEAPONS.TBL
$Name: "Jeep Gun"
$V3D Filename: ""
$Flags: ("continuous_fire" "from_eye")
$Flags2: ("undeviating")
$Damage Type: "armor piercing bullet"
$3rd Person Muzzle Flash Glare: "Assault Muzzle Flash"
$1st Person Mesh: "fp_jgun.vcm"
$1st Person FOV: 65
$1st Person offset: <0.192,0.228,0.885>
$1st Person offset SS: <0.292,0.228,0.885>
$1st Person Muzzle Flash Bitmap: "muzzleflash07.tga"
$1st Person Muzzle Flash Radius: .5
+State: "idle" "fp_jgun_idle.mvf"
+Action: "fire" "fp_jgun_fire.mvf" ""
ORIGINAL RAIL GUN - WEAPONS.TBL
$Name: "rail_gun"
$Display Name: XSTR(322, "Rail Driver")
$V3D Filename: ""
$Flags: ("alt_fire" "player_wep" "from_eye")
$Flags2: ("pierces_all" "undeviating" "has_scanner")
$Cycle Position: 11
$Pref Position: 3
$Fine Aim Region Size: 0.65
$Fine Aim Region Size SS: 0.65
$Weapon Type: "heavy"
$Weapon Icon: "ws_railgun.tga"
$Damage Type: "armor piercing bullet"
$3rd Person V3D: "weapon_railrifle.v3d"
$1st Person Mesh: "fp_railgun.vcm"
$1st Person FOV: 70
$1st Person offset: <1.43,.096,0.277>
$1st Person offset SS: <1.53,.096,0.277>
+State: "idle" "fp_railgun_idle.mvf"
+State: "run" "fp_railgun_run.mvf"
+Action: "fire" "fp_railgun_fire.mvf" ""
+Action: "reload" "fp_railgun_reload.mvf" "Rail Reload"
+Action: "idle_1" "fp_railgun_idlecheck.mvf" "Rail Idle Check"
+Action: "idle_2" "fp_railgun_idleturn.mvf" "Rail Idle Turn"
+Action: "draw" "fp_railgun_draw.mvf" "Sniper Draw"
+Action: "holster" "fp_railgun_holster.mvf" "Sniper Holster"
+Action: "jump" "fp_railgun_jump.mvf" ""
Now all I have done so far is take the code from the Rail and used it for the Jeepgun.
IMPORTANT LESSON - TRY THIS FIRST
In your jeep gun code change the following variables;
$1st Person Mesh: "fp_railgun.vcm"
+State: "idle" "fp_railgun_idle.mvf"
+Action: "fire" "fp_railgun_fire.mvf" ""
OK well that looks pretty wierd. It is because we are yet to set these variables;
$1st Person FOV: 70
$1st Person offset: <1.43,.096,0.277>
$1st Person offset SS: <1.53,.096,0.277>
Now I haven't looked too far into it and the first thing you probably notice is the 3rd person mesh is still the jeep gun. I guess you can change it somehow. :unsure: Will look later. ;)
|