Home » Renegade Discussions » Mod Forum » Source Files
Re: Source Files [message #266131 is a reply to message #266082] |
Thu, 14 June 2007 03:26 |
|
reborn
Messages: 3231 Registered: September 2004 Location: uk - london
Karma:
|
General (3 Stars) |
|
|
Hmm, I am hesitant to jump back into your topics, I feel I might be opening another can of worms for myself. Anyway...
To do this you need to edit the source code of SSAOW. You need to open the crates.cpp file.
In the crates.cpp file there is a randomchar array, which will look like this:
char *RandomGDIChar[10][2] =
{
{ "Officer", "CnC_GDI_MiniGunner_1Off" },
{ "Rocket Soldier", "CnC_GDI_RocketSoldier_1Off" },
{ "Sydney", "CnC_Sydney" },
{ "Deadeye", "CnC_GDI_MiniGunner_2SF" },
{ "Gunner", "CnC_GDI_RocketSoldier_2SF" },
{ "Patch", "CnC_GDI_Grenadier_2SF" },
{ "Havoc", "CnC_GDI_MiniGunner_3Boss" },
{ "Prototype Sydney", "CnC_Sydney_PowerSuit" },
{ "Mobius", "CnC_Ignatio_Mobius" },
{ "Hotwire", "CnC_GDI_Engineer_2SF" }
};
char *RandomNodChar[10][2] =
{
{ "Officer", "CnC_Nod_Minigunner_1Off" },
{ "Rocket Soldier", "CnC_Nod_RocketSoldier_1Off" },
{ "Chem Warrior", "CnC_Nod_FlameThrower_1Off" },
{ "Blackhand Sniper", "CnC_Nod_Minigunner_2SF" },
{ "Laser Chaingunner", "CnC_Nod_RocketSoldier_2SF" },
{ "Stealth Black Hand", "CnC_Nod_FlameThrower_2SF" },
{ "Sakura", "CnC_Nod_Minigunner_3Boss" },
{ "Raveshaw", "CnC_Nod_RocketSoldier_3Boss" },
{ "Mendoza", "CnC_Nod_FlameThrower_3Boss" },
{ "Technician", "CnC_Nod_Technician_0" }
};
You could either edit the random character code to only look at one array and make the list include all characters (which is the better way to do it). Or you could do it the shitty way but that will still work and be easier for you.
for the randon GDI char array change it to:
char *RandomGDIChar[20][2] =
{
{ "Officer", "CnC_GDI_MiniGunner_1Off" },
{ "Rocket Soldier", "CnC_GDI_RocketSoldier_1Off" },
{ "Sydney", "CnC_Sydney" },
{ "Deadeye", "CnC_GDI_MiniGunner_2SF" },
{ "Gunner", "CnC_GDI_RocketSoldier_2SF" },
{ "Patch", "CnC_GDI_Grenadier_2SF" },
{ "Havoc", "CnC_GDI_MiniGunner_3Boss" },
{ "Prototype Sydney", "CnC_Sydney_PowerSuit" },
{ "Mobius", "CnC_Ignatio_Mobius" },
{ "Hotwire", "CnC_GDI_Engineer_2SF" }
{ "Officer", "CnC_Nod_Minigunner_1Off" },
{ "Rocket Soldier", "CnC_Nod_RocketSoldier_1Off" },
{ "Chem Warrior", "CnC_Nod_FlameThrower_1Off" },
{ "Blackhand Sniper", "CnC_Nod_Minigunner_2SF" },
{ "Laser Chaingunner", "CnC_Nod_RocketSoldier_2SF" },
{ "Stealth Black Hand", "CnC_Nod_FlameThrower_2SF" },
{ "Sakura", "CnC_Nod_Minigunner_3Boss" },
{ "Raveshaw", "CnC_Nod_RocketSoldier_3Boss" },
{ "Mendoza", "CnC_Nod_FlameThrower_3Boss" },
{ "Technician", "CnC_Nod_Technician_0" }
};
And do the same for the Nod randon char array too. Notice how I changed the nu,ber from 10 to 20, this is because very basically that number declares how many characters are in your list.
Obviously you will need to work from the source code you have already started to edit for other stuff.
|
|
|
|
|
Source Files
|
|
|
Re: Source Files
By: Viking on Thu, 14 June 2007 00:15
|
|
|
Re: Source Files
By: Zion on Thu, 14 June 2007 01:02
|
|
|
Re: Source Files
|
|
|
Re: Source Files
By: reborn on Thu, 14 June 2007 03:26
|
|
|
Re: Source Files
|
|
|
Re: Source Files
By: reborn on Thu, 14 June 2007 10:28
|
|
|
Re: Source Files
|
|
|
Re: Source Files
By: reborn on Thu, 14 June 2007 10:52
|
|
|
Re: Source Files
|
|
|
Re: Source Files
By: reborn on Thu, 14 June 2007 16:32
|
|
|
Re: Source Files
By: Slave on Thu, 14 June 2007 14:41
|
|
|
Re: Source Files
|
|
|
Re: Source Files
|
|
|
Re: Source Files
By: reborn on Thu, 14 June 2007 16:54
|
|
|
Re: Source Files
|
|
|
Re: Source Files
|
|
|
Re: Source Files
|
|
|
Re: Source Files
By: reborn on Fri, 15 June 2007 02:53
|
|
|
Re: Source Files
|
|
|
Re: Source Files
By: reborn on Fri, 15 June 2007 10:15
|
|
|
Re: Source Files
|
|
|
Re: Source Files
|
Goto Forum:
Current Time: Sat Dec 21 08:05:18 MST 2024
Total time taken to generate the page: 0.00830 seconds
|