Project

General

Profile

Bug #3798

tgm command behaviour differs from vanilla

Added by Andrei Kortunov 6 months ago. Updated 5 months ago.

Status:
Closed
Priority:
Normal
Category:
Game Mechanics
Target version:
Start date:
03/21/2017
% Done:

100%

Reproducibility:
Always
Operating system:
Linux
Severity:
Normal

Description

Godmode in OpenMW has some differences from Morrowind.

Vanilla Morrowind behaviour:
1) PC takes no damage (from falling, suffocation, lava, magic, weapon).
PC weapon and armor not degrade condition in combat (exclude shield).
PC can not be knocked down.
2) PC current health, magicka and fatigue can be decreased only via console.
3) Spell window shows 100% chance of success. Powers work as usual.
4) Enchanted items have unlimited charges (spell window shows usual cast cost, but actual cast cost = 0), scrolls have unlimited use count.

OpenMW behaviour:
1) PC takes damage as usual, but resurrects when health = 0.
PC weapon and armor take damage.
PC can be knocked down.
2) PC current health, magicka and fatigue work as usual.
3) Spell window show usual chance of success, but actual chance is 100%. Powers work as usual.
4) Enchanted items work as usual.

Any suggestions?

Associated revisions

Revision 14b59e0e (diff)
Added by Andrei Kortunov 6 months ago

Vanilla-like tgm (fixes #3798)

History

#1 Updated by Andrei Kortunov 6 months ago

I managed to implement vanilla behaviour, but I have to use something like:

bool godmode = actor == MWMechanics::getPlayer() && MWBase::Environment::get().getWorld()->getGodModeState();
if (!godmode) {
// do some stuff here
}

in 7 files.

It is a normal style or we have a better way to implement a god mode?

#2 Updated by Alexei Dobrohotov 6 months ago

  • Status changed from New to Resolved
  • Assignee set to Andrei Kortunov
  • Target version set to openmw-0.42
  • % Done changed from 0 to 100

#3 Updated by Marc Zinnschlag 6 months ago

  • Target version changed from openmw-0.42 to openmw-0.43

#4 Updated by Alexei Dobrohotov 5 months ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF