Quote:
Originally Posted by Antithasys
Not really sure how to respond to this. You clearly didn't ask and just copied 99.9% of the code; although you do give me credit throughtout. If you would have asked, I mite have even helped.
From looking the only thing you changed was the events hooked. Not really sure if that is good enough to make it work in DOD without other modifications since I don't really know the game.
I do know that it won't get approved for the simple reason that you didn't change the public cvar and you can't use one already in use.
|
Sorry Antithasys, yes you are right. I better had to contact you BEFORE I published this. And you are right, I have just modified your code a bit to work with DOD:S. I noted this above.
What should I do? Your plugin thread is clearly marked as to be ONLY for
TF2. And you noted that your project is finished. When I post there, no one who is interested in DOD:S plugins will notice this. So I've started a new thread.
Please could you add a simple game type check to your plugin to make it work with DOD:S as well?
My thread can be removed then...
I could contribute what is needed with DOD:S to make it work. Hint:
Code:
#define TF2 0
#define DODS 1
new gameType = TF2;
/*... */
decl String:gameName[80];
GetGameFolderName(gameName, sizeof(gameName));
if(StrEqual(gameName, "tf2"))
gameType = TF2;
else if(StrEqual(gameName, "dod"))
gameType = DODS;
/* ... */
if (gameType == TF2) {
/*... */
} else if(gameType == DODS) {
HookEvent("player_death", HookPlayerDeath, EventHookMode_Post);
HookEvent("player_team", HookPlayerChangeTeam, EventHookMode_Pre);
HookEvent("dod_round_start", HookRoundStart, EventHookMode_PostNoCopy);
HookEvent("dod_round_win", HookRoundEnd, EventHookMode_Post);
HookEvent("dod_point_captured", HookControlPointCapture, EventHookMode_PostNoCopy);
}
Thank you!