GameTextManager: Push local changes.

:D
This commit is contained in:
zaCade 2019-10-08 14:08:09 +02:00
parent 45bb1a4c0b
commit 36f75d0a4e

View File

@ -74,31 +74,27 @@ public void OnEntityCreated(int entity, const char[] classname)
//---------------------------------------------------------------------------------------------------- //----------------------------------------------------------------------------------------------------
// Purpose: // Purpose:
//
// <int> m_textParms.channel
// <float> m_textParms.x
// <float> m_textParms.y
// <int> m_textParms.r1
// <int> m_textParms.g1
// <int> m_textParms.b1
// <int> m_textParms.a1
// <int> m_textParms.r2
// <int> m_textParms.g2
// <int> m_textParms.b2
// <int> m_textParms.a2
// <int> m_textParms.effect
// <float> m_textParms.fadeinTime
// <float> m_textParms.fadeoutTime
// <float> m_textParms.holdTime
// <float> m_textParms.fxTime
// <char> m_iszMessage
//---------------------------------------------------------------------------------------------------- //----------------------------------------------------------------------------------------------------
public MRESReturn OnAcceptInput(int entity, Handle hReturn, Handle hParams) public MRESReturn OnAcceptInput(int entity, Handle hReturn, Handle hParams)
{ {
/*
int channel = GetEntProp(entity,
//<int> m_textParms.channel
//<float> m_textParms.x
//<float> m_textParms.y
//<int> m_textParms.r1
//<int> m_textParms.g1
//<int> m_textParms.b1
//<int> m_textParms.a1
//<int> m_textParms.r2
//<int> m_textParms.g2
//<int> m_textParms.b2
//<int> m_textParms.a2
//<int> m_textParms.effect
//<float> m_textParms.fadeinTime
//<float> m_textParms.fadeoutTime
//<float> m_textParms.holdTime
//<float> m_textParms.fxTime
//<char> m_iszMessage
*/
char sInputName[128]; char sInputName[128];
DHookGetParamString(hParams, 1, sInputName, sizeof(sInputName)); DHookGetParamString(hParams, 1, sInputName, sizeof(sInputName));
@ -138,6 +134,7 @@ public MRESReturn OnAcceptInput(int entity, Handle hReturn, Handle hParams)
Message.fFXTime = GetEntPropFloat(entity, Prop_Data, "m_textParms.fxTime"); Message.fFXTime = GetEntPropFloat(entity, Prop_Data, "m_textParms.fxTime");
g_hMessageQueue.Push(Message); g_hMessageQueue.Push(Message);
DHookSetReturn(hReturn, false); DHookSetReturn(hReturn, false);
return MRES_Supercede; return MRES_Supercede;
} }