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

[ANY] Round Exec plugin


Post New Thread Reply   
 
Thread Tools Display Modes
GRUFTY
Member
Join Date: Sep 2019
Old 09-28-2019 , 19:09   Re: [ANY] Round Exec plugin
Reply With Quote #11

Hallo.Bei me hats unfortunately did not work .. Have hl2dm.und need something, because of the quake sounds that they remain on the setting one so on..evtl.have I done something wrong, I need both cfg dateirn? and enough to start cfg or I have to take both ?? the server is only with the team kill mode 2 start greeting Grufty
GRUFTY is offline
DZHEX
Junior Member
Join Date: Mar 2015
Old 09-21-2023 , 09:04   Re: [ANY] Round Exec plugin
Reply With Quote #12

TF2 seems to have different events
https://wiki.alliedmods.net/Team_Fortress_2_Events
The events are
teamplay_round_start (round start)
teamplay_round_win (round end, win/loss)
teamplay_round_stalemate (round end, stalemate)

Looks like a pretty easy clientside fix, just replace the HookEvent events (round_start, round_end) in the code with the TF2 events (you probably care about round_win) and recompile.

I actually just added the two lines of teamplay_ events and it works in TF2 now:
Code:
public OnPluginStart()
{
	g_CVarEnabled = CreateConVar("sm_roundexec_enable", "1", "<1/0> Set to 1 to enable plugin.");
	HookEvent("round_start", RoundStart, EventHookMode_Post);
	HookEvent("round_end", RoundEnd, EventHookMode_Post);
	HookEvent("teamplay_round_start", RoundStart, EventHookMode_Post);
	HookEvent("teamplay_round_win", RoundEnd, EventHookMode_Post);
}

Last edited by DZHEX; 09-21-2023 at 09:06. Reason: IMG tag fail
DZHEX is offline
Reply



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 20:32.


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