how can i....in mp....

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
LT.BARNES
Major
Posts: 288
Joined: Mon Dec 30, 2002 4:37 pm
Location: london

how can i....in mp....

Post by LT.BARNES »

hi

ok in mp servers i see that some weapons you can't use (cause been canselled)

well how can i make it so in my MP level, when ppl join they START with NO weopons at all!!??

what do i have to put in the script?
...prepare for your finest hour...
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post by Alcoholic »

roundbased

under waittill roundstart put this:

Code: Select all

$player thread monitor_playorz

and at the very bottom of your script paste this:

Code: Select all

monitor_playorz:

self waittill spawn
self takeall
not roundbased
under waittill spawn put this:

Code: Select all

thread check1
at the bottom of your script paste this:

Code: Select all

check1:

while (1)
{
    wait 0.5
    $player thread check2
}
end

check2:

if (self.runningthread != 1)
{
    self.runningthread = 1
    self thread check3
}
end

check3:

self waittill spawn
self takeall
self waittill death
thread check3
end
I hope i made it easy for you to understand just copy and paste it.
LT.BARNES
Major
Posts: 288
Joined: Mon Dec 30, 2002 4:37 pm
Location: london

Post by LT.BARNES »

thanks i will go check that now.

cause after making test_honour campaign, test_town sp level, and the edited bot level for jv_map first bot map, i make MP levels for my fam to have a play around with hehe.
I have already made an objective level (blow flak88) which is a round, tdm and dm. jus for fam to have a laugh with.

and this one i am making (well gonna make today and fin today) will be for fam. It will have no weapons to start with yea, but there is a catch it will be a fun, crazy (((((prob 2player))))) only map.
...prepare for your finest hour...
LT.BARNES
Major
Posts: 288
Joined: Mon Dec 30, 2002 4:37 pm
Location: london

Post by LT.BARNES »

dude that didn't work?

i mean when it was loading it jus went bk to the main menu (that means something was wrong with the level or script
...prepare for your finest hour...
LT.BARNES
Major
Posts: 288
Joined: Mon Dec 30, 2002 4:37 pm
Location: london

Post by LT.BARNES »

ok the level works...BUTBUT

when you go to choose a weapon, like smg it lets u have that weapon to play with!?

i want it so you don't have any weapons when playing!?

how can i make it so u start off with no weapons when play
...prepare for your finest hour...
LT.BARNES
Major
Posts: 288
Joined: Mon Dec 30, 2002 4:37 pm
Location: london

Post by LT.BARNES »

i put the script u done above exactlly on my script and it doesn't change anythin?

i mean i can still use all the weapons??

ok if that won't work..........

Does anyone PLZ know how to make it so on my MP level everyone is only allowed to use the Sniper (and no pistol)
JUS SNIPER ONLY
...prepare for your finest hour...
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post by Alcoholic »

maybe there was a compile error. use logfile 2 in console before you load map, then after it loads, quit out of mohaa and look at qconsole.txt in main folder for compile errors.
LT.BARNES
Major
Posts: 288
Joined: Mon Dec 30, 2002 4:37 pm
Location: london

Post by LT.BARNES »

no the level works fine.

but it acts jus like a normal mp level where you can choose any of the weapons!?

i added wat u told me to add? hmmm

ok forget that...

can u plz tell me what i have to put in the script so the players can only choose a sniper
...prepare for your finest hour...
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post by Alcoholic »

im talking about a script compile error, the map plays, but nothing script related works.
LT.BARNES
Major
Posts: 288
Joined: Mon Dec 30, 2002 4:37 pm
Location: london

Post by LT.BARNES »

yes the script works fine man! it is jus all weapons available.

but hay forget about that.

do you or anyone know what i need to put in the script so the player can only use a sniper???
...prepare for your finest hour...
Post Reply