1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-16 10:08:02 -05:00

Origins: change Mystery Box trade weapon hint string

This commit is contained in:
Jbleezy
2023-04-01 01:05:05 -07:00
parent 9e09ec3752
commit 420e136d69
3 changed files with 30 additions and 0 deletions

View File

@ -379,4 +379,29 @@ recapture_round_start()
recapture_round_audio_ends();
flag_clear( "recapture_event_in_progress" );
flag_clear( "generator_under_attack" );
}
magic_box_stub_update_prompt( player )
{
self setcursorhint( "HINT_NOICON" );
if ( !self trigger_visible_to_player( player ) )
return false;
self.stub.hint_parm1 = undefined;
if ( isdefined( self.stub.trigger_target.grab_weapon_hint ) && self.stub.trigger_target.grab_weapon_hint )
self.stub.hint_string = &"ZOMBIE_TRADE_WEAPON";
else if ( !level.zone_capture.zones[self.stub.zone] ent_flag( "player_controlled" ) )
{
self.stub.hint_string = &"ZM_TOMB_ZC";
return false;
}
else
{
self.stub.hint_parm1 = self.stub.trigger_target.zombie_cost;
self.stub.hint_string = get_hint_string( self, "default_treasure_chest" );
}
return true;
}