Shield Turret Issues

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
jedimoose32
Field Commander
Field Commander
Posts: 938
Joined: Thu Jan 24, 2008 12:41 am
Projects :: Engineering Degree
Location: The Flatlands of Canada

Shield Turret Issues

Post by jedimoose32 »

I'm still alive, plugging away slowly at a mod map that's been in the making for about two months. It's nearly ready for a WIP thread, actually...

But that's not what this thread is for. This thread is for 2 closely related things:

1. I need to know whether a shield-emitting grenade is possible. It doesn't have to be fancy at all, it just has to basically be a throwable droideka shield. The problem is, I've already spent the whole afternoon trying to make this idea work, with minimal success. My main plan of attack so far has been to change the grenade explosion effect from the standard one to the droideka shield one. I've tried this while copying the .fx, .tga, and .msh files related to the shield into sides/Common/effects, rep/effects, cis/effects, sides/Common/msh, rep/msh, and cis/msh.

Sometimes it crashes the game, giving me an error related to being unable to find the explosion file for the grenade (which is called rep_weap_inf_sgrenade and is the child of com_weap_inf_sgrenade). The rest of the time I throw the grenade and it just disappears.

The closest I've come to success is making the droideka shield msh the geometry model for the grenade, instead of rep_weap_thermaldetonator.msh or whatever it's called. However, that just resulted in an ugly shield that was way to small and didn't absorb any damage (ie: I stuck this grenade to a friendly turret and shot at it with my shotgun and ended up killing the guy operating the turret on the other side).

2. I did my research on this topic and couldn't find anything about Shield Grenades, but the concept of a Dispensable Turret with a shield generator popped up in my search results a few times. Would this be the easier, more practical way to go?
Last edited by jedimoose32 on Mon Dec 13, 2010 3:00 pm, edited 2 times in total.
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Shield Grenade or Shield "Turret"... Which one?

Post by Fiodis »

jedimoose32 wrote:2. I did my research on this topic and couldn't find anything about Shield Grenades, but the concept of a Dispensable Turret with a shield generator popped up in my search results a few times. Would this be the easier, more practical way to go?
Considering that the first proposal is actually impossible, yes.

You could even edit the turret dispenser's odf lines to make it look like you're tossing a grenade. The main problem with your first idea is that effects aren't solid - they're purely and soley visual. The shield itself is an odf property/weapon.
jedimoose32
Field Commander
Field Commander
Posts: 938
Joined: Thu Jan 24, 2008 12:41 am
Projects :: Engineering Degree
Location: The Flatlands of Canada

Re: Shield Grenade or Shield "Turret"... Which one?

Post by jedimoose32 »

Fiodis wrote:
jedimoose32 wrote:...The concept of a Dispensable Turret with a shield generator popped up...
...The shield itself is an odf property/weapon.
Yes, I've been experimenting with the actual droideka all day and have gained a certain amount of insight on that.

I just tried THIS concept (the first one on the first post) and could only manage to create a weaponless autoturret with shields protecting just itself (no bubble, just the splash effect every time someone shoots it).

Here are some odf excerpts:
Hidden/Spoiler:
From com_bldg_inf_autoturret:[code][Properties]

// the default texture, it looks like....
OverrideTexture = "com_prop_dropturret_rep"
Pilottype = "self"

MaxShield = 8000
AddShield = -67
//AddShieldOff = 750 //300

ShieldOffset = "0.0 1.0 0.125"
ShieldRadius = 5.25 //1.25

ShieldEffect = "droidekashieldc"[/code]
Hidden/Spoiler:
From rep_bldg_inf_autoturret:[code][GameObjectClass]
ClassParent = "com_bldg_inf_autoturret"
GeometryName = "com_weap_inf_dropturret.msh"

[Properties]
// NOBODY has override textures for this!
//OverrideTexture = "com_prop_dropturret_rep"

MaxShield = 8000
AddShield = -67
//AddShieldOff = 750 //300

ShieldOffset = "0.0 1.0 0.125"
ShieldRadius = 5.25 //1.25

ShieldEffect = "droidekashieldc"

BUILDINGSECTION = "BODY"
GeometryName = "com_weap_inf_dropturret"
ExplosionName = "rep_bldg_inf_autoturret_exp"

BUILDINGSECTION = "TURRET1"

TurretNodeName = "aimer_y"

TURRETSECTION = "TURRET1"

//WeaponName = "rep_weap_inf_autoturret"
//WeaponAmmo = "0"

AimerNodeName = "aimer_x"
FirePointName = "hp_fire"[/code]
Hidden/Spoiler:
And just for good measure, from rep_weap_inf_autoturret_dispenser:[code]MinStrength = "0.8"
MaxStrength = "1.2"[/code]
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Shield Grenade or Shield "Turret"... Which one?

Post by Fiodis »

The shield has to be a weapon of the turret.
jedimoose32
Field Commander
Field Commander
Posts: 938
Joined: Thu Jan 24, 2008 12:41 am
Projects :: Engineering Degree
Location: The Flatlands of Canada

Shield Turret Issues [IN PROGRESS]

Post by jedimoose32 »

Okay. That makes sense, but will the turret arbitrarily turn it on or off according to whether it is under attack?
Hidden/Spoiler:
Just curious because the droidekas sometimes turn their shields on/off for no apparent reason.
EDIT: No good. When somebody shoots it, the game crashes. No Severity 3 errors at all. So I tweaked it a little bit and now it just doesn't give any kind of shield at all. Here's the odf:
Hidden/Spoiler:
[code][GameObjectClass]
ClassParent = "com_bldg_inf_autoturret"
GeometryName = "com_weap_inf_dropturret.msh"

[Properties]
// NOBODY has override textures for this!
//OverrideTexture = "com_prop_dropturret_rep"

BUILDINGSECTION = "BODY"
GeometryName = "com_weap_inf_dropturret"
ExplosionName = "rep_bldg_inf_autoturret_exp"

BUILDINGSECTION = "TURRET1"

TurretNodeName = "aimer_y"

TURRETSECTION = "TURRET1"

WeaponName = "cis_weap_walk_droideka_shield"
WeaponAmmo = 0
WeaponChannel = 1

AimerNodeName = "aimer_x"
FirePointName = "hp_fire"[/code]
Post Reply