Breakthrough Weapon Check States

 

The weapons limiter uses state files to check for weapons. You can copy and paste the following into your torso file.

 

 

//====================================================================================================================

// WEAPON CHECK

//====================================================================================================================

 

state GET_WEAPON

{

            //movetype legs

 

            //camera behind

 

             states

             {

                        //axis

                        STG44                                                 : IS_WEAPON_ACTIVE "mainhand" "StG 44"

                        MP40                                                  : IS_WEAPON_ACTIVE "mainhand" "MP40"

                        PANZERSCHRECK                           : IS_WEAPON_ACTIVE "mainhand" "Panzerschreck"

                        KAR98                                                            : IS_WEAPON_ACTIVE "mainhand" "Mauser KAR 98K"

                        KAR98_SNIPER                                : IS_WEAPON_ACTIVE "mainhand" "KAR98 - Sniper"

            //          WALTHER_P38                                             : IS_WEAPON_ACTIVE "mainhand" "Walther P38"

            //          STIELHANDGRANATE                                : IS_WEAPON_ACTIVE "mainhand" "Stielhandgranate"

 

                        //both

            //          PISTOL_SILENCED                          : IS_WEAPON_ACTIVE "mainhand" "Hi-Standard Silenced"

                        SHOTGUN                                         : IS_WEAPON_ACTIVE "mainhand" "Shotgun"

                        //BINOCULARS                                 : IS_WEAPON_ACTIVE "mainhand" "Binoculars"

 

                        //ally

                        BAZOOKA                                         : IS_WEAPON_ACTIVE "mainhand" "Bazooka"

                        SPRINGFIELD                                               : IS_WEAPON_ACTIVE "mainhand" "Springfield '03 Sniper"

 

                        M1_GARAND                                                : IS_WEAPON_ACTIVE "mainhand" "M1 Garand"

            //          FRAG_GRENADE                              : IS_WEAPON_ACTIVE "mainhand" "Frag Grenade"

//

                        BAR                                                    : IS_WEAPON_ACTIVE "mainhand" "BAR"

            //          COLT_45                                            : IS_WEAPON_ACTIVE "mainhand" "Colt 45"

                        THOMPSON                                      : IS_WEAPON_ACTIVE "mainhand" "Thompson"

 

                        G_43                                                   : IS_WEAPON_ACTIVE "mainhand" "G 43"

                        MOSIN_MAGANT_RIFLE                : IS_WEAPON_ACTIVE "mainhand" "Mosin Nagant Rifle"

                        PPSH_SMG                                        : IS_WEAPON_ACTIVE "mainhand" "PPSH SMG"

                        STEN                                                  : IS_WEAPON_ACTIVE "mainhand" "Sten Mark II"

                        SVT_40                                               : IS_WEAPON_ACTIVE "mainhand" "SVT 40"

                        LEE_ENFIELD                                               : IS_WEAPON_ACTIVE "mainhand"  "Lee-Enfield"

 

                        DELISLE                                             : IS_WEAPON_ACTIVE "mainhand"  "DeLisle"

                        MINENSUCHGERAT                                    : IS_WEAPON_ACTIVE "mainhand"  "Minensuchgerat"

                        BREDA                                                           : IS_WEAPON_ACTIVE "mainhand"  "Breda"

                        CARCANO                                         : IS_WEAPON_ACTIVE "mainhand"  "Carcano"

                        MOSCHETTO                                                : IS_WEAPON_ACTIVE "mainhand"  "Moschetto"

                        GEWEHRGRANATE                          : IS_WEAPON_ACTIVE "mainhand"  "Gewehrgranate"

                        VICKERS_BERTHIER                                   : IS_WEAPON_ACTIVE "mainhand" "Vickers-Berthier"

                        MINEDETECTOR                              : IS_WEAPON_ACTIVE "mainhand" "Minedetector"

                        PIAT                                                    : IS_WEAPON_ACTIVE "mainhand" "PIAT"

                        ENFIELD_L42A1                               : IS_WEAPON_ACTIVE "mainhand" "Enfield L42A1"           

                                               

                                                           

 

                        //other

                        STAND                                                           : KILLED

                        UNARMED                                         : default

            }

}

 

state GEWEHRGRANATE

{

            entrycommands

            {

                        exec weapon_limit/weaponis.scr "models/weapons/kar98_mortar.tik"

            }

 

            states

            {

                        STAND                                               : default

            }

}

 

 

state ENFIELD_L42A1

{

            entrycommands

            {

                        exec weapon_limit/weaponis.scr "models/weapons/Uk_W_L42A1.tik"

            }

 

            states

            {

                        STAND                                               : default

            }

}

 

state PIAT

{

            entrycommands

            {

                        exec weapon_limit/weaponis.scr "models/weapons/Uk_W_Piat.tik"

            }

 

            states

            {

                        STAND                                               : default

            }

}

 

state MINEDETECTOR

{

            entrycommands

            {

                        exec weapon_limit/weaponis.scr "models/weapons/US_W_MineDetector.tik"

            }

 

            states

            {

                        STAND                                               : default

            }

}

 

 

state VICKERS_BERTHIER

{

            entrycommands

            {

                        exec weapon_limit/weaponis.scr "models/weapons/Uk_W_Vickers.tik"

            }

 

            states

            {

                        STAND                                               : default

            }

}

 

 

state MOSCHETTO

{

            entrycommands

            {

                        exec weapon_limit/weaponis.scr "models/weapons/It_W_Moschetto.tik"

            }

 

            states

            {

                        STAND                                               : default

            }

}

 

state CARCANO

{

            entrycommands

            {

                        exec weapon_limit/weaponis.scr "models/weapons/It_W_Carcano.tik"

            }

 

            states

            {

                        STAND                                               : default

            }

}

 

state BREDA

{

            entrycommands

            {

                        exec weapon_limit/weaponis.scr "models/weapons/It_W_Breda.tik"     

            }

 

            states

            {

                        STAND                                               : default

            }

}

 

state MINENSUCHGERAT

{

            entrycommands

            {

                        exec weapon_limit/weaponis.scr "models/weapons/Gr_W_MineDetector.tik"

            }

 

            states

            {

                        STAND                                               : default

            }

}

 

state DELISLE

{

            entrycommands

            {

                        exec weapon_limit/weaponis.scr "models/weapons/DeLisle.tik"

            }

 

            states

            {

                        STAND                                               : default

            }

}

 

 

 

 

 

state LEE_ENFIELD  

{

            entrycommands

            {

                        exec weapon_limit/weaponis.scr "models/weapons/enfield.tik"

            }

 

            states

            {

                        STAND                                               : default

            }

}

 

state G_43

{

            entrycommands

            {

                        exec weapon_limit/weaponis.scr "models/weapons/G43.tik"

            }

 

            states

            {

                        STAND                                               : default

            }

}

 

state MOSIN_MAGANT_RIFLE

{

            entrycommands

            {

                        exec weapon_limit/weaponis.scr "models/weapons/Mosin_Nagant_Rifle.tik"

            }

 

            states

            {

                        STAND                                               : default

            }

}

 

 

state PPSH_SMG

{

            entrycommands

            {

                        exec weapon_limit/weaponis.scr "models/weapons/ppsh_smg.tik"

            }

 

            states

            {

                        STAND                                               : default

            }

}

 

state STEN

{

            entrycommands

            {

                        exec weapon_limit/weaponis.scr "models/weapons/sten.tik"

            }

 

            states

            {

                        STAND                                               : default

            }

}

 

state SVT_40

{

            entrycommands

            {

                        exec weapon_limit/weaponis.scr "models/weapons/svt_rifle.tik"

            }

 

            states

            {

                        STAND                                               : default

            }

}

 

 

state STG44

{

            entrycommands

            {

                        exec weapon_limit/weaponis.scr "models/weapons/mp44.tik"

            }

 

            states

            {

                        STAND                                               : default

            }

}

 

