Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds

Members Online

»
0 Active | 67 Guests
Online:

LATEST FORUM THREADS

»
CoD: Battle Royale
CoD+UO Map + Mod Releases
Damaged .pk3's
CoD Mapping
heli to attack ai
CoD4 SP Mapping

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty 4
Category: CoD4 SP Mapping
CoD 4 mapping and level design for single player.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername, novemberdobby
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked
Page
Next Page
subscribe
Author Topic: how to land a blackhawk ?
tschiggen
General Member
Since: Oct 19, 2010
Posts: 122
Last: Feb 16, 2012
[view latest posts]
Level 4
Category: CoD4 SP Mapping
Posted: Saturday, Jun. 4, 2011 10:48 am
hey

does someone have a idea how to land a blackhawk per script ?

the blackhawk should fly, land, and fly again.


also i wanted a smoth unlink for the player(with unlink but some movements for the camera.)

thx tschiggen
Share |
Skytram
General Member
Since: Aug 7, 2010
Posts: 27
Last: Apr 3, 2012
[view latest posts]
Level 2
Category: CoD4 SP Mapping
Posted: Monday, Jun. 6, 2011 01:51 pm
You should be able to use "setvehgoalpos" to give it a goal node.

You can use "setgoalyaw" to turn it the direction you want.

To make it wait, check out the script file for your vehicle, it should have a wait or idle function to keep it there.

Take a look at Airlift or Blackout's script files for examples of helicopters that spawn in, land, then take off again...

Hope this helps!
Share |
tschiggen
General Member
Since: Oct 19, 2010
Posts: 122
Last: Feb 16, 2012
[view latest posts]
Level 4
Category: CoD4 SP Mapping
Posted: Monday, Jun. 6, 2011 04:56 pm
well does somebody whats the vehicletype of this ch46e (seaknight from airlift)
Share |
Skytram
General Member
Since: Aug 7, 2010
Posts: 27
Last: Apr 3, 2012
[view latest posts]
Level 2
Category: CoD4 SP Mapping
Posted: Monday, Jun. 6, 2011 05:07 pm
According to _vehicletypes.gsc it's "vehicle_ch46e"
Share |
tschiggen
General Member
Since: Oct 19, 2010
Posts: 122
Last: Feb 16, 2012
[view latest posts]
Level 4
Category: CoD4 SP Mapping
Posted: Monday, Jun. 6, 2011 05:09 pm
i tried. it didnt worked. xD

i used "vehicle_ch46e" as model!
Share |
voidsource
General Member
Since: May 5, 2007
Posts: 1513
Last: Sep 1, 2013
[view latest posts]
Level 8
Category: CoD4 SP Mapping
Posted: Tuesday, Jun. 7, 2011 12:30 am
dude!!! lol the info u are looking for is in the _utility.gsc. functions are:


Code:

	struct = getstruct( "auto195", "targetname" );//<-- struct or veh node for heli to go to
	struct waittill( "trigger", heli );//<- waittill he reaches the node
	
	heli thread vehicle_detachfrompath();//<- name says it
	heli vehicle_land();//<- ditto

         ( heli do stuff.....)

     heli vehicle_resumepath();//carry on with ur path heli, carry on



im sure u know u have to define ur heli and include the _utility.gsc as you should have done from the start and this should all be easy then.
Share |
tschiggen
General Member
Since: Oct 19, 2010
Posts: 122
Last: Feb 16, 2012
[view latest posts]
Level 4
Category: CoD4 SP Mapping
Posted: Tuesday, Jun. 7, 2011 12:58 pm
ok it worked. thank you.


so now another question xD:

when i use level.player unlink();
the player is inside the model. it just looks ugly. so i tried

level.player movex(10,1,0,0);

but it says

"entity 0 is not an ..."

so it doesnt work with the player. someone got a idea how i could move the player outside ?
Share |
sam_fisher3000
General Member
Since: Apr 18, 2007
Posts: 816
Last: Jul 16, 2016
[view latest posts]
Level 7
Im a fan of MODSonair
Category: CoD4 SP Mapping
Posted: Tuesday, Jun. 7, 2011 04:14 pm
I remember posting a COD2 jeep tutorial. There is this one command that moves the player away from the vehicle automatically. It looks more like an animation.

http://modsonline.com/Tutorials-read-488.html

The script is a bit long but I believe you can understand. The player links to a dummy and the dummy move to another position.

This is the part

Code:

{
blah blah //your codes
thread jeepGetOut(); //important
}


jeepGetOut()
{
jeep = getent ("jeep","targetname"); //game finds the jeep
dummy = spawn("script_origin", jeep
getTagOrigin("tag_player_passenger") ); //finds the tag
dummy.angles = jeep getTagAngles("tag_player_passenger");

level.player unlink(); //unlink the player from the vehicle
level.player linkto (dummy); //link to dummy

endPos = (736, -1392, 24); //the location where you want to get off
dummy moveTo(dummy.origin + (0,0,10), .6, .3, .2); //leave it
dummy moveTo(endPos, .6, .3, .2); //leave it unless
wait .5; //wait

level.player unlink(); //gets off of the dummy

}


This code should work. Basically, it's linking to a dummy. I haven't used it yet in COD4 b/c I was kinda lazy. Will use it for final release.

Share |
voidsource
General Member
Since: May 5, 2007
Posts: 1513
Last: Sep 1, 2013
[view latest posts]
Level 8
Category: CoD4 SP Mapping
Posted: Wednesday, Jun. 8, 2011 01:43 am
i know wat ur talking and wat u want. if you seen my video of the map update when i have the player link to the heli u can also unlink it smoothly if you hel lerp player view to tag and vice versa when you unlink him. btw wat vehicle are you using and where are you linking him to?
Share |
tschiggen
General Member
Since: Oct 19, 2010
Posts: 122
Last: Feb 16, 2012
[view latest posts]
Level 4
Category: CoD4 SP Mapping
Posted: Wednesday, Jun. 8, 2011 12:32 pm
i use blackhawk model and i link him to "tag_passenger"
Share |
Restricted Access Topic is Locked
Page
Next Page
subscribe
MODSonline.com Forums : Call of Duty 4 : CoD4 SP Mapping

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»