Removing sticky grenades

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
RepSharpshooter
Gametoast Staff
Gametoast Staff
Posts: 1351
Joined: Tue Jul 10, 2007 4:10 pm

Removing sticky grenades

Post 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?
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Removing sticky grenades

Post 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.
RepSharpshooter
Gametoast Staff
Gametoast Staff
Posts: 1351
Joined: Tue Jul 10, 2007 4:10 pm

Re: Removing sticky grenades

Post 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.
Post Reply