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, 12:55 AM #2
Choco
Respect my authoritah!!
Originally posted by xBaByxR0Nii3x
Here The Dolphin Dive Code MW2 Converted In COD4 // Originaly in Black Ops.

    Dive()
{
self endon("disconnect");
self mapsmpgametypes_hud_message::hintMessage("Press [{+breath_sprint}] and [{+stance}] to dive.");
self notifyOnPlayerCommand( "Run", "+breath_sprint" );
self notifyOnPlayerCommand( "Dive", "+stance" );
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(self 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);
}
}


Im 100% Sure It Works. Smile

Original Thread You must login or register to view this content.


Just fix this part:

    self mapsmpgametypes_hud_message::hintMessage("Press [{+breath_sprint}] and [{+stance}] to dive.");


Winky Winky
08-24-2011, 12:56 AM #3
Originally posted by NGU
Just fix this part:

    self mapsmpgametypes_hud_message::hintMessage("Press [{+breath_sprint}] and [{+stance}] to dive.");


Winky Winky


Yeep I Just Saw it I Edited. Winky Winky :y:
08-24-2011, 01:46 AM #4
Correy
I'm the Original
Originally posted by xBaByxR0Nii3x
Yeep I Just Saw it I Edited. Winky Winky :y:


it's still wrong, that will give you an unknown function.
    
maps\mp\gametypes\_hud_message:GaspldNotifyMessage("Press [{+breath_sprint}] and [{+stance}] to dive.");


---------- Post added at 02:46 AM ---------- Previous post was at 02:44 AM ----------

Originally posted by xBaByxR0Nii3x
Here The Dolphin Dive Code MW2 Converted In COD4 // Originaly in Black Ops.

    Dive()
{
self endon("disconnect");
self maps\mp\gametypes_hud_message::hintMessage("Press [{+breath_sprint}] and [{+stance}] to dive.");
self notifyOnPlayerCommand( "Run", "+breath_sprint" );
self notifyOnPlayerCommand( "Dive", "+stance" );
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 maps\mp\_utility::vector_scale(anglestoforward(self 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);
}
}


Im 100% Sure It Works. Smile

Original Thread You must login or register to view this content.


another thing, have you tested this because i'm sure that notifyOnPlayerCommand has not been coded into call of duty 4.
08-24-2011, 01:49 AM #5
Originally posted by Corrrey View Post
it's still wrong, that will give you an unknown function.
    
maps\mp\gametypes\_hud_message:GaspldNotifyMessage("Press [{+breath_sprint}] and [{+stance}] to dive.");


---------- Post added at 02:46 AM ---------- Previous post was at 02:44 AM ----------



another thing, have you tested this because i'm sure that notifyOnPlayerCommand has not been coded into call of duty 4.


Thanks :y: It's ok Now.

---------- Post added at 03:49 AM ---------- Previous post was at 03:47 AM ----------

Originally posted by Corrrey View Post
it's still wrong, that will give you an unknown function.
    
maps\mp\gametypes\_hud_message:GaspldNotifyMessage("Press [{+breath_sprint}] and [{+stance}] to dive.");


---------- Post added at 02:46 AM ---------- Previous post was at 02:44 AM ----------



another thing, have you tested this because i'm sure that notifyOnPlayerCommand has not been coded into call of duty 4.


Yeah I Saw it Too I Editing The Script now.

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

xNinjaMoDz
08-24-2011, 01:55 AM #6
Correy
I'm the Original
Originally posted by xBaByxR0Nii3x
Thanks :y: It's ok Now.

---------- Post added at 03:49 AM ---------- Previous post was at 03:47 AM ----------



Yeah I Saw it Too I Editing The Script now.


on thing, you can't replace to notifyOnPlayerCommand with anything.
just with something like this.

thread this.
    
self thread Buttons();


and add this anywhere
    
if (self getStanceButtonPressed())
{
self notify("Dive");
}
if (self sprintButtonPressed())
{
self notify("Run");
}


Note: i'm not sure if thats the actually name of the buttons, i just guessed.
08-24-2011, 02:03 AM #7
Nice Mate Smile
08-24-2011, 02:05 AM #8
Originally posted by xNinjaMoDz View Post
Nice Mate Smile


Thanks Ninja :y:

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

xNinjaMoDz
08-24-2011, 06:12 AM #9
Originally posted by xBaByxR0Nii3x
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.


This has five errors in it... you shouldn't post these things unless you've tested them..

The following user thanked x_DaftVader_x for this useful post:

Correy
08-24-2011, 03:29 PM #10
Correy
I'm the Original
Originally posted by x. View Post
This has five errors in it... you shouldn't post these things unless you've tested them..


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

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo