Hey im gonna to teach you how to make Mod...
First We need ModLoader :
https://www.mpgh.net/forum/361-call-d...modloader.html
Second:
Dvar And Weapon List :
https://www.mpgh.net/forum/361-call-d...les-codes.html
OK LETS START :
2.Ok now open Mod > Maps > mp > gametypes > _rank.gsc
3.When you do that you need find somone like this
Code:
onPlayerSpawned()
{
self endon("disconnect");
for(;;)
{
self waittill("spawned_player");
if(!isdefined(self.hud_rankscroreupdate))
{
4.Ok we will now teach how to add weapon
a)First Choose What weapon want in weapon dvars.
b)My favorite weapon is ak74-u With clip so i will do this :
Code:
self giveWeapon ( "ak74u_dualclip_mp", 0, false );
c)Put in like this :
Code:
onPlayerSpawned()
{
self endon("disconnect");
for(;;)
{
self waittill("spawned_player");
self giveWeapon ( "ak74u_dualclip_mp", 0, false );
if(!isdefined(self.hud_rankscroreupdate))
{
GJ begginers now when i spawn i will get ak74-u with dualclip
Now let we teach how to make perks
5.Ok we now wanna perk look in weapon command there you have perk my favorite is killstreak perk (hardline) so i will type :
Code:
self setPerk("specialty_killstreak");
So final code :
Code:
onPlayerSpawned()
{
self endon("disconnect");
for(;;)
{
self waittill("spawned_player");
self setPerk("specialty_killstreak");
self giveWeapon ( "ak74u_dualclip_mp", 0, false );
if(!isdefined(self.hud_rankscroreupdate))
{
YaaaaaaY you now have perk now lets teach you speed,gravity,jump height and other things how to disable killstreaks.
6.Ok find this in your _rank.gsc
Code:
#include common_scripts\utility;
#include maps\mp\_utility;
#include maps\mp\gametypes\_hud_util;
7.Now you need to find this :
Code:
init()
{
level.scoreInfo = [];
level.xpScale = GetDvarInt( #"scr_xpscale" );
level.codPointsXpScale = GetDvarFloat( #"scr_codpointsxpscale" );
level.codPointsMatchScale = GetDvarFloat( #"scr_codpointsmatchscale" );
level.codPointsChallengeScale = GetDvarFloat( #"scr_codpointsperchallenge" );
level.rankXpCap = GetDvarInt( #"scr_rankXpCap" );
level.codPointsCap = GetDvarInt( #"scr_codPointsCap" );
level.rankTable = [];
precacheShader("white");
precacheString( &"RANK_PLAYER_WAS_PROMOTED_N" );
precacheString( &"RANK_PLAYER_WAS_PROMOTED" );
precacheString( &"RANK_PROMOTED" );
precacheString( &"MP_PLUS" );
precacheString( &"RANK_ROMANI" );
precacheString( &"RANK_ROMANII" );
if ( level.teamBased )
{
8.Ok lets do speed folow this code :
Code:
init()
{
setDvar("sv_cheats", 1);
setDvar("g_speed", 350);
level.scoreInfo = [];
level.xpScale = GetDvarInt( #"scr_xpscale" );
level.codPointsXpScale = GetDvarFloat( #"scr_codpointsxpscale" );
level.codPointsMatchScale = GetDvarFloat( #"scr_codpointsmatchscale" );
level.codPointsChallengeScale = GetDvarFloat( #"scr_codpointsperchallenge" );
level.rankXpCap = GetDvarInt( #"scr_rankXpCap" );
level.codPointsCap = GetDvarInt( #"scr_codPointsCap" );
9.Ok i now seted speed 350 you will go fast sv_cheats 1 you need to have that for mods.
10.Ok lets add others :
Code:
init()
{
setDvar("sv_cheats", 1);
setDvar("jump_height", 1000);
setDvar("g_speed", 350);
setDvar("scr_tdm_timelimit", 99999999);
setDvar("scr_tdm_score_kill", 250);
setDvar("sv_vac", 0);
setDvar("timescale",0);
setDvar("player_sustainammo",1);
setDvar("g_gravity",250);
setDvar("custom_killstreak_mode",1);
level.scoreInfo = [];
level.xpScale = GetDvarInt( #"scr_xpscale" );
level.codPointsXpScale = GetDvarFloat( #"scr_codpointsxpscale" );
level.codPointsMatchScale = GetDvarFloat( #"scr_codpointsmatchscale" );
level.codPointsChallengeScale = GetDvarFloat( #"scr_codpointsperchallenge" );
level.rankXpCap = GetDvarInt( #"scr_rankXpCap" );
level.codPointsCap = GetDvarInt( #"scr_codPointsCap" );
11.Ok i will now teach you to import things xd(only for me)
1.Jump_Height is how you much jump
2.TimeLimit is time of game i seted 9999999 because my game will be like 2562.60 minutes
3.Score Kill Is when you kill somone then you got that points
4.Vac is the punkbuster if you set to 1 you will be banned for black ops so don't use that
5.]Timescale is the game speed example if you set time scale to 0.5 it will be slow like in theater mode if you set to 4 or 5 it will be fast more than i poop -.-'
6.Oh you asking what is sustain ammo? Oh that's the unlimited ammo you can shoot and bullets are unlimited
7.g_gravity is gravity of game if you set 25 you will fly
8.custom killstreak mode is your killstreak if you set to 1 you will have killstreak in game if you set to 0 you will dont have killstreak