ESE_Aliases Class - NarcoMarshDev/Enforce-Script-Extensions Wiki

Category: Static
Path: scripts/Game/ESE_Aliases.c

Collection of aliases for constants and many of the base game resources.

Overview

This class provides easy to access aliases for many of the base game resources, making it easy to reference them in your code as a constant, instead of manually finding them and copying their resource name into a new variable in your script. To use this class, make sure ESE_ALIASES_ALL or one of the specific ones below are defined in your !ESE_Config_YourProjectName.c file (if you don't have this file, follow this guide.), and then simply access the constants from anywhere like ESE_Aliases.AR_WEP_AK74.

The aliases in this class cover most of the following types, and use the defines on the right to activate if you don't use ESE_ALIASES_ALL: Category | Define | :--- | :--- Materials | ESE_ALIASES_MATERIALS Weapons | ESE_ALIASES_WEAPONS Attachments | ESE_ALIASES_ATTACHMENTS Magazines | ESE_ALIASES_MAGAZINES Uniforms | ESE_ALIASES_UNIFORMS Equipment | ESE_ALIASES_EQUIPMENT Vehicles | ESE_ALIASES_VEHICLES

Methods

Name⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ Return⠀⠀⠀⠀⠀ Description
CreateAlias (ResourceName path, ESE_ResourceType type) ResourceName Used to create new custom aliases in modded class, see guide on how to here.
RemoveAliasFromRegister (ResourceName alias) void Remove given alias reference from the alias register, making it no longer show up to any methods that use the register.
AddBlacklist (array<ResourceName> blackList) void Same as RemoveAliasFromRegister() but takes blacklist array of resource name references.
DebugRegister() void Prints all register contents showing the index, resource, and resource type for each entry. Define ESE_ALIASES_DEBUG in your ESE config for full named resource types instead of just integers.

Constants

Materials

Name⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ Resource Resource Type
AR_MAT_CANBUILD {56EBF5038622AC95}Assets/Conflict/CanBuild.emat EntityMaterial
AR_MAT_CANNOTBUILD {14A9DCEA57D1C381}Assets/Conflict/CannotBuild.emat EntityMaterial

Weapons

Name⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ Resource Resource Type
AR_WEP_AK74 {FA5C25BF66A53DCF}Prefabs/Weapons/Rifles/AK74/Rifle_AK74.et AssaultRifle
AR_WEP_AK74_GP25 {63E8322E2ADD4AA7}Prefabs/Weapons/Rifles/AK74/Rifle_AK74_GP25.et AssaultRifle
AR_WEP_M21 {B31929F65F0D0279}Prefabs/Weapons/Rifles/M14/Rifle_M21.et MarksmanRifle
AR_WEP_M21_ARTII {81EB948E6414BD6F}Prefabs/Weapons/Rifles/M14/Rifle_M21_ARTII.et MarksmanRifle
AR_WEP_M16A2 {3E413771E1834D2F}Prefabs/Weapons/Rifles/M16/Rifle_M16A2.et AssaultRifle
AR_WEP_M16A2_M203 {5A987A8A13763769}Prefabs/Weapons/Rifles/M16/Rifle_M16A2_M203.et AssaultRifle
AR_WEP_SVD {3EB02CDAD5F23C82}Prefabs/Weapons/Rifles/SVD/Rifle_SVD.et MarksmanRifle
AR_WEP_SVD_PSO {6415B7923DE28C1B}Prefabs/Weapons/Rifles/SVD/Rifle_SVD_PSO.et MarksmanRifle
AR_WEP_M249 {D2B48DEBEF38D7D7}Prefabs/Weapons/MachineGuns/M249/MG_M249.et SquadAutomaticWeapon
AR_WEP_M60 {D182DCDD72BF7E34}Prefabs/Weapons/MachineGuns/M60/MG_M60.et MachineGun
AR_WEP_PKM {A89BC9D55FFB4CD8}Prefabs/Weapons/MachineGuns/PKM/MG_PKM.et MachineGun
AR_WEP_RPK74 {A7AF84C6C58BA3E8}Prefabs/Weapons/MachineGuns/RPK74/MG_RPK74.et SquadAutomaticWeapon
AR_WEP_M9 {1353C6EAD1DCFE43}Prefabs/Weapons/Handguns/M9/Handgun_M9.et Handgun
AR_WEP_PM {C0F7DD85A86B2900}Prefabs/Weapons/Handguns/PM/Handgun_PM.et Handgun
AR_WEP_M72A3 {9C5C20FB0E01E64F}Prefabs/Weapons/Launchers/M72/Launcher_M72A3.et RocketLauncher
AR_WEP_RPG7 {7A82FE978603F137}Prefabs/Weapons/Launchers/RPG7/Launcher_RPG7.et RocketLauncher
AR_WEP_M67 {E8F00BF730225B00}Prefabs/Weapons/Grenades/Grenade_M67.et LethalGrenade
AR_WEP_RGD5 {645C73791ECA1698}Prefabs/Weapons/Grenades/Grenade_RGD5.et LethalGrenade
AR_WEP_ANM8HC {9DB69176CEF0EE97}Prefabs/Weapons/Grenades/Smoke_ANM8HC.et SmokeGrenade
AR_WEP_RDG2 {77EAE5E07DC4678A}Prefabs/Weapons/Grenades/Smoke_RDG2.et SmokeGrenade
AR_WEP_M18_WHITE {AD2709F5F6F0D871}Prefabs/Weapons/Grenades/M18/Smoke_M18_Base.et SmokeGrenade
AR_WEP_M18_GREEN {D41D22DD1B8E921E}Prefabs/Weapons/Grenades/M18/Smoke_M18_Green.et SmokeGrenade
AR_WEP_M18_RED {3343A055A83CB30D}Prefabs/Weapons/Grenades/M18/Smoke_M18_Red.et SmokeGrenade
AR_WEP_M18_VIOLET {14C1A0F061D9DDEE}Prefabs/Weapons/Grenades/M18/Smoke_M18_Violet.et SmokeGrenade
AR_WEP_M18_YELLOW {9BBDEE253A16CC66}Prefabs/Weapons/Grenades/M18/Smoke_M18_Yellow.et SmokeGrenade

Attachments

Name⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ Resource Resource Type
AR_OPTIC_ARTII {D2018EDB1BBF4C88}Prefabs/Weapons/Attachments/Optics/Optic_ARTII.et Optic
AR_OPTIC_PSO1 {C850A33226B8F9C1}Prefabs/Weapons/Attachments/Optics/Optic_PSO1.et Optic
AR_UGL_M203 {43FDAF3FA0FF2299}Prefabs/Weapons/Attachments/Underbarrel/UGL_M203.et UnderbarrelWeapon
AR_UGL_GP25 {1ABABE3551512B0A}Prefabs/Weapons/Attachments/Underbarrel/UGL_GP25.et UnderbarrelWeapon
AR_BAYONET_M9 {A4AF9C38A4179880}Prefabs/Weapons/Attachments/Bayonets/Bayonet_M9.et Bayonet
AR_BAYONET_6KH4 {C7534F7A79EA3331}Prefabs/Weapons/Attachments/Bayonets/Bayonet_6Kh4.et Bayonet
AR_HGUARD_M16A2 {FB1A7F5BC7D935E2}Prefabs/Weapons/Attachments/Handguards/Handguard_M16A2/Handguard_M16.et Handguard

Magazines

Name⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ Resource Resource Type
AR_MAG_PM_BASE {9B5AA2C731485ACA}Prefabs/Weapons/Magazines/Magazine_9x18_PM_8rnd_Base.et Magazine
AR_MAG_PM_BALL {8B853CDD11BA916E}Prefabs/Weapons/Magazines/Magazine_9x18_PM_8rnd_Ball.et Magazine
AR_MAG_M9_BASE {DFFBF5F097FCF797}Prefabs/Weapons/Magazines/Magazine_9x19_M9_15rnd_Base.et Magazine
AR_MAG_M9_BALL {9C05543A503DB80E}Prefabs/Weapons/Magazines/Magazine_9x19_M9_15rnd_Ball.et Magazine
AR_MAG_AK74_BALL {BBB50A815A2F916B}Prefabs/Weapons/Magazines/Magazine_545x39_AK_30rnd_Ball.et Magazine
AR_MAG_AK74_TRACER {E5912E45754CD421}Prefabs/Weapons/Magazines/Magazine_545x39_AK_30rnd_Tracer.et Magazine
AR_MAG_AK74_ENDTRACER {0A84AA5A3884176F}Prefabs/Weapons/Magazines/Magazine_545x39_AK_30rnd_Last_5Tracer.et Magazine
AR_MAG_M16_BALL {2EBF60EF24B108FC}Prefabs/Weapons/Magazines/Magazine_556x45_STANAG_30rnd_Ball.et Magazine
AR_MAG_M16_TRACER {A9A385FE1F7BF4BD}Prefabs/Weapons/Magazines/Magazine_556x45_STANAG_30rnd_Tracer.et Magazine
AR_MAG_M16_ENDTRACER {D8F2CA92583B23D3}Prefabs/Weapons/Magazines/Magazine_556x45_STANAG_30rnd_Last_5Tracer.et Magazine
AR_MAG_M14_BASE {6D18CC33708EE712}Prefabs/Weapons/Magazines/Magazine_762x51_M14_20rnd_Base.et Magazine
AR_MAG_M14_SPECIAL {627255315038152A}Prefabs/Weapons/Magazines/Magazine_762x51_M14_20rnd_SpecialBall.et Magazine
AR_MAG_SVD_BASE {761A03A9C5BA8D68}Prefabs/Weapons/Magazines/Magazine_762x54_SVD_10rnd_Base.et Magazine
AR_MAG_SVD_SNIPER {9CCB46C6EE632C1A}Prefabs/Weapons/Magazines/Magazine_762x54_SVD_10rnd_Sniper.et Magazine
AR_MAG_M249_BALL {4FCBBDF274FD2157}Prefabs/Weapons/Magazines/Box_556x45_M249_200rnd_Ball.et LMGBelt
AR_MAG_M249_TRACER {4EEDDB27C023B8B9}Prefabs/Weapons/Magazines/Box_556x45_M249_200rnd_Tracer.et LMGBelt
AR_MAG_M249_MIX {06D722FC2666EB83}Prefabs/Weapons/Magazines/Box_556x45_M249_200rnd_4Ball_1Tracer.et LMGBelt
AR_MAG_RPK74_BALL {BC74DAC891D48540}Prefabs/Weapons/Magazines/Magazine_545x39_RPK_45rnd_Ball.et Magazine
AR_MAG_RPK74_TRACER {5897D01F41DB5D2D}Prefabs/Weapons/Magazines/Magazine_545x39_RPK_45rnd_Tracer.et Magazine
AR_MAG_RPK74_MIX {D78C667F59829717}Prefabs/Weapons/Magazines/Magazine_545x39_RPK_45rnd_4Ball_1Tracer.et Magazine
AR_MAG_M60_BALL {982F5BA41A3738CF}Prefabs/Weapons/Magazines/Box_762x51_M60_100rnd_Ball.et LMGBelt
AR_MAG_M60_AP {75632A0CA07D3817}Prefabs/Weapons/Magazines/Box_762x51_M60_100rnd_AP.et LMGBelt
AR_MAG_M60_TRACER {AD8AB93729348C3E}Prefabs/Weapons/Magazines/Box_762x51_M60_100rnd_Tracer.et LMGBelt
AR_MAG_M60_BALL_MIX {4D2C1E8F3A81F894}Prefabs/Weapons/Magazines/Box_762x51_M60_100rnd_4Ball_1Tracer.et LMGBelt
AR_MAG_M60_AP_MIX {AAF51CFA75A9CF8B}Prefabs/Weapons/Magazines/Box_762x51_M60_100rnd_4AP_1Tracer.et LMGBelt
AR_MAG_PKM_100_BALL {A6737DA00653A39C}Prefabs/Weapons/Magazines/Box_762x54_PK_100rnd_Ball.et LMGBelt
AR_MAG_PKM_100_TRACER {BEEA49E27174B224}Prefabs/Weapons/Magazines/Box_762x54_PK_100rnd_Tracer.et LMGBelt
AR_MAG_PKM_100_MIX {E5E9C5897CF47F44}Prefabs/Weapons/Magazines/Box_762x54_PK_100rnd_4Ball_1Tracer.et LMGBelt
AR_MAG_PKM_250_BALL {1C260E65B7F290BA}Prefabs/Weapons/Magazines/Box_762x54_PK_250rnd_Ball.et LMGBelt
AR_MAG_PKM_250_TRACER {B386EEE8AED8E386}Prefabs/Weapons/Magazines/Box_762x54_PK_250rnd_Tracer.et LMGBelt
AR_MAG_PKM_250_MIX {D8421F6E70B2FB4F}Prefabs/Weapons/Magazines/Box_762x54_PK_250rnd_4Ball_1Tracer.et LMGBelt
AR_MAG_M2HB_BALL {B8921B7BFE8CAEF0}Prefabs/Weapons/Magazines/Box_127x99_M2_100rnd_Ball.et HeavyWeaponAmmo
AR_MAG_M2HB_AP {25CE9A2A7EAD5B9D}Prefabs/Weapons/Magazines/Box_127x99_M2_100rnd_AP.et HeavyWeaponAmmo
AR_MAG_M2HB_TRACER {4068585808DF8DF2}Prefabs/Weapons/Magazines/Box_127x99_M2_100rnd_Tracer.et HeavyWeaponAmmo
AR_MAG_M2HB_APT_MIX {50A242E5D9742C62}Prefabs/Weapons/Magazines/Box_127x99_M2_100rnd_4AP_1Tracer.et HeavyWeaponAmmo
AR_MAG_M2HB_APIT_MIX {C820846B0521423B}Prefabs/Weapons/Magazines/Box_127x99_M2_100rnd_4AP_1APIT.et HeavyWeaponAmmo
AR_MAG_M2HB_BALLT_MIX {CC7F787C3ECF678F}Prefabs/Weapons/Magazines/Box_127x99_M2_100rnd_4Ball_1Tracer.et HeavyWeaponAmmo
AR_MAG_KPVT_BASE {0261DDFDDD21D614}Prefabs/Weapons/Magazines/Box_145x114_KPVT_50rnd_Base.et HeavyWeaponAmmo
AR_MAG_KPVT_API {BFD6872B1C069136}Prefabs/Weapons/Magazines/Box_145x114_KPVT_50rnd_API.et HeavyWeaponAmmo
AR_MAG_KPVT_APIT {EA806763FE4EDDDF}Prefabs/Weapons/Magazines/Box_145x114_KPVT_50rnd_APIT.et HeavyWeaponAmmo
AR_MAG_KPVT_MIX {8257B5AFDE7AE5CB}Prefabs/Weapons/Magazines/Box_145x114_KPVT_50rnd_4API_1APIT.et HeavyWeaponAmmo

Uniforms

Not yet implemented. Name⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ | Resource | Resource Type | :--- | :--- | :---

Equipment

Not yet implemented. Name⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ | Resource | Resource Type | :--- | :--- | :---

Vehicles

Name⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ Resource Resource Type
AR_VEH_M151A2 {F649585ABB3706C4}Prefabs/Vehicles/Wheeled/M151A2/M151A2.et MilitaryCar
AR_VEH_M151A2_TRANSPORT {47D94E1193A88497}Prefabs/Vehicles/Wheeled/M151A2/M151A2_transport.et MilitaryCar
AR_VEH_M151A2_M2HB {F6B23D17D5067C11}Prefabs/Vehicles/Wheeled/M151A2/M151A2_M2HB.et MilitaryCarArmed
AR_VEH_UAZ469 {259EE7B78C51B624}Prefabs/Vehicles/Wheeled/UAZ469/UAZ469.et MilitaryCar
AR_VEH_M923A1 {9A0D72816DFFDB7F}Prefabs/Vehicles/Wheeled/M923A1/M923A1.et MilitaryTruck
AR_VEH_M923A1_TRANSPORT {F1FBD0972FA5FE09}Prefabs/Vehicles/Wheeled/M923A1/M923A1_transport.et MilitaryTruck
AR_VEH_M923A1_COVERED {81FDAD5EB644CC3D}Prefabs/Vehicles/Wheeled/M923A1/M923A1_transport_covered.et MilitaryTruck
AR_VEH_M923A1_TANKER {2BE1F8B9299B67C1}Prefabs/Vehicles/Wheeled/M923A1/M923A1_tanker.et UtilityTruck
AR_VEH_M923A1_COMMAND {36BDCC88B17B3BFA}Prefabs/Vehicles/Wheeled/M923A1/M923A1_command.et UtilityTruck
AR_VEH_URAL4320 {4597626AF36C0858}Prefabs/Vehicles/Wheeled/Ural4320/Ural4320.et MilitaryTruck
AR_VEH_URAL4320_TRANSPORT {16C1F16C9B053801}Prefabs/Vehicles/Wheeled/Ural4320/Ural4320_transport.et MilitaryTruck
AR_VEH_URAL4320_COVERED {D9B91FAB817A6033}Prefabs/Vehicles/Wheeled/Ural4320/Ural4320_transport_covered.et MilitaryTruck
AR_VEH_URAL4320_TANKER {4C81D7ED8F8C0D87}Prefabs/Vehicles/Wheeled/Ural4320/Ural4320_tanker.et UtilityTruck
AR_VEH_URAL4320_COMMAND {1BABF6B33DA0AEB6}Prefabs/Vehicles/Wheeled/Ural4320/Ural4320_command.et UtilityTruck
AR_VEH_M998 {5674FAEB9AB7BDD0}Prefabs/Vehicles/Wheeled/M998/M998.et ArmouredCar
AR_VEH_M998_COVERED {B55C6990A6A9411B}Prefabs/Vehicles/Wheeled/M998/M998_covered.et ArmouredCar
AR_VEH_M998_COVERED_LONG {9B1BF9644E0378D6}Prefabs/Vehicles/Wheeled/M998/M998_covered_long.et ArmouredCar
AR_VEH_M1025 {4A71F755A4513227}Prefabs/Vehicles/Wheeled/M998/M1025.et ArmouredCar
AR_VEH_M1025_ARMED_EMPTY {B120CDDBEF8DB007}Prefabs/Vehicles/Wheeled/M998/M1025_armed_base.et ArmouredCar
AR_VEH_M1025_ARMED_M2HB {3EA6F47D95867114}Prefabs/Vehicles/Wheeled/M998/M1025_armed_M2HB.et ArmouredCarArmed
AR_VEH_BTR70 {C012BB3488BEA0C2}Prefabs/Vehicles/Wheeled/BTR70/BTR70.et APC