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

Making or wanting help making your own asset? Check in here
Post Reply
Pvt.LHeureux
Posts: 4796
Joined: 2009-04-03 15:45

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

Post 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.
Image

Chuva_RD : You want to remove bugged thing but dont tell how to fill formed void.
Rhino
Retired PR Developer
Posts: 47909
Joined: 2005-12-13 20:00

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

Post 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.
Image
Pvt.LHeureux
Posts: 4796
Joined: 2009-04-03 15:45

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

Post by Pvt.LHeureux »

Alright I'll put the same 792bolt effect to the K98 and see how it turns out, thanks :)
Image

Chuva_RD : You want to remove bugged thing but dont tell how to fill formed void.
Pvt.LHeureux
Posts: 4796
Joined: 2009-04-03 15:45

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

Post by Pvt.LHeureux »

^ Alright that worked :)

Thanks Rhino ;)
Image

Chuva_RD : You want to remove bugged thing but dont tell how to fill formed void.
Pvt.LHeureux
Posts: 4796
Joined: 2009-04-03 15:45

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

Post 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:
Image

Chuva_RD : You want to remove bugged thing but dont tell how to fill formed void.
Rhino
Retired PR Developer
Posts: 47909
Joined: 2005-12-13 20:00

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

Post 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...
Image
AfterDune
Retired PR Developer
Posts: 17094
Joined: 2007-02-08 07:19

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

Post by AfterDune »

You made a little typo there. There's only a e_shellejection_792bolt, not 762.
Image
Rhino
Retired PR Developer
Posts: 47909
Joined: 2005-12-13 20:00

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

Post by Rhino »

lolz :p

almost as bad as my coding when I don't copy and paste :D
Image
AfterDune
Retired PR Developer
Posts: 17094
Joined: 2007-02-08 07:19

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

Post by AfterDune »

Image
Image
Pvt.LHeureux
Posts: 4796
Joined: 2009-04-03 15:45

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

Post by Pvt.LHeureux »

Oh haha, ok repo should be fine once I correct that ^^
Image

Chuva_RD : You want to remove bugged thing but dont tell how to fill formed void.
Pvt.LHeureux
Posts: 4796
Joined: 2009-04-03 15:45

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

Post by Pvt.LHeureux »

YEEEAAAH it works, going to have a look if everything is fine before you update yours AD, also Xfire please :razz:
Image

Chuva_RD : You want to remove bugged thing but dont tell how to fill formed void.
Pvt.LHeureux
Posts: 4796
Joined: 2009-04-03 15:45

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

Post 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 ;)
Last edited by Pvt.LHeureux on 2012-05-25 14:08, edited 1 time in total.
Image

Chuva_RD : You want to remove bugged thing but dont tell how to fill formed void.
Post Reply

Return to “PR:BF2 Community Modding”