- added GuessSDKVersion()

- added rendermode and renderfx prop stocks and defines
- added MoveType tag to MOVETYPE defines
- changed Movetype functions to MoveType to use correct SourceMod casing

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401843
This commit is contained in:
David Anderson
2008-01-07 06:59:44 +00:00
parent e1bc3234b2
commit c033f5415a
6 changed files with 182 additions and 26 deletions
+3 -3
View File
@@ -59,7 +59,7 @@ FreezeClient(client, time)
UnfreezeClient(client);
}
SetEntityMovetype(client, MOVETYPE_NONE);
SetEntityMoveType(client, MOVETYPE_NONE);
SetEntityRenderColor(client, 0, 128, 255, 192);
new Float:vec[3];
@@ -81,7 +81,7 @@ UnfreezeClient(client)
GetClientEyePosition(client, vec);
EmitAmbientSound(SOUND_FREEZE, vec, client, SNDLEVEL_RAIDSIREN);
SetEntityMovetype(client, MOVETYPE_WALK);
SetEntityMoveType(client, MOVETYPE_WALK);
SetEntityRenderColor(client, 255, 255, 255, 255);
}
@@ -191,7 +191,7 @@ public Action:Timer_Freeze(Handle:timer, any:client)
g_FreezeTracker[client]--;
SetEntityMovetype(client, MOVETYPE_NONE);
SetEntityMoveType(client, MOVETYPE_NONE);
SetEntityRenderColor(client, 0, 128, 255, 135);
new Float:vec[3];
+4 -4
View File
@@ -38,15 +38,15 @@ SetupNoClip()
PerformNoClip(client, target)
{
new movetype = GetEntityMovetype(target);
PrintToChatAll("movetype was %d", movetype);
new MoveType:movetype = GetEntityMoveType(target);
if (movetype != MOVETYPE_NOCLIP)
{
SetEntityMovetype(target, MOVETYPE_NOCLIP);
SetEntityMoveType(target, MOVETYPE_NOCLIP);
}
else
{
SetEntityMovetype(target, MOVETYPE_WALK);
SetEntityMoveType(target, MOVETYPE_WALK);
}
LogAction(client, target, "\"%L\" toggled noclip on \"%L\"", client, target);