Alright so I have this:
function ENT:Asplode()
local k, v
// Make an explosion at your position
local ent = ents.Create( "env_explosion" )
ent:SetPos( self:GetPos() )
ent:Spawn()
self:GetOwner()
ent:SetKeyValue( "iMagnitude", "90" )
ent:Fire( "Explode", 0, 0 )
ent:EmitSound( "siege/big_explosion.wav", 300, 300 )
self:DMGINFOFUNC()
self:Remove()
for k, v in pairs( player.GetAll( ) ) do
v:ConCommand( "play siege/big_explosion.wav\n" )
end
end
local dmgowner = self:GetOwner()
function ENT:DMGINFOFUNC()
local dmginfo = DamageInfo()
dmginfo:SetDamage(dmg)
dmginfo:SetAttacker(dmgowner)
dmginfo:SetInflictor(self.Entity)
dmginfo:SetDamageType(DMG_BLAST)
dmginfo:SetDamageForce(center - ent:GetPos())
dmginfo:SetDamagePosition(ent:GetPos())
ent:TakeDamageInfo(dmginfo)
end
I want it to display who was killed in the explosion in the endround/scoreboard. But I don't know how to do this.
I have no idea what I'm doing and could use some help.