Page 1 of 1

My Cloaking device

Posted: Tue Jul 31, 2007 11:34 pm
by Master Fionwë
I don't know if this would qualify to be in here, but it's a source file.

This is a cloaking device made by me, it gives complete invisibility, running, jumping, sprinting, rolling, no flickering for at least five minutes unless hit or damaged, or standing by a health droid while hurt. I haven't tested it through an entire battle yet, so I don't know if it will flicker at all through the course of a whole battle.
Please credit me if you use this.
If I get a better one working, I'll post it here.
Enjoy modders!
[WeaponClass]
ClassLabel = "invisibility"

[Properties]
Label = "Invisibility Field"

GeometryName = ""
HighResGeometry = ""
HUDTag = "hud_stealth"

AnimationBank = "tool"

//ChargeUpEffect = "com_sfx_chargeup"
//MuzzleFlash = "med_muzzle_flash"
FlashColor = "80 80 255 255"
FlashLength = 0.025
FlashLightColor = "220 220 255 175"
Discharge = "med_smoke_effect"

//RoundsPerClip = "32"
ReloadTime = "0.0"

HeatPerShot = "5.0" // only allow player to fire every 5 seconds
HeatRecoverRate = "1.0"
HeatThreshold = "0.01"

InitialEnergyDrain = "0.0"
EnergyDrain = "0.0"
//EnergyDrainRate = "0.0"
InitialSalvoDelay = "0.3"

InvisibilityTrigger = "Toggle"
InvisibilityPersistTime = "1000.0"
InvisibilityMax = "1.0"
InvisibilityMin = "0.3"
SpeedForInvisibilityMax = "9.5" // normal run
SpeedForInvisibilityMin = "40.5" // full sprint
InvisibilityIncRate = "0.6"
InvisibilityDecRate = "0.9"
FlickerAmplitude = "0.0" // decrease invisibility by 0.5
//FlickerTimeMin = "5.0" // randomly every 5 to 10 seconds
//FlickerTimeMax = "10.0"

//ThrustFactor = "0.5" // when firing, move at half speed
TargetLock = "1" // when firing, activate target lock

//ZoomMin = "2.0"
//ZoomMax = "2.0"
//ZoomRate = "0.0"

//FirePointName = "hp_fire"

ModeTexture = "HUD_weap_semiauto"
//ModeTextureColor = "42 235 42 100"
ReticuleTexture = "reticule_rifle"
ScopeTexture = "weapon_scope2"

OffhandWeapon = 0
InstantPlayFireAnim = 1
TriggerSingle = "1"

LockOnRange = "64.0"
LockTime = "0.0"
AutoAimSize = "2.0"

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

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

ChargeRateLight = "1.0"
MaxChargeStrengthLight = "1.0"
ChargeDelayLight = "0.0"
ChargeRateHeavy = "1.0"
MaxChargeStrengthHeavy = "0.5"
ChargeDelayHeavy = "2.2"

RecoilLengthHeavy = "0.25"
RecoilStrengthHeavy = "2"
RecoilDecayHeavy = "0.0"

FireSound = "all_weap_invisibility_fire"
//ReloadSound = ""
WeaponChangeSound = ""
ChangeModeSound = ""
FireEmptySound = ""
ChargeSound = ""
ChargeSoundPitch = "0.05"
OverheatSound = ""
OverheatSoundPitch = "0.5"
OverheatStopSound = ""
JumpSound = ""
LandSound = ""
RollSound = ""
ProneSound = ""
SquatSound = ""
StandSound = ""

//NextCharge = 0.25
//HeatPerShot = "0.6"
//AmmoPerShot = 1

//NextCharge = 0.5
//HeatPerShot = "0.65"
//AmmoPerShot = 2

//NextCharge = 0.75
//HeatPerShot = "0.8"
//AmmoPerShot = 3

//NextCharge = 0.99
//HeatPerShot = "1.0"
//AmmoPerShot = 4

Posted: Tue Jul 31, 2007 11:43 pm
by Maveritchell
Not to burst your bubble, but that's all of a change of two lines of .odf code. All you need to change is the SpeedForInvisibilityMin (to something high) and the FlickerAmplitude (to 0) and you get a non-flickering, non-deceasing invisibility.

Posted: Tue Jul 31, 2007 11:52 pm
by Master Fionwë
I was messing with it for quite some time, so it seemed like more was done to it. But yeah, I just compared it with the shipped one. Boy do I feel dumb....

Posted: Tue Jul 31, 2007 11:59 pm
by Maveritchell
There's nothing wrong with that, I'm sure someone'll at least learn something from this. If you want, though, I can merge this into the other thread on the invisibility weapon. (Besides, I know when I'm looking for this kind've solution to a modding issue, I usually search the modding forum anyway.)

Posted: Wed Aug 01, 2007 6:08 am
by Alpha-17
Nice done Fionwe and Maveritchell :D I'll try this in my new map ... Should I give credits to you two ?

Posted: Wed Aug 01, 2007 9:01 am
by Master Fionwë
Okay, thanks Maveritchell. Thanks for the complement Alpha-17.

Posted: Fri Aug 03, 2007 5:40 am
by wazmol
sweet as!

fionwe always helping out as usual and same with mave'

Posted: Fri Aug 03, 2007 12:44 pm
by CommanderShaun
sounds interesting :bobba: