Page 1 of 1

Black Ops Jump Mod :D

Posted: December 30th, 2010, 10:13 pm
by House
So been working on a jump mod for a while now :D (haven't tested it yet)
just going to post some code and see what you guys think :D

Save Position etc..

Code: Select all

while(1)
{
       if(self MeleeButtonPressed()) //v
              self.savedposition = self.origin;//Saves current position
              self iPrintln("^2Position ^5Saved");
}


while(1)
{
       if(self UseButtonPressed())//F
              self moveto(self.savedposition);// loads last saved position
              self iPrintln("^2Position ^5Loaded");
}



while(1)
{
       if(self ActionSlotOneButtonPressed())//X
              self suicide();//suicide!
              self iPrintln("^2You Killed ^5Yourself ^5HAHA EMO!");
}
("haha emo!" for keltic since she dyed her hair black and tryed to cover it up ;D )
Players class etc

Code: Select all

Team1()
{
self takeAllWeapons();
self ClearPerks();
self thread maps\mp\gametypes\_hud_message::hintMessage("^2Lets Jump :D");
/*cz75dw_mp*/
self giveWeapon( "cz75dw_mp", 0, false );
self switchToWeapon("cz75dw_mp"); 
self setPerk("specialty_movefaster specialty_fallheight");
self setPerk("specialty_longersprint specialty_unlimitedsprint");
self setPerk("specialty_holdbreath specialty_fastweaponswitch");
self setPerk("specialty_twoattach specialty_twogrenades");
self setPerk("perk_sleight_of_hand_pro - specialty_fastreload specialty_fastads");
self setPerk("specialty_bulletaccuracy specialty_sprintrecovery specialty_fastmeleerecovery");
self.maxhealth = 99999;
self.health = 99999;
self setClientDvar("cg_nopredict", 0);
self setClientDvar("cg_fov", 80);
self setClientDvar("cg_fovscale", 1.125);
self setClientDvar("r_specularcolorscale", 0);    
self setClientDvar("r_dlightLimit", 0);
self setClientDvar("sm_enable", 0);
self setClientDvar("r_desaturation", 0);
self setClientDvar("r_zfeather", 0);
self setClientDvar("r_smc_enable", 0);
self setClientDvar("r_distortion", 0);
self setClientDvar("r_fog", 0);
setDvar("bg_viewBobMax", 0);
setDvar("bg_weaponBobMax", 0);
setDvar("player_sprintCameraBob", 0);
setDvar("sv_cheats", 1);
setDvar(Jump_height, 200);
self setClientDvar("cg_drawFPSOnly", 1); 
}


Bleh haven't tested it so don't no if i have made any noob mistakes and got a error

Hope you like :D

Re: Black Ops Jump Mod :D

Posted: December 31st, 2010, 10:26 am
by Moustache
:roll: Maybe, I am not sure but maybe, it possible would be smart to test it before publishing it. You say you are working on it for a while now, yea sure... If that really was the case you would take the time to test it.

Re: Black Ops Jump Mod :D

Posted: December 31st, 2010, 6:57 pm
by Drofder2004
All your while statements are potential infinite loops.
Your iPrintln statements are going to spam the screen every frame crashing the mod almost the instant a player spawns.

The lack of wait calls in your player class function will cause the player to spawn without a weapon in his hand and forcing player dvars is just gonna cause some annoyance for those do not want their configs fucked with.

Re: Black Ops Jump Mod :D

Posted: December 31st, 2010, 7:22 pm
by Pedsdude
House wrote:("haha emo!" for keltic since she dyed her hair black and tryed to cover it up ;D )
Who is keltic and why would we care?

Re: Black Ops Jump Mod :D

Posted: January 22nd, 2011, 1:35 pm
by House
Yes the reason i havent tested it is because i didnt want to get banned but i got a spare account now so im going to test it today
and your right about the spam with the pop up messages so just fixing them now and i removed perm dvars

but other than that all is good

also changed the way the player gets guns couldn't be bothered to do classes for both teams so i just added this to onplayerspawned

Code: Select all

onPlayerSpawned()
{
    self endon("disconnect");

    for(;;)
    {
        self waittill("spawned_player");

self thread saveposition();
self thread loadposition();
self thread suicide();


self takeAllWeapons();
self giveWeapon( "cz75_mp", 5, false );
self.maxhealth = 999999;
self.health = 999999;

Re: Black Ops Jump Mod :D

Posted: February 9th, 2011, 1:22 pm
by KIWIDOGGIE
I hope you know that script will NEVER get past the first while(1) statement...

It will continually loop in that one statement over and over and over again.

Re: Black Ops Jump Mod :D

Posted: February 9th, 2011, 11:06 pm
by Drofder2004
KIWIDOGGIE wrote:I hope you know that script will NEVER get past the first while(1) statement...
It will continually loop in that one statement over and over and over again.
Drofder2004 wrote:All your while statements are potential infinite loops.
Welcome back to last year.