Author Topic: R Can you make this?  (Read 2982 times)

0 Members and 1 Guest are viewing this topic.

Offline [LSR]Soprano

  • Posts: 172
  • Kaf-Kef
    • View Profile
R Can you make this?
« on: May 07, 2011, 07:18:28 am »
<a href="https://www.youtube.com/watch?v=TwDCXVj1_WQ" target="_blank">https://www.youtube.com/watch?v=TwDCXVj1_WQ</a>

it would be funny in IV races.

Offline [MAF]Rac3r

  • Leader
  • Posts: 2,801
  • Well, this is embarrassing.
    • View Profile
Re: R Can you make this?
« Reply #1 on: May 07, 2011, 09:04:24 am »
Looks a lot better than what we had in 2009 for GTAIV, just explosions. Cool idea.

Offline Scorpion.


Offline [MAF]Cromiell

Re: R Can you make this?
« Reply #3 on: May 07, 2011, 09:12:25 am »
I hope it won't be in every IV race. It won't be funny in any way imo. But yeah, nice addition to some of them.

Offline [LSR]Soprano

  • Posts: 172
  • Kaf-Kef
    • View Profile
Re: R Can you make this?
« Reply #4 on: May 07, 2011, 09:15:11 am »
R did you ask these codes?

Code: [Select]
#include <a_samp>

/*------------------------------------
native AddVehicleMissiles(vehicleid,Float:offsetx,Float:offsetz)
native RemoveVehicleMissiles(vehicleid)
native IsVehicleHot(vehicleid)
-------------------------------------*/

#define MISSILE_DETONATE_TIME 500   //milliseconds
#define MISSILE_EXPLODE_TYPE 10
#define MISSILE_EXPLODE_RADIUS 10.0
#define MISSILE_SPEED 40.0
#define MISSILE_FIRE_KEY 1

new VehicleFire[MAX_VEHICLES];
new VehicleBomb[MAX_VEHICLES][2];
new VehicleSmok[MAX_VEHICLES][2];
new Float:VehicleOffsetX[MAX_VEHICLES];
new Float:VehicleOffsetZ[MAX_VEHICLES];

forward VM_OnPlayerKeyStateChange(playerid,newkeys);
forward VM_Explode(vehicleid,mode);
forward VM_OnVehicleFire(vehicleid,slot);

stock AddVehicleMissiles(vehicleid,Float:offsetx,Float:offsetz)
{
   if(!VehicleFire[vehicleid])
   {
      new Float:x,Float:u;
      GetVehiclePos(vehicleid,x,u,u);
      if(x != 0)
      {
         if(!IsValidObject(VehicleBomb[vehicleid][1]))
         {

            VehicleBomb[vehicleid][0] = CreateObject(3790,0.0,0.0,0.0,0,0,0,300.0);
            VehicleBomb[vehicleid][1] = CreateObject(3790,0.0,0.0,0.0,0,0,0,300.0);

            AttachObjectToVehicle(VehicleBomb[vehicleid][0],vehicleid,offsetx,0,offsetz,0,0,270);
            AttachObjectToVehicle(VehicleBomb[vehicleid][1],vehicleid,-offsetx,0,offsetz,0,0,270);

            VehicleOffsetX[vehicleid] = offsetx;
            VehicleOffsetZ[vehicleid] = offsetz;
            return 1;
         }
      }
   }
   return 0;
}

stock RemoveVehicleMissiles(vehicleid)
{
   if(!VehicleFire[vehicleid])
   {
      if(VehicleBomb[IsValidObject(vehicleid][1]))
      {
         if(VehicleBomb[vehicleid][0])
         {
            DestroyObject(VehicleBomb[vehicleid][0]);
            DestroyObject(VehicleBomb[vehicleid][1]);
            return 1;
         }
         return DestroyObject(VehicleBomb[vehicleid][1]),1;
      }
   }
   return 0;
}

stock IsVehicleHot(vehicleid)
{
   if(IsValidObject(VehicleBomb[vehicleid][1]))
      return 1;

   return 0;
}


