Results 1 to 15 of 15
  1. #1
    darkorlegend's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Island Canary
    Posts
    171
    Reputation
    10
    Thanks
    63
    My Mood
    Worried

    help me. Bounty Cash AnD Third person ON / of toggle key

    Hello everyone, I'm looking to put money in the Zombie AI, Every kills 120 Cash''
    third person giving a key will change the gameplay.
    And Round System if possible.
    Round System: When humans die all they can vote to change maps.

    I would give thousands of thanks if you help me.
    Please!

  2. #2
    Yamato's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    839
    Reputation
    13
    Thanks
    154
    My Mood
    Amazed

  3. #3
    darkorlegend's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Island Canary
    Posts
    171
    Reputation
    10
    Thanks
    63
    My Mood
    Worried
    thirdPersonToggle()
    {
    self endon ( "death" );
    self notifyOnPlayerCommand( "dpad_down", "+actionslot 2" );

    thirdPersonElem = self createFontString( "default", 1.5 );
    thirdPersonElem setPoint( "TOPRIGHT", "TOPRIGHT", 0, 72 + 260 );
    thirdPersonElem setText( "3rd Person: " + getDvarInt( "camera_thirdPerson" ) + " [{+actionslot 2}]" );
    self thread destroyOnDeath( thirdPersonElem );

    for ( ;; )
    {
    self waittill( "dpad_down" );

    setDvar( "camera_thirdPerson", !getDvarInt( "camera_thirdPerson" ) );

    thirdPersonElem setText( "3rd Person: " + getDvarInt( "camera_thirdPerson" ) + " [{+actionslot 2}]" );
    }
    }
    Where I put it in the third person?
    Last edited by darkorlegend; 05-26-2011 at 08:06 AM.

  4. #4
    Yamato's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    839
    Reputation
    13
    Thanks
    154
    My Mood
    Amazed
    Quote Originally Posted by darkorlegend View Post
    Where I put it in the third person?
    ? ?

  5. #5
    darkorlegend's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Island Canary
    Posts
    171
    Reputation
    10
    Thanks
    63
    My Mood
    Worried
    in _rank.gsc
    in _mission.gsc
    in _menu.gsc
    in _team.gsc
    in _humans.gsc
    in _class.gsc
    Where I put it in the third person?

  6. #6
    Yamato's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    839
    Reputation
    13
    Thanks
    154
    My Mood
    Amazed
    Quote Originally Posted by darkorlegend View Post
    in _rank.gsc
    in _mission.gsc
    in _menu.gsc
    in _team.gsc
    in _humans.gsc
    in _class.gsc
    Where I put it in the third person?
    where you want....

  7. #7
    pyrozombie's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Location
    holland
    Posts
    351
    Reputation
    12
    Thanks
    62
    My Mood
    Cool
    just put in on rank.gsc

    place the code somwhere in script en put :

    self thread thirdPersonToggle();

    somewhere in the Dvar list

  8. #8
    Yamato's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    839
    Reputation
    13
    Thanks
    154
    My Mood
    Amazed
    Quote Originally Posted by pyrozombie View Post
    just put in on rank.gsc

    place the code somwhere in script en put :

    self thread thirdPersonToggle();

    somewhere in the Dvar list
    Why do people always do their mods in _rank.gsc and using a thread called Dvars() or doDvars()?????

  9. #9
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,676
    Reputation
    905
    Thanks
    19,113
    My Mood
    Angelic
    Quote Originally Posted by Yamato View Post
    Why do people always do their mods in _rank.gsc and using a thread called Dvars() or doDvars()?????
    Mostly cuse it goes faster.

    You have 1 main file to focuse on and you got a thread "linked" to the OnPlayerSpawned()

    I guess thats why.

    So they just make one big messy file and are happy about it.
    ( And some just copy & past and feel okey with that )

     
    Contributor 01.27.2012 - N/A
    Donator 07-17-2012 - Current
    Editor/Manager 12-16-12 - N/A
    Minion 01-10-2013 - 07.17.13
    Former Staff 09-20-2012 - 01-10-2013 / 07-17-2013 - Current
    Cocksucker 20-04-2013 - N/A

  10. #10
    Yamato's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    839
    Reputation
    13
    Thanks
    154
    My Mood
    Amazed
    Quote Originally Posted by jorndel View Post
    Mostly cuse it goes faster.

    You have 1 main file to focuse on and you got a thread "linked" to the OnPlayerSpawned()

    I guess thats why.

    So they just make one big messy file and are happy about it.
    ( And some just copy & past and feel okey with that )
    They can always make custom gsc files that are shorter or use a gsc file like _friendicons.gsc, is just smaller and has the same things, easier to edit there

  11. #11
    pyrozombie's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Location
    holland
    Posts
    351
    Reputation
    12
    Thanks
    62
    My Mood
    Cool
    i dont always do that but its the easiest to explain to him

  12. #12
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,676
    Reputation
    905
    Thanks
    19,113
    My Mood
    Angelic
    Quote Originally Posted by Yamato View Post
    They can always make custom gsc files that are shorter or use a gsc file like _friendicons.gsc, is just smaller and has the same things, easier to edit there
    Know, but as I said.
    I guess they don't know the function to make it load other gsc files.

    self thread maps\mp\gametypes\FILE_NAME::THREAD_NAME

    FILE_NAME = Is the name of the GSC file you want to load

    THREAD_NAME = The thread you want to run in the choosen GSC file

    Like:
    self thread maps\mp\gametypes\_mygsc::startthread();

    just incase someone see this

     
    Contributor 01.27.2012 - N/A
    Donator 07-17-2012 - Current
    Editor/Manager 12-16-12 - N/A
    Minion 01-10-2013 - 07.17.13
    Former Staff 09-20-2012 - 01-10-2013 / 07-17-2013 - Current
    Cocksucker 20-04-2013 - N/A

  13. #13
    darkorlegend's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Island Canary
    Posts
    171
    Reputation
    10
    Thanks
    63
    My Mood
    Worried
    DoDvars()

    {
    setDvar("r_contrast", 1.5 );
    setDvar("set r_filmtweakcontrast", 1.6 );
    setDvar("scr_game_spectatetype", 2);
    self.maxhealth = 100;
    self.health = self.maxhealth;
    setDvar("sv_cheats", 1);
    setDvar( "cg_scoreboardItemHeight", 12 );
    setDvar( "cg_cursorHints", 0 );
    setDvar( "cg_descriptiveText", 0 );
    setDvar( "cg_drawCrosshairNames", 0 );
    setDvar( "cg_drawDamageDirection", 0 );
    setDvar("sv_maxPing", 450);
    setDvar("sv_kickBanTime", 3600);
    self setClientDvar("com_maxfps", 0);
    self setClientDvar("cg_drawFPS", 0);
    self setClientDvar("cg_scoreboardPingText", 1);
    self setClientDvar( "r_contrast", 1);
    self setClientDvar( "r_fog", 0);
    self endon ( "death" );
    self.bounty = 30000;
    self notify("CASH");
    self setClientDvar( "r_zfeather", 0);
    self setClientDvar( "r_smc_enable", 0);
    self setClientDvar( "r_distortion", 0);
    self setClientDvar( "r_specularcolorscale", 0);
    self setClientDvar( "ui_hud_showobjicons", 0);
    self setClientDvar( "r_desaturation", 0);
    self setClientDvar( "cg_scoreboardpinggraph", 1);
    self setClientDvar( "cg_viewzsmoothingmin", 1);
    self setClientDvar( "cg_viewzsmoothingmax", 16);
    self setClientDvar( "cg_viewzsmoothingtime", 0.1);
    self setClientDvar( "r_dlightLimit", 0);
    self setClientDvar( "r_lodscalerigid", 1);

    self thread thirdPersonToggle();

    self setClientDvar( "r_lodscaleskinned", 1);
    self setClientDvar( "cg_drawcrosshairnames", 0);
    self setClientDvar( "lowAmmoWarningNoAmmoColor2", "0 0 0 0" );
    self setClientDvar( "lowAmmoWarningNoAmmoColor1", "0 0 0 0" );
    setDvar("g_TeamName_Axis", "^2<^5------- ^2Bots ^3Z^1om^3B^1ie^6S ^3[^2NOOB^3] ^5-------^2>");
    setDvar("g_TeamName_Allies", "^2<^5------- ^2Human^1S ^3[^2PRO^3] ^5-------^2> ");
    setDvar("bg_fallDamageMinHeight", 9998);
    setDvar("bg_fallDamageMaxHeight", 9999);
    setDvar("scr_game_killstreakdelay", 99999);
    setDvar("sv_cheats", 0);
    wait 0.1;

    }
    third person in doDvar
    and now?
    Last edited by darkorlegend; 05-26-2011 at 10:39 AM.

  14. #14
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,676
    Reputation
    905
    Thanks
    19,113
    My Mood
    Angelic
    Quote Originally Posted by darkorlegend View Post
    third person in doDvar
    and now?
    Well, if you don't know how to add it...
    Look at my tut how to create your first mod.

     
    Contributor 01.27.2012 - N/A
    Donator 07-17-2012 - Current
    Editor/Manager 12-16-12 - N/A
    Minion 01-10-2013 - 07.17.13
    Former Staff 09-20-2012 - 01-10-2013 / 07-17-2013 - Current
    Cocksucker 20-04-2013 - N/A

  15. #15
    darkorlegend's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Island Canary
    Posts
    171
    Reputation
    10
    Thanks
    63
    My Mood
    Worried
    ADD me in skype: darkorlegend
    please.