457 FreeTexture(Team^.AIKillsTex); |
459 FreeTexture(Team^.AIKillsTex); |
458 Team^.AIKillsTex := RenderStringTex(inttostr(Team^.stats.AIKills), Team^.Clan^.Color, fnt16); |
460 Team^.AIKillsTex := RenderStringTex(inttostr(Team^.stats.AIKills), Team^.Clan^.Color, fnt16); |
459 end; |
461 end; |
460 tempTeam := gear^.Hedgehog^.Team; |
462 tempTeam := gear^.Hedgehog^.Team; |
461 DeleteCI(gear); |
463 DeleteCI(gear); |
|
464 gX := hwRound(gear^.X); |
|
465 gY := hwRound(gear^.Y); |
|
466 // might need more sparkles for a column |
|
467 sparkles:= AddVisualGear(gX, gY, vgtDust, 1); |
|
468 if sparkles <> nil then |
|
469 begin |
|
470 sparkles^.Tint:= tempTeam^.Clan^.Color shl 8 or $FF; |
|
471 //sparkles^.Angle:= random(360); |
|
472 end; |
462 FindPlace(gear, false, 0, LAND_WIDTH, true); |
473 FindPlace(gear, false, 0, LAND_WIDTH, true); |
463 if gear <> nil then |
474 if gear <> nil then |
464 begin |
475 begin |
|
476 AddVisualGear(hwRound(gear^.X), hwRound(gear^.Y), vgtExplosion); |
465 RenderHealth(gear^.Hedgehog^); |
477 RenderHealth(gear^.Hedgehog^); |
466 ScriptCall('onGearResurrect', gear^.uid); |
478 ScriptCall('onGearResurrect', gear^.uid); |
467 gear^.State := gstWait; |
479 gear^.State := gstWait; |
468 end; |
480 end; |
469 RecountTeamHealth(tempTeam); |
481 RecountTeamHealth(tempTeam); |