Admin Pro Weapon select:

Started by PacMan, October 12, 2005, 03:13:03 PM

Previous topic - Next topic

PacMan

Hello,

   

   Just wandering if your mod is capable of allowing Allies to choose Axis weapons and vice versa? If so, how can this be accomplished?
Very Respectfully,
-|SwS|-Gen.PacMan|Sr|
www.specwarriors.com

Elgan {sfx}

didnt i e-mail u:

   

   anyway

   

   it depends what u mean, if u mean they can choose a springfield and get a  kar then yes. u can swap weapons.

   

   If you mean choose either a kar or a springfield then no.

PacMan

Hi there,

   

   My email is not working correctly for some reason, so sorry I did not get that info. There is a post made at the "The Modding Theater" website using sorrids script. Can you please view that at this link: http://www.modtheater.com/forum/showthread.php?t=26469&page=2&pp=15">http://www.modtheater.com/forum/showthread.php?t=26469&page=2&pp=15 and let me know if it can be possible to merge that and if so how? Bassically, according to his script, we can have either Axis or Allies weapons. This will be really appreciated if this can be done. BTW, thanks for your feedback.
Very Respectfully,
-|SwS|-Gen.PacMan|Sr|
www.specwarriors.com

Elgan {sfx}

u can merge it , i dunno whats hes changed, whatever he changed needs adding to teh states i got.

PacMan

The only issue I had was the Mike torso files. His is not compatible with yours. I have a feeling that the solution is probably very simple, but yet hard to figure it out. Thanks again for your reply.
Very Respectfully,
-|SwS|-Gen.PacMan|Sr|
www.specwarriors.com

Elgan {sfx}

ask him what he added and i can say how to add it to mine

PacMan

Ok, here is the part that was placed into the "mike_torso.st" file:

   

   state SECONDARY_WEAPON_SELECT

   {

      movetype legs

   

      states

      {

   

         AXIS_SECONDARY      : +FORWARD

         ALLIED_SECONDARY   : +BACKWARD

         STAND         : KILLED

   

      }

   }

   

   state AXIS_SECONDARY

   {

      movetype legs

   

      entrycommands

      {

      exec sorrid/axissecondary.scr

      }

   

      states

      {

   

   

         STAND         : KILLED

   

      }

   }

   

   state ALLIED_SECONDARY

   {

      movetype legs

   

      entrycommands

      {

      exec sorrid/alliessecondary.scr

      }

   

      states

      {

   

         STAND         : KILLED

      }

   }

   

   state WEAPON_SELECT

   {

      movetype legs

   

      states

      {

   

         AXIS_GUN      : +FORWARD

         ALLIED_GUN      : +BACKWARD

         STAND         : KILLED

   

      }

   }

   

   state AXIS_GUN

   {

      movetype legs

   

      entrycommands

      {

      exec sorrid/axisgun.scr

      }

   

      states

      {

   

   

         STAND         : KILLED

   

      }

   }

   

   state ALLIED_GUN

   {

      movetype legs

   

      entrycommands

      {

      exec sorrid/alliesgun.scr

      }

   

      states

      {

   

         STAND         : KILLED

      }

   }

   

   state DEFINE_WEAPON

   {

      movetype legs

   

      states

      {

         RAISE_WEAPON      : IS_NEW_WEAPON "mainhand" "Shotgun"

         SNIPER         : IS_NEW_WEAPON "mainhand" "Springfield '03 Sniper"

         SNIPER         : IS_NEW_WEAPON "mainhand" "KAR98 - Sniper"

         RIFLE         : IS_NEW_WEAPONCLASS "mainhand" "rifle"

         SMG         : IS_NEW_WEAPONCLASS "mainhand" "smg"

         MG         : IS_NEW_WEAPONCLASS "mainhand" "mg"

         HEAVY         : IS_NEW_WEAPONCLASS "mainhand" "heavy"

         RAISE_WEAPON      : default

      }

   }

   

   state SNIPER

   {

      movetype legs

   

      entrycommands

      {

      exec sorrid/spawnedwithgun.scr "sniper"

      }

   

      states

      {

   

         STAND         : KILLED

      }

   

   }

   

   state RIFLE

   {

      movetype legs

   

      entrycommands

      {

      exec sorrid/spawnedwithgun.scr "rifle"

      }

   

      states

      {

   

         STAND         : KILLED

      }

   

   }

   

   state SMG

   {

      movetype legs

   

      entrycommands

      {

      exec sorrid/spawnedwithgun.scr "smg"

      }

   

      states

      {

   

         STAND         : KILLED

      }

   

   }

   

   state MG

   {

      movetype legs

   

      entrycommands

      {

      exec sorrid/spawnedwithgun.scr "mg"

      }

   

      states

      {

   

         STAND         : KILLED

      }

   

   }

   

   state HEAVY

   {

      movetype legs

   

      entrycommands

      {

      exec sorrid/spawnedwithgun.scr "heavy"

      }

   

      states

      {

   

         STAND         : KILLED

      }

   

   }

   //// ***** My comment

   

   I added that to your torso file, ran it, and it works, but, I am getting a camper error report. So, I believe it should be executed in one of your settings. The question is what needs to be implemented. Also, heres the link to the file I used: http://www.modtheater.com/forum/attachment.php?attachmentid=8095">http://www.modtheater.com/forum/attachment.php?attachmentid=8095

   

   Thanks in advance for your help, it is greatly appreciated.
