Make the unit self-destruct [Solved]

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
LitFam
Sergeant Major
Sergeant Major
Posts: 234
Joined: Sat Feb 04, 2017 5:52 pm
Games I'm Playing :: SWBF II 2005
xbox live or psn: No gamertag set
Location: Milky Way, Solar System, Earth, Antarctica

Make the unit self-destruct [Solved]

Post by LitFam »

[flash=][/flash]Is there a way to have the unit self-destruct? I have tried using the recon droid’s weapon, however I get a crash when I have the explosion factor for a offhand weapon.
Last edited by LitFam on Mon Nov 13, 2017 7:40 am, edited 1 time in total.
User avatar
Anakin
Master of the Force
Master of the Force
Posts: 4817
Joined: Sat Sep 19, 2009 11:37 am
Projects :: RC Side Mod - Remastered - SWBF3 Legacy
Location: Mos Espa (germany)

Re: Make the unit self-destruct

Post by Anakin »

Why don't you make a grenade that instand explodes??
Not absolutely sure, but i think there is a detonate time
LitFam
Sergeant Major
Sergeant Major
Posts: 234
Joined: Sat Feb 04, 2017 5:52 pm
Games I'm Playing :: SWBF II 2005
xbox live or psn: No gamertag set
Location: Milky Way, Solar System, Earth, Antarctica

Re: Make the unit self-destruct [Solved]

Post by LitFam »

Thanks! I will remove the grenade model from the .odf files to see if I can get a invisible Grenade and just the explosion.
User avatar
Anakin
Master of the Force
Master of the Force
Posts: 4817
Joined: Sat Sep 19, 2009 11:37 am
Projects :: RC Side Mod - Remastered - SWBF3 Legacy
Location: Mos Espa (germany)

Re: Make the unit self-destruct [Solved]

Post by Anakin »

you don't need the grenade for the Effekt, you need it for the kill.

This is the odf of the magnaguard from my RCM mod.
I use the explosion odf to deal damage after the magnaguard died. So you can do it the same way without damage, just with the effect and so you just need to kill yourself
Hidden/Spoiler:
[code][GameObjectClass]
ClassParent = "com_jedi_default"


[Properties]
ExplosionName = "cis_droid_damage_exp"
HealthType = "droid"

FleeLikeAHero = 0
NoEnterVehicles = 1
ForceMode = 1


MinFootHeight = 0.3
CollisionHeadOffset = "0.0 0.0 0.0"

CAMERASECTION = "STAND"
EyePointOffset = "0.0 1.8 0.0"
TrackCenter = "0.0 1.8 0.0
TrackOffset = "0.0 0.0 4"
TiltValue = "10.0"

CAMERASECTION = "STANDZOOM"
EyePointOffset = "0.0 1.8 0.0"
TrackCenter = "0.0 1.8 0.0
TrackOffset = "0.4 0.05 2.8"
TiltValue = "3.5"

CAMERASECTION = "CROUCH"
EyePointOffset = "0.0 1.3 0.0"
TrackCenter = "0.0 1.3 0.0
TrackOffset = "0.0 0.15 3.5"
TiltValue = "10.0"
CameraBlendTime = "0.75"

CAMERASECTION = "CROUCHZOOM"
EyePointOffset = "0.0 1.3 0.0"
TrackCenter = "0.0 1.3 0.0
TrackOffset = "0.4 0.2 2.8"
TiltValue = "3.5"

CAMERASECTION = "SPRINT"
EyePointOffset = "0.0 1.8 0.0"
TrackCenter = "0.0 1.8 0.0
TrackOffset = "0.0 0.0 5.0"
TiltValue = "10.0"
CameraBlendTime = "0.75"


ChunkFrequency = 0.6

CHUNKSECTION = "CHUNK1"
ChunkGeometryName = "cis_inf_magnaguard_chunk1"
ChunkNodeName = "bone_neck"
ChunkTerrainCollisions = "4"
ChunkTerrainEffect = "dirtspray"
ChunkTrailEffect = "com_sfx_chunksmolder"
ChunkPhysics = "FULL"
ChunkOmega = "4.0 4.0 4.0"
ChunkSpeed = 8.0

