#61
I noticed that in the new "survival" bots use flashlights, and how they can make use of laser sights? I tried to "buy_order" make it "weapon_upgrade", but they do not want to take the upgrade. Take a weapon without an upgrade.
Reply
#62
OK, this damage calc is killing me. Can someone from NWI tell me how he heck I should be calculating damage? Take a look at http://jballou.com/insurgency/stats.php and let me know if I am on the right track. The "No Armor" uses the DamageHitgroups from "player_settings" in base_player.theater as the multipliers. The armors naturally take their respective DH arrays. I then multiply those by the point-blank damage (for a simple baseline), and multiply the DH values for the ammo as well, since most ammo types have settings there too. So, the numbers look wildly inflated to me, but I have some questions that can clarify:

1. What is the base player health?

2. Does damage drop of fractionally in a straight line as I graphed or some other way?

3. What do "units" equal in actual distance? i.e. what would 100m be in "units"?

4. Do any other factors come into play for damage calc, like barrel length?

5. Is the way I do it now, ammo multipliers * armor/base multiplier * damage correct, or should I be ADDING the DamageHitgroup multipliers?

6. Does PenetrationPower or any other factor influence damage done?

7. Does the pellet damage (multiple bulletcount) get applied per pellet, or if one pellet hits does it apply full damage?

 

Any help I can get on this would be awesome, I'd really appreciate it.

Reply
#63
i do not know all those things jballou but i am pretty sure the shotty only does full damage if all pellets hit you. each one is its own entity doing x damage (range dependent) and then there is the chance of multiple hits as it shoots 9 or 7 pellets(not 100% on that bit).

 

some great stuff you have going on there dude, heatmaps are epic Big Grin

Reply
#64
1. Players start at 100 health.

2. It appears range drop-off lerps between each key value pair.

3. Units are inches. So 100m is around 3,937 Source units.

4. Barrel length is only used for the weapon collision system. Right now the ammo type defines the damage entirely.

5. Hitgroup modifiers are multipliers. This is applied first on top of the range-adjusted damage, then the gear.

6. Armor isn't penetration based and only factors into surface penetration.

7. The damage for pellet type weapons is per-pellet.
Reply
#65
Quote:1. Players start at 100 health.

2. It appears range drop-off lerps between each key value pair.

3. Units are inches. So 100m is around 3,937 Source units.

4. Barrel length is only used for the weapon collision system. Right now the ammo type defines the damage entirely.

5. Hitgroup modifiers are multipliers. This is applied first on top of the range-adjusted damage, then the gear.

6. Armor isn't penetration based and only factors into surface penetration.

7. The damage for pellet type weapons is per-pellet.
This is awesome, thanks! To clarify on #5, there are several HITGROUP multipliers I see:

-base_player.theater has it set in "damage"

-Ammo types have it set

-Armor has it set

 

So, how should I calculate damage stats for unarmored, light armored, and heavy armored? Does unarmored get the base_player damagehitgroups and that's it? Does wearing armor override or combine the multipliers? I have a SourceMod plugin I built to report damage dealt, and I'm seeing M14 with AP ammo on headshots of bots doing 11,000+ damage, so I'm thinking that I'm still not getting this completely correct.

 

Edit: Also, I finally got a Linux VTF converter and a GCF extractor working (will be posted shortly), so I want to do the automated extraction of theaters into the stats page. I'm using the "NWI Build" number I see when I open the console in-game as the identifying version of the theaters. Is this the right number to use? I see in insurgency_misc_dir.vpk there is a scripts/build.id file but it's binary, would that be the file I should check? If so, what's the format so I can try to read it? Or is there a better way for me to create a logical decision that can say whether the theaters are new or not (or at least a good guess, false positives of an update w/o theater changes is OK and probably preferred)? Really looking for anything other than something cheap like watching file times on the VPK files? I'm sure I can script something up to crawl the files and make it work, but if I can avoid a bunch of that and just interrogate the game files directly to see the build, that'd be a big help.

Reply
#66
With the theater system, could I:

 

Make it so the smoke sprite from smoke grenades is disabled (so you just get the small trail coming from the model and not the big plume) and give it the same effect as a Flashbang (Stunning bots) basically want to turn it into a CS Gas grenade.

Reply
#67
I think a theater like this would do it. Bear in mind that this is still a one-time thing, it's not like gas where walking into the "cloud" or area would impact your vision. Perhaps there is a fancier way to fake the funk here, maybe use AreaDamage and set the flash duration to 1-2 seconds, so the flash effects when you're in the area but quickly fades when you leave?
Code:
"#base" "default.theater"

"theater"
{
        "explosives"
        {
                "grenade_m18"
                {
                        "entity_class"                          "grenade_flash"
                        "DetonateDamage"                        "6.0"
                        "DetonateDamageRadius"                  "1500"
                        "DetonateFlashDuration"                 "12.0"
                        "Particles"
                        {
                                "DetonateParticle"              "ins_flashbang_explosion"
                                "SmokeColor"                    "40 35 33 0"
                                "DetonateWaterParticle"         "ins_water_explosion"
                        }
                        "Sounds"
                        {
                                "DetonateSound"                 "BaseStunGrenade.Explode"
                                "BounceSound"                   "Weapon_M84.Bounce"
                        }
                }
    }
}
Reply
#68
never mind, is working Big Grin

Reply
#69
Quote:I think a theater like this would do it. Bear in mind that this is still a one-time thing, it's not like gas where walking into the "cloud" or area would impact your vision. Perhaps there is a fancier way to fake the funk here, maybe use AreaDamage and set the flash duration to 1-2 seconds, so the flash effects when you're in the area but quickly fades when you leave?

Code:
"#base" "default.theater"

