melee

Started by (DW)skelltor, December 18, 2009, 01:09:48 AM

Previous topic - Next topic
i want to mae a melee sniper rifle but there is a lightsaber fire sticking out the end of it when i use it how do i get ride of that???


here is the odf

[WeaponClass]

ClassLabel          = "melee"

[Properties]
IconTexture      = "IMP_sniperrifle_icon"

GeometryName       = "rep_weap_inf_sniperrifle"
HighResGeometry         = "rep_1st_weap_inf_sniperrifle"
AnimationBank       = "lightsabre"

MuzzleFlash         = ""
Discharge         = ""

RoundsPerClip       = "0"
ReloadTime          = "0.0"

HeatPerShot         = "0.0"
HeatRecoverRate         = "0.0"
HeatThreshold         = "0.0"


//ReloadSound       = "laserreload"
//ChangeModeSound   = "com_weap_inf_blaster_rifle_modechange"
HitSound            = "imp_weap_lightsabre_hit"
//DeflectSound        = "imp_weap_lightsabre_deflect"
//WeaponChangeSound     = "com_weap_inf_laser_weaponchange"

LockOnRange         = "60.0"
LockTime            = "0.4"
AutoAimSize         = "1.0"

Damage              = "250.0"

MinRange            = "0"
OptimalRange        = "2.0"
MaxRange            = "4"


FirePointName      = "hp_fire"

SwingTime           = "0.7 0.5 imp_weap_lightsabre"
Texture = "yellowlightsabre"



Add // before the line "Texture = "yellowlightsabre"


(•̪●)=ε/̵͇̿̿/'̿'̿ ̿ ̿̿ ̿ ̿"" (-_-*)

Yup, what JK said.

Explanation:
The lightsaber that's coming out is the texture in this situation. Now that you've taken it out, your sniperrifle will be a lightsaber (which looks exactly like a melee attack) :D

Using // makes it a comment (useful for documentation). So you can put stuff like this anywhere:
//I AM THE GREATEST MODDER EVAR!!1!!!1!
When it munges, it will just ignore these comments.
It's better than deleting a whole line because if you ever make a mistake, you can re-enable it by deleting the //


#TYBG

thanks that works great aso is there a way to make it have kinda a sheeew sorta sound insted of the lightsaber sound i know how to change it i just want suggustions.

making a SMACK sound?       :mad:      :whip:

um sorta more like a swooshing sound

What ever troop or ship that has a sound you like might contain in odfs associated what you are looking for.

There is no 'ctrl' button on Chuck Norris's computer. Chuck Norris is always in control.

That almost looked like BF1 to me, does the make your making have AI hero support?
Legos, the greatest toy known to man

Quotes from the battlefield.

"FOR THE REPUBLIC!", "Bu-bye!" - Clone Trooper

"Bang", "We need more troopers like you!"- Stormtrooper

"Failure is NOT an option. Fight HARDER!" - I made him mad (=9)