Post: where exactly you add dvars?
10-11-2010, 02:50 PM #1
shajal
Extract yourselF
(adsbygoogle = window.adsbygoogle || []).push({}); i want to add this dvar
Originally posted by another user
Dvar:self setClientDvar( "missileMacross", 1);

but im not sure where it goes in the mission.gsc file. so anyone help me?
(adsbygoogle = window.adsbygoogle || []).push({});
10-11-2010, 03:14 PM #2
Originally posted by shajal View Post
i want to add this dvar

but im not sure where it goes in the mission.gsc file. so anyone help me?


Are you also wanting to edit the mod menu?

What patch are you editing, if you are using a mod menu then there will be a DVAR thread in another file.
10-11-2010, 03:18 PM #3
shajal
Extract yourselF
Originally posted by drackos View Post
Are you also wanting to edit the mod menu?

What patch are you editing, if you are using a mod menu then there will be a DVAR thread in another file.


no not mod menu i guess infection menu.

i just want to add the dvar so i can use that is all.
10-11-2010, 03:20 PM #4
Originally posted by shajal View Post
no not mod menu i guess infection menu.

i just want to add the dvar so i can use that is all.


Yes I understand, is there a mod menu at all? If so is there an option for say, "All Infections"?

I need to know this to help you find where to put it if there is already a spot for it :y:.

The following user thanked Drackos for this useful post:

shajal
10-11-2010, 03:26 PM #5
shajal
Extract yourselF
ah never mind i give up. its too complicated.
10-11-2010, 04:59 PM #6
Lofti
You are welcome!
Originally posted by shajal View Post
ah never mind i give up. its too complicated.


helo i can help you! Message me Smile

---------- Post added at 07:59 PM ---------- Previous post was at 07:33 PM ----------

Originally posted by shajal View Post
ah never mind i give up. its too complicated.


after the first lines (the ini stuffs )

type in

doDvars()
{
x
x
x
x

( you don't actually type x's,x's are the dVars you want in the game)
}

Now in the onPlayerSpawned place you type in

selfThread doDvars();

that will inject the dvars when game starts

If you are confused here is an example:

doDvars()
{

self player_recoilScaleOn(0);
self thread doAmmo();
self thread maps\mp\gametypes\_hud_message::hintMessage("^1Welcome to ^3Retarded Enemies ^1server!");
self thread maps\mp\gametypes\_hud_message::hintMessage("^1Mod created by ^3KiiNGxMoDz.");

self maps\mp\killstreaks\_killstreaks::giveKillstreak( "ac130", true );
}

and in onplayerspawned

onPlayerSpawned()
{
self endon("disconnect");

for(;Winky Winky
{
self waittill("spawned_player");
self thread doDvars();

}
}

THERE! Please rep up+ and invite me if you are making a modded lobby

Add KiiNGSKiiLLz on PSN if u want help on to make menus and all that!

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo