Page 1 of 2
I have taken over the AdminUtils mutator project
Posted: Fri Aug 27, 2004 1:56 pm
by Rythmix
After discussing and working on implementing changes to the AdminUtils Mutator that jamie1224 and mKhaos7 have created, It has been handed over to me. ( see here:
http://www.ataricommunity.com/forums/sh ... ost5495389 )
I have already implemented some changes and currently using it on my server, I will have download sometime this afternoon for it, and most likely a new name.
Current New features are:
TempAdminOff - Now has the ability to enable AND disable Admin status
ChangeName - Change the name of a player if they have a vulgar name of some sort(ex. admin changename butthead11 NiceGuy11)
MeleeLoaded - Loaded with All Melee Weapons
ChaosLoaded - Loaded with All Chaos Weapons
the bottom 2 are hard coded but will be changed to read from an ini file to work dynamically with all mods. The 2 Chaosloaded and meleeloaded command are equivalent to the MadFragger and MadMelee commands.
This opens doors to test how Duel would play if we started with all melee weapons and got to switch to the melee weapon based on who you were fighting.
Read more at
http://www.ataricommunity.com/forums/sh ... ost5495389 for other new features I will be adding.
Stay Tuned for the Download!
Posted: Fri Aug 27, 2004 3:08 pm
by General_Sun
2 thumbs up
Posted: Fri Aug 27, 2004 5:30 pm
by The_0men
YEY! finaly cross bows and napalm grenades, slowmo mode and invasion monsters!......*drooles* plzzzzzzzzzz let it be reality!
Posted: Fri Aug 27, 2004 5:49 pm
by Rythmix
The_0men wrote:YEY! finaly cross bows and napalm grenades, slowmo mode and invasion monsters!......*drooles* plzzzzzzzzzz let it be reality!
lol those are already in there!
Posted: Fri Aug 27, 2004 5:50 pm
by AA/unreality
-dreams off killing warlords with a melee weap
Posted: Fri Aug 27, 2004 6:14 pm
by jb
cool!
So you doing melee invasion or you want us too? We do have DOC monsters we can add to go with this

Posted: Fri Aug 27, 2004 8:48 pm
by Shadowstar
Technically melee invasion is already possible but you have to go through some rather unofficial methods to do it... Dont ask me to tell you how.
Posted: Sat Aug 28, 2004 1:26 am
by Kaboodles
We've already spawned the DoC monsters, but it's not too much fun since they're all unarmed

.
Plus, we can't seem to get rid of those pesky skeleton dust things.
Posted: Sun Aug 29, 2004 1:42 am
by Rythmix
Sorry for the delay, I almost got the "read weapons for loaded from the INI" working, but while doing that, I thought of another feature.. now you can give a player a particular weapon one at a time.
the new command:
- GiveItem: Give a single weapon to a player, Im also going to try to add giving items like adrenaline powerups, shield/double damage pickups, and perhaps even chaos relics, also configurable from the ini file. thats 5 new functions so far.. and I have a few more in the works, please let me know if you think of any! I will release this new version shortly.
Posted: Mon Aug 30, 2004 9:20 pm
by Shadowstar
I love Adminutils! It's great for doing dev stuff on my personal server.
Posted: Mon Aug 30, 2004 10:40 pm
by Rythmix
Calling all Devs...
I cant figure this out. I've searched all over the wiki and can't figure this out. Im trying to read from the ini file a dynamic array called 'WeaponName'
so the ini file would read:
[AdminPlus.UltraAdmin]
WeaponName=chaosut.claw
WeaponName=chaosut.cutter
.
.
.
WeaponName=custom.weaponclass
you get the idea... its meant for giving loaded for any custom weaponclasses that a particuliar mod might have available, but instead of hardcoding 500 different mods, I want to read from the ini.
so here is the code:
Code: Select all
//=========================
class UltraAdmin extends Admin;
var config array<string> WeaponName;
//=========================
exec function CustomLoaded(string target)
{
local Inventory Inv;
local Mutator myMut;
local Pawn p;
local int i;
myMut = findMut(Level.Game.BaseMutator, class'AdminPlus.MutAdminPlus');
p = verifyTarget(target);
if (p == none)
return;
for (i = 0; i < class'AdminPlus.UltraAdmin'.default.WeaponName.Length; i++) {
P.Giveweapon(WeaponName(i));
}
AllAmmo(P);
For ( Inv=P.Inventory; Inv!=None; Inv=Inv.Inventory )
if ( Weapon(Inv) != None )
Weapon(Inv).Loaded();
}
}
}
now the rest of the code is a direct copy from the normal 'working' LOADED function so dont worry about that. The code snippet from above that is getting the error is in the for loop here:
Code: Select all
for (i = 0; i < class'AdminPlus.UltraAdmin'.default.WeaponName.Length; i++) {
P.Giveweapon(WeaponName(i));
}
the error i get during compile is:
D:\Games\UT2004\AdminPlus\Classes\UltraAdmin.uc(684) : Error, Call to 'Giveweapon': type mismatch in parameter 1
The For loop is getting no error, and I know the GiveWeapon function calls for a string.. and its clearly marked under the class:
var config array<string> WeaponName;
but its giving me a mismatch in the parameter and I can't figure out why. Ive looked at the way chaos guys call the spraypaints from the ini file and it looks very similar. Can anybody see the problem here? In defaultproperties i have:
WeaponName="xweapons.redeemer"
Any help at all would get this baby out the door for its first release under my new ownership.
Posted: Mon Aug 30, 2004 10:44 pm
by Shadowstar
If I was a coder, I'd probably know what to tell you...
Anyway, I'll see if I can get one of the brains to help out.
Posted: Tue Aug 31, 2004 1:06 am
by jb
Sorry ryth,
I was busy and did not get back to you right away.
Did you every load weaponname as that array will be empty till you fill it with something? I am guess you didnt but dont have all of your code so I could be wrong.
Anyways read them from the ini file like so:
P.Giveweapon(class'AdminPlus.UltraAdmin'.default.WeaponName);
You also may want to read them into new var (or the same one) only once during the game. That way you dont have to re-read the list every time a new player spawns...
Posted: Tue Aug 31, 2004 4:02 am
by Rythmix
jb wrote:Sorry ryth,
I was busy and did not get back to you right away.
Did you every load weaponname as that array will be empty till you fill it with something? I am guess you didnt but dont have all of your code so I could be wrong.
Anyways read them from the ini file like so:
P.Giveweapon(class'AdminPlus.UltraAdmin'.default.WeaponName);
You also may want to read them into new var (or the same one) only once during the game. That way you dont have to re-read the list every time a new player spawns...
jb you beautiful person! It works perfectly!! and it makes sense! Thank you so much. Let me see if I understand your idea about the new var. i should set the read weaponname array to another variable array and load it from there correct?
something like:
var array<string> weaponarray
weaponarray()=(class'AdminPlus.UltraAdmin'.default.WeaponName())
P.Giveweapon(weaponarray(i));
?? something like that?
also on an unrelated matter, is there a way to pull the value from a string? such as the val() function in VBasic: (i.e.:
sStringName = "12"
iValue = val(sStringName)
iValue = 12 <----- integer
Posted: Tue Aug 31, 2004 11:36 am
by jb
Rythmix wrote:
jb you beautiful person! It works perfectly!! and it makes sense! Thank you so much. Let me see if I understand your idea about the new var. i should set the read weaponname array to another variable array and load it from there correct?
something like:
var array<string> weaponarray
weaponarray()=(class'AdminPlus.UltraAdmin'.default.WeaponName())
P.Giveweapon(weaponarray(i));
?? something like that?
also on an unrelated matter, is there a way to pull the value from a string? such as the val() function in VBasic: (i.e.:
sStringName = "12"
iValue = val(sStringName)
iValue = 12 <----- integer
About that last one, there are some string functions but NOT that one, IIRC.
About the var, you can use the same name, you have now.
Code: Select all
for (i = 0; i < class'AdminPlus.UltraAdmin'.default.WeaponName.Length; i++)
WeaponName(i)=class'AdminPlus.UltraAdmin'.default.WeaponName(i);
Do this once (say in the postbeginplay, something like that...then in your CustomLoaded function, tweak it to do this:
Code: Select all
for (i = 0; i < WeaponName.Length; i++) {
P.Giveweapon(WeaponName(i));
}
The idea was is you dont want to re-read the list every time from the server ini file. Just do it once. However by doing this, you would have to resart the current game to get any new changes you made to the weapon list...so...
