Debriefing > Questions, Help, & How To's
Disable body armor?
VC:
I've needed a sound callback since I started L&LD. KM should be all over that, now that the release of 3.1 is completed.
drukqaddik:
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)
Mark [lodle]:
You looking for this: http://wiki.goldeneyesource.net/index.php/Lua_PlayerArmor or http://wiki.goldeneyesource.net/index.php/Lua_PlayerSetArmor
killermonkey:
Remember the sequencing.
PrePlayerSpawn(..) is called BEFORE the player is put into the world with health and armor and PostPlayerSpawn(...) is called afterwards. If you spawn them with modified health/armor you must do it in PostPlayerSpawn.
Same theory goes with PreRoundBegin and PostRoundBegin in terms of gameplay changes. Where PostRoundBegin is called AFTER the players are respawned and the world is reset.
drukqaddik:
ok. well, ill work on it later. anyone have dm in python layed out so i can edit some stuff for b4 to get it ready for the switch?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version