Page 1 of 1

Removing sticky grenades

Posted: Sun May 10, 2009 3:32 pm
by RepSharpshooter
I'm trying to remove the stick property from all thermaldetonators.


I've tried (unsuccessfully):
Making a req for the common thermal ord, and ReadDataFile it in through lua after sides

Using setproperty and classproperty for rep_weap_inf_thermaldetonator, as follows:

Code: Select all

SetClassProperty("rep_weap_inf_thermaldetonator_ord","StickBuilding","0")
It can't find that class, in both cases.

I'm thinking about munging a "baa_weap_inf_thermaldetonator" class having it's own req and then use setproperty to change all the units weapons to this instead. Problem is that I don't know which property to set, because the odf has "WeaponName" for all 4 weapon names. It may be Weapon3Name, but that is not in the odf so it may not work.

Or I could make a dc:rep side and have only the odfs and read in all the classes again, hopefully the geometry and such would still be there.


The key point is that I don't want to spend hundreds of megabytes remunging all the sides to change 1 odf. Can anyone tell me which path to take?

Re: Removing sticky grenades

Posted: Sun May 10, 2009 4:12 pm
by Maveritchell
RepSharpshooter wrote:Or I could make a dc:rep side and have only the odfs and read in all the classes again, hopefully the geometry and such would still be there.
You can make sides like that, if you want. Don't give them the same .odf/.req name. You can load in everything you need model- and texture-wise by loading the stock side before it in the .lua.

Re: Removing sticky grenades

Posted: Sun May 10, 2009 8:40 pm
by RepSharpshooter
Maveritchell wrote:Don't give them the same .odf/.req name.
What would happen if they did have the same odf name?


But I just thought of a ridiculously easier solution, changing the health type to animal:
Hidden/Spoiler:
[GameObjectClass]
ClassLabel = "DestructableBuilding"
GeometryName = "baa_layout_1.msh"


[Properties]

GeometryName = "baa_layout_1"
HideHealthBar = "1"
HealthType = "animal"


MaxHealth = "9999999.0"
Thanks anyways, it may be useful to know for other applications.