Page 1 of 1

[?] Where can I edit a weapon's shell ejection?

Posted: 2012-05-24 07:09
by Pvt.LHeureux
I need to edit the K98 casing ejection, because it currently ejects the shell right after firing, wich is wrong as it should be after bolting the bolt.

So where in the .tweak can I set the good time and when to eject it? I looked in the Enfield .tweak but I'm not sure what it is.

Thanks.

Re: [?] Where can I edit a weapon's shell ejection?

Posted: 2012-05-24 07:24
by Rhino
humm, not sure what dose this but it might be the line:

Code: Select all

ObjectTemplate.setStartOnEffects 512
Other than that I guess the other way of is adding a "ObjectTemplate.emitDelay" line of code to the shell effect and then set the delay to the time it takes for the animation to run to the point the bolt is open but from the looks of the code, that's not how the Enfield works.

Can find the shell ejection effects in \objects\effects\weapons\shellejections\emitters\ and the lee enfield is the "e_shellejection_792bolt" effect.

Re: [?] Where can I edit a weapon's shell ejection?

Posted: 2012-05-24 08:16
by Pvt.LHeureux
Alright I'll put the same 792bolt effect to the K98 and see how it turns out, thanks :)

Re: [?] Where can I edit a weapon's shell ejection?

Posted: 2012-05-24 10:03
by Pvt.LHeureux
^ Alright that worked :)

Thanks Rhino ;)

Re: [?] Where can I edit a weapon's shell ejection?

Posted: 2012-05-25 03:29
by Pvt.LHeureux
Ok I got a new problem :

---------------------------
BF2 Error
---------------------------
Debug assertion failed!

Version: 1.5.3153-802.0 Build date:2009-8-20 17:8
Module: Base
File: C:\dice\Projects\BF2Branches\Patch_1_50\Code\BF2\Game\Objects\Base\BundleTemplate.cpp
Line: 213

Text: k98 addBundleChilds() template not found:e_shellejection_762bolt

Current confile:

---------------------------
Annuler Recommencer Continuer

So basically when launching the PN mod to test things out, with the repo, I get this error. It looks like the mod can't find the effect. The thing is that I don't know in wich folder to put the effect :? ??:. If you can't help me, AD will surely do once he connects tomorrow :razz:

Re: [?] Where can I edit a weapon's shell ejection?

Posted: 2012-05-25 07:09
by Rhino
are you using the existing effect out of PR or have you edited the effect or made a new one?

If your using the existing effect out of PR there really shouldn't be a problem...

Re: [?] Where can I edit a weapon's shell ejection?

Posted: 2012-05-25 07:12
by AfterDune
You made a little typo there. There's only a e_shellejection_792bolt, not 762.

Re: [?] Where can I edit a weapon's shell ejection?

Posted: 2012-05-25 08:51
by Rhino
lolz :p

almost as bad as my coding when I don't copy and paste :D

Re: [?] Where can I edit a weapon's shell ejection?

Posted: 2012-05-25 09:09
by AfterDune
Image

Re: [?] Where can I edit a weapon's shell ejection?

Posted: 2012-05-25 12:02
by Pvt.LHeureux
Oh haha, ok repo should be fine once I correct that ^^

Re: [?] Where can I edit a weapon's shell ejection?

Posted: 2012-05-25 12:41
by Pvt.LHeureux
YEEEAAAH it works, going to have a look if everything is fine before you update yours AD, also Xfire please :razz:

Re: [?] Where can I edit a weapon's shell ejection?

Posted: 2012-05-25 13:19
by Pvt.LHeureux
Repo is screwed up AD, so get on Xfire please :)

EDIT : Nvm, not screwed, but I got to explain you what to do on Xfire ;)