Allied Assault 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"

 

                        //other

                        STAND                                                           : KILLED

                        UNARMED                                         : 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

            }

}