Fuck Alejandro. I was about saying: First.
Nice, stupok. Taking a look at the code now.
Edit:
I've looked at the code now. There isn't much to say. Its pretty straight forward, there's nothing to optimize i guess. The only think i can see that you can modify is in "CreateNewMessage()":
PHP Code:
fAimVector[0] = fAimVector[0] * 9999.0 + fPlayerOrigin[0]
fAimVector[1] = fAimVector[1] * 9999.0 + fPlayerOrigin[1]
fAimVector[2] = fAimVector[2] * 9999.0 + fPlayerOrigin[2]
// execute traceline, grab normal vector and end position
new iTr = create_tr2()
engfunc( EngFunc_TraceLine, fPlayerOrigin, fAimVector, IGNORE_MONSTERS, id, iTr )
get_tr2( iTr, TR_vecEndPos, fAimOrigin )
get_tr2( iTr, TR_vecPlaneNormal, fNormalVector )
free_tr2( iTr )
Changing the 9999.0 to a closer, clearly visible, position, check if the trace "happened" and if don't say something like "You are too distant from a wall".
Nothing, really.
Edit 2:
What about cvars to change the colors/backgrounds of the printed characters?
__________________