logo   login
right
Home Forums Downloads Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Forum Info
Forum Members: 18,581
Total Threads: 8,669
Posts: 94,547

Administrators:
DeeZire, Redemption

There are currently 40 users online.
Partner Links

Free Credit Repair

Learn the Ticket Broker Secrets
Advertisements


Generals & Zero Hour Editing Discuss any modding related issues to do with Generals and Zero Hour here.

Reply
 
LinkBack Thread Tools
Old 02-23-2003, 01:17 PM   #1 (permalink)
Junior Member
 
Join Date: Feb 2003
Location: UK
Posts: 7
Default Creating Passenger Spaces in units

I'm managed to siphon the code from the Chinese APC thing and applied it to my Crusaders and Paladins. Here we go...

In the FactionUnit.ini put this set of code in the behaviour section as module 10:

Behavior = TransportContain ModuleTag_10
PassengersAllowedToFire = Yes
Slots = 1
InitialPayload = AmericaInfantryRanger 1
ScatterNearbyOnExit = No
HealthRegen%PerSec = 10
DamagePercentToUnits = 10%
AllowInsideKindOf = INFANTRY
ExitDelay = 250
NumberOfExitPaths = 3 ; Defaults to 1. Set 0 to not use ExitStart/ExitEnd, set higher than 1 to use ExitStart01-nn/ExitEnd01-nn
GoAggressiveOnExit = Yes ; AI Will tell people to set their mood to Aggressive on exiting
End

When built, the unit will contain one Ranger.

Now, in CommandSet.ini under the CrusaderTankCommandSet insert two new things:


CommandSet AmericaTankCrusaderCommandSet
1 = Command_ConstructAmericaVehicleBattleDrone
2 = Command_ConstructAmericaVehicleScoutDrone
3 = Command_TransportExit
4 = Command_Evacuate
9 = Command_AttackMove
11 = Command_Guard
12 = Command_Stop
End

3 and 4 enable the tank to show the contained trooper and deploy the trooper if necessary. Try raising the cost of the tank to make it fairer...

That is all. :|
ErAzAnGeL is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-24-2003, 03:58 PM   #2 (permalink)
Senior Member
 
Join Date: Dec 2002
Posts: 1,031
Send a message via ICQ to Phoib Send a message via MSN to Phoib
Default Re: Creating Passenger Spaces in units

Quote:
Originally Posted by ErAzAnGeL
In the FactionUnit.ini put this set of code in the behaviour section as module 10:
Please note, that if you have a custom vehicle, and want to add this yourself: Make sure, real sure, that there are no double ModuleTag_XX's, (where XX can be any integer between 01 and 99) otherwise, you can't get the game to start!

Quote:
Originally Posted by ErAzAnGeL
Behavior = TransportContain ModuleTag_10
PassengersAllowedToFire = Yes
Slots = 1
InitialPayload = AmericaInfantryRanger 1
ScatterNearbyOnExit = No
HealthRegen%PerSec = 10
DamagePercentToUnits = 10%
AllowInsideKindOf = INFANTRY
ExitDelay = 250
NumberOfExitPaths = 3 ; Defaults to 1. Set 0 to not use ExitStart/ExitEnd, set higher than 1 to use ExitStart01-nn/ExitEnd01-nn
GoAggressiveOnExit = Yes ; AI Will tell people to set their mood to Aggressive on exiting
End

When built, the unit will contain one Ranger.

Now, in CommandSet.ini under the CrusaderTankCommandSet insert two new things:

CommandSet AmericaTankCrusaderCommandSet
1 = Command_ConstructAmericaVehicleBattleDrone
2 = Command_ConstructAmericaVehicleScoutDrone
3 = Command_TransportExit
9 = Command_Evacuate
10 = Command_AttackMove
11 = Command_Guard
12 = Command_Stop
End
To have more then one trooper, add as many (Italic) Command_TransportExit as there are (Underlined) slots, so with slots = 6 you'll have 3 till 8 as Command_TransportExit.
Phoib is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-24-2003, 05:56 PM   #3 (permalink)
Junior Member
 
Join Date: Feb 2003
Location: UK
Posts: 7
Default

Thanks Phoib, i realise that could have been misinterpreted.
ErAzAnGeL is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-26-2003, 12:47 AM   #4 (permalink)
Senior Member
 
Join Date: Jan 2003
Location: Bunbury, Western Australia
Posts: 130
Default At last, problem solved!

AT LAST!!

The last part of that (CommandSet stuff) had been a continual stumbling block for me. Thanks for posting that so no one else will end up overlooking the obvious. Perhaps Deezire could post this in the tutorials section?
Sponge is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-26-2003, 09:35 AM   #5 (permalink)
Senior Member
 
Join Date: Dec 2002
Posts: 1,031
Send a message via ICQ to Phoib Send a message via MSN to Phoib
Default

It will be featured in DZ's tutorials, but only after the community is ready for it.

Currently, nobody really understands the way the code is made, save DZ, RV and Flyby. (Flyby gave everyone a perfect hint though!)

Only AFTER you understand the principles of object orientated programming, one can begin to write new stuff.
Phoib is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-26-2003, 12:19 PM   #6 (permalink)
Junior Member
 
Join Date: Feb 2003
Location: UK
Posts: 7
Default

That is very true, i'm currently having an absolute nightmare implementing the new (what i call) SecretService unit... Blast the damned ini's!

Oh, and bugger the damn skins too!
ErAzAnGeL is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-26-2003, 02:20 PM   #7 (permalink)
Senior Member
 
Join Date: Dec 2002
Posts: 1,031
Send a message via ICQ to Phoib Send a message via MSN to Phoib
Default

Start small.

Don't try to make a 1337 unit the minute you open the ini's.

You fail. You fail misserably. Horribly. :devil:
Phoib is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-26-2003, 03:24 PM   #8 (permalink)
Junior Member
 
Join Date: Feb 2003
Location: UK
Posts: 7
Default

Nothings managed to go horribly bastard-like yet, however i do have the current problem of every change i make creating "serious errors". I mean, fuck, could they not have made an output file to locate the problem of the 'error'?
ErAzAnGeL is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-26-2003, 04:27 PM   #9 (permalink)
Senior Member
 
Join Date: Dec 2002
Posts: 1,031
Send a message via ICQ to Phoib Send a message via MSN to Phoib
Default

Searchest these forums, and thy prayers shall be answered :angel:
Phoib is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-27-2003, 10:57 AM   #10 (permalink)
Junior Member
 
Join Date: Feb 2003
Location: USA
Posts: 2
Default

sorry for that nub question,
but where do i find this *.ini files, because i searched several times through the generals data files, but found nothing .

thx for answering my question.

greetz
Reddenz is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating New Country Manoil Red Alert 2 & Yuri's Revenge Editing 9 11-28-2005 12:21 AM
Can model names have spaces in them? oobootsy1 Generals & Zero Hour Editing 6 08-05-2004 03:36 PM
Creating a 4th side help aladin Generals & Zero Hour Editing 4 07-08-2003 01:24 PM
Creating new models?? Nuker Generals & Zero Hour Editing 1 04-01-2003 02:52 AM
Creating new .big files Nuker Generals & Zero Hour Editing 5 03-21-2003 09:09 PM


All times are GMT -4. The time now is 12:41 PM.


Design By: Miner Skinz.com
Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.