Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help Spawning carepackage helicopter --
#1
Alright so I'm recreating Hunted from Ghosts right now for MW2 and I've come across only one issue so far.
I can't seem to figure out how to use 'doFlyby' correctly. I mean yeah it's just some inputs but I want to change the carepackage from giving killstreaks to weapons. As well as giving a limit.
The limit would be something like:
Code:
for( i = 0; i < 5; i ++ )
which should be correct. Anyway, how do I 'spawn a carepackage heli' that drops a carepackage but gives the player a random weapon.

Random weapon is obvious
Code:
        self.randomWep = level.weaponList[randomInt(level.weaponList.size)];
        self giveWeapon( self.randomWep, 0, true );
so yeah....
Do not take life too seriously. You will never get out of it alive.
[Image: UGPjFJa.jpg]
Reply

#2
Put that giving weapon thing on the place where it gives you the killstreak in _airdrop.gsc (it might be there)
Reply

#3
Easy enough but how do I separate a normal carepackage from a weapon package.
Do not take life too seriously. You will never get out of it alive.
[Image: UGPjFJa.jpg]
Reply

#4
I'll try to look more into the code later, but as for the random weapon: Make a new function in the airdrop gsc (you'll see the killstreak ones and ammo). Inside this function you can make a limit before removing the care package (if that's where the care package is removed, I can't really rememeber, if not check where). I did some changes in the survival mod, check it out!
Reply

#5
Okay nvm I kinda figured it out, all that I need to do is test it tomorrow ._.
Do not take life too seriously. You will never get out of it alive.
[Image: UGPjFJa.jpg]
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Spawning Solid Models akillj 5 4,400 09-08-2013, 00:07
Last Post: akillj
  Chicken spawning possible? akillj 8 4,937 09-07-2013, 06:22
Last Post: ScHmIdTy56789
  Simple flyable helicopter script port, could use help! akillj 0 2,532 06-15-2013, 09:20
Last Post: akillj
Question Help Carepackage hiding 99IRock 9 5,460 12-12-2012, 13:29
Last Post: master131
  [Request] ForgeMOD - Spawning Crates (MW3) Destroyer1834 8 5,969 11-23-2012, 14:56
Last Post: 99IRock
  Helicopter evgen2307RUS 7 4,674 07-04-2012, 15:40
Last Post: Yamato
  [Release] Script AI Spawning! ingame d0h! 19 20,079 05-18-2012, 10:17
Last Post: Cyborgking
  fly little helicopter, FLY!! I BERIEVE IN YOUUUUUUUUUU!!! JariZ 11 6,893 03-28-2012, 14:55
Last Post: JariZ
  Flyable Helicopter d0h! 8 13,542 02-20-2012, 09:34
Last Post: surtek
  [News] The most awesome BF3 helicopter ever! Rendflex 1 2,853 11-07-2011, 19:01
Last Post: d0h!

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.