ok. im gonna post here because it has the info i need in it already. i have an idea for a gamemode that i want to code in lua. havin a little trouble.
stole a line from VC's code for l&ld
constBaronRegenerationAmount = GE_MAX_HEALTH * 0.25;
not sure how to get it to work on a kill tho. i want it to work when
function PlayerKilled( victim, killer )
if ( victim == killer ) then
AddToPlayerScore( killer, -1 );
elseif ( IsTeamplay() and GetPlayerTeam(killer) == GetPlayerTeam(victim) ) then
AddToPlayerScore( killer, -1 );
else
-- In DM we add TEAM and PLAYER scores on a kill
-- We don't care if teamplay is enabled, if its not this will be ignored
AddToTeamScore( GetPlayerTeam(killer), 1 );
AddToPlayerScore( killer, 1 );
end
end
killer gets GE_MAX_HEALTH * 0.10 added and then when health is full to add armor. but i didnt see any lua "checks" to see if char has anything. maybe i just didnt look hard enough and i know this mode will be slaughter but i think it will be fun.
also cant get that spawn with armor to work on dmnoarmor( Dr. No Armor)