How can I loop over all weapon definitions? [message #470817] |
Fri, 06 July 2012 06:24 |
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 |
|
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 - )
|
|
|
|