What's new
  • Howdy, Guest!

    We have issued a forced password reset on all user accounts, meaning you will not be able to login until this process is complete. Instructions will be displayed when you login with your previous credentials, however if for any reason you do not have access to your associated email address, you will need to contact us at [email protected].

    For more information, please read this Important Announcement

    Thank you for being awesome!

Code Modern Warfare Remastered - GSC, Last Updated 1/10/24

Xeirh

Xeirh

Enthusiast
Messages
4
Reaction score
5
Points
50
Sin$
7
Sadly some titles don't have isInt() or isFloat() checks, but atleast we still have isnumber()
Code:
isInt( val ) {
    if( isnumber( val ) && !issubstr( val, "." ) )
        return true;
    return false;
}
isFloat( val ) {
    if( isnumber( val ) && issubstr( val, "." ) )
        return true;
    return false;
}
intFloat( val ) {
    if( isFloat( val ) )
        return float( val );
    return int( val );
}
Code:
isInArray( array, item ) {
    for( a = 0; a < array.size; a++ )
        if( array[ a ] == item )
            return true;
    return false;
}
arrayRemove( array, item ) {
    new = [];
    for( a = 0; a < array.size; a++ )
        if( array[ a ] != item )
            new[ new.size ] = array[ a ];
    return new;
}
arrayAdd( array, item, dupe ) {
    if( isdefined( dupe ) || !isInArray( array, item ) )
        array[ array.size ] = item;
    return array;
}
How do I give weapons with camos, attachments, reticles and more?
Weapon String: "<weapon>_a#<attachment>#<kit>_<camo>", if you want a custom reticle, it goes between the kit and camo, "<weapon>_a#<attachment>#<kit>_<reticle>_<camo>"
Example: "h1_barrett_mp_a#acog_f#ftd_camo104"
How Do I Rebuild Weapon Strings?
By getbaseweaponname( weapon ); will give you the base name without the _mp or any of the attachment, kit, camo strings behind it.
Example Time
Code:
random_camo() {
    current_weapon = self getcurrentweapon();
    if( isdefined( current_weapon ) ) {
        base = getbaseweaponname( current_weapon );
        weapon = buildweaponnamecamo( buildweaponname( base ), randomintrange( 1, 368 ) );
        self takeweapon( current_weapon );
        self giveweapon( weapon );
        self switchtoweapon( weapon );
        self iprintln( weapon );
    }
}
Tadaaa, you have done your first weapon string rebuild, this is useable so you can use giveweapon( new ) and it will give you a weapon with a random camo.
Using the tablelookup( "mp/camoTable.csv", 0, <value>, < 1 for names, 0 for numbers > ) is a better way to do camos, the game also has 368 camos, the name do not matter as you can just use the values to get the camos.
Example: _camo<001 ~ 368>, I know most of you goons want Exclusion Zone -> _camo014
Camo Dump
Code:
none
desert
woodland
digital
bluetiger
redtiger
redhex
odgreen
fde
white
nickel
neontiger
gold
diamond
darkmatter
camo016
camo017
camo018
camo019
camo020
camo021
camo022
camo023
camo024
camo025
camo026
camo027
camo028
camo029
camo030
camo031
camo032
camo033
camo034
camo035
camo036
camo037
camo038
camo039
camo040
camo041
camo042
camo043
camo044
camo045
camo046
camo047
camo048
camo049
camo050
camo051
camo052
camo053
camo054
camo055
camo056
camo057
camo058
camo059
camo060
camo061
camo062
camo063
camo064
camo065
camo066
camo067
camo068
camo069
camo070
camo071
camo072
camo073
camo074
camo075
camo076
camo077
camo078
camo079
camo080
camo081
camo082
camo083
camo084
camo085
camo086
camo087
camo088
camo089
wcamo_code
wc_aftermath_01
wc_aftermath_02
wc_aftermath_03
wc_aftermath_04
wc_aftermath_05
wc_aftermath_06
wc_aftermath_07
wc_aftermath_reward
wc_battlescarred_01
wc_czar_01
wc_diablo_01
wc_diablo_02
wc_diablo_03
wc_diablo_04
wc_diablo_05
wc_diablo_06
wc_diablo_07
wc_diablo_reward
wc_funhouse_01
wc_funhouse_02
wc_funhouse_03
wc_funhouse_04
wc_funhouse_05
wc_funhouse_06
wc_funhouse_07
wc_funhouse_reward
wc_gladiator_01
wc_hatchetman_01
wc_hunter_01
wc_hunter_02
wc_hunter_03
wc_hunter_04
wc_hunter_05
wc_hunter_06
wc_hunter_07
wc_hunter_reward
wc_huntsman_01
wc_kamchatka12_01
wc_lawman_01
wc_magnum_01
wc_xmlar_01
wc_arcticwolf_01
wc_amoeba_01
wc_amoeba_02
wc_amoeba_03
wc_amoeba_04
wc_amoeba_05
wc_amoeba_06
wc_amoeba_07
wc_amoeba_reward
wc_avalanche_01
wc_boss_01
wc_chalk_01
wc_challenger_01
wc_decay_01
wc_decay_02
wc_decay_03
wc_decay_04
wc_decay_05
wc_decay_06
wc_decay_07
wc_decay_reward
wc_dmr25s_01
wc_etch_01
wc_etch_02
wc_etch_03
wc_etch_04
wc_etch_05
wc_etch_06
wc_etch_07
wc_etch_reward
wc_exlibris_01
wc_exlibris_02
wc_exlibris_03
wc_exlibris_04
wc_exlibris_05
wc_exlibris_06
wc_exlibris_07
wc_exlibris_reward
wc_frag_01
wc_graves_01
wc_killshot_01
wc_kingpin_01
wc_mac10_01
wc_mastercraft_01
wc_mechanic_01
wc_minerva_01
wc_minerva_02
wc_minerva_03
wc_minerva_04
wc_minerva_05
wc_minerva_06
wc_minerva_07
wc_minerva_reward
wc_noobtuber_01
wc_pigpen_01
wc_pkm_01
wc_reflex_01
wc_reptile_01
wc_reptile_02
wc_reptile_03
wc_reptile_04
wc_reptile_05
wc_reptile_06
wc_reptile_07
wc_reptile_reward
wc_samurai_01
wc_titanium_01
wc_ultraviolet_01
wc_venom_01
wc_wartorn_01
wc_leprechaun_01
wc_stpatty_01
wc_stpatty_02
wc_highnoon_01
wc_phalanx_01
wc_urbanwarfare_01
wc_fieldtested_01
wc_kingfish_01
wc_tacticalfighter_01
wc_battletested_01
wc_diabolical_01
wc_caveman_01
wc_sawtooth_01
wc_bos14_01
wc_fang45_01
wc_prokolot_01
wc_hightech_01
wc_hightech_02
wc_hightech_03
wc_hightech_04
wc_hightech_05
wc_hightech_06
wc_hightech_07
wc_hightech_reward
wc_rebel_01
wc_rebel_02
wc_rebel_03
wc_rebel_04
wc_rebel_05
wc_rebel_06
wc_rebel_07
wc_rebel_reward
wc_geist_01
wc_geist_02
wc_geist_03
wc_geist_04
wc_geist_05
wc_geist_06
wc_geist_07
wc_geist_reward
wc_operator_01
wc_operator_02
wc_operator_03
wc_operator_04
wc_operator_05
wc_operator_06
wc_operator_07
wc_operator_reward
wc_summertime_01
wc_nauticus_01
wc_celebration_01
wc_pyrotechnic_01
wc_stac330_01
wc_beredmk8_01
wc_wolfen_01
wc_warscarred_01
wc_slate_01
wc_grisly_01
wc_blackout_01
wc_glacier_01
wc_masterpiece_01
wc_don_01
wc_mudder_01
wc_liquidator_01
wc_neanderthal_01
wc_reaper_01
wc_relic_01
wc_tribal_01
wc_bludgeon_01
wc_foliage_01
wc_foliage_02
wc_foliage_03
wc_foliage_04
wc_foliage_05
wc_foliage_06
wc_foliage_07
wc_foliage_reward
wc_flow_01
wc_flow_02
wc_flow_03
wc_flow_04
wc_flow_05
wc_flow_06
wc_flow_07
wc_flow_reward
wc_pixel_01
wc_pixel_02
wc_pixel_03
wc_pixel_04
wc_pixel_05
wc_pixel_06
wc_pixel_07
wc_pixel_reward
wc_texture_01
wc_texture_02
wc_texture_03
wc_texture_04
wc_texture_05
wc_texture_06
wc_texture_07
wc_texture_reward
wc_iris_01
wc_iris_02
wc_iris_03
wc_iris_04
wc_iris_05
wc_iris_06
wc_iris_07
wc_iris_reward
wc_burnt_01
wc_burnt_02
wc_burnt_03
wc_burnt_04
wc_burnt_05
wc_burnt_06
wc_burnt_07
wc_burnt_reward
wc_summer_01
wc_summer_02
wc_summer_03
wc_summer_04
wc_ranger_01
wc_ranger_02
wc_lynxcq300_01
wc_pkpsd9_01
wc_br9_01
wc_centermass_01
wc_elder_01
wc_obsidian_01
wc_ghillie_01
wc_urbanoperator_01
wc_firedrake_01
wc_specops_01
wc_enforce_01
wc_barber_01
wc_dangerclose_01
wc_cosmos_01
wc_cosmos_02
wc_cosmos_03
wc_cosmos_04
wc_cosmos_05
wc_cosmos_06
wc_cosmos_07
wc_cosmos_reward
wc_sweettooth_01
wc_sweettooth_02
wc_sweettooth_03
wc_sweettooth_04
wc_sweettooth_05
wc_sweettooth_06
wc_sweettooth_07
wc_sweettooth_reward
wc_tomahawk_01
wc_tomahawk_02
wc_tomahawk_03
wc_tomahawk_04
wc_tomahawk_05
wc_tomahawk_06
wc_tomahawk_07
wc_tomahawk_reward
wc_super_01
wc_super_02
wc_super_03
wc_super_04
wc_super_05
wc_super_06
wc_super_07
wc_super_reward
Code:
none
base
cmp
gsr
asn
btw
war
clh
fcn
gvd
nse
scn
cpr
lby
bts
htm
gsl
kgp
kin
clr
wtn
kls
ntb
ttm
frg
mkm
rwr
eqr
mtp
utv
stg
bss
pgn
ish
hnn
phx
urw
ftd
kgf
ttf
btt
prm
tki
wlf
clb
wsr
slt
gsy
pyr
bko
gla
msp
don
mud
liq
ndl
rpr
rlc
spo
ctm
edr
osd
gle
uop
frd
frt
Reticle Dump
Code:
none
ret002
ret003
ret004
ret005
ret006
ret007
ret008
ret009
ret010
ret011
ret012
ret013
ret014
ret015
ret016
ret017
ret018
ret019
ret020
ret021
ret022
ret023
ret024
ret025
ret026
ret027
ret028
ret029
ret030
ret031
ret032
ret033
ret034
ret035
ret036
ret037
ret038
ret039
ret040
ret041
ret042
ret043
ret044
ret045
ret046
ret047
ret048
ret049
ret050
ret051
ret052
ret053
ret054
ret055
ret056
ret057
ret058
ret059
ret060
ret061
ret062
ret063
ret064
ret065
ret066
ret067
ret068
ret069
ret070
ret071
ret072
ret073
ret074
ret075
ret076
ret077
ret078
ret079
ret080
ret081
ret082
ret083
ret084
ret085
ret086
ret087
ret088
ret089
ret090
ret091
ret092
ret093
ret094
ret095
ret096
ret097
ret098
ret099
ret100
ret101
ret102
ret103
ret104
ret105
ret106
ret107
ret108
ret109
ret110
ret111
ret112
ret113
ret114
ret115
ret116
ret117
ret118
ret119
ret120
ret121
ret122
ret_angle_01
ret_angle_02
ret_angle_03
ret_angle_04
ret_angle_05
ret_angle_06
ret_angle_07
ret_angle_reward
ret_avalanche_01
ret_bent_01
ret_bent_02
ret_bent_03
ret_bent_04
ret_bent_05
ret_bent_06
ret_bent_07
ret_bent_reward
ret_chalk_01
ret_challenger_01
ret_dmr25s_01
ret_frag_01
ret_graves_01
ret_ironsmith_01
ret_ironsmith_02
ret_ironsmith_03
ret_ironsmith_04
ret_ironsmith_05
ret_ironsmith_06
ret_ironsmith_07
ret_ironsmith_reward
ret_killshot_01
ret_kingpin_01
ret_mac10_01
ret_mastercraft_01
ret_mechanic_01
ret_noobtuber_01
ret_pigpen_01
ret_pkm_01
ret_reflex_01
ret_samurai_01
ret_titanium_01
ret_ultraviolet_01
ret_venom_01
ret_vortex_01
ret_vortex_02
ret_vortex_03
ret_vortex_04
ret_vortex_05
ret_vortex_06
ret_vortex_07
ret_vortex_reward
ret_wartorn_01
ret_leprechaun_01
ret_highnoon_01
ret_urbanwarfare_01
ret_fieldtested_01
ret_kingfish_01
ret_tacticalfighter_01
ret_battletested_01
ret_diabolical_01
ret_caveman_01
ret_sawtooth_01
ret_bos14_01
ret_fang45_01
ret_phalanx_01
ret_focal_01
ret_focal_02
ret_focal_03
ret_focal_04
ret_focal_05
ret_focal_06
ret_focal_07
ret_focal_reward
ret_facet_01
ret_facet_02
ret_facet_03
ret_facet_04
ret_facet_05
ret_facet_06
ret_facet_07
ret_facet_reward
ret_summertime_01
ret_nauticus_01
ret_celebration_01
ret_pyrotechnic_01
ret_stac330_01
ret_beredmk8_01
ret_wolfen_01
ret_warscarred_01
ret_slate_01
ret_grisly_01
ret_blackout_01
ret_glacier_01
ret_masterpiece_01
ret_don_01
ret_mudder_01
ret_liquidator_01
ret_neanderthal_01
ret_reaper_01
ret_tribal_01
ret_bludgeon_01
ret_subdivision_01
ret_subdivision_02
ret_subdivision_03
ret_subdivision_04
ret_subdivision_05
ret_subdivision_06
ret_subdivision_07
ret_subdivision_reward
ret_monarch_01
ret_monarch_02
ret_monarch_03
ret_monarch_04
ret_monarch_05
ret_monarch_06
ret_monarch_07
ret_monarch_reward
ret_interrupt_01
ret_interrupt_02
ret_interrupt_03
ret_interrupt_04
ret_interrupt_05
ret_interrupt_06
ret_interrupt_07
ret_interrupt_reward
ret_phantasm_01
ret_phantasm_02
ret_phantasm_03
ret_phantasm_04
ret_phantasm_05
ret_phantasm_06
ret_phantasm_07
ret_phantasm_reward
ret_lynxcq300_01
ret_pkpsd9_01
ret_centermass_01
ret_elder_01
ret_obsidian_01
ret_ghillie_01
ret_urbanoperator_01
ret_firedrake_01
ret_specops_01
ret_enforce_01
ret_barber_01
ret_dangerclose_01
ret_monarch2_01
ret_monarch2_02
ret_monarch2_03
ret_monarch2_04
ret_monarch2_05
ret_monarch2_06
ret_monarch2_07
ret_monarch2_reward
ret_wildcard_01
ret_wildcard_02
ret_wildcard_03
ret_wildcard_04
ret_wildcard_05
ret_wildcard_06
ret_wildcard_07
ret_wildcard_reward
Attachment Dump
Code:
none
thermal
stock
shotgun
gl
glmwr
masterkeymwr
glpremwr
masterkeypremwr
tacknifemwr
akimbo
zoomscope
ironsights
acog
acogsmg
reflex
reflexsmg
reflexlmg
silencer
silencer02
silencer03
grip
gp25
m320
thermalsmg
heartbeat
fmj
rof
xmags
dualmag
eotech
eotechsmg
eotechlmg
tactical
scopevz
hamrhybrid
hybrid
parabolicmicrophone
opticsreddot
opticsacog2
opticseotech
opticsthermal
silencer01
sensorheartbeat
foregrip
variablereddot
opticstargetenhancer
firerate
longrange
quickdraw
lasersight
thorscopevz
trackrounds
stabilizer
heatsink
rw1scopebase
crossbowscopebase
silencerpistol
silencersniper
acogmwr
gripmwr
reflexmwr
silencermwr
akimbomwr
heartbeatmwr
holosightmwr
longbarrelmwr
reflexvarmwr
thermalmwr
varzoommwr
xma
 
Last edited:
Top Bottom
Login
Register