Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions lua/acf/server/sv_acfbase.lua
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,16 @@ function ACF_CalcDamage( Entity , Energy , FrAera , Angle )
local HitRes = {}



if istable(Entity) == false then -- ACF feeds us a table for some reason when we shoot living things.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a bug in itself probably. Would be a good idea to fix it instead of patching it here.

if (!Entity:IsNPC() and !Entity:IsPlayer()) and (!Entity:IsNextBot()) then -- Don't do this to living things!


if Entity:GetCollisionBounds() != Entity:GetModelBounds() then -- Did they do the makespherical cheat?
armor = 1
losArmor = 1
end
end
end


local dmul = 1--This actually controls overall prop damage from rounds. It should be in globals but i'm suck's at Coding's -karb

--BNK Stuff
Expand Down
2 changes: 1 addition & 1 deletion lua/acf/shared/guns/smoothbore.lua
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ ACF_defineGun("120mmSB", {
} )

ACF_defineGun("140mmSB", {
name = "140mm Smoothbore Cannonn",
name = "140mm Smoothbore Cannon",
desc = "The 140mm fires a massive shell with enormous penetrative capability, but has a glacial reload speed and a very hefty weight.",
model = "models/tankgun_old/tankgun_140mm.mdl",
gunclass = "SB",
Expand Down