Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » How can I loop over all weapon definitions?
How can I loop over all weapon definitions? [message #470817] Fri, 06 July 2012 06:24 Go to next message
iRANian is currently offline  iRANian
Messages: 4308
Registered: April 2011
Karma: 0
General (4 Stars)
Get_First_Definition() and Get_Next_Definition() from SSGM 2.0.2 don't work anymore, I need to be able to edit all the definition of all weapons loaded in the preset file. Too lazy to do this by hand.

Long time and well respected Renegade community member, programmer, modder and tester.

Scripts 4.0 private beta tester since May 2011.

My Renegade server plugins releases
Re: How can I loop over all weapon definitions? [message #470854 is a reply to message #470817] Fri, 06 July 2012 14:39 Go to previous messageGo to next message
Whitedragon is currently offline  Whitedragon
Messages: 832
Registered: February 2003
Location: California
Karma: 1
Colonel
for (WeaponDefinitionClass *Def = (WeaponDefinitionClass*)DefinitionMgrClass::Get_First(0xB001);Def;Def = (WeaponDefinitionClass*)DefinitionMgrClass::Get_Next(Def,0xB001)) {


Black-Cell.net
Network Administrator (2003 - )

DragonServ, Renegade's first IRC interface bot
Creator and lead coder (2002 - )

Dragonade, Renegade's first server side modification
Lead coder (2005 - )
Re: How can I loop over all weapon definitions? [message #470873 is a reply to message #470817] Sat, 07 July 2012 03:01 Go to previous message
iRANian is currently offline  iRANian
Messages: 4308
Registered: April 2011
Karma: 0
General (4 Stars)
Thanks a bunch that works great.

Long time and well respected Renegade community member, programmer, modder and tester.

Scripts 4.0 private beta tester since May 2011.

My Renegade server plugins releases
Previous Topic: Commands->Monitor_Sound
Next Topic: Xcc_Mixer
Goto Forum:
  


Current Time: Wed Dec 18 00:53:57 MST 2024

Total time taken to generate the page: 0.00626 seconds