Added support for Dark Messiah engine and game. (no bug, r=me).

The development of this feature would not be possible without the support of the following people from the game's community:
Dylan Riggs, Carl Pettengill, Ed Moreland, and Christian.
This commit is contained in:
Scott Ehlert
2009-02-18 02:19:22 -06:00
parent 15d64b8486
commit bd9fab6cf5
36 changed files with 1523 additions and 74 deletions
+20 -2
View File
@@ -157,11 +157,29 @@ public Action:Timer_Freeze(Handle:timer, any:value)
if (g_FreezeTime[client] == 0)
{
UnfreezeClient(client);
PrintHintText(client, "You are now unfrozen.");
/* HintText doesn't work on Dark Messiah */
if (g_GameEngine != SOURCE_SDK_DARKMESSIAH)
{
PrintHintText(client, "You are now unfrozen.");
}
else
{
PrintCenterText(client, "You are now unfrozen.");
}
return Plugin_Stop;
}
if (g_GameEngine != SOURCE_SDK_DARKMESSIAH)
{
PrintHintText(client, "You will be unfrozen in %d seconds.", g_FreezeTime[client]);
}
else
{
PrintCenterText(client, "You will be unfrozen in %d seconds.", g_FreezeTime[client]);
}
PrintHintText(client, "You will be unfrozen in %d seconds.", g_FreezeTime[client]);
g_FreezeTime[client]--;
SetEntityMoveType(client, MOVETYPE_NONE);
SetEntityRenderColor(client, 0, 128, 255, 135);