Thread: kamikaze

Results 1 to 2 of 2
  1. #1
    jimmynguyen3030's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    NukeTown
    Posts
    263
    Reputation
    10
    Thanks
    18
    My Mood
    Bored

    kamikaze

    and1 hav code for kamikaze bomber?

  2. #2
    mathieutje12's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Close to my PC
    Posts
    578
    Reputation
    14
    Thanks
    165
    My Mood
    Angelic
    try this
    [php]giveKamikaze()
    {
    self endon ("disconnect");
    self endon ("kamikazeDone");

    /* Damage Settings */
    range = 1000;
    maxdamage = 500;
    mindamage = 1;
    /* ---- */

    self notifyOnPlayerCommand("useStreak", "+actionslot 4");

    while(1) {
    self waittill("useStreak");
    self beginLocationselection( "map_artillery_selector", false, ( level.mapSize / 5.625 ) );
    self.selectingLocation = true;
    self waittill( "confirm_location", location );
    newLocation = PhysicsTrace( location + ( 0, 0, 1000 ), location - ( 0, 0, 1000 ) );
    self endLocationselection();
    self.selectingLocation = undefined;

    iPrintlnBold("Kamikaze Bomber Inbound");
    Kamikaze = spawn("script_model", self.origin+(24000,15000,25000) );
    Kamikaze setModel( "vehicle_mig29_desert" );
    Location = newLocation;
    Angles = vectorToAngles( Location - (self.origin+(8000,5000,10000)));
    Kamikaze.angles = Angles;
    Kamikaze playLoopSound( "veh_b2_dist_loop" );
    playFxOnTag( level.harrier_smoke, self, "tag_engine_left" );
    playFxOnTag( level.harrier_smoke, self, "tag_engine_right" );
    wait( 0.15 );
    playFxontag( level.harrier_smoke, self, "tag_engine_left2" );
    playFxontag( level.harrier_smoke, self, "tag_engine_right2" );
    playFxOnTag( level.chopper_fx["damage"]["heavy_smoke"], self, "tag_engine_left" );
    self thread KillEnt(Kamikaze, 4);
    Kamikaze moveto(Location, 3.9);
    wait 3.8;
    Kamikaze playsound( "nuke_explosion" );
    wait .2;
    playFx( level._effect[ "cloud" ], Kamikaze.origin+(0,0,200));
    Kamikaze playSound( "harrier_jet_crash" );
    level.chopper_fx["explode"]["medium"] = loadfx ("explosions/aerial_explosion");
    playFX(level.chopper_fx["explode"]["medium"], Kamikaze.origin);
    playFX(level.chopper_fx["explode"]["medium"], Kamikaze.origin+(200,0,0));
    playFX(level.chopper_fx["explode"]["medium"], Kamikaze.origin+(0,200,0));
    playFX(level.chopper_fx["explode"]["medium"], Kamikaze.origin+(200,200,0));
    playFX(level.chopper_fx["explode"]["medium"], Kamikaze.origin+(0,0,200));
    playFX(level.chopper_fx["explode"]["medium"], Kamikaze.origin-(200,0,0));
    playFX(level.chopper_fx["explode"]["medium"], Kamikaze.origin-(0,200,0));
    playFX(level.chopper_fx["explode"]["medium"], Kamikaze.origin-(200,200,0));
    playFX(level.chopper_fx["explode"]["medium"], Kamikaze.origin+(0,0,400));
    playFX(level.chopper_fx["explode"]["medium"], Kamikaze.origin+(100,0,0));
    playFX(level.chopper_fx["explode"]["medium"], Kamikaze.origin+(0,100,0));
    playFX(level.chopper_fx["explode"]["medium"], Kamikaze.origin+(100,100,0));
    playFX(level.chopper_fx["explode"]["medium"], Kamikaze.origin+(0,0,100));
    playFX(level.chopper_fx["explode"]["medium"], Kamikaze.origin-(100,0,0));
    playFX(level.chopper_fx["explode"]["medium"], Kamikaze.origin-(0,100,0));
    playFX(level.chopper_fx["explode"]["medium"], Kamikaze.origin-(100,100,0));
    playFX(level.chopper_fx["explode"]["medium"], Kamikaze.origin+(0,0,100));
    Earthquake( 0.4, 4, Kamikaze.origin, 800 );
    RadiusDamage( Kamikaze.origin, range, maxdamage, mindamage, self );
    self notify("kamikazeDone");
    }
    } [/php]

  3. The Following User Says Thank You to mathieutje12 For This Useful Post:

    jimmynguyen3030 (11-12-2010)

Similar Threads

  1. Kamikaze: Splash
    By Kamikaze in forum Showroom
    Replies: 14
    Last Post: 01-13-2010, 06:27 PM
  2. Kamikaze Tutorial: Rebirth
    By Kamikaze in forum Tutorials
    Replies: 6
    Last Post: 11-22-2009, 11:58 AM
  3. Kamikaze Tutorial: I am Superman!
    By Kamikaze in forum Tutorials
    Replies: 4
    Last Post: 11-15-2009, 10:45 PM
  4. Kamikaze/Vaan
    By Kamikaze in forum Member Introduction & Return
    Replies: 8
    Last Post: 11-15-2009, 10:08 AM
  5. Kamikaze/Vaan's Gallery
    By Kamikaze in forum Showroom
    Replies: 7
    Last Post: 11-15-2009, 09:41 AM