RR_Raptor65
09-10-2010, 07:59
I'm having a bit of trouble with one of my tanks, it has a 105mm main gun which works perfectly, but it also has a 30mm coaxial cannon. Specifically, the cannon has no effects when fired. Additionally when the shell impacts the ground there is no explosion effect. I have another tank with a 30mm cannon for a main gun which does have a working fire effect, but the shells still won't create an explosion effect on the ground. I can't get the recoil animation to work either.
The 30mm cannons are quite lethal and fire HE rounds, but the only time there is an impact effect is if they hit a man, tank, building or rock.
You can see a picture of the tank with the coaxial 30mm here:
http://i457.photobucket.com/albums/qq291/RR_Raptor65/Four%20Levels%20of%20Support/th_Mars_Render-1.jpg (http://i457.photobucket.com/albums/qq291/RR_Raptor65/Four%20Levels%20of%20Support/Mars_Render-1.jpg)
I edited the Tank.inc in the hopes that it would work, but I can't see why it doesn't want to work.
{"mars tank"
{on spawn
{add_view "flash_cannon_small" "flashbarrel1" "Foresight11"}
}
{on fire "30mm_mars"
{view start "flashbarrel1"}
{view start "flashbarrel1s"}
{spawn "dust_shot_small" "basis"}
{spawn "tank_canon_fire_small" "Foresight11" x}
{ani_play "fire_30mm"}
{delay 0.8
{view pause "flashbarrel1"}
}
{delay 0.2
{view pause "flashbarrel1s"}
}
}
{on "add_movement_sound" overload
{link_sound "move" "vehicle/tracks/bishop" }
{link_sound "engine" "vehicle/engine/bishop" }
{link_sound "engine_end" "vehicle/engine/bishop_end" }
{link_sound "exhaust" "vehicle/engine/bishop_up" }
{link_sound "rotate_turret" "vehicle/turret/churchill_turret" }
}
("burn_by_engine" args 0.3)
}
The 30mm cannons are quite lethal and fire HE rounds, but the only time there is an impact effect is if they hit a man, tank, building or rock.
You can see a picture of the tank with the coaxial 30mm here:
http://i457.photobucket.com/albums/qq291/RR_Raptor65/Four%20Levels%20of%20Support/th_Mars_Render-1.jpg (http://i457.photobucket.com/albums/qq291/RR_Raptor65/Four%20Levels%20of%20Support/Mars_Render-1.jpg)
I edited the Tank.inc in the hopes that it would work, but I can't see why it doesn't want to work.
{"mars tank"
{on spawn
{add_view "flash_cannon_small" "flashbarrel1" "Foresight11"}
}
{on fire "30mm_mars"
{view start "flashbarrel1"}
{view start "flashbarrel1s"}
{spawn "dust_shot_small" "basis"}
{spawn "tank_canon_fire_small" "Foresight11" x}
{ani_play "fire_30mm"}
{delay 0.8
{view pause "flashbarrel1"}
}
{delay 0.2
{view pause "flashbarrel1s"}
}
}
{on "add_movement_sound" overload
{link_sound "move" "vehicle/tracks/bishop" }
{link_sound "engine" "vehicle/engine/bishop" }
{link_sound "engine_end" "vehicle/engine/bishop_end" }
{link_sound "exhaust" "vehicle/engine/bishop_up" }
{link_sound "rotate_turret" "vehicle/turret/churchill_turret" }
}
("burn_by_engine" args 0.3)
}