logo
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Help Needed Hack? (Read 229 times)
Rubie
Betatester
Offline


Retired

Posts: 153
Location: Belgium
Joined: Jan 19th, 2013
Gender: Male
Help Needed Hack?
Jan 16th, 2021 at 11:01am
Print Post  
Hi is there someone who can hack this so it works for both Unreal and UT

Code
Select All
function PostBeginPlay()
{
    if ( Level.Game.GameRules == None )
    Level.Game.GameRules = Self;
    else
    Level.Game.GameRules.AddRules(Self);
} 



It would be great for me to run on My serverscripts

Greets,

Rubie
  

I have no signature Smiley
Back to top
IP Logged
 
BobIsUnreal
God Member
*****
Offline


gonna be dead soon, gg

Posts: 765
Joined: Apr 12th, 2010
Gender: Male
Re: Help Needed Hack?
Reply #1 - Jan 16th, 2021 at 5:49pm
Print Post  
assuming you are running 227server that ut99 can join :

this by itself, works fine on the 227 server, because it is executed serverside. you just need to keep it out of any files you sent to the client, if they dont download it, they wont need to execute it.

would need to see the other related project code to better explain how to avoid the incompatibility, but it boiles down to the above statment.

somthing like a blind dynamicloaded helper class may nessecary , if your mods code 100% has to run in client side. for most gamerule relatde mods, usally only asssets relating to them would be nessecary

  

[REM_img]http://i.imgur.com/V3OSsDu.gif.disable[/img]http://i.imgur.com/JOu38Gs.gif
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint
Bookmarks: del.icio.us Digg Facebook Google Google+ Linked in reddit StumbleUpon Twitter Yahoo