#PLAYERRECCE

* Smoke own position on ground, not mid-air
This commit is contained in:
Applevangelist 2022-12-06 18:05:41 +01:00
parent 386171bcab
commit 525666be7c

View File

@ -104,7 +104,7 @@ PLAYERRECCE = {
ClassName = "PLAYERRECCE",
verbose = true,
lid = nil,
version = "0.0.15",
version = "0.0.16",
ViewZone = {},
ViewZoneVisual = {},
ViewZoneLaser = {},
@ -958,9 +958,11 @@ function PLAYERRECCE:_SmokeTargets(client,group,playername)
end
if self.SmokeOwn[playername] then
local cc = client:GetCoordinate()
local cc = client:GetVec2()
-- don't smoke mid-air
local lc = COORDINATE:NewFromVec2(cc,1)
local color = self.SmokeColor.ownsmoke
cc:Smoke(color)
lc:Smoke(color)
end
return self