General > Developers Corner
Help with modding Murder gamemode..
Cobalt:
Check the user's team with ent:Team() to do this.
MrPresident:
Just to expand on Cobolt's suggestion:
replace
if victim:IsBystander() and attacker:IsBystander() then
with
if victim:Team() == attacker:Team() then
Decicus:
--- Quote from: Cobalt on February 03, 2014, 09:15:35 AM ---Check the user's team with ent:Team() to do this.
--- End quote ---
Didn't even think about this, to be honest.
VonTreece:
Alright, i'll try the following code and post back with details!
--- Code: ---function IgniteBystander(victim,inflictor,attacker)
if victim:Team() == attacker:Team() then
attacker:Ignite(30)
end
end
hook.Add("PlayerDeath", "BystanderPunishment", IgniteBystander)
--- End code ---
Thank you all for your replies!
UPDATE:
Didn't work. (kind of)
It DOES ignite players if they kill someone..
But every time the murderer kills someone, he ignites on fire as well.. /:
Any workaround?
VonTreece:
Bump~
Really need to figure this out. Getting a ton of complaints of RDM and I can't be on the server to moderate 24/7. /:
Anyone have any ideas?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version