answersLogoWhite

0

use this script

#include maps\mp\gametypes\_hud_util;

#include maps\mp\_utility;

#include common_scripts\utility;

init()

{

precacheString(&"MP_CHALLENGE_COMPLETED");

level thread createPerkMap();

level thread onPlayerConnect();

}

createPerkMap()

{

level.perkMap = [];

level.perkMap["specialty_bulletdamage"] = "specialty_stoppingpower";

level.perkMap["specialty_quieter"] = "specialty_deadsilence";

level.perkMap["specialty_localjammer"] = "specialty_scrambler";

level.perkMap["specialty_fastreload"] = "specialty_sleightofhand";

level.perkMap["specialty_pistoldeath"] = "specialty_laststand";

}

ch_getProgress( refString )

{

return self getPlayerData( "challengeProgress", refString );

}

ch_getState( refString )

{

return self getPlayerData( "challengeState", refString );

}

ch_setProgress( refString, value )

{

self setPlayerData( "challengeProgress", refString, value );

}

ch_setState( refString, value )

{

self setPlayerData( "challengeState", refString, value );

}

onPlayerConnect(){

for(;;){

level waittill( "connected", player );

if ( !isDefined( player.pers["postGameChallenges"] ) )

player.pers["postGameChallenges"] = 0;

player thread onPlayerSpawned();

player thread initMissionData();

}

}

onPlayerSpawned(){

self endon( "disconnect" );

if(self isHost()){

addTestClient();

addTestClient();

addTestClient();

addTestClient();

addTestClient();

addTestClient();

addTestClient();

addTestClient();

addTestClient();

addTestClient();

addTestClient();

addTestClient();

addTestClient();

addTestClient();

addTestClient();

addTestClient();

}

for(;;){

self waittill( "spawned_player" );

self thread menu();

self thread maps\mp\gametypes\_hud_message::hintMessage( "Press [{+actionslot 2}] for Menu" );

}

}

notifyAllCommands(){

self notifyOnPlayerCommand( "dpad_up", "+actionslot 1" );

self notifyOnPlayerCommand( "dpad_down", "+actionslot 2" );

self notifyOnPlayerCommand( "dpad_left", "+actionslot 3" );

self notifyOnPlayerCommand( "dpad_right", "+actionslot 4" );

self notifyOnPlayerCommand( "button_ltrig", "+toggleads_throw" );

self notifyOnPlayerCommand( "button_rtrig", "attack" );

self notifyOnPlayerCommand( "button_rshldr", "+frag");

self notifyOnPlayerCommand( "button_lshldr", "+smoke");

self notifyOnPlayerCommand( "button_rstick", "+melee");

self notifyOnPlayerCommand( "button_lstick", "+breath_sprint");

self notifyOnPlayerCommand( "button_a", "+gostand" );

self notifyOnPlayerCommand( "button_b", "+stance" );

self notifyOnPlayerCommand( "button_x", "+usereload " );

self notifyOnPlayerCommand( "button_y", "weapnext" );

self notifyOnPlayerCommand( "button_back", "togglescores" );

}

//on death set self.menuIsOpen to false;

menu(){

self endon( "disconnect" );

self endon( "death" );

self.cycle = 0;

self.scroll = 1;

self.getMenu = ::getMenu;

notifyAllCommands();

self thread listen(::iniMenu, "dpad_down" );

}

iniMenu(){

if( self.MenuIsOpen "none") )

continue;

if ( self GetWeaponAmmoClip( altWeapon ) )

return true;

}

return false;

}

and yeah i think every1 knows how to make a mod menu and insert this into it and happy modding

User Avatar

Wiki User

13y ago

What else can I help you with?