Page 1 of 1

[Solved by MainMan] Need some help on killer-effects

PostPosted: Mon Oct 24, 05 5:26 pm
by MainMan
ok i'm making a weapon and when it fires, the projectile hits and spawns an adaptation of sphereeffect. I want this effect to kill people. it works fine in singleplayer, but when i try it in multiplayer, the person who gets killed enters a state with no inventory-belt visible and no message window at the top. how do i make this work in DXMP??

here is my code:
Code: Select all
class SuperRocketEffect expands Effects;

var float BlastRadius;
var float blastTimer;


simulated function tick(float deltatime)
{
   local DeusExPlayer A;
   blastTimer += deltaTime;

      Super.Tick(deltaTime);

      DrawScale += (deltaTime * Default.DrawScale);
      BlastRadius = (Default.BlastRadius * DrawScale);

         if (blastTimer > 1.0)
         {
            blastTimer = 0;

            foreach VisibleActors(class'DeusExPlayer', A, BlastRadius)
               if (A != None)
               {
                  A.TakeDamage(1, None, A.Location, vect(0,0,0), 'Radiation');
               }
         }

}


defaultproperties
{
     LifeSpan=15.000000
     blastRadius=8.000000
     DrawType=DT_Mesh
     Style=STY_Translucent
     Texture=Texture'DeusExDeco.Skins.AlarmLightTex3'
     Skin=Texture'DeusExDeco.Skins.AlarmLightTex3'
     Mesh=LodMesh'DeusExItems.SphereEffect'
     DrawScale=2.500000
     bAlwaysRelevant=True
     LightType=LT_Steady
     LightBrightness=128
     LightSaturation=192
     LightRadius=64
     LightPeriod=32
     LightCone=128
}


oh and please dont reply unless you have something useful to say.

PostPosted: Mon Oct 24, 05 5:31 pm
by Gishank
It does work when that happens they enter zombie mode as u could call it tell them to press Esc Twice there problem solved.

PostPosted: Mon Oct 24, 05 5:33 pm
by Snakey
(kcw)L)klop wrote:It does work when that happens they enter zombie mode as u could call it tell them to press Esc Twice there problem solved.


Tha tells them how to exit Zombie mode (Probably does not work anyway) but does not tell Kaner how to make the Sphere kil lthem, which is what he wanted to know.

PostPosted: Mon Oct 24, 05 6:46 pm
by MainMan
(kcw)L)klop wrote:It does work when that happens they enter zombie mode as u could call it tell them to press Esc Twice there problem solved.


Ahh thanks, i know what it is now, BUT i want them to not enter 'zombie mode' at all. think about it, its hardly a good mod if i have to keep reminding people to press escape every time they get shot.

PostPosted: Mon Oct 24, 05 6:56 pm
by Gishank
well it's like ghost cloaks and ghost u enter zombie mode sadly i dunno how to stop it

PostPosted: Tue Oct 25, 05 1:38 pm
by MainMan
come on someone help please all ive got is noob replies, which i specifically asked not for.

PostPosted: Tue Oct 25, 05 2:19 pm
by Gishank
Hey these ain't newbie replys ya know u must be calling yyour self one as well

PostPosted: Tue Oct 25, 05 3:20 pm
by Alex
(kcw)L)klop wrote:Hey these ain't newbie replys ya know u must be calling yyour self one as well


Klop, all replies (except the ones from kaner) are 'newbie' replies. Sorry to say, but you're not giving a solution at all, personally, I don't really have the time at the moment to take a look at it, sorry.

PostPosted: Tue Oct 25, 05 5:19 pm
by ~ô¿ô~Nobody~
well.. to say something professional here....

that zombie mode or how klop called it is caused.. if the player dies on the client because of damage but doesn't actually die on the server
(which is the authority and says when a player is dead)
because the player didn't get any damage on the server

to solve that you need to make it doing that damage stuff on the server...
st first to solve the zombie mode thingy you need to stop it doing on the client...

that you do by adding
Code: Select all
if(level.NetMode == NM_Client) return;

after the
Code: Select all
Super.Tick(deltaTime);

and compile it again

now it shouldn't do that zombie thing anymore but it dossibly doesN't do damage anymore at all

but first try it and then report about if it worked or if it doesn't do damage anymore at all

PostPosted: Tue Oct 25, 05 5:38 pm
by MainMan
it doesnt do damage at all now, and it doesn't increase in size now either.

PostPosted: Tue Oct 25, 05 5:51 pm
by ~ô¿ô~Nobody~
ok.. then the whole sh*t just happens on the client

normally that sphere is just an effect and doesN't effect the gameplay so it's just spawned clientside and as clientactor not made to do something like damage

for solving that you need get the script to spawn the sphere on the server

so.. you need to take the class where it spawns the sphere and let it spawning on the server..

since i don't know where it gets spawned i ca'Nt tell what exactly to do to get it spawning on the server

PostPosted: Tue Oct 25, 05 7:16 pm
by MainMan
~[A]Nobody~ wrote:ok.. then the whole sh*t just happens on the client

normally that sphere is just an effect and doesN't effect the gameplay so it's just spawned clientside and as clientactor not made to do something like damage

for solving that you need get the script to spawn the sphere on the server

so.. you need to take the class where it spawns the sphere and let it spawning on the server..

since i don't know where it gets spawned i ca'Nt tell what exactly to do to get it spawning on the server


yeaahhh it just worked!!! cheers.. you have to override the state flying in deusexprojectile, because some of the effects are only spawned clientside.