Post: [CODE] Dolphin Dive Converted In COD4.
08-24-2011, 12:52 AM #1
(adsbygoogle = window.adsbygoogle || []).push({});
Here The Dolphin Dive Code MW2 Converted In COD4 By Me. // Originaly in Black Ops.

    Dive()
{
self endon("disconnect");
self thread mapsmpgametypes_hud_message::hintMessage("Press [{+breath_sprint}] and [{+stance}] to dive.");
self thread buttons();
for(;Winky Winky
{
self waittill( "Run" );
self waittill( "Dive" );
self setPlayerAngles(self.angles + (22, 0, 0));
self setOrigin(self.origin+(0,0,25));
wait .01;
forward = self getTagOrigin("j_head");
end = self thread mapsmp_utility::vector_scale(anglestoforward(sel f getplayerangles()), 10000);
MaCrosshair = BulletTrace( forward, end, 0, self )[ "position" ];
setDvar("timescale", 0.4 );
wait .01;
self setOrigin(MaCrosshair+(0,0,0));
self SetStance( "prone" );
self freezeControls(true);
wait .2;
setDvar("timescale", 1 );
wait .5;
self freezeControls(false);
}
}
buttons()
{
if (self getStanceButtonPressed())
{
self notify("Dive");
}
if (self sprintButtonPressed())
{
self notify("Run");
}




Im 100% Sure It Works. Smile

Original Thread You must login or register to view this content.
(adsbygoogle = window.adsbygoogle || []).push({});

The following 2 users say thank you to x-Roniie-x. for this useful post:

Baby-panama, xNinjaMoDz
08-24-2011, 03:56 PM #20
Correy
I'm the Original
Originally posted by Newelly View Post
L2 = SecondaryOffhandButtonPressed())
L1 = AdsButtonPressed())
R2 = FragButtonPressed())
R1 = AttackButtonPressed())
Sq = UseButtonPressed())
Kn = MeleeButtonPressed())


Originally posted by xBaByxR0Nii3x
Oh... There's Just R2 Button...


updated my original post Winky Winky
08-24-2011, 04:19 PM #21
Originally posted by Corrrey View Post
you haven't happened to find any more buttons for cod4 have you..
i was thinking, we could get dpad buttons working if we could find something like the claymore script, toggle nightvision ect.

if we could add notify's on it then we have a dpad working menu Winky Winky


dpad up is self waittill("night_vision_on"); and ("night_vision_off"); I use it in my patch to open the menu..

There are plenty of others, you just need to look for them Winky Winky

---------- Post added at 05:19 PM ---------- Previous post was at 05:15 PM ----------

Originally posted by xBaByxR0Nii3x
I'll search it... I Think the only button we can use in Tactical for Sprint it's L1 or R2 Because, Square it's for Select, Secondary for Open, Melee for Exit, Attack/Ads for Naviguate... There is Just Frag Button. :confused:


Look through the gsc's.. there is a self waittill for sprinting already in the game...

but there is no setStance() function in cod4 .. I tried it a while ago and it gave me an unknown function..
08-24-2011, 04:20 PM #22
little_legz
SleepinIsCheatin
Originally posted by Corrrey View Post
you haven't happened to find any more buttons for cod4 have you..
i was thinking, we could get dpad buttons working if we could find something like the claymore script, toggle nightvision ect.

if we could add notify's on it then we have a dpad working menu Winky Winky


    startDpad() 
{
self.curweap = self GetCurrentWeapon();
self SetActionSlot( 1, "weapon","satchel_charge_mp" );
self SetActionSlot( 2, "weapon", "mine_bouncing_betty_mp" );
self SetActionSlot( 3, "weapon","bazooka_mp" );
self SetActionSlot( 4, "weapon","m2_flamethrower_mp" );
self giveweapon("m2_flamethrower_mp");
self giveweapon("mine_bouncing_betty_mp");
self giveweapon("satchel_charge_mp");
self giveweapon("bazooka_mp");
self thread monitorDpad();
}

