add sborka
This commit is contained in:
@@ -0,0 +1,79 @@
|
||||
local function ARCCW_FAS2_ClientsidePanel(panel)
|
||||
panel:ClearControls()
|
||||
|
||||
local slider = vgui.Create("DNumSlider", panel)
|
||||
slider:SetDecimals(0)
|
||||
slider:SetMin(0)
|
||||
slider:SetMax(3)
|
||||
slider:SetConVar("arccw_fas2_handrig")
|
||||
slider:SetValue(GetConVarNumber("arccw_fas2_handrig"))
|
||||
slider:SetText("Hand Rig")
|
||||
|
||||
panel:AddItem(slider)
|
||||
|
||||
local MC = vgui.Create("DComboBox", panel)
|
||||
MC:SetText("Hand Skin")
|
||||
MC.ConVar = "arccw_fas2_handskin"
|
||||
|
||||
MC:AddChoice("White")
|
||||
MC:AddChoice("Tan")
|
||||
MC:AddChoice("Black")
|
||||
MC:AddChoice("Camo")
|
||||
|
||||
MC.OnSelect = function(panel, index, value, data)
|
||||
RunConsoleCommand(MC.ConVar, tonumber(index))
|
||||
end
|
||||
|
||||
panel:AddItem(MC)
|
||||
|
||||
local MC = vgui.Create("DComboBox", panel)
|
||||
MC:SetText("Glove Skin")
|
||||
MC.ConVar = "arccw_fas2_gloveskin"
|
||||
|
||||
MC:AddChoice("Nomex")
|
||||
MC:AddChoice("Black")
|
||||
MC:AddChoice("Desert Khaki")
|
||||
MC:AddChoice("Multicam")
|
||||
MC:AddChoice("Green")
|
||||
|
||||
MC.OnSelect = function(panel, index, value, data)
|
||||
RunConsoleCommand(MC.ConVar, tonumber(index))
|
||||
end
|
||||
|
||||
panel:AddItem(MC)
|
||||
|
||||
local MC = vgui.Create("DComboBox", panel)
|
||||
MC:SetText("Sleeve Skin")
|
||||
MC.ConVar = "arccw_fas2_sleeveskin"
|
||||
|
||||
MC:AddChoice("Woodland Camo")
|
||||
MC:AddChoice("Digital Camo")
|
||||
MC:AddChoice("Russian Digital Camo")
|
||||
MC:AddChoice("Black")
|
||||
|
||||
MC.OnSelect = function(panel, index, value, data)
|
||||
RunConsoleCommand(MC.ConVar, tonumber(index))
|
||||
end
|
||||
|
||||
panel:AddItem(MC)
|
||||
|
||||
panel:AddControl("Button", {Label = "Apply Skin", Command = "arccw_fas2_handrig_applynow"})
|
||||
|
||||
local slider = vgui.Create("DNumSlider", panel)
|
||||
slider:SetDecimals(2)
|
||||
slider:SetMin(0)
|
||||
slider:SetMax(2)
|
||||
slider:SetConVar("arccw_fas2_headbob_intensity")
|
||||
slider:SetValue(GetConVarNumber("arccw_fas2_headbob_intensity"))
|
||||
slider:SetText("Headbob Intensity")
|
||||
|
||||
panel:AddItem(slider)
|
||||
|
||||
panel:AddControl("CheckBox", {Label = "FA:S 2.0 Bolting", Command = "arccw_fas2_bolting"})
|
||||
end
|
||||
|
||||
local function ARCCW_FAS2_PopulateToolMenu()
|
||||
spawnmenu.AddToolMenuOption("Options", "ArcCW", "ArcCW_FAS2", "FA:S 2.0 Options", "", "", ARCCW_FAS2_ClientsidePanel)
|
||||
end
|
||||
|
||||
hook.Add("PopulateToolMenu", "ArcCW_FAS2_PopulateToolMenu", ARCCW_FAS2_PopulateToolMenu)
|
||||
@@ -0,0 +1,4 @@
|
||||
AddCSLuaFile()
|
||||
game.AddParticles( "particles/at4_explo.pcf")
|
||||
game.AddParticles( "particles/struc_bomb.pcf")
|
||||
game.AddParticles( "particles/fires.pcf")
|
||||
@@ -0,0 +1,9 @@
|
||||
-- DO NOT REMOVE THIS FILE! THIS IS BASIC FILE DOWNLOAD WHICH IS ABSOLUTELY REQUIRED BY ANY CLIENT! IF YOU REMOVE THIS THEN MOST CLIENTS WILL BE BLIND BY PURPLE CHECKERS!
|
||||
AddCSLuaFile();
|
||||
if (SERVER) then
|
||||
resource.AddSingleFile( "materials/hud/radiation.vmt" )
|
||||
resource.AddSingleFile( "materials/hud/radiation.vtf" )
|
||||
resource.AddSingleFile( "sound/natsu/firedrive.mp3" )
|
||||
resource.AddWorkshop( 668552230 )
|
||||
resource.AddWorkshop( 668558959 )
|
||||
end
|
||||
@@ -0,0 +1,19 @@
|
||||
|
||||
if SERVER then
|
||||
AddCSLuaFile();
|
||||
emp_soundlist = {
|
||||
"gbombs_5/explosions/emp_wave/emp_discharge.mp3",
|
||||
"ambient/energy/newspark01.wav",
|
||||
"ambient/energy/newspark02.wav",
|
||||
"ambient/energy/newspark03.wav",
|
||||
"ambient/energy/newspark04.wav",
|
||||
"ambient/energy/newspark05.wav",
|
||||
"ambient/energy/newspark06.wav",
|
||||
"ambient/energy/newspark07.wav",
|
||||
"ambient/energy/newspark08.wav",
|
||||
"ambient/energy/newspark09.wav",
|
||||
"ambient/energy/newspark10.wav",
|
||||
"ambient/energy/newspark11.wav",
|
||||
}
|
||||
|
||||
end
|
||||
@@ -0,0 +1,26 @@
|
||||
|
||||
if SERVER then
|
||||
AddCSLuaFile();
|
||||
emp_whitelist = {"gmod_wire_pod",
|
||||
"gmod_wire_expression2",
|
||||
"gmod_wire_gate",
|
||||
"gmod_wire_value",
|
||||
"gmod_wire_button",
|
||||
"gmod_wire_dynamic_button",
|
||||
"gmod_button",
|
||||
"gmod_hoverball",
|
||||
"radio_music",
|
||||
"airraid_siren",
|
||||
"general_siren",
|
||||
"missile_detector",
|
||||
"nuclear_siren",
|
||||
"sent_tardis",
|
||||
"npc_rollermine",
|
||||
"npc_manhack",
|
||||
"npc_cscanner",
|
||||
"npc_turret_floor",
|
||||
"npc_clawscanner",
|
||||
"npc_helicopter",
|
||||
"npc_combinegunship",
|
||||
"scifi_siren"}
|
||||
end
|
||||
@@ -0,0 +1,10 @@
|
||||
|
||||
if SERVER then
|
||||
AddCSLuaFile();
|
||||
emp_whiteragdolllist = {"npc_combinedropship",
|
||||
"npc_strider",
|
||||
"npc_dog",
|
||||
"npc_stalker",
|
||||
"npc_combinegunship",
|
||||
"npc_hunter"}
|
||||
end
|
||||
@@ -0,0 +1,10 @@
|
||||
function AddAmmoType(name, text)
|
||||
game.AddAmmoType({name = name,
|
||||
dmgtype = DMG_BLAST})
|
||||
|
||||
if CLIENT then
|
||||
language.Add(name .. "_ammo", text)
|
||||
end
|
||||
end
|
||||
|
||||
AddAmmoType("PanzerFaust3 Rocket", "PanzerFaust3 Rocket")
|
||||
@@ -0,0 +1,4 @@
|
||||
AddCSLuaFile()
|
||||
game.AddParticles( "particles/at4_explo.pcf")
|
||||
game.AddParticles( "particles/struc_bomb.pcf")
|
||||
game.AddParticles( "particles/fires.pcf")
|
||||
@@ -0,0 +1,33 @@
|
||||
AddCSLuaFile()
|
||||
|
||||
if GetConVar("hb_easyuse") == nil then
|
||||
CreateConVar("hb_easyuse", "1", { FCVAR_REPLICATED, FCVAR_ARCHIVE, FCVAR_NOTIFY } )
|
||||
end
|
||||
|
||||
if GetConVar("hb_fragility") == nil then
|
||||
CreateConVar("hb_fragility", "1", {FCVAR_REPLICATED, FCVAR_ARCHIVE, FCVAR_NOTIFY } )
|
||||
end
|
||||
if GetConVar("hb_nuclear_emp") == nil then
|
||||
CreateConVar("hb_nuclear_emp", "1", { FCVAR_REPLICATED, FCVAR_ARCHIVE, FCVAR_NOTIFY } )
|
||||
end
|
||||
if GetConVar("hb_safeemp") == nil then
|
||||
CreateConVar("hb_safeemp", "1", { FCVAR_REPLICATED, FCVAR_ARCHIVE, FCVAR_NOTIFY } )
|
||||
end
|
||||
if GetConVar("hb_nuclear_vaporisation") == nil then
|
||||
CreateConVar("hb_nuclear_vaporisation", "1", { FCVAR_REPLICATED, FCVAR_ARCHIVE, FCVAR_NOTIFY } )
|
||||
end
|
||||
if GetConVar("hb_shockwave_unfreeze") == nil then
|
||||
CreateConVar("hb_shockwave_unfreeze", "1", { FCVAR_REPLICATED, FCVAR_ARCHIVE, FCVAR_NOTIFY } )
|
||||
end
|
||||
if GetConVar("hb_decals") == nil then
|
||||
CreateConVar("hb_decals", "1", { FCVAR_REPLICATED, FCVAR_ARCHIVE, FCVAR_NOTIFY } )
|
||||
end
|
||||
if GetConVar("hb_realistic_sound") == nil then
|
||||
CreateConVar("hb_realistic_sound", "1", { FCVAR_REPLICATED, FCVAR_ARCHIVE, FCVAR_NOTIFY } )
|
||||
end
|
||||
if GetConVar("hb_sound_shake") == nil then
|
||||
CreateConVar("hb_sound_shake", "1", { FCVAR_REPLICATED, FCVAR_ARCHIVE, FCVAR_NOTIFY } )
|
||||
end
|
||||
if GetConVar("hb_nuclear_fallout") == nil then
|
||||
CreateConVar("hb_nuclear_fallout", "1", { FCVAR_REPLICATED, FCVAR_ARCHIVE, FCVAR_NOTIFY } )
|
||||
end
|
||||
@@ -0,0 +1,11 @@
|
||||
AddCSLuaFile()
|
||||
game.AddDecal( "scorch_small", "decals/scorch_small" );
|
||||
game.AddDecal( "scorch_medium", "decals/scorch_medium" );
|
||||
game.AddDecal( "scorch_big", "decals/scorch_big" );
|
||||
game.AddDecal( "scorch_big_2", "decals/scorch_big_2" );
|
||||
game.AddDecal( "scorch_big_3", "decals/scorch_big_3" );
|
||||
game.AddDecal( "nuke_small", "decals/nuke_small" );
|
||||
game.AddDecal( "nuke_medium", "decals/nuke_medium" );
|
||||
game.AddDecal( "nuke_big", "decals/nuke_big" );
|
||||
game.AddDecal( "nuke_tsar", "decals/nuke_tsar" );
|
||||
game.AddDecal( "tiberium", "models/rogue/tibe/tibe_decal" );
|
||||
42
garrysmod/addons/tfa_antitank/lua/autorun/server/hb_main.lua
Normal file
42
garrysmod/addons/tfa_antitank/lua/autorun/server/hb_main.lua
Normal file
@@ -0,0 +1,42 @@
|
||||
AddCSLuaFile()
|
||||
util.AddNetworkString( "hbombs_cvar" )
|
||||
util.AddNetworkString( "hbombs_net" )
|
||||
util.AddNetworkString( "hbombs_general" )
|
||||
util.AddNetworkString( "hbombs_announcer" )
|
||||
SetGlobalString ( "hb_ver", 5 )
|
||||
|
||||
TOTAL_BOMBS = 0
|
||||
net.Receive( "hbombs_cvar", function( len, pl )
|
||||
if( !pl:IsAdmin() ) then return end
|
||||
local cvar = net.ReadString();
|
||||
local val = net.ReadFloat();
|
||||
if( GetConVar( tostring( cvar ) ) == nil ) then return end
|
||||
if( GetConVarNumber( tostring( cvar ) ) == tonumber( val ) ) then return end
|
||||
|
||||
game.ConsoleCommand( tostring( cvar ) .." ".. tostring( val ) .."\n" );
|
||||
|
||||
end );
|
||||
|
||||
|
||||
function source_debug( ply, command)
|
||||
ply:ChatPrint("Engine Tickrate: \n"..tostring(1/engine.TickInterval()))
|
||||
end
|
||||
concommand.Add( "source_debug", source_debug )
|
||||
|
||||
function hbversion( ply, command, arguments )
|
||||
ply:ChatPrint( "Hbombs 5/14/16" )
|
||||
end
|
||||
concommand.Add( "hb_version", hbversion )
|
||||
|
||||
|
||||
function hb_spawn(ply)
|
||||
ply.gasmasked=false
|
||||
ply.hazsuited=false
|
||||
net.Start( "hbombs_net" )
|
||||
net.WriteBit( false )
|
||||
ply:StopSound("breathing")
|
||||
net.Send(ply)
|
||||
end
|
||||
hook.Add( "PlayerSpawn", "hb_spawn", hb_spawn )
|
||||
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
AddCSLuaFile()
|
||||
|
||||
function hb_physics()
|
||||
Msg("\n|Hbombs physics module initialized!")
|
||||
Msg("\n|If you don't want this, delete the hb_physics.lua file\n")
|
||||
|
||||
phys = {}
|
||||
phys.MaxVelocity = 5000
|
||||
phys.MaxAngularVelocity = 3636.3637695313
|
||||
physenv.SetPerformanceSettings(phys)
|
||||
|
||||
end
|
||||
|
||||
hook.Add( "InitPostEntity", "hb_physics", hb_physics )
|
||||
@@ -0,0 +1,92 @@
|
||||
|
||||
CreateClientConVar("arccw_fas2_handskin", "1", true, true)
|
||||
CreateClientConVar("arccw_fas2_gloveskin", "1", true, true)
|
||||
CreateClientConVar("arccw_fas2_sleeveskin", "1", true, true)
|
||||
CreateClientConVar("arccw_fas2_handrig", "0", true, true)
|
||||
CreateClientConVar("arccw_fas2_headbob_intensity", "1", true, true)
|
||||
CreateClientConVar("arccw_fas2_bolting", "1", true, true)
|
||||
|
||||
NumberToTexture = {[1] = "models/weapons/fas2/hands/hand",
|
||||
[2] = "models/weapons/fas2/hands/hand_tan",
|
||||
[3] = "models/weapons/fas2/hands/hand_black",
|
||||
[4] = "models/weapons/fas2/hands/hand_camo"}
|
||||
|
||||
NumberToGlove = {[1] = "models/weapons/fas2/hands/nomex",
|
||||
[2] = "models/weapons/fas2/hands/black",
|
||||
[3] = "models/weapons/fas2/hands/desertkhaki",
|
||||
[4] = "models/weapons/fas2/hands/multicam",
|
||||
[5] = "models/weapons/fas2/hands/green"}
|
||||
|
||||
NumberToSleeve = {[1] = "models/weapons/fas2/hands/sleeve",
|
||||
[2] = "models/weapons/fas2/hands/sleeve2",
|
||||
[3] = "models/weapons/fas2/hands/sleeve3",
|
||||
[4] = "models/weapons/fas2/hands/sleeve4"}
|
||||
|
||||
if CLIENT then
|
||||
-- local function ARCCW_FAS2_InitPostEntity()
|
||||
-- ply = LocalPlayer()
|
||||
-- ply.ARCCW_FAS_FamiliarWeapons = {}
|
||||
|
||||
-- for k, v in pairs(weapons.GetList()) do
|
||||
-- if v.ViewModel then
|
||||
-- util.PrecacheModel(v.ViewModel)
|
||||
-- end
|
||||
-- end
|
||||
-- end
|
||||
|
||||
-- hook.Add("InitPostEntity", "ARCCW_FAS2_InitPostEntity", ARCCW_FAS2_InitPostEntity)
|
||||
|
||||
local cvar
|
||||
local ArcCW_HandMat = Material("models/weapons/fas2/hands/hand")
|
||||
local ArcCW_HandMat2 = Material("models/weapons/fas2/hands/hand")
|
||||
local ArcCW_GloveMat, ArcCW_GloveMat2 = Material("models/weapons/fas2/hands/nomex"), Material("models/weapons/fas2/hands/nomex")
|
||||
local ArcCW_SleeveMat, ArcCW_SleeveMat2 = Material("models/weapons/fas2/hands/sleeve"), Material("models/weapons/fas2/hands/sleeve")
|
||||
local vm
|
||||
|
||||
local function ArcCW_FAS2_ApplyRigNow(ply, com, args)
|
||||
-- cvar = GetConVarNumber("arccw_fas2_handrig")
|
||||
|
||||
-- LocalPlayer():GetViewModel():SetBodygroup(0, cvar)
|
||||
|
||||
-- for k, v in pairs(LocalPlayer():GetWeapons()) do
|
||||
-- print(v.VMElements)
|
||||
-- if v.IsARCCWFAS2Weapon and IsValid(v.VMElements) then
|
||||
-- v.VMElements:SetBodygroup(1, cvar)
|
||||
-- end
|
||||
-- end
|
||||
|
||||
local t = NumberToTexture[GetConVarNumber("arccw_fas2_handskin")]
|
||||
|
||||
ArcCW_HandMat:SetTexture("$basetexture", t and t or "models/weapons/fas2/hands/hand")
|
||||
ArcCW_HandMat2:SetTexture("$basetexture", t and t or "models/weapons/fas2/hands/hand")
|
||||
|
||||
local t = NumberToSleeve[GetConVarNumber("arccw_fas2_sleeveskin")]
|
||||
|
||||
ArcCW_SleeveMat:SetTexture("$basetexture", t and t or "models/weapons/fas2/hands/sleeve")
|
||||
ArcCW_SleeveMat2:SetTexture("$basetexture", t and t or "models/weapons/fas2/hands/sleeve")
|
||||
|
||||
local t = NumberToGlove[GetConVarNumber("arccw_fas2_gloveskin")]
|
||||
|
||||
ArcCW_GloveMat:SetTexture("$basetexture", t and t or "models/weapons/fas2/hands/nomex")
|
||||
ArcCW_GloveMat2:SetTexture("$basetexture", t and t or "models/weapons/fas2/hands/nomex")
|
||||
end
|
||||
|
||||
concommand.Add("arccw_fas2_handrig_applynow", ArcCW_FAS2_ApplyRigNow)
|
||||
end
|
||||
|
||||
-- if self:GetOwner():IsPlayer() then
|
||||
-- vm = self:GetOwner():GetViewModel()
|
||||
-- end
|
||||
|
||||
-- if vm and vm:IsValid() then
|
||||
-- ArcCW.SetBodyGroups(1, cvar)
|
||||
-- -- vm:SetMaterial(vmm)
|
||||
-- -- vm:SetColor(vmc)
|
||||
-- -- vm:SetSkin(vms)
|
||||
|
||||
-- vmp["BaseClass"] = nil
|
||||
|
||||
-- for i, k in pairs(vmp) do
|
||||
-- vm:SetPoseParameter(i, k)
|
||||
-- end
|
||||
-- end
|
||||
144
garrysmod/addons/tfa_antitank/lua/autorun/sh_firearms2_misc.lua
Normal file
144
garrysmod/addons/tfa_antitank/lua/autorun/sh_firearms2_misc.lua
Normal file
@@ -0,0 +1,144 @@
|
||||
game.AddParticles("particles/muzzleflashes.pcf")
|
||||
game.AddParticles("particles/muzzleflashes_test.pcf")
|
||||
game.AddParticles("particles/muzzleflashes_test_b.pcf")
|
||||
game.AddParticles("particles/new_muzzleflashes.pcf")
|
||||
game.AddParticles("particles/new_muzzleflashes_b.pcf")
|
||||
game.AddParticles("particles/flashbang.pcf")
|
||||
game.AddParticles("particles/rocket_fx.pcf")
|
||||
game.AddParticles("particles/fas_explosions.pcf")
|
||||
game.AddParticles("particles/ammo.pcf")
|
||||
game.AddParticles("particles/mortar_fx.pcf")
|
||||
game.AddParticles("particles/fire_01.pcf")
|
||||
game.AddParticles("particles/env_effects.pcf")
|
||||
game.AddParticles("particles/burning_fx.pcf")
|
||||
|
||||
--muzzleflashes
|
||||
PrecacheParticleSystem("muzzleflash_1") -- SKS, RPK
|
||||
PrecacheParticleSystem("muzzleflash_3") -- RK95, UMP45, (SG552)
|
||||
PrecacheParticleSystem("muzzleflash_4") -- G36K, (G36C)
|
||||
PrecacheParticleSystem("muzzleflash_5") -- (M60E3), ASH12
|
||||
PrecacheParticleSystem("muzzleflash_6") -- M4A1, M16
|
||||
PrecacheParticleSystem("muzzleflash_ak47") -- AK47
|
||||
PrecacheParticleSystem("muzzleflash_ak74") -- AK74
|
||||
PrecacheParticleSystem("muzzleflash_FAMAS") -- FAMAS F1, SG550
|
||||
PrecacheParticleSystem("muzzleflash_g3") -- G3A3
|
||||
PrecacheParticleSystem("muzzleflash_m14") -- M14, L85, (M21)
|
||||
PrecacheParticleSystem("muzzleflash_M3") -- M3S90, MP153
|
||||
PrecacheParticleSystem("muzzleflash_m79") -- (M79)
|
||||
PrecacheParticleSystem("muzzleflash_M82") -- (M82)
|
||||
PrecacheParticleSystem("muzzleflash_MINIMI") -- (MINIMI)
|
||||
PrecacheParticleSystem("muzzleflash_mp5") -- MP5A5
|
||||
PrecacheParticleSystem("muzzleflash_none") -- Undefined --
|
||||
PrecacheParticleSystem("muzzleflash_none_red") -- Undefined --
|
||||
PrecacheParticleSystem("muzzleflash_none_smoke") -- Undefined --
|
||||
PrecacheParticleSystem("muzzleflash_OTS") -- P226, (OTS)
|
||||
PrecacheParticleSystem("muzzleflash_pistol") -- Glock, M1911, (Beretta F92)
|
||||
PrecacheParticleSystem("muzzleflash_pistol_cleric") -- Vector
|
||||
PrecacheParticleSystem("muzzleflash_pistol_deagle") -- Deagle, M40A3
|
||||
PrecacheParticleSystem("muzzleflash_pistol_red") -- PMM
|
||||
PrecacheParticleSystem("muzzleflash_shotgun") -- Remington 870, SAIGA12K
|
||||
PrecacheParticleSystem("muzzleflash_slug") -- KS23
|
||||
PrecacheParticleSystem("muzzleflash_smg") -- L2A3, UZI, (MK7A4), (MAC11)
|
||||
PrecacheParticleSystem("muzzleflash_smg_bizon") -- Bizon
|
||||
PrecacheParticleSystem("muzzleflash_suppressed") -- All Rifles
|
||||
PrecacheParticleSystem("party_spark") -- Undefined --
|
||||
PrecacheParticleSystem("port_smoke_heavy") -- Undefined --
|
||||
PrecacheParticleSystem("muzzle_rockets") -- RPG26
|
||||
PrecacheParticleSystem("muzzleflash_1bb") -- Undefined --
|
||||
PrecacheParticleSystem("muzzleflash_3bb") -- AK104
|
||||
PrecacheParticleSystem("muzzleflash_4bb") -- FN P90
|
||||
PrecacheParticleSystem("muzzleflash_6b") -- FN FAL
|
||||
PrecacheParticleSystem("muzzleflash_m24") -- M24
|
||||
PrecacheParticleSystem("muzzleflash_pistol_rbull") -- Raging bull
|
||||
PrecacheParticleSystem("muzzleflash_SR25") -- SR25, M110
|
||||
PrecacheParticleSystem("muzzleflash_svd") -- SVD, Kar98K
|
||||
PrecacheParticleSystem("muzzleflash_vollmer") -- MC51B Vollmer
|
||||
|
||||
PrecacheParticleSystem("explosion_claymore") -- medium
|
||||
PrecacheParticleSystem("explosion_HE_claymore") -- big
|
||||
PrecacheParticleSystem("explosion_grenade") -- medium
|
||||
PrecacheParticleSystem("explosion_he_grenade") -- big
|
||||
PrecacheParticleSystem("explosion_m79") -- medium
|
||||
PrecacheParticleSystem("explosion_HE_m79") -- big
|
||||
PrecacheParticleSystem("explosion_m79_body") -- playerhit
|
||||
-- PrecacheParticleSystem("party_fireworks") --
|
||||
PrecacheParticleSystem("explosion_water") --
|
||||
|
||||
PrecacheParticleSystem("fire_vehicle") -- helicrush
|
||||
PrecacheParticleSystem("explosion") -- heliflyburn
|
||||
|
||||
PrecacheParticleSystem("explosion_flashbang") -- medium
|
||||
PrecacheParticleSystem("explosion_he_flashbang") -- big
|
||||
PrecacheParticleSystem("HE_smoke_grenade_smoke") -- m18 purple
|
||||
PrecacheParticleSystem("smoke_grenade_smoke") -- m18 green
|
||||
PrecacheParticleSystem("artillery_smoke_blue") -- flare
|
||||
PrecacheParticleSystem("artillery_smoke_red") -- flare
|
||||
PrecacheParticleSystem("m79_trail") --
|
||||
|
||||
|
||||
function AddAmmoType(name, text)
|
||||
game.AddAmmoType({name = name})
|
||||
|
||||
if CLIENT then
|
||||
language.Add(name .. "_ammo", text)
|
||||
end
|
||||
end
|
||||
|
||||
--PISTOL
|
||||
AddAmmoType("9x18mm", "9x18MM")
|
||||
AddAmmoType("9x19mm", "9x19MM")
|
||||
AddAmmoType(".45acp", ".45 ACP")
|
||||
AddAmmoType(".357magnum", ".357 Magnum")
|
||||
AddAmmoType(".454casull", ".454 Casull")
|
||||
AddAmmoType(".50ae", ".50AE")
|
||||
|
||||
AddAmmoType("9x18mmap", "9x18MM AP")
|
||||
AddAmmoType("9x19mmap", "9x19MM AP")
|
||||
AddAmmoType(".45acphs", ".45 ACP HS")
|
||||
AddAmmoType(".357magnumap", ".357 Magnum AP")
|
||||
AddAmmoType(".50aeap", ".50AE AP")
|
||||
AddAmmoType(".454casullap", ".454 Casull AP")
|
||||
|
||||
|
||||
|
||||
AddAmmoType("9x39mm", "9x39MM")
|
||||
AddAmmoType("7.62x39mm", "7.62x39MM")
|
||||
AddAmmoType("5.56x45mm", "5.56x45MM")
|
||||
AddAmmoType("5.45x39mm", "5.45x39MM")
|
||||
AddAmmoType("12.7x55mm", "12.7x55MM")
|
||||
AddAmmoType("5.7x28mm", "5.7x28MM")
|
||||
AddAmmoType(".50bmg", ".50 BMG")
|
||||
AddAmmoType("7.62x54mm", "7.62x54MM")
|
||||
AddAmmoType("7.62x51mm", "7.62x51MM")
|
||||
AddAmmoType(".338lapua", ".338 Lapua")
|
||||
AddAmmoType("12gauge", "12 Gauge")
|
||||
AddAmmoType("12gauge_50bmg", "12 Gauge .50BMG Slug")
|
||||
AddAmmoType("23x75mm", "23x75MM")
|
||||
AddAmmoType("23x75mmap", "23x75MM S-25")
|
||||
AddAmmoType("23x75mmzvezda", "23x75MM Zvezda")
|
||||
|
||||
--ADDITIONAL
|
||||
AddAmmoType("9x39mmap", "9x39MM AP")
|
||||
AddAmmoType("9x39mmsp", "9x39MM SP")
|
||||
AddAmmoType("7.62x39mmap", "7.62x39MM AP")
|
||||
AddAmmoType("5.56x45mmap", "5.56x45MM AP")
|
||||
AddAmmoType("5.45x39mmap", "5.45x39MM AP")
|
||||
AddAmmoType("12.7x55mmap", "12.7x55MM AP")
|
||||
AddAmmoType("5.7x28mmap", "5.7x28MM AP")
|
||||
AddAmmoType("7.62x54mmap", "7.62x54MM AP")
|
||||
AddAmmoType("7.62x54mmsp", "7.62x54MM SP")
|
||||
AddAmmoType("7.62x51mmap", "7.62x51MM AP")
|
||||
AddAmmoType("12gaugeincendiary", "12 Gauge Incendiary")
|
||||
AddAmmoType("12gaugeslug", "12 Gauge Slug")
|
||||
|
||||
-- AddAmmoType("9x18mmtr", "9x18MM Tracer")
|
||||
|
||||
AddAmmoType("40mmhe", "40MM HE")
|
||||
AddAmmoType("vog25", "VOG-25")
|
||||
AddAmmoType("vog30", "VOG-30")
|
||||
AddAmmoType("40mmsmoke", "40MM Smoke")
|
||||
AddAmmoType("60mmp1ap", "M60P1 AP")
|
||||
AddAmmoType("m67_nades", "M67 Grenades")
|
||||
AddAmmoType("m18_nades", "M18 Grenades")
|
||||
AddAmmoType("m84_nades", "M84 Grenades")
|
||||
AddAmmoType("rpg26_rocket", "RPG 26 Rocket")
|
||||
@@ -0,0 +1,6 @@
|
||||
local hudcolor = Color(255, 255, 255, 255)
|
||||
|
||||
if killicon and killicon.Add then
|
||||
killicon.Add("tfa_panzerfaust3_rocket", "vgui/hud/tfa_ins2_panzerfaust3", hudcolor)
|
||||
killicon.Add("tfa_ins2_panzerfaust3", "vgui/hud/tfa_ins2_panzerfaust3", hudcolor)
|
||||
end
|
||||
Reference in New Issue
Block a user