In my mod, I've created a REPULSER item, which when activated, will push projectiles away from you (as well as monsters).
In single player, obviously, this works perfectly fine.
In multiplayer however, it does not. I try to actively change the remoterole of the projectiles the REPULSER "catches", but it does nothing. Even if it works "server side", the client will never see the projectile being pushed away.
And I have no idea how to handle that. The repulser works just fine with Pawns, going through TakeDamage.
Projectiles, however, are using this formula:
Code: Select all
foreach VisibleCollidingActors(class'projectile', P, 750, Owner.Location)
{
if (!P.Instigator.bIsPlayer && P.Instigator != self )
{
P.RemoteRole=ROLE_SimulatedProxy;
P.Instigator=Pawn(Owner);
A=Instigator.Location;
B=P.Location;
C=A-B;
D=rotator(c);
D.Pitch+=32768;
D.Roll+=32768;
P.SetRotation(D);
P.Velocity = vector(D) * P.speed;
}
}
How can I possibly fix this?