Raised This Month: $12 Target: $400
 3% 

[TF2] mvm_mission_complete event not firing


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Gurrth
Junior Member
Join Date: Feb 2020
Old 05-25-2020 , 15:18   [TF2] mvm_mission_complete event not firing
Reply With Quote #1

Hi all,

I'm trying to use a hookevent from https://wiki.alliedmods.net/Team_For...ssion_complete labelled "mvm_mission_complete"

But when I use the tf_mvm_force_victory command, this event does not show up on the event dump.

Code:
Empty ambient_generic (ambient_generic) at -1454.34, -487.95, 585.00
Item Whitelist file 'item_whitelist.txt' could not be found. All items will be allowed.
Game event "stop_watch_changed", Tick 2973:
Game event "server_cvar", Tick 2973:
- "cvarname" = "mp_tournament_stopwatch"
- "cvarvalue" = "0"
Game event "teamplay_broadcast_audio", Tick 2973:
- "team" = "255"
- "sound" = "Announcer.MVM_Get_To_Upgrade"
- "additional_flags" = "0"
Game event "recalculate_holidays", Tick 2973:
Achievements disabled: cheats turned on in this app session.
Game event "player_stats_updated", Tick 2973:
- "forceupload" = "0"
Game event "post_inventory_application", Tick 2973:
- "userid" = "2"
Game event "player_spawn", Tick 2973:
- "userid" = "2"
- "team" = "2"
- "class" = "9"
Game event "teamplay_round_start", Tick 2973:
- "full_reset" = "1"
Game event "mvm_reset_stats", Tick 2973:
Game event "scorestats_accumulated_update", Tick 2973:
Game event "teamplay_broadcast_audio", Tick 2973:
- "team" = "255"
- "sound" = "Game.YourTeamWon"
- "additional_flags" = "0"
Game event "flagstatus_update", Tick 2973:
- "userid" = "0"
- "entindex" = "360"
Game event "flagstatus_update", Tick 2973:
- "userid" = "0"
- "entindex" = "440"
Game event "localplayer_respawn", Tick 2973:
Game event "teamplay_update_timer", Tick 2973:
Game event "gameui_hidden", Tick 4460:
Game event "gameui_hidden", Tick 4460:
Game event "gameui_activated", Tick 4622:
Game event "gameui_activated", Tick 5582:
My question is, what game event to use for when an mvm game is complete?
Gurrth is offline
CrazyHackGUT
AlliedModders Donor
Join Date: Feb 2016
Location: Izhevsk, Russia
Old 05-25-2020 , 15:27   Re: [TF2] mvm_mission_complete event not firing
Reply With Quote #2

You can use usermessage MVMVictory.
__________________
My english is very bad. I am live in Russia. Learning english language - very hard task for me...
CrazyHackGUT is offline
Send a message via ICQ to CrazyHackGUT Send a message via Skype™ to CrazyHackGUT
Gurrth
Junior Member
Join Date: Feb 2020
Old 05-25-2020 , 15:42   Re: [TF2] mvm_mission_complete event not firing
Reply With Quote #3

Quote:
Originally Posted by CrazyHackGUT View Post
You can use usermessage MVMVictory.

Like this?

Code:
HookUserMessage(GetUserMessageId(UserMsg"MVMVictory"), mvm_complete, true);
Gurrth is offline
CrazyHackGUT
AlliedModders Donor
Join Date: Feb 2016
Location: Izhevsk, Russia
Old 05-25-2020 , 16:06   Re: [TF2] mvm_mission_complete event not firing
Reply With Quote #4

Yes.
__________________
My english is very bad. I am live in Russia. Learning english language - very hard task for me...
CrazyHackGUT is offline
Send a message via ICQ to CrazyHackGUT Send a message via Skype™ to CrazyHackGUT
Gurrth
Junior Member
Join Date: Feb 2020
Old 05-25-2020 , 16:10   Re: [TF2] mvm_mission_complete event not firing
Reply With Quote #5

giving me these errors

Gurrth is offline
CrazyHackGUT
AlliedModders Donor
Join Date: Feb 2016
Location: Izhevsk, Russia
Old 05-25-2020 , 16:30   Re: [TF2] mvm_mission_complete event not firing
Reply With Quote #6

HookUserMessage(GetUserMessageId("MVMVictory" ), mvm_complete, true);
__________________
My english is very bad. I am live in Russia. Learning english language - very hard task for me...
CrazyHackGUT is offline
Send a message via ICQ to CrazyHackGUT Send a message via Skype™ to CrazyHackGUT
Gurrth
Junior Member
Join Date: Feb 2020
Old 05-25-2020 , 16:35   Re: [TF2] mvm_mission_complete event not firing
Reply With Quote #7

Gurrth is offline
Gurrth
Junior Member
Join Date: Feb 2020
Old 05-25-2020 , 18:20   Re: [TF2] mvm_mission_complete event not firing
Reply With Quote #8

i'm guessing tf2's usermessage is different nowadays?
Gurrth is offline
Tilex
Junior Member
Join Date: May 2020
Old 05-25-2020 , 19:05   Re: [TF2] mvm_mission_complete event not firing
Reply With Quote #9

Maybe you want to check your mvm_complete to match the proper protoype for MsgHook:
https://sm.alliedmods.net/new-api/usermessages/MsgHook
Though, I'm not sure which one of the two ist the right one to use here.
Tilex is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 05-26-2020 , 15:07   Re: [TF2] mvm_mission_complete event not firing
Reply With Quote #10

Quote:
Originally Posted by Tilex View Post
Maybe you want to check your mvm_complete to match the proper protoype for MsgHook:
https://sm.alliedmods.net/new-api/usermessages/MsgHook
Though, I'm not sure which one of the two ist the right one to use here.
The BfRead type as TF2 doesn't use Protobuffer UserMessages.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:08.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode