X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fserver%2Fcl_client.qc;h=5c980920b7228a5dcc37681bca3e7b3fa855afd1;hp=d5ffae1e50d33f416fa9d05a30185107eb183e2b;hb=580c768d0f2e32d2b545fa80c08c515aeb0ca67a;hpb=b9bede8374a53ef578aefc574672bf9af982ba8b diff --git a/qcsrc/server/cl_client.qc b/qcsrc/server/cl_client.qc index d5ffae1e50..5c980920b7 100644 --- a/qcsrc/server/cl_client.qc +++ b/qcsrc/server/cl_client.qc @@ -12,6 +12,14 @@ void send_CSQC_nexvelocity(entity e) { WriteByte(MSG_ONE, TE_CSQC_NEX_VELOCITY); WriteShort(MSG_ONE, cvar("g_balance_nex_velocitydependent_minspeed")); WriteShort(MSG_ONE, cvar("g_balance_nex_velocitydependent_maxspeed")); + WriteShort(MSG_ONE, cvar("g_balance_nex_velocitydependent_falloff_factor") * 10000); +} + +void send_CSQC_cr_maxbullets(entity e) { + msg_entity = e; + WriteByte(MSG_ONE, SVC_TEMPENTITY); + WriteByte(MSG_ONE, TE_CSQC_CR_MAXBULLETS); + WriteByte(MSG_ONE, cvar("g_balance_campingrifle_magazinecapacity")); } void Announce(string snd) { @@ -1607,6 +1615,7 @@ void ClientConnect (void) send_CSQC_teamnagger(); send_CSQC_nexvelocity(self); + send_CSQC_cr_maxbullets(self); CheatInitClient(); }