Welcome, Guest. Please login or register.
Did you miss your activation email?
November 22, 2024, 06:36:50 PM
Home Help Login Register
News: Zombie Master 2 discussion

Zombie Master  |  Other  |  Trouble in Terrorist Town  |  Topic: DMGINFO Help
Pages: [1]
Author Topic: DMGINFO Help  (Read 3772 times)
llamalords
Poster

Posts: 23


« on: May 16, 2010, 03:12:54 AM »

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.
« Last Edit: May 16, 2010, 03:20:32 AM by llamalords »
Charles445
Build Tester
*
Posts: 2338


I LOVE THIS AVATAR


« Reply #1 on: May 16, 2010, 05:53:11 AM »

If you PM me, I can go ahead and send you the jihad bomb I rigged.

del>Ok, so Bad King, you are just going to wait for Garry to fix?
What an idiotic thing to ask. Dammit weed.

Bookcases, Bookcases Everywhere
llamalords
Poster

Posts: 23


« Reply #2 on: May 16, 2010, 06:18:33 AM »

Alright
Pages: [1]
Zombie Master  |  Other  |  Trouble in Terrorist Town  |  Topic: DMGINFO Help « previous next »
Jump to:  


Login with username, password and session length

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines
Page created in 0.009 seconds with 17 queries.