Trouble with some melee implementation

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
User avatar
TWINKEYRUNAWAY
Lieutenant General
Lieutenant General
Posts: 730
Joined: Fri Aug 17, 2012 3:13 pm
Projects :: Empire Rising
Games I'm Playing :: SWBF Doom FONV
xbox live or psn: No gamertag set
Location: 411Remnant
Contact:

Trouble with some melee implementation

Post by TWINKEYRUNAWAY »

I was working on giving the vanguards of my side mod a brief melee type secondary.(pretty similiar to elite Squadron). Nothing over powered or heavy combo oreiented. Just a nice simple swing and the gamorrian seemed like the perfect choice to get a weapon ODF from. It technically works animation wise, but his hit box seems wierd. A lot of the time it swings but doesnt cuase any damage. Any help is appreciated.

ODF:
Hidden/Spoiler:
[WeaponClass]

ClassLabel = "melee"
ClassParent = "com_weap_inf_lightsaber"

[Properties]

GeometryName = "forcepike"
ComboAnimationBank = "human_sabre melee gam_inf_axe"

AttachToHardPoint = "hp_active"
FirePointName = "hp_fire"
LightSaberLength = "0.4"
LightSaberWidth = "0.75"
//LightSaberTrailColor = "255 255 255 100"
//LightSaberTexture = "gam_guard" // invalid texture to get trail to show up
//LightSaberGlowTexture = "gam_guard"

MinRange = "0"
OptimalRange = "1.5"
MaxRange = "3"

HitSound = "com_weap_inf_grenade_bounce"

OnSound = "overrideparentsound"
TurnOnSound = "overrideparentsound"
TurnOffSound = "overrideparentsound"
Full stock file im using, very small if you want to test it your self. Might need to change the msh in the odf though if testing:
http://www.mediafire.com/download/ivd97 ... +Melee.zip

Video:
http://www.youtube.com/watch?v=pRsD4flG ... e=youtu.be
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Trouble with some melee implementation

Post by Marth8880 »

Annoying as it is, melee weapons cannot be secondary weapons; instead, use the emitterordnance ordnance type and the cannon weapon type. I'll give you an example ODF to use if you need.
JimmyAngler
High General
High General
Posts: 837
Joined: Mon Nov 04, 2013 10:37 am
Projects :: Battlefront Halation
Games I'm Playing :: SWBF 1-2-2015
xbox live or psn: none
Location: Area 51

Re: Trouble with some melee implementation

Post by JimmyAngler »

BFX and Death Star (MS) had them as secondary didn't they? (or have I really forgotten...)
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: Trouble with some melee implementation

Post by Anakin »

They have it as an second primary weapon. Secondary weapons are grenades,....
User avatar
TWINKEYRUNAWAY
Lieutenant General
Lieutenant General
Posts: 730
Joined: Fri Aug 17, 2012 3:13 pm
Projects :: Empire Rising
Games I'm Playing :: SWBF Doom FONV
xbox live or psn: No gamertag set
Location: 411Remnant
Contact:

Re: Trouble with some melee implementation

Post by TWINKEYRUNAWAY »

Marth8880 wrote:Annoying as it is, melee weapons cannot be secondary weapons; instead, use the emitterordnance ordnance type and the cannon weapon type. I'll give you an example ODF to use if you need.
I would love an example to play around with if possible, thanks marth.

Actually now that I recall, The exile's voyage had this implemented successfully. I believe AQT's dark trooper had a chain gun and can switch to an electro-staff as a secondary with no visible problems.
Last edited by TWINKEYRUNAWAY on Tue Feb 11, 2014 7:09 pm, edited 1 time in total.
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Trouble with some melee implementation

Post by Maveritchell »

TWINKEYRUNAWAY wrote:Actually now that I recall, The exile's voyage had this implemented successfully. I believe AQT's dark trooper had a chain gun and can switch to an electro-staff as a secondary with no visible problems. If it comes down to it, ill shoot him a PM perhaps.
Nope, you're wrong, dude. Melee weapons (i.e weapons that use .combo files) have to be primary weapons. Any secondary melee weapon is an emitterordnance (push) weapon, like Marth said. You can cycle through multiple primary weapons if you want a melee weapon to be swapped with something else.
User avatar
TWINKEYRUNAWAY
Lieutenant General
Lieutenant General
Posts: 730
Joined: Fri Aug 17, 2012 3:13 pm
Projects :: Empire Rising
Games I'm Playing :: SWBF Doom FONV
xbox live or psn: No gamertag set
Location: 411Remnant
Contact:

Re: Trouble with some melee implementation

Post by TWINKEYRUNAWAY »

Maveritchell wrote:
TWINKEYRUNAWAY wrote:Actually now that I recall, The exile's voyage had this implemented successfully. I believe AQT's dark trooper had a chain gun and can switch to an electro-staff as a secondary with no visible problems. If it comes down to it, ill shoot him a PM perhaps.
Nope, you're wrong, dude. Melee weapons (i.e weapons that use .combo files) have to be primary weapons. Any secondary melee weapon is an emitterordnance (push) weapon, like Marth said. You can cycle through multiple primary weapons if you want a melee weapon to be swapped with something else.
Thank you for correcting me, im assuming this what you did for your rebel elite in dark times as well right? or not :o
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Trouble with some melee implementation

Post by Maveritchell »

TWINKEYRUNAWAY wrote:im assuming this what you did for your rebel elite in dark times as well right? or not :o
Yeah, there were a few units that used that. I did a few the other way too (secondary emitterordnance weapon). There are good reasons for using both - the "real" melee weapon is a more satisfying experience with more flexibility in the weapon itself, but it (effectively) disallows any secondary weapons, so all the weapons have to be in the primary slot.
Post Reply