CHUNKSECTION = "CHUNK2"
ChunkGeometryName = "cis_inf_magnaguard_chunk2"
ChunkNodeName = "bone_l_upperarm"
ChunkTerrainCollisions = "4"
ChunkTerrainEffect = "dirtspray"
ChunkTrailEffect = "com_sfx_chunksmolder"
ChunkPhysics = "FULL"
ChunkOmega = "4.0 4.0 4.0"
ChunkSpeed = 8.0

CHUNKSECTION = "CHUNK3"
ChunkGeometryName = "cis_inf_magnaguard_chunk3"
ChunkNodeName = "bone_l_calf"
ChunkTerrainCollisions = "4"
ChunkTerrainEffect = "dirtspray"
ChunkTrailEffect = "com_sfx_chunksmolder"
ChunkPhysics = "FULL"
ChunkOmega = "4.0 4.0 4.0"
ChunkSpeed = 8.0

CHUNKSECTION = "CHUNK4"
ChunkGeometryName = "cis_inf_magnaguard_chunk4"
ChunkNodeName = "bone_r_thigh"
ChunkTerrainCollisions = "4"
ChunkTerrainEffect = "dirtspray"
ChunkTrailEffect = "com_sfx_chunksmolder"
ChunkPhysics = "FULL"
ChunkOmega = "4.0 4.0 4.0"
ChunkSpeed = 8.0

CHUNKSECTION = "CHUNK5"
ChunkGeometryName = "cis_inf_magnaguard_chunk5"
ChunkNodeName = "bone_a_spine"
ChunkTerrainCollisions = "4"
ChunkTerrainEffect = "dirtspray"
ChunkTrailEffect = "com_sfx_chunksmolder"
ChunkPhysics = "FULL"
ChunkOmega = "4.0 4.0 4.0"
ChunkSpeed = 8.0


HurtSound = "cis_inf_com_chatter_wound"
DeathSound = "droid_death"
DamageRegionSound = "cis_inf_com_chatter_wound"
ShockFadeOutTime = ""
ShockFadeInTime = ""
ShockFadeOutGain = ""
ShockSound = ""
ClothingRustleSound = ""
LowHealthSound = ""
//LowHealthThreshold = ".25"
FoleyFXClass = "cis_inf_droid"


VOSound = "cis1_inf_pc_com_hostile SpottedVO"
VOSound = "cis1_inf_pc_com_bacta NeedMedicVO"
VOSound = "cis1_inf_pc_com_mechanic NeedRepairVO"
VOSound = "cis1_inf_pc_com_ammo NeedAmmoVO"
VOSound = "cis1_inf_pc_com_transport NeedPickupVO"
VOSound = "cis1_inf_pc_com_backup NeedBackupVO"
VOSound = "cis1_inf_pc_com_clear_area AttackPositionVO"
VOSound = "cis1_inf_pc_com_defend DefendPositionVO"

VOSound = "cis1_inf_pc_com_hostile_inVehicle SpottedVO +InVehicle"
VOSound = "cis1_inf_pc_com_bacta_inVehicle NeedMedicVO +InVehicle"
VOSound = "cis1_inf_pc_com_mechanic_inVehicle NeedRepairVO +InVehicle"
VOSound = "cis1_inf_pc_com_ammo_inVehicle NeedAmmoVO +InVehicle"
VOSound = "cis1_inf_pc_com_transport_inVehicle NeedPickupVO +InVehicle"
VOSound = "cis1_inf_pc_com_backup_inVehicle NeedBackupVO +InVehicle"
VOSound = "cis1_inf_pc_com_clear_area_inVehicle AttackPositionVO +InVehicle"
VOSound = "cis1_inf_pc_com_defend_inVehicle DefendPositionVO +InVehicle"[/code]
Post Reply