Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Request My mod doesn't do anything?
#1
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
Reply

#2
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)
Reply

#3
(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?
Reply

#4
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
Reply

#5
(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!
Reply

#6
Also type
Code:
/sv_cheats 1; map_restart
Dont no if they hid the
Code:
sv_cheats 1
or not
Reply

#7
(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
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Help My Server Doesn't Display DarkyPwnz 2 2,860 06-16-2013, 17:25
Last Post: DarkyPwnz
  Help BAN Doesn't seem to work correctly hillbilly 8 3,891 08-08-2012, 00:45
Last Post: Cyanide
  Battlefield 3 Beta client doesn't start? maybe this helps ddaavvee 15 15,407 10-08-2011, 17:54
Last Post: ddaavvee
  Help Wallhack doesn't work :( Xzite 6 5,648 04-14-2011, 13:08
Last Post: Xzite
  MW2_Liberation doesn't work as VAC disabler? Xandosoulja 2 3,215 02-09-2011, 17:58
Last Post: isokasi

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.