"theater"
{
        "explosives"
        {
                "grenade_m18"
                {
                        "entity_class"                          "grenade_flash"
                        "DetonateDamage"                        "6.0"
                        "DetonateDamageRadius"                  "1500"
                        "DetonateFlashDuration"                 "12.0"
                        "Particles"
                        {
                                "DetonateParticle"              "ins_flashbang_explosion"
                                "SmokeColor"                    "40 35 33 0"
                                "DetonateWaterParticle"         "ins_water_explosion"
                        }
                        "Sounds"
                        {
                                "DetonateSound"                 "BaseStunGrenade.Explode"
                                "BounceSound"                   "Weapon_M84.Bounce"
                        }
                }
    }
}
 

Thanks for that.

 

I've tried to get it to work (made a scripts/Theater folder in my Insurgency Folder) and it does seem to be registering that its there in game but doesn't seem to actually change anything.

 

Playing Hunt, do Co-op theaters need to be formatted differently?
Reply
#70
Quote:Thanks for that.

 

I've tried to get it to work (made a scripts/Theater folder in my Insurgency Folder) and it does seem to be registering that its there in game but doesn't seem to actually change anything.

 

Playing Hunt, do Co-op theaters need to be formatted differently?
 

 

scripts/theater?
Reply
#71
Hi, so I after talking to a few friends and regulars to my ins server, I had the idea to make a custom theater for my server with few simple changes. So I started writing using the default.theater as reference and asking friends when needed. When it came time for testing came into a few problems, namely blue model errors for both security and insurgents; the other major problem was that the Security Breacher, Demolitions, Designated Marksman and Sniper did not work, no weapons so pretty much useless. I have posted the custom theater so any help is much appriciated. Thanks

Code:
"#base" "default.theater"

// Custom Theater created for the Langfords Coop Extreme Bots Server
// Reaper Version 1.1 Date: 03/12/14
// Checkpoint

"theater"

