• Please make sure you are familiar with the forum rules. You can find them here: https://forums.tripwireinteractive.com/index.php?threads/forum-rules.2334636/

Code RO Spawn Mutator is it possible?

Divinehammer

Grizzled Veteran
Mar 9, 2006
1,397
6
Sunny, Obamalot
I just posted an idea for a mutator to help combat TK. Hopefully this group can help. First is it possible to create code that affects the RO Spawn volume? if so how do I get that code to work with? My idea is basically make a mutator that says if a player fires from the Spawn volume and hits his own player then the damage should be reflective.

Any ideas on getting this started?
Help?
or people willing to work towards this goal with me?
 
You would have to subclass the ROPawn and/or all pawns below it
and overwrite the TakeDamage function. Since im lazy atm i cant think of a way to check if the player is inside a volume. ;)
Maybe with Touch and setting a variable in the pawn, which is cleared with Tick. (dirty, there should be something easier)
 
Upvote 0