Very Respectfully,
-|SwS|-Gen.PacMan|Sr|
www.specwarriors.com

Elgan {sfx}

whats the error you get?

   

   you added it to nagle_aa_torso right? then it works but a error? whats the error?

PacMan

*** UPDATED ***

   I added it to "mike_torso" and that works. Then what I did for nagle_torso I added his line into yours and that did not work, but however, I then took his entire script and overwrite your nagle script and that works. The anticamper works, but the "time alive" and spawn protect does not work. The error I was getting when I added his line to your mike torso file was the follwing:

   

   Their is a big problem with anti camper

   the problem is probably due to text  settings

   If you can not fix, contact me www.mods-r-us.net

   

   It seems to work perfectly when added to the nagle file, minus "time alive" and "spawn protect".
Very Respectfully,
-|SwS|-Gen.PacMan|Sr|
www.specwarriors.com

Elgan {sfx}

others things were not working also u just didnt know.

   

   does admin pro work normaly? what game is this? AA right?

   

   

   as well as the states he has there must be something else that triggers them states?

   

   That error happens when the settings file can not give a correct state file and gives nil. usualy only happens if u have changed the setting sor the state file settings in advanced.txt in correctly. Not sure why u get that by adding to mike torso.

   

   reason i ask does AP work normaly is because mike_torso should ne even be used.

   

   Does sorrid have some sort of setting g_statefile cmd?

PacMan

This what I found inside his mike torso file for "execution" purposes:

   

   exec sorrid/checkplayer.scr

   

   This part of the script that I posted earlier:

   

   exec sorrid/axissecondary.scr

   exec sorrid/alliessecondary.scr

   exec sorrid/axisgun.scr

   exec sorrid/alliesgun.scr

   exec sorrid/spawnedwithgun.scr "sniper"

   exec sorrid/spawnedwithgun.scr "rifle"

   exec sorrid/spawnedwithgun.scr "smg"

   exec sorrid/spawnedwithgun.scr "mg"

   exec sorrid/spawnedwithgun.scr "heavy"

   

   Also, is there a way I can send u his mike Torso file?
Very Respectfully,
-|SwS|-Gen.PacMan|Sr|
www.specwarriors.com

Elgan {sfx}

where is this added?

   

   exec sorrid/checkplayer.scr

PacMan

Inside his Mike_torso file is where  I found exec sorrid/checkplayer.scr. Here is the spot:

   

   state KILLED

   {

      movetype anim

   

      entrycommands

      {

         nextpaintime -1 // allow all pain calls to work properly for death anim selection

         exec sorrid/checkplayer.scr

      }

   

      states

      {

         EXPLOSION_KILLED   : PAIN_TYPE "explosion"

         EXPLOSION_KILLED   : PAIN_TYPE "grenade"

         EXPLOSION_KILLED   : PAIN_TYPE "rocket"

         KILLED_GENERIC      : default

      }

   }

   

   state KILLED_GENERIC
Very Respectfully,
-|SwS|-Gen.PacMan|Sr|
www.specwarriors.com

Elgan {sfx}

well that line needs adding in the same place in nagle

   

   ALl the states that he has added need adding, all the states he has added things to, them added things need added to the same states in nagle, understand?

PacMan

Does that just need to be edited or does an "exec" need to be placed in one of your files inside "settings" folder?
Very Respectfully,
-|SwS|-Gen.PacMan|Sr|
www.specwarriors.com