{

        "teams"
    
        {
        
            "security"
        
            {
            
            "squads"
                {
                    "Reaper  2.0"
                    {
                        "Reaper 2.1 - Recon Leader"                "template_recon_security_coop"
                        "Reaper 2.2 - Specialist"                "template_specialist_security_coop"
                        "Reaper 2.3 - Rifleman"                    "template_rifleman_security_coop"
                        "Reaper 2.4 - Support"                    "template_support_security_coop"
                        "Reaper 2.5 - Breacher"                    "template_breacher_security_coop"
                        "Reaper 2.6 - Demolitions"                "template_demolitions _security_coop"
                        "Reaper 2.7 - Designated Marksman"        "template_designated_marksman_security_coop"
                        "Reaper 2.8 - Sniper"                     "template_sniper_security_coop"
                        
                    }
                    
                }
                
            }
            
            "insurgents"
        
            {
            
                "squads"
                {
                    // Specialist        Smokes
                    // Fighter            Incendiary
                    // Machine gunner    Frag
                    // Sapper            RPG
                    // Sharpshooter        None
                
                    // originally                
                    // "#Squad_Cell_Leader_Specialist"                "template_coop_specialist" // flash
                    // "#Squad_Cell_Specialist"                        "template_coop_specialist"  // flash
                    // "#Squad_Cell_Fighter"                        "template_coop_fighter" // incendiary
                    // "#Squad_Cell_Fighter"                        "template_coop_fighter_2" // frag
                    // "#Squad_Cell_Fighter"                        "template_coop_fighter_3" // grenadier
                    // "#Squad_Cell_MachineGunner"                    "template_coop_machinegunner" // RPG
                    // "#Squad_Cell_Sapper"                            "template_coop_sapper" // RPG
                    // "#Squad_Cell_SharpShooter"                    "template_coop_sharpshooter" // frag
                
                    "#Cell_Alpha"    // assault team #1
                    {
                        // role name                                preset
                        "#Squad_Cell_Leader_Specialist"                "template_coop_specialist"         // Flash                    
                        "#Squad_Cell_Fighter"                        "template_coop_fighter"         // Incendiary
                        "#Squad_Cell_Fighter"                        "template_coop_fighter_2"         // Incendiary                    
                        "#Squad_Cell_MachineGunner"                    "template_coop_machinegunner"     // Frag
                        "#Squad_Cell_MachineGunner"                    "template_coop_machinegunner"     // Frag                    
                        "#Squad_Cell_Sapper"                        "template_coop_sapper"         // RPG
                        "#Squad_Cell_SharpShooter"                    "template_coop_sharpshooter"     // None
                    }
                
                    "#Cell_Bravo"    // assault team #2
                    {
                        // role name                                preset
                        "#Squad_Cell_Leader_Specialist"                "template_coop_specialist" // flash
                        "#Squad_Cell_Fighter"                        "template_coop_fighter" // incendiary
                        "#Squad_Cell_Fighter"                        "template_coop_fighter_2" // incendiary
                        "#Squad_Cell_MachineGunner"                    "template_coop_machinegunner" // RPG
                        "#Squad_Cell_Specialist"                    "template_coop_specialist"  // Flash
                        "#Squad_Cell_Fighter"                        "template_coop_fighter_3" // grenadier
                        "#Squad_Cell_Sapper"                        "template_coop_sapper" // RPG
                        "#Squad_Cell_SharpShooter"                    "template_coop_sharpshooter" // frag
                    }
                
                    "#Cell_Charlie"    // support team
                    {
                        // role name                                preset
                        "#Squad_Cell_Leader_Specialist"                "template_coop_specialist" // Flash
                        "#Squad_Cell_Fighter"                        "template_coop_fighter" // incendiary
                        "#Squad_Cell_Fighter"                        "template_coop_fighter" // incendiary
                        "#Squad_Cell_MachineGunner"                    "template_coop_machinegunner" // RPG
                        "#Squad_Cell_Specialist"                    "template_coop_specialist"  // Flash
                        "#Squad_Cell_Fighter"                        "template_coop_fighter_2" // Frag
                        "#Squad_Cell_Sapper"                        "template_coop_sapper" // RPG
                        "#Squad_Cell_SharpShooter"                    "template_coop_sharpshooter" // frag
                    }
                
                    "#Cell_Delta"    // heavy weapons team
                    {
                        // role name                                preset
                        "#Squad_Cell_Leader_Specialist"                "template_coop_specialist" // flash
                        "#Squad_Cell_Fighter"                        "template_coop_fighter" // incendiary
                        "#Squad_Cell_Fighter"                        "template_coop_fighter" // incendiary
                        "#Squad_Cell_MachineGunner"                    "template_coop_machinegunner" // RPG
                        "#Squad_Cell_Specialist"                    "template_coop_specialist"  // flash
                        "#Squad_Cell_Fighter"                        "template_coop_fighter_2" // frag
                        "#Squad_Cell_Fighter"                        "template_coop_fighter_2" // frag
                        "#Squad_Cell_SharpShooter"                    "template_coop_sharpshooter" // frag
                    }    

                    "#Cell_Echo"
                    {
                        // role name                                preset
                        "#Squad_Cell_Leader_Specialist"                "template_coop_specialist" // flash
                        "#Squad_Cell_Fighter"                        "template_coop_fighter" // incendiary
                        "#Squad_Cell_Fighter"                        "template_coop_fighter" // incendiary
                        "#Squad_Cell_MachineGunner"                    "template_coop_machinegunner" // RPG
                        "#Squad_Cell_Specialist"                    "template_coop_specialist"  // flash
                        "#Squad_Cell_Fighter"                        "template_coop_fighter_2" // frag
                        "#Squad_Cell_Fighter"                        "template_coop_fighter_2" // frag
                        "#Squad_Cell_SharpShooter"                    "template_coop_sharpshooter" // frag
                    }    

                    "#Cell_Foxtrot"
                    {
                        // role name                                preset
                        "#Squad_Cell_Leader_Specialist"                "template_coop_specialist" // flash
                        "#Squad_Cell_Fighter"                        "template_coop_fighter" // incendiary
                        "#Squad_Cell_Fighter"                        "template_coop_fighter" // incendiary
                        "#Squad_Cell_MachineGunner"                    "template_coop_machinegunner" // RPG
                        "#Squad_Cell_Specialist"                    "template_coop_specialist"  // flash
                        "#Squad_Cell_Fighter"                        "template_coop_fighter_2" // frag
                        "#Squad_Cell_Fighter"                        "template_coop_fighter_3" // grenadier
                        "#Squad_Cell_SharpShooter"                    "template_coop_sharpshooter" // frag
                    }                    
                }
            }
        }
        
    "player_templates"
        
    {
        "template_recon_security_coop"
        {
            "team"             "security"
            "print_name"     "Reaper 2.1 - Recon Leader"
            
            "models"
            {
                "player"            "models/characters/security_light.mdl"
                "viewmodel_hands"    "models/weapons/v_hands_sec_1.mdl"
            }

            "buy_order"
            {
                "gear"                 "sec_chest_carrier"
                "gear"                "sec_light_armor"
                "weapon"            "weapon_kabar"
                "weapon"            "weapon_m16a4"
                "weapon_upgrade"    "ammo_ap_m16a4"
                "weapon"            "weapon_m84"
            }

            "allowed_items"
            {
                "weapon"            "weapon_mp5"
                "weapon"            "weapon_m16a4"
                "weapon"            "weapon_m4a1"
                "weapon"            "weapon_ump45"
                "weapon"            "weapon_aks74u"
                "weapon"            "weapon_m18"
                "weapon"            "weapon_m84"
                "weapon"            "weapon_anm14"
                "weapon"            "weapon_m67"
                "weapon"            "weapon_m9"
                "weapon"            "weapon_makarov"
                "weapon_upgrade"    "sec_foregrip"
                "weapon_upgrade"    "sec_foregrip2"
                "weapon_upgrade"    "ins_foregrip"
                "weapon_upgrae"        "ins_foregrip2"
                "weapon_upgrade"    "ins_woodgrip1"
                "weapon_upgrade"    "ins_woodgrip2"
                "weapon_upgrade"    "underbarrel_m203_smoke"
                "weapon_upgrade"    "sec_silencer"
                "weapon_upgrade"    "sec_silencer2"
                "weapon_upgrade"    "sec_silencer_pistol"
                "weapon_upgrade"    "ins_silencer"
                "weapon_upgrade"    "ins_silencer_pistol"
                "weapon_upgrade"    "optic_eotech"
                "?nightmap"
            }
        }
        
        "template_specialist_security_coop"
        {
            "team"            "security"
            "print_name"    "Reaper 2.2 - Specialist"
            
            "models"
            {    
                "player"            "models/characters/security_specialist.mdl"
                "viewmodel_hands"    "models/weapons/v_hands_sec_1.mdl"
            }
            
            "buy_order"
            {
                "gear"                "sec_chest_carrier"
                "gear"                "sec_light_armor"
                "weapon"            "weapon_kabar"
                "weapon"            "weapon_mk18"
                "weapon_upgrade"    "ammo_ap_mkl8"
                "weapon_upgrade"    "optic_eotech"
                "weapon"            "weapon_m84"
            }
            
            "allowed_items"
            {
                "weapon"            "weapon_mk18"
                "weapon"            "weapon_mp5"
                "weapon"            "weapon_ump45"
                "weapon"            "weapon_aks74u"
                "weapon"            "weapon_mp40"
                "weapon"            "weapon_m9"
                "weapon"            "weapon_makarov"
                "weapon"            "weapon_m84"
                "weapon"            "weapon_m18"
                "weapon"            "weapon_anm14"
                "weapon_upgrade"    "sec_foregrip"
                "weapon_upgrade"    "sec_foregrip2"
                "weapon_upgrade"    "ins_foregrip"
                "weapon_upgrae"        "ins_foregrip2"
                "weapon_upgrade"    "ins_woodgrip1"
                "weapon_upgrade"    "ins_woodgrip2"
                "weapon_upgrade"    "sec_silencer"
                "weapon_upgrade"    "sec_silencer2"
                "weapon_upgrade"    "sec_silencer_pistol"
                "weapon_upgrade"    "ins_silencer"
                "weapon_upgrade"    "ins_silencer_pistol"
                "weapon_upgrade"    "optic_eotech"
                "?nightmap"
            }
            
        }
        
        "template_rifleman_security_coop"
        {
            "team"            "security"
            "print_name"    "Reaper 2.3 - Rifleman"
            
            "models"
            {
                "player"            "models/characters/security_rifleman.mdl"
                "viewmodel_hands"    "models/weapons/v_hands_sec_1.mdl"
                "helmet"            "models_characters/us_helmet.mdl"
            }
            
            "buy_order"
            {
                "gear"                "sec_heavy_armor"
                "gear"                "sec_chest_carrier"
                "weapon"            "weapon_kabar"
                "weapon"            "weapon_m16a4"
                "weapon_upgrades"    "ammo_ap_m16a4"
                "weapon"            "weapon_m67"
            }
            
            "allowed_items"
            {
                "weapon"            "weapon_m16a4"
                "weapon"            "weapon_m4a1"
                "weapon"            "weapon_akm"
                "weapon"            "weapon_fal"
                "weapon"            "weapon_mini14"
                "weapon"            "weapon_m9"
                "weapon"            "weapon_makarov"
                "weapon"            "weapon_m67"
                "weapon"            "weapon_m84"
                "weapon"            "weapon_m18"
                "weapon_upgrade"    "sec_foregrip"
                "weapon_upgrade"    "sec_foregrip2"
                "weapon_upgrade"    "ins_foregrip"
                "weapon_upgrae"        "ins_foregrip2"
                "weapon_upgrade"    "ins_woodgrip1"
                "weapon_upgrade"    "ins_woodgrip2"
                "weapon_upgrade"    "sec_silencer"
                "weapon_upgrade"    "sec_silencer2"
                "weapon_upgrade"    "sec_silencer_pistol"
                "weapon_upgrade"    "ins_silencer"
                "weapon_upgrade"    "ins_silencer_pistol"
                "weapon_upgrade"    "optic_eotech"
                "?nightmap"
            }
        }
        
        "template_support_security_coop"
        {
        
            "team"            "security"
            "print_name"    "Reaper 2.4 - Support"
            
            "models"
            {
                "player"            "models/characters/security_heavy.mdl"
                "viewmodel_hands"    "models/weapons/v_hands_sec_m.mdl"
                "helmet"            "modes/characters/us_helmet.mdl"
            }
            
            "buy_order"
            {
                "gear"                "sec_heavy_armor"
                "gear"                "sec_chest_carrier"
                "weapon"            "weapon_kabar"
                "weapon"            "weapon_m249"
                "weapon_upgrade"    "ammo_ap_m249"
            }
            
            "allowed_items"
            {
                "weapon"            "weapon_m249"
                "weapon"            "weapon_rpk"
                "weapon"            "weapon_m9
                "weapon"            "weapon_makarov"
                "weapon"            "weapon_m67"
                "weapon"            "weapon_m18"
                "weapon"            "weapon_anm14"
                "weapon_upgrade"    "sec_foregrip"
                "weapon_upgrade"    "sec_foregrip2"
                "weapon_upgrade"    "ins_foregrip"
                "weapon_upgrae"        "ins_foregrip2"
                "weapon_upgrade"    "ins_woodgrip1"
                "weapon_upgrade"    "ins_woodgrip2"
                "weapon_upgrade"    "sec_bipod"
                "weapon_upgrade"    "ins_bipod"
                "weapon_upgrade"    "sec_silencer"
                "weapon_upgrade"    "sec_silencer2"
                "weapon_upgrade"    "sec_silencer_pistol"
                "weapon_upgrade"    "ins_silencer"
                "weapon_upgrade"    "ins_silencer_pistol"
                "?nightmap"
            }
        
        }
        
        "template_breacher_security_coop"
        {
            "team"            "security"
            "print_name"    "Reaper 2.5 - Breacher"
            
            "models"
            {
                "player"            "models/characters/security_light.mdl"
                "viewmodel_hands"    "models/weapons/v_hands_sec_1.mdl"
            }
            
            "buy_order"
            {
                "gear"            "sec_chest_carrier"
                "gear"            "sec_heavy_armor"
                "weapon"        "weapon_kabar"
                "weapon"        "weapon_m590"
                "weapon"        "weapon_m84"
            }
            
            "allowed_items"
            {
                "weapon"        "weapon_m590"
                "weapon"        "weapon_toz"
                "weapon"        "weapon_m4a1"
                "weapon"        "weapon_mk18"
                "weapon"        "weapon_aks74u"
                "weapon"        "weapon_m9"
                "weapon"        "weapon_makarov"
                "weapon"        "weapon_m67"
                "weapon"        "weapon_m84"
                "weapon"        "weapon_c4_clicker"
                "weapon_upgrade"    "sec_foregrip"
                "weapon_upgrade"    "sec_foregrip2"
                "weapon_upgrade"    "ins_foregrip"
                "weapon_upgrae"        "ins_foregrip2"
                "weapon_upgrade"    "ins_woodgrip1"
                "weapon_upgrade"    "ins_woodgrip2"
                "weapon_upgrade"    "sec_silencer"
                "weapon_upgrade"    "sec_silencer2"
                "weapon_upgrade"    "sec_silencer_pistol"
                "weapon_upgrade"    "ins_silencer"
                "weapon_upgrade"    "ins_silencer_pistol"
                "weapon_upgrade"    "optic_eotech"
                "?nightmap"
            }
        }
        
        "template_demolitions_security_coop"
        {
            "team"            "security"
            "print_name"    "Reaper 2.6 - Demolitions"
            
            "models"
            {
                "player"            "models/characters/security_light.mdl"
                "viewmodel_hands"    "models/weapons/v_hands_sec_1.mdl"
            }
            
            "buy_order"
            {
                "gear"                "sec_chest_carrier"
                "gear"                "sec_heavy_armor"
                "weapon"            "weapon_kabar"
                "weapon"            "weapon_m16a4"
                "weapon_upgrade"    "underbarrel_m203_he"
                "weapon_upgrade"    "ammo_ap_m16a4"
            }
            
            "allowed_items"
            {
                "weapon"            "weapon_m16a4"
                "weapon"            "weapon_ak74"
                "weapon"            "weapon_m590"
                "weapon"            "weapon_toz"
                "weapon"            "weapon_fal"
                "weapon"            "weapon_m9"
                "weapon"            "weapon_makarov"
                "weapon"            "weapon_m67"
                "weapon"            "weapon_anm14"
                "weapon"            "weapon_c4_clicker"
                "weapon"            "weapon_at4"
                "weapon"            "weapon_rpg7"
                "weapon_upgrade"    "underbarrel_m203_he"
                "weapon_upgrade"    "underbarrel_m203_smoke"
                "weapon_upgrade"    "underbarrel_gp25_he"
                "weapon_upgrade"    "underbarrel_gp25_smoke"                
                "weapon_upgrade"    "sec_foregrip"
                "weapon_upgrade"    "sec_foregrip2"
                "weapon_upgrade"    "ins_foregrip"
                "weapon_upgrae"        "ins_foregrip2"
                "weapon_upgrade"    "ins_woodgrip1"
                "weapon_upgrade"    "ins_woodgrip2"
                "weapon_upgrade"    "sec_silencer"
                "weapon_upgrade"    "sec_silencer2"
                "weapon_upgrade"    "sec_silencer_pistol"
                "weapon_upgrade"    "ins_silencer"
                "weapon_upgrade"    "ins_silencer_pistol"
                "weapon_upgrade"    "optic_eotech"
                "?nightmap"
            }
        }
        
        "template_designated_marksman_security_coop"
        {
            "team"                "security"
            "print_name"        "Reaper 2.7 - Designated Marksman"
            
            "models"
            {
                "player"            "models/characters/security_heavy.mdl"
                "viewmodel_hands"    "models/weapons/v_hands_sec_m.mdl
                "helmet"            "models/characters/us_helmet.mdl
            }
            
            "buy_order"
            {
                "gear"                "sec_chest_rig"
                "gear"                "sec_light_armor"
                "weapon"            "weapon_kabar"
                "weapon"            "weapon_m14"
                "weapon_upgrades"    "ammo_ap_m14"
                "weapon_upgrades"    "optic_2xaimpoint"
                "weapon"            "weapon_m18"
            }
            
            "allowed_items"
            {
                "weapon"            "weapon_m14"
                "weapon"            "weapon_mini14"
                "weapon"            "weapon_m16a4"
                "weapon"            "weapon_sks"
                "weapon"            "weapon_m1a1"
                "weapon"            "weapon_m9"
                "weapon"            "weapon_makarov"
                "weapon"            "weapon_m67"
                "weapon"            "weapon_m18"
                "weapon"            "weapon_m84"
                "weapon_upgrade"    "sec_foregrip"
                "weapon_upgrade"    "sec_foregrip2"
                "weapon_upgrade"    "ins_foregrip"
                "weapon_upgrae"        "ins_foregrip2"
                "weapon_upgrade"    "ins_woodgrip1"
                "weapon_upgrade"    "ins_woodgrip2"
                "weapon_upgrade"    "sec_bipod"
                "weapon_upgrade"    "ins_bipod"
                "weapon_upgrade"    "sec_silencer"
                "weapon_upgrade"    "sec_silencer2"
                "weapon_upgrade"    "sec_silencer_pistol"
                "weapon_upgrade"    "ins_silencer"
                "weapon_upgrade"    "ins_silencer_pistol"
                "weapon_upgrade"    "optic_eotech"
                "?nightmap"
            }
        }
        
        "template_sniper_security_coop"
        {
            "team"                "security"
            "print_name"        "Reaper 2.8 - Sniper"
            
            "models"
            {
                "player"            "models/characters/security_standard.mdl"
                "viewmodel_hands"    "models/weapons/v_hands_sec_1.mdl"
                "helmet"            "models/characters/us_helmet.mdl"
            }
            
            "buy_order"
            {
                "gear"                "sec_chest_rig"
                "gear"                "sec_light_armor"
                "weapon"            "weapon_kabar"
                "weapon"            "weapon_m40a1"
                "weapon_upgrade"    "optic_scope_mk4"
                "weapon_upgrade"    "sec_bipod"
            }
            
            "allowed_items"
            {
                "weapon"            "weapon_m40a1"
                "weapon"            "weapon_m14"
                "weapon"            "weapon_mosin"
                "weapon"            "weapon_sks"
                "weapon"            "weapon_m9"
                "weapon"            "weapon_makarov"
                "weapon"            "weapon_m67"
                "weapon"            "weapon_m18"
                "weapon_upgrade"    "sec_foregrip"
                "weapon_upgrade"    "sec_foregrip2"
                "weapon_upgrade"    "ins_foregrip"
                "weapon_upgrae"        "ins_foregrip2"
                "weapon_upgrade"    "ins_woodgrip1"
                "weapon_upgrade"    "ins_woodgrip2"
                "weapon_upgrade"    "sec_bipod"
                "weapon_upgrade"    "ins_bipod"
                "weapon_upgrade"    "sec_silencer"
                "weapon_upgrade"    "sec_silencer2"
                "weapon_upgrade"    "sec_silencer_pistol"
                "weapon_upgrade"    "ins_silencer"
                "weapon_upgrade"    "ins_silencer_pistol"
                "weapon_upgrade"    "optic_eotech"
                "?nightmap"
            }
        }
        
        //bot templates
        
        "template_coop_specialist"
        {
        
            "team"                "security,insurgents"
            "print_name"        "#Squad_Cell_Specialist"
            
            
            "models"
            {
                "player"            "models/characters/insurgent_standard.mdl"
                "viewmodel_hands"    "models/weapons/v_hands_ins_m.mdl"
            }
            
            "buy_order"
            {
                "gear"                "ins_light_armor"
                "gear"                "ins_chest_rig"
                "weapon"            "weapon_kabar"
                "weapon"            "weapon_aks74u"
                "weapon_upgrade"    "ammo_ap_aks74u"
                "weapon_upgrade"    "ins_foregrip"
                "weapon"            "weapon_m84"
            }
            
            "allowed_items"
            {
                "weapon"            "weapon_aks74u"
                "weapon"            "weapon_akm"
                "weapon"            "weapon_ak74"
                "weapon"            "weapon_m84"
                "weapon"            "weapon_makarov"
                "weapon"            "weapon_molotov"
                "weapon"            "weapon_m18"
            }
        }
        
        "template_coop_fighter"
        {
            
            "team"                "security,insurgents"
            "print_name"        "#Squad_Cell_Fighter"
            
            "models"
            {
                "player"            "models/characters/insurgent_fighter.mdl"
                "viewmodel_hands"    "models/weapons/v_hands_ins_m.mdl"
            }
            
            "buy_order"
            {
                "gear"                "ins_heavy_armor"
                "gear"                "ins_chest_rig"
                "weapon"            "weapon_kabar"
                "weapon"            "weapon_akm"
                "weapon_upgrade"    "ammo_ap_akm"
                "weapon_upgrade"    "ins_woodgrip"
                "weapon"            "weapon_molotov"
            }
            
            "allowed_items"
            {
                "weapon"            "weapon_akm"
                "weapon"            "weapon_ak74"
                "weapon"            "weapon_sks"
                "weapon"            "weapon_makarov"
                "weapon"            "weapon_m84"
                "weapon"            "weapon_molotov"
                "weapon"            "weapon_m18"
            }
            
        }
        
        "template_coop_fighter_2"
        {
            "team"            "security,insurgents"
            "print_name"    "#Squad_Cell_Fighter"
            
            "models"
            {
                "player"            "models/characters/insurgent_fighter.mdl"
                "viewmodel_hands"    "models/weapons/v_hands_ins_m.mdl"
            }
            
            "buy_order"
            {
                "gear"                "ins_heavy_armor"
                "gear"                "ins_chest_carrier"
                "weapon"            "weapon_kabar"
                "weapon"            "weapon_ak74"
                "weapon_upgrade"    "ammo_ap_ak74"
                "weapon"            "weapon_f1"
            }
            
            "allowed_items"
            {
                "weapon"            "weapon_ak74"
                "weapon"            "weapon_sks"
                "weapon"            "weapon_akm"
                "weapon"            "weapon_makarov"
                "weapon"            "weapon_m84"
                "weapon"            "weapon_m18"
                "weapon"            "weapon_molotov"
                "weapon"            "weapon_f1"
            }
        }
    
        "template_coop_fighter_3"
        {
            "team"            "security,insurgents"
            "print_name"    "#Squad_Cell_Fighter"
            
            "models"
            {
                "player"            "models/characters/insurgent_fighter.mdl"
                "viewmodel_hands"    "models/weapons/v_hands_ins_m.mdl"
            }

            "buy_order"
            {
                "gear"                "ins_light_armor"
                "gear"                "ins_chest_carrier"
                "weapon"            "weapon_kabar"
                "weapon"            "weapon_ak74"
                "weapon_upgrade"    "underbarrel_gp25_he"
            }
            
            "allowed_items"
            {
            
                "weapon"            "weapon_ak74"
                "weapon_upgrade"    "underbarrel_gp25_he"
                "weapon_upgrade"    "underbarrel_gp25_smoke"
                "weapon"            "weapon_makarov"
            }
            
        }
    
        
        "template_coop_machinegunner"
        {
            "team"            "security,insurgents"
            "print_name"    "#Squad_Cell_MachineGunner"
        
            "models"
            {
                "player"            "models/characters/insurgent_machinegunner.mdl"
                "viewmodel_hands"    "models/weapons/v_hands_ins_m.mdl"
            }
            
            "buy_order"
            {
                "gear"                "ins_chest_rig"
                "gear"                "ins_light_armor"
                "weapon"            "weapon_kabar"
                "weapon"            "weapon_rpk"
                "weapon_upgrade"    "ammo_ap_rpk"
                "weapon"            "weapon_f1"
            }
            
            "allowed_items"
            {
                "weapon"            "weapon_rpk"
                "weapon"            "weapon_makarov"
                "weapon"            "weapon_f1"
                "weapon"            "weapon_rpg7"
                "weapon"            "weapon_m18"
            }
        }
        
        "template_coop_sapper"
        {
            "team"            "security,insurgents"
            "print_name"    "#Squad_Cell_Sapper"
            
            "models"
            {
                "player"            "models/characters/insurgent_sapper.mdl"
                "viewmodel_hands"    "models/weapons/v_hands_ins_m.mdl"
            }    
            
            "buy_order"
            {
                "gear"            "ins_heavy_armor"
                "gear"            "ins_chest_carrier"
                "weapon"        "weapon_kabar"
                "weapon"        "weapon_toz"
                "weapon"        "weapon_rpg7"
            }
            
            "allowed_items"
            {
                "weapon"        "weapon_toz"
                "weapon"        "weapon_ak74"
                "weapon"        "weapon_makarov"
                "weapon"        "weapon_rpg7"
            }
        }
        
        "template_coop_sharpsminhooter"
        {
            "team"            "security,insurgents"
            "print_name"    "#Squad_Cell_Sharpshooter"
            
            "models"
            {
                "player"            "models/characters/insurgent_light.mdl"
                "viewmodel_hands"    "modles/weapons/v_hands_ins_m.mdl"
            }
            
            "buy_order"
            {
                "gear"                "ins_chest_rig"
                "gear"                "ins_light_armor"
                "weapon"            "weapon_kabar"
                "weapon"            "weapon_mosin"
                "weapon_upgrade"    "ammo_ap_mosin"
                "weapon_upgrade"    "4xscope_mosin"
                "weapon_upgrade"    "ins_bipod"
            }
            
            "allowed_items"
            {
                "weapon"            "weapon_mosin"
                "weapon"            "weapon_sks"
                "weapon"            "weapon_makarov"
                "weapon"            "weapon_f1"
                "weapon"            "weapon_m18"
            }
        }
        
    }
    
    "weapons"
    {
    
        "weapon_m16a4"
        {
            "weapon_cost"            "1"
        }
        
        "weapon_m4a1"
        {
            "weapon_cost"            "3"
        }
        
        "weapon_mk18"
        {
            "weapon_cost"            "3"
        }
        
        "weapon_mini14"
        {
            "weapon_cost"            "2"
        }
        
        "weapon_mp5"
        {
            "weapon_cost"            "2"
        }
        
        "weapon_ump45"
        {
            "weapon_cost"            "3"
        }
        
        "weapon_m590"
        {
            "weapon_cost"            "1"
        }
        
        "weapon_m249"
        {
            "weapon_cost"            "4"
        }
        
        "weapon_m40a1"
        {
            "weapon_cost"            "1"
        }
        
        "weapon_akm"
        {
            "weapon_cost"            "3"
            "team_access"            "security,insurgents"
        }
        
        "weapon_ak74"
        {
            "weapon_cost"            "3"
            "team_access"            "security,insurgents"
        }
        
        "weapon_sks"
        {
            "weapon_cost"            "2"
        }
        
        "weapon_aks74u"
        {
            "weapon_cost"            "3"
        }
        
        "weapon_toz"
        {
            "weapon_cost"            "1"
        }
        
        "weapon_rpk"
        {
            "weapon_cost"            "4"
        }
        
        "weapon_mosin"
        {
            "weapon_cost"            "1"
        }
        
    }
    
    "weapon_upgrades"
    {
    
        "optic_elcan"
        {
            "allowed_weapons"
            {
                "weapon"                    "weapon_m16a4"
                "weapon"                    "weapon_m4a1"
                "weapon"                    "weapon_m249"
                "weapon"                    "weapon_m40a1"
                "weapon"                    "weapon_mk18"
                "weapon"                    "weapon_m14"
                "weapon"                    "weapon_mini14"
                "weapon"                    "weapon_mp5"
                "weapon"                    "weapon_ump45"        
                
                "weapon"                    "weapon_akm"
                "weapon"                    "weapon_ak74"
                "weapon"                    "weapon_aks74u"
                "weapon"                    "weapon_fal"
                "weapon"                    "weapon_m1a1"
                "weapon"                    "weapon_mosin"
                "weapon"                    "weapon_mp40"
                "weapon"                    "weapon_rpk"
                "weapon"                    "weapon_sks"
            }
            
            "optics_fov_override"
            {
                "weapon_akm"
                {
                    "fov_wpn_ironsight"            "52"
                    "fov_wpn_focus"                "58"            
                }
    
                "weapon_ak74"
                {
                    "fov_wpn_ironsight"            "52"
                    "fov_wpn_focus"                "58"            
                }
                
                "weapon_fal"
                {
                    "fov_wpn_ironsight"            "49"
                    "fov_wpn_focus"                "53"
                }
            
                "weapon_aks74u"
                {
                    "fov_wpn_ironsight" "50"
                    "fov_wpn_focus"    "59"
                }
                
                "weapon_m1a1"
                {
                    "fov_wpn_ironsight"            "42"
                    "fov_wpn_focus"                "49"
                }
                
                "weapon_mosin"
                {
                    "fov_wpn_ironsight"            "34"
                    "fov_wpn_focus"                "40"
                }
            
                "weapon_mp40"
                {
                    "fov_wpn_ironsight"            "46"
                    "fov_wpn_focus"                "53"
                }
                
                "weapon_rpk"
                {
                    "fov_wpn_ironsight"            "55"
                    "fov_wpn_focus"                "60"    
                }
                
                "weapon_sks"
                {
                    "fov_wpn_ironsight"            "58"
                    "fov_wpn_focus"                "60"
                }            
            }
        }
        
        "optic_eotech"
        {
            "allowed_weapons"
            {
                "weapon"                    "weapon_m16a4"
                "weapon"                    "weapon_m4a1"
                "weapon"                    "weapon_m249"
                "weapon"                    "weapon_m40a1"
                "weapon"                    "weapon_mk18"
                "weapon"                    "weapon_m590"
                "weapon"                    "weapon_m14"
                "weapon"                    "weapon_mini14"
                "weapon"                    "weapon_mp5"
                "weapon"                    "weapon_ump45"
                
                "weapon"                    "weapon_akm"
                "weapon"                    "weapon_ak74"
                "weapon"                    "weapon_aks74u"
                "weapon"                    "weapon_fal"
                "weapon"                    "weapon_m1a1"
                "weapon"                    "weapon_mp40"
                "weapon"                    "weapon_mosin"
                "weapon"                    "weapon_rpk"
                "weapon"                    "weapon_sks"
                "weapon"                    "weapon_toz"
            }    

            "optics_fov_override"
            {            
                "weapon_akm"
                {
                    "fov_wpn_ironsight"            "72"
                    "fov_wpn_focus"                "80"
                }

                "weapon_ak74"
                {
                    "fov_wpn_ironsight"            "65"
                    "fov_wpn_focus"                "76"
                }
                
                "weapon_aks74u"
                {        
                    "fov_wpn_ironsight"        "72"
                    "fov_wpn_focus"            "76"                
                }
                
                "weapon_fal"
                {        
                    "fov_wpn_ironsight"        "59"
                    "fov_wpn_focus"            "66"                
                }
                
                "weapon_m1a1"
                {        
                    "fov_wpn_ironsight"        "54"
                    "fov_wpn_focus"            "61"                
                }
                
                "weapon_mosin"
                {            
                    "fov_wpn_ironsight"        "30"
                    "fov_wpn_focus"            "42"
                }
                
                "weapon_mp40"
                {
                    "fov_wpn_ironsight"        "50"
                    "fov_wpn_focus"            "60"            
                }
                
                "weapon_rpk"
                {            
                    "fov_wpn_ironsight"        "70"
                    "fov_wpn_focus"            "78"        
                }
                
                "weapon_sks"
                {            
                    "fov_wpn_ironsight"        "76"
                    "fov_wpn_focus"            "83"
                }
                
                "weapon_toz"
                {            
                    "fov_wpn_ironsight"        "60"
                    "fov_wpn_focus"            "66"
                }
            }                    
        }
        
        "optic_kobra"
        {
            "allowed_weapons"
            {
                "weapon"                    "weapon_akm"
                "weapon"                    "weapon_ak74"
                "weapon"                    "weapon_aks74u"
                "weapon"                    "weapon_fal"
                "weapon"                    "weapon_m1a1"
                "weapon"                    "weapon_mp40"
                "weapon"                    "weapon_mosin"
                "weapon"                    "weapon_rpk"
                "weapon"                    "weapon_sks"
                "weapon"                    "weapon_toz"    

                "weapon"                    "weapon_m16a4"
                "weapon"                    "weapon_m4a1"
                "weapon"                    "weapon_m40a1"
                "weapon"                    "weapon_mk18"
                "weapon"                    "weapon_m590"
                "weapon"                    "weapon_m14"
                "weapon"                    "weapon_mini14"
                "weapon"                    "weapon_mp5"
                "weapon"                    "weapon_ump45"                
            }
            
            "optics_fov_override"
            {            
                "weapon_m16a4"
                {
                    "fov_wpn_ironsight"            "60"
                    "fov_wpn_focus"                "70"        
                }
                
                "weapon_m4a1"
                {
                    "fov_wpn_ironsight"            "65"
                    "fov_wpn_focus"                "75"
    
                "weapon_mk18"
                {
                    "fov_wpn_ironsight"            "65"
                    "fov_wpn_focus"                "75"        
                }
                
                "weapon_mp5"
                {            
                    "fov_wpn_ironsight"            "56"
                    "fov_wpn_focus"                "63"
                }
                
                "weapon_ump45"
                {            
                    "fov_wpn_ironsight"            "53"
                    "fov_wpn_focus"                "63"
                }
    
                "weapon_m14"
                {            
                    "fov_wpn_ironsight"            "50"
                    "fov_wpn_focus"                "60"
                }
                
                "weapon_mini14"
                {            
                    "fov_wpn_ironsight"            "49"
                    "fov_wpn_focus"                "58"
                }
                
                "weapon_m40a1"
                {            
                    "fov_wpn_ironsight"            "48"
                    "fov_wpn_focus"                "56"
                }
            
                "weapon_m590"
                {            
                    "fov_wpn_ironsight"            "61"
                    "fov_wpn_focus"                "70"
                }
            }    
        }
        
        "optic_po4x24"
        {
            "allowed_weapons"
            {
                "weapon"                    "weapon_akm"
                "weapon"                    "weapon_aks74u"
                "weapon"                    "weapon_fal"
                "weapon"                    "weapon_m1a1"
                "weapon"                    "weapon_mosin"
                "weapon"                    "weapon_mp40"
                "weapon"                    "weapon_rpk"
                "weapon"                    "weapon_sks"
                
                "weapon"                    "weapon_m16a4"
                "weapon"                    "weapon_m249"
                "weapon"                    "weapon_m40a1"
                "weapon"                    "weapon_mk18"
                "weapon"                    "weapon_mini14"
                "weapon"                    "weapon_mp5"
                "weapon"                    "weapon_ump45"
            }    

            "optics_fov_override"
            {
                "weapon_m16a4"
                {
                    "fov_wpn_ironsight"        "50"
                    "fov_wpn_focus"            "56"
                }
                
                "weapon_mk18"
                {
                    "fov_wpn_ironsight"        "64"
                    "fov_wpn_focus"            "68"
                }
                
                "weapon_mini14"
                {
                    "fov_wpn_ironsight"        "45"
                    "fov_wpn_focus"            "52"
                }
                
                "weapon_m249"
                {
                    "fov_wpn_ironsight"            "40"
                    "fov_wpn_focus"                "48"            
                }
            
                "weapon_m40a1"
                {
                    "fov_wpn_ironsight"            "40"
                    "fov_wpn_focus"                "45"
                }
                
                "weapon_mp5"
                {
                    "fov_wpn_ironsight"            "45"
                    "fov_wpn_focus"                "52"
                }
                
                "weapon_ump45"
                {
                    "fov_wpn_ironsight"            "42"
                    "fov_wpn_focus"                "51"
                }
            }            
        }
        
        "underbarrel_m203_he"
        {
            "upgrade_cost"                "4"
        }
        
        "underbarrel_m203_smoke"
        {
            "upgrade_cost"                "3"
        }
        
        "underbarrel_gp25_he"
        {
            "upgrade_cost"                "4"
        }
        
        "underbarrley_gp25_smoke"
        {
            "upgrade_cost"            "3"
        }
        
    }
    
    "ammmo"
    {
        "grenade_m203_he"
        {
            "carry"                "4"
        }
        
        "grenade_gp25_he"
        {
            "carry"                "4"
        }
        
        "grenade_m203_smoke"
        {
            "carry"            "5"
        }
        
        "grenade_gp25_smoke"
        {
            "carry"                "5"
        }
    }
}

Reply
#72
One of your classes are misnamed.  "sharpsminhooter"  Try changing that to sharpshooter as a start.


 

Reply
#73
Quote:One of your classes are misnamed.  "sharpsminhooter"  Try changing that to sharpshooter as a start.


 
 

Can't believe i did that, thanks.
Reply
#74
You are missing quotes in multiple places as well.

 

When you see the color scheme change, know that you have a problem.

Reply
#75
Ilag I hope you take no offence at me posting this here, and if you do I am totally cool removing it Smile

http://forums.operatorthegame.com/viewto...p?f=8&t=38

It's rough and still wip, but it is current and as upto date as I can make it.

I do hope to add more detail that elaborates on that content, and also include more sections with info on server setup and config too as these things all play a part.
Reply




Users browsing this thread: 1 Guest(s)