state MP40

{

            entrycommands

            {

                        exec weapon_limit/weaponis.scr "models/weapons/mp40.tik"

            }

 

            states

            {

                        STAND                                               : default

            }

}

 

state PANZERSCHRECK

{

            entrycommands

            {

                        exec weapon_limit/weaponis.scr "models/weapons/panzerschreck.tik"

            }

 

            states

            {

                        STAND                                               : default

            }

}

 

state KAR98

{

            entrycommands

            {

                        exec weapon_limit/weaponis.scr "models/weapons/kar98.tik"

            }

 

            states

            {

                        STAND                                               : default

            }

}

 

state KAR98_SNIPER

{

            entrycommands

            {

                        exec weapon_limit/weaponis.scr "models/weapons/KAR98sniper.tik"

            }

 

            states

            {

                        STAND                                               : default

            }

}

 

state WALTHER_P38

{

            entrycommands

            {

                        exec weapon_limit/weaponis.scr "models/weapons/p38.tik"

            }

 

            states

            {

                        STAND                                               : default

            }

}

 

state STIELHANDGRANATE

{

            entrycommands

            {

                        exec weapon_limit/weaponis.scr "models/weapons/steilhandgranate.tik"

            }

 

            states

            {

                        STAND                                               : default

            }

}

 

 

//Weapons all

 

state PISTOL_SILENCED                                         

{

            entrycommands

            {

                        exec weapon_limit/weaponis.scr "models/weapons/silencedpistol.tik"

            }

 

            states

            {

                        STAND                                               : default

            }

}

 

state SHOTGUN                                                                                                                                                                    

{

            entrycommands

            {

                        exec weapon_limit/weaponis.scr "models/weapons/shotgun.tik"

            }

 

            states

            {

                        STAND                                               : default

            }

}

 

 

state UNARMED                                                                                                                                                                    

{

            entrycommands

            {

                        exec weapon_limit/weaponis.scr "UNARMED"

            }

 

            states

            {

                        STAND                                               : default

            }

}

state BINOCULARS                                                                                                                                                              

{

            entrycommands

            {

                        exec weapon_limit/weaponis.scr "models/weapons/binoculars.tik"

            }

 

            states

            {

                        STAND                                               : default

            }

}

 

//alies weapons

 

state BAZOOKA                                                                                                                                                                    

{

            entrycommands

            {

                        exec weapon_limit/weaponis.scr "models/weapons/bazooka.tik"

            }

 

            states

            {

                        STAND                                               : default

            }

}

 

state SPRINGFIELD                                                                                                                                                              

{

            entrycommands

            {

                        exec weapon_limit/weaponis.scr "models/weapons/springfield.tik"

            }

 

            states

            {

                        STAND                                               : default

            }

}

 

state M1_GARAND                                                                                                                                                               

{

            entrycommands

            {

                        exec weapon_limit/weaponis.scr "models/weapons/m1_garand.tik"

            }

 

            states

            {

                        STAND                                               : default

            }

}

 

state FRAG_GRENADE                                                                                                                                                                     

{

            entrycommands

            {

                        exec weapon_limit/weaponis.scr "models/weapons/m2frag_grenade.tik"

            }

 

            states

            {

                        STAND                                               : default

            }

}

 

state BAR                                                                                                                                           

{

            entrycommands

            {

                        exec weapon_limit/weaponis.scr "models/weapons/bar.tik"

            }

 

            states

            {

                        STAND                                               : default

            }

}

 

state COLT_45                                                                                                           

{

            entrycommands

            {

                        exec weapon_limit/weaponis.scr "models/weapons/colt45.tik"

            }

 

            states

            {

                        STAND                                               : default

            }

}

 

state THOMPSON                                                                                                                             

{

            entrycommands

            {

                        exec weapon_limit/weaponis.scr "models/weapons/thompsonsmg.tik"

            }

 

            states

            {

                        STAND                                               : default

            }

}