X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fweapons%2Fall.qc;h=6605f00c26d2a2e48378f519f9a9fc86c314a7cb;hb=d8d83279984e45e770d6ec178e52cc3fdd2316b6;hp=9efbb29a2615aab18f98eaddd1a0359620455086;hpb=46f1ac4e74d212b95d3e2d08d36393a14a8e5cb7;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/weapons/all.qc b/qcsrc/common/weapons/all.qc index 9efbb29a2..6605f00c2 100644 --- a/qcsrc/common/weapons/all.qc +++ b/qcsrc/common/weapons/all.qc @@ -50,9 +50,9 @@ #ifdef SVQC #include "config.qc" #endif -#define IMPLEMENTATION -#include "all.inc" -#undef IMPLEMENTATION + +#include "weapon/_mod.inc" + // WEAPON PLUGIN SYSTEM @@ -530,7 +530,9 @@ void CL_WeaponEntity_SetModel(entity this, string name, bool _anim) int compressed_shotorg = compressShotOrigin(this.movedir); // make them match perfectly #ifdef SVQC - this.movedir = decompressShotOrigin(this.owner.stat_shotorg = compressed_shotorg); + // null during init + if (this.owner) this.owner.stat_shotorg = compressed_shotorg; + this.movedir = decompressShotOrigin(compressed_shotorg); #else this.movedir = decompressShotOrigin(compressed_shotorg); #endif @@ -639,12 +641,12 @@ CLIENT_COMMAND(weapon_find, "Show spawn locations of a weapon") } default: { - LOG_INFOF("Incorrect parameters for ^2%s^7\n", "weapon_find"); + LOG_INFOF("Incorrect parameters for ^2%s^7", "weapon_find"); } case CMD_REQUEST_USAGE: { - LOG_INFO("\nUsage:^3 cl_cmd weapon_find weapon\n"); - LOG_INFO(" Where 'weapon' is the lowercase weapon name, 'all' or 'unowned'.\n"); + LOG_INFO("Usage:^3 cl_cmd weapon_find weapon"); + LOG_INFO(" Where 'weapon' is the lowercase weapon name, 'all' or 'unowned'."); return; } }