Page 1 of 1

Special Weapon properties

Posted: Thu Jul 10, 2014 8:49 am
by Anakin
Hi,

i'm looking for two special weapon properties:
1.: mine chain: While i hold the rigth mouse button my Unit (in this case a snowspeeder) throwes one mine after the other, till i release the button. It's something simular to the flamethrower. But i don't know how to do it or where the special setting is to make it work this way.

2.: detpack chain: You all know these detpacks. I want my unit (also a snowspeeder) to throw 4 or 5 detpacks in a row and blow them up all together with the next mouse klick. Someone an idea how to do that??


An other problem i have is i just tryed to use the normal mine and detpack dispenser it works really great. But the items are always droped in front of me. If i throw one of the above and make a roll, or the turn trick or even use the boost the items stick on my selfe. for the mines it is not so a big problem but if on detpack stick on me i only can blow up my selfe.

Re: Special Weapon properties

Posted: Thu Jul 10, 2014 10:25 am
by Noobasaurus
For the mines, this should do the trick.

Code: Select all

TriggerSingle       = "0"
For the detpacks, you can make it so they all blow up when you hold the button down and not simply press it.

Re: Special Weapon properties

Posted: Sat Jul 12, 2014 10:18 am
by Anakin
ok thank you i'll try the mine thing.

about the detpack. that would be ok for me, too. i thought on something like the stock detpack dispenser, but that in my case not one but 4 are dispensed.
have you a code example on how you would do that (with holding the button down)??


==EDIT==

The mine chain works fine :D Thanks a lot for this. But the detpack dispenser still das not work.

here is the odf:
I thought the shots per salov will do it but it doesn not work
Hidden/Spoiler:
[code]
[WeaponClass]
ClassLabel = "detonator"

[Properties]
HUDTag = "hud_rc_detpack"

OrdnanceName = "veh_weap_detpack_ord"

RoundsPerClip = "4"
ShotDelay = "0.5"
ReloadTime = "3.0"
InitialSalvoDelay = "0.25"

SalvoCount = "1"
ShotsPerSalvo = "4"

TriggerAll = "1"

//AnimationBank = "grenade"

OffhandWeapon = 1
TrackingSound = ""

MaxItems = "4.0"

RefillFromItem = "0"

AutoAimSize = "1.0"

//MaxPressedTime = "0.5"
MinStrength = "-2.0"
MaxStrength = "-2.0"

TargetEnemy = "1"
TargetNeutral = "1"
TargetFriendly = "1"

TargetPerson = "1"
TargetAnimal = "1"
TargetDroid = "1"
TargetVehicle = "1"
TargetBuilding = "1"
TargetMine = "1"


[/code]

Re: Special Weapon properties

Posted: Sat Jul 12, 2014 12:27 pm
by thelegend
I think you should change this lines:
Hidden/Spoiler:
[code][WeaponClass]
ClassLabel = "detonator"

[Properties]
HUDTag = "hud_rc_detpack"

OrdnanceName = "veh_weap_detpack_ord"

RoundsPerClip = "1" //this one
ShotDelay = "0.5"
ReloadTime = "3.0"
InitialSalvoDelay = "0.25"

SalvoCount = "4" //this two lines too
ShotsPerSalvo = "1"

TriggerAll = "1"

//AnimationBank = "grenade"

OffhandWeapon = 1
TrackingSound = ""

MaxItems = "4.0"

RefillFromItem = "0"

AutoAimSize = "1.0"

//MaxPressedTime = "0.5"
MinStrength = "-2.0"
MaxStrength = "-2.0"

TargetEnemy = "1"
TargetNeutral = "1"
TargetFriendly = "1"

TargetPerson = "1"
TargetAnimal = "1"
TargetDroid = "1"
TargetVehicle = "1"
TargetBuilding = "1"
TargetMine = "1"[/code]

I don't know if that helps. Never tried it before but I think something should work.

Re: Special Weapon properties

Posted: Sun Jul 13, 2014 10:47 am
by Anakin
mh thanks for your advice, but it still does not work.

Maybe some new Ideas??