[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/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 - M82 troubles

Battlefield Modding Tutorials BFMODS

Battlefield Modding Tutorials
It is currently Mon Jun 16, 2025 8:25 pm

All times are UTC




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 11 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: M82 troubles
PostPosted: Thu Jan 08, 2009 1:05 am 
Offline
User avatar

Joined: Sun Sep 16, 2007 2:33 pm
Posts: 1809
Location: Your moms house
Howdy fellas im messing around with dcfinal and having some trouble with the m82 this isnt ss but Im trying to get the m82 to fire the 40mm projectile and well its not working the way it should I cannot get it to fire that round and dont know why

heres my codes

I tried this
ObjectTemplate.Active 50calSniper_Projectile
ObjectTemplate.create Projectile 40mm_Projectile
ObjectTemplate.velocity 450
ObjectTemplate.gravityModifier 2.0

and I tried this
ObjectTemplate.Active M82Sniper
ObjectTemplate.create Projectile 40mm_Projectile
ObjectTemplate.velocity 450
ObjectTemplate.gravityModifier 2.0

it does not seem to want to work


Top
 Profile Send private message E-mail  
 
 Post subject: Re: M82 troubles
PostPosted: Thu Jan 08, 2009 1:20 am 
Offline
User avatar

Joined: Sun Dec 31, 2006 12:13 am
Posts: 2027


Top
 Profile Send private message E-mail  
 
 Post subject: Re: M82 troubles
PostPosted: Thu Jan 08, 2009 1:44 am 
Offline
User avatar

Joined: Sun Sep 16, 2007 2:33 pm
Posts: 1809
Location: Your moms house
as I said it wont work


Top
 Profile Send private message E-mail  
 
 Post subject: Re: M82 troubles
PostPosted: Thu Jan 08, 2009 3:56 am 
Offline
User avatar

Joined: Sun Dec 31, 2006 12:13 am
Posts: 2027
Its not the same code. Did you even try it??

You are creating a projectile, even though it already exists.

Look again:
ObjectTemplate.Active 50calSniper_Projectile
ObjectTemplate.create Projectile 40mm_Projectile
ObjectTemplate.velocity 450
ObjectTemplate.gravityModifier 2.0

and I tried this
ObjectTemplate.Active M82Sniper
ObjectTemplate.create Projectile 40mm_Projectile
ObjectTemplate.velocity 450
ObjectTemplate.gravityModifier 2.0

Active-ing a gun, then creating a projectile. Anything under .create gets added to the projectile, not the rifle. Dummy. :razz:


Top
 Profile Send private message E-mail  
 
 Post subject: Re: M82 troubles
PostPosted: Thu Jan 08, 2009 6:47 am 
Offline
User avatar

Joined: Fri Oct 03, 2008 4:37 pm
Posts: 513
Location: Levelland, Texas
I concur. You active'ed the wrong object buddy. :D

Since nothing is getting "created" when doing it right, you can do this server side too. It will be invisible client side but will still have the effect on the target as intended. I don't think it not being visible would be a big issue given that its a small arms projectile and probably has no tracer set to it. And its a quite small projectile to start out with. It's a sniper rifle after all, I don't recall seeing the projectile to begin with. So if done server side, the snipers on client side may not even notice.

Also the only create command that I know of that has a direct effect when placed in another object branch is the createSkeleton command. I don't know much about it, but it is typically tied to animation bundle and doesn't work by itself. Though I haven't played with that command to be sure of it. Take a look at the hand weapon files and you'll see what I mean.

But in this case, the projectiletemplate is the proper command to be using.

_________________
ImageImage
I have cameras in your head!


Top
 Profile Send private message E-mail  
 
 Post subject: Re: M82 troubles
PostPosted: Thu Jan 08, 2009 10:58 am 
Offline
User avatar

Joined: Sat May 10, 2008 3:00 am
Posts: 1877
And, I am going to assume that 40mm_Projectile is the one the M203 and GP30 grenade launchers, and maybe even Mk19 shoot, and if so then yes it does have a visible projectile so CSM it will be seen.

_________________
Image


Top
 Profile Send private message E-mail  
 
 Post subject: Re: M82 troubles
PostPosted: Thu Jan 08, 2009 7:43 pm 
Offline
User avatar

Joined: Sun Sep 16, 2007 2:33 pm
Posts: 1809
Location: Your moms house
Okay guys im not in first grade I know everything you guys told me except ice thank you ice I realize what I did I accidentally putt crate projectile instead of object template it should work ill have to see later thnks


Top
 Profile Send private message E-mail  
 
 Post subject: Re: M82 troubles
PostPosted: Fri Jan 09, 2009 12:54 am 
Offline

Joined: Wed Jun 13, 2007 7:19 pm
Posts: 621
Location: United States of America
stay down balls, stay down..... :lol: <-----alien smiley thingy.....

_________________
"like a tree, the full measure of a man can best be found when down."



Webpage: http://ez1st.homeip.net/


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.  [ 11 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 51 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:
Powered by phpBB® Forum Software © phpBB Group