Skip to content

Commit

Permalink
Merge pull request #193 from Cre8or/master
Browse files Browse the repository at this point in the history
FIX: Make acf_bulleteffect use SetEntity() instead of SetMagnitude()
  • Loading branch information
Bubbus committed Nov 2, 2015
2 parents c2a9ac4 + 5b51177 commit 3984b72
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lua/acf/server/sv_acfballistics.lua
Expand Up @@ -238,7 +238,7 @@ function ACF_BulletClient( Index, Bullet, Type, Hit, HitPos )
Effect:SetAttachment( Index ) --Bulet Index
Effect:SetStart( Bullet.Flight/10 ) --Bullet Direction
Effect:SetOrigin( Bullet.Pos )
Effect:SetMagnitude( Bullet["Crate"] ) --Encodes the crate the ammo originates from so clientside knows the crate from wich to pull ammo data
Effect:SetEntity( Entity(Bullet["Crate"]) )
Effect:SetScale( 0 )
util.Effect( "ACF_BulletEffect", Effect, true, true )

Expand Down
2 changes: 1 addition & 1 deletion lua/effects/acf_bulleteffect/init.lua
Expand Up @@ -43,7 +43,7 @@ function EFFECT:Init( data )
else
--print("Creating Bullet Effect")
local BulletData = {}
BulletData.Crate = Entity(math.Round(data:GetMagnitude()))
BulletData.Crate = data:GetEntity()
--TODO: Check if it is actually a crate
if not IsValid(BulletData.Crate) then
self:Remove()
Expand Down

0 comments on commit 3984b72

Please sign in to comment.