wep.flags |= FL_TOSSED;
wep.colormap = own.colormap;
wep.glowmod = weaponentity_glowmod(info, own, own.clientcolors, own.(weaponentity));
+ navigation_dynamicgoal_init(wep, false);
W_DropEvent(wr_drop,own,wpn,wep,weaponentity);
else
{
int superweapons = 1;
- FOREACH(Weapons, it != WEP_Null, LAMBDA(
+ FOREACH(Weapons, it != WEP_Null, {
WepSet set = it.m_wepset;
if((set & WEPSET_SUPERWEAPONS) && (own.weapons & set)) ++superweapons;
- ));
+ });
if(superweapons <= 1)
{
wep.superweapons_finished = own.superweapons_finished;
return false;
if (g_weaponarena)
return 0;
- if (g_cts)
- return 0;
if(w == WEP_Null.m_id)
return false;
Send_Notification(NOTIF_ONE, this, MSG_MULTI, ITEM_WEAPON_DROP, a, w.m_id);
}
-void SpawnThrownWeapon(entity this, vector org, float w, .entity weaponentity)
+void SpawnThrownWeapon(entity this, vector org, Weapon wep, .entity weaponentity)
{
- entity wep = this.(weaponentity).m_weapon;
+ //entity wep = this.(weaponentity).m_weapon;
if(this.weapons & WepSet_FromWeapon(wep))
if(W_IsWeaponThrowable(this, wep.m_id))