Announcement

Collapse
No announcement yet.

Modifying a function without extending its class (and weapon switching)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Modifying a function without extending its class (and weapon switching)

    I've been stuck for about 2 weeks trying to disable weapon switching during a combo. Now it was suggested that I change the functions BringUp() and PutDown() in the main class of the weapon, and this hworks great.

    However, I'm not extending any classes for this mutator. I tested it by doing so, and it worked, but the player will be choosing the weapon on the mutator config screen before they start.

    I'm using the code:

    WeaponW = spawn(class'XWeapons.Linkgun',P,,,rot(0,0,0));
    WeaponW.GiveTo(P);

    to give the player the weapon. Now you can see why I need a way to change a function of another class on the fly. Let me first say that I don't think that this is possible, so, if anyone knows any other ways to prevent weapon switching, that would be helpful.
Working...
X