Back to the Korax Forum Archives


Forum

Adding map elements depending on class and difficulty

Wed, 10 Feb 2010 14:24:34

RambOrc

Is it possible to flag map elements the same way things are flagged depending on player class and difficulty setting? Example 1: say there is a church that only the cleric is allowed to enter, and if the player is one of the other two classes, there is a gate/door/barricade/wall/whatever made out of a 3D floor (in the same sector which when the player is a cleric has no 3D floor, only the normal passable sector). Example 2: in the "extended RPG features: off" mode, the corridor is unbarred. If the setting is on "simple" or "complex", there is a barrier in the corridor, blocking passage, and disappears only when a certain script is executed (after killing a certain monster or picking up a certain item). Example 3: a door requires no key to open in the "off" mode, a relatively quick and easy to get key from the hub on the "simple" mode, and a different key in the "complex" mode, which is only attainable after killing most of the monsters in the hub and collecting several keys behind cascading locked doors. If coding this would be too complicated, using things which are 3D models of doors/walls/etc and despawn when using a script would work too I guess, although would limit the scope of use.
Wed, 10 Feb 2010 15:03:39

Crimson Wizard

AFAIK player class and game difficulty can be got as integers in map script. Thus, you can modify map structure as wanted on level start by closing/opening doors, rising/lowering floor/ceiling, changing textures, removing/applying line specials, etc. Not sure how this will work in Vavoom, but ZDoom has these: <!-- m --><a class="postlink" href="http://zdoom.org/wiki/GetPlayerInfo">http://zdoom.org/wiki/GetPlayerInfo</a><!-- m --> <!-- m --><a class="postlink" href="http://zdoom.org/wiki/PlayerClass">http://zdoom.org/wiki/PlayerClass</a><!-- m --> Also, this one works for sure: <!-- m --><a class="postlink" href="http://zdoom.org/wiki/GetCVar">http://zdoom.org/wiki/GetCVar</a><!-- m --> So, to get skill (difficulty) use GetCVar('Skill'), to get class use GetCVar('Class');
Wed, 10 Feb 2010 15:24:06

Firebrand

I don't know if those are implemented, I need to check the code, but if they aren't we could ask Janis to implement them.
Wed, 10 Feb 2010 15:30:06

RambOrc

LOL... "PLAYERINFO_GENDER The player's gender: 0 for male, 1 for female, and 2 for other."

Back to the Korax Forum Archives