added mk2 tints to es_extended#754
Conversation
didn't test it with this version. may work
added translation for mk2 tints
|
Has to be a better way to do that, its must be working. But nothing else |
first of all why this is a bad way to do it? |
|
it basically just uses other table keys. when mk2 then choose mk2 key |
|
How about you just make a different table for it, instead of writing in the same |
|
the one who writing on this script could've implemented it long time ago. |
Still for backwards compatibility (eg scripts relying on the old table), you should make a new table and call it like MK2WeaponTints |
|
that is definitely a good idea yes. they could do it if its not done on the latest version, many people would like to have it |
There was a problem hiding this comment.
@PreacherDev Hi! Yes I also think that a separate board would be the solution. If you update the es_textend it will work as it is, there should be no restrictions! If you doing these changes please update your branch and fix merge issues thank you.
| ['non_mk2'] = { | ||
| -- DEFAULT | ||
| [0] = TranslateCap('tint_default'), | ||
| [1] = TranslateCap('tint_green'), | ||
| [2] = TranslateCap('tint_gold'), | ||
| [3] = TranslateCap('tint_pink'), | ||
| [4] = TranslateCap('tint_army'), | ||
| [5] = TranslateCap('tint_lspd'), | ||
| [6] = TranslateCap('tint_orange'), | ||
| [7] = TranslateCap('tint_platinum'), | ||
| }, | ||
| ['mk2'] = { | ||
| -- MK2 | ||
| [0] = TranslateCap('tint_classic_black'), | ||
| [1] = TranslateCap('tint_classic_gray'), | ||
| [2] = TranslateCap('tint_classic_two_tone'), | ||
| [3] = TranslateCap('tint_classic_white'), | ||
| [4] = TranslateCap('tint_classic_beige'), | ||
| [5] = TranslateCap('tint_classic_green'), | ||
| [6] = TranslateCap('tint_classic_blue'), | ||
| [7] = TranslateCap('tint_classic_earth'), | ||
| [8] = TranslateCap('tint_classic_brown_black'), | ||
| [9] = TranslateCap('tint_contrast_red'), | ||
| [10] = TranslateCap('tint_contrast_blue'), | ||
| [11] = TranslateCap('tint_contrast_yellow'), | ||
| [12] = TranslateCap('tint_contrast_orange'), | ||
| [13] = TranslateCap('tint_bold_pink'), | ||
| [14] = TranslateCap('tint_bold_purple_yellow'), | ||
| [15] = TranslateCap('tint_bold_orange'), | ||
| [16] = TranslateCap('tint_bold_green_purple'), | ||
| [17] = TranslateCap('tint_bold_red_feat'), | ||
| [18] = TranslateCap('tint_bold_green_feat'), | ||
| [19] = TranslateCap('tint_bold_cyan_feat'), | ||
| [20] = TranslateCap('tint_bold_yellow_feat'), | ||
| [21] = TranslateCap('tint_bold_red_white'), | ||
| [22] = TranslateCap('tint_bold_blue_white'), | ||
| [23] = TranslateCap('tint_metallic_gold'), | ||
| [24] = TranslateCap('tint_metallic_platinum'), | ||
| [25] = TranslateCap('tint_metallic_gray_lilac'), | ||
| [26] = TranslateCap('tint_metallic_purple_lime'), | ||
| [27] = TranslateCap('tint_metallic_red'), | ||
| [28] = TranslateCap('tint_metallic_green'), | ||
| [29] = TranslateCap('tint_metallic_blue'), | ||
| [30] = TranslateCap('tint_metallic_white_aqua'), | ||
| [31] = TranslateCap('tint_metallic_orange_yellow'), | ||
| [32] = TranslateCap('tint_metallic_red_yellow'), | ||
| }, |
There was a problem hiding this comment.
| ['non_mk2'] = { | |
| -- DEFAULT | |
| [0] = TranslateCap('tint_default'), | |
| [1] = TranslateCap('tint_green'), | |
| [2] = TranslateCap('tint_gold'), | |
| [3] = TranslateCap('tint_pink'), | |
| [4] = TranslateCap('tint_army'), | |
| [5] = TranslateCap('tint_lspd'), | |
| [6] = TranslateCap('tint_orange'), | |
| [7] = TranslateCap('tint_platinum'), | |
| }, | |
| ['mk2'] = { | |
| -- MK2 | |
| [0] = TranslateCap('tint_classic_black'), | |
| [1] = TranslateCap('tint_classic_gray'), | |
| [2] = TranslateCap('tint_classic_two_tone'), | |
| [3] = TranslateCap('tint_classic_white'), | |
| [4] = TranslateCap('tint_classic_beige'), | |
| [5] = TranslateCap('tint_classic_green'), | |
| [6] = TranslateCap('tint_classic_blue'), | |
| [7] = TranslateCap('tint_classic_earth'), | |
| [8] = TranslateCap('tint_classic_brown_black'), | |
| [9] = TranslateCap('tint_contrast_red'), | |
| [10] = TranslateCap('tint_contrast_blue'), | |
| [11] = TranslateCap('tint_contrast_yellow'), | |
| [12] = TranslateCap('tint_contrast_orange'), | |
| [13] = TranslateCap('tint_bold_pink'), | |
| [14] = TranslateCap('tint_bold_purple_yellow'), | |
| [15] = TranslateCap('tint_bold_orange'), | |
| [16] = TranslateCap('tint_bold_green_purple'), | |
| [17] = TranslateCap('tint_bold_red_feat'), | |
| [18] = TranslateCap('tint_bold_green_feat'), | |
| [19] = TranslateCap('tint_bold_cyan_feat'), | |
| [20] = TranslateCap('tint_bold_yellow_feat'), | |
| [21] = TranslateCap('tint_bold_red_white'), | |
| [22] = TranslateCap('tint_bold_blue_white'), | |
| [23] = TranslateCap('tint_metallic_gold'), | |
| [24] = TranslateCap('tint_metallic_platinum'), | |
| [25] = TranslateCap('tint_metallic_gray_lilac'), | |
| [26] = TranslateCap('tint_metallic_purple_lime'), | |
| [27] = TranslateCap('tint_metallic_red'), | |
| [28] = TranslateCap('tint_metallic_green'), | |
| [29] = TranslateCap('tint_metallic_blue'), | |
| [30] = TranslateCap('tint_metallic_white_aqua'), | |
| [31] = TranslateCap('tint_metallic_orange_yellow'), | |
| [32] = TranslateCap('tint_metallic_red_yellow'), | |
| }, | |
| [0] = TranslateCap('tint_default'), | |
| [1] = TranslateCap('tint_green'), | |
| [2] = TranslateCap('tint_gold'), | |
| [3] = TranslateCap('tint_pink'), | |
| [4] = TranslateCap('tint_army'), | |
| [5] = TranslateCap('tint_lspd'), | |
| [6] = TranslateCap('tint_orange'), | |
| [7] = TranslateCap('tint_platinum') | |
| } | |
| Config.MK2WeaponTints = { | |
| [0] = TranslateCap('tint_classic_black'), | |
| [1] = TranslateCap('tint_classic_gray'), | |
| [2] = TranslateCap('tint_classic_two_tone'), | |
| [3] = TranslateCap('tint_classic_white'), | |
| [4] = TranslateCap('tint_classic_beige'), | |
| [5] = TranslateCap('tint_classic_green'), | |
| [6] = TranslateCap('tint_classic_blue'), | |
| [7] = TranslateCap('tint_classic_earth'), | |
| [8] = TranslateCap('tint_classic_brown_black'), | |
| [9] = TranslateCap('tint_contrast_red'), | |
| [10] = TranslateCap('tint_contrast_blue'), | |
| [11] = TranslateCap('tint_contrast_yellow'), | |
| [12] = TranslateCap('tint_contrast_orange'), | |
| [13] = TranslateCap('tint_bold_pink'), | |
| [14] = TranslateCap('tint_bold_purple_yellow'), | |
| [15] = TranslateCap('tint_bold_orange'), | |
| [16] = TranslateCap('tint_bold_green_purple'), | |
| [17] = TranslateCap('tint_bold_red_feat'), | |
| [18] = TranslateCap('tint_bold_green_feat'), | |
| [19] = TranslateCap('tint_bold_cyan_feat'), | |
| [20] = TranslateCap('tint_bold_yellow_feat'), | |
| [21] = TranslateCap('tint_bold_red_white'), | |
| [22] = TranslateCap('tint_bold_blue_white'), | |
| [23] = TranslateCap('tint_metallic_gold'), | |
| [24] = TranslateCap('tint_metallic_platinum'), | |
| [25] = TranslateCap('tint_metallic_gray_lilac'), | |
| [26] = TranslateCap('tint_metallic_purple_lime'), | |
| [27] = TranslateCap('tint_metallic_red'), | |
| [28] = TranslateCap('tint_metallic_green'), | |
| [29] = TranslateCap('tint_metallic_blue'), | |
| [30] = TranslateCap('tint_metallic_white_aqua'), | |
| [31] = TranslateCap('tint_metallic_orange_yellow'), | |
| [32] = TranslateCap('tint_metallic_red_yellow') |
| label = TranslateCap('weapon_appistol'), | ||
| ammo = {label = TranslateCap('ammo_rounds'), hash = `AMMO_PISTOL`}, | ||
| tints = Config.DefaultWeaponTints, | ||
| tints = Config.DefaultWeaponTints['non_mk2'], |
There was a problem hiding this comment.
| tints = Config.DefaultWeaponTints['non_mk2'], | |
| tints = Config.DefaultWeaponTints, |
| } | ||
| }, | ||
| {name = 'WEAPON_CERAMICPISTOL', label = TranslateCap('weapon_ceramicpistol'), tints = Config.DefaultWeaponTints, components = {}, ammo = {label = TranslateCap('ammo_rounds'), hash = `AMMO_PISTOL`}}, | ||
| {name = 'WEAPON_CERAMICPISTOL', label = TranslateCap('weapon_ceramicpistol'), tints = Config.DefaultWeaponTints['non_mk2'], components = {}, ammo = {label = TranslateCap('ammo_rounds'), hash = `AMMO_PISTOL`}}, |
There was a problem hiding this comment.
| {name = 'WEAPON_CERAMICPISTOL', label = TranslateCap('weapon_ceramicpistol'), tints = Config.DefaultWeaponTints['non_mk2'], components = {}, ammo = {label = TranslateCap('ammo_rounds'), hash = `AMMO_PISTOL`}}, | |
| {name = 'WEAPON_CERAMICPISTOL', label = TranslateCap('weapon_ceramicpistol'), tints = Config.DefaultWeaponTints, components = {}, ammo = {label = TranslateCap('ammo_rounds'), hash = `AMMO_PISTOL`}}, |
| label = TranslateCap('weapon_combatpistol'), | ||
| ammo = {label = TranslateCap('ammo_rounds'), hash = `AMMO_PISTOL`}, | ||
| tints = Config.DefaultWeaponTints, | ||
| tints = Config.DefaultWeaponTints['non_mk2'], |
There was a problem hiding this comment.
| tints = Config.DefaultWeaponTints['non_mk2'], | |
| tints = Config.DefaultWeaponTints, |
| {name = 'WEAPON_DOUBLEACTION', label = TranslateCap('weapon_doubleaction'), tints = Config.DefaultWeaponTints['non_mk2'], components = {}, ammo = {label = TranslateCap('ammo_rounds'), hash = `AMMO_PISTOL`}}, | ||
| {name = 'WEAPON_NAVYREVOLVER', label = TranslateCap('weapon_navyrevolver'), tints = Config.DefaultWeaponTints['non_mk2'], components = {}, ammo = {label = TranslateCap('ammo_rounds'), hash = `AMMO_PISTOL`}}, | ||
| {name = 'WEAPON_FLAREGUN', label = TranslateCap('weapon_flaregun'), tints = Config.DefaultWeaponTints['non_mk2'], components = {}, ammo = {label = TranslateCap('ammo_flaregun'), hash = `AMMO_FLAREGUN`}}, | ||
| {name = 'WEAPON_GADGETPISTOL', label = TranslateCap('weapon_gadgetpistol'), tints = Config.DefaultWeaponTints['non_mk2'], components = {}, ammo = {label = TranslateCap('ammo_rounds'), hash = `AMMO_PISTOL`}}, |
There was a problem hiding this comment.
| {name = 'WEAPON_DOUBLEACTION', label = TranslateCap('weapon_doubleaction'), tints = Config.DefaultWeaponTints['non_mk2'], components = {}, ammo = {label = TranslateCap('ammo_rounds'), hash = `AMMO_PISTOL`}}, | |
| {name = 'WEAPON_NAVYREVOLVER', label = TranslateCap('weapon_navyrevolver'), tints = Config.DefaultWeaponTints['non_mk2'], components = {}, ammo = {label = TranslateCap('ammo_rounds'), hash = `AMMO_PISTOL`}}, | |
| {name = 'WEAPON_FLAREGUN', label = TranslateCap('weapon_flaregun'), tints = Config.DefaultWeaponTints['non_mk2'], components = {}, ammo = {label = TranslateCap('ammo_flaregun'), hash = `AMMO_FLAREGUN`}}, | |
| {name = 'WEAPON_GADGETPISTOL', label = TranslateCap('weapon_gadgetpistol'), tints = Config.DefaultWeaponTints['non_mk2'], components = {}, ammo = {label = TranslateCap('ammo_rounds'), hash = `AMMO_PISTOL`}}, | |
| {name = 'WEAPON_DOUBLEACTION', label = TranslateCap('weapon_doubleaction'), tints = Config.DefaultWeaponTints, components = {}, ammo = {label = TranslateCap('ammo_rounds'), hash = `AMMO_PISTOL`}}, | |
| {name = 'WEAPON_NAVYREVOLVER', label = TranslateCap('weapon_navyrevolver'), tints = Config.DefaultWeaponTints, components = {}, ammo = {label = TranslateCap('ammo_rounds'), hash = `AMMO_PISTOL`}}, | |
| {name = 'WEAPON_FLAREGUN', label = TranslateCap('weapon_flaregun'), tints = Config.DefaultWeaponTints], components = {}, ammo = {label = TranslateCap('ammo_flaregun'), hash = `AMMO_FLAREGUN`}}, | |
| {name = 'WEAPON_GADGETPISTOL', label = TranslateCap('weapon_gadgetpistol'), tints = Config.DefaultWeaponTints, components = {}, ammo = {label = TranslateCap('ammo_rounds'), hash = `AMMO_PISTOL`}}, |
| label = TranslateCap('weapon_microsmg'), | ||
| ammo = {label = TranslateCap('ammo_rounds'), hash = `AMMO_SMG`}, | ||
| tints = Config.DefaultWeaponTints, | ||
| tints = Config.DefaultWeaponTints['non_mk2'], |
There was a problem hiding this comment.
| tints = Config.DefaultWeaponTints['non_mk2'], | |
| tints = Config.DefaultWeaponTints, |
| label = TranslateCap('weapon_mg'), | ||
| ammo = {label = TranslateCap('ammo_rounds'), hash = `AMMO_MG`}, | ||
| tints = Config.DefaultWeaponTints, | ||
| tints = Config.DefaultWeaponTints['non_mk2'], |
There was a problem hiding this comment.
| tints = Config.DefaultWeaponTints['non_mk2'], | |
| tints = Config.DefaultWeaponTints, |
| label = TranslateCap('weapon_machinepistol'), | ||
| ammo = {label = TranslateCap('ammo_rounds'), hash = `AMMO_PISTOL`}, | ||
| tints = Config.DefaultWeaponTints, | ||
| tints = Config.DefaultWeaponTints['non_mk2'], |
There was a problem hiding this comment.
| tints = Config.DefaultWeaponTints['non_mk2'], | |
| tints = Config.DefaultWeaponTints, |
| label = TranslateCap('weapon_gusenberg'), | ||
| ammo = {label = TranslateCap('ammo_rounds'), hash = `AMMO_MG`}, | ||
| tints = Config.DefaultWeaponTints, | ||
| tints = Config.DefaultWeaponTints['non_mk2'], |
There was a problem hiding this comment.
| tints = Config.DefaultWeaponTints['non_mk2'], | |
| tints = Config.DefaultWeaponTints, |
| label = TranslateCap('weapon_combatpdw'), | ||
| ammo = {label = TranslateCap('ammo_rounds'), hash = `AMMO_SMG`}, | ||
| tints = Config.DefaultWeaponTints, | ||
| tints = Config.DefaultWeaponTints['non_mk2'], |
There was a problem hiding this comment.
| tints = Config.DefaultWeaponTints['non_mk2'], | |
| tints = Config.DefaultWeaponTints, |
|
thanks for the work @iSentrie |
No description provided.