[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/bbcode.php on line 112: 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 112: 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 - BR help

Battlefield Modding Tutorials BFMODS

Battlefield Modding Tutorials
It is currently Fri May 03, 2024 10:33 am

All times are UTC




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 36 posts ]  Go to page 1, 2, 3, 4, 5  Next
Author Message
 Post subject: BR help
PostPosted: Thu Jan 29, 2009 6:47 am 
Offline
User avatar

Joined: Thu Oct 23, 2008 6:47 pm
Posts: 935
Location: Charleston S.C.

_________________
Image


Top
 Profile Send private message E-mail  
 
 Post subject: Re: BR help
PostPosted: Thu Jan 29, 2009 12:18 pm 
Offline

Joined: Mon Oct 09, 2006 12:51 pm
Posts: 782
edit: Scratch that, Actually I think the only problem may be its name, try shortening it, keep it to the one word, no spaces, and then try again.

As a side note if all the animation stuff is done you will need to pack that animation.rfa, standardmesh.rfa, texture.rfa, and objects.rfa, if one is missing well it wont go so good.

Personally I would've just reused an old skeleton myself, like the STG44 skeleton, and copied its animation states to the battle rifle.


Top
 Profile Send private message E-mail  
 
 Post subject: Re: BR help
PostPosted: Thu Jan 29, 2009 12:40 pm 
Offline

Joined: Thu Apr 19, 2007 7:38 pm
Posts: 177
Right! no space in name...Battle_Rifle_BR55HB_SR will do
Just call it BR55 and update your lexicon once it's done

_________________
Image


Top
 Profile Send private message E-mail  
 
 Post subject: Re: BR help
PostPosted: Thu Jan 29, 2009 2:43 pm 
Offline
User avatar

Joined: Thu Oct 23, 2008 6:47 pm
Posts: 935
Location: Charleston S.C.
the names whats doing it? you sure? ok i'll change it thanks. also I did copy and rename the animations from the sg44.

_________________
Image


Top
 Profile Send private message E-mail  
 
 Post subject: Re: BR help
PostPosted: Thu Jan 29, 2009 8:23 pm 
Offline
User avatar

Joined: Sat May 10, 2008 3:00 am
Posts: 1877

_________________
Image


Top
 Profile Send private message E-mail  
 
 Post subject: Re: BR help
PostPosted: Thu Jan 29, 2009 9:52 pm 
Offline

Joined: Mon Oct 09, 2006 12:51 pm
Posts: 782
Of course thats how they did it, back then I don't believe anyone knew how to properly animate


Top
 Profile Send private message E-mail  
 
 Post subject: Re: BR help
PostPosted: Thu Jan 29, 2009 10:08 pm 
Offline
User avatar

Joined: Thu Oct 23, 2008 6:47 pm
Posts: 935
Location: Charleston S.C.
ok well I got it in game but it doesn't show up really. What happens is that when you switch to the weapon you see nothing but the cross hair at first but when you either go out to third person or switch weapons you then see it but with a different animations. trying to figure it out right now. :?


Edit: fixed it. I can see it in game just fine now. however there is no muzzle flash. and use this code:

ObjectTemplate.setFireArmsPosition 0/0/1
ObjectTemplate.setFireArmsPosition 0/0/1
ObjectTemplate.setFireArmsPosition 0/0/1
ObjectTemplate.setASynchronyFire 1
ObjectTemplate.roundOfFire 3

it still doesn't use a three shot burst. the muzzle flash code is what is in my first post. not sure why it doesn't work.

:D thanks

_________________
Image


Top
 Profile Send private message E-mail  
 
 Post subject: Re: BR help
PostPosted: Thu Jan 29, 2009 11:09 pm 
Offline

Joined: Mon Oct 09, 2006 12:51 pm
Posts: 782
Which is why I suggested using CopyState as oppose to CopyState2.

You wouldn't of had to rename all those animations, if you go into the MultiShotWeaponsMod and edit it so it says

AnimationStateMachine.CopyState BattleRifle v_arg1 SG44 1.0 SG44 1.0

you will have much less trouble with the animations.

I've also spent a long time thinking about the 3 shot burst thing, and I believe I've come up with the solution:

ObjectTemplate.setBlastAmmoCount 3

This code is used to measure the number of rounds the mag decreases upon pulling the trigger. Now if you think of the Battle Rifle as if it is the M1 Garand, you make it a single shot weapon, with 3 projectiles just like you did above, make a fire effect and sound that gives the illusion of the 3 shot burst and viola! It'll sound like a 3 shot burst, subtract the right amount of ammo, and look like it as well, only difference is it wont continue to fire, because you'll be using ObjectTemplate.FireOnce 1 as oppose to letting it just fire automatically.


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.  [ 36 posts ]  Go to page 1, 2, 3, 4, 5  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 287 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