Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Killstreak On/Off codehelp
#11
(06-19-2012, 20:29)zxz0O0 Wrote: I understand. Try without the wait (or wait 0.05) and if it doesn't work you need to use another method. The scenario you described happens when the game checks the dvar before you change it (game checks it at map start).

Same situation with 0.05 and same without wait.

Which files are game loading first on a map change?
I want to try to move the call function to the "first file" from the "_load.gsc"


Someone gimme' the OMA's, Nyan Cat's and troll s power to know what to with this code! Big Grin
Reply

#12
I see. If you want to do it without modifying any other gsc you could for example set level.killStreakMod to 999 after a small wait (this means that they need 999 more kills than normal to get the killstreak).
[Image: azuw.jpg]
Reply

#13
(06-19-2012, 22:44)TheRaZ Wrote:
(06-19-2012, 20:29)zxz0O0 Wrote: I understand. Try without the wait (or wait 0.05) and if it doesn't work you need to use another method. The scenario you described happens when the game checks the dvar before you change it (game checks it at map start).

Same situation with 0.05 and same without wait.

Which files are game loading first on a map change?
I want to try to move the call function to the "first file" from the "_load.gsc"


Someone gimme' the OMA's, Nyan Cat's and troll s power to know what to with this code! Big Grin

Put that dvar stuff on Init().
Reply

#14
Thanks for all help amigos Big Grin
It is working now:

Code:
init()
    {
        if ( getDvar("mapname") == "mp_rust" )
            {
                setDvar( "scr_game_hardpoints", 0);
            }
            
        else
            {
                setDvar( "scr_game_hardpoints", 1);
            }
    }
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Duration killstreak The Tronuo 2 2,795 07-12-2013, 18:33
Last Post: The Tronuo
  Preview Tank Killstreak Yamato 16 10,537 05-27-2013, 14:47
Last Post: Yamato
  [GSC] All Weapon/Camo/Perk/Killstreak Names DEREKTROTTER 33 26,001 01-30-2013, 15:26
Last Post: 99IRock
  [Request] Give KillStreak yuri8597 1 2,473 10-29-2012, 01:31
Last Post: DidUknowiPwn
  [Request] weapon/killstreak giver jari333 2 2,703 10-17-2012, 18:56
Last Post: OzonE
  [Tutorial] Killstreak list Yamato 0 2,563 06-08-2012, 12:25
Last Post: Yamato
  Anti Killstreak Editing AboAlwe 5 4,252 04-28-2012, 11:00
Last Post: schoerg
  [Request] Killstreak delay time Dumas 2 2,720 04-18-2012, 23:18
Last Post: Dumas
  [Release] install now ItsModLoader - mw3 Killstreak - Classes - Leveling - MOD hussi 3 3,327 04-03-2012, 01:58
Last Post: AZUMIKKEL
Wink [Release] Tank Killstreak Yamato 12 12,447 02-27-2012, 14:37
Last Post: Yamato

Forum Jump:


Users browsing this thread:
1 Guest(s)

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