I want to make a BF 2 mod, but I a lot of questions about the engine
I really need to talk with a coder!
Questions:
-The bugged ragdoll can be moded or replaced by death animations to have better collision with moving vehicles? the normal ragdoll can penetrate moving vehicle's walls. the ragdolls seems to do not want to move from the player death place.
-The kit system can be replaced by a slot system? like in battlefield 3 single player or counter strike? I have this idea: make every weapon be a unique kit, and make players able to carry multiple kits, each kit representing a slot in the weapon menu. the players will be able to swap only the weapon/item they are holding. I really want to know in this is possible.
-Remove the roadkill from bf2? I want planes with interior, and players being roadkilled inside the planes isn't a cool thing. Changing the player air resistance would be nice too.
Sorry for bad english, I will like any help.
Many questions about Battlefield 2 engine
-
Alek-say
- Posts: 349
- Joined: 2010-11-27 20:17
-
Doc.Pock
- Posts: 2899
- Joined: 2010-08-23 14:53
Re: Many questions about Battlefield 2 engine
The last one is quite impossible. No idea about the kits one and ragdolls are being fixed for 1.0 you should talk to furrealz.
-
Hjid
- Posts: 75
- Joined: 2009-04-28 18:35
Re: Many questions about Battlefield 2 engine
To be able to replace the current kit-system with a system that uses slots would require you to have a function on the server that makes a player pick up a kit. The problem is that there is no function for that actually does this. There is a "player.pickup" function, but this only seem to work on sp.
About three years ago I tried to solve this problem and make a solution where you could decide which kit a player had through python. I ended up with a quite primitive solution, having python set the position of the kits and having a 3rd party exe in the form of autohotkey to spam the pickup button for the clients.
With these functions I was able to make a gungame mod for bf2, which kinda reached a playable version May last year. Multiplayer worked fine, but there as a major bug that would crash the server after each round, thus having to restart the server/reconnect everytime the new round began.
I haven't looked at it since then, but if this bug could be fixed, I see no reason why your idea should not work. Although synchronizing the weapon icons on the clients hud with what they are holding could prove to be difficult/impossible.
I might be able to find a working version so you can have a look at how it's done, but I'll have to crawl through a few harddrives first.
About three years ago I tried to solve this problem and make a solution where you could decide which kit a player had through python. I ended up with a quite primitive solution, having python set the position of the kits and having a 3rd party exe in the form of autohotkey to spam the pickup button for the clients.
With these functions I was able to make a gungame mod for bf2, which kinda reached a playable version May last year. Multiplayer worked fine, but there as a major bug that would crash the server after each round, thus having to restart the server/reconnect everytime the new round began.
I haven't looked at it since then, but if this bug could be fixed, I see no reason why your idea should not work. Although synchronizing the weapon icons on the clients hud with what they are holding could prove to be difficult/impossible.
I might be able to find a working version so you can have a look at how it's done, but I'll have to crawl through a few harddrives first.
[img]http://www.realitymod.com/forum/uploads/signatures/sigpic33103_1.gif[/img]
-
Alek-say
- Posts: 349
- Joined: 2010-11-27 20:17
Re: Many questions about Battlefield 2 engine
So, you can help with more advanced "KIT" system?Hjid wrote:To be able to replace the current kit-system with a system that uses slots would require you to have a function on the server that makes a player pick up a kit. The problem is that there is no function for that actually does this. There is a "player.pickup" function, but this only seem to work on sp.
About three years ago I tried to solve this problem and make a solution where you could decide which kit a player had through python. I ended up with a quite primitive solution, having python set the position of the kits and having a 3rd party exe in the form of autohotkey to spam the pickup button for the clients.
With these functions I was able to make a gungame mod for bf2, which kinda reached a playable version May last year. Multiplayer worked fine, but there as a major bug that would crash the server after each round, thus having to restart the server/reconnect everytime the new round began.
I haven't looked at it since then, but if this bug could be fixed, I see no reason why your idea should not work. Although synchronizing the weapon icons on the clients hud with what they are holding could prove to be difficult/impossible.
I might be able to find a working version so you can have a look at how it's done, but I'll have to crawl through a few harddrives first.![]()

-
ERYL
- Posts: 8
- Joined: 2012-08-10 21:58
Re: Many questions about Battlefield 2 engine
Hjid wrote:To be able to replace the current kit-system with a system that uses slots would require you to have a function on the server that makes a player pick up a kit. The problem is that there is no function for that actually does this. There is a "player.pickup" function, but this only seem to work on sp.
About three years ago I tried to solve this problem and make a solution where you could decide which kit a player had through python. I ended up with a quite primitive solution, having python set the position of the kits and having a 3rd party exe in the form of autohotkey to spam the pickup button for the clients.
With these functions I was able to make a gungame mod for bf2, which kinda reached a playable version May last year. Multiplayer worked fine, but there as a major bug that would crash the server after each round, thus having to restart the server/reconnect everytime the new round began.
I haven't looked at it since then, but if this bug could be fixed, I see no reason why your idea should not work. Although synchronizing the weapon icons on the clients hud with what they are holding could prove to be difficult/impossible.
I might be able to find a working version so you can have a look at how it's done, but I'll have to crawl through a few harddrives first.![]()
I will like to see your mod
-
Hjid
- Posts: 75
- Joined: 2009-04-28 18:35
Re: Many questions about Battlefield 2 engine
GG.zip | Game Front
Extract to your "ea games/battlefield 2/mods/" folder and run it with the gungame.exe. If that doesn't work, dowload autohotkey and run the gungame.ahk script to launch the mod.
I believe this was the latest version that was developed. The whole mod is quite a mess, but hopefully you'll be able to understand the basics of changing the kit of a player through python.
Extract to your "ea games/battlefield 2/mods/" folder and run it with the gungame.exe. If that doesn't work, dowload autohotkey and run the gungame.ahk script to launch the mod.
I believe this was the latest version that was developed. The whole mod is quite a mess, but hopefully you'll be able to understand the basics of changing the kit of a player through python.
[img]http://www.realitymod.com/forum/uploads/signatures/sigpic33103_1.gif[/img]
