Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds
Watch MODSonair

Members Online

»
0 Active | 11 Guests
Online:

LATEST FORUM THREADS

»
Rainbow HELP....
CoD4 MP Mapping
water
CoD4 MP Mapping
help pls
CoD2 Scripting

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty 2
Category: CoD2 Scripting
Scripting and coding with Call of Duty 2.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: thread custom tables on an online server
kimistatheone
General Member
Since: Mar 1, 2012
Posts: 47
Last: May 2, 2013
[view latest posts]
Level 2
Im a fan of MODSonair
Category: CoD2 Scripting
Posted: Wednesday, May. 16, 2012 06:39 am
hello.

i have a mod and a server. if i change something in the mod, i have to restart my server or use a maprotation.
i would like to apply the changes without restart/maprot.

i try write somthing, but didnt works.

Code:


setcvar ("fvs", "maps/mp/force::init()");

slow()
{
	setcvar("slow", "");
	while(1)
	{	
	wait 1;
	if(getcvar("slow") !="")
		{
fvs = getcvar("fv");
thread fvs;
		}
	setcvar("slow", "");
	}
}



is it immpossible to solve it?
Share |
serthy
General Member
Since: Sep 8, 2010
Posts: 480
Last: Apr 15, 2013
[view latest posts]
Level 5
Im a fan of MODSonair
Category: CoD2 Scripting
Posted: Wednesday, May. 16, 2012 11:13 am
the engine reads all your scripts during starting sequence of your server
this way you can delete/modify/whatever your script files, the engine doesnt care about that while it is running
so you !!cannot!! change your scripts while the server is running
also
'level thread maps\mp\gametypes::getCvar( "function" );'
will never ever work, you need to run a functionPointer and getCvar() returns a string..
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 Scripting

Latest Syndicated News

»
Why console gaming is dying
Quote:Consider this: Dedicated gaming sales — including living-room consoles...
Devs: Games are being dumb...
Click 'read more' to view the contents of this post.
Loadout
Gun Crafting to the Max. edited on Sep. 25, 2012 06:57 pm by Morp...
Introducing the Source Fil...
Surprised this wasn't made a long time ago. Sounds like a nice little feature.
Introducing the Source Fil...
The Source Filmmaker (SFM) is the movie-making tool built and used by us he...

Partners & Friends

»