Please Help Support E-Mods.net by Donating

e-mods.net

  • 2017-11-24, 06:58:48
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search

News:

Looking for VTMR Modding Tutorials? Check out the Open Nod Development section of e-mods.net.

Author Topic: Hey Javokis, I'm a new member i tried to add you a few times on steam.  (Read 1362 times)

Orpheus333

  • Team
  • Member
  • ******
  • Karma: 0
  • Offline Offline
  • Posts: 1

I've been having a look at VTMR java implementation. I understand that java doesn't do multiple class extensions like C++ i've had a go myself with extensions, packages etc, but it seems a bit hackey for me. How do you extend the Discipline file in terms of duration etc. Sorry i tried to add you on steam for a more private discussion. And then the active VTMR STs sent me here.

Alll the best, (AoR is awesome by the way)

Andy R
Logged

Javokis

  • Horses Dick
  • Member
  • *****
  • Karma: 21
  • Offline Offline
  • Posts: 2373
    • E-Mods.net

Here's what you need to do to get your new discipline to use a special duration variable. You create a new class like so:

Code: [Select]

public class HorrorDisciplines extends Discipline
{

protected static final int[] PROJECT_DURATIONS = {  5000,   10000,  15000,  20000, 25000 };

}

Then you alter you discipline's class like so:

Code: [Select]
public class HorrorProject extends HorrorDisciplines

Then you apply the new variable to the effect that's being added.
That's it. That's all there is to it. The rest of the code should work fine.
Logged
"There's nothing wrong with horses dicks, there's nothing wrong with sucking horses dicks." -Signo
 

Page created in 0.054 seconds with 17 queries.