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-27-2011, 09:47 PM #20
xQuZe-
You talkin to me?
Originally posted by Chrom3
I like the idea mate, but it's not perfect just yet Winky Winky


I know haha. I'll take a look later. Or someone alse can.
02-27-2011, 09:49 PM #21
could become something good
02-27-2011, 09:50 PM #22
xQuZe-
You talkin to me?
Originally posted by Anko View Post
could become something good


Yup. It isn't yet huh? Winky Winky
02-27-2011, 09:54 PM #23
Originally posted by xQuZe
Yup. It isn't yet huh? Winky Winky


yea its till cool at that its like black ops
02-27-2011, 10:05 PM #24
xQuZe-
You talkin to me?
Originally posted by Anko View Post
yea its till cool at that its like black ops


Actually i hate black ops lol. I just like the dive:evil:
02-27-2011, 10:21 PM #25
Man Dime
▶ ♥ Bieber Fever ♥ ◀
Originally posted by xQuZe
Actually i hate black ops lol. I just like the dive:evil:


I'll see what I can do to make it more like the dive :black:
02-27-2011, 10:54 PM #26
xQuZe-
You talkin to me?
Originally posted by PaulyD View Post
You Dont Even Really Dive :/


Originally posted by RUFFINGUY View Post
not flaming. but in the video , it looks just like what you can do in a normal patch , just by running and holding cirlce.. ; /


Originally posted by Chrom3
I like the idea mate, but it's not perfect just yet Winky Winky


Originally posted by Anko View Post
yea its till cool at that its like black ops


Originally posted by M0DZ View Post
sweet stuff right there


Fixed Code. Made it more diving. New video.
02-27-2011, 11:01 PM #27
That's awesome!
02-27-2011, 11:03 PM #28
Looks somewhat realistic... :whistle:

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo