e.spawnflags = weapontype;
e.bot_pickupbasevalue = pickupbasevalue;
e.wpcolor = clr;
+ e.wpmodel = strzone(strcat("wpn-", ftos(id)));
e.mdl = modelname;
e.model = strzone(strcat("models/weapons/g_", modelname, ".md3"));
e.w_crosshair = strzone(car(crosshair));
string s = cdr(crosshair);
e.w_crosshair_size = ((s != "") ? stof(s) : 1); // so that we can scale the crosshair from code (for compat)
- e.model2 = strzone(strcat("wpn-", ftos(id)));
e.netname = refname;
e.message = wepname;
.float spawnflags; // M: flags // WEPSPAWNFLAG_... combined
.float bot_pickupbasevalue; // M: rating // bot weapon priority
.vector wpcolor; // M: color // waypointsprite color
-.string model2; // A: wpn-id // wpn- sprite name
+.string wpmodel; // A: wpn-id // wpn- sprite name
.string mdl; // M: model // modelname without g_, v_, w_
.string model; // A: model // full name of g_ model
.string w_crosshair; // M: crosshair // per-weapon crosshair: "CrosshairImage Size"
if(autocvar_g_showweaponspawns)
{
entity e;
- string s;
-
- e = get_weaponinfo(wpn);
- s = e.model2;
for(e = world; (e = findfloat(e, weapon, wpn)); )
{
if(!(e.flags & FL_ITEM))
continue;
WaypointSprite_Spawn(
- s,
+ (get_weaponinfo(wpn)).wpmodel,
1, 0,
world, e.origin,
self, 0,