Raised This Month: $ Target: $400
 0% 

DoDx - dod_set_user_class Sets to En Team Skin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Zor
Veteran Member
Join Date: Mar 2004
Location: Toronto, ON
Old 09-19-2004 , 11:48   DoDx - dod_set_user_class Sets to En Team Skin
Reply With Quote #1

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!
__________________
Zor is offline
Send a message via AIM to Zor Send a message via MSN to Zor Send a message via Yahoo to Zor
FeuerSturm
AlliedModders Donor
Join Date: Apr 2004
Old 09-19-2004 , 11:57  
Reply With Quote #2

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
FeuerSturm is offline
SidLuke
Senior Member
Join Date: Mar 2004
Location: Poland, Chrzanow
Old 09-19-2004 , 15:26  
Reply With Quote #3

It is not a bug
You can create DoD Spy plugin !
SidLuke is offline
Send a message via AIM to SidLuke Send a message via MSN to SidLuke
FeuerSturm
AlliedModders Donor
Join Date: Apr 2004
Old 09-19-2004 , 15:28  
Reply With Quote #4

Quote:
Originally Posted by SidLuke
It is not a bug
You can create DoD Spy plugin !
but spies would be recognized easlyly as they don't have overhead icons then
FeuerSturm is offline
Zor
Veteran Member
Join Date: Mar 2004
Location: Toronto, ON
Old 09-20-2004 , 16:31  
Reply With Quote #5

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

Cheers!
__________________
Zor is offline
Send a message via AIM to Zor Send a message via MSN to Zor Send a message via Yahoo to Zor
FeuerSturm
AlliedModders Donor
Join Date: Apr 2004
Old 09-20-2004 , 19:30  
Reply With Quote #6

lazy guy

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

get a piece of paper and a pencil
FeuerSturm is offline
Zor
Veteran Member
Join Date: Mar 2004
Location: Toronto, ON
Old 09-20-2004 , 21:09  
Reply With Quote #7

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!
__________________
Zor is offline
Send a message via AIM to Zor Send a message via MSN to Zor Send a message via Yahoo to Zor
FeuerSturm
AlliedModders Donor
Join Date: Apr 2004
Old 09-21-2004 , 05:12  
Reply With Quote #8

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
*/
FeuerSturm is offline
Zor
Veteran Member
Join Date: Mar 2004
Location: Toronto, ON
Old 09-21-2004 , 10:03  
Reply With Quote #9

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 is offline
Send a message via AIM to Zor Send a message via MSN to Zor Send a message via Yahoo to Zor
Zor
Veteran Member
Join Date: Mar 2004
Location: Toronto, ON
Old 09-21-2004 , 10:11  
Reply With Quote #10

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!
__________________
Zor is offline
Send a message via AIM to Zor Send a message via MSN to Zor Send a message via Yahoo to Zor
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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