Bug #700

Class selecting by using commands

Added by Saukko almost 5 years ago. Updated almost 5 years ago.

Status:Fixed% Done:

100%

Priority:NormalSpent time:-
Assignee:-
Category:Mod generic
Target version:2.71
OS: Arch:

Description

I’m not certain should this be a feature request or a bug report. But I report this as a bug because the issue is the following.
How this should work: <class> <primary> <secondary>
But in fact it doesn’t work as intended?
Currently I’m able to choose class and all the classes are like this:
- 0 = soldier
- 1 = medic
- 2 = engineer
- 3 = field op
- 4 = covert op
And primary weapons work by taking them by their number, as soldier 1 = MP40/Thompson; 2 = Panzerfaust/Bazooka...

Anyway the secondary, I thought it would work the same as primary 1 for single pistol and 2 for akimbo, but it wasn’t like that. The values for akimbo are totally unknown.

What I would like to see is this for example: team r 1 1 1 - This would be for Axis medic with MP40 and single Luger and with the same way 1 1 2 would be MP40 and akimbo Lugers.

I didn’t find these document the same way as on NQ forums, where these are used for Lua.

-*S


Related issues

Related to ET: Legacy Development - Bug #678: Soldier with HW lvl4 cannot pickup enemy weapon on ground Fixed 28.11.2014
Related to ET: Legacy Development - Bug #594: Soldiers can't have two Thompsons or MP40s Fixed 09.10.2014

Associated revisions

Revision f71b9247
Added by Jacker almost 5 years ago

fixed the client side class command and added support for class selection with numbers, fixes #700

Revision ddb413d1
Added by Spyhawk almost 5 years ago

cgame: fixed double MP40/Thomson message with class cmd, refs #594 #700

History

#1 Updated by Spyhawk almost 5 years ago

  • Related to Bug #678: Soldier with HW lvl4 cannot pickup enemy weapon on ground added

#2 Updated by Spyhawk almost 5 years ago

Saukko> are you sure the primary weapon selection is working correctly? I can’t make it work.

Secondary selection is actually hardcoded (CG_Class_f), so we’ll have to implement it.

Edit: Letters for class selection (s, m, e, f, c) are supposed to work too, but it doesn’t seem to be the case.

#3 Updated by Saukko almost 5 years ago

I can try it all out just in a moment and give feedback how it went.

-*S

#4 Updated by Jacker almost 5 years ago

  • Status changed from New to Fixed
  • % Done changed from 0 to 100

#5 Updated by Jacker almost 5 years ago

Saukko just so you know, the "class" command was created to handle the weapon and class selection. The team command is a server side command which is a rather bad one for class scripting.

class m ⇒ medic with default primary and secondary.
class m 1 1 ⇒ medic with slot 1 weapon (smg) and a single pistol as secondary.
etc..

#6 Updated by Saukko almost 5 years ago

  • Related to Bug #594: Soldiers can't have two Thompsons or MP40s added

#7 Updated by IR4T4 almost 5 years ago

  • Target version changed from 2.78 to 2.71

Also available in: Atom PDF