Structs:SkillInfo

From ZDoom Wiki
Jump to navigation Jump to search

(Pull request #3002 only)

The SkillInfo struct contains data pertaining to an skill available to the game. This is a native struct and cannot be extended. All variables this struct uses are created from the the MAPINFO skill{} block

Usage

Each defined skill in the game is stored in this struct.

Fields

  • string SkillName
The name of the skill setting.
  • double AmmoFactor
Multiplier for how much ammo each Ammo item gives.
  • double DoubleAmmoFactor
Ditto, but for when the Double Ammo DM flag is on.
  • double DropAmmoFactor
Ditto, but for the ammo of items dropped by dead monsters and actors in general.
  • double DamageFactor
Multiplier for how much damage the player takes.
  • double ArmorFactor
Multiplier for how much armor each BasicArmorBonus and BasicArmorPickup item gives.
  • double HealthFactor
Multiplier for how much health the player receives.
  • double KickbackFactor
Multiplier for how much the player is pushed by ApplyKickback.
  • bool FastMonsters
The skill has fast monsters.
  • bool SlowMonsters
The skill has slow monsters.
  • bool DisableCheats
Prevents players from being able to use cheat commands unless sv_cheats is true.
  • bool AutoUseHealth
Makes the player always automatically use any items that they pick up which don't immediately apply. Such as Strife's medkits.
  • bool EasyBossBrain
Makes BossEye fire spawns slower.
  • bool EasyKey
Makes key items visible on the automap.
  • bool NoMenu
This skill does not appear on the skill selection menu.
  • intRespawnCounter
How many seconds it takes for dead monsters to respawn in this skill.
  • int RespawnLimit
How many times monsters can respawn in this skill before staying dead.
  • double Aggressiveness
How aggressively (Often) monsters attack in this skill. From 0.0 to 1.0.
  • int SpawnFilter
The spawn filter used to control what actors spawn and don't spawn on levels in this skill. Derived from Doom's skill levels.
  • bool SpawnMulti
Actors meant for multiplayer should always spawn in this skill.
  • bool InstantReaction
Monsters in this skill instantly react even after spawning.
  • bool SpawnMultiCoopOnly
Ditto, but only items for cooperative games.
  • int ACSReturn
The number this skill returns for ACS's GameSkill function.
  • string MenuName
(Need more info)
  • string PicName
The name of the text custom name graphic used for the skill.
  • Map<Name, String> MenuNamesForPlayerClass
What the skill is called based on the players' selected class. Stored as an map.
  • bool MustConfirm
This skill requires a confirmation prompt to be selected.
  • string MustCinformPrompt
The text used in the confirmation prompt.
  • int Shortcut
The shortcut that can be pressed to select the skill from the skill menu.
  • string TextColor
The color that the skill level's string is displayed as.
  • Map <Name,Name> Replace
Associative map used by the skill to replace all classes from the key pairs with the ones on their value pairs. Such as for replacing certain monsters with stronger variants. (Verification needed)
  • Map <Name,Name> Replaced
Ditto, but the key pairs store who replaced the value pairs, i.e <"CoolNewDemon","BoringDemon"> (Verification needed)
  • double MonsterHealth
Multiplier for how much more or less health enemy monsters have in this skill.
  • double FriendlyHealth
Ditto, but for friendly monsters.
  • bool NoPain
Actors never flinch in this skill.
  • int Infighting
The infighting mode for this skill. This variable just stores the infighting level flag assigned to this skill. So the available values are LEVEL2_NOINFIGHTING, LEVEL2_TOTALINFIGHTING, and 0 (Default infighting behavior). Can be overridden by the levels' own flags.
  • bool PlayerRespawn
Player is allowed to respawn in this skill back to a start point like in cooperative netgames.

Methods

  • int GetTextColor()
Returns the skills' text color as a CR_ value.