forked from NovaRain/Fallout2_Unofficial_Patch
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix for dogmeat's ai packet, ref BGforgeNet/Fallout2_Restoration_Proj…
- Loading branch information
1 parent
3d30f85
commit 695d4dc
Showing
2 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |