[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
https://battlefieldmodding.com/ssm/phpBB3/

M82 troubles
https://battlefieldmodding.com/ssm/phpBB3/viewtopic.php?f=3&t=4585
Page 1 of 2

Author:  MR PINK BALLS [ Thu Jan 08, 2009 1:05 am ]
Post subject:  M82 troubles

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

Author:  Iced Earth [ Thu Jan 08, 2009 1:20 am ]
Post subject:  Re: M82 troubles


Author:  MR PINK BALLS [ Thu Jan 08, 2009 1:44 am ]
Post subject:  Re: M82 troubles

as I said it wont work

Author:  Iced Earth [ Thu Jan 08, 2009 3:56 am ]
Post subject:  Re: M82 troubles

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:

Author:  Apache Thunder [ Thu Jan 08, 2009 6:47 am ]
Post subject:  Re: M82 troubles

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.

Author:  Sheppard [ Thu Jan 08, 2009 10:58 am ]
Post subject:  Re: M82 troubles

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.

Author:  MR PINK BALLS [ Thu Jan 08, 2009 7:43 pm ]
Post subject:  Re: M82 troubles

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

Author:  hardrock [ Fri Jan 09, 2009 12:54 am ]
Post subject:  Re: M82 troubles

stay down balls, stay down..... :lol: <-----alien smiley thingy.....

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