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

Members Online

»
0 Active | 7 Guests
Online:

LATEST FORUM THREADS

»
warfare
CoD4 Map + Mod Releases
Voting menu on maps
CoD+UO General
Hauling 911
CoDBO3 General

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 Scripting
Scripting and coding with Call of Duty 4.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername, novemberdobby
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: Stabilize blackhawk for fastrope?
pinedsman
General Member
Since: Feb 27, 2007
Posts: 85
Last: Nov 28, 2012
[view latest posts]
Level 3
Category: CoD4 Scripting
Posted: Sunday, Sep. 13, 2009 03:13 pm
Hey folks,

So I have a blackhawk flying around my map (with the player in it), and I have it fly somewhere and then I tell it to unload all the passengers using heli notify("unload") .

Everything works fine except that I can't get the damn heli to stabilize. So the rope (and the ai, but they autocorrect when they move) is never aligned with the ground. Sometimes, the rope is too high off the ground, and sometimes, the rope is clipping with the ground. Take not this is without changing anything in the script! I just restart the level and wait until the heli unloads and I get a different result.

Anyone have experience with this? I'm sure there has to be some command (or set of commands) that tell helis to stop moving.
Share |
voidsource
General Member
Since: May 5, 2007
Posts: 1513
Last: Sep 1, 2013
[view latest posts]
Level 8
Category: CoD4 Scripting
Posted: Sunday, Sep. 13, 2009 05:08 pm
y dont u have the heli stop via radiant, theres a way. Ive used it on my map but its for ai's im pretty sure it will work for you as well. In your node where the heli is suppose to stop give it these key values

Code:


key: script_stopnode
Value: 1

key: script_unload
value: both



as for your height issue, try that and see if the heli auto does the height thing. if not i guess u have to adjust it. on script_unload the value of "both" is the one found in the _heliname.gsc if you look in them they have other ways of unloading. If you use the other term found in there _heliname.gsc im pretty sure they would unload another way. but i havent tested that out. _heliname.gsc is a sub for w/e ur helis name is.

edited on Sep. 13, 2009 01:09 pm by voidsource
Share |
pinedsman
General Member
Since: Feb 27, 2007
Posts: 85
Last: Nov 28, 2012
[view latest posts]
Level 3
Category: CoD4 Scripting
Posted: Sunday, Sep. 13, 2009 07:22 pm
Oh wow, that's awesome! It even auto-adjusts the height! [thumbs_up]

Thanks!
Share |
voidsource
General Member
Since: May 5, 2007
Posts: 1513
Last: Sep 1, 2013
[view latest posts]
Level 8
Category: CoD4 Scripting
Posted: Sunday, Sep. 13, 2009 08:05 pm
glad to see that worked. and are you doing th is for a new sp map :D :?
Share |
pinedsman
General Member
Since: Feb 27, 2007
Posts: 85
Last: Nov 28, 2012
[view latest posts]
Level 3
Category: CoD4 Scripting
Posted: Sunday, Sep. 13, 2009 08:41 pm
Yeah, lots of helicopter sequences! I'm still working on a proof-of-concept right now, which is why trying to learn all the helicopter functionality. [biggrin]
Share |
voidsource
General Member
Since: May 5, 2007
Posts: 1513
Last: Sep 1, 2013
[view latest posts]
Level 8
Category: CoD4 Scripting
Posted: Monday, Sep. 14, 2009 02:56 am
make 2 heli's crash with each other and make the player be in one of them and he has to jump out before it crashes, but player has to jump to a roof or something. XD at would be so cool. I already have something plan for my next map. hopefully it will be smaller than the one imma bout to release.
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty 4 : CoD4 Scripting

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

»