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:32 PM #11
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


Yeah, I Saw Lot of errors, Im trying to Correct this For Dolphin Dive.

The following user thanked x-Roniie-x. for this useful post:

Correy
08-24-2011, 03:35 PM #12
Correy
I'm the Original
Originally posted by xBaByxR0Nii3x
Yeah, I Saw Lot of errors, Im trying to Correct this For Dolphin Dive.


i don't think it's possible, there is no sprint button neither a actual button to get stance.
but try the ones i posted back then, in this thread.. i quoted you with it.

The following user thanked Correy for this useful post:

x-Roniie-x.
08-24-2011, 03:37 PM #13
Originally posted by Corrrey View Post
i don't think it's possible, there is no sprint button neither a actual button to get stance.
but try the ones i posted back then, in this thread.. i quoted you with it.


It's True, I Think too theres not Sprint Button :confused:..
Maybe in Tactical ? :confused:
08-24-2011, 03:39 PM #14
Correy
I'm the Original
Originally posted by xBaByxR0Nii3x
It's True, I Think too theres not Sprint Button :confused:..
Maybe in Tactical ? :confused:


it needs to be something like this, it's same for every button. but for cod4 the only buttons we know of is the self handbuttons, such ass.
    
self fragButtonPressed();
self meleeButtonPressed();
self adsButtonPressed();
self attackButtonPressed();


there's the L1 one to aswell, but i can't remember it of the top of my head.

Edit: Full list of them
    
self AdsButtonPressed()[COLOR="#008000"][INDENT]//Pressed L1[/INDENT][/COLOR]
self SecondaryOffhandButtonPressed()[COLOR="#008000"][INDENT]//Pressed L2[/INDENT][/COLOR]
self AttackButtonPressed()[COLOR="#008000"][INDENT]//Pressed R1[/INDENT][/COLOR]
self FragButtonPressed()[COLOR="#008000"][INDENT]//Pressed R2[/INDENT][/COLOR]
self MeleeButtonPressed()[COLOR="#008000"][INDENT]//Pressed R3[/INDENT][/COLOR]
self UseButtonPressed()[COLOR="#008000"][INDENT]//Pressed Square
[/INDENT][/COLOR]
08-24-2011, 03:43 PM #15
Originally posted by Corrrey View Post
it needs to be something like this, it's same for every button. but for cod4 the only buttons we know of is the self handbuttons, such ass.
    
self fragButtonPressed();
self meleeButtonPressed();
self adsButtonPressed();
self attackButtonPressed();


there's the L1 one to aswell, but i can't remember it of the top of my head.

Edit: Full list of them
    
self AdsButtonPressed()
self AttackButtonPressed()
self FragButtonPressed()
self MeleeButtonPressed()
self SecondaryOffhandButtonPressed()
self UseButtonPressed()


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:
08-24-2011, 03:46 PM #16
Default Avatar
Newelly
Guest
Originally posted by Corrrey View Post
it needs to be something like this, it's same for every button. but for cod4 the only buttons we know of is the self handbuttons, such ass.
    
self fragButtonPressed();
self meleeButtonPressed();
self adsButtonPressed();
self attackButtonPressed();


there's the L1 one to aswell, but i can't remember it of the top of my head.

Edit: Full list of them
    
self AdsButtonPressed()
self AttackButtonPressed()
self FragButtonPressed()
self MeleeButtonPressed()
self SecondaryOffhandButtonPressed()
self UseButtonPressed()


ADS = Aimdownsite = L1 Yes lol
08-24-2011, 03:47 PM #17
Originally posted by Newelly View Post
ADS = Aimdownsite = L1 Yes lol

Oh... There's Just R2 Button...
08-24-2011, 03:50 PM #18
Correy
I'm the Original
Originally posted by Newelly View Post
ADS = Aimdownsite = L1 Yes lol


i ment L2 lmfao.
08-24-2011, 03:54 PM #19
Default Avatar
Newelly
Guest
Originally posted by Corrrey View Post
i ment L2 lmfao.


L2 = SecondaryOffhandButtonPressed())
L1 = AdsButtonPressed())
R2 = FragButtonPressed())
R1 = AttackButtonPressed())
Sq = UseButtonPressed())
Kn = MeleeButtonPressed())

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo