From b3b3ce4c2dfb3f14c575f704fa2131b123c83c7e Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sun, 21 Aug 2005 16:36:40 +0000 Subject: [PATCH] added more pdata funcs --- plugins/include/engine.inc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/plugins/include/engine.inc b/plugins/include/engine.inc index 15430a52..f58539be 100755 --- a/plugins/include/engine.inc +++ b/plugins/include/engine.inc @@ -279,4 +279,12 @@ native is_visible(entity, target); //Added at twistedeuphoria's request, see funcwiki for details native trace_forward(Float:start[3], Float:angle, Float:give, ignoreEnt, &Float:hitX, &Float:hitY, &Float:shortestDistance, &Float:shortestDistLow, &Float:shortestDistHigh); +//NOTE that for the string offsets below, on AMD64, a byref (char **) offset is NOT the same as an int offset +//In fact it's QWORD aligned rather than DWORD aligned, so the offset will be exactly half. +//Gets a string from a private offset. If byref is false, the string is treated as static rather than dynamic. +native get_pdata_string(entity, offset, dest[], maxlength, byref=1, linux=-5); + +//Sets a string in a private offset. +native set_pdata_string(entity, offset, const source[], realloc=2, linux=-5); + #include