Home » Renegade Discussions » Mod Forum » Source Files
Source Files [message #266082] |
Wed, 13 June 2007 23:54 |
_SSnipe_
Messages: 4121 Registered: May 2007 Location: Riverside Southern Califo...
Karma: 0
|
General (4 Stars) |
|
|
how can i make the random char crate also turn u into gdi units if ur on nod and nod ir ur on gdi as well so it can randomly turn u into ur team or ur emenys? i thought putting the gdi stuff form the crate to nod section but no look i messed with it for hours but no luck
|
|
|
Re: Source Files [message #266083 is a reply to message #266082] |
Thu, 14 June 2007 00:15 |
|
Viking
Messages: 1692 Registered: July 2005 Location: Earth
Karma: 0
|
General (1 Star) |
|
|
hew doze i makes yew stoop poostingzing
QUOTES
"The Renegade community revolves around having something awesome, and not sharing it so you can be on top of the mountain." -Canadacdn
Crimson wrote on Thu, 17 May 2007 05:22 |
Memphis wrote on Tue, 15 May 2007 03:54 | ...fatally die to death...
|
I don't know if you meant to do that, but triple redundancy for teh win. I LOL'ed.
|
Awesome l337 people= Icedog90, Blazea58, Canadacdn, Crimson, jonwil
|
|
|
|
|
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: 0
|
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.
|
|
|
|
Re: Source Files [message #266188 is a reply to message #266186] |
Thu, 14 June 2007 10:28 |
|
reborn
Messages: 3231 Registered: September 2004 Location: uk - london
Karma: 0
|
General (3 Stars) |
|
|
joe937465 wrote on Thu, 14 June 2007 13:18 | i did that the first time but never got gdi chars but ty i thibnk i forgot the 20 instead of 10 part >.< but ty ill get to that 2
|
Make sure you change both the GDI and Nod random character array, chances are 50/50 to get a char from eaither team in the example I showed.
joe937465 wrote on Thu, 14 June 2007 13:18 |
also how do u make them in those green boxes on the post?
|
Huh?
[Updated on: Thu, 14 June 2007 10:28] Report message to a moderator
|
|
|
Re: Source Files [message #266198 is a reply to message #266082] |
Thu, 14 June 2007 10:46 |
_SSnipe_
Messages: 4121 Registered: May 2007 Location: Riverside Southern Califo...
Karma: 0
|
General (4 Stars) |
|
|
lol let me make it easier the green box that has the codes u posted on this forum to show me how to do them how u do that?
|
|
|
Re: Source Files [message #266202 is a reply to message #266198] |
Thu, 14 June 2007 10:52 |
|
reborn
Messages: 3231 Registered: September 2004 Location: uk - london
Karma: 0
|
General (3 Stars) |
|
|
joe937465 wrote on Thu, 14 June 2007 13:46 | lol let me make it easier the green box that has the codes u posted on this forum to show me how to do them how u do that?
|
Wrap the text in "[ code][ /code]" tags (but do not use the spaces like I did inbetween the braces.
[Updated on: Thu, 14 June 2007 10:53] Report message to a moderator
|
|
|
|
|
Re: Source Files [message #266270 is a reply to message #266240] |
Thu, 14 June 2007 16:32 |
|
reborn
Messages: 3231 Registered: September 2004 Location: uk - london
Karma: 0
|
General (3 Stars) |
|
|
joe937465 wrote on Thu, 14 June 2007 17:10 | cool thanks for the tip
new question
how can i add new type of crates?
|
Create new scripts for them in the crates.cpp file.
|
|
|
|
Re: Source Files [message #266273 is a reply to message #266082] |
Thu, 14 June 2007 16:42 |
_SSnipe_
Messages: 4121 Registered: May 2007 Location: Riverside Southern Califo...
Karma: 0
|
General (4 Stars) |
|
|
ok heres something reborn
im going to make new powerup spanwers right
but i want to know how to make it where when u get a sort of weapon
so u cant pick another pack up
like for example on this server ok u got this pack to give u more health and weapons and it comes with a weapon if u have that weapon u cant pick any other power up at all how do i do that?
|
|
|
Re: Source Files [message #266277 is a reply to message #266082] |
Thu, 14 June 2007 16:54 |
|
reborn
Messages: 3231 Registered: September 2004 Location: uk - london
Karma: 0
|
General (3 Stars) |
|
|
Write a script that either disallows a player to pick up pow's, or removes them when they are picked up, then attach that script to the sender when they are granted the special power up spawner you are making.
Remember to detroy the script if they are killed.
|
|
|
|
|
Re: Source Files [message #266348 is a reply to message #266082] |
Thu, 14 June 2007 22:09 |
_SSnipe_
Messages: 4121 Registered: May 2007 Location: Riverside Southern Califo...
Karma: 0
|
General (4 Stars) |
|
|
o andd reborn i did that source code but i got like 20 crates none of them were gdi chars and i was on nod and i set it to only give chars
|
|
|
Re: Source Files [message #266398 is a reply to message #266082] |
Fri, 15 June 2007 02:53 |
|
reborn
Messages: 3231 Registered: September 2004 Location: uk - london
Karma: 0
|
General (3 Stars) |
|
|
I am guessing you only editted the GDI random char array and not the Nod character array.
|
|
|
Re: Source Files [message #266465 is a reply to message #266082] |
Fri, 15 June 2007 09:59 |
_SSnipe_
Messages: 4121 Registered: May 2007 Location: Riverside Southern Califo...
Karma: 0
|
General (4 Stars) |
|
|
umm i edited both the same..........and just sat there getting the crate for a while and didnt work hmmmm
let me double check everything *sigh*
EDIT:when u say array? whats that word mean? the order?
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" }
};
char *RandomNodChar[20][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" },
{ "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" }
};
see how the names are the same? like officer? maybe i should change it to GDI Officer or NOD offcier or somthing?
[Updated on: Fri, 15 June 2007 10:03] Report message to a moderator
|
|
|
Re: Source Files [message #266471 is a reply to message #266465] |
Fri, 15 June 2007 10:15 |
|
reborn
Messages: 3231 Registered: September 2004 Location: uk - london
Karma: 0
|
General (3 Stars) |
|
|
joe937465 wrote on Fri, 15 June 2007 12:59 |
see how the names are the same? like officer? maybe i should change it to GDI Officer or NOD offcier or somthing?
|
array http://en.wikipedia.org/wiki/Array
This is an array:
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 yeah.. Change the officer names.
|
|
|
Re: Source Files [message #266497 is a reply to message #266082] |
Fri, 15 June 2007 10:57 |
_SSnipe_
Messages: 4121 Registered: May 2007 Location: Riverside Southern Califo...
Karma: 0
|
General (4 Stars) |
|
|
ok let me change the names and try that out grr i wont be able to test till i get back from school >.<
but before do u think this will work>
char *RandomGDIChar[20][2] =
{
{ "GDI Officer", "CnC_GDI_MiniGunner_1Off" },
{ "GDI Rocket Soldier", "CnC_GDI_RocketSoldier_1Off" },
{ "GDI Sydney", "CnC_Sydney" },
{ "GDI Deadeye", "CnC_GDI_MiniGunner_2SF" },
{ "GDI Gunner", "CnC_GDI_RocketSoldier_2SF" },
{ "GDI Patch", "CnC_GDI_Grenadier_2SF" },
{ "GDI Havoc", "CnC_GDI_MiniGunner_3Boss" },
{ "GDI Prototype Sydney", "CnC_Sydney_PowerSuit" },
{ "GDI Mobius", "CnC_Ignatio_Mobius" },
{ "GDI Hotwire", "CnC_GDI_Engineer_2SF" },
{ "NOD Officer", "CnC_Nod_Minigunner_1Off" },
{ "NOD Rocket Soldier", "CnC_Nod_RocketSoldier_1Off" },
{ "NOD Chem Warrior", "CnC_Nod_FlameThrower_1Off" },
{ "NOD Blackhand Sniper", "CnC_Nod_Minigunner_2SF" },
{ "NOD Laser Chaingunner", "CnC_Nod_RocketSoldier_2SF" },
{ "NOD Stealth Black Hand", "CnC_Nod_FlameThrower_2SF" },
{ "NOD Sakura", "CnC_Nod_Minigunner_3Boss" },
{ "NOD Raveshaw", "CnC_Nod_RocketSoldier_3Boss" },
{ "NOD Mendoza", "CnC_Nod_FlameThrower_3Boss" },
{ "NOD Technician", "CnC_Nod_Technician_0" }
};
char *RandomNodChar[20][2] =
{
{ "NOD Officer", "CnC_Nod_Minigunner_1Off" },
{ "NOD Rocket Soldier", "CnC_Nod_RocketSoldier_1Off" },
{ "NOD Chem Warrior", "CnC_Nod_FlameThrower_1Off" },
{ "NOD Blackhand Sniper", "CnC_Nod_Minigunner_2SF" },
{ "NOD Laser Chaingunner", "CnC_Nod_RocketSoldier_2SF" },
{ "NOD Stealth Black Hand", "CnC_Nod_FlameThrower_2SF" },
{ "NOD Sakura", "CnC_Nod_Minigunner_3Boss" },
{ "NOD Raveshaw", "CnC_Nod_RocketSoldier_3Boss" },
{ "NOD Mendoza", "CnC_Nod_FlameThrower_3Boss" },
{ "NOD Technician", "CnC_Nod_Technician_0" },
{ "GDI Officer", "CnC_GDI_MiniGunner_1Off" },
{ "GDI Rocket Soldier", "CnC_GDI_RocketSoldier_1Off" },
{ "GDI Sydney", "CnC_Sydney" },
{ "GDI Deadeye", "CnC_GDI_MiniGunner_2SF" },
{ "GDI Gunner", "CnC_GDI_RocketSoldier_2SF" },
{ "GDI Patch", "CnC_GDI_Grenadier_2SF" },
{ "GDI Havoc", "CnC_GDI_MiniGunner_3Boss" },
{ "GDI Prototype Sydney", "CnC_Sydney_PowerSuit" },
{ "GDI Mobius", "CnC_Ignatio_Mobius" },
{ "GDI Hotwire", "CnC_GDI_Engineer_2SF" }
};
[Updated on: Fri, 15 June 2007 11:06] Report message to a moderator
|
|
|
|
Goto Forum:
Current Time: Mon Dec 30 04:45:43 MST 2024
Total time taken to generate the page: 0.01028 seconds
|