Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » New PT's
Re: New PT's [message #427576 is a reply to message #427455] Wed, 05 May 2010 07:51 Go to previous messageGo to previous message
Jerad2142 is currently offline  Jerad2142
Messages: 3808
Registered: July 2006
Location: USA
Karma:
General (3 Stars)
Omar007 wrote on Mon, 03 May 2010 15:17

Im wondering whether it is possible to change the PT's Purchase List
I dont even know how it chooses its default actually, but i basically want to replace that with another entry.

Picture to illustrate:
index.php?t=getfile&id=12688&private=0

So when Secrets is chosen, only the entries in Secrets must be visible in the PT. GDI must not.
(chosen as in selected with a script ingame)

And please look at Secrets as if its a new entry and not the extra characters Wink

What i did found in engine_pt.cpp was these rows (i hope the comments are indeed what they mean):
DefinitionArray = (PurchaseSettingsDefClass **)0x0085E180; //The entries inside the Character Classes of the picture above??
Find_Purchase_Definition = (void *)0x006F2BD0; //The characters tab
Find_Team_Purchase_Definition = (void *)0x006F3430; //The enlisted (main) entries


Would it be possible to point these to one of the new entries?
Using the Set_Preset() method and hardcode every new preset is what i want to avoid with this.

The function already exists "Change_Spawn_Char(int Team,const char *Name);"


 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Editor Help!
Next Topic: M10_Playertype_Nod
Goto Forum:
  


Current Time: Fri Oct 25 22:27:35 MST 2024

Total time taken to generate the page: 0.00830 seconds