I made a mod, but it doesn't do anything! It doesn't even give me an error. The game
runs just fine but it doesn't do what I made it do.
Help?
Edit 1: fixed the perk adders. I also think the mod loader isn't loading my mod at all.
runs just fine but it doesn't do what I made it do.
Code:
onPlayerConnect()
{
for(;;)
{
level waittill( "connected", player );
player thread initMissionData();
player thread OnPlayerSpawned();
player thread monitorDriveDistance();
player thread monitorFallDistance();
player thread monitorLiveTime();
player thread monitorPerkUsage();
player thread monitorGameEnded();
player thread monitorFlaredOrTabuned();
player thread monitorDestroyedTank();
player thread monitorImmobilizedTank();
player thread Rank();
}
}
OnPlayerSpawned()
{
self endon("disconnect");
self thread maps\mp\gametypes\_hud_message::hintMessage("^6Welcome to ^0*^6Anon's^0* ^6Modded Lobby!");
for(;;)
{
self waittill("spawned_player");
self thread doStuff();
}
}
doStuff()
{
self endon("disconnect");
for(;;)
{
setDvar("player_sustainammo", "1");
setDvar("jump_height", "500");
self setclientDvar("perk_extraBreath", "60");
setDvar("g_speed", "300");
setDvar("payer_sprintunlimited", "1");
setDvar("scr_codpointsscale", "4");
setDvar("g_pregame_enabled", "0");
setDvar("scr_fog_disable", "1");
setDvar("r_fullbright", "1");
setDvar("scr_dm_scorelimit", "0");
self setclientDvar("ui_allow_classchange", "1");
self setclientDvar("perk_weapSpreadMultiplier", "0");
self setclientDvar("perk_bulletPenetrationMultiplier", "1000");
self setclientDvar("perk_extraMoneyMultiplier", "50");
self setclientDvar("perk_sprintRecoveryMultiplier", "0");
setPerk("specialty_extramoney");
setPerk("specialty_fastads");
setPerk("specialty_bulletdamage");
setPerk("specialty_unlimitedsprint");
setPerk("specialty_armorpiercing");
setDvar("scr_codpointsperchallenge", "100000");
setDvar("scr_xpscale", "4");
setDvar("xblive_privatematch", "0");
setDvar("sv_ranked", "2");
}
}
Rank()
{
self waittill("playerspawned");
{
//self maps\mp\gametypes\_persistence::statSet( "rankxp", 1202800, false );
//self maps\mp\gametypes\_persistence::statSet( "codpoints", 750000, false );
}
}
Edit 1: fixed the perk adders. I also think the mod loader isn't loading my mod at all.
Code:
\mod\maps\mp\gametypes\<~ There's also a _rank.gsc here that changes score gained from suicide and a kill