Skip to content

Commit 0ec862a

Browse files
committed
Hub
- Tweaked: If Sheriff Greene in the Hub gets knocked out/down in the Decker fight, he will stand up again once back in his office.
1 parent 0e29d56 commit 0ec862a

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

Fallout2/Fallout1in2/Mapper/source/scripts/07bos/LARYKNIG.ssl

+2
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ procedure start begin
4848
set_self_team(TEAM_BROTHERHOOD);
4949
set_self_ai(AI_BROTHERHOOD_KNIGHT);
5050
end
51+
52+
if not(fo1in2_cut_characters_enabled) then destroy_object(self_obj);
5153
end
5254

5355
procedure combat begin

Fallout2/Fallout1in2/Mapper/source/scripts/11cathedral/MASTER.ssl

+1-1
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ procedure master09 begin
371371
Reply(130);
372372
BOption(131, master203, 5);// <-- Combat trigger [mastercbt]
373373
NOption(132, master10, 6);
374-
if (global_var(GVAR_VREEDISK_HOLODISK_USED) == 1) or (global_var(GVAR_VREE_GIVEN_DUDE_AUTOPSY) > 0) then begin// USED_DISK, DISK_REBUILT, DISK_GIVEN
374+
if (global_var(GVAR_VREEDISK_HOLODISK_USED) == 1) or (global_var(GVAR_VREE_GIVEN_DUDE_AUTOPSY) > 0) then begin
375375
NOption(133, master11, 7);
376376
end
377377
end

Fallout2/Fallout1in2/Mapper/source/scripts/99map/HUBDWNTN.ssl

+7
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,13 @@ procedure map_update_p_proc begin
6262
gfade_out(1);
6363
if not(is_loading_game) then begin set_obj_invisible(Fry_Stub_Ptr); end
6464
if (global_var(GVAR_GREENE_DEAD) != 1) then begin
65+
// If the sheriff got knocked down, make him stand up again
66+
if (((critter_state(Justin_Ptr) bwand DAM_KNOCKED_DOWN) == true) OR ((critter_state(Justin_Ptr) bwand DAM_KNOCKED_OUT) == true)) then begin
67+
critter_uninjure(Justin_Ptr, DAM_KNOCKED_DOWN);
68+
critter_uninjure(Justin_Ptr, DAM_KNOCKED_OUT);
69+
reg_anim_clear(Justin_Ptr);
70+
end
71+
6572
move_to(Justin_Ptr, justin_office_hex, 0);
6673
obj_rotate(Justin_Ptr, 3);
6774
set_team(Justin_Ptr, TEAM_HUB_SHERIFF);

0 commit comments

Comments
 (0)