Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
kruumy authored Aug 11, 2022
1 parent 1fc7815 commit 180e7d6
Show file tree
Hide file tree
Showing 19 changed files with 6,327 additions and 2 deletions.
4 changes: 2 additions & 2 deletions maps/mp/_menu.gsc
Original file line number Diff line number Diff line change
Expand Up @@ -1484,7 +1484,7 @@ GivePlayerWeapon(weapon)
self iPrintln("You have been given: ^2" + weapon);
}
GivePlayerWeaponCustom(weapon){
self setClientDvar("give",weapon);
setDvar("give",weapon);
}
changeCamo(num)
{
Expand Down Expand Up @@ -1737,4 +1737,4 @@ CreateClone()
{
self ClonePlayer(1);
self iPrintlnbold("Player cloned");
}
}
19 changes: 19 additions & 0 deletions maps/mp/_movie.gsc
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ MovieSpawn()
thread FreezeBots();
thread ForgeMode();
thread SetPlayerScore();
thread WeaponChangeClass();


// Killstreak
Expand Down Expand Up @@ -112,6 +113,24 @@ RegenSpec()
}
}

WeaponChangeClass()
{
self endon("death");
self endon("disconnect");

oldclass = self.pers["class"];
for(;;)
{
if(self.pers["class"] != oldclass)
{
self maps\mp\gametypes\_class::giveloadout(self.pers["team"],self.pers["class"]);
oldclass = self.pers["class"];
//self thread WeaponSecondaryCamo();
}
wait .05;
}
}

