PDA

View Full Version : Code



Raptor25k
01-25-10, 03:38 PM
I got bored this morning and decided to play with some code on bf2, I'm not a bf2 coder but with some time and patience i can figure most things out.

I had to edit the raw code to do this becuz i can't get BF2 Map Editor to work on Windows 7

I replaced the APC with the M1A2 and i replaced the m1a2 with the Cobra on Strike at Karkand

[Team] Kilemal
01-25-10, 03:47 PM
Hmm . . . .

I might have some work for you bud - of course it isn't paying work but its work none the less.

Deathgrinder
01-25-10, 03:53 PM
Thats really cool! I want to play it!

Baggy_Drawers
01-25-10, 05:01 PM
A chopper on Karkand? Seems both awesome and sacrilegious at the same time. With the way the vanilla server is like a zoo sometimes, can you imagine the rush for that thing at round start?

Now if you want to do something really cool, put a chopper in Warehouse!

Raptor25k
01-25-10, 06:39 PM
A chopper on Karkand? Seems both awesome and sacrilegious at the same time. With the way the vanilla server is like a zoo sometimes, can you imagine the rush for that thing at round start?

Now if you want to do something really cool, put a chopper in Warehouse!

yet but this was just something i was screwing around with :)

billybebad
01-25-10, 07:02 PM
A chopper on Karkand? Seems both awesome and sacrilegious at the same time. With the way the vanilla server is like a zoo sometimes, can you imagine the rush for that thing at round start?

Now if you want to do something really cool, put a chopper in Warehouse!

Chopper in warehouse, now that would sure be a sight to see, crashing into all the creates, would sure to clear the flags though, now buggies would be nice in there, or even the ATV.

ISirius
01-25-10, 09:25 PM
...and M1A2 on cliff attack! :)

tinybobdfa
01-25-10, 10:10 PM
Nah what you need are Motorbikes like you get on other mods
:D:D:D:D:D

**72C*Ben*R77**
01-26-10, 02:52 AM
I'm surprised there weren't any in the vanilla game......I remember they used to have those 2 seater mopeds on the city maps in BF Vietnam

Ghotimeal
01-26-10, 03:55 AM
Blackhawks on cliff attack!

Tea&Medals
01-26-10, 07:53 AM
What about the quad bikes in the special forces maps with a mini gun?? wishful thinking

tinybobdfa
01-26-10, 09:58 AM
AIX2 TNG2 has those little ATV buggies instead of missiles they have mini guns!!!!
go here for more info....

http://team-nitro.com/forums/showthread.php?t=782

[Team] Traz
01-26-10, 02:52 PM
In your spare time creating all the requested maps may I put one in for choppers in the Taraba Quarry map? Choppers for both sides and maybe a mobile AA would be nice. One can only ask. Or we could go the other direction with Transport vehicles and Tow placements against their tanks? Probably a blood bath for us but it should encourage us to work as a team, use anti-tank kits and put out more mines, etc.

Deathgrinder
01-26-10, 05:26 PM
Blackhawks on cliff attack!

Yea that would be a fun mow fest! :D

I got an idea, how about we kidnap Raptor, lock him in a basement somewhere in the middle of no where. Strap him down to a chair, with a computer in front of him (cut online access off)...and then we will make him make all the maps we all want made. If not it's off with the head! :eek:

J/king :cool:

[Team] Jenifearia
01-26-10, 05:33 PM
he's going to run and never return. lol

tinybobdfa
01-26-10, 05:44 PM
I bet Raptor wishes he never opened his mouth now. :D:D

Raptor25k
01-26-10, 06:14 PM
LoL i'm not going anywhere, but as for creating maps thats out ! lol and the only reason i say this is becuz i can't get bf2 map editor to work on Win 7

I can edit existing maps but thats about it, reason being is when you create code for anything to be spawned you have to give an exact position for it to be spawned at, Let me give you an example

This is half of the actual code on Dillian Plant to spawn the chopper at the reactors




rem [ObjectSpawner: CPNAME_DP_SP16_reactors_AttakHeli]
Object.create CPNAME_DP_SP16_reactors_AttakHeli
Object.absolutePosition 115.086/153.200/-95.006
Object.rotation -32.000/0.000/0.000
Object.setControlPointId 503
Object.layer 6


Object.absolutePosition 115.086/153.200/-95.006

By using existing code i know where that position is but just finding a flat spot in the map there is no way to guess those numbers without the map editor, yea you could put random numbers in but it will prolly winned up being on top of a mt somewhere, or out of bounds or at the bottom of the ocean :)

But i am currently trying to make traz's suggestion work, i'm working on it but i want know anything until i test it out.

Raptor25k
01-26-10, 11:35 PM
In your spare time creating all the requested maps may I put one in for choppers in the Taraba Quarry map? Choppers for both sides and maybe a mobile AA would be nice.



I just now finshed this up, Added 2 attack heli's, 1 for each side, and also added AA for each side.

Ghotimeal
01-27-10, 12:34 AM
nice!

[Team] Traz
01-27-10, 12:58 AM
I just now finshed this up, Added 2 attack heli's, 1 for each side, and also added AA for each side.

I'm not sure what to say but I nominate you for some high rank with lots of bling and the first 50 runs in the choppers as pilot or gunner or whatever you want. It's not nice to tease but that would be a fun map to play. Good pictures. :)

tinybobdfa
01-27-10, 07:01 AM
Wow I never realized it was that easy, and hard all at the same time. :D
I will have to look into this editing thingy my self. :p

Raptor25k
01-27-10, 09:18 AM
Easy ? lol yea i hear ya

Anyway

I only have this setup for coop 16

But if you wanna try it out you'll have to launch a stand alone bf2 server and set it up for coop or you can start bf2 and go to muitiplayer - Create Local and do it that way but you'll get the msg saying you need atleast one more person for the round to start or some crap, under the stand alone server you can stop that by selecting NumPlayersNeededToStart and changeing it to 0.

First thing you wanna do is go to \EA Games\Battlefield 2\mods\bf2\levels\Taraba_Quarry

There should be 4 Things in here:

Info
client.zip
server.zip
archive.md5

Rename server.zip to anything you want serverBackUp.zip will be ok, Were only doing this incase it does'nt work for you then you can delete mine and just rename yours back to server.zip

Second thing to do is delete archive.md5 , All this is, Is just a checksum to verify the contents to the original if it don't match you get the unmodified content msg and you can't play, You don't need it, But if you insist on keepin it then just rename it.

Then download this file and place it in your EA Games\Battlefield 2\mods\bf2\levels\Taraba_Quarry directory, Once your done the directory should look like this.

Info
client.zip
server.zip
serverBackUp.zip

The file is on RapidShare since it's 11 mb's i could'nt post it here, if you don't have an account just click free user and wait 50 seconds i think.

http://rapidshare.com/files/341814611/server.zip

Raptor25k
01-27-10, 11:00 PM
Yea and i almost forgot, the server.zip file that you backed up, When you get ready to get back on the vanilla team server you'll need to rename it back to server.zip, If you don't your game will crash when taraby quarry comes up