Raised This Month: $100 Target: $400
 25% 

DOD Custom Random


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Day of Defeat        Category:   Fun Stuff        Approver:   Arkshine (91)
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-15-2010 , 15:02   DOD Custom Random
Reply With Quote #1

DOD Custom Random

Description
With this plugin you can set which classes you want to be included when playing on random.
How to use it:
There is a single command with three arguments, dod_custom_random. Each argument is a sum of the of class IDs given below. First argument for Allies, second for Axis and third for British.

Code:
-- Allies (US) --
Rifleman		1
Staff Sergeant		2
Master Sergeant		4
Sergeant		8
Sniper			16
Support Infantry	32
Machine Gunner		64
Bazooka			128
Random			512

-- Axis --
Grenadier		1
Stosstruppe		2
Unteroffizier		4
Sturmtuppe		8
Scharfschutze		16
Fg42-Zweibein		32
Fg42-Zielfernrohr	64
Mg34-Shutze		128
Mg42-Shutze		256
Panzerjager		512
Random			2048

-- Allies (UK) aka British --
Rifleman		1
Sergeant Major		2
Marksman		4
Gunner			8
PIAT			16
Random			64
Example:
If I only want to be either a Rifleman, Sniper or Machine Gunner on Allies then I would use 1+16+64 = 81 for my first argument. Do one for each of the three teams. Use 0 if you want to use random normally.
Auto set up:
If you do not want to type this in every map then you can create a file (in the client game and not the server) called:
/day of defeat/dod/dod_customrandom.cfg
and should look like this:
Code:
dod_custom_random 81 50 3
I understand that most of the people here don't play DOD but would appreciate any feedback about my actual code.
Attached Files
File Type: sma Get Plugin or Get Source (dod_custom_random.sma - 911 views - 4.7 KB)
__________________

Last edited by fysiks; 06-30-2011 at 17:14.
fysiks is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-30-2010 , 22:39   Re: DOD Custom Random
Reply With Quote #2

The plugin needs testing. If anyone can report that it does or doesn't work, please post, before approval.

If you would like any information regarding possible adjustments you could make or things you could do to make this better, please feel free to post here or PM me.
__________________
Arkshine is offline
Weezer
BANNED
Join Date: Oct 2010
Old 10-31-2010 , 00:05   Re: DOD Custom Random
Reply With Quote #3

This looks nice. I hope someone try this out.
Weezer is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-31-2010 , 00:07   Re: DOD Custom Random
Reply With Quote #4

Sadly there aren't many DOD players here that I know of other than me .
__________________
fysiks is offline
SaM.ThE.MaN
Senior Member
Join Date: Jan 2010
Old 11-01-2010 , 03:42   Re: DOD Custom Random
Reply With Quote #5

sorry ... dont play DOD -.-
__________________
  • Project : Level Plugin
o [||||||||||] - 100%
  • Project : OnePieceMod
o [||||||||||] - 20%
SaM.ThE.MaN is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-01-2010 , 14:02   Re: DOD Custom Random
Reply With Quote #6

Quote:
Originally Posted by fysiks View Post
Sadly there aren't many DOD players here that I know of other than me .
Ok, I trust you. The plugin is short and there is no point to wait.

Approved.
__________________
Arkshine is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 11-01-2010 , 15:02   Re: DOD Custom Random
Reply With Quote #7

Quote:
Originally Posted by Arkshine View Post
Ok, I trust you. The plugin is short and there is no point to wait.

Approved.
Thanks. If anything does arise I will be here to fix it .
__________________
fysiks is offline
Reply


Thread Tools
Display Modes

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 08:49.


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