From 7f86a31c4982064171431046fa315b863496a726 Mon Sep 17 00:00:00 2001 From: Yimura Date: Tue, 4 Jan 2022 22:33:56 +0100 Subject: [PATCH] refactor(Toxic): Removed origin option --- BigBaseV2/src/util/toxic.hpp | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/BigBaseV2/src/util/toxic.hpp b/BigBaseV2/src/util/toxic.hpp index 6ec8491f..a075c6f1 100644 --- a/BigBaseV2/src/util/toxic.hpp +++ b/BigBaseV2/src/util/toxic.hpp @@ -27,24 +27,19 @@ namespace big::toxic blame_explode_coord(to_blame, coords, explosion_type, damage, is_audible, is_invisible, camera_shake); } - // param 0 == should send - // param 1 == player target - // param 2 == amount - // param 3 == unk? => always 1 - // param 4 == if some kind of bit must be set - inline void bounty_player(Player target, Player origin, int amount) + inline void bounty_player(Player target, int amount) { const size_t arg_count = 22; int args[arg_count] = { (int)eRemoteEvent::Bounty, - 0, + 0, // doesn't matter of we set this to something else, the TRIGGER_SCRIPT_EVENT routine will set it to our player id anyways target, - 0, + 0, // set by player or NPC? 10000, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - *script_global(1921036 + 9).as(), - *script_global(1921036 + 10).as() + *script_global(1921036).at(9).as(), + *script_global(1921036).at(10).as() }; g_pointers->m_trigger_script_event(1, args, arg_count, -1);