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

Members Online

»
0 Active | 52 Guests
Online:

LATEST FORUM THREADS

»
CoD: Battle Royale
CoD+UO Map + Mod Releases
Damaged .pk3's
CoD Mapping
heli to attack ai
CoD4 SP Mapping

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, DrBiggzz, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: fast_restart map
FLX
General Member
Since: Feb 2, 2008
Posts: 38
Last: Feb 28, 2011
[view latest posts]
Level 2
Category: CoD2 Scripting
Posted: Wednesday, Jan. 19, 2011 07:03 pm
i have only one map on my server
so when the time is offer map_rotation map_restarts the map
but i only want a fast_restart instead...

so that map doenst reload only restarts...

anyone knows how to do this?
Share |
liltc64
General Member
Since: Feb 12, 2007
Posts: 906
Last: Oct 22, 2012
[view latest posts]
Level 7
Im a fan of MODSonair
Category: CoD2 Scripting
Posted: Wednesday, Jan. 19, 2011 07:05 pm
map_restart(true); or i think its false one of those though.
Share |
FLX
General Member
Since: Feb 2, 2008
Posts: 38
Last: Feb 28, 2011
[view latest posts]
Level 2
Category: CoD2 Scripting
Posted: Wednesday, Jan. 19, 2011 07:13 pm
i tried it:
Code:
endMap()
{
...
wait 10;
exitLevel(false);
map_restart(true);


doesnt work...
Share |
tomalla
General Member
Since: Jan 16, 2007
Posts: 393
Last: Jun 10, 2012
[view latest posts]
Level 5
Im a fan of MODSonair
Category: CoD2 Scripting
Posted: Wednesday, Jan. 19, 2011 07:41 pm
As far as I know:

Code:
exitLevel(<param>);


... makes the level to EXIT. Just remove it and all should be just fine [rolleyes]
Share |
FLX
General Member
Since: Feb 2, 2008
Posts: 38
Last: Feb 28, 2011
[view latest posts]
Level 2
Category: CoD2 Scripting
Posted: Wednesday, Jan. 19, 2011 07:56 pm
now when server ends i see scoreboard and i wait and wait and wait but nothing happens, so i tried this
http://iwnation.com/forums/topic/26104-server-running-one-map/page__view__findpost__p__248820
but it gets to error unknown function level thread openMenu(game["menu_team"]);

so i made self openMenu(game["menu_team"]);

but menu doesnt pops up and i waint again till i die.....

help?
Share |
IzNoGoD
General Member
Since: Nov 29, 2008
Posts: 694
Last: Nov 10, 2012
[view latest posts]
Level 6
Category: CoD2 Scripting
Posted: Wednesday, Jan. 19, 2011 08:16 pm
Just recall all the load() threads, and make all players run onplayerconnect() callback again.
Share |
FLX
General Member
Since: Feb 2, 2008
Posts: 38
Last: Feb 28, 2011
[view latest posts]
Level 2
Category: CoD2 Scripting
Posted: Wednesday, Jan. 19, 2011 08:22 pm
hmm
should i do that with my or with tallys solution
and what should i do with Callback_PlayerConnect()?
and which are the load()-threads

explain a bit pls
im not an ultimate pro in scripting...
Share |
liltc64
General Member
Since: Feb 12, 2007
Posts: 906
Last: Oct 22, 2012
[view latest posts]
Level 7
Im a fan of MODSonair
Category: CoD2 Scripting
Posted: Wednesday, Jan. 19, 2011 11:26 pm
i dont understand how map_restart(true); wouldnt work... iv used it before and im pretty positive if you even looking the sd.gsc your self... you will see thats how they restart anything on a new round.
Share |
FLX
General Member
Since: Feb 2, 2008
Posts: 38
Last: Feb 28, 2011
[view latest posts]
Level 2
Category: CoD2 Scripting
Posted: Thursday, Jan. 20, 2011 07:07 am
it works fine, but the problem is, after the restart, the team_menu (for example team_americangerman.menu) doesnt pops up
so i can do nothing
look:
Share |
liltc64
General Member
Since: Feb 12, 2007
Posts: 906
Last: Oct 22, 2012
[view latest posts]
Level 7
Im a fan of MODSonair
Category: CoD2 Scripting
Posted: Thursday, Jan. 20, 2011 06:48 pm
in this screen shot it does not look like its working fine because what map_restart(true); does is do a nice complete restart it does not pop the scoreboard up there is a different code for that so you must be using it wrong or something.
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 Scripting

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»