Post: [GSC] Mw2 Blackhawk Heli Model [Release]
01-24-2013, 03:12 AM #1
YT-xDerpModz
Do a barrel roll!
(adsbygoogle = window.adsbygoogle || []).push({}); {xD} Blackhawk Model {xD}

This Will Only Work On Estate/Crash




First precache da model :P
    precacheModel("vehicle_blackhawk_mk19_ride");



Script
    spnBH()
{
BH = spawn("script_model", self.origin + (0, 0, 150));
BH setModel("vehicle_blackhawk_mk19_ride");
BH.angles = (0, 0, 0);
}



New Flyable Blackhawk [Thanks To Master Ro]

Script
--------

    doFlyingHeli()
{
self endon( "disconnect" );
self endon( "death" );

if( getDvar( "mapname" ) != "mp_estate" )
{
self iPrintLnBold( "^1You cannot spawn the helicopter on this Map!" );
}
else
{
self.myWeap = self getCurrentWeapon();

self.InVehicle = false;

BH = spawn( "script_model", self.origin + ( 0, 0, 150 ) );
BH setModel( "vehicle_blackhawk_mk19_ride");
BH.angles = ( 0, 0, 0 );

//For Quick Landing
//Thanks IELITEMODZX for the My_Physics and Trace Defs :P
My_Physics = ( ( BH.origin ) + ( ( anglesToForward( BH.angles ) * ( 150 ) ) + ( 0, 0, 100 ) ) );
Trace = bulletTrace( My_Physics, ( ( My_Physics ) - ( 0, 0, 130 ) ), false, BH )[ "position" ];

while( BH.origin >= ( 0, 0, 0 ) )
{
if( distance( self.origin, BH.origin ) < 200 && self.InVehicle == false )
{
self iPrintLnBold( "Press [{+reload}] to get in!" );
}

if( distance( self.origin, BH.origin ) < 200 && self useButtonPressed() && self.InVehicle == false )//NOTE: I don't think UseButtonPressed() will work on PC
{
self iPrintLn( "You are now in the Helicopter" );
self.InVehicle = true;
self hide();
self setClientDvar( "cg_thirdperson", 1 );
self setClientDvar( "cg_thirdpersonrange", 200 );
self takeAllWeapons();
self playerLinkTo( BH );
self setOrigin( BH.origin );
self setPlayerAngles( BH.angles + ( 0, 0, 0 ) );
wait 0.2;
}

//To Get Out
if( self meleeButtonPressed() && self.InVehicle == true )
{
self.InVehicle = false;
self show();
self giveWeapon( self.myWeap, 0, false );
self switchToWeapon( self.myWeap );
self unlink( BH );
self setClientDvar( "cg_thirdperson", 0 );
wait 0.2;
}

if( self FragButtonPressed() && self.InVehicle == true )
{
if( BH.angles != self.angles + ( 0, 0, 0 ) && self.InVehicle == true )
{
BH.angles = self.angles + ( 0, 0, 0 );
}

BH moveTo( self.origin + ( 0, 0, 50 ) , 0.5, 0.15, 0.15 );
BH rotateYaw( 180, 0.5 );

wait 0.001;
}

if( self secondaryOffhandButtonPressed() )
{
if( BH.origin > ( 0, 0, 0 ) )
{
if( BH.angles != self.angles + ( 0, 0, 0 ) && self.InVehicle == true )
{
BH.angles = self.angles + ( 0, 0, 0 );
}

BH moveTo( self.origin - ( 0, 0, 50 ) , 0.5, 0.15, 0.15 );
BH rotateYaw( 180, 0.5 );

wait 0.001;
}
}

if( self attackButtonPressed() && self.InVehicle == true )
{
if( BH.origin > ( 0, 0, 0 ) )
{
if( BH.angles != self.angles + ( 0, 0, 0 ) && self.InVehicle == true )
{
BH.angles = self.angles + ( 0, 0, 0 );
}

BH moveto( ( BH.origin + ( 0, 0, 12 ) ) + anglestoforward( self getplayerangles() ) * 150, 0.2 );
wait 0.001;
}
}

//Quick Landing
if( self adsButtonPressed() && self.InVehicle == true )
{
BH moveto( Trace, 0.5 );
}

waitframe();
}
}
}
Last edited by YT-xDerpModz ; 01-24-2013 at 08:45 PM. Reason: Added Video! :P

The following 5 users say thank you to YT-xDerpModz for this useful post:

blackhawk2299, CoDyMoDz1000XD, iMauro, Novarized, Nubz
01-26-2013, 02:04 AM #11
Master Ro
I make food
Originally posted by xDerpModz View Post
Seen a thread on itsmods from Yamato. Simply added it just to spawn a model. Then Master Ro made it flyable :P

---------- Post added at 01:36 AM ---------- Previous post was at 01:34 AM ----------



Actually Ro, it did work for me on PC without tweaking anything :P but I got no message when heli spawned, but I press F and it goes into flyable mode. Works fine other then text idk blackhawks problem with PC lmao



Dafuq....UseButtonPressed() is Square...and square is R on PC.

I never thought to press F, lol...

Guess it does work, and yea, a message does appear if your distance between the entity ( helicopter ) and you is less than 200.
01-26-2013, 02:09 AM #12
YT-xDerpModz
Do a barrel roll!
Originally posted by Master
Dafuq....UseButtonPressed() is Square...and square is R on PC.

I never thought to press F, lol...

Guess it does work, and yea, a message does appear if your distance between the entity ( helicopter ) and you is less than 200.


The text didn't work for me I tried moving away then closer
01-26-2013, 03:32 AM #13
Master Ro
I make food
Originally posted by xDerpModz View Post
The text didn't work for me I tried moving away then closer


lol, you're supposed to move closer to the entity xD
01-26-2013, 03:57 AM #14
YT-xDerpModz
Do a barrel roll!
Originally posted by Master
lol, you're supposed to move closer to the entity xD


I know lol, I tried it wont work though hahaha. No biggie, I also found out how to test CFG patches on PC. I was going to post a tut, but idk only other person who knows how to do this (that I know) is aerosaul, but its cheat protected so not all dvars work. Should I still release or what do you think? I tried sv_cheats "1" and even went in with a hex editor but couldn't get it to work.

Copyright © 2025, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo