I am making a weapon mutator for UT2004 and I'm trying to assign the server name to a variable to use in the weapon.
So far I have tried to do this in the code of the weapon itself (see below) and either gotten nothing or the
server name from the client.
It occurs to me to try this from the mutator itself but I'm afraid by the time I trial and error my way through
this, UT2005 will be released and I'll have to start over.
So far I've tried this;
and this;
Compiler error: ...unknown member in GameReplicationInfo...
and even this;
By now I am pretty much grasping at straws, as you can tell, and I'm sinking fast. :weird:
I can tell you that I am attempting to use the variable in a render overlays event and as a weapon mutator I have the usual suspects in the form of:
mutator
weapon
weapon fire
weapon pickup
weapon attachment
weapon zoom
ammo
ammo pickup
and two damage types
Not that any of that will help but I'm pretty pesimistic by now.
Thanks in advance for anything you can tell me.
So far I have tried to do this in the code of the weapon itself (see below) and either gotten nothing or the
server name from the client.
It occurs to me to try this from the mutator itself but I'm afraid by the time I trial and error my way through
this, UT2005 will be released and I'll have to start over.
So far I've tried this;
Code:
SN=class'GameReplicationInfo'.default.ServerName; //this just grabs the local ServerName instead of the server ServerName
Code:
SN=GameReplicationInfo.ServerName;
and even this;
Code:
var GameInfo.ServerResponseLine Server; ~ ~ ~ SN=Server.ServerName;
I can tell you that I am attempting to use the variable in a render overlays event and as a weapon mutator I have the usual suspects in the form of:
mutator
weapon
weapon fire
weapon pickup
weapon attachment
weapon zoom
ammo
ammo pickup
and two damage types
Not that any of that will help but I'm pretty pesimistic by now.

Thanks in advance for anything you can tell me.
Comment