Skip to content

Commit

Permalink
Added Sniper
Browse files Browse the repository at this point in the history
Currently only available on Blue Team
  • Loading branch information
Kacey2k committed Feb 14, 2024
1 parent 4eb5b47 commit 1c631b1
Show file tree
Hide file tree
Showing 55 changed files with 1,152 additions and 3 deletions.
12 changes: 12 additions & 0 deletions 2D_TF2_Sandbox_2.resource_order
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
{"name":"BLU_Dispenser","order":4,"path":"folders/Objects/_TEAMS/BLU/6_BLU_Engie/BLU_Dispenser.yy",},
{"name":"BLU_Sentry","order":3,"path":"folders/Objects/_TEAMS/BLU/6_BLU_Engie/BLU_Sentry.yy",},
{"name":"7_BLU_Medic","order":10,"path":"folders/Objects/_TEAMS/BLU/7_BLU_Medic.yy",},
{"name":"8_BLU_Sniper","order":11,"path":"folders/Objects/_TEAMS/BLU/8_BLU_Sniper.yy",},
{"name":"RED","order":3,"path":"folders/Objects/_TEAMS/RED.yy",},
{"name":"_corpse","order":3,"path":"folders/Objects/_TEAMS/RED/_corpse.yy",},
{"name":"_icons","order":2,"path":"folders/Objects/_TEAMS/RED/_icons.yy",},
Expand All @@ -28,6 +29,7 @@
{"name":"RED_Dispenser","order":5,"path":"folders/Objects/_TEAMS/RED/6_RED_Engie/RED_Dispenser.yy",},
{"name":"RED_Sentry","order":4,"path":"folders/Objects/_TEAMS/RED/6_RED_Engie/RED_Sentry.yy",},
{"name":"7_RED_Medic","order":10,"path":"folders/Objects/_TEAMS/RED/7_RED_Medic.yy",},
{"name":"8_RED_Sniper","order":11,"path":"folders/Objects/_TEAMS/RED/8_RED_Sniper.yy",},
{"name":"Combat","order":9,"path":"folders/Objects/Combat.yy",},
{"name":"_uni","order":3,"path":"folders/Objects/Combat/_uni.yy",},
{"name":"RED","order":1,"path":"folders/Objects/Combat/RED.yy",},
Expand All @@ -53,6 +55,7 @@
{"name":"engie","order":16,"path":"folders/Scripts/movement/engie.yy",},
{"name":"red_engie","order":10,"path":"folders/Scripts/movement/engie/red_engie.yy",},
{"name":"medic","order":17,"path":"folders/Scripts/movement/medic.yy",},
{"name":"sniper","order":18,"path":"folders/Scripts/movement/sniper.yy",},
{"name":"NPC","order":4,"path":"folders/Scripts/NPC.yy",},
{"name":"NPC Messages","order":7,"path":"folders/Scripts/NPC/NPC Messages.yy",},
{"name":"Sequences","order":11,"path":"folders/Sequences.yy",},
Expand Down Expand Up @@ -85,19 +88,22 @@
{"name":"scr_movement_combat","order":2,"path":"scripts/scr_movement_combat/scr_movement_combat.yy",},
{"name":"spr_red_grenade","order":6,"path":"sprites/spr_red_grenade/spr_red_grenade.yy",},
{"name":"spr_red_engie_ubered","order":8,"path":"sprites/spr_red_engie_ubered/spr_red_engie_ubered.yy",},
{"name":"spr_blu_sniper_moving_ubered","order":6,"path":"sprites/spr_blu_sniper_moving_ubered/spr_blu_sniper_moving_ubered.yy",},
{"name":"isLocationClear","order":9,"path":"scripts/isLocationClear/isLocationClear.yy",},
{"name":"obj_noaccess","order":7,"path":"objects/obj_noaccess/obj_noaccess.yy",},
{"name":"spr_red_heavy_ubered","order":4,"path":"sprites/spr_red_heavy_ubered/spr_red_heavy_ubered.yy",},
{"name":"spr_rocket_trail","order":6,"path":"sprites/spr_rocket_trail/spr_rocket_trail.yy",},
{"name":"scr_movement_soldier","order":3,"path":"scripts/scr_movement_soldier/scr_movement_soldier.yy",},
{"name":"spr_blu_heavy","order":2,"path":"sprites/spr_blu_heavy/spr_blu_heavy.yy",},
{"name":"spr_blu_sniper_ubered","order":5,"path":"sprites/spr_blu_sniper_ubered/spr_blu_sniper_ubered.yy",},
{"name":"spr_harvest_grass_2","order":3,"path":"sprites/spr_harvest_grass_2/spr_harvest_grass_2.yy",},
{"name":"particle_explode","order":2,"path":"sprites/particle_explode/particle_explode.yy",},
{"name":"ico_red_demo","order":3,"path":"sprites/ico_red_demo/ico_red_demo.yy",},
{"name":"spr_blu_sentry_1","order":1,"path":"sprites/spr_blu_sentry_1/spr_blu_sentry_1.yy",},
{"name":"moveToBuildingLocation","order":4,"path":"scripts/moveToBuildingLocation/moveToBuildingLocation.yy",},
{"name":"script_msg_common_scout","order":1,"path":"scripts/script_msg_common_scout/script_msg_common_scout.yy",},
{"name":"blu_sentry_1","order":3,"path":"objects/blu_sentry_1/blu_sentry_1.yy",},
{"name":"sniper_escaping","order":2,"path":"scripts/sniper_escaping/sniper_escaping.yy",},
{"name":"spr_blu_engie_moving","order":1,"path":"sprites/spr_blu_engie_moving/spr_blu_engie_moving.yy",},
{"name":"spr_blu_healet","order":3,"path":"sprites/spr_blu_healet/spr_blu_healet.yy",},
{"name":"__ico","order":13,"path":"sprites/__ico/__ico.yy",},
Expand Down Expand Up @@ -147,6 +153,7 @@
{"name":"spr_blu_medic","order":2,"path":"sprites/spr_blu_medic/spr_blu_medic.yy",},
{"name":"particle_fire_trail","order":11,"path":"objects/particle_fire_trail/particle_fire_trail.yy",},
{"name":"spr_blu_scout_ubered","order":4,"path":"sprites/spr_blu_scout_ubered/spr_blu_scout_ubered.yy",},
{"name":"sniper_scoped","order":1,"path":"scripts/sniper_scoped/sniper_scoped.yy",},
{"name":"spr_red_pyro_moving_ubered","order":3,"path":"sprites/spr_red_pyro_moving_ubered/spr_red_pyro_moving_ubered.yy",},
{"name":"spr_blu_dispenser_3","order":7,"path":"sprites/spr_blu_dispenser_3/spr_blu_dispenser_3.yy",},
{"name":"red_common_explosive","order":1,"path":"objects/red_common_explosive/red_common_explosive.yy",},
Expand Down Expand Up @@ -174,6 +181,7 @@
{"name":"spr_blu_medic_moving_ubered","order":9,"path":"sprites/spr_blu_medic_moving_ubered/spr_blu_medic_moving_ubered.yy",},
{"name":"spr_harvest_grass_1","order":1,"path":"sprites/spr_harvest_grass_1/spr_harvest_grass_1.yy",},
{"name":"ico_blu_heavy","order":4,"path":"sprites/ico_blu_heavy/ico_blu_heavy.yy",},
{"name":"spr_blu_sniper_moving","order":2,"path":"sprites/spr_blu_sniper_moving/spr_blu_sniper_moving.yy",},
{"name":"spr_blu_soldier_moving_ubered","order":4,"path":"sprites/spr_blu_soldier_moving_ubered/spr_blu_soldier_moving_ubered.yy",},
{"name":"spr_red_pyro_ubered","order":4,"path":"sprites/spr_red_pyro_ubered/spr_red_pyro_ubered.yy",},
{"name":"spr_blu_dispenser_2","order":6,"path":"sprites/spr_blu_dispenser_2/spr_blu_dispenser_2.yy",},
Expand All @@ -187,6 +195,7 @@
{"name":"spr_red_sentry_1","order":3,"path":"sprites/spr_red_sentry_1/spr_red_sentry_1.yy",},
{"name":"particle_burn_1","order":9,"path":"sprites/particle_burn_1/particle_burn_1.yy",},
{"name":"unusual_effects","order":8,"path":"scripts/unusual_effects/unusual_effects.yy",},
{"name":"script_msg_common_pyro","order":5,"path":"scripts/script_msg_common_pyro/script_msg_common_pyro.yy",},
{"name":"red_healet","order":9,"path":"objects/red_healet/red_healet.yy",},
{"name":"spr_red_demo_moving_ubered","order":3,"path":"sprites/spr_red_demo_moving_ubered/spr_red_demo_moving_ubered.yy",},
{"name":"blu_scout","order":3,"path":"objects/blu_scout/blu_scout.yy",},
Expand All @@ -198,11 +207,13 @@
{"name":"spr_red_heavy_moving","order":1,"path":"sprites/spr_red_heavy_moving/spr_red_heavy_moving.yy",},
{"name":"medic_movement_pocket_red","order":3,"path":"scripts/medic_movement_pocket_red/medic_movement_pocket_red.yy",},
{"name":"scr_movement_combat_pyro_RED","order":7,"path":"scripts/scr_movement_combat_pyro_RED/scr_movement_combat_pyro_RED.yy",},
{"name":"script_msg_common_demo","order":6,"path":"scripts/script_msg_common_demo/script_msg_common_demo.yy",},
{"name":"red_grenade_blast","order":7,"path":"objects/red_grenade_blast/red_grenade_blast.yy",},
{"name":"blu_particle_healet","order":5,"path":"objects/blu_particle_healet/blu_particle_healet.yy",},
{"name":"spr_blu_engie_bap_ubered","order":6,"path":"sprites/spr_blu_engie_bap_ubered/spr_blu_engie_bap_ubered.yy",},
{"name":"spr_env_water","order":5,"path":"sprites/spr_env_water/spr_env_water.yy",},
{"name":"spr_fire","order":8,"path":"sprites/spr_fire/spr_fire.yy",},
{"name":"spr_blu_sniper","order":4,"path":"sprites/spr_blu_sniper/spr_blu_sniper.yy",},
{"name":"heal_beam_blu","order":3,"path":"objects/heal_beam_blu/heal_beam_blu.yy",},
{"name":"blu_grenade","order":5,"path":"objects/blu_grenade/blu_grenade.yy",},
{"name":"map_harvest","order":4,"path":"rooms/map_harvest/map_harvest.yy",},
Expand Down Expand Up @@ -230,6 +241,7 @@
{"name":"script_msg_common_soldier","order":2,"path":"scripts/script_msg_common_soldier/script_msg_common_soldier.yy",},
{"name":"blu_fire","order":4,"path":"objects/blu_fire/blu_fire.yy",},
{"name":"red_grenade","order":5,"path":"objects/red_grenade/red_grenade.yy",},
{"name":"ico_blu_sniper","order":7,"path":"sprites/ico_blu_sniper/ico_blu_sniper.yy",},
{"name":"ico_red_pyro","order":2,"path":"sprites/ico_red_pyro/ico_red_pyro.yy",},
{"name":"spr_blu_sentry_2","order":4,"path":"sprites/spr_blu_sentry_2/spr_blu_sentry_2.yy",},
{"name":"red_particle_healet","order":1,"path":"objects/red_particle_healet/red_particle_healet.yy",},
Expand Down
14 changes: 14 additions & 0 deletions 2D_TF2_Sandbox_2.yyp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions objects/blu_demo/Create_0.gml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ npc_kills = 0;
alarm[0] = irandom_range(400, 1800); //Message Generation Alarm
alarm[1] = 0; // Extinguish Time
alarm[2] = 0; // Burn Time
alarm[3] = 0;
npc_msgCommon = "";
unusualEffect = false;
npc_cosmetic = npc_cosmetics();
Expand Down
1 change: 1 addition & 0 deletions objects/blu_engie/Create_0.gml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ npc_kills = 0;
alarm[0] = irandom_range(400, 1800); //Min Seconds & Max Seconds (must update in alarm 0 as well!)
alarm[1] = 0; // Extinguish Time
alarm[2] = 0; // Burn Time
alarm[3] = 0;
npc_msgCommon = "";
unusualEffect = false;
npc_cosmetic = npc_cosmetics();
Expand Down
1 change: 1 addition & 0 deletions objects/blu_heavy/Create_0.gml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ npc_kills = 0;
alarm[0] = irandom_range(400, 1800); //Message Generation Alarm
alarm[1] = 0; // Extinguish Time
alarm[2] = 0; // Burn Time
alarm[3] = 0;
npc_msgCommon = "";
unusualEffect = false;
npc_cosmetic = npc_cosmetics();
Expand Down
1 change: 1 addition & 0 deletions objects/blu_pyro/Create_0.gml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ npc_kills = 0;
alarm[0] = irandom_range(400, 1800); //Message Generation Alarm
alarm[1] = 0; // Extinguish Time
alarm[2] = 0; // Burn Time
alarm[3] = 0;
npc_msgCommon = "";
unusualEffect = false;
npc_cosmetic = npc_cosmetics();
Expand Down
3 changes: 3 additions & 0 deletions objects/blu_sniper/Alarm_0.gml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/// @description Messaging
script_msg_common_scout();
alarm[0] = irandom_range(180, 1800);
10 changes: 10 additions & 0 deletions objects/blu_sniper/Alarm_1.gml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/// @description Extinguish
//Timer that extinguishes the player

isBurning = false;
alarm[2] = -1; // Deactivates Alarm 2





5 changes: 5 additions & 0 deletions objects/blu_sniper/Alarm_2.gml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/// @description Burning
//Burn Timer, each time this script runs, the player looses this much hp

hp -= 3;
alarm_set(2, irandom_range(5,60));
7 changes: 7 additions & 0 deletions objects/blu_sniper/Alarm_3.gml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/// @description Uber
if isUbered = true && HealerDisconnected = false {
alarm_set(3, 30); // continue uber
} else {
isUbered = false;
alarm_set(3, 0); // Stop Uber
}
3 changes: 3 additions & 0 deletions objects/blu_sniper/CleanUp_0.gml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
if (ds_exists(wepOwnersList, ds_type_list)) {
ds_list_destroy(wepOwnersList);
}
1 change: 1 addition & 0 deletions objects/blu_sniper/Collision_blu_healet.gml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
hp += 5;
1 change: 1 addition & 0 deletions objects/blu_sniper/Collision_red_common_explosive.gml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
hp -= 50;
1 change: 1 addition & 0 deletions objects/blu_sniper/Collision_red_common_weapon.gml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
hp -= 20;
3 changes: 3 additions & 0 deletions objects/blu_sniper/Collision_red_fire.gml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
hp -= 3;
isBurning = true;
alarm_set(1, irandom_range(60, 180)); //start extinguish timer
Loading

0 comments on commit 1c631b1

Please sign in to comment.