Beispiel #1
0
def load():
    spe.registerPreHook('player_hurt', theround.beforePlayerHurt)
    ultilib.createServerVar("uz_healthadd", additionalHealth, True)
    ultilib.createServerVar("uz_humanhealth", humanHealth, True)
    ultilib.createServerVar("uz_bothealth", botHealth, True)
    ultilib.createServerVar("uz_grenade", grenadeDmgMultiplier, True)
    ultilib.createServerVar("uz_select", selectWeapon, True)    
    theround.setdownloadables()
Beispiel #2
0
def load():
    """ Creates server variables when the script is loaded """
    ultilib.createServerVar("uam_viphealth", VIPHealth, True, "VIP Health")
    ultilib.createServerVar("uam_guardhealth", GuardHealth, True, "Guard Health")
    ultilib.createServerVar("uam_assassinhealth", AssassinHealth, True, "Assassin Health")
    ultilib.createServerVar("uam_assassinteam", AssassinTeam, True, "Assassin Team")
    ultilib.createServerVar("uam_vipteam", VIPTeam, True, "VIP Team")
    es.ServerVar("ultiassassin_version", info.version, "UltiAssassin Version").makepublic()
    es.addons.registerTickListener(ticklistener)