Once I get that upgrade to 36-hour days, I will tackle that. – Mychaeel
UE2:NIU2 (U2XMP)
Contents
- 1 Constants
- 2 Properties
- 2.1 Property group 'NIU2'
- 2.1.1 bCycleWeapons
- 2.1.2 bRandomWeapons
- 2.1.3 bUseAllWeapons
- 2.1.4 DefaultPickupString
- 2.1.5 HealthIncrementAmount
- 2.1.6 HealthIncrementSoundStr
- 2.1.7 KeptClassStrings
- 2.1.8 MaxHealth
- 2.1.9 StartHealth
- 2.1.10 TimeBetweenAmmoIncrements
- 2.1.11 TimeBetweenHealthIncrements
- 2.1.12 TimeBetweenWeaponSwitchesMax
- 2.1.13 TimeBetweenWeaponSwitchesMin
- 2.1.14 WarningSoundRepeats
- 2.1.15 WarningSoundStr
- 2.1.16 WeaponInfo
- 2.2 Internal variables
- 2.2.1 bDidTick
- 2.2.2 bForceWeaponSpawn
- 2.2.3 ChooseWeaponWarningTime
- 2.2.4 CurrentWeaponClass
- 2.2.5 CurrentWeaponIndex
- 2.2.6 DefaultPickupClass
- 2.2.7 DefaultWeaponString
- 2.2.8 FilteredWeaponInfo
- 2.2.9 HealthIncrementSound
- 2.2.10 KeptClasses
- 2.2.11 NextAmmoIncrementTime
- 2.2.12 NextChooseWeaponTime
- 2.2.13 NextIncrementHealthTime
- 2.2.14 NumKeptClasses
- 2.2.15 NumUsedWeapons
- 2.2.16 NumWarnings
- 2.2.17 NumWeapons
- 2.2.18 WarningSound
- 2.1 Property group 'NIU2'
- 3 Structs
- 4 Functions
- 4.1 Events
- 4.2 Other instance functions
- 4.2.1 AddAmmo
- 4.2.2 AddWeaponClass
- 4.2.3 AlwaysKeep
- 4.2.4 AssignSounds
- 4.2.5 CheckReplacement
- 4.2.6 ChooseWeapon
- 4.2.7 GiveWeaponTo
- 4.2.8 IncrementAllInventoryAmmo
- 4.2.9 ModifyPlayer
- 4.2.10 MyDefaultWeapon
- 4.2.11 ResetUsedWeapons
- 4.2.12 SetInventory
- 4.2.13 SetWeaponAmmo
- 4.2.14 ShouldKeep
- 4.2.15 TransformPickups
- 4.2.16 WeaponTimeDemoLog
- Package:
- U2
This is an auto-generated page and may need human attention. Please remove the {{autogenerated}} tag if the page seems reasonably complete or replace it with the {{expand}} tag if the page is not yet complete. |
NIU2.uc Created By: Mike Fox Created On: 2/5/00 $Author: Sbrown $ $Date: 8/15/02 21:24 $ $Revision: 5 $
Constants[edit]
MaxWeaponClasses[edit]
Value: 64
MaxKeptClasses[edit]
Value: 32
LOTSATIME[edit]
Value: 99999.0
Properties[edit]
Property group 'NIU2'[edit]
bCycleWeapons[edit]
Type: bool
Modifiers: config
(true): false ==> players get all weapons in weapons list with auto-incrementing ammo
Default value: True
bRandomWeapons[edit]
Type: bool
Modifiers: config
(true): true ==> weapons selected randomly, false ==> weapons cycled sequentially
bUseAllWeapons[edit]
Type: bool
Modifiers: config
(true): true ==> if bWeaponsRandom is true, all weapons used once per cycle
Default value: True
DefaultPickupString[edit]
Type: string
Default value: "U2.HumanHealthPickup"
HealthIncrementAmount[edit]
Type: int
Modifiers: config
(0): rate at which health of players is incremented
HealthIncrementSoundStr[edit]
Type: string
Modifiers: config
(None): sound to play when incrementing player's health
KeptClassStrings[edit]
Type: string
Array size: MaxKeptClasses
Modifiers: config
list of classes to leave alone
Default value, index 0: "U2.PowerSuit"
Default value, index 1: "U2.PowerSuitPickup"
Default value, index 2: "U2.HumanEnergyPickup"
MaxHealth[edit]
Type: int
Modifiers: config
(100): max that health can be auto-incremented to
Default value: 100
StartHealth[edit]
Type: int
Modifiers: config
(100): health that pawns start out with
Default value: 100
TimeBetweenAmmoIncrements[edit]
Type: float
Modifiers: config
(0.0): >0.0 ==> auto-increment ammo at this rate
Default value: 1.0
TimeBetweenHealthIncrements[edit]
Type: float
Modifiers: config
(5): secs between health updates if HealthIncrementRate >= 1
Default value: 5.0
TimeBetweenWeaponSwitchesMax[edit]
Type: float
Modifiers: config
(45): max secs between weapon switches
Default value: 30.0
TimeBetweenWeaponSwitchesMin[edit]
Type: float
Modifiers: config
(45): min secs between weapon switches
Default value: 30.0
WarningSoundRepeats[edit]
Type: int
Modifiers: config
(3): # times to repeat WarningSound
Default value: 3
WarningSoundStr[edit]
Type: string
Modifiers: config
(U2CTF.CTFTaken): sound to use for "about to switch" warning
Default value: "U2CTF.CTFTaken"
WeaponInfo[edit]
Type: WeaponInfoRawT
Array size: MaxWeaponClasses
Modifiers: config
list of weapons to use with ammo info
Default value, index 0:
Member | Value |
---|---|
AmmoPerSecond | 1.0 |
InitialAmmo | 50 |
MaxAmmo | 100 |
WeaponClassString | "U2Weapons.weaponInvAssaultRifle" |
Default value, index 1:
Member | Value |
---|---|
AmmoPerSecond | 1.0 |
InitialAmmo | 50 |
MaxAmmo | 200 |
WeaponClassString | "U2Weapons.weaponInvEnergyRifle" |
Default value, index 10:
Member | Value |
---|---|
AmmoPerSecond | 0.2 |
bEnabled | True |
InitialAmmo | 20 |
MaxAmmo | 50 |
WeaponClassString | "U2Weapons.weaponInvSniperRifle" |
Default value, index 11:
Member | Value |
---|---|
AmmoPerSecond | 0.2 |
InitialAmmo | 5 |
MaxAmmo | 5 |
WeaponClassString | "U2Weapons.weaponInvTakkra" |
Default value, index 12:
Member | Value |
---|---|
AmmoPerSecond | 1.0 |
bEnabled | True |
InitialAmmo | 50 |
MaxAmmo | 200 |
WeaponClassString | "U2Weapons.weaponInvFlameThrower" |
Default value, index 13:
Member | Value |
---|---|
AmmoPerSecond | 0.2 |
bEnabled | True |
InitialAmmo | 10 |
MaxAmmo | 50 |
WeaponClassString | "U2Weapons.weaponInvGrenadeLauncher" |
Default value, index 14:
Member | Value |
---|---|
AmmoPerSecond | 0.2 |
bEnabled | True |
InitialAmmo | 10 |
MaxAmmo | 100 |
WeaponClassString | "U2Weapons.weaponInvLaserRifle" |
Default value, index 15:
Member | Value |
---|---|
AmmoPerSecond | 0.5 |
InitialAmmo | 25 |
MaxAmmo | 100 |
WeaponClassString | "U2Weapons.weaponInvLeechGun" |
Default value, index 16:
Member | Value |
---|---|
AmmoPerSecond | 0.5 |
bEnabled | True |
InitialAmmo | 25 |
MaxAmmo | 50 |
WeaponClassString | "U2Weapons.weaponInvPistol" |
Default value, index 17:
Member | Value |
---|---|
AmmoPerSecond | 0.2 |
bEnabled | True |
InitialAmmo | 10 |
MaxAmmo | 50 |
WeaponClassString | "U2Weapons.weaponInvRocketLauncher" |
Default value, index 18:
Member | Value |
---|---|
AmmoPerSecond | 0.2 |
InitialAmmo | 25 |
MaxAmmo | 50 |
WeaponClassString | "U2Weapons.weaponInvShotgun" |
Default value, index 19:
Member | Value |
---|---|
AmmoPerSecond | 0.2 |
InitialAmmo | 10 |
MaxAmmo | 50 |
WeaponClassString | "U2Weapons.weaponInvSingularityCannon" |
Internal variables[edit]
bDidTick[edit]
Type: bool
set after first tick occurs
bForceWeaponSpawn[edit]
Type: bool
set to force CheckReplacement to return true for weapons
ChooseWeaponWarningTime[edit]
Type: float
secs before weapon switch to warn clients
CurrentWeaponClass[edit]
current weapon class
CurrentWeaponIndex[edit]
Type: int
index into FilteredWeaponInfo for current weapon
DefaultPickupClass[edit]
default replacement for pickups when not keeping ammo
DefaultWeaponString[edit]
Type: string
fallback weapon in case of problems
Default value: "U2Weapons.WeaponInvRocketLauncher"
FilteredWeaponInfo[edit]
Type: WeaponInfoT
Array size: MaxWeaponClasses
filtered list of weapon classes to use and ammo info
HealthIncrementSound[edit]
Type: Sound
KeptClasses[edit]
Array size: MaxKeptClasses
list of classes to keep
NextAmmoIncrementTime[edit]
Type: float
when to increment ammo
NextChooseWeaponTime[edit]
Type: float
when to switch again
NextIncrementHealthTime[edit]
Type: float
when to do another pass through player health values
NumKeptClasses[edit]
Type: int
number of classes in KeptClassStrings list
NumUsedWeapons[edit]
Type: int
number of weapons used so far (used with bUseAllWeapons)
NumWarnings[edit]
Type: int
did "about to switch" warning
NumWeapons[edit]
Type: int
number of active weapons in internal list
WarningSound[edit]
Type: Sound
loaded warning sound
Structs[edit]
WeaponInfoRawT[edit]
- string WeaponClassString
- weapon class string
- int InitialAmmo
- initial ammo for weapon
- int MaxAmmo
- max ammo for weapon
- float AmmoPerSecond
- rate at which ammo added
- bool bEnabled
- whether weapon is enabled
WeaponInfoT[edit]
- class<Weapon> WeaponClass
- weapon class
- int InitialAmmo
- initial ammo for weapon
- int MaxAmmo
- max ammo for weapon
- float AmmoPerSecond
- rate at which ammo added
- float AmmoCount
- used internally to track ammo to add
- bool bUsed
- weapon was used (used with bUseAllWeapons when picking weapon randomly)
Functions[edit]
Events[edit]
PreBeginPlay[edit]
Overrides: Mutator.PreBeginPlay
Tick[edit]
Overrides: Actor.Tick
Other instance functions[edit]
AddAmmo[edit]
AddWeaponClass[edit]
AlwaysKeep[edit]
Overrides: Mutator.AlwaysKeep
AssignSounds[edit]
CheckReplacement[edit]
Overrides: Mutator.CheckReplacement
ChooseWeapon[edit]
GiveWeaponTo[edit]
IncrementAllInventoryAmmo[edit]
ModifyPlayer[edit]
Overrides: Mutator.ModifyPlayer
MyDefaultWeapon[edit]
Overrides: Mutator.MyDefaultWeapon