Bug #804

Fix restrictions

Added by IR4T4 over 4 years ago. Updated 6 months ago.

Status:Feedback% Done:

50%

Priority:NormalSpent time:-
Assignee:-
Category:Mod QAGAME
Target version:2.78
OS: Arch:

Description

case WP_KAR98 in line 1613 is never reached - IS_HEAVY_WEAPON weapon check at top of function denies that
coverity CID: 1152803


Related issues

Related to ET: Legacy Development - Bug #1151: Let class command check for restricted classes & weapons Fixed 25.12.2018

Associated revisions

Revision eb92ad27
Added by IR4T4 over 4 years ago

game: G_IsWeaponDisabled adjusted to consider rifflenade weapons &
basic/alt weapon count refs #808

Revision 5f1158cd
Added by IR4T4 over 4 years ago

mod: take alt weapons into account of restriction code refs #804

Revision 59abe8ae
Added by IR4T4 about 4 years ago

mod: fix weapon restriction condition refs #804

Revision 3a0f9b22
Added by IR4T4 about 4 years ago

mod: missing weapons for restrictions refs #804

History

#1 Updated by IR4T4 over 4 years ago

  • % Done changed from 0 to 30

I’ve had a c&p virus in the commit message related to the issue index:
http://dev.etlegacy.com/projects/etlegacy/repository/revisions/eb92ad27d7216939df3f9774b0963d7ae53e42b5


CG_LimboPanel_RealWeaponIsDisabled in cg_limbopanel.c

#2 Updated by IR4T4 over 4 years ago

  • Subject changed from Fix restriction of WP_KAR98 in G_IsWeaponDisabled to Fix restrictions
  • Status changed from New to Feedback
  • Target version changed from 2.74 to 2.78
  • % Done changed from 30 to 50

CG_LimboPanel_RealWeaponIsDisabled

and

G_IsWeaponDisabled

should be adjusted to take alt weapons into account.


- check if we have to count picked up opposite team weapons as well

#3 Updated by IR4T4 almost 4 years ago

  • Target version changed from 2.78 to 2.75

We should test this deeply.

#4 Updated by IR4T4 almost 4 years ago

  • Target version changed from 2.75 to 2.78

#5 Updated by IR4T4 about 3 years ago

  • Target version changed from 2.78 to 2.76

#6 Updated by IR4T4 almost 3 years ago

  • Target version changed from 2.76 to 2.78

#7 Updated by IR4T4 10 months ago

  • Related to Bug #1151: Let class command check for restricted classes & weapons added

#8 Updated by IR4T4 10 months ago

  • Target version changed from 2.78 to 2.77

#9 Updated by IR4T4 8 months ago

  • Related to Bug #1203: Random switching of weapons added

#10 Updated by Spyhawk 6 months ago

  • Related to deleted (Bug #1203: Random switching of weapons)

#11 Updated by Spyhawk 6 months ago

  • Target version changed from 2.77 to 2.78

Also available in: Atom PDF