Haha whoops. Forgot to add. although this error was repeated for every file when i ran compiler. ill try to run it again without this file and see if it repeats.
UPDATE: it still repeats the same code with a completely new compile environment without my file. although if anything is wrong on my file you could still let me know ;)
Code:
#include <sourcemod>
#include "W3SIncs/War3Source_Interface"
//test commit
public Plugin:myinfo =
{
name = "War3Source - Race - Brute Bruce",
author = "JC",
description = "Bruce is a very Brute man"
};
new thisRaceID;
new bool:RaceDisabled=true;
public OnWar3RaceEnabled(newrace)
{
if(newrace==thisRaceID)
{
RaceDisabled=false;
}
}
public OnWar3RaceDisabled(oldrace)
{
if(oldrace==thisRaceID)
{
RaceDisabled=true;
}
}
new Float:UnholySpeed[5] = {1.25, 1.45, 1.75, 1.95, 2.10};
new Float:BashChance[5]={0.0,0.09,0.15,0.25,0.35};
new DevotionHealth[5]={0,25,50,75,100};
new SKILL_HEALTH, SKILL_BASH, SKILL_SPEED;
public OnPluginStart()
{
}
{
thisRaceID = War3_CreateNewRaceT("Brute");
SKILL_HEALTH=War3_AddRaceSkillT(thisRaceID,"BruteStrength",false,4,"25/50/75/100");
SKILL_BASH=War3_AddRaceSkillT(thisRaceID,"BruceSmash",false,4,"9/15/25/35%","0.2");
SKILL_SPEED = War3_AddRaceSkillT(thisRaceID, "SwiftBruteness", false, 4, "20%");
War3_CreateRaceEnd(thisRaceID);
War3_AddSkillBuff(thisRaceID, SKILL_HEALTH, iAdditionalMaxHealth, DevotionHealth);
War3_AddSkillBuff(thisRaceID, SKILL_SPEED, fMaxSpeed, UnholySpeed);
War3_AddSkillBuff(thisRaceID, SKILL_BASH, fBashChance, BashChance);
}
public OnWar3EventSpawn(client)
{
if(RaceDisabled)
{
return;
}
ActivateSkills(client); //DO NOT OPTIMIZE, ActivateSkills checks for skill level
}
public ActivateSkills(client)
{
if(RaceDisabled)
{
return;
}
new skill_devo=War3_GetSkillLevel(client,thisRaceID,SKILL_HEALTH);
if(skill_devo)
{
// Devotion Aura
new Float:vec[3];
GetClientAbsOrigin(client,vec);
vec[2]+=20.0;
new ringColor[4]={0,0,0,0};
new team=GetClientTeam(client);
if(team==2)
{
ringColor={255,0,0,255};
}
else if(team==3)
{
ringColor={0,0,255,255};
}
TE_SetupBeamRingPoint(vec,40.0,10.0,BeamSprite,HaloSprite,0,15,1.0,15.0,0.0,ringColor,10,0);
TE_SendToAll();
}
}
//public OnGenericSkillLevelChanged(client,generic_skill_id,newlevel,Handle:generic_Skill_Options,customer_race,customer_skill)
//{
//new String:name[32];
//GetClientName(client,name,sizeof(name));
//DP("client %d %s genericskill %d level %d, cus %d %d",client,name,generic_skill_id,newlevel,customer_race,customer_skill);
//}
new TPFailCDResetToRace[MAXPLAYERSCUSTOM];
new TPFailCDResetToSkill[MAXPLAYERSCUSTOM];
public OnUltimateCommand(client,race,bool:pressed)
{
//DP("ult pressed");
if( pressed && ValidPlayer(client,true) && !Silenced(client))
{
new Handle:genericSkillOptions;
new Float:distances[5];
new customerrace,customerskill;
new level=W3_GenericSkillLevel(client,GENERIC_SKILL_TELEPORT,genericSkillOptions,customerrace,customerskill);
//DP("level CUSrace CUSskill %d %d %d",level,customerrace,customerskill);
if(level)
{
GetArrayArray(genericSkillOptions, 0,distances);
new Float:cooldown=GetConVarFloat(GetArrayCell(genericSkillOptions,1));
//DP("cool %f",cooldown);
if(War3_SkillNotInCooldown(client,customerrace,customerskill,true)) //not in the 0.2 second delay when we check stuck via moving
{
TPFailCDResetToRace[client]=customerrace;
TPFailCDResetToSkill[client]=customerskill;
new bool:success = Teleport(client,distances[level]);
if(success)
{
//new Float:cooldown=GetConVarFloat(ultCooldownCvar);
War3_CooldownMGR(client,cooldown,customerrace,customerskill,_,_);
}
}
}
else if(War3_GetRace(client)==customerrace)
{
W3MsgUltNotLeveled(client);
}
}
}
public OnSkillLevelChanged(client,race,skill,newskilllevel)
{
if(RaceDisabled)
{
return;
}
if(race==thisRaceID)
{
ActivateSkills(client); //on a race change, this is called 4 times, but that performance hit is insignificant
}
}