Home
last modified time | relevance | path

Searched refs:ownernum (Results 1 – 25 of 35) sorted by relevance

12

/dports/games/bloodfrontier/bloodfrontier/src/game/
H A Daiman.h18 loopvj(clients) if(clients[j]->state.aitype >= 0 && clients[j]->state.ownernum == ci->clientnum) in findaiclient()
47 if(ci->state.ownernum < 0) in addai()
49 ci->state.ownernum = findaiclient(); in addai()
69 ci->state.ownernum = findaiclient(); in addai()
109 loopvrev(clients) if(clients[i]->state.aitype == type && clients[i]->state.ownernum >= 0) in delai()
126 if(ci->state.ownernum < 0) deleteai(ci); in reinitai()
147 if(cn < 0) { ci->state.aireinit = 0; ci->state.ownernum = -1; }
148 else if(ci->state.ownernum != cn) { ci->state.aireinit = 1; ci->state.ownernum = cn; }
153 loopv(clients) if(clients[i]->state.aitype >= 0 && clients[i]->state.ownernum == ci->clientnum) in removeai()
191 loopv(clients) if(clients[i]->state.aitype >= 0 && clients[i]->state.ownernum >= 0) in checksetup()
[all …]
H A Dserver.cpp1956 if(ci->state.ownernum >= 0) in putinitclient()
1960 putint(p, ci->state.ownernum); in putinitclient()
2829 if(ci) return ci->state.aitype >= 0 ? ci->state.ownernum : ci->clientnum; in peerowner()
3158 if(!cp || (cp->clientnum != sender && cp->state.ownernum != sender)) in parsepacket()
3192 if(!cp || (cp->clientnum!=ci->clientnum && cp->state.ownernum!=ci->clientnum)) break; in parsepacket()
3257 if(!cp || (cp->clientnum!=ci->clientnum && cp->state.ownernum!=ci->clientnum)) break; in parsepacket()
3275 if(!cp || (cp->clientnum!=ci->clientnum && cp->state.ownernum!=ci->clientnum)) break; in parsepacket()
3284 if(!cp || (cp->clientnum!=ci->clientnum && cp->state.ownernum!=ci->clientnum)) break; in parsepacket()
3297 if(!cp || (cp->clientnum!=ci->clientnum && cp->state.ownernum!=ci->clientnum)) break; in parsepacket()
3351 if(!cp || (cp->clientnum != ci->clientnum && cp->state.ownernum != ci->clientnum)) in parsepacket()
[all …]
H A Dctfmode.h99 if(!hasflaginfo || !flags.inrange(i) || ci->state.ownernum >= 0) return; in resetflag()
H A Dscoreboard.h475 gameent *od = game::getclient(o->ownernum); in gui()
512 if(o->aitype >= 0) g.textf("%d", 0xFFFFFF, NULL, o->ownernum); in gui()
/dports/games/sauerbraten/sauerbraten/src/fpsgame/
H A Daiman.h89 if(!ci || ci->ownernum < 0) { if(cn < 0) cn = i; continue; } in addai()
100 ci->ownernum = owner ? owner->clientnum : -1; in addai()
114 ci->ownernum = owner ? owner->clientnum : -1; in addai()
133 if(ci->ownernum >= 0 && !ci->aireinit && smode) smode->leavegame(ci, true); in deleteai()
135 clientinfo *owner = (clientinfo *)getclientinfo(ci->ownernum); in deleteai()
144 loopvrev(bots) if(bots[i] && bots[i]->ownernum >= 0) in deleteai()
154 if(ci->ownernum < 0) deleteai(ci); in reinitai()
170 if(ci->ownernum >= 0 && !ci->aireinit && smode) smode->leavegame(ci, true);
171 clientinfo *prevowner = (clientinfo *)getclientinfo(ci->ownernum);
173 if(!owner) { ci->aireinit = 0; ci->ownernum = -1; }
[all …]
H A Dscoreboard.cpp301 fpsent *p = o->ownernum >= 0 ? getclient(o->ownernum) : o; in renderscoreboard()
324 fpsent *p = o->ownernum >= 0 ? getclient(o->ownernum) : o; in renderscoreboard()
386 fpsent *p = o->ownernum >= 0 ? getclient(o->ownernum) : o; in renderscoreboard()
H A Dserver.cpp213 int clientnum, ownernum, connectmillis, sessionid, overflow; member
255 ENetPeer *peer = getclientpeer(ownernum); in calcpushrange()
1666 sendpacket(-1, 0, p.finalize(), ci.ownernum); in flushclientposition()
1837 putint(p, ci->ownernum); in putinitclient()
2375 ci->ownernum); in process()
2642 ci->clientnum = ci->ownernum = n; in localconnect()
2660 ci->clientnum = ci->ownernum = n; in clientconnect()
3043 if(cp && pcn != sender && cp->ownernum != sender) cp = NULL; in parsepacket()
3079 if(cp && pcn != sender && cp->ownernum != sender) cp = NULL; in parsepacket()
3092 if(cp && pcn != sender && cp->ownernum != sender) cp = NULL; in parsepacket()
[all …]
H A Dai.cpp157 if(d->ownernum != ocn) in init()
167 d->ownernum = ocn; in init()
173 if(d->ownernum >= 0 && player1->clientnum == d->ownernum) in init()
H A Dgame.h559 int ownernum, lastnode; member
563 …totalshots(0), edit(NULL), smoothmillis(-1), playermodel(-1), ai(NULL), ownernum(-1), muzzle(-1, -… in fpsent()
/dports/games/tesseract-data/tesseract/src/game/
H A Daiman.h88 if(!ci || ci->ownernum < 0) { if(cn < 0) cn = i; continue; } in addai()
99 ci->ownernum = owner ? owner->clientnum : -1; in addai()
113 ci->ownernum = owner ? owner->clientnum : -1; in addai()
135 clientinfo *owner = (clientinfo *)getclientinfo(ci->ownernum); in deleteai()
144 loopvrev(bots) if(bots[i] && bots[i]->ownernum >= 0) in deleteai()
154 if(ci->ownernum < 0) deleteai(ci); in reinitai()
157 …sendf(-1, 1, "ri8s", N_INITAI, ci->clientnum, ci->ownernum, ci->state.aitype, ci->state.skill, ci-… in reinitai()
170 clientinfo *prevowner = (clientinfo *)getclientinfo(ci->ownernum);
172 if(!owner) { ci->aireinit = 0; ci->ownernum = -1; }
173 …else if(ci->clientnum != owner->clientnum) { ci->aireinit = 2; ci->ownernum = owner->clientnum; ow…
H A Dserver.cpp208 int clientnum, ownernum, connectmillis, sessionid, overflow; member
250 ENetPeer *peer = getclientpeer(ownernum); in calcpushrange()
1529 sendpacket(-1, 0, p.finalize(), ci.ownernum); in flushclientposition()
1697 putint(p, ci->ownernum); in putinitclient()
2149 sendf(-1, 1, "ri4x", N_EXPLODEFX, ci->clientnum, atk, id, ci->ownernum); in process()
2183 ci->ownernum); in process()
2409 ci->clientnum = ci->ownernum = n; in localconnect()
2427 ci->clientnum = ci->ownernum = n; in clientconnect()
2812 if(cp && pcn != sender && cp->ownernum != sender) cp = NULL; in parsepacket()
2848 if(cp && pcn != sender && cp->ownernum != sender) cp = NULL; in parsepacket()
[all …]
H A Dgame.h373 int ownernum, lastnode; member
377 …, smoothmillis(-1), team(0), playermodel(-1), playercolor(0), ai(NULL), ownernum(-1), muzzle(-1, -… in gameent()
H A Dai.cpp162 if(d->ownernum != ocn) in init()
172 d->ownernum = ocn; in init()
179 if(d->ownernum >= 0 && player1->clientnum == d->ownernum) in init()
/dports/games/tesseract/tesseract/src/game/
H A Daiman.h88 if(!ci || ci->ownernum < 0) { if(cn < 0) cn = i; continue; } in addai()
99 ci->ownernum = owner ? owner->clientnum : -1; in addai()
113 ci->ownernum = owner ? owner->clientnum : -1; in addai()
135 clientinfo *owner = (clientinfo *)getclientinfo(ci->ownernum); in deleteai()
144 loopvrev(bots) if(bots[i] && bots[i]->ownernum >= 0) in deleteai()
154 if(ci->ownernum < 0) deleteai(ci); in reinitai()
157 …sendf(-1, 1, "ri8s", N_INITAI, ci->clientnum, ci->ownernum, ci->state.aitype, ci->state.skill, ci-… in reinitai()
170 clientinfo *prevowner = (clientinfo *)getclientinfo(ci->ownernum);
172 if(!owner) { ci->aireinit = 0; ci->ownernum = -1; }
173 …else if(ci->clientnum != owner->clientnum) { ci->aireinit = 2; ci->ownernum = owner->clientnum; ow…
H A Dserver.cpp208 int clientnum, ownernum, connectmillis, sessionid, overflow; member
250 ENetPeer *peer = getclientpeer(ownernum); in calcpushrange()
1529 sendpacket(-1, 0, p.finalize(), ci.ownernum); in flushclientposition()
1697 putint(p, ci->ownernum); in putinitclient()
2149 sendf(-1, 1, "ri4x", N_EXPLODEFX, ci->clientnum, atk, id, ci->ownernum); in process()
2183 ci->ownernum); in process()
2409 ci->clientnum = ci->ownernum = n; in localconnect()
2427 ci->clientnum = ci->ownernum = n; in clientconnect()
2812 if(cp && pcn != sender && cp->ownernum != sender) cp = NULL; in parsepacket()
2848 if(cp && pcn != sender && cp->ownernum != sender) cp = NULL; in parsepacket()
[all …]
H A Dgame.h373 int ownernum, lastnode; member
377 …, smoothmillis(-1), team(0), playermodel(-1), playercolor(0), ai(NULL), ownernum(-1), muzzle(-1, -… in gameent()
H A Dai.cpp162 if(d->ownernum != ocn) in init()
172 d->ownernum = ocn; in init()
179 if(d->ownernum >= 0 && player1->clientnum == d->ownernum) in init()
/dports/games/redeclipse16/base-1.6.0/src/game/
H A Daiman.h109 if(ci->ownernum < 0) in addai()
113 ci->ownernum = owner->clientnum; in addai()
130 ci->ownernum = owner ? owner->clientnum : -1; in addai()
185 clientinfo *owner = (clientinfo *)getinfo(ci->ownernum); in deleteai()
195 loopvrev(clients) if(clients[i]->actortype == type && clients[i]->ownernum >= 0) in delai()
211 if(ci->ownernum < 0) deleteai(ci); in reinitai()
228 clientinfo *prevowner = (clientinfo *)getinfo(ci->ownernum);
230 if(!owner) { ci->aireinit = 0; ci->ownernum = -1; }
231 …else if(ci->ownernum != owner->clientnum) { ci->aireinit = 1; ci->ownernum = owner->clientnum; own…
264 loopv(clients) if(clients[i]->actortype > A_PLAYER && clients[i]->ownernum >= 0) in checksetup()
[all …]
H A Dscoreboard.cpp269 gameent *e = game::getclient(d->ownernum); in scorehost()
275 defformatstring(owner, "[%d]", d->ownernum); in scorehost()
484 if(o->ownernum != game::player1->clientnum) hasip = true; in renderscoreboard()
493 if(o->ownernum != game::player1->clientnum) hashost = true; in renderscoreboard()
502 if(o->ownernum != game::player1->clientnum) hasver = true; in renderscoreboard()
H A Dcapturemode.h123 if(!canplay() || !hasflaginfo || !flags.inrange(i) || ci->ownernum >= 0) return; in resetaffinity()
H A Dai.cpp186 gameent *o = game::getclient(d->ownernum); in checkinfo()
215 if(d->ownernum != on) in init()
233 d->ownernum = on; in init()
241 if(d->ownernum >= 0 && game::player1->clientnum == d->ownernum) in init()
/dports/games/redeclipse/base-2.0.0/src/game/
H A Daiman.h96 if(ci->ownernum < 0) in addai()
100 ci->ownernum = owner->clientnum; in addai()
117 ci->ownernum = owner ? owner->clientnum : -1; in addai()
183 clientinfo *owner = (clientinfo *)getinfo(ci->ownernum); in deleteai()
193 loopvrev(clients) if(clients[i]->actortype == type && clients[i]->ownernum >= 0) in delai()
209 if(ci->ownernum < 0) deleteai(ci); in reinitai()
226 clientinfo *prevowner = (clientinfo *)getinfo(ci->ownernum);
228 if(!owner) { ci->aireinit = 0; ci->ownernum = -1; }
229 …else if(ci->ownernum != owner->clientnum) { ci->aireinit = 1; ci->ownernum = owner->clientnum; own…
262 loopv(clients) if(clients[i]->actortype > A_PLAYER && clients[i]->ownernum >= 0) in checksetup()
[all …]
H A Dcapturemode.h123 if(!canplay() || !hasflaginfo || !flags.inrange(i) || ci->ownernum >= 0) return; in resetaffinity()
H A Dai.cpp198 gameent *o = game::getclient(d->ownernum); in checkinfo()
227 if(d->ownernum != on) in init()
245 d->ownernum = on; in init()
254 if(d->ownernum >= 0 && game::player1->clientnum == d->ownernum) in init()
H A Dbombermode.h175 if(!canplay() || !hasflaginfo || !flags.inrange(i) || ci->ownernum >= 0) return; in resetaffinity()

12