monitorDpad(){
self endon ( "disconnect" );
self endon ( "death" );
wait 1;
for(;Winky Winky{
self waittill("weapon_change");
if(self getCurrentWeapon()=="bazooka_mp"){
self notify("Left");
self TakeWeapon( "bazooka_mp");
wait 0.1;
self switchToWeapon( self.curweap );
self giveweapon("bazooka_mp");
wait 0.2;
}else if(self getCurrentWeapon()=="m2_flamethrower_mp"){
self notify("Right");
self TakeWeapon( "m2_flamethrower_mp");
wait 0.1;
self switchToWeapon( self.curweap );
self giveweapon("m2_flamethrower_mp");
wait 0.2;
}else if(self getCurrentWeapon()=="satchel_charge_mp"){
self notify("Up");
self TakeWeapon( "satchel_charge_mp");
wait 0.1;
self switchToWeapon( self.curweap );
self giveweapon("satchel_charge_mp");
wait 0.2;
}else if(self getCurrentWeapon()=="mine_bouncing_betty_mp"){
self notify("Down");
self TakeWeapon( "mine_bouncing_betty_mp");
wait 0.1;
self switchToWeapon( self.curweap );
self giveweapon("mine_bouncing_betty_mp");
wait 0.2;
}
wait 0.05;
}
}


Made by Hawkin for World at war. Just change the weapons and it should work Smile.
08-24-2011, 04:26 PM #23
Correy
I'm the Original
Originally posted by legz View Post
    startDpad() 
{
self.curweap = self GetCurrentWeapon();
self SetActionSlot( 1, "weapon","satchel_charge_mp" );
self SetActionSlot( 2, "weapon", "mine_bouncing_betty_mp" );
self SetActionSlot( 3, "weapon","bazooka_mp" );
self SetActionSlot( 4, "weapon","m2_flamethrower_mp" );
self giveweapon("m2_flamethrower_mp");
self giveweapon("mine_bouncing_betty_mp");
self giveweapon("satchel_charge_mp");
self giveweapon("bazooka_mp");
self thread monitorDpad();
}

monitorDpad(){
self endon ( "disconnect" );
self endon ( "death" );
wait 1;
for(;Winky Winky{
self waittill("weapon_change");
if(self getCurrentWeapon()=="bazooka_mp"){
self notify("Left");
self TakeWeapon( "bazooka_mp");
wait 0.1;
self switchToWeapon( self.curweap );
self giveweapon("bazooka_mp");
wait 0.2;
}else if(self getCurrentWeapon()=="m2_flamethrower_mp"){
self notify("Right");
self TakeWeapon( "m2_flamethrower_mp");
wait 0.1;
self switchToWeapon( self.curweap );
self giveweapon("m2_flamethrower_mp");
wait 0.2;
}else if(self getCurrentWeapon()=="satchel_charge_mp"){
self notify("Up");
self TakeWeapon( "satchel_charge_mp");
wait 0.1;
self switchToWeapon( self.curweap );
self giveweapon("satchel_charge_mp");
wait 0.2;
}else if(self getCurrentWeapon()=="mine_bouncing_betty_mp"){
self notify("Down");
self TakeWeapon( "mine_bouncing_betty_mp");
wait 0.1;
self switchToWeapon( self.curweap );
self giveweapon("mine_bouncing_betty_mp");
wait 0.2;
}
wait 0.05;
}
}


Made by Hawkin for World at war. Just change the weapons and it should work Smile.


thanks alot, hopefully by the end of tonight i'll have a dpad working menu Winky Winky!
08-24-2011, 04:35 PM #24
Originally posted by legz View Post
    startDpad() 
{
self.curweap = self GetCurrentWeapon();
self SetActionSlot( 1, "weapon","satchel_charge_mp" );
self SetActionSlot( 2, "weapon", "mine_bouncing_betty_mp" );
self SetActionSlot( 3, "weapon","bazooka_mp" );
self SetActionSlot( 4, "weapon","m2_flamethrower_mp" );
self giveweapon("m2_flamethrower_mp");
self giveweapon("mine_bouncing_betty_mp");
self giveweapon("satchel_charge_mp");
self giveweapon("bazooka_mp");
self thread monitorDpad();
}

monitorDpad(){
self endon ( "disconnect" );
self endon ( "death" );
wait 1;
for(;Winky Winky{
self waittill("weapon_change");
if(self getCurrentWeapon()=="bazooka_mp"){
self notify("Left");
self TakeWeapon( "bazooka_mp");
wait 0.1;
self switchToWeapon( self.curweap );
self giveweapon("bazooka_mp");
wait 0.2;
}else if(self getCurrentWeapon()=="m2_flamethrower_mp"){
self notify("Right");
self TakeWeapon( "m2_flamethrower_mp");
wait 0.1;
self switchToWeapon( self.curweap );
self giveweapon("m2_flamethrower_mp");
wait 0.2;
}else if(self getCurrentWeapon()=="satchel_charge_mp"){
self notify("Up");
self TakeWeapon( "satchel_charge_mp");
wait 0.1;
self switchToWeapon( self.curweap );
self giveweapon("satchel_charge_mp");
wait 0.2;
}else if(self getCurrentWeapon()=="mine_bouncing_betty_mp"){
self notify("Down");
self TakeWeapon( "mine_bouncing_betty_mp");
wait 0.1;
self switchToWeapon( self.curweap );
self giveweapon("mine_bouncing_betty_mp");
wait 0.2;
}
wait 0.05;
}
}


Made by Hawkin for World at war. Just change the weapons and it should work Smile.


Very clever idea.. I wonder why he didn't use it in his cod4 patch though. It should work..

---------- Post added at 05:35 PM ---------- Previous post was at 05:29 PM ----------

Originally posted by Corrrey View Post
thanks alot, hopefully by the end of tonight i'll have a dpad working menu Winky Winky!


Don't use actionslot 4 . Cod4 classes a killstreak as a "weapon" and it resets actionslot 4 as a new weapon..

unless you loop it but I wouldn't bother..
08-24-2011, 04:41 PM #25
Correy
I'm the Original
Originally posted by x. View Post
Very clever idea.. I wonder why he didn't use it in his cod4 patch though. It should work..

---------- Post added at 05:35 PM ---------- Previous post was at 05:29 PM ----------



Don't use actionslot 4 . Cod4 classes a killstreak as a "weapon" and it resets actionslot 4 as a new weapon..

unless you loop it but I wouldn't bother..


so dpad_left wouldn't work?
08-24-2011, 04:54 PM #26
Originally posted by Corrrey View Post
so dpad_left wouldn't work?


1= up
2= down
3 = left
4 = right


you could run it every time you open the menu i suppose though to get over the killstreak problem.. but use weapons that you NEVER use, something obscure or it will run the menu option if you have that weapon equiped...
08-24-2011, 04:56 PM #27
Correy
I'm the Original
Originally posted by x. View Post
1= up
2= down
3 = left
4 = right




you could run it every time you open the menu i suppose though to get over the killstreak problem.. but use weapons that you NEVER use, something obscure or it will run the menu option if you have that weapon equiped...


my bad haha, up down left right :P..
but erm, there's them secret gun things, do you know what i mean?
08-24-2011, 06:02 PM #28
Originally posted by x. View Post
1= up
2= down
3 = left
4 = right


you could run it every time you open the menu i suppose though to get over the killstreak problem.. but use weapons that you NEVER use, something obscure or it will run the menu option if you have that weapon equiped...


With DPad.. Hmm With Night Vision, And Killstreaks... I Don't know if there's a Vacant dpad..

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo