Re: Grenade Throw Indicator

#2
Indeed you can activate the throw trajectory using the CVar:
i_grenade_showTrajectory 1

You may also need to disable real geometry in the trajectory debug with this CVar to be able to see it:
i_greande_trajectory_useGeometry 0

Essentially the game creates a dummy object of the same type (the grenade), it then manually calculates physics steps for this time given its physical parameters (start velocity/mass etc).
It does these steps in a loop until the entity stops moving or max steps is reached (set to 200 steps). As it does this, it records the information so it can draw a line for it's position.

The relevant code for stepping through physics for an object manually is here:
https://github.com/CRYTEK/CRYENGINE/blo ... .cpp#L3301
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: Grenade Throw Indicator

#4
Indeed you can activate the throw trajectory using the CVar:
i_grenade_showTrajectory 1

You may also need to disable real geometry in the trajectory debug with this CVar to be able to see it:
i_greande_trajectory_useGeometry 0

Essentially the game creates a dummy object of the same type (the grenade), it then manually calculates physics steps for this time given its physical parameters (start velocity/mass etc).
It does these steps in a loop until the entity stops moving or max steps is reached (set to 200 steps). As it does this, it records the information so it can draw a line for it's position.

The relevant code for stepping through physics for an object manually is here:
https://github.com/CRYTEK/CRYENGINE/blo ... .cpp#L3301
Hi.
Trajectory works well in crysis 2 sandbox.
But now it's not working on cryengine 5.5.2 !! Why?


Now, I've tested on cryengine 5.5.2.

Re: Grenade Throw Indicator

#7
Apologies, seems there was a typo on my original post.
These are the CVars (correctly spelled this time :P) that affect the grenade trajectory preview in GameSDK:

Code: Select all

i_grenade_showTrajectory i_grenade_trajectory_resolution i_grenade_trajectory_dashes i_grenade_trajectory_gaps i_grenade_trajectory_useGeometry
showTrajectory should be 1 and useGeometry should be 0. Then you should see the path preview when holding the grenade.
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: Grenade Throw Indicator

#9
Apologies, seems there was a typo on my original post.
These are the CVars (correctly spelled this time :P) that affect the grenade trajectory preview in GameSDK:

Code: Select all

i_grenade_showTrajectory i_grenade_trajectory_resolution i_grenade_trajectory_dashes i_grenade_trajectory_gaps i_grenade_trajectory_useGeometry
showTrajectory should be 1 and useGeometry should be 0. Then you should see the path preview when holding the grenade.
Hi
thanks a lot. It was great.
Just a little distant, it's not clear!

Image

Trajectory has a bug!
When "Trajectory!" We move on a physics object, the physics begins to move !!!
Image
I'm impatiently waiting for Schematyc to make things easy! :roll: :arrow:
Last edited by Hamedudk on Thu Jul 25, 2019 7:22 am, edited 1 time in total.

Who is online

Users browsing this forum: No registered users and 1 guest

cron