ATTRIB(Weapon, mdl, string, "");
/** M: model MDL_id_ITEM */
ATTRIB(Weapon, m_model, entity, NULL);
- /** M: simplemdl : simpleitems weapon model/image */
- ATTRIB(Weapon, w_simplemdl, string, "foobar");
/** M: crosshair : per-weapon crosshair: "CrosshairImage Size" */
ATTRIB(Weapon, w_crosshair, string, "gfx/crosshair1");
/** A: crosshair : per-weapon crosshair size (argument two of "crosshair" field) */
vector clr,
string modelname,
entity m,
- string simplemdl,
string crosshair,
string wepimg,
string refname,
this.wpcolor = clr;
this.mdl = modelname;
this.m_model = m;
- this.w_simplemdl = strzone(simplemdl); // simpleitems weapon model/image
this.w_crosshair = strzone(car(crosshair));
string s = cdr(crosshair);
this.w_crosshair_size = ((s != "") ? stof(s) : 1); // so that we can scale the crosshair from code (for compat)
} \
REGISTER_INIT(WEP, id)
-#define _REGISTER_WEAPON(id, function, ammotype, impulse, flags, rating, color, modelname, mdl, simplemdl, crosshair, wepimg, refname, wepname) \
- REGISTER_WEAPON_2(id, NEW(Weapon, function, ammotype, impulse, flags, rating, color, modelname, mdl, simplemdl, crosshair, wepimg, refname, wepname))
+#define _REGISTER_WEAPON(id, function, ammotype, impulse, flags, rating, color, modelname, mdl, crosshair, wepimg, refname, wepname) \
+ REGISTER_WEAPON_2(id, NEW(Weapon, function, ammotype, impulse, flags, rating, color, modelname, mdl, crosshair, wepimg, refname, wepname))
#ifndef MENUQC
- #define REGISTER_WEAPON_14(id, function, ammotype, impulse, flags, rating, color, modelname, mdl, simplemdl, crosshair, wepimg, refname, wepname) \
+ #define REGISTER_WEAPON_13(id, function, ammotype, impulse, flags, rating, color, modelname, mdl, crosshair, wepimg, refname, wepname) \
bool function(entity this, int); \
- _REGISTER_WEAPON(id, function, ammotype, impulse, flags, rating, color, modelname, mdl, simplemdl, crosshair, wepimg, refname, wepname)
+ _REGISTER_WEAPON(id, function, ammotype, impulse, flags, rating, color, modelname, mdl, crosshair, wepimg, refname, wepname)
#else
- #define REGISTER_WEAPON_14(id, function, ammotype, impulse, flags, rating, color, modelname, mdl, simplemdl, crosshair, wepimg, refname, wepname) \
- _REGISTER_WEAPON(id, w_new, ammotype, impulse, flags, rating, color, modelname, NULL, simplemdl, crosshair, wepimg, refname, wepname)
+ #define REGISTER_WEAPON_13(id, function, ammotype, impulse, flags, rating, color, modelname, mdl, crosshair, wepimg, refname, wepname) \
+ _REGISTER_WEAPON(id, w_new, ammotype, impulse, flags, rating, color, modelname, NULL, crosshair, wepimg, refname, wepname)
#endif
#include "all.inc"
/* color */ '1 1 1',
/* modelname */ "arc",
/* model */ MDL_ARC_ITEM,
-/* simplemdl */ "foobar",
/* crosshair */ "gfx/crosshairhlac 0.7",
/* wepimg */ "weaponarc",
/* refname */ "arc",
/* color */ '1 0.5 0.5',
/* modelname */ "laser",
/* model */ MDL_BLASTER_ITEM,
-/* simplemdl */ "foobar",
/* crosshair */ "gfx/crosshairlaser 0.5",
/* wepimg */ "weaponlaser",
/* refname */ "blaster",
/* color */ '1 0.5 1',
/* modelname */ "crylink",
/* model */ MDL_CRYLINK_ITEM,
-/* simplemdl */ "foobar",
/* crosshair */ "gfx/crosshaircrylink 0.5",
/* wepimg */ "weaponcrylink",
/* refname */ "crylink",
/* color */ '1 1 0',
/* modelname */ "rl",
/* model */ MDL_DEVASTATOR_ITEM,
-/* simplemdl */ "foobar",
/* crosshair */ "gfx/crosshairrocketlauncher 0.7",
/* wepimg */ "weaponrocketlauncher",
/* refname */ "devastator",
/* color */ '0 0.5 1',
/* modelname */ "electro",
/* model */ MDL_ELECTRO_ITEM,
-/* simplemdl */ "foobar",
/* crosshair */ "gfx/crosshairelectro 0.6",
/* wepimg */ "weaponelectro",
/* refname */ "electro",
/* color */ '1 0.5 0',
/* modelname */ "fireball",
/* model */ MDL_FIREBALL_ITEM,
-/* simplemdl */ "foobar",
/* crosshair */ "gfx/crosshairfireball",
/* wepimg */ "weaponfireball",
/* refname */ "fireball",
/* color */ '1 1 0.5',
/* modelname */ "hagar",
/* model */ MDL_HAGAR_ITEM,
-/* simplemdl */ "foobar",
/* crosshair */ "gfx/crosshairhagar 0.8",
/* wepimg */ "weaponhagar",
/* refname */ "hagar",
/* color */ '0 1 0',
/* modelname */ "hlac",
/* model */ MDL_HLAC_ITEM,
-/* simplemdl */ "foobar",
/* crosshair */ "gfx/crosshairhlac 0.6",
/* wepimg */ "weaponhlac",
/* refname */ "hlac",
/* color */ '0.5 0.5 0',
/* modelname */ "ok_hmg",
/* model */ MDL_HMG_ITEM,
-/* simplemdl */ "foobar",
/* crosshair */ "gfx/crosshairuzi 0.6",
/* wepimg */ "weaponhmg",
/* refname */ "hmg",
/* color */ '0 0.5 0',
/* modelname */ "hookgun",
/* model */ MDL_HOOK_ITEM,
-/* simplemdl */ "foobar",
/* crosshair */ "gfx/crosshairhook 0.5",
/* wepimg */ "weaponhook",
/* refname */ "hook",
/* color */ '1 1 0',
/* modelname */ "uzi",
/* model */ MDL_MACHINEGUN_ITEM,
-/* simplemdl */ "foobar",
/* crosshair */ "gfx/crosshairuzi 0.6",
/* wepimg */ "weaponuzi",
/* refname */ "machinegun",
/* color */ '0.75 1 0',
/* modelname */ "minelayer",
/* model */ MDL_MINELAYER_ITEM,
-/* simplemdl */ "foobar",
/* crosshair */ "gfx/crosshairminelayer 0.9",
/* wepimg */ "weaponminelayer",
/* refname */ "minelayer",
/* color */ '1 0 0',
/* modelname */ "gl",
/* model */ MDL_MORTAR_ITEM,
-/* simplemdl */ "foobar",
/* crosshair */ "gfx/crosshairgrenadelauncher 0.7",
/* wepimg */ "weapongrenadelauncher",
/* refname */ "mortar",
#ifndef MENUQC
/* model */ ATTRIB(PortoLaunch, m_model, Model, MDL_PORTO_ITEM);
#endif
-/* simplemdl */ ATTRIB(PortoLaunch, w_simplemdl, string, "foobar");
/* crosshair */ ATTRIB(PortoLaunch, w_crosshair, string, "gfx/crosshairporto");
/* crosshair */ ATTRIB(PortoLaunch, w_crosshair_size, float, 0.6);
/* wepimg */ ATTRIB(PortoLaunch, model2, string, "weaponporto");
/* color */ '0.5 1 0',
/* modelname */ "campingrifle",
/* model */ MDL_RIFLE_ITEM,
-/* simplemdl */ "foobar",
/* crosshair */ "gfx/crosshairrifle 0.6",
/* wepimg */ "weaponrifle",
/* refname */ "rifle",
/* color */ '0.5 0.5 0',
/* modelname */ "ok_rl",
/* model */ MDL_RPC_ITEM,
-/* simplemdl */ "foobar",
/* crosshair */ "gfx/crosshairrocketlauncher 0.7",
/* wepimg */ "weaponrpc",
/* refname */ "rpc",
/* color */ '0.5 1 0',
/* modelname */ "seeker",
/* model */ MDL_SEEKER_ITEM,
-/* simplemdl */ "foobar",
/* crosshair */ "gfx/crosshairseeker 0.8",
/* wepimg */ "weaponseeker",
/* refname */ "seeker",
/* color */ '0.5 0.25 0',
/* modelname */ "shotgun",
/* model */ MDL_SHOCKWAVE_ITEM,
-/* simplemdl */ "foobar",
/* crosshair */ "gfx/crosshairshotgun 0.7",
/* wepimg */ "weaponshotgun",
/* refname */ "shockwave",
/* color */ '0.5 0.25 0',
/* modelname */ "shotgun",
/* model */ MDL_SHOTGUN_ITEM,
-/* simplemdl */ "foobar",
/* crosshair */ "gfx/crosshairshotgun 0.65",
/* wepimg */ "weaponshotgun",
/* refname */ "shotgun",
/* color */ '0 1 0',
/* modelname */ "tuba",
/* model */ MDL_TUBA_ITEM,
-/* simplemdl */ "foobar",
/* crosshair */ "gfx/crosshairtuba",
/* wepimg */ "weapontuba",
/* refname */ "tuba",
/* color */ '0.5 1 1',
/* modelname */ "minstanex",
/* model */ MDL_VAPORIZER_ITEM,
-/* simplemdl */ "foobar",
/* crosshair */ "gfx/crosshairminstanex 0.6",
/* wepimg */ "weaponminstanex",
/* refname */ "vaporizer",
/* color */ '0.5 1 1',
/* modelname */ "nex",
/* model */ MDL_VORTEX_ITEM,
-/* simplemdl */ "foobar",
/* crosshair */ "gfx/crosshairnex 0.65",
/* wepimg */ "weaponnex",
/* refname */ "vortex",