#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", ClassName = "PLAYERRECCE",
verbose = true, verbose = true,
lid = nil, lid = nil,
version = "0.0.15", version = "0.0.16",
ViewZone = {}, ViewZone = {},
ViewZoneVisual = {}, ViewZoneVisual = {},
ViewZoneLaser = {}, ViewZoneLaser = {},
@ -958,9 +958,11 @@ function PLAYERRECCE:_SmokeTargets(client,group,playername)
end end
if self.SmokeOwn[playername] then 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 local color = self.SmokeColor.ownsmoke
cc:Smoke(color) lc:Smoke(color)
end end
return self return self