Post: [CODE] Dolphin Dive in MW2
02-27-2011, 08:32 PM #1
xQuZe-
You talkin to me?
(adsbygoogle = window.adsbygoogle || []).push({});
Dolphin Dive


Video:
[ame="https://www.youtube.com/watch?v=tGTgHMhjfkg"]Dolphin Dive[/ame]



Originally posted by another user
Yup, this is for MW2. Made this code because i wanted the abillity to dolphin dive in mw2.
I know it doesn't look that sexy but it's a start.
A good coder like derek or mossy could pick this up and make it better.
You can remove the HUDmessage if you want.
If you put this on onplayerspawned() it's just like a normal button.
It's just as in BO, Sprint and Circle.





Code:
    
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 vector_Scal(anglestoforward(self getPlayerAngles()),1000000);
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.0 );
wait .5;
self freezeControls(false);
}
}
vector_scal(vec, scale)
{
vec = (vec[0] * scale, vec[1] * scale, vec[2] * scale);
return vec;
}


In 1 line:
    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 vector_Scal(anglestoforward(self getPlayerAngles()),1000000);        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.0 );wait .5;self freezeControls(false);}}vector_scal(vec, scale){        vec = (vec[0] * scale, vec[1] * scale, vec[2] * scale);        return vec;}

(adsbygoogle = window.adsbygoogle || []).push({});

The following 17 users say thank you to xQuZe- for this useful post:

Beta-, Brian235026, CleanMODSHD, Correy, emersons35, Fifa97, I am Mara, Man Dime, matt944057, maxrox, Mr. Aimbot, Ninja, Officer Laggy, oGHOSTLYMODZ, PussayPatrol, ViiZiiKz, xT4sSin
02-28-2011, 10:51 PM #47
anddrew
League Champion
Originally posted by xQuZe
Released it. Check it out :black: And that means your code is better in quality. Or you're just slower:pedo::pedo:.
:bro:?


Slower, worse quality, fails :bro:
I'll check it out, thanks
02-28-2011, 11:03 PM #48
xQuZe-
You talkin to me?
Originally posted by anddrew View Post
Slower, worse quality, fails :bro:
I'll check it out, thanks


Hehe. We'll see when you release it. Winky Winky
02-28-2011, 11:10 PM #49
anddrew
League Champion
Originally posted by xQuZe
Hehe. We'll see when you release it. Winky Winky


When?
*if

:carling:
I will if i finish but grrrr.
btw, ther is a reason you got 1000 rep, uou are pro Winky Winky
well done too
02-28-2011, 11:17 PM #50
gamer89117
Can’t trickshot me!
can u make a vid of u doing this in a third person perspective? trust me it makes all the difference
03-01-2011, 12:44 AM #51
Swade
The Brain Named Its Self
lol cheesy dolphin dive
03-01-2011, 01:12 AM #52
HAHAHA Smile nice
03-01-2011, 01:15 AM #53
Mw2Freak13
Climbing up the ladder
Nice will be willing to use this.
03-01-2011, 09:32 AM #54
xQuZe-
You talkin to me?
Originally posted by anddrew View Post
When?
*if

:carling:
I will if i finish but grrrr.
btw, ther is a reason you got 1000 rep, uou are pro Winky Winky
well done too


Thankkss :love::love:

---------- Post added at 10:32 AM ---------- Previous post was at 10:31 AM ----------

Originally posted by gamer89117 View Post
can u make a vid of u doing this in a third person perspective? trust me it makes all the difference


It makes it look even worse lol.
03-01-2011, 04:50 PM #55
anddrew
League Champion
Originally posted by xQuZe
Thankkss :love::love:

it is done babes
You must login or register to view this content.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo