[?] Where can I edit a weapon's shell ejection?
-
Pvt.LHeureux
- Posts: 4796
- Joined: 2009-04-03 15:45
[?] Where can I edit a weapon's shell ejection?
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.
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.

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?
humm, not sure what dose this but it might be the line:
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.
Code: Select all
ObjectTemplate.setStartOnEffects 512Can find the shell ejection effects in \objects\effects\weapons\shellejections\emitters\ and the lee enfield is the "e_shellejection_792bolt" effect.
-
Pvt.LHeureux
- Posts: 4796
- Joined: 2009-04-03 15:45
Re: [?] Where can I edit a weapon's shell ejection?
Alright I'll put the same 792bolt effect to the K98 and see how it turns out, thanks 

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?
^ Alright that worked 
Thanks Rhino
Thanks Rhino

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?
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 
---------------------------
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

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?
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...
If your using the existing effect out of PR there really shouldn't be a problem...
-
AfterDune
- Retired PR Developer
- Posts: 17094
- Joined: 2007-02-08 07:19
Re: [?] Where can I edit a weapon's shell ejection?
You made a little typo there. There's only a e_shellejection_792bolt, not 762.

-
Rhino
- Retired PR Developer
- Posts: 47909
- Joined: 2005-12-13 20:00
Re: [?] Where can I edit a weapon's shell ejection?
lolz 
almost as bad as my coding when I don't copy and paste
almost as bad as my coding when I don't copy and paste
-
AfterDune
- Retired PR Developer
- Posts: 17094
- Joined: 2007-02-08 07:19
-
Pvt.LHeureux
- Posts: 4796
- Joined: 2009-04-03 15:45
Re: [?] Where can I edit a weapon's shell ejection?
Oh haha, ok repo should be fine once I correct that ^^

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?
YEEEAAAH it works, going to have a look if everything is fine before you update yours AD, also Xfire please 

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?
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
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.

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