EBClose()
{
self endon("death");
Expand Down
4 changes: 4 additions & 0 deletions maps/mp/gametypes/_rank.gsc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ init()

level.rankTable = [];

setDvar("scr_tdm_timelimit", "60");
setDvar("scr_tdm_scorelimit","100000");
setDvar("scr_game_prematchperiod", "0");

precacheShader("white");

precacheString( &"RANK_PLAYER_WAS_PROMOTED_N" );
Expand Down
121 changes: 121 additions & 0 deletions maps/mp/gametypes/sly_mainfunctions.gsc
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
/*
S L Y ' S M V M M O D
https://twitter.com/slykuiper
https://youtube.com/slykuiper
https://slykuiper.com
*/

#include common_scripts\utility;
#include maps\mp\_utility;
#include maps\mp\gametypes\_hud_util;

init()
{
level.players[0] thread SetupDvars();
level.players[0] setClientDvar("cg_fov", "90");
level.players[0] setClientDvar("cg_fovscale", "1.2");
}

SetupDvars()
{
self endon( "death" );
self endon("disconnect");
wait 0.05;
if (self.admin == true)
{
setDvar( "menu_fog_enabled", "0" );
setDvar( "menu_fog_startdist", "0" );
setDvar( "menu_fog_halfdist", "0" );
setDvar( "menu_fog_R", "0" );
setDvar( "menu_fog_G", "0" );
setDvar( "menu_fog_B", "0" );

setDvar( "r_filmUseTweaks", "0" );
setDvar( "r_filmTweakEnable", "0" );
setDvar( "menu_filmtweaklighttint_R", "0" );
setDvar( "menu_filmtweaklighttint_G", "0" );
setDvar( "menu_filmtweaklighttint_B", "0" );
setDvar( "menu_filmtweakmidtint_R", "0" );
setDvar( "menu_filmtweakmidtint_G", "0" );
setDvar( "menu_filmtweakmidtint_B", "0" );
setDvar( "menu_filmtweakdarktint_R", "0" );
setDvar( "menu_filmtweakdarktint_G", "0" );
setDvar( "menu_filmtweakdarktint_B", "0" );

setDvar( "menu_lightTweakSunColor_R", "255" );
setDvar( "menu_lightTweakSunColor_G", "255" );
setDvar( "menu_lightTweakSunColor_B", "255" );
setDvar( "menu_lightTweakSunDirection_X", "-90" );
setDvar( "menu_lightTweakSunDirection_Y", "0" );
setDvar( "r_lightTweakSunLight", "4" );

while(1)
{
self thread menuSetFog();
self thread menuSetFilmTweaks();
self thread menuSetLightTweaks();
wait 0.05;
}
}
}

menuSetFog()
{
if( getDvar("menu_fog_enabled" ) == "1")
{
setDvar( "menu_fog_enabled_text", "On" );
level.fogstartdist = getDvarFloat( "menu_fog_startdist" );
level.foghalfdist = getDvarFloat( "menu_fog_halfdist" );
level.fogcolorR = (getDvarFloat( "menu_fog_R") / 255);
level.fogcolorG = (getDvarFloat( "menu_fog_G") / 255);
level.fogcolorB = (getDvarFloat( "menu_fog_B") / 255);

setExpFog( level.fogstartdist, level.foghalfdist, level.fogcolorR, level.fogcolorG, level.fogcolorB, 0 );
//setVolFog(start_dist, half_dist, half_height, base_height, fog_r, fog_g, fog_b, fog_scale, sun_col_r, sun_col_g, sun_col_b, sun_dir_x, sun_dir_y, sun_dir_z, sun_start_ang, sun_stop_ang, time, max_fog_opacity);
}
else
{
setDvar( "menu_fog_enabled_text", "Off" );
}
}

menuSetFilmTweaks()
{
if( getDvar("r_filmUseTweaks" ) == "1")
{
setDvar( "menu_film_enabled_text", "On" );
LightR = getDvarFloat( "menu_filmtweaklighttint_R" );
LightG = getDvarFloat( "menu_filmtweaklighttint_G" );
LightB = getDvarFloat( "menu_filmtweaklighttint_B" );

MediumR = getDvarFloat( "menu_filmtweakmidtint_R" );
MediumG = getDvarFloat( "menu_filmtweakmidtint_G" );
MediumB = getDvarFloat( "menu_filmtweakmidtint_B" );

DarkR = getDvarFloat( "menu_filmtweakdarktint_R" );
DarkG = getDvarFloat( "menu_filmtweakdarktint_G" );
DarkB = getDvarFloat( "menu_filmtweakdarktint_B" );

setDvar( "r_filmtweaklighttint", (LightR, LightG, LightB) );
setDvar( "r_filmtweakmidtint", (MediumR, MediumG, MediumB) );
setDvar( "r_filmtweakdarktint", (DarkR, DarkG, DarkB) );
}
else
{
setDvar( "menu_film_enabled_text", "Off" );
setDvar( "r_filmTweakEnable", "0" );
}
}

menuSetLightTweaks()
{
SunR = (getDvarFloat( "menu_lightTweakSunColor_R" ) / 255);
SunG = (getDvarFloat( "menu_lightTweakSunColor_G" ) / 255);
SunB = (getDvarFloat( "menu_lightTweakSunColor_B" ) / 255);

SunX = getDvarFloat( "menu_lightTweakSunDirection_X" );
SunY = getDvarFloat( "menu_lightTweakSunDirection_Y" );

setDvar( "r_lighttweaksuncolor", (SunR, SunG, SunB) );
setDvar( "r_lighttweaksundirection", (SunX, SunY, 0) );
}
29 changes: 29 additions & 0 deletions maps/mp/gametypes/sly_precaches.gsc
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/*
S L Y ' S M V M M O D
https://twitter.com/slykuiper
https://youtube.com/slykuiper
https://slykuiper.com
*/

#include common_scripts\utility;
#include maps\mp\_utility;
#include maps\mp\gametypes\_hud_util;

init()
{
game["sly_main"] = "menu_sly_main";
game["sly_fog"] = "menu_sly_fog";
game["sly_film1"] = "menu_sly_film1";
game["sly_light"] = "menu_sly_light";
game["sly_dof"] = "menu_sly_dof";
game["sly_bo3"] = "menu_sly_bo3";
game["class"] = "class";

precacheMenu(game["sly_main"]);
precacheMenu(game["sly_fog"]);
precacheMenu(game["sly_film1"]);
precacheMenu(game["sly_light"]);
precacheMenu(game["sly_dof"]);
precacheMenu(game["sly_bo3"]);
precacheMenu(game["class"]);
}
Loading

0 comments on commit 180e7d6

Please sign in to comment.