Game Development Community

dev|Pro Game Development Curriculum

Torque Admin System

by Daniel Neilsen · 04/03/2002 (1:22 pm) · 3 comments

Download Code File

The Torque Admin System is a plugin based admin mod, suitable for any TGE Project. It includes a user access level and login system and a flexible menu system making adding another menu item as simple as typing one line of code.

The admin mod includes a full instruction .txt in the zip of how to use and create plugins, how the access levels work, etc, etc


To add to your project:
1) Unzip into /example
2) edit example/main.cs
$userMods = "fps;admin";
3) Add the keybinds into default.bind.cs in fps
moveMap.bind(keyboard, "F3", "", "toggleAdminMenuGui");
moveMap.bind(keyboard, "insert", "", "adminSubmitYesVote");
moveMap.bind(keyboard, "delete", "", "adminSubmitNoVote");

4) add the following into optionsdlg.cs in fps

$RemapName[$RemapCount] = "Admin Menu Toggle";
$RemapCmd[$RemapCount] = "toggleAdminMenuGui";
$RemapCount++;
$RemapName[$RemapCount] = "Vote Yes";
$RemapCmd[$RemapCount] = "adminSubmitYesVote";
$RemapCount++;
$RemapName[$RemapCount] = "Vote No";
$RemapCmd[$RemapCount] = "adminSubmitNoVote";
$RemapCount++;

5) Run example
6) Open options and bind your admin hud key


This resource is up here as a temporary measure until we can sort out a better way for distribution. As other developers create plugins they can be submitted to for me inclusion into the mod by emailing them to me.

If you have any questions at all about this system please contact me.

#1
04/04/2002 (4:06 am)
heh cool i will just add it to the dm mod :)

(my death match part of the project is a mod)
#2
06/27/2002 (1:09 pm)
Excellent resource !
#3
06/22/2004 (3:21 am)
Thanks for this resource :)