WeaponData{ //持枪移动速度 "MaxPlayerSpeed" "215" //武器类型 "WeaponType" "Machinegun" //价格 "WeaponPrice" "5700" //持枪护甲比?,数值越大越好 "WeaponArmorRatio" "9.0" //准心最小直径,越小越好 "CrosshairMinDistance" "9"
//未发现作用 "Fullauto" 1
//开火时准心扩散距离(就是开火的时候,准心扩散多大,同时子弹偏移幅度多大) "CrosshairDeltaDistance" "3" //阵营 "Team" "ANY" //左手还是右手持枪(0,1分别代表左右手) "BuiltRightHanded" "1" //未知不过我填的是枪支英文名 "PlayerAnimationExtension" "m249" //枪口火焰的缩放(值越大枪口的那朵火焰越大,太大小心你的显卡受不了) "MuzzleFlashScale" "1" //是否能持盾 "CanEquipWithShield" "0" // Weapon characteristics: //未知 "Penetration" "1"
//基础伤害值 "Damage" "27"
//射距 "Range" "9999"
//射距的调整量 "RangeModifier" "0.99"
//一次开火射出子弹数量 "Bullets" "1"
//子弹发射速度 "CycleTime" "0.11"
"AccuracyDivisor" "220" "AccuracyOffset" "0.9" //以上两个值相互作用,Divisor越大,Offset越小,射击时震动就越小
//弹着点散布的随机值,越小枪越准,狙击枪干脆为零 "MaxInaccuracy" "0.1"
// 射击震动的持续时间,即准心开火后恢复正常的速度,越小越好 "TimeToIdle" "3"
//瞄准时长 "IdleInterval" "20" // Weapon data is loaded by both the Game and Client DLLs. //未知应该是枪支的名称什么的 "printname" "#Cstrike_WPNHUD_M249" //模型位置 "viewmodel" "models/weapons/v_mach_m249para.mdl" "playermodel" "models/weapons/w_mach_m249para.mdl" "anim_prefix" "anim" "bucket" "0" "bucket_position" "0"
//子弹数 -1为无限 "clip_size" "200" //子弹类型 "primary_ammo" "BULLET_PLAYER_556MM" "secondary_ammo" "BULLET_PLAYER_556MM"
//重量 "weight" "25" //旗帜 未知作用 "item_flags" "0"
//下面是声音和模型 // Sounds for the weapon. There is a max of 16 sounds per category (i.e. max 16 "single_shot" sounds) SoundData { //"reload" "Default.Reload" //"empty" "Default.ClipEmpty_Rifle" "single_shot" "Weapon_m249.Single" }
//下面就是捡到枪时的图案以及声音神马的配置 被我删除了不少 我基本不用它 // Weapon Sprite data is loaded by the Client DLL. TextureData { "ammo" { "font" "CSTypeDeath" "character" "R" } "crosshair" { "file" "sprites/crosshairs" "x" "0" "y" "48" "width" "24" "height" "24" } "autoaim" { "file" "sprites/crosshairs" "x" "0" "y" "48" "width" "24" "height" "24" } } ModelBounds { Viewmodel { Mins "-10 -4 -13" Maxs "21 9 -1" } World { Mins "-10 -7 -6" Maxs "22 8 9" } }}