Page 1 of 1

Stealth parameters

Posted: Sat Jul 06, 2013 12:00 am
by Dreadnot9
Been a while since I've done some modding, and it's showing. I'm working on a stealth weapon, and had two questions:
Hidden/Spoiler:
[code][WeaponClass]
ClassLabel = "invisibility"

[Properties]
Label = "Invisibility Field"

AnimationBank = "tool"
//OffhandWeapon = "1"
//FireAnim = "2"

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

//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 = "20.0"
EnergyDrain = "18.0"
//EnergyDrainRate = "15.0"
InitialSalvoDelay = "0.3"

InvisibilityTrigger = "toggle"
InvisibilityPersistTime = "1.0"
InvisibilityMax = "1.0"
InvisibilityMin = "0.3"
SpeedForInvisibilityMax = "6.5" // normal run
SpeedForInvisibilityMin = "9.5" // full sprint
InvisibilityIncRate = "0.6"
InvisibilityDecRate = "0.9"
FlickerAmplitude = "0.5" // decrease invisibility by 0.5
FlickerTimeMin = "6.0" // randomly every 5 to 10 seconds
FlickerTimeMax = "12.0"

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"

TriggerSingle = "1"

LockOnRange = "24.0"
MaxRange = "24"
OptimalRange = "24"
MinRange = 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
[/code]
1. If I wanted the stealth to decrease when moving, but remain stable when standing still what values should I change?
2. Is it possible to change how the transparent "cloaked" model looks in-game?

Thanks.

Re: Stealth parameters

Posted: Sat Jul 06, 2013 4:49 am
by AQT
1) That has to do with a parameter found in the unit's ODF. From the Bothan Spy's ODF:

Code: Select all

EnergyRestore           = 12.0      // energy regained per second if moving
Just adjust the value to your liking.

2) As far as I know, the model used will always be the main geometry, but it can look two different ways, as described here.

Re: Stealth parameters

Posted: Sun Jul 07, 2013 2:53 pm
by Dreadnot9
AQT wrote:1) That has to do with a parameter found in the unit's ODF. From the Bothan Spy's ODF:

Code: Select all

EnergyRestore           = 12.0      // energy regained per second if moving
Just adjust the value to your liking.

2) As far as I know, the model used will always be the main geometry, but it can look two different ways, as described here.
1) Thank you, solved the problem pretty well (spent all my time looking at the stock invisibility, never thought to look at the bothan's odf).

2) This could be done with a hex editor by the sounds of it, correct? Are there only two options, or all of the effects discussed in the thread possible?

Re: Stealth parameters

Posted: Sun Jul 07, 2013 8:02 pm
by AQT
Yeah, you can use a hex editor. And right, there are only two options for when in stealth mode: with ice refraction or without. All the other material settings will work with the model when in non-stealth mode, but from what I've seen so far, if you have any combination of any other material setting with ice refraction, ice refraction won't work. So in short, ice refraction only works when it is the only material setting.