Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tutorial Proper perk list + Hackish Menu + etc
#11
Quote:secondaryOffhandButtonPressed() //uhh, maybe 1?
Actually, its 4 by default.
(11-27-2010, 03:35)Deathmax Wrote:
(11-26-2010, 17:28)Kriege203 Wrote: i want to set up only 1 killstreak

I'm not sure, never tried. Maybe replace the killstreaks you don't want with killstreak_null?

Try:
self.killstreak[0] = "killstreak_whatever";
self.killstreak[1] = "none";
self.killstreak[2] = "none";

If that doesn't work, try:
self.killstreak[0] = "killstreak_whatever";
self.killstreak[1] = undefined;
self.killstreak[2] = undefined;
[Image: 30xhrep.png]

A casual conversation between barata and I about Nukem.
Reply

#12
we should create a full manegaed code list whit build functions Dvars and stuff ;pp not me!
Reply

#13
the menu dont work. it says unkown function
Reply

#14
(12-01-2010, 17:31)Kriege203 Wrote: the menu dont work. it says unkown function

Well I did say I directly ripped it from my mod without touching anything right?

The one that might be responsible might be deleteondeath.
C++ Code
  1. deleteondeath(item)
  2. {
  3. self waittill("death");
  4. item destroy();
  5. }

Or the other functions over at selectItem().
Reply

#15
This is probably the missing function:

Code:
waittill_any_return

You just need to append it with common_scripts\utility:: or add this to the .gsc:

Code:
waittill_any_return( string1, string2, string3, string4, string5, string6 )
{
    if ((!IsDefined (string1) || string1 != "death") &&
        (!IsDefined (string2) || string2 != "death") &&
        (!IsDefined (string3) || string3 != "death") &&
        (!IsDefined (string4) || string4 != "death") &&
        (!IsDefined (string5) || string5 != "death") &&
        (!IsDefined (string6) || string6 != "death"))
        self endon ("death");
        
    ent = SpawnStruct();

    if (IsDefined (string1))
        self thread waittill_string (string1, ent);

    if (IsDefined (string2))
        self thread waittill_string (string2, ent);

    if (IsDefined (string3))
        self thread waittill_string (string3, ent);

    if (IsDefined (string4))
        self thread waittill_string (string4, ent);

    if (IsDefined (string5))
        self thread waittill_string (string5, ent);

    if (IsDefined (string6))
        self thread waittill_string (string6, ent);

    ent waittill ("returned", msg);
    ent notify ("die");
    return msg;
}
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
Question Help Admin menu koren30 4 4,788 10-07-2013, 20:17
Last Post: Yamato
  [Tutorial] How-To, Mod menu picture-REVISED/no iwifix needed rotceh_dnih 52 29,851 09-28-2013, 02:08
Last Post: Monkey Arms
  Help Getting string from perk? DidUknowiPwn 3 3,086 09-27-2013, 19:10
Last Post: Nekochan
  Help How do I open the admin menu for GeKKos QS Mod? conorr 1 2,864 08-15-2013, 13:52
Last Post: Yamato
  Help Server not in list, but people join 99IRock 8 6,694 07-17-2013, 21:26
Last Post: clacki
  Trying to compile a modified menu DidUknowiPwn 7 5,287 07-05-2013, 21:55
Last Post: DidUknowiPwn
  List of models that can be spawned? (Looking for C4 model) akillj 5 4,450 06-27-2013, 13:35
Last Post: Yamato
  [Request] mw3 all map list ( aslo DLC) raminr63 5 14,259 06-18-2013, 19:50
Last Post: mn_acer1
Big Grin Killstreaks HUD list Puffiamo 9 9,353 06-18-2013, 18:42
Last Post: RaZ
  Where can I find a list of scripting commands that correspond to ingame buttons? akillj 2 2,839 06-03-2013, 10:38
Last Post: Yamato

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.