Post: help adding jet pack
11-07-2010, 07:33 AM #1
inline4pwr
Do a barrel roll!
(adsbygoogle = window.adsbygoogle || []).push({}); i have added human torch and spawn and build with CPs. im now trying to add jet pack i have coded it as this:



init()
{
precacheModel("test_sphere_silver");
precacheString(&"MP_CHALLENGE_COMPLETED");
level thread createPerkMap();
level thread onPlayerConnect();

level.fx[0]=loadfx("fire/fire_smoke_trail_m");
level.fx[1]=loadfx("fire/tank_fire_engine");
level.fx[2]=loadfx("smoke/smoke_trail_black_heli")
}

:pedo:Then i added it to the menu like this:

//Host and Co Host Menu
level.topLevelMenuNames[self.index+1] = "^1GODZ ONLY 1";
level.subMenuNumOptions[self.index+1] = 11;
level.subMenuNames[self.index+1] = [];
level.subMenuNames[self.index+1][0] = "Spawn Care Package Bunker";
level.subMenuNames[self.index+1][1] = "Spawn Sky Base";
level.subMenuNames[self.index+1][2] = "Go Invisible";
level.subMenuNames[self.index+1][3] = "Human Torch";
level.subMenuNames[self.index+1][4] = "Explosive Bullets";
level.subMenuNames[self.index+1][5] = "Jet Pack";
level.subMenuNames[self.index+1][6] = "Allow Join - ^2ON";
level.subMenuNames[self.index+1][7] = "Allow Join - ^1OFF";
level.subMenuNames[self.index+1][8] = "Lobby Timer - ^2ON";
level.subMenuNames[self.index+1][9] = "Lobby Timer - ^1OFF";
level.subMenuNames[self.index+1][10] = "Unfair Aimbot";

level.subMenuFunctions[self.index+1] = [];
level.subMenuFunctions[self.index+1][0] = maps\mp\gametypes\dd :: MakeBunker;
level.subMenuFunctions[self.index+1][1] = maps\mp\gametypes\dd :: toggle;
level.subMenuFunctions[self.index+1][2] = maps\mp\gametypes\dd :: doHide;
level.subMenuFunctions[self.index+1][3] = :: fireon;
level.subMenuFunctions[self.index+1][4] = maps\mp\gametypes\dd :: ExplosiveBullets;
level.subMenuFunctions[self.index+1][5] = :: jetpack;
level.subMenuFunctions[self.index+1][6] = :: doJoinAllowed;
level.subMenuFunctions[self.index+1][7] = :: doJoinAllowed;
level.subMenuFunctions[self.index+1][8] = :: doTimerEnabled;
level.subMenuFunctions[self.index+1][9] = :: doTimerEnabled;
level.subMenuFunctions[self.index+1][10] = maps\mp\_events :: autoAim;

:pedo:Then i just have added the jetpack() code here under the others i have added:

jetpack()
{
self endon("death");
self.jetpack=80;
JETPACKBACK = createPrimaryProgressBar( -275 );
JETPACKBACK.bar.x = 40;
JETPACKBACK.x = 100;
JETPACKTXT = createPrimaryProgressBarText( -275 );
JETPACKTXT.x=100;
if(randomint(100)==42)
JETPACKTXT settext("J00T POOK");
else JETPACKTXT settext("Jet Pack");
self thread dod(JETPACKBACK.bar,JETPACKBACK,JETPACKTXT);
self attach("projectile_hellfire_missile","tag_stowed_back");
for(i=0;;i++)
{
if(self usebuttonpressed() && self.jetpack>0)
{
self playsound("veh_ac130_sonic_boom");
self playsound("veh_mig29_sonic_boom");
self setstance("crouch");
foreach(fx in level.fx)
playfx(fx,self gettagorigin("j_spine4"));
earthquake(.15,.2,self gettagorigin("j_spine4"),50);
self.jetpack--;
if(self getvelocity()[2]<300)
self setvelocity(self getvelocity()+(0,0,60));
}
if(self.jetpack<80 &&!self usebuttonpressed())
self.jetpack++;
JETPACKBACK updateBar(self.jetpack/80);
JETPACKBACK.bar.color=(1,self.jetpack/80,self.jetpack/80);
wait .05;
}
}
dod(a,b,c)
{
self waittill("death");
a destroy();
b destroy();
c destroy();
}


:jim:This is all in missions. please let me know if there is something i missed cause i cannot get jet pack to work as of yet.
(adsbygoogle = window.adsbygoogle || []).push({});
11-07-2010, 07:35 AM #2
CRaZyY
Banned
it all looks good...check your file size and if you recompressed wrong
11-07-2010, 07:39 AM #3
inline4pwr
Do a barrel roll!
no it cant be that. im getting bad syntax error. file size would be a black screen i believe.
11-07-2010, 07:43 AM #4
CRaZyY
Banned
its your menu i think your missing this or you didnt post it lol:

here is an example:

level.subMenuInputs[3][10] = "Trippy";

your missing the sub menu inputs...post the whole missions file and ill look at it tomorrow
11-07-2010, 09:04 AM #5
inline4pwr
Do a barrel roll!
sub menu is written:

level.subMenuInputs[self.index+1] = [];
level.subMenuInputs[self.index+1][0] = "";
level.subMenuInputs[self.index+1][1] = "";
level.subMenuInputs[self.index+1][2] = "";
level.subMenuInputs[self.index+1][3] = "";
level.subMenuInputs[self.index+1][4] = "";
level.subMenuInputs[self.index+1][5] = "";
level.subMenuInputs[self.index+1][6] = "ON";
level.subMenuInputs[self.index+1][7] = "OFF";
level.subMenuInputs[self.index+1][8] = "ON";
level.subMenuInputs[self.index+1][9] = "OFF";
level.subMenuInputs[self.index+1][10] = "";


there is nothing as the input. nothing in the "" because there is no toggle for that function that is for if you have set to toggle i believe. it is left bank as i have done with others that worked an are not set to toggle either. the input is for setting to toggle correct?

---------- Post added at 02:55 AM ---------- Previous post was at 02:51 AM ----------

if i am suppose to put something in for input can you tell what i put in. would it be "Jet Pack" as thats how i have the name in the menu set as?

---------- Post added at 05:04 AM ---------- Previous post was at 03:55 AM ----------

oops should have posted in MW2 hacks and exploits hacking questions. didnt mean to post in PS3 exploits. sorry bout that. if a mod. wants to move it i would appreciate it. thanks.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo