Skip to content

Commit

Permalink
Added weapon inaccuracy (#262)
Browse files Browse the repository at this point in the history
  • Loading branch information
xthebat authored Apr 12, 2024
1 parent 9577d26 commit f3df46b
Show file tree
Hide file tree
Showing 41 changed files with 230,314 additions and 171 deletions.
Binary file modified Content/Maps/warmup.umap
Binary file not shown.
Binary file modified Content/Weapons/FirearmWeaponsTable.uasset
Binary file not shown.
228,001 changes: 228,001 additions & 0 deletions Importing/scripts/items_game.txt

Large diffs are not rendered by default.

26 changes: 26 additions & 0 deletions Importing/scripts/primary.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
"primary"
{
"prefab" "weapon_base"
"item_gear_slot" "primary"
"item_gear_slot_position" "0"
"capabilities"
{
"nameable" "1"
"paintable" "1"
"can_sticker" "1"
"can_stattrack_swap" "1"
}
"attributes"
{
"stattrak model" "models/weapons/stattrack.mdl"
"recovery transition start bullet" "2"
"recovery transition end bullet" "5"
"inaccuracy jump initial" "250.000000"
"inaccuracy jump" "500.000000"
"inaccuracy jump alt" "500.000000"
}
"taxonomy"
{
"primary" "1"
}
}
22 changes: 22 additions & 0 deletions Importing/scripts/rifle.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
"rifle"
{
"prefab" "primary"
"item_type_name" "#CSGO_Type_Rifle"
"item_slot" "rifle"
"inv_group_equipment" "rifle"
"mouse_pressed_sound" "weapons/m4a1/m4a1_clipout.wav"
"drop_sound" "weapons/m4a1/m4a1_clipin.wav"
"visuals"
{
"weapon_type" "Rifle"
}
"attributes"
{
"flinch velocity modifier large" "0.440000"
"flinch velocity modifier small" "0.100000"
}
"taxonomy"
{
"rifle" "1"
}
}
41 changes: 41 additions & 0 deletions Importing/scripts/secondary.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
"secondary"
{
"prefab" "weapon_base"
"capabilities"
{
"nameable" "1"
"paintable" "1"
"can_sticker" "1"
"can_stattrack_swap" "1"
}
"item_type_name" "#CSGO_Type_Pistol"
"item_slot" "secondary"
"inv_group_equipment" "secondary"
"mouse_pressed_sound" "weapons/DEagle/de_clipout.wav"
"drop_sound" "weapons/DEagle/de_clipin.wav"
"item_gear_slot" "secondary"
"item_gear_slot_position" "0"
"attributes"
{
"stattrak model" "models/weapons/stattrack.mdl"
}
"visuals"
{
"weapon_type" "Pistol"
}
"attributes"
{
"flinch velocity modifier large" "0.560000"
"flinch velocity modifier small" "0.050000"
"recovery transition start bullet" "3"
"recovery transition end bullet" "10"
"inaccuracy jump initial" "250.000000"
"inaccuracy jump" "500.000000"
"inaccuracy jump alt" "500.000000"
}
"taxonomy"
{
"secondary" "1"
"pistol" "1"
}
}
23 changes: 23 additions & 0 deletions Importing/scripts/shotgun.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
"shotgun"
{
"prefab" "primary"
"item_type_name" "#CSGO_Type_Shotgun"
"item_slot" "heavy"
"inv_group_equipment" "heavy"
"mouse_pressed_sound" "weapons/sawedoff/sawedoff_draw.wav"
"drop_sound" "weapons/sawedoff/sawedoff_pump.wav"
"visuals"
{
"weapon_type" "Shotgun"
}
"attributes"
{
"flinch velocity modifier large" "0.350000"
"flinch velocity modifier small" "0.100000"
}
"taxonomy"
{
"reloads_per_shell" "1"
"shotgun" "1"
}
}
97 changes: 97 additions & 0 deletions Importing/scripts/statted_item_base.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
"statted_item_base"
{
"attributes"
{
"addon scale" "1.000000"
"allow hand flipping" "1"
"armor ratio" "1"
"attack movespeed factor" "1.000000"
"bot audible range" "2000.000000"
"bullets" "1"
"cannot shoot underwater" "0"
"crosshair delta distance" "3"
"crosshair min distance" "4"
"cycletime" "0.150000"
"cycletime alt" "0.300000"
"damage" "42"
"headshot multiplier" "4"
"flinch velocity modifier large" "1.000000"
"flinch velocity modifier small" "1.000000"
"has burst mode" "0"
"has silencer" "0"
"heat per shot" "0.250000"
"hide view model zoomed" "0"
"idle interval" "20"
"inaccuracy crouch" "0.000000"
"inaccuracy crouch alt" "0.000000"
"inaccuracy fire" "0.000000"
"inaccuracy fire alt" "0.000000"
"inaccuracy jump" "0.000000"
"inaccuracy jump alt" "0.000000"
"inaccuracy jump initial" "0.000000"
"inaccuracy jump apex" "0.000000"
"inaccuracy ladder" "0.000000"
"inaccuracy ladder alt" "0.000000"
"inaccuracy land" "0.000000"
"inaccuracy land alt" "0.000000"
"inaccuracy move" "0.000000"
"inaccuracy move alt" "0.000000"
"inaccuracy reload" "0.000000"
"inaccuracy stand" "0.000000"
"inaccuracy stand alt" "0.000000"
"inaccuracy pitch shift" "0.000000"
"inaccuracy alt sound threshold" "0.000000"
"is full auto" "0"
"is melee weapon" "0"
"is revolver" "0"
"itemflag select on empty" "0"
"itemflag no auto reload" "0"
"itemflag no auto switch empty" "0"
"itemflag limit in world" "0"
"itemflag exhaustible" "0"
"itemflag do hit location dmg" "0"
"itemflag no ammo pickups" "0"
"itemflag no item pickup" "0"
"kill award" "300"
"max player speed" "1"
"max player speed alt" "1"
"model right handed" "1"
"penetration" "1.000000"
"primary clip size" "0"
"primary default clip size" "-1"
"primary reserve ammo max" "0"
"range" "8192.000000"
"range modifier" "0.980000"
"recoil angle" "0.000000"
"recoil angle alt" "0.000000"
"recoil angle variance" "0.000000"
"recoil angle variance alt" "0.000000"
"recoil magnitude" "0.000000"
"recoil magnitude alt" "0.000000"
"recoil magnitude variance" "0.000000"
"recoil magnitude variance alt" "0.000000"
"spread seed" "0"
"recovery time crouch" "1.000000"
"recovery time crouch final" "1.000000"
"recovery time stand" "1.000000"
"recovery time stand final" "1.000000"
"recovery transition end bullet" "0"
"recovery transition start bullet" "0"
"rumble effect" "-1"
"secondary clip size" "0"
"secondary default clip size" "-1"
"secondary reserve ammo max" "0"
"spread" "0.000000"
"spread alt" "0.000000"
"time to idle" "2.000000"
"tracer frequency" "0"
"unzoom after shot" "0"
"weapon weight" "0"
"zoom fov 1" "90"
"zoom fov 2" "90"
"zoom levels" "0"
"zoom time 0" "0"
"zoom time 1" "0"
"zoom time 2" "0"
}
}
130 changes: 130 additions & 0 deletions Importing/scripts/weapon_ak47_prefab.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
"weapon_ak47_prefab"
{
"prefab" "rifle"
"item_class" "weapon_ak47"
"item_name" "#SFUI_WPNHUD_AK47"
"item_description" "#CSGO_Item_Desc_AK47"
"item_rarity" "uncommon"
"image_inventory" "econ/weapons/base_weapons/weapon_ak47"
"model_player" "models/weapons/v_rif_ak47.mdl"
"model_world" "models/weapons/w_rif_ak47.mdl"
"model_dropped" "models/weapons/w_rif_ak47_dropped.mdl"
"icon_default_image" "materials/icons/inventory_icon_weapon_ak47.vtf"
"stickers"
{
"0"
{
"viewmodel_material" "materials/models/weapons/customization/rif_ak47/rif_ak47_decal_a.vmt"
"viewmodel_geometry" "models/weapons/stickers/v_models/rif_ak47_decal_a.mdl"
"worldmodel_decal_pos" "6.43516 -1.26887 -0.743033"
}
"1"
{
"viewmodel_material" "materials/models/weapons/customization/rif_ak47/rif_ak47_decal_b.vmt"
"viewmodel_geometry" "models/weapons/stickers/v_models/rif_ak47_decal_b.mdl"
"worldmodel_decal_pos" "6.43516 -1.47404 3.01389"
}
"2"
{
"viewmodel_material" "materials/models/weapons/customization/rif_ak47/rif_ak47_decal_c.vmt"
"viewmodel_geometry" "models/weapons/stickers/v_models/rif_ak47_decal_c.mdl"
"worldmodel_decal_pos" "6.43516 -1.34147 7.33494"
}
"3"
{
"viewmodel_material" "materials/models/weapons/customization/rif_ak47/rif_ak47_decal_d.vmt"
"viewmodel_geometry" "models/weapons/stickers/v_models/rif_ak47_decal_d.mdl"
"worldmodel_decal_pos" "6.43516 -1.31489 11.8284"
}
}
"used_by_classes"
{
"terrorists" "1"
}
"attributes"
{
"magazine model" "models/weapons/w_rif_ak47_mag.mdl"
"primary reserve ammo max" "90"
"recovery time crouch" "0.305257"
"recovery time crouch final" "0.419728"
"recovery time stand" "0.368000"
"recovery time stand final" "0.506000"
"inaccuracy jump initial" "100.940002"
"inaccuracy jump" "140.759995"
"heat per shot" "0.300000"
"addon scale" "0.900000"
"tracer frequency" "3"
"max player speed" "215"
"is full auto" "1"
"in game price" "2700"
"armor ratio" "1.550000"
"crosshair delta distance" "4"
"penetration" "2"
"damage" "36"
"range" "8192"
"cycletime" "0.100000"
"time to idle" "1.900000"
"flinch velocity modifier large" "0.400000"
"flinch velocity modifier small" "0.550000"
"spread" "0.600000"
"inaccuracy crouch" "4.810000"
"inaccuracy stand" "6.410000"
"inaccuracy land" "0.242000"
"inaccuracy ladder" "140.000000"
"inaccuracy fire" "7.800000"
"inaccuracy move" "175.059998"
"recoil angle" "0"
"recoil angle variance" "70"
"recoil magnitude" "30"
"recoil magnitude variance" "0"
"recoil seed" "223"
"primary clip size" "30"
"weapon weight" "25"
"rumble effect" "4"
"inaccuracy crouch alt" "4.810000"
"inaccuracy fire alt" "7.800000"
"inaccuracy jump alt" "140.759995"
"inaccuracy ladder alt" "140.000000"
"inaccuracy land alt" "0.242000"
"inaccuracy move alt" "175.059998"
"inaccuracy stand alt" "6.410000"
"max player speed alt" "215"
"recoil angle alt" "0"
"recoil angle variance alt" "70"
"recoil magnitude alt" "30"
"recoil magnitude variance alt" "0"
"spread alt" "0.600000"
}
"inventory_image_data"
{
"camera_angles" "-2.0 -135.0 0.0"
"camera_offset" "18.0 3.7 -2.5"
}
"paint_data"
{
"PaintableMaterial0"
{
"Name" "rif_ak47"
"OrigMat" "ak47"
"ViewmodelDim" "2048"
"WorldDim" "512"
"BaseTextureOverride" "0"
"WeaponLength" "37.746201"
"UVScale" "0.549000"
}
}
"visuals"
{
"muzzle_flash_effect_1st_person" "weapon_muzzle_flash_assaultrifle"
"muzzle_flash_effect_3rd_person" "weapon_muzzle_flash_assaultrifle"
"heat_effect" "weapon_muzzle_smoke"
"addon_location" "primary_rifle"
"eject_brass_effect" "weapon_shell_casing_rifle"
"tracer_effect" "weapon_tracers_assrifle"
"weapon_type" "Rifle"
"player_animation_extension" "ak"
"primary_ammo" "BULLET_PLAYER_762MM"
"sound_single_shot" "Weapon_AK47.Single"
"sound_nearlyempty" "Default.nearlyempty"
}
}
Loading

0 comments on commit f3df46b

Please sign in to comment.