Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Source Files
Source Files [message #266082] Wed, 13 June 2007 23:54 Go to next message
_SSnipe_ is currently offline  _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 Go to previous messageGo to next message
Viking is currently offline  Viking
Messages: 1692
Registered: July 2005
Location: Earth
Karma: 0
General (1 Star)
hew doze i makes yew stoop poostingzing


Toggle Spoiler


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 #266094 is a reply to message #266082] Thu, 14 June 2007 01:02 Go to previous messageGo to next message
Zion is currently offline  Zion
Messages: 2722
Registered: April 2006
Karma: 1
General (2 Stars)
wit teh l33t h4x

u h4x in levedit an chane ir aruondf if ur l33t liek my an my l33t frends is eesy butt u stopid so u k33p askin shite quustions an spam furoms wit stopid quustions so k33p m3551n9 rund wit ir
Re: Source Files [message #266097 is a reply to message #266082] Thu, 14 June 2007 01:15 Go to previous messageGo to next message
_SSnipe_ is currently offline  _SSnipe_
Messages: 4121
Registered: May 2007
Location: Riverside Southern Califo...
Karma: 0
General (4 Stars)
the forums are to ask questions if u need help and people stop answering my other post after a while so i make a new one with new subject its not like i just random ask i have tryed to do this for hours with no luck so this is my last place to ask for help Wink
Re: Source Files [message #266131 is a reply to message #266082] Thu, 14 June 2007 03:26 Go to previous messageGo to next message
reborn is currently offline  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 #266186 is a reply to message #266082] Thu, 14 June 2007 10:18 Go to previous messageGo to next message
_SSnipe_ is currently offline  _SSnipe_
Messages: 4121
Registered: May 2007
Location: Riverside Southern Califo...
Karma: 0
General (4 Stars)
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 Very Happy



also how do u make them in those green boxes on the post?
Re: Source Files [message #266188 is a reply to message #266186] Thu, 14 June 2007 10:28 Go to previous messageGo to next message
reborn is currently offline  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 Very Happy



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 Go to previous messageGo to next message
_SSnipe_ is currently offline  _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 Go to previous messageGo to next message
reborn is currently offline  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 #266240 is a reply to message #266082] Thu, 14 June 2007 14:10 Go to previous messageGo to next message
_SSnipe_ is currently offline  _SSnipe_
Messages: 4121
Registered: May 2007
Location: Riverside Southern Califo...
Karma: 0
General (4 Stars)
cool thanks for the tip


new question

how can i add new type of crates?
Re: Source Files [message #266250 is a reply to message #266082] Thu, 14 June 2007 14:41 Go to previous messageGo to next message
Slave is currently offline  Slave
Messages: 607
Registered: December 2006
Karma: 0
Colonel
New question: Why do you insist in making the most ambitious mod in the universe with only a week of modding experience?
Re: Source Files [message #266270 is a reply to message #266240] Thu, 14 June 2007 16:32 Go to previous messageGo to next message
reborn is currently offline  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 #266271 is a reply to message #266082] Thu, 14 June 2007 16:40 Go to previous messageGo to next message
_SSnipe_ is currently offline  _SSnipe_
Messages: 4121
Registered: May 2007
Location: Riverside Southern Califo...
Karma: 0
General (4 Stars)
im getting pretty good everything u tell me im remembering and im moving up Very Happy
Re: Source Files [message #266273 is a reply to message #266082] Thu, 14 June 2007 16:42 Go to previous messageGo to next message
_SSnipe_ is currently offline  _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 Go to previous messageGo to next message
reborn is currently offline  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 #266310 is a reply to message #266082] Thu, 14 June 2007 18:38 Go to previous messageGo to next message
_SSnipe_ is currently offline  _SSnipe_
Messages: 4121
Registered: May 2007
Location: Riverside Southern Califo...
Karma: 0
General (4 Stars)
wow that sucks beaucase i cant make them im not that smart >.<
Re: Source Files [message #266322 is a reply to message #266082] Thu, 14 June 2007 19:29 Go to previous messageGo to next message
_SSnipe_ is currently offline  _SSnipe_
Messages: 4121
Registered: May 2007
Location: Riverside Southern Califo...
Karma: 0
General (4 Stars)
what do KAK_Vehiclea_Log
and
MAC_Vehicle

scripts do?
Re: Source Files [message #266348 is a reply to message #266082] Thu, 14 June 2007 22:09 Go to previous messageGo to next message
_SSnipe_ is currently offline  _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 Go to previous messageGo to next message
reborn is currently offline  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 Go to previous messageGo to next message
_SSnipe_ is currently offline  _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 Go to previous messageGo to next message
reborn is currently offline  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 Go to previous messageGo to next message
_SSnipe_ is currently offline  _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

Re: Source Files [message #266676 is a reply to message #266082] Sat, 16 June 2007 11:26 Go to previous message
_SSnipe_ is currently offline  _SSnipe_
Messages: 4121
Registered: May 2007
Location: Riverside Southern Califo...
Karma: 0
General (4 Stars)
so ya Sad
Previous Topic: 3ds max help
Next Topic: PowerUp Spawner Question
Goto Forum:
  


Current Time: Mon Dec 30 04:05:45 MST 2024

Total time taken to generate the page: 0.01103 seconds