Setting up a first-person weapon?

#1
Made a custom weapon, from a third-person everything looks like a textbook. From a first-person perspective, I get the same problems as at the very bottom of the article https://docs.cryengine.com/display/SDKD ... le+Effects but the continuation of the tutorial is not? or i can't find? What to do, how to fix it?
first_person_fx_broken.jpg
first_person_fx_broken.jpg (241.5 KiB) Viewed 733 times
ironsight_fx_broken.jpg
ironsight_fx_broken.jpg (226.26 KiB) Viewed 733 times

Re: Setting up a first-person weapon?

#3
Helper positions are defined as attachments to the character object of the weapon. You can see these in the GameSDK weapons. These attachments are stored in the character definition file (CDF).
For example, for the rifle FP helper locations, the CDF is located at:
GameSDK\Objects-part1.pak\Objects\weapons\rifle\rifle_fp.cdf

You can open the weapon in the character tool and add attachments that way, or directly modify the CDF file.
Uniflare
CRYENGINE Technical Community Manager
Here to help the community and social channels grow and thrive.

My personal belongings;
Beginner Guides | My GitHub | Splash Plugin

Re: Setting up a first-person weapon?

#4
Yes, I added a bone and made a weapon as a character object. Added an helper in the character editor it works. There is really one problem with the helper particles attached, effects of shooting (tracer, gun_smoke, muzzle_flash) The first two effects work as they should, and muzzle_flash after the first shot stops working

Re: Setting up a first-person weapon?

#5
It looks like the problem above is solved by assigning a separate assistant for each effect of a gun shot.
Remains problem number 2 how do I adjust the position of the weapon. I found such a thing, which is partially broken in version 5 of the engine, but still you can adjust the position of the weapon. Now the question is where to enter the output of the weapon? https://docs.cryengine.com/display/SDKD ... Animations

Re: Setting up a first-person weapon?

#6
Can you elaborate on what you mean by output of the weapon?
Where the projectile will eventually hit given a straight-line trajectory, or where the projectile originates from the first-person model, or where the projectile originates from the third-person model?
Uniflare
CRYENGINE Technical Community Manager
Here to help the community and social channels grow and thrive.

My personal belongings;
Beginner Guides | My GitHub | Splash Plugin

Who is online

Users browsing this forum: No registered users and 7 guests