X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fserver%2Fclient.qh;h=8b925680679f23006e8008d9d24de88ba35d1d7f;hp=c8f060d23dda621500cb952c1836858c46090348;hb=8e5d376c49510049572c7c182ba8778c8a8f80dd;hpb=0076d3f631e54b908b7506883c75c6d28f6b9505 diff --git a/qcsrc/server/client.qh b/qcsrc/server/client.qh index c8f060d23d..8b92568067 100644 --- a/qcsrc/server/client.qh +++ b/qcsrc/server/client.qh @@ -17,7 +17,7 @@ CLASS(Client, Object) /** Client IP */ ATTRIB(Client, netaddress, string, this.netaddress); ATTRIB(Client, playermodel, string, this.playermodel); - ATTRIB(Client, playerskin, int, this.playerskin); + ATTRIB(Client, playerskin, string, this.playerskin); /** fingerprint of CA key the player used to authenticate */ ATTRIB(Client, crypto_keyfp, string, this.crypto_keyfp); @@ -114,6 +114,7 @@ CLASS(Client, Object) ATTRIB(Client, cmd_floodtime, float, this.cmd_floodtime); ATTRIB(Client, wasplayer, bool, this.wasplayer); ATTRIB(Client, weaponorder_byimpulse, string, this.weaponorder_byimpulse); + ATTRIB(Client, autojoin_checked, bool, this.wasplayer); // networked cvars @@ -225,8 +226,7 @@ METHOD(Client, m_unwind, bool(Client this)) return false; } -/** print(), but only print if the server is not local */ -void dedicated_print(string input); +bool PlayerInList(entity player, string list); /// \brief Print the string to the client's chat. /// \param[in] client Client to print to. @@ -265,5 +265,21 @@ float CalcRotRegen(float current, float regenstable, float regenfactor, float re bool Spectate(entity this, entity pl); +void ClientInit_Spawn(); + +void PutObserverInServer(entity this); + +void SetSpectatee(entity this, entity spectatee); +void SetSpectatee_status(entity this, int spectatee_num); + +void FixPlayermodel(entity player); + +void ClientInit_misc(entity this); + +int GetPlayerLimit(); + +bool joinAllowed(entity this); +void Join(entity this); + #define SPECTATE_COPY() ACCUMULATE void SpectateCopy(entity this, entity spectatee) #define SPECTATE_COPYFIELD(fld) SPECTATE_COPY() { this.(fld) = spectatee.(fld); }