Closed: New Console Commands

Need something opened in the core for your mod, or even help with research?
Post Reply
User avatar
Interkarma
Posts: 3525
Joined: Sun Mar 22, 2015 1:51 am

Closed: New Console Commands

Post by Interkarma » Mon Mar 21, 2016 11:24 pm

There are a few new console commands that would be great to have.

GroundMe - For those unfortunate occasions where player might fall through environment. This doesn't happen often in Daggerfall Unity, but can be forced easily by pushing run speed to 1000+ and going for a sprint. The GroundMe command should place the player back on the ground at their current world coordinates and scrub all falling damage. In dungeons and interiors, it's probably easiest just to teleport player back to entrance marker. All the workings for this already exist in code, they just needs to be linked to a console command.

UnstickMe - Some of Daggerfall's geometry is pretty bad. For example, there's a cave block with a plane from a lower level sticking up through the ground of a higher level. The player gets stuck on this one-sided geometry every damn time and it would be awesome to have a command just to move player forwards a unit without pushing them through a wall or getting stuck somewhere else. This one is a little harder as the workings don't presently exist in code.

NoClip - Disable player's CharacterController, collision, and other physics, allowing them to freely fly around level steering by mouse-look. Coupled with the existing god mode toggle, this would be useful for getting around during testing.

User avatar
LypyL
Posts: 474
Joined: Sun Mar 22, 2015 3:48 am

Re: New Console Commands

Post by LypyL » Tue Mar 22, 2016 11:02 pm

I just added a new command that I had already been working on (it's adapted from the teleportation method from the Daggerfall Jet used in the demo...)

I could add the noclip changes I had before - they're hacky though :lol:
scrub all falling damage
How would you recommend accomplishing this?

User avatar
Interkarma
Posts: 3525
Joined: Sun Mar 22, 2015 1:51 am

Re: New Console Commands

Post by Interkarma » Wed Mar 23, 2016 1:15 am

LypyL wrote:I just added a new command that I had already been working on (it's adapted from the teleportation method from the Daggerfall Jet used in the demo...)
Awesome thank you! That will help out with the stuck issue.
LypyL wrote: I could add the noclip changes I had before - they're hacky though :lol:
All good, we can look at this later. None of the Odd Jobs are high priority stuff at the moment. :)
LypyL wrote:
scrub all falling damage
How would you recommend accomplishing this?
After grounding player, need to clear 'falling' bool in PlayerMotor. That's not currently exposed but a handy CancelFallingDamage() method or similar can do the job. Might also need to reset fallDistance to 0 and fallStartLevel to current transform.position.y. Happy to help if you would like to take this one on. :)

User avatar
LypyL
Posts: 474
Joined: Sun Mar 22, 2015 3:48 am

Re: New Console Commands

Post by LypyL » Wed Mar 23, 2016 11:13 pm

Interkarma wrote: After grounding player, need to clear 'falling' bool in PlayerMotor. That's not currently exposed but a handy CancelFallingDamage() method or similar can do the job. Might also need to reset fallDistance to 0 and fallStartLevel to current transform.position.y. Happy to help if you would like to take this one on. :)
Yeah I can take care of it, I just wasn't sure if you had a way of doing it that I missed, which wouldn't be the first time! ;)

Post Reply