**I know I can't blame this person for creating a nice mod that works pretty good, tbh I'm jalous on the updates he did, but come on, I directly saw 60% of the source was just copy pasted and changed a little bit. You might used ''google'' but next time also put the real author -_-**
xKMod:
cmMOD:
xKMod:
Code:
doTeamNames()
{
while( 1 )
{
if(game["attackers"] == "allies" && game["defenders"] == "axis")
{
setDvar("g_TeamName_Allies", "ATTACK");
setDvar("g_TeamName_Axis", "DEFENSE");
setdvar( "g_TeamIcon_Axis", game["icons"]["axis"] ); <-- you added
setdvar( "g_TeamIcon_Allies", game["icons"]["allies"] ); <-- you added
}
else if(game["attackers"] == "axis" && game["defenders"] == "allies")
{
setDvar("g_TeamName_Axis", "ATTACK");
setDvar("g_TeamName_Allies", "DEFENSE");
setdvar( "g_TeamIcon_Axis", game["icons"]["allies"] ); <-- you added
setdvar( "g_TeamIcon_Allies", game["icons"]["axis"] ); <-- you added
}
wait 0.1;
}
}
doDropBomb()
{
self endon("disconnect");
self endon("death");
for(;;)
{
if(self ActionSlotOneButtonPressed())
{
if ( isDefined( self.carryObject ) )
self.carryObject thread maps\mp\gametypes\_gameobjects::setDropped();
}
wait .05;
}
}
doAwpFix()
{
while(1)
{
self waittill ( "weapon_fired" );
currentweapon = self GetCurrentWeapon();
if ( currentweapon == "l96a1_mp" )
{
self allowADS(false);
wait 0.08;
self allowADS(true);
}
wait 0.01;
}
}
doStratTime()
{
level.stratTime = 6;
for(i = level.stratTime; i > 0; i--)
{
level.stratTime = i;
wait 1;
}
}
doStratTimer()
{
timerText = self createFontString( "default", 2 );
timerText setPoint( "CENTER", "CENTER", 0, 0 );
ready = self createFontString("default", 1.4);
ready setPoint("CENTER", "CENTER", 0, 16);
ready.color = (1, 1, 1);
if(level.stratTime != 1) {
for(i = level.stratTime; i > 0; i--)
{
timerText setText("Strat Time");
ready setText("0:0"+ i);
setDvar("g_speed", "0");
setDvar("scr_game_bulletdamage", 0);
self EnableInvulnerability();
self allowsprint(false);
wait 1;
}
}
self notify("stratover"); <-- I like what you did there, you totally renamed the notify lol
timerText destroy();
ready destroy();
setDvar("g_speed", "190");
setDvar("scr_game_bulletdamage", "1.0");
self allowsprint(true);
wait 4;
self DisableInvulnerability();
}
doTweakDvars()
{
self setClientDvar( "r_flashLightShadows", 0 );
self setClientDvar( "r_specular", "0" );
self setClientDvar( "r_contrast", "1" );
//self setClientDvar( "r_filmusetweaks", "1" );
self setClientDvar( "cg_fov_default", "80" );
self setClientDvar( "r_specularcolorscale", "0" );
self setClientDvar( "r_streamFreezeState", "1");
self setClientDvar( "fx_marks", 0 );
self setClientDvar( "r_lighttweaksunlight", "2" );
self setClientDvar( "r_exposuretweak", "1");
self setClientdvar( "r_brightness", "0" );
self setClientdvar( "r_heroLighting", 0 );
self setClientDvar( "com_maxfps", 125);
self setClientDvar( "r_desaturation", 0);
self setClientDvar( "cg_fov", 80);
self setClientDvar( "cg_fovscale", 1.125);
self setClientDvar( "r_normalmap", "0" );
self setClientDvar( "aim_automelee_enabled", 0);
self setClientDvar( "aim_automelee_range", 0);
self setClientDvar( "dynent_active", 0);
self setClientDvar( "r_vsync", "0");
self setClientDvar( "ragdoll_enable", "0");
self setClientDvar( "snaps", 30);
self setClientDvar( "rate", 25000);
self setClientDvar( "cg_nopredict", 0);
self setClientDvar( "sm_enable", 0);
self setClientDvar( "cl_maxpackets", 100);
self setClientDvar( "r_dlightLimit", 0);
self setClientDvar( "r_lodscalerigid", 1);
self setClientDvar( "r_lodscaleskinned", 1);
self setClientDvar( "cg_huddamageiconheight", 64);
self setClientDvar( "cg_huddamageiconwidth", 128);
self setClientDvar( "r_filmtweakInvert", 0);
self setClientDvar( "r_zfeather", 0);
self setClientDvar( "r_smc_enable", 0);
self setClientDvar( "r_distortion", 0);
self setClientDvar( "r_sCurveEnable", "1" );
self setClientDvar( "r_sCurveLinearAngle", "0.125" );
self setClientDvar( "r_sCurveLinearStrength", "0.5" );
self setClientDvar( "r_sCurveShoulderStrength", "0.1" );
self setClientDvar( "r_sCurveToeDenominator", "0.575" );
self setClientDvar( "r_sCurveToeNumerator", "0.01");
self setClientDvar( "r_sCurveToeStrength", "0.1" );
self setClientDvar( "fx_drawclouds", 0);
/*self setClientDvar( "r_treeScale", 0 );
self setClientDvar( "wind_grass_gust_strength", "0" );
self setClientDvar( "wind_grass_scale", "1" );
self setClientDvar( "wind_grass_tension", "0" );
self setClientDvar( "wind_local_frequency", "0" );
self setClientDvar( "wind_leaf_scale", "0" );*/
}
cmMOD:
Code:
UpdateTeamNames()
{
while( 1 )
{
if(game["attackers"] == "allies" && game["defenders"] == "axis")
{
setDvar("g_TeamName_Allies", "Attack");
setDvar("g_TeamName_Axis", "Defence");
}
else if(game["attackers"] == "axis" && game["defenders"] == "allies")
{
setDvar("g_TeamName_Axis", "Attack");
setDvar("g_TeamName_Allies", "Defence");
}
wait 0.1;
}
}
Dropbomb()
{
self endon("disconnect");
self endon("death");
for(;;) {
if(self ActionSlotOneButtonPressed()) {
if ( isDefined( self.carryObject ) )
self.carryObject thread maps\mp\gametypes\_gameobjects::setDropped();
}
wait .05; <-- I could have used anything here but wow you did the same :D
}
}
doAwpFix()
{
while(1) {
self waittill ( "weapon_fired" );
currentweapon = self GetCurrentWeapon();
if ( currentweapon == "l96a1_mp" || currentweapon == "l96a1_vzoom_mp" ) {
self allowADS(false);
wait 0.08; <-- again you used 0.08 just like me, damn we code almost like we'r brothers
self allowADS(true);
}
wait 0.01;
}
}
doStratTime()
{
level.stratTime = 5;
for(i = level.stratTime; i > 0; i--)
{
level.stratTime = i;
wait 1;
}
}
doStratTimer()
{
timerText = self createFontString( "default", 2 );
timerText setPoint( "CENTER", "CENTER", "CENTER", "CENTER" );
timerText.y = -10;
info = self createFontString("default", 1.4);
info setPoint("CENTER", "CENTER", 0, 10);
info.color = (1, 1, 1);
info setText("[{+actionslot 2}] to Open/Close Create-a-class");
if(level.stratTime != 1) {
for(i = level.stratTime; i > 0; i--)
{
timerText setText("STRATTIME: " + i);
setDvar("player_sustainammo", 1);
setDvar("g_speed", 0);
self EnableInvulnerability();
wait 1;
}
}
self notify("timerDone");
timerText destroy();
info destroy();
setDvar("player_sustainammo", 0);
setDvar("g_speed", 190);
wait 4;
self DisableInvulnerability();
}
--