public VM_OnPlayerKeyStateChange(playerid,newkeys)
{
   if((newkeys & MISSILE_FIRE_KEY) == (MISSILE_FIRE_KEY))
   {
      new id = GetPlayerVehicleID(playerid);
      if(!VehicleFire[id])
      {
         if(id)
         {
            if(IsValidObject(VehicleBomb[id][1]))
            {
               new
               Float:x,
               Float:y,
               Float:z,
               Float:a;


               VehicleFire[id] = 1;

               if(IsValidObject(VehicleBomb[id][0]))
               {
                  DestroyObject(VehicleBomb[id][0]);

                  GetVehiclePos(id,x,y,z);
                  GetVehicleZAngle(id,a);

                  a += 270;
                  z += VehicleOffsetZ[id];

                  x += (VehicleOffsetX[id] * floatsin(-a, degrees));
                  y += (VehicleOffsetX[id] * floatcos(-a, degrees));

                  VehicleBomb[id][0] = CreateObject(3790,x,y,z,0,0,a,300.0);
                  VehicleSmok[id][0] = CreateObject(18731,x,y,z-1.3,0,0,0,300.0);

                  a += 90;

                  x += (30 * floatsin(-a, degrees));
                  y += (30 * floatcos(-a, degrees));

                  MoveObject(VehicleBomb[id][0],x,y,z,MISSILE_SPEED);
                  MoveObject(VehicleSmok[id][0],x,y,z-1.3,MISSILE_SPEED);

                  SetTimerEx("VM_Explode",MISSILE_DETONATE_TIME,0,"dd",id,0);
                  VM_OnVehicleFire(id,0);
                  return 1;
               }
               DestroyObject(VehicleBomb[id][1]);

               GetVehiclePos(id,x,y,z);
               GetVehicleZAngle(id,a);

               a += 90;
               z += VehicleOffsetZ[id];

               x += (VehicleOffsetX[id] * floatsin(-a, degrees));
               y += (VehicleOffsetX[id] * floatcos(-a, degrees));

               VehicleBomb[id][1] = CreateObject(3790,x,y,z,0,0,a+180,300.0);
               VehicleSmok[id][1] = CreateObject(18731,x,y,z-1.3,0,0,0,300.0);

               a += 270;

               x += (30 * floatsin(-a, degrees));
               y += (30 * floatcos(-a, degrees));

               MoveObject(VehicleBomb[id][1],x,y,z,MISSILE_SPEED);
               MoveObject(VehicleSmok[id][1],x,y,z-1.3,MISSILE_SPEED);

               SetTimerEx("VM_Explode",MISSILE_DETONATE_TIME,0,"dd",id,1);
               VM_OnVehicleFire(id,1);
               return 1;
            }
         }
         return 1;
      }
   }
   return 1;
}

public VM_Explode(vehicleid,mode)
{
   if(IsValidObject(VehicleBomb[vehicleid][mode]))
   {
      new
      Float:x,
      Float:y,
      Float:z;

      GetObjectPos(VehicleBomb[vehicleid][mode],x,y,z);
      CreateExplosion(x,y,z,MISSILE_EXPLODE_TYPE,MISSILE_EXPLODE_RADIUS);

      DestroyObject(VehicleBomb[vehicleid][mode]);
      DestroyObject(VehicleSmok[vehicleid][mode]);

      VehicleFire[vehicleid] = 0;
      return 1;
   }
   return 1;
}

public VM_OnVehicleFire(vehicleid,slot)
{
    return 1;
}
« Last Edit: May 07, 2011, 09:19:28 am by [LSR]GReddy »

Offline [MAF]mourad

  • Admin
  • Posts: 1,588
  • Life is a joke, laugh at it.
    • View Profile
  • In-game name: [MAF]Rx7
Re: R Can you make this?
« Reply #5 on: May 07, 2011, 09:49:32 am »
If it hits someone, does that person die straight away?
If so, then its not a good idea.

Offline [FSR]Ush

  • Admin
  • Posts: 13,449
  • Aart
    • View Profile
Re: R Can you make this?
« Reply #6 on: May 07, 2011, 10:16:11 am »
Full hits kill yeah.

Offline [MAF]mourad

  • Admin
  • Posts: 1,588
  • Life is a joke, laugh at it.
    • View Profile
  • In-game name: [MAF]Rx7
Re: R Can you make this?
« Reply #7 on: May 07, 2011, 10:24:43 am »
Hmm :/

Offline [2F2F]Hellmuth

  • Admin
  • Posts: 972
    • View Profile
Re: R Can you make this?
« Reply #8 on: May 07, 2011, 02:39:51 pm »
Should be as before it activates on cp 2-3 so everyone doesn't spawnkill with missiles-

Offline [MAF]PyroFox

  • Leader
  • Posts: 1,424
  • ¯\(°_o)/¯
    • View Profile
Re: R Can you make this?
« Reply #9 on: May 07, 2011, 02:48:51 pm »
yeah good idea,  ^ and maybe make the  explosion much smaller

Offline [2F2F]Hellmuth

  • Admin
  • Posts: 972
    • View Profile
Re: R Can you make this?
« Reply #10 on: May 07, 2011, 02:52:29 pm »
Or we have to 2 IV modes, one default and one with missiles, then its up to racemaker to choose

Offline Witchfynde

  • Posts: 251
    • View Profile
Re: R Can you make this?
« Reply #11 on: May 07, 2011, 07:46:26 pm »
Well, if you can use those rockets only after a few CPs and you only have 2 rockets, I don't see much of a problem. We got something similar in the Mario Kart race mode here with barrels.
Kurrackt grammer, seenteks n cahpeetahleezey-shun art ye mates.

Re: R Can you make this?
« Reply #12 on: October 27, 2011, 08:13:53 pm »
I'd love to see How it would work in Death Race 2008, in the Movie Machinegun Joe has 5 of them on his Car's Roof
Would be cool if in death Race 2008 Expand the Car's selection, like:

Buffalo_____3 Rockets___Nitro 2x
Yosemite___5 Rockets___Nitro 5x + Passenger in Godmode
Hotrings____2 Rockets___Nitro 2x
Comet______2 rockets___Nitro 2x
Sabre______4 Rockets___Nitro 2x

These Extra Benefits would balance the Race
Weps should be activated only on 2nd Lap as in the race
and There would have a 10 secs timer to use the Rockets

If I renember well had:
Dodge ram,Tang fstbck, Cad El dorado,Porsche,300c, we could find few cars to replace them and make it looks like the Movie
but w/e, it's just some random idea I had

The Idea is Great, and would be Lovely if it be added as a Special Feature on Buildmode
Win Streak: 10, ops mistype, 1

Offline Lukas.

  • Posts: 251
    • View Profile
Re: R Can you make this?
« Reply #13 on: December 19, 2011, 07:57:31 pm »
hell yeah, good idea.

Offline MadMax

  • Lazyass, still hanging around AX from time to time
  • Admin
  • Posts: 4,355
  • I'm the road warrior...
    • View Profile
  • In-game name: MadMax[MAF]
Re: R Can you make this?
« Reply #14 on: December 20, 2011, 12:35:08 am »
I'd love to see How it would work in Death Race 2008, in the Movie Machinegun Joe has 5 of them on his Car's Roof
Would be cool if in death Race 2008 Expand the Car's selection, like:

Buffalo_____3 Rockets___Nitro 2x
Yosemite___5 Rockets___Nitro 5x + Passenger in Godmode
Hotrings____2 Rockets___Nitro 2x
Comet______2 rockets___Nitro 2x
Sabre______4 Rockets___Nitro 2x

These Extra Benefits would balance the Race
Weps should be activated only on 2nd Lap as in the race
and There would have a 10 secs timer to use the Rockets

If I renember well had:
Dodge ram,Tang fstbck, Cad El dorado,Porsche,300c, we could find few cars to replace them and make it looks like the Movie
but w/e, it's just some random idea I had

The Idea is Great, and would be Lovely if it be added as a Special Feature on Buildmode

list done by me lot before:

Frankenstein's Monster (Mustang) - Hotring
Machinegun Joe (Dodge Ram) - Yosemite
Pahenko's Buick Riviera - Buccaneer
14K Porsche - Comet
Grim's Chrysler 300C - Elegant
Colt's Jaguar - Windsor(??)
other used:
BMW - Sentinel
Pontiac - Phoenix
2nd Buick - Remington(??)
The Dreadnaught - Tanker + Trailer
« Last Edit: December 20, 2011, 12:38:47 am by MadMax »

PLEASE, IGNORE ALL MY SPELLING MISTAKES AND OTHER TYPOS True racing fans enjoy horsepower in ANY form

Offline Aubrey

  • Posts: 100
  • Jimi is my Hendrix
    • View Profile
Re: R Can you make this?
« Reply #15 on: February 13, 2012, 09:22:01 pm »
This looks nice



Offline [MAF]Jur1z

Re: R Can you make this?
« Reply #16 on: February 13, 2012, 10:26:55 pm »
no please no