awep = DEATH_WEAPONOF(deathtype);
valid_damage_for_weaponstats = 1;
}
+ else
+ awep = 0;
if(valid_damage_for_weaponstats)
{
else if(teamplay)
colorstr = Team_ColorCode(source.team);
else
+ {
+ colorstr = "";
teamsay = FALSE;
+ }
if(intermission_running)
teamsay = FALSE;
// FLOOD CONTROL
flood = 0;
+ flood_field = floodcontrol_chat;
if(floodcontrol)
{
float flood_spl;
|| ((autocvar_sv_vote_nospectators == 1) && (inWarmupStage || gameover))
|| (autocvar_sv_vote_nospectators == 0));
- float vote_player_count, is_player, notvoters;
- float vote_real_player_count, vote_real_accept_count;
- float vote_real_reject_count, vote_real_abstain_count;
+ float vote_player_count = 0, is_player, notvoters = 0;
+ float vote_real_player_count = 0, vote_real_accept_count = 0;
+ float vote_real_reject_count = 0, vote_real_abstain_count = 0;
float vote_needed_of_voted, final_needed_votes;
float vote_factor_overall, vote_factor_of_voted;
{
entity tmp_player;
float ready_needed_factor, ready_needed_count;
- float t_ready, t_players;
+ float t_ready = 0, t_players = 0;
FOR_EACH_REALPLAYER(tmp_player)
{
|| ((autocvar_sv_vote_nospectators == 1) && inWarmupStage)
|| (autocvar_sv_vote_nospectators == 0));
- float tmp_playercount;
+ float tmp_playercount = 0;
entity tmp_player;
vote_command = VoteCommand_extractcommand(vote_command, 2, argc);
string Obituary_ExtraFragInfo(entity player) // Extra fragmessage information
{
- string health_output;
- string ping_output;
- string handicap_output;
- string output;
+ string health_output = string_null;
+ string ping_output = string_null;
+ string handicap_output = string_null;
+ string output = string_null;
if(autocvar_sv_fraginfo && ((autocvar_sv_fraginfo == 2) || inWarmupStage))
{
{
if (deathtype == DEATH_TEAMCHANGE || deathtype == DEATH_AUTOTEAMCHANGE)
msg = ColoredTeamName(targ.team); // TODO: check if needed?
+ else
+ msg = "";
if(!g_cts) // no "killed your own dumb self" message in CTS
Send_CSQC_KillCenterprint(targ, msg, "", deathtype, MSG_SUICIDE);
if (targ.killcount > 2)
msg = ftos(targ.killcount);
+ else
+ msg = "";
if(teamplay && deathtype == DEATH_MIRRORDAMAGE)
{
if(attacker.team == COLOR_TEAM1)
Send_CSQC_KillCenterprint(attacker, s, "", type, MSG_KILL);
- if (targ.killcount > 2) {
+ if (targ.killcount > 2)
msg = ftos(targ.killcount);
- }
+ else
+ msg = "";
if (attacker.killcount > 2) {
msg = ftos(attacker.killcount);
mapvote_maps[mapvote_count] = strzone(nextMap);
mapvote_maps_suggested[mapvote_count] = isSuggestion;
+ pakfile = string_null;
for(i = 0; i < mapvote_screenshot_dirs_count; ++i)
{
mapfile = strcat(mapvote_screenshot_dirs[i], "/", mapvote_maps[i]);
e.initialize_entity_order = order;
cur = initialize_entity_first;
+ prev = world;
for (;;)
{
if (!cur || cur.initialize_entity_order > order)
org = world.mins;
delta = world.maxs - world.mins;
+ start = org;
+
for (i = 0; i < attempts; ++i)
{
start_x = org_x + random() * delta_x;
if(nb_teams == 2)
otherteam = OtherTeam(ball.team);
+ else
+ otherteam = 0;
if((isclient = ball.pusher.flags & FL_CLIENT))
pname = ball.pusher.netname;
self.dodging_direction_y = tap_direction_y;
// normalize the dodging_direction vector.. (unlike UT99) XD
- length = length + self.dodging_direction_x * self.dodging_direction_x;
+ length = self.dodging_direction_x * self.dodging_direction_x;
length = length + self.dodging_direction_y * self.dodging_direction_y;
length = sqrt(length);
print_to(self, strcat("^2SANDBOX - INFO: ^7Object is owned by \"^7", e.netname, "^7\", created \"^3", e.message, "^7\", last edited \"^3", e.message2, "^7\""));
return TRUE;
case "mesh":
+ s = "";
FOR_EACH_TAG(e)
s = strcat(s, "^7\"^5", gettaginfo_name, "^7\", ");
print_to(self, strcat("^2SANDBOX - INFO: ^7Object mesh is \"^3", e.model, "^7\" at animation frame ^3", ftos(e.frame), " ^7containing the following tags: ", s));
return TRUE;
case "attachments":
// this should show the same info as 'mesh' but for attachments
+ s = "";
entity head;
+ i = 0;
for(head = world; (head = find(head, classname, "object")); )
{
if(head.owner == e)
vector RuneColormod(float r)
{
- vector _color;
+ vector _color = '255 0 255';
+
if(r == RUNE_STRENGTH)
_color = '255 0 0';
if(r == RUNE_DEFENSE)
// count runes my owner holds
rcount = 0;
rune = find(world, classname, "rune");
+ rnum = -1;
while(rune)
{
if(rune.owner == self.owner)
if(!arunes && !trunes)
return f - 1 + autocvar_g_runematch_frags_norune; // don't give points to players when no runes are involved.
+ newfrags = 0;
if(arunes)
{ // got a kill while holding runes
newfrags = newfrags + autocvar_g_runematch_frags_killedby_runeholder;//5;
{
if(!t1 || !t2) return (!t2) - !t1;
- vector result;
+ vector result = '0 0 0';
float i;
for(i = 0; i < MAX_TEAMSCORE; ++i)
{
{
if(!t1 || !t2) return (!t2) - !t1;
- vector result;
+ vector result = '0 0 0';
float i;
for(i = 0; i < MAX_SCORE; ++i)
{
if(self.count == 1)
{
string name;
- vector rgb;
+ vector rgb = '1 0 1';
name = string_null;
if(g_minstagib)
{
scount = c2;
else if(steam == 3)//scolor == COLOR_TEAM3 - 1)
scount = c3;
- else if(steam == 4)//scolor == COLOR_TEAM4 - 1)
+ else // if(steam == 4)//scolor == COLOR_TEAM4 - 1)
scount = c4;
if(scount) // started at a valid, nonempty team
steam = COLOR_TEAM2;
else if(source_team == 3)
steam = COLOR_TEAM3;
- else if(source_team == 4)
+ else // if(source_team == 4)
steam = COLOR_TEAM4;
lowest_bot = world;
newdir = normalize(olddir + desireddir * turnrate); // take the average of the 2 directions; not the best method but simple & easy
self.velocity = newdir * spd; // make me fly in the new direction at my flight speed
}
+ else
+ dist = 0;
// Proxy
if (autocvar_g_balance_seeker_missile_proxy)
{
entity tracker, closest_target;
+ closest_target = world;
for(tracker = world; (tracker = find(tracker, classname, "tag_tracker")); ) if (tracker.realowner == self)
{
if (closest_target)
case 2: note = -5; break; // G
case 3: note = -4; break; // G#
case 4: note = +5; break; // e#
+ default:
case 5: note = 0; break; // c
case 6: note = +2; break; // d
case 7: note = +3; break; // eb