Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » I figured out how the Airstrip works
I figured out how the Airstrip works [message #57789] Sun, 14 December 2003 05:19 Go to next message
jonwil is currently offline  jonwil
Messages: 3557
Registered: February 2003
Karma: 0
General (3 Stars)

Basicly, here is the scoop.
Firstly, all "airstrips" (i.e. everything under the Airstrip item in Buildings, have settings for:
Cinematic Slot Index
Drop-Off Cinematic
and some other related items that arent important.
What happens is this:
When the vechicle is purchased, the game creates an instance of the Drop-Off Cinematic object (known as CnC_Nod_Cargo_Drop in stock renegade). This object has Test_Cinematic attatched to it with the cinematic script that is to be used attatched. (i.e. c&c_c130drop.txt in standard renegade)
Also, the game creates the internal data structure behind the Test_Cinematic script (i.e. an instance of the class Test_Cinematic)
Then, at some point, AirStripGameObj::Start_Cinematic gets called.
This function calls VehicleFactoryGameObj::Create_Vehicle which creates the vechicle. It then does some stuff and gets to a point where it calls the Get_Name method of the object (which in this case will be the string "Test_Cinematic"). Then, it compares it to the hardcoded string "Test_Cinematic". Should it not match, it keeps checking all the other script objects. If it fails to find Test_Cinematic, it will break out without doing anything (not sure if that means the vechicle isnt created or if its just created wierdly). Once it finds Test_Cinematic, it takes the Cinematic Slot Index and adds 10000 to it. Then, it calls the Custom method of the object for which Get_Name returns Test_Cinematic. It passes index+10000 as the Message and the ID of the vechicle created by Create_Vechicle as the parameter. Also, interestingly, it passes the ScriptableGameObj corresponding to the Airstrip as both the Sender and the Reciever of the message.
When Test_Cinematic recieves the message, it puts the ID into the right slot. Then, it can be accessed with Attach_To_Bone or whatever as though it was created with Create_Object.

So, it has been confirmed that the airstrip and nod vechicle purchasing in C&C Renegade is most definatly a Big Ugly Hack(TM)

But this discovery does open up the posibility to create a script that does something (which includes creating 1 or more objects) then starts a cinematic and passes the IDs of the objects its just created into the cinematic via this functionality. Or at least I think so anyway Razz
I figured out how the Airstrip works [message #57798] Sun, 14 December 2003 07:30 Go to previous messageGo to next message
PsycoArmy is currently offline  PsycoArmy
Messages: 235
Registered: April 2003
Karma: 0
Recruit
Good work on figuring this out.

http://www.boomspeed.com/psycoarmy2/boxhead.gif
I figured out how the Airstrip works [message #57799] Sun, 14 December 2003 07:59 Go to previous messageGo to next message
cowmisfit is currently offline  cowmisfit
Messages: 2035
Registered: May 2003
Karma: 0
General (2 Stars)
Great Job...*only wish i understood it Razz *

http://img299.echo.cx/img299/7085/philly1ge.jpg
I figured out how the Airstrip works [message #57816] Sun, 14 December 2003 09:32 Go to previous messageGo to next message
Renx is currently offline  Renx
Messages: 2321
Registered: April 2003
Location: Canada
Karma: 0
General (2 Stars)
Category Moderator
Interesting. Is there anything new that could be done now that you've figured this out? example? Thanks

~Canucck

http://www.sloganizer.net/en/style7,Espion.png

Blazer

...RG made me ugly
I figured out how the Airstrip works [message #57818] Sun, 14 December 2003 09:36 Go to previous messageGo to next message
ericlaw02
Messages: 185
Registered: June 2003
Location: Hong Kong
Karma: 0
Recruit
I don't get a clue what are you saying...
Maybe explain it easier to understand. Very Happy
I figured out how the Airstrip works [message #57839] Sun, 14 December 2003 12:22 Go to previous messageGo to next message
IRON FART
Messages: 1989
Registered: September 2003
Location: LOS ANGELES
Karma: 0
General (1 Star)
Sounds fun.
Very Happy


http://www.baclan.org/albums/album05/dasmodell.jpg
Quote:


Quote from IRC
<[Digital]> get man_fucking_a_car.mpg
<[Digital]> ah fuck wrong window

I figured out how the Airstrip works [message #57842] Sun, 14 December 2003 12:52 Go to previous messageGo to next message
Adavanze is currently offline  Adavanze
Messages: 96
Registered: September 2003
Location: England
Karma: 0
Recruit

Yeah, i remember doing some research into this a while back, came up with the idea of making a version of cnc_c130drop.txt for GDI, never did actually make it.. heh

http://sc0rian.cjb.net/drkflow/adavanze.jpg
I figured out how the Airstrip works [message #57861] Sun, 14 December 2003 17:03 Go to previous message
bigwig992 is currently offline  bigwig992
Messages: 555
Registered: February 2003
Location: Nashua, NH
Karma: 0
Colonel
Correct me if I'm wrong, but you could take vehicle ID's and plug them in to text cinematics?

-The ONLY Renegade fan to pee off a school.
http://www.n00bstories.com/image.fetch.php?id=1055662786
http://www.n00bstories.com/stats/renegade_stats.php?player=bigwig992&team=gdi
Previous Topic: Soundtrack files.
Next Topic: W3D Importer for Max 5 Now Available
Goto Forum:
  


Current Time: Fri Jan 10 13:09:38 MST 2025

Total time taken to generate the page: 0.00676 seconds