viewers access
public class Weapons.Weapon : ScriptableObject
CyberPsychosis > Weapons > Weapon
Weapon is the base class for all weapons.
In the unity inspector you can create and customize upgrades, change its behaviour and change its base values.
| Type | Name | Description |
|---|---|---|
string |
name | The display name of the weapon |
GameObject |
prefab | A prefab reference for when holding the item in your hand |
MainActionType |
mainActionType | The main action type, like shooting or melee attack |
SecondaryActionType |
secondaryActionType | The secondary action type, like parrying |
float |
baseDamage | The base damage of the weapon, when no upgrades are applied |
float |
baseWeakSpotMultiplier | The damage multiplier when hitting a weakspot |
float |
baseAttackCooldown | The cooldown inbetween attacks, when no upgrades are applied |
Upgrade[] |
upgrades | A list of potential upgrades the player can use |
float |
damage | The amount of damage it deals after all modifiers (except for weakspot multiplier) |
float |
attackCooldown | The attack cooldown after all modifiers are applied |
float |
weakSpotMultiplier | The Weakspot multiplier after all modifiers are applied |