
LedgeTheDev
Joined: Jul 16, 2015
|
Posted: Jul 16, 2015 08:12 PM
Msg. 1 of 5
So I wanted to customize my HAC2 medal script to fit my personal preference. I just wanted to know where to find the Halo event ID numbers so I can do this or if it is something unique to HAC2. Here is a snippet of the code to show you what I mean: function player_environmental_death(event, victim, player, timestamp) if(victim == player) then if(event == 6) then queue_audio("audio/suicide.mp3") end spree = 0 lastDeath = timestamp else spreeCounters[victim] = 0 end end
function ctf_events(event, killer, victim, player, timestamp) if(event == 33) then display("Flag Captured!", "images/flag_score.png", "audio/flag_captured.mp3") end end Any help would be greatly appreciated. Thank you.
|
|
|

Btcc22
Joined: Dec 17, 2012
|
Posted: Jul 17, 2015 02:31 AM
Msg. 2 of 5
This list isn't complete because it was intended to be a stopgap solution - OpenSauce might have a better list.
FALLING_DEATH = 1, GUARDIAN_KILL, (2) VEHICLE_KILL, (3) PLAYER_KILL, (4) BETRAYED, (5) SUICIDE, (6) LOCAL_DOUBLE_KILL, (7) LOCAL_KILLED_PLAYER, (8) LOCAL_TRIPLE_KILL, (9) LOCAL_KILLTACULAR, (10) LOCAL_KILLING_SPREE, (11) LOCAL_RUNNING_RIOT = 14, BETRAYED_PLAYER = 13, RACE_LAP_COMPLETE = 32, FLAG_CAPTURED = 33, UNKNOWN_CTF = 34, //won? UNKNOWN_CTF_2 = 35, //lost? PLAYER_FLAG_RETURN = 37, RACE_FASTEST_LAP = 38, ENEMY_RETURNED_FLAG = 40, ALLY_STOLE_FLAG = 41, ALLY_RETURNED_FLAG = 42, FRIENDLY_FLAG_IDLE_RETURNED = 43, ENEMY_FLAG_IDLE_RETURNED = 44
|
|
|

LedgeTheDev
Joined: Jul 16, 2015
|
Posted: Jul 17, 2015 09:51 AM
Msg. 3 of 5
Quote: --- Original message by: Btcc22 This list isn't complete because it was intended to be a stopgap solution - OpenSauce might have a better list.
FALLING_DEATH = 1, GUARDIAN_KILL, (2) VEHICLE_KILL, (3) PLAYER_KILL, (4) BETRAYED, (5) SUICIDE, (6) LOCAL_DOUBLE_KILL, (7) LOCAL_KILLED_PLAYER, (8) LOCAL_TRIPLE_KILL, (9) LOCAL_KILLTACULAR, (10) LOCAL_KILLING_SPREE, (11) LOCAL_RUNNING_RIOT = 14, BETRAYED_PLAYER = 13, RACE_LAP_COMPLETE = 32, FLAG_CAPTURED = 33, UNKNOWN_CTF = 34, //won? UNKNOWN_CTF_2 = 35, //lost? PLAYER_FLAG_RETURN = 37, RACE_FASTEST_LAP = 38, ENEMY_RETURNED_FLAG = 40, ALLY_STOLE_FLAG = 41, ALLY_RETURNED_FLAG = 42, FRIENDLY_FLAG_IDLE_RETURNED = 43, ENEMY_FLAG_IDLE_RETURNED = 44 Where would I find them in open sauce?
|
|
|

Super Flanker
Joined: Oct 5, 2012
The length of your life depends on my aim.
|
Posted: Jul 17, 2015 10:02 AM
Msg. 4 of 5
Unrelated but a guy keeps asking me to ask you (btcc) for your email since he wants to chat I guess.
And since you have like 4 Hmaps account you mind sharing your email or addition contact details?
evolve.
Steam.
|
|
|

RadWolfie
Joined: Dec 24, 2013
Programmer
|
Posted: Jul 18, 2015 03:42 AM
Msg. 5 of 5
Actually, I have researched the event codes and... apparently never publicly release nor in Add-on API source code. So, here's my final research (in hexadecimal, you will need convert them to decimal yourself). Use them well! 0x00 = Welcome %s 0x01 = %s died (chat message) 0x02 = %s was killed by the guardians (chat message) 0x03 = %s was killed by a vehicle (chat message) 0x04 = %s was killed by %s (chat message) 0x05 = %s was betrayed by %s (chat message) 0x06 = %s commited suicide (chat message) 0x07 = Double Kill! 0x08 = You killed %s (chat message) 0x09 = Triple Kill! 0x0A = Killtacular! 0x0B = You are on killing spree! 0x0C = Running Riot! 0x0D = You betrayed %s (chat message) 0x0E = Killtacular! (%d) 0x0F = Triple Kill! (%d) 0x10 = Double Kill! (%d) 0x11 = Running Riot! (%d) 0x12 = You are on killing spree! (%d) 0x13 = You killed %s (%d) (chat message) 0x14 = Not used 0x15 = Not used 0x16 = Not used 0x17 = You are oddman out 0x18 = You are out of lives 0x19 = Rejoin in %d 0x1A = Waiting for space to clear 0x1B = You quit out of the game. (chat message) 0x1C = Not used 0x1D = Hold "F1" for score. 0x1E = %d remaining. 0x1F = You were telefragged 0x20 = Red Team %d Blue Team %d 0x21 = You scored %d to %d. 0x22 = Enemy scored %d to %d. 0x23 = Your ally scored %d to %d. 0x24 = Not used as in return nothing. (weird) 0x25 = You returned the flag. 0x26 = The enemy has the flag. 0x27 = The enemy has the flag. 0x28 = The enemy returned the flag. 0x29 = Your ally has the flag 0x2A = Your ally returned the flag. 0x2B = Your flag was returned. 0x2C = The enemy's flag was returned. 0x2D = Time expired. 0x2E = You are on offense. 0x2F = You are on defense. 0x30 = You are on offense. (%d:%d) 0x31 = You are on defense. (%d:%d) How did I verify them? I had these event manually sent to client side in order find out what type of message it is. For Btcc22: So far, guardian kill to killing spree are correct. Falling death is also linked to server kill. Running riot isn't right, on the list above it is "Killtacular! (%d)". Maybe slightly different in halo versions? I can't verify for race, this was done in CTF gametype. Both UNKNOWN_CTF numbers are relative to output the scores (listed above as well). Also, after 0x32 (or in decimal "50") it does not show any message at all at least that's where it stopped for me. PS: Don't ask me the location in halo for ability to send the event code to client side, it was done in 2013.
|
|
|
| |
|
|
 |
|