The Exiled

Shunned by Man, Accepted by Gods
* FAQ    * Search   * Members
* Login   * Register
It is currently Thu Feb 20, 2020 11:33 pm 

 View unanswered posts | View active topics


 Board index » General Area » Modding

Post new topic Reply to topic Users browsing this forum: No registered users and 1 guest
Author
Message
ShadowCrow
Spam-Artist

User avatar
Joined: Sat Jul 30, 2005 5:31 am
Posts: 227
Post Posted: Tue Jan 24, 2006 9:41 am    Post subject: Kpack help
 
I was hoping somone could script rocket and phase into kpack.... :)


Image
 Top Offline
Profile
Author
Message
TE-Noxwizard
King

User avatar
Joined: Tue Jun 07, 2005 5:59 pm
Posts: 941
Location: Texas
Post Posted: Tue Jan 24, 2006 10:24 am    Post subject:
 
You'll need to put everything in it's correct place.

In: function KpackCount::Update()
Add:
Code:
     export("$Kills::Rocket*", "config\\KpackCount.cs", True);        // -Noxwizard


In: function KpackCount::ReadFile()
Add somewhere after: //Start stat tracking files
Code:
/////************************************************************************************************

         if(isFile("config\\rocketkills.cs"))
            {
              exec("rocketkills.cs");
            export("$Rocket::Kills", "config\\rocketkills.cs", True);
            $Kills::Rocket[$KpackCount::ClientNum] = ($Rocket::Kills);
              File::delete("config\\rocketkills.cs");
            File::delete("config\\kpack\\rocketct.cs");
            }
           else
            {
            $Kills::Rocket[$KpackCount::ClientNum] = 0;
              }


Near the end of the same function add:
Code:
                   $Kills::Rocket[$KpackCount::ClientNum] = 0;          // -Noxwizard


Code:
////////   ROCKET TRONICS   /////////////////////////////

function RocketTronics(%client, %msg)
   {
   if ($PCFG::Gender == "FEMALE")
      {
      $TEMP::Gender = "her";
      }
      else    
      {
      $TEMP::Gender = "his";
      }


     if (String::findSubStr(%msg, " gets a hot rocket injection from " @ $PCFG::Name) != -1 && String::findSubStr(%msg, ".") != -1)
           {
           $Kills::Rocket[$KpackCount::ClientNum]++;
          if ($RocketTrack == 1 || $RocketTrack == "")
         {
         say(0, "(Rocket Victim #" @ $Kills::Rocket[$KpackCount::ClientNum] @ ")");
         TopPrint(2048, "(Rocket Victim #" @ $Kills::Rocket[$KpackCount::ClientNum] @ ")");
          }
           KpackCount::Update();
          }

     if (String::findSubStr(%msg, $PCFG::Name @ " gives ") != -1 && String::findSubStr(%msg, " a lesson in rocketry.") != -1)
           {
           $Kills::Rocket[$KpackCount::ClientNum]++;
          if ($RocketTrack == 1 || $RocketTrack == "")
         {
         say(0, "(Rocket Victim #" @ $Kills::Rocket[$KpackCount::ClientNum] @ ")");
         TopPrint(2048, "(Rocket Victim #" @ $Kills::Rocket[$KpackCount::ClientNum] @ ")");
          }
           KpackCount::Update();
          }

     if (String::findSubStr(%msg, " polishes " @ $PCFG::Name) != -1 && String::findSubStr(%msg, "'s rocket.") != -1)
           {
           $Kills::Rocket[$KpackCount::ClientNum]++;
          if ($RocketTrack == 1 || $RocketTrack == "")
         {
         say(0, "(Rocket Victim #" @ $Kills::Rocket[$KpackCount::ClientNum] @ ")");
         TopPrint(2048, "(Rocket Victim #" @ $Kills::Rocket[$KpackCount::ClientNum] @ ")");
          }
           KpackCount::Update();
          }

     if (String::findSubStr(%msg, " rides " @ $PCFG::Name) != -1 && String::findSubStr(%msg, "'s big one.") != -1)
           {
           $Kills::Rocket[$KpackCount::ClientNum]++;
          if ($RocketTrack == 1 || $RocketTrack == "")
         {
         say(0, "(Rocket Victim #" @ $Kills::Rocket[$KpackCount::ClientNum] @ ")");
         TopPrint(2048, "(Rocket Victim #" @ $Kills::Rocket[$KpackCount::ClientNum] @ ")");
          }
           KpackCount::Update();
          }

     if (String::findSubStr(%msg, " failed to outrun " @ $PCFG::Name) != -1 && String::findSubStr(%msg, "'s rocket.") != -1)
           {
           $Kills::Rocket[$KpackCount::ClientNum]++;
          if ($RocketTrack == 1 || $RocketTrack == "")
         {
         say(0, "(Rocket Victim #" @ $Kills::Rocket[$KpackCount::ClientNum] @ ")");
         TopPrint(2048, "(Rocket Victim #" @ $Kills::Rocket[$KpackCount::ClientNum] @ ")");
          }
           KpackCount::Update();
          }
      }

///**********************************************************************************


In function KpackTrack(%command, %label)
Add:
Code:
   $RocketTrack = 1;      // -Noxwizard


In the same function, just a bit farther down
Add:
Code:
   $RocketTrack = 0;      // -Noxwizard


And, near the very bottom of the file add:
Code:
Event::Attach(eventClientMessage, RocketTronics);         // -Noxwizard


Phase and rockets use the same messages. This should work, but considering the fact that my kpack doesn't work at all, don't be suprised if it doesn't work.



Image
Image
 Top Offline
Profile WWWICQYIM
Author
Message
TE-4ev3r
--X-- Berzerker

User avatar
Joined: Sat Jul 16, 2005 3:18 pm
Posts: 1251
Location: That sunshiny state.
Post Posted: Tue Jan 24, 2006 4:49 pm    Post subject:
 
Is this the same one that I gave you shadow? (probly is)

It has the rocket announcers, it just doesn't count them all the time. And phase disruptor kills don't use client names like the Rocket launcher, so it won't work. Otherwise every time someone got a kill with a phase/rocket, your Kpack would count it, even though you didn't make the kill!



Image
Image
 Top Offline
Profile
Author
Message
TE-Noxwizard
King

User avatar
Joined: Tue Jun 07, 2005 5:59 pm
Posts: 941
Location: Texas
Post Posted: Tue Jan 24, 2006 5:33 pm    Post subject:
 
A normal kpack doesn't count several of the annihilation rocket weapons. I wrote that myself, so I know they weren't in it.


Image
Image
 Top Offline
Profile WWWICQYIM
Author
Message
TE-Hammy
Spends 8.56 hours posting on this forum.

User avatar
Joined: Thu Jul 14, 2005 5:43 pm
Posts: 3204
Post Posted: Tue Jan 24, 2006 8:57 pm    Post subject:
 
u wrote the normal kpack x_x


This is not the sandwich you are looking for. Move along.
Image
Ze Sechs-fire wrote:
[22:00] [df]Braveskin: Can AfroMuffin spend the night at my house?
[22:00] [df]Braveskin: I have movize
[22:00] Hammy: No. You'll touch him.
[22:00] Hammy: With gusto.
[22:00] Hammy: He's not even a day old, pedophile.
[22:00] Hammy: >:l
[22:00] [df]Braveskin: plez!!
 Top Offline
Profile
Author
Message
TE-Noxwizard
King

User avatar
Joined: Tue Jun 07, 2005 5:59 pm
Posts: 941
Location: Texas
Post Posted: Tue Jan 24, 2006 9:52 pm    Post subject:
 
...no


Image
Image
 Top Offline
Profile WWWICQYIM
Author
Message
TE-4ev3r
--X-- Berzerker

User avatar
Joined: Sat Jul 16, 2005 3:18 pm
Posts: 1251
Location: That sunshiny state.
Post Posted: Thu Jan 26, 2006 6:43 pm    Post subject:
 
I can send you my Kpack Shadow. It has rocket kills.


Image
Image
 Top Offline
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic Board index » General Area » Modding
Previous topic :: Next topic  
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group