[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

Battlefield Modding Tutorials
It is currently Mon Apr 29, 2024 3:52 pm

All times are UTC




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: Ever dreamed of BF2....
PostPosted: Sat Feb 23, 2008 1:55 am 
Offline

Joined: Mon Oct 09, 2006 12:51 pm
Posts: 782
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


Top
 Profile Send private message E-mail  
 
PostPosted: Sun Feb 24, 2008 7:06 pm 
Offline

Joined: Thu Jun 15, 2006 9:36 am
Posts: 2015
I have nightmares about BF2.
Don't mention it except in BF2 thread pls. :oops:

_________________
In the beginning everybody was a SSM NooB.
BFV SSM on server 66.55.142.243
Server Homepage


Top
 Profile Send private message E-mail  
 
PostPosted: Wed Feb 27, 2008 3:52 pm 
Offline

Joined: Mon Nov 15, 2004 12:00 am
Posts: 696
Location: Germany, US Depot
nothing wrong with utilizing BF2 engine for BF1942 style gameplay ;)

_________________

--= Home of the Airwolf =--


Top
 Profile Send private message E-mail  
 
PostPosted: Fri Feb 29, 2008 1:58 am 
Offline

Joined: Mon Oct 09, 2006 12:51 pm
Posts: 782
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 :]


Top
 Profile Send private message E-mail  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 310 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
cron
Powered by phpBB® Forum Software © phpBB Group