AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   DoDx - dod_set_user_class Sets to En Team Skin (https://forums.alliedmods.net/showthread.php?t=6008)

Zor 09-19-2004 11:48

DoDx - dod_set_user_class Sets to En Team Skin
 
When I call dod_set_user_class(player, 1) in one of my plugins, it changes the skin of the player to the Enemy skin and they get the enemies weapons. Eg, I use this to flip a person from the sniper role to the Kar role. Well they become a Rifleman with a Garand! Fun, but not what supose to happen!

Cheers!

FeuerSturm 09-19-2004 11:57

all classes have their own number, so the numbers don't start
from 1 again for every team.

so 1 should be the allies rifleman class, that's correct!

use dod_get_user_class to get the number of the classes :wink:

SidLuke 09-19-2004 15:26

It is not a bug :P
You can create DoD Spy plugin ! :D

FeuerSturm 09-19-2004 15:28

Quote:

Originally Posted by SidLuke
It is not a bug :P
You can create DoD Spy plugin ! :D

but spies would be recognized easlyly as they don't have overhead icons then :P

Zor 09-20-2004 16:31

Heheheh...ok...is there an enum that goes with that Sid? Or should I just guess?

Cheers!

FeuerSturm 09-20-2004 19:30

lazy guy :P

say /showclass
and your current class's ID is displayed! :wink:

get a piece of paper and a pencil :wink:

Zor 09-20-2004 21:09

Not lazy, the thing about it is that I fixed it by just setting the users team to be spectators then sent him back to his team with a random class. Easy fix for now!

Cheers!

FeuerSturm 09-21-2004 05:12

Code:

/* CLASS                  ID
*  ==========================
*
* Americans:
*
*  Rifleman                1
*  Staff Sergeant          2
*  Master Sergeant          3
*  Sergeant                4
*  Sniper                  5
*  Support Infantry        6
*  Machine Gunner          7
*  Bazooka                  8
*
* Germans:
*
*  Grenadier              10
*  Stosstruppe            11
*  Unteroffizier          12
*  Sturmtruppe            13
*  Scharfschütze          14
*  FG42-Zweibein          15
*  FG42-Zielfernrohr      16
*  MG34-Schütze            17
*  MG42-Schütze            18
*  Panzerjäger            19
*
* Brits:
*
*  Rifleman                21
*  Sergeant Major          22
*  Marksman                23
*  Gunner                  24
*  PIAT                    25
*/


Zor 09-21-2004 10:03

Ok Excellent. Thank you kindly. BTW...I'm almost done the site for the DoD Plugins Team to use and work out of. You still interested...I'm sure you said you were, but cant remember at the moment.

Cheers!

Zor 09-21-2004 10:11

Ok Sid can you get this put into the official dodconst.inc? I know its yours so thats why Im asking:

Code:
/* DoD Classes */ enum {          RIFLEMAN = 1,     STAFF_SERGEANT,     MASTER_SERGEANT,     SERGEANT,     SNIPER,     SUPPORT_INFANTRY,     MACHINE_GUNNER,     BAZOOKA,     GRENADIER,     STOSSTRUPPE,     UNTEROFFIZIER,     STURMTRUPPE,     SCHARFSCHÜTZE,     FG42-ZWEIBEIN,     FG42-ZIELFERNROHR,     MG34-SCHUTZE,     MG42-SCHUTZE,     PANZERJAGER,     RIFLEMAN,     SERGEANT_MAJOR,     MARKSMAN,     GUNNER,     PIAT, };

I'll be using it in my stuff...but It wont be publishable untill its in their!

Cheers!


All times are GMT -4. The time now is 17:21.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.