Maveritchell wrote:razac920 wrote:So I've tried using SetClassProperty on a weapon in MP, and while it doesn't crash, it doesn't work either. Nothing happens, since it strangely could not find my weapon class to edit in the first place, even though I was just using default weapons in a test map. Has anyone been able to change a weapon's properties mid game with SetClassProperty?
You don't set weapon class properties, you make weapon variations with the changes you want and then adjust the
unit class properties so that the unit uses a different weapon.
When I said something didn't work, I was referring to using SetClassProperty on a weapon class instead of a unit class. And that didn't crash MP but didn't accomplish its goal either. I tried it again on the Mod Tools exe, also didn't work, I checked the log, and it said that it couldn't find the "all_weap_inf_rifle" class, even though I had loaded the stock all_inf_rifleman unit. And Maveritchell is saying it's impossible to edit weapon properties like this, so I think I'll abandon that attempt. And thank you for the link, I think I had seen that a LONG time ago, before this project, but unfortunately I don't think it helps. I want to have more than 20 classes I could switch to by using teams 3 and up's classes. As I understand it, what Zerted did was to take half the classes in team 1, hide them from team 1, and get you to spawn in team 3 when you pick them (but with a team 1 class) and take half the classes in team 2, hide them from team 2, and get you to spawn in team 4 when picked. Unfortunately, then, the 20 class cap still applies then (or 18 if with heroes). So I guess this can't be done then?