Last active
August 29, 2015 14:01
-
-
Save ZaSpai/ec5d187331a24ac03174 to your computer and use it in GitHub Desktop.
Display a QC weapon change in the log (WIP)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Record QC weapon change in log | |
| // argument0: Class parameter of pickup item | |
| // argument1: The team | |
| // argument2: The player name | |
| // argument3: Am I involved? | |
| var weapon, sprite, icon, name, description; | |
| weapon = ""; | |
| sprite = -1; | |
| icon = ""; | |
| name = string_copy(argument2.name, 1, 20); | |
| description = " equipped "; | |
| if argument0==CLASS_SCOUT { | |
| weapon = "Spectrum"; | |
| icon = "Spectrum"; | |
| } | |
| else if argument0==CLASS_PYRO { | |
| weapon = "Orion"; | |
| icon = "Orion"; | |
| } | |
| else if argument0==CLASS_SOLDIER { | |
| weapon = "Missile Launcher"; | |
| icon = "MLauncher"; | |
| } | |
| else if argument0==CLASS_HEAVY { | |
| weapon = "Machinegun"; | |
| icon = "Machinegun"; | |
| } | |
| else if argument0==CLASS_DEMOMAN { | |
| weapon = "Nebula"; | |
| icon = "Nebula"; | |
| } | |
| else if argument0==CLASS_MEDIC { | |
| weapon = "Southern Cross"; | |
| icon = "SthCross"; | |
| } | |
| else if argument0==CLASS_ENGINEER { | |
| weapon = "Austral Star"; | |
| icon = "AustStar"; | |
| } | |
| else if argument0==CLASS_SPY { | |
| weapon = "Erinys"; | |
| icon = "Erinys"; | |
| } | |
| else if argument0==CLASS_SNIPER { | |
| weapon = "Eclipse"; | |
| icon = "Eclipse"; | |
| } | |
| else if argument0==CLASS_QUOTE { | |
| weapon = "Bubbline Lv3"; | |
| icon = "Bubbline"; | |
| } | |
| else exit; | |
| if icon == "Spectrum" { sprite = SpectrumKL; | |
| } else if icon == "Orion" { sprite = OrionKL; | |
| } else if icon == "MLauncher" { sprite = MLauncherKL; | |
| } else if icon == "Machinegun" { sprite = MachinegunKL; | |
| } else if icon == "Nebula" { sprite = NebulaKL; | |
| } else if icon == "SthCross" { sprite = SthCrossKL; | |
| } else if icon == "AustStar" { sprite = AustStarKL; | |
| } else if icon == "Erinys" { sprite = ErinysKL; | |
| } else if icon == "Eclipse" { sprite = EclipseKL; | |
| } else if icon == "Bubbline" { sprite = BubblineKL; | |
| } | |
| with (KillLog) { | |
| map = ds_map_create(); | |
| ds_map_add(map, "name1", name); | |
| ds_map_add(map, "team1", argument1); | |
| ds_map_add(map, "weapon", sprite); | |
| ds_map_add(map, "string", description); | |
| ds_map_add(map, "name2", weapon); | |
| ds_map_add(map, "team2", argument1); | |
| ds_map_add(map, "inthis", argument3); | |
| ds_list_add(kills, map); | |
| if (ds_list_size(kills) > 5) { | |
| ds_map_destroy(ds_list_find_value(kills, 0)); | |
| ds_list_delete(kills, 0); | |
| } | |
| alarm[0] = 30*5; | |
| } | |
| playsound(view_xview[0]+400,view_yview[0]+300,NoticeSnd); | |
| exit; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment