From 19f8cc5baee635a48bba9f1c49e54e34f20b1350 Mon Sep 17 00:00:00 2001 From: JezuzLizard Date: Fri, 4 Nov 2022 18:49:15 -0700 Subject: [PATCH] Fix script errors. --- .../scripts/zm/zm_transit/perks_and_pack_main.gsc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Perks and Pack on Farm and Depot/scripts/zm/zm_transit/perks_and_pack_main.gsc b/Perks and Pack on Farm and Depot/scripts/zm/zm_transit/perks_and_pack_main.gsc index d353fc6..a7bb5d7 100644 --- a/Perks and Pack on Farm and Depot/scripts/zm/zm_transit/perks_and_pack_main.gsc +++ b/Perks and Pack on Farm and Depot/scripts/zm/zm_transit/perks_and_pack_main.gsc @@ -124,8 +124,8 @@ register_perk_struct( perk_name, perk_model, perk_angles, perk_coordinates ) flag_struct = spawnStruct(); flag_struct.targetname = "weapupgrade_flag_targ"; flag_struct.model = "zombie_sign_please_wait"; - flag_struct.angles = angles + ( 0, 180, 180 ); - flag_struct.origin = origin + ( anglesToForward( angles ) * 29 ) + ( anglesToRight( angles ) * -13.5 ) + ( anglesToUp( angles ) * 49.5 ); + flag_struct.angles = perk_angles + ( 0, 180, 180 ); + flag_struct.origin = perk_coordinates + ( anglesToForward( perk_angles ) * 29 ) + ( anglesToRight( perk_angles ) * -13.5 ) + ( anglesToUp( perk_angles ) * 49.5 ); perk_struct.target = flag_struct.targetname; add_struct( flag_struct ); }