[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4668: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4670: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4671: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4672: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
Battlefield Modding Tutorials BFMODS :: View topic - Ever dreamed of BF2....
Battlefield Modding Tutorials BFMODS
https://battlefieldmodding.com/ssm/phpBB3/

Ever dreamed of BF2....
https://battlefieldmodding.com/ssm/phpBB3/viewtopic.php?f=5&t=3860
Page 1 of 1

Author:  Archimonde0_0 [ Sat Feb 23, 2008 1:55 am ]
Post subject:  Ever dreamed of BF2....

Ever dreamed of having Battlefield 2 soldiers move just like BF1942 soldiers...well guess what you can!

Objects_server/soldiers/common/common.con


rem *** Adjust the soldier's speed. All stances are affected (crouch, etc)
Vars.Set phy-soldier-speed-factor 1.65
vars.set phy-soldier-sprint-speed 5
vars.set phy-soldier-run-speed 1.5
vars.set phy-soldier-walk-speed 0.6
vars.set phy-soldier-crawl-speed 0.6

Change these to these settings, (it will look like your sprinting, your not don't worry)

and then all you gotta do is edit this peice of code for each soldier:

(Example:Objects_Server/Soldiers/US/US_HEAVY_SOLDIER.tweak)

ObjectTemplate.drag 1.0
ObjectTemplate.mass 100
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
ObjectTemplate.SprintRecoverTime 20
ObjectTemplate.SprintDissipationTime 0
ObjectTemplate.SprintLimit 0.001
ObjectTemplate.SprintLossAtJump 0
rem ObjectTemplate.Grip 20

To be like this, this turns off the sprint, and then VIOLA! Your soldiers now move almost exactly like they did in BF1942. Im looking for a way to make the speed at which the sprint animation engages larger, BUT for those of you who play alot of Single player, Backup for Objects_Server.zip to another location, or name it Objects_Server.zip.backup, then extract it, edit the files, repack it, and have fun with your new bots :D

Author:  Urglub [ Sun Feb 24, 2008 7:06 pm ]
Post subject:  Re: Ever dreamed of BF2....

I have nightmares about BF2.
Don't mention it except in BF2 thread pls. :oops:

Author:  Zaitsef [ Wed Feb 27, 2008 3:52 pm ]
Post subject:  Re: Ever dreamed of BF2....

nothing wrong with utilizing BF2 engine for BF1942 style gameplay ;)

Author:  Archimonde0_0 [ Fri Feb 29, 2008 1:58 am ]
Post subject:  Re: Ever dreamed of BF2....

I actually got these settings damn near perfect, you can do this:

ObjectTemplate.create Camera SoldierCamera
ObjectTemplate.saveInSeparateFile 1

include SoldierCamera.tweak

ObjectTemplate.create SpawnPoint SquadLeaderSpawnPoint
ObjectTemplate.PreCacheObject 1
ObjectTemplate.setScatterSpawnPositions 1
ObjectTemplate.setSpawnPositionOffset 0/0/0

rem *******************************************************
rem *** TODO: Temporary tweak variables for soldier physics
rem *******************************************************

rem *** Adjust the soldier's speed. All stances are affected (crouch, etc) <---------these settings are damn near perfect.
Vars.Set phy-soldier-speed-factor 1.35
vars.set phy-soldier-sprint-speed 5
vars.set phy-soldier-run-speed 1.4
vars.set phy-soldier-walk-speed 0.6
vars.set phy-soldier-crawl-speed 0.6

rem *** Adjust the soldier's jump height.
Vars.Set phy-soldier-jump-factor 0.7 <----Perfect

rem *** Adjust soldier's acceleration/deceleration.
rem *** Higher means quicker acceleration/deceleration
Vars.Set phy-soldier-acceleration 0.2
Vars.Set phy-soldier-deceleration 0.4

rem *** Allow soldier to move a bit while in air.
rem *** 0 = no player controlled movement while in air.
Vars.Set phy-soldier-air-movement-factor 0.8 <----More Movement in air

rem *** number of seconds the player must wait to fire weapon after jumping...
Vars.Set fire-delay-after-jump 0 <----Shoot while in mid air!
rem *** number of seconds the player must wait to go prone after jumping...
Vars.Set prone-delay-after-jump 2 <---no dolphins
rem *** number of seconds the player must wait to jump after being prone...
Vars.Set jump-delay-after-prone 0.8
rem *** number of seconds the player must wait to stand after going prone...
Vars.Set stand-delay-from-prone 0.8
rem *** number of seconds the player must wait to go prone after standing...
Vars.Set prone-delay-from-stand 0.8
rem *** number of seconds the player must wait cbefore sprint meter starts recharging again after jumping...

Vars.Set sprint-recharge-delay-after-jump 0.7

Vars.Set camera-movement-speed-on-prone 0.15
Vars.Set camera-movement-speed-on-crouch 0.2
Vars.Set camera-movement-speed-on-stand 0.15


and then if you go into every soldier defined in the mod your doing it to and change this code in each of them to look like this:


ObjectTemplate.drag 1.0
ObjectTemplate.mass 100
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
ObjectTemplate.SprintRecoverTime 20
ObjectTemplate.SprintDissipationTime 0
ObjectTemplate.SprintLimit 0.001
ObjectTemplate.SprintLossAtJump 0
rem ObjectTemplate.Grip 20

no sprint, or penalty for jumping, PLUS you can shoot while jumping with these exact codes too.


You have nearly perfect bf1942 soldiers :]

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/