EntBug Fix (For Servers) (AMX)

Thothie

Administrator
Staff member
Administrator
Moderator
MSC Archivist
Joined
Apr 8, 2005
Messages
16,342
Reaction score
326
Location
lost
Got any source for 'attach_view"? ;) Seems this is something that should be in the hard code.
 

Humming Bird

New Adventurer
Joined
Feb 16, 2007
Messages
233
Reaction score
0
attach_view attach_view.....................

vexdum.cpp said:
// attach_view, this allows you to attach a player's view to an entity.
// use attach_view(player, player) to reset view.
NATIVE(attach_view) {
int id = params[1];
int ent = params[2];
if(MF_IsPlayer(id, 1) && MF_IsEntity(ent)) {
edict_t *pClient = INDEXENT(id);
edict_t *pViewent = INDEXENT(ent);
SET_VIEW(pClient, pViewent);
}
return 1;
}
 
Top