Fixed prototype of set_offset_short

Fixed all offset natives (they checked ent index above maxClients, should've been maxEntities (some also checked if player is online))
Added s/get_offset_char()
Fixed set_pdata_float to set float value from parameter properly
Fixed set_pdata_short to set short value from parameter properly
Reimplemented find_ent_by_owner
This commit is contained in:
Johnny Bergström
2004-03-22 08:27:52 +00:00
parent 66a1f11387
commit b21bbcbf90
2 changed files with 71 additions and 37 deletions

View File

@ -51,11 +51,13 @@ native set_msg_arg_string(argn, szString[]);
native get_offset(id, offset);
native Float:get_offset_float(id, offset);
native get_offset_short(id, offset);
native get_offset_char(id, offset);
/* sets pvPrivateData offset. */
native set_offset(id, offset, value);
native set_offset_float(id, offset, Float:value);
native set_offset_short(id, offset);
native set_offset_short(id, offset, value);
native set_offset_char(id, offset, value);
/* Precaches any file. */
native precache_generic(szFile[]);