Skip to content
This repository has been archived by the owner on Jan 6, 2021. It is now read-only.

Commit

Permalink
planeSpawnDistance gets converted to float now
Browse files Browse the repository at this point in the history
  • Loading branch information
Vechro committed Jun 20, 2018
1 parent 805b61e commit 1ca674f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cratedrop/cratedrop_client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function CrateDrop(weapon, ammo, planeSpawnDistance, dropCoords)
end

local rHeading = math.random(0, 360) + 0.0
local planeSpawnDistance = (planeSpawnDistance and tonumber(planeSpawnDistance)) or 400.0 -- this defines how far away the plane is spawned
local planeSpawnDistance = (planeSpawnDistance and tonumber(planeSpawnDistance) + 0.0) or 400.0 -- this defines how far away the plane is spawned
local theta = (rHeading / 180.0) * 3.14
local rPlaneSpawn = vector3(dropCoords.x, dropCoords.y, dropCoords.z) - vector3(math.cos(theta) * planeSpawnDistance, math.sin(theta) * planeSpawnDistance, -500.0) -- the plane is spawned at

Expand Down

0 comments on commit 1ca674f

Please sign in to comment.