https://www.mpgh.net/forum/323-call-d...-off-code.html
Of 2 days ago
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!
https://www.mpgh.net/forum/323-call-d...-off-code.html
Of 2 days ago
Where I put it in the third person?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}]" );
}
}
Last edited by darkorlegend; 05-26-2011 at 08:06 AM.
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?
just put in on rank.gsc
place the code somwhere in script en put :
self thread thirdPersonToggle();
somewhere in the Dvar list
i dont always do that but its the easiest to explain to him
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
third person in doDvarDoDvars()
{
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;
}
and now?
Last edited by darkorlegend; 05-26-2011 at 10:39 AM.
Well, if you don't know how to add it...
Look at my tut how to create your first mod.
ADD me in skype: darkorlegend
please.