Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into sound-lib
Browse files Browse the repository at this point in the history
  • Loading branch information
thecraftianman committed Jan 19, 2024
2 parents 8cd993f + ac16764 commit f123eeb
Show file tree
Hide file tree
Showing 33 changed files with 47 additions and 46 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Armored Combat Framework 3: Missiles

[![Linter Status](https://img.shields.io/github/actions/workflow/status/TwistedTail/ACF-3-Missiles/GLuaFixer.yml?label=Linter%20Status&style=flat-square)](https://github.com/TwistedTail/ACF-3-Missiles/actions?query=workflow%3AGLuaFixer)
[![Linter Status](https://img.shields.io/github/actions/workflow/status/TwistedTail/ACF-3-Missiles/GLuaLint.yml?label=Linter%20Status&style=flat-square)](https://github.com/TwistedTail/ACF-3-Missiles/actions?query=workflow%3AGLuaLint)
[![Repository Size](https://img.shields.io/github/repo-size/TwistedTail/ACF-3-Missiles?label=Repository%20Size&style=flat-square)](https://github.com/TwistedTail/ACF-3-Missiles)
[![Commit Activity](https://img.shields.io/github/commit-activity/m/TwistedTail/ACF-3-Missiles?label=Commit%20Activity&style=flat-square)](https://github.com/TwistedTail/ACF-3-Missiles/commits/master)

Expand Down
2 changes: 1 addition & 1 deletion lua/acf/core/acfm_globals.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ PrecacheParticleSystem("ACFM_Flare")

do -- Update checker
hook.Add("ACF_OnLoadAddon", "ACF Missiles Checker", function()
ACF.AddRepository("TwistedTail", "ACF-3-Missiles", "lua/acf/core/acfm_globals.lua")
ACF.AddRepository("ACF-Team", "ACF-3-Missiles", "lua/acf/core/acfm_globals.lua")

hook.Remove("ACF_OnLoadAddon", "ACF Missiles Checker")
end)
Expand Down
50 changes: 25 additions & 25 deletions lua/acf/entities/missiles/ffar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ Missiles.RegisterItem("40mmFFAR", "FFAR", {
FuelConsumption = 0.015, -- in g/s/f
StarterPercent = 0.1,
MaxAgilitySpeed = 1, -- in m/s
DragCoef = 0.0005,
FinMul = 0.01,
DragCoef = 0.004,
FinMul = 0,
GLimit = 1,
TailFinMul = 0.004,
TailFinMul = 0.05,
PenMul = 0.91,
ActualLength = 60,
ActualWidth = 4
Expand Down Expand Up @@ -73,14 +73,14 @@ Missiles.RegisterItem("57mmFFAR", "FFAR", {
Armor = 2,
ProjLength = 35,
PropLength = 50,
Thrust = 210000, -- in kg*in/s^2
FuelConsumption = 0.015,
Thrust = 113000, -- in kg*in/s^2
FuelConsumption = 0.0095, -- S5 rocket motors burn for 1.1 seconds not 0.333
StarterPercent = 0.2,
MaxAgilitySpeed = 1,
DragCoef = 0.0007,
FinMul = 0.01,
DragCoef = 0.007,
FinMul = 0.003,
GLimit = 1,
TailFinMul = 0.003,
TailFinMul = 0.005,
PenMul = 1.3,
ActualLength = 85,
ActualWidth = 5.7,
Expand Down Expand Up @@ -114,14 +114,14 @@ Missiles.RegisterItem("70mmFFAR", "FFAR", {
Armor = 2,
ProjLength = 66,
PropLength = 40,
Thrust = 850000, -- in kg*in/s^2
Thrust = 128500, -- in kg*in/s^2 -- Why was old thrust 1565m/s
FuelConsumption = 0.005, -- in g/s/f
StarterPercent = 0.1,
MaxAgilitySpeed = 1, -- in m/s
DragCoef = 0.002,
FinMul = 0.01,
DragCoef = 0.004,
FinMul = 0,
GLimit = 1,
TailFinMul = 0.005,
TailFinMul = 0.04,
PenMul = 0.85,
ActualLength = 106,
ActualWidth = 7
Expand Down Expand Up @@ -155,14 +155,14 @@ Missiles.RegisterItem("80mmFFAR", "FFAR", {
Armor = 2,
ProjLength = 76,
PropLength = 51,
Thrust = 700000, -- in kg*in/s^2
FuelConsumption = 0.006, -- in g/s/f
StarterPercent = 0.1,
Thrust = 290000, -- in kg*in/s^2
FuelConsumption = 0.0044, -- in g/s/f -- 1.55 not 0.53
StarterPercent = 0.191,
MaxAgilitySpeed = 1, -- in m/s
DragCoef = 0.0023,
FinMul = 0.01,
DragCoef = 0.023,
FinMul = 0.003,
GLimit = 1,
TailFinMul = 0.005,
TailFinMul = 0.08,
PenMul = 0.85,
ActualLength = 127,
ActualWidth = 8
Expand All @@ -181,7 +181,7 @@ Missiles.RegisterItem("Zuni ASR", "FFAR", {
Mass = 45,
Length = 200,
Year = 1957,
ReloadTime = 10,
ReloadTime = 5,
ExhaustPos = Vector(-45),
Racks = { ["127mm4xPOD"] = true },
Guidance = { Dumb = true },
Expand All @@ -196,14 +196,14 @@ Missiles.RegisterItem("Zuni ASR", "FFAR", {
Armor = 2,
ProjLength = 90,
PropLength = 110,
Thrust = 1900000, -- in kg*in/s^2
FuelConsumption = 0.010, -- in g/s/f
StarterPercent = 0.1,
Thrust = 663000, -- in kg*in/s^2
FuelConsumption = 0.0098, -- in g/s/f
StarterPercent = 0.235,
MaxAgilitySpeed = 1, -- in m/s
DragCoef = 0.004,
FinMul = 0.005,
DragCoef = 0.002,
FinMul = 0.002,
GLimit = 1,
TailFinMul = 0.004,
TailFinMul = 0.08,
PenMul = 1,
ActualLength = 200,
ActualWidth = 12.7
Expand Down
24 changes: 12 additions & 12 deletions lua/acf/entities/missiles/uar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ Missiles.RegisterItem("RS82 ASR", "UAR", {
StarterPercent = 0.15,
MaxAgilitySpeed = 1, -- in m/s
DragCoef = 0.001,
FinMul = 0.01,
FinMul = 0,
GLimit = 1,
TailFinMul = 0.05,
TailFinMul = 0.4,
PenMul = 0.8,
CanDelayLaunch = true,
ActualLength = 60,
Expand Down Expand Up @@ -93,10 +93,10 @@ Missiles.RegisterItem("HVAR ASR", "UAR", {
FuelConsumption = 0.016, -- in g/s/f
StarterPercent = 0.15,
MaxAgilitySpeed = 1, -- in m/s
DragCoef = 0.005,
FinMul = 0.01,
DragCoef = 0.019,
FinMul = 0,
GLimit = 1,
TailFinMul = 0.075,
TailFinMul = 0.844,
PenMul = 1.148,
FillerMul = 1,
LinerMassMul = 1,
Expand Down Expand Up @@ -125,7 +125,7 @@ Missiles.RegisterItem("SPG-9 ASR", "UAR", {
Navigation = "Chase",
Fuzes = { Contact = true },
Agility = 1,
ArmDelay = 0.1,
ArmDelay = 0, -- :)
Round = {
Model = "models/missiles/rs82.mdl",
RackModel = "models/missiles/rs82.mdl",
Expand All @@ -135,12 +135,12 @@ Missiles.RegisterItem("SPG-9 ASR", "UAR", {
PropLength = 67.8,
Thrust = 180000, -- in kg*in/s^2
FuelConsumption = 0.03, -- in g/s/f
StarterPercent = 0.1,
StarterPercent = 0.4,
MaxAgilitySpeed = 1, -- in m/s
DragCoef = 0.002,
FinMul = 0.01,
FinMul = 0,
GLimit = 1,
TailFinMul = 0.023,
TailFinMul = 0.06,
PenMul = 2.273,
FillerMul = 1.06,
LinerMassMul = 2.8,
Expand Down Expand Up @@ -182,7 +182,7 @@ Missiles.RegisterItem("S-24 ASR", "UAR", {
StarterPercent = 0.15,
MaxAgilitySpeed = 1, -- in m/s
DragCoef = 0.01,
FinMul = 0.1,
FinMul = 0,
GLimit = 1,
TailFinMul = 0.3,
PenMul = 1.05,
Expand Down Expand Up @@ -210,7 +210,7 @@ Missiles.RegisterItem("RW61 ASR", "UAR", {
Navigation = "Chase",
Fuzes = { Contact = true, Optical = true },
Agility = 1,
ArmDelay = 0.5,
ArmDelay = 0.2,
Round = {
Model = "models/missiles/RW61M.mdl",
RackModel = "models/missiles/RW61M.mdl",
Expand All @@ -225,7 +225,7 @@ Missiles.RegisterItem("RW61 ASR", "UAR", {
DragCoef = 0.02,
FinMul = 0,
GLimit = 1,
TailFinMul = 10,
TailFinMul = 38.25,
PenMul = 1.2,
ActualLength = 150,
ActualWidth = 38
Expand Down
1 change: 1 addition & 0 deletions lua/acf/entities/sensors/receivers/receivers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ do -- Laser Receiver
for _,ply in pairs(player.GetAll()) do
local Wep = ply:GetWeapon("laserpointer")
if not IsValid(Wep) then continue end
if Wep ~= ply:GetActiveWeapon() then continue end

if Wep.Pointing then
local Las = {Dir = ply:EyeAngles():Forward(),Position = ply:EyePos(),Player = ply}
Expand Down
14 changes: 7 additions & 7 deletions lua/entities/acf_radar/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -162,20 +162,20 @@ local function ScanForEntities(Entity)
local Velocity = TargetInfo.Velocity
local Distance = TargetInfo.Distance

local Damage = Entity.Damage
local Spread = ACF.MaxDamageInaccuracy * Damage
local EntDamage = Entity.Damage
local Spread = ACF.MaxDamageInaccuracy * EntDamage

for Ent in pairs(Detected) do
local EntPos = Ent.Position or Ent:GetPos()

if CheckLOS(Origin, EntPos) and (math.Rand(0,1) >= (Damage / 10)) then
local Spread = VectorRand(-Spread, Spread)
if CheckLOS(Origin, EntPos) and (math.Rand(0,1) >= (EntDamage / 10)) then
local EntSpread = VectorRand(-Spread, Spread)
local EntVel = Ent.Velocity or Ent:GetVelocity()
local Owner = GetEntityOwner(Entity.Owner, Ent)
local Index = GetEntityIndex(Ent)

EntPos = EntPos + Spread
EntVel = EntVel + Spread
EntPos = EntPos + EntSpread
EntVel = EntVel + EntSpread
Count = Count + 1

local EntDist = Origin:Distance(EntPos)
Expand All @@ -186,7 +186,7 @@ local function ScanForEntities(Entity)
Position = EntPos,
Velocity = EntVel,
Distance = EntDist,
Spread = Spread,
Spread = EntSpread,
}

IDs[Count] = Index
Expand Down
Binary file modified materials/models/bluemetaknight/Detector_D.vtf
Binary file not shown.
Binary file modified materials/models/bluemetaknight/Detector_EnvMask.vtf
Binary file not shown.
Binary file modified materials/models/bluemetaknight/Detector_N.vtf
Binary file not shown.
Binary file modified materials/models/bombs/fab100.vtf
Binary file not shown.
Binary file modified materials/models/bombs/fab250.vtf
Binary file not shown.
Binary file modified materials/models/bombs/fab50.vtf
Binary file not shown.
Binary file modified materials/models/bombs/fab500.vtf
Binary file not shown.
Binary file modified materials/models/ghosteh/lau10.vtf
Binary file not shown.
Binary file modified materials/models/ghosteh/lau10_norm.vtf
Binary file not shown.
Binary file modified materials/models/ghosteh/zuni.vtf
Binary file not shown.
Binary file modified materials/models/ghosteh/zuni_norm.vtf
Binary file not shown.
Binary file modified materials/models/kali/weapons/kornet/kornet_base_c.vtf
Binary file not shown.
Binary file modified materials/models/kali/weapons/kornet/kornet_base_exp.vtf
Binary file not shown.
Binary file modified materials/models/kali/weapons/kornet/kornet_base_n.vtf
Binary file not shown.
Binary file modified materials/models/missiles/agm114.vtf
Binary file not shown.
Binary file modified materials/models/missiles/bru-42.vtf
Binary file not shown.
Binary file modified materials/models/missiles/fim92.vtf
Binary file not shown.
Binary file modified materials/models/missiles/spg9.vtf
Binary file not shown.
Binary file modified materials/models/missiles/stinger_rack1.vtf
Binary file not shown.
Binary file modified materials/models/missiles/stinger_rack1b.vtf
Binary file not shown.
Binary file modified materials/models/missiles/stinger_rack2.vtf
Binary file not shown.
Binary file modified materials/models/missiles/stinger_rack2b.vtf
Binary file not shown.
Binary file modified materials/models/missiles/stinger_rack3.vtf
Binary file not shown.
Binary file modified materials/models/missiles/stinger_rack4.vtf
Binary file not shown.
Binary file modified materials/models/missiles/texture_rack.vtf
Binary file not shown.
Binary file modified materials/models/missiles/texture_rack2.vtf
Binary file not shown.
Binary file modified materials/models/spg9/spg9.vtf
Binary file not shown.

0 comments on commit f123eeb

Please sign in to comment.