fix bugs?
This commit is contained in:
parent
534fc75113
commit
617e2c4963
@ -102,7 +102,7 @@ public MRESReturn OnAcceptInput(int entity, Handle hReturn, Handle hParams)
|
||||
if(StrEqual(sCommand, "Activate", false))
|
||||
{
|
||||
int attachedObject = GetEntPropEnt(entity, Prop_Data, "m_attachedObject");
|
||||
if(attachedObject)
|
||||
if(attachedObject != INVALID_ENT_REFERENCE)
|
||||
{
|
||||
int vphysObj = GetVPhysicsObject(attachedObject);
|
||||
if(vphysObj)
|
||||
|
@ -518,7 +518,7 @@ void RecordDataIntoRecord(int iEntity, LagRecord Record)
|
||||
void RestoreEntityFromRecord(int iEntity, int iFilter, LagRecord Record)
|
||||
{
|
||||
FilterTriggerMoved(iFilter);
|
||||
BlockSolidMoved(iFilter);
|
||||
BlockSolidMoved(iEntity);
|
||||
|
||||
SDKCall(g_hSetAbsAngles, iEntity, Record.vecAngles);
|
||||
SDKCall(g_hSetAbsOrigin, iEntity, Record.vecOrigin);
|
||||
|
@ -15,8 +15,8 @@ forward void OnRunThinkFunctionsPost(bool simulating);
|
||||
native void FilterTriggerMoved(int entity);
|
||||
|
||||
// -1 = Ignore, normal operation.
|
||||
// 0 = Block ALL SV_TriggerMoved.
|
||||
// >0 = Entity index for which to allow SV_TriggerMoved to be called.
|
||||
// 0 = Block ALL SV_SolidMoved.
|
||||
// >0 = Entity index for which to allow SV_SolidMoved to be called.
|
||||
// REMEMBER TO CALL THIS AGAIN WITH -1 AFTER USING IT !!!
|
||||
native void BlockSolidMoved(int entity);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user