Skip to content

Commit

Permalink
fix for dogmeat's ai packet, ref BGforgeNet/Fallout2_Restoration_Proj…
Browse files Browse the repository at this point in the history
  • Loading branch information
burner1024 committed Aug 25, 2022
1 parent 3d30f85 commit 695d4dc
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion data/data/party.txt
Expand Up @@ -267,7 +267,7 @@ best_weapon=unarmed
chem_use=clean
distance=stay_close, charge, on_your_own, stay
run_away_mode=none, not_feeling_good, tourniquet, never
disposition=none, custom, aggressive, berserk
disposition=none, custom, aggressive
level_minimum=6
level_up_every=3
level_pids=16777559,16777560,16777561,16777562,16777563,16777564
Expand Down
20 changes: 20 additions & 0 deletions scripts_src/global/gl_k_dogmeat_fix.ssl
@@ -0,0 +1,20 @@
// temp fix for Dogmeat floats, see https://github.com/BGforgeNet/Fallout2_Restoration_Project/issues/154

#define SCRIPT_REALNAME "gl_k_dogmeat_fix"
#include "../headers/define.h"
#include "../headers/command.h"

procedure map_enter_p_proc begin
if Dogmeat_Ptr then begin
variable aiPacket := get_ai(Dogmeat_Ptr);
if (aiPacket != AI_PARTY_DOGMEAT_AGRESSIVE) and (aiPacket != AI_PARTY_DOGMEAT_CUSTOM) then begin
set_ai(Dogmeat_Ptr, AI_PARTY_DOGMEAT_CUSTOM); // reset
end
end
end

procedure start begin
if game_loaded then begin
call map_enter_p_proc;
end
end

0 comments on commit 695d4dc

Please sign in to comment.