Forum

ASSIST, AMERICA'S ARMY COMMUNITY - RELIVE THE GLORY DAYS OF AMERICA'S ARMY 2.5

Author Topic: OpenWeaponSlots  (Read 7181 times)

0 Members and 1 Guest are viewing this topic.

Offline Go_Cat75

  • Full Member
  • ***
  • Posts: 193
  • Hospital GOD
    • View Profile
OpenWeaponSlots
« on: Friday, February 10, 2012, 08:29:55 AM »
Any guys that know what there doing to fix this?..  I have this so far..

V2.6.0 AGP_Gameplay.u file:

Gameplay.u Has a reference to weapon slots in V2.5 but not V2.6?

http://dl.dropbox.com/u/16681/AGP_Gameplay.u
http://dl.dropbox.com/u/464376/aac_maap/AGP_Gameplay.7z - Decompiled version of above link


I can also see a reference in the AGP_Interface.u file both versions so could be something there also.

It is for the Tournament section of code:
"Check this to open all weapon slots regardless as to the number of players on each team"


ini file where the command is normally set to enable on later versions:

[AGP.AGP_GameInfo]
; Type of game play (MILES, Live Fire) - see documentation or use Command Post to adjust
; Force Live Fire: FORCE_Normal
; Force MILES: FORCE_MILES
; USe Map Default: FORCE_None
ForceGameplay=FORCE_None

; When true, bOpenAllWeaponClassSlots will make every weapon class available selectable.
bOpenAllWeaponClassSlots=True


« Last Edit: Sunday, February 12, 2012, 20:25:50 PM by Spanky »

Offline Spanky

  • <?php echo $opinion .' is better.'; ?>
  • Administrator
  • Posts like a Spanky!
  • *
  • Posts: 10,893
    • View Profile
    • NatesComp.com
  • AA: tigobitties
Re: OpenWeaponSlots
« Reply #1 on: Friday, February 10, 2012, 13:38:55 PM »
Here's some pitiful code I compiled which didn't work, even after several modifications.

Code: [Select]
//=============================================================================
// File: slots.uc
// Description: An attempt at opening all weapon slots
// Date: 7 February 2012
// Author: Nate "Spanky" Rowe
//=============================================================================

class slots extends mutator;

var bool bTournamentOpenAllWeaponClassSlots;

event PreBeginPlay()
{
  Level.Game.BaseMutator.AddMutator(self);
}

function PostBeginPlay()
{
Log("tournament mode~~~~~~~~~~~~~~~~~~~~~~~~");
Super.PostBeginPlay();
bTournamentOpenAllWeaponClassSlots = true;
}
It's like shaving your pubes to make your junk look bigger.
Might look bigger, but it aint.....

Offline BlueBlaster

  • Epic Poster
  • ******
  • Posts: 2,428
    • View Profile
Re: OpenWeaponSlots
« Reply #2 on: Friday, February 10, 2012, 14:53:35 PM »
Did you test that in tournament mode or normal mode? I know it's a dumb question, but it's easy to make mistakes.

BTW Spanky, I looked thru some stuff there and you can do something like this:
Code: [Select]
var config bool bOpenAllWeaponClassSlots;

function int OpenAllSlots() {
    return bOpenAllWeaponClassSlots;
}

There's code like this in AGP_GameDeathMatch. I'm wondering if it would work this way since I assume thats the way it's done in 2.6 with the ini file.



Offline Spanky

  • <?php echo $opinion .' is better.'; ?>
  • Administrator
  • Posts like a Spanky!
  • *
  • Posts: 10,893
    • View Profile
    • NatesComp.com
  • AA: tigobitties
Re: OpenWeaponSlots
« Reply #3 on: Friday, February 10, 2012, 15:05:44 PM »
I tested in regular mode as that's our goal :)
It's like shaving your pubes to make your junk look bigger.
Might look bigger, but it aint.....

Offline BlueBlaster

  • Epic Poster
  • ******
  • Posts: 2,428
    • View Profile
Re: OpenWeaponSlots
« Reply #4 on: Friday, February 10, 2012, 15:19:29 PM »
Well I wouldn't think it would work in regular mode if it says bTournamentOpenAllWeaponClassSlots lol



Jonnym

  • Guest
Re: OpenWeaponSlots
« Reply #5 on: Friday, February 10, 2012, 15:21:15 PM »
I was thinking the same thing

Offline Spanky

  • <?php echo $opinion .' is better.'; ?>
  • Administrator
  • Posts like a Spanky!
  • *
  • Posts: 10,893
    • View Profile
    • NatesComp.com
  • AA: tigobitties
Re: OpenWeaponSlots
« Reply #6 on: Friday, February 10, 2012, 15:22:28 PM »
-_- I was thinking that it was just a named bool that could be set in any gameplay.
It's like shaving your pubes to make your junk look bigger.
Might look bigger, but it aint.....

Jonnym

  • Guest
Re: OpenWeaponSlots
« Reply #7 on: Friday, February 10, 2012, 15:26:57 PM »
This is all wrong

Code: [Select]
class slots extends mutator;

var bool bTournamentOpenAllWeaponClassSlots;

event PreBeginPlay()
{
  Level.Game.BaseMutator.AddMutator(self);
}

function PostBeginPlay()
{
Log("tournament mode~~~~~~~~~~~~~~~~~~~~~~~~");
Super.PostBeginPlay();
bTournamentOpenAllWeaponClassSlots = true;
}

You are defining a local variable and then setting that local variable, that will not have an affect on anything.

Offline BlueBlaster

  • Epic Poster
  • ******
  • Posts: 2,428
    • View Profile
Re: OpenWeaponSlots
« Reply #8 on: Friday, February 10, 2012, 15:28:09 PM »
Hahaha, I can see how you would think that Spanky. But don't forget that theres bools attached to certain functions.

As a side-note, I'd still like to know where all the u code is hiding lol. Remember spanky, if you decompile them you just get each class header lol >:(



Offline Spanky

  • <?php echo $opinion .' is better.'; ?>
  • Administrator
  • Posts like a Spanky!
  • *
  • Posts: 10,893
    • View Profile
    • NatesComp.com
  • AA: tigobitties
Re: OpenWeaponSlots
« Reply #9 on: Friday, February 10, 2012, 15:28:34 PM »
I never claimed I was a UScript coder :) I had to add the var so it would compile, otherwise UMake would bitch at me. I tried many things, that's just the last version of the script and one of the versions that compiled.
It's like shaving your pubes to make your junk look bigger.
Might look bigger, but it aint.....

Offline BlueBlaster

  • Epic Poster
  • ******
  • Posts: 2,428
    • View Profile
Re: OpenWeaponSlots
« Reply #10 on: Friday, February 10, 2012, 15:36:55 PM »
Honestly I don't know what to do with this because I think in 2.5 the only option is for tournament mode. We probably have to code for it to work in regular mode, but I don't really know what to actually do hahaha. I'm not sure how to tell the game, hey enable all these weapon slots. I should stick to maps only lol.



Jonnym

  • Guest
Re: OpenWeaponSlots
« Reply #11 on: Friday, February 10, 2012, 15:39:23 PM »
someone get crusade, he would know...
but on the other hand if we wake him up he might make some hacks aswell.

Offline Spanky

  • <?php echo $opinion .' is better.'; ?>
  • Administrator
  • Posts like a Spanky!
  • *
  • Posts: 10,893
    • View Profile
    • NatesComp.com
  • AA: tigobitties
Re: OpenWeaponSlots
« Reply #12 on: Friday, February 10, 2012, 15:44:46 PM »
VendorX is anti-cheat. I'll pester him about this when I see him on again.
It's like shaving your pubes to make your junk look bigger.
Might look bigger, but it aint.....

Offline Go_Cat75

  • Full Member
  • ***
  • Posts: 193
  • Hospital GOD
    • View Profile
Re: OpenWeaponSlots
« Reply #13 on: Friday, February 10, 2012, 19:50:31 PM »
i'm shocked none of crusades old serer mods did this, maybe he didnt make a mod for it cos its too difficult to bother with

With weapon forcing and pick your own gun he probably didnt see the point i'm guessing.

Spanky have you tried the code with the word Tournament removed? the ini file does not include it for global so I wouldnt think the code would either.

Offline Spanky

  • <?php echo $opinion .' is better.'; ?>
  • Administrator
  • Posts like a Spanky!
  • *
  • Posts: 10,893
    • View Profile
    • NatesComp.com
  • AA: tigobitties
Re: OpenWeaponSlots
« Reply #14 on: Friday, February 10, 2012, 19:58:35 PM »
Nah, I'm not going to bother with it anymore. UScript is one of those odd things that doesn't usually supply errors or ways to improve code. I find working with PHP a lot easier. I will ask VendorX about it, I'll just show him this thread so he can laugh at my attempts :D
It's like shaving your pubes to make your junk look bigger.
Might look bigger, but it aint.....

 

Download Assist

×

Download Game Client

Important: Battletracker no longer exists. However, old Battletracker accounts may still work. You can create a new 25Assist account here

Download Server Manager