I have taken over the AdminUtils mutator project
I have taken over the AdminUtils mutator project
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!
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!
Rythm is Gonna Get Ya!
-
- Posts: 446
- Joined: Wed Jun 23, 2004 10:51 pm
- Contact:
-
- Posts: 49
- Joined: Sat Jul 03, 2004 5:46 am
-
- Chaotic Dreams Team
- Posts: 3290
- Joined: Sun Apr 06, 2003 6:22 am
- Location: Arizona
- Contact:
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.
My Chaos Google Drive (sounds, etc):
https://drive.google.com/folderview?id= ... sp=sharing
My Sounds Release Thread:
http://forums.chaoticdreams.org/viewtop ... 7&start=45
https://drive.google.com/folderview?id= ... sp=sharing
My Sounds Release Thread:
http://forums.chaoticdreams.org/viewtop ... 7&start=45
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.
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.
Rythm is Gonna Get Ya!
-
- Chaotic Dreams Team
- Posts: 3290
- Joined: Sun Apr 06, 2003 6:22 am
- Location: Arizona
- Contact:
I love Adminutils! It's great for doing dev stuff on my personal server.
My Chaos Google Drive (sounds, etc):
https://drive.google.com/folderview?id= ... sp=sharing
My Sounds Release Thread:
http://forums.chaoticdreams.org/viewtop ... 7&start=45
https://drive.google.com/folderview?id= ... sp=sharing
My Sounds Release Thread:
http://forums.chaoticdreams.org/viewtop ... 7&start=45
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:
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:
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.
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();
}
}
}
Code: Select all
for (i = 0; i < class'AdminPlus.UltraAdmin'.default.WeaponName.Length; i++) {
P.Giveweapon(WeaponName(i));
}
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.
Rythm is Gonna Get Ya!
-
- Chaotic Dreams Team
- Posts: 3290
- Joined: Sun Apr 06, 2003 6:22 am
- Location: Arizona
- Contact:
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.
Anyway, I'll see if I can get one of the brains to help out.
My Chaos Google Drive (sounds, etc):
https://drive.google.com/folderview?id= ... sp=sharing
My Sounds Release Thread:
http://forums.chaoticdreams.org/viewtop ... 7&start=45
https://drive.google.com/folderview?id= ... sp=sharing
My Sounds Release Thread:
http://forums.chaoticdreams.org/viewtop ... 7&start=45
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...
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
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
Rythm is Gonna Get Ya!
About that last one, there are some string functions but NOT that one, IIRC.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 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);
Code: Select all
for (i = 0; i < WeaponName.Length; i++) {
P.Giveweapon(WeaponName(i));
}

Jb