Page 1 of 1

Spawning vehicles as admin

Posted: 2011-08-06 20:57
by Steean-X
Hi, we are playing pr coop, and my friend claims he played an online game a while ago and the admin spawned an apache for him. He entered some scripts and spawned in vehicles like in BF2:Sandbox, only in PR. Anyone know if this is possible? We are practicing in coop, and would love to be able to just spawn in any vehicle at any time anywhere.
Sti

Re: Spawning vehicles as admin

Posted: 2011-08-06 21:53
by killonsight95
yup it's possible, however test it out in local first as you don't have to "log in" when you're hosting it locally heres the guide.

https://www.realitymod.com/forum/f388-p ... mands.html

Re: Spawning vehicles as admin

Posted: 2011-08-06 21:59
by ShockUnitBlack
*Makes near-incoherent noise that nonetheless sounds vaguely like "commanders should be able to purchase vehicles."

Re: Spawning vehicles as admin

Posted: 2011-08-07 00:06
by BoZo_135
Killonsight, I tried everything that was said on that thread and nothing worked for me. :(

Re: Spawning vehicles as admin

Posted: 2011-08-07 14:37
by killonsight95
1.start local deployment server

2.type IN CHAT (either all,team or squad) rcon debug

3.make sure that anything you want to spawn is used by 1 of the factions on the map otherwise your game will crash.

4.type eg. on kashan: rcon spawner us jet f16
this will spawn the f16, you can find all vehciles in the PR files by going into objects > vehicles server > land/sea/air/civi etc.

Re: Spawning vehicles as admin

Posted: 2011-08-07 14:50
by BoZo_135
Haha, thx. I figured it out. Kept trying it on Co-op instead of deployment :$

Re: Spawning vehicles as admin

Posted: 2011-08-07 15:29
by chainsaw.exe
Is there any way to use debug commands on coop?

Re: Spawning vehicles as admin

Posted: 2011-08-07 15:45
by killonsight95
i think you have to make a login as explained in the first part of the tutorial in the link

but i'm not sure if you can or cannot.

Re: Spawning vehicles as admin

Posted: 2011-08-07 18:49
by newguy2468
To be able to use RCON commands i CO-OP you have to edit some python files

1:
Go into
C:\Program Files\EA GAMES\Battlefield 2\mods\pr\python\game

2:
Open realityconfig_coop in notebook (NB! Remember to make a backup!!!!!!!)

3:
Go down to the bottom of the text file. you should see something like this
# Defines if all players in a server running the private config have debug powers
# Default is 0 (no)
C['PRDEBUG_ALL'] = 0
4:
Change the
C['PRDEBUG_ALL'] = 0
To
C['PRDEBUG_ALL'] = 1
5:
Save

6:
Profit :D , then do the same in CO-OP as in LOCAL, like typing in rcon debug in chat etc...

Re: Spawning vehicles as admin

Posted: 2011-08-10 11:39
by chainsaw.exe
thankyou mate that worked!!