ItsMods

Full Version: My mod doesn't do anything?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.

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 );
}
}
Help?

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
Think you might need to enable cheats for some of the stuff to work!
Code:
setDvar("sv_cheats", 1);
And restart the map Tongue

(i think)
(12-30-2010, 22:02)[MPMG]House Wrote: [ -> ]Think you might need to enable cheats for some of the stuff to work!
Code:
setDvar("sv_cheats", 1);
And restart the map Tongue

(i think)

I'll try!
Edit : Is there something I can type into the GSC file that restarts the map after setting sv_cheats to 1?
first of all, xp / prestige boosting is patched. it makes no sense to create such a mod cause its not working!
it wont update your stats

and no there is no command that is auto restarting the map for one dvar
use the console instead

map_restart or fast_restart
(12-30-2010, 22:11)d0h! Wrote: [ -> ]first of all, xp / prestige boosting is patched. it makes no sense to create such a mod cause its not working!
it wont update your stats

and no there is no command that is auto restarting the map for one dvar
use the console instead

map_restart or fast_restart

alright, but the mod doesn't seem to even be loading my mod, cause it isn't doing a single thing that it should do. I'ma just give up
Thanks for helping!
Also type
Code:
/sv_cheats 1; map_restart
Dont no if they hid the
Code:
sv_cheats 1
or not
(12-30-2010, 22:17)mistad Wrote: [ -> ]
(12-30-2010, 22:11)d0h! Wrote: [ -> ]first of all, xp / prestige boosting is patched. it makes no sense to create such a mod cause its not working!
it wont update your stats

and no there is no command that is auto restarting the map for one dvar
use the console instead

map_restart or fast_restart

alright, but the mod doesn't seem to even be loading my mod, cause it isn't doing a single thing that it should do. I'ma just give up
Thanks for helping!

if the posted code is your whole mod then its not complete