fixed target/classnames not saving what the frick how did i forget this

This commit is contained in:
shavit 2018-11-28 22:42:51 +02:00
parent 34a3a2ad49
commit fc69bd38ab

View File

@ -251,8 +251,8 @@ public void OnPluginStart()
RegConsoleCmd("sm_tele", Command_Tele, "Teleports to checkpoint. Usage: sm_tele [number]");
gH_CheckpointsCookie = RegClientCookie("shavit_checkpoints", "Checkpoints settings", CookieAccess_Protected);
gSM_Checkpoints = new StringMap();
gA_Targetnames = new ArrayList(ByteCountToCells(32));
gA_Classnames = new ArrayList(ByteCountToCells(32));
gA_Targetnames = new ArrayList(ByteCountToCells(64));
gA_Classnames = new ArrayList(ByteCountToCells(64));
gI_Ammo = FindSendPropInfo("CCSPlayer", "m_iAmmo");
@ -1830,6 +1830,8 @@ bool SaveCheckpoint(int client, int index, bool overflow = false)
iClassname = gA_Classnames.PushString(sClassname);
}
cpcache[iCPTargetname] = iTargetname;
cpcache[iCPClassname] = iClassname;
cpcache[mtCPMoveType] = GetEntityMoveType(target);
cpcache[fCPGravity] = GetEntityGravity(target);
cpcache[fCPSpeed] = GetEntPropFloat(target, Prop_Send, "m_flLaggedMovementValue");