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-24-2013, 03:17 PM #2
Master Ro
I make food
Originally posted by xDerpModz View Post
{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);
}



Nothing Really Much to that.


I basically made a new script....with the blackhawk model...lol

    
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();
}
}
}


It's a flying ride-able Helicopter Cool Man (aka Tustin)
Last edited by Master Ro ; 01-24-2013 at 03:21 PM.

The following 5 users say thank you to Master Ro for this useful post:

-Google-, CoDyMoDz1000XD, Novarized, xxKILLALLMW2xx, YT-xDerpModz
01-24-2013, 08:41 PM #3
YT-xDerpModz
Do a barrel roll!
Originally posted by Master
Nothing Really Much to that.


I basically made a new script....with the blackhawk model...lol

    
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();
}
}
}


It's a flying ride-able Helicopter Cool Man (aka Tustin)




Lol I know its simple I was just using as a model spawn :P Its all good though, thanks for the scripts <333
01-26-2013, 12:33 AM #4
Originally posted by Master
Nothing Really Much to that.


I basically made a new script....with the blackhawk model...lol

    
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();
}
}
}


It's a flying ride-able Helicopter Cool Man (aka Tustin)


testing your "flyable blackhawk" and it wont work just spams press r to get in
01-26-2013, 12:40 AM #5
Master Ro
I make food
Originally posted by blackhawk2299 View Post
testing your "flyable blackhawk" and it wont work just spams press r to get in


If you are testing on PC this is your problem.

My Code clearly stated 'UseButtonPressed()' does not work on PC...

The following user thanked Master Ro for this useful post:

LightModz
01-26-2013, 12:50 AM #6
Originally posted by Master
If you are testing on PC this is your problem.

My Code clearly stated 'UseButtonPressed()' does not work on PC...


make it work please Smile im testing everything on pc now.
01-26-2013, 01:17 AM #7
LightModz
League Champion
Originally posted by xDerpModz View Post
{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();
}
}
}


i dont know if you found the model your self but i had this in my blackrain edit for quite some time.
01-26-2013, 01:19 AM #8
Master Ro
I make food
Originally posted by blackhawk2299 View Post
make it work please Smile im testing everything on pc now.


It's not hard to change it

UseButtonPressed() ----> FragButtonPressed() || SecondaryOffHandButtonPressed()

Winky Winky
01-26-2013, 01:36 AM #9
YT-xDerpModz
Do a barrel roll!
Originally posted by LightModz View Post
i dont know if you found the model your self but i had this in my blackrain edit for quite some time.



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 ----------

Originally posted by Master
If you are testing on PC this is your problem.

My Code clearly stated 'UseButtonPressed()' does not work on PC...


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
01-26-2013, 01:47 AM #10
LightModz
League Champion
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


oh, you could of changed the model for the flyable heli made by the Unkn0wn and make it a really good physical object :P

The following user thanked LightModz for this useful post:

YT-xDerpModz

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo