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

The best and quickest support by a group of top-notch editing specialists, guaranteed!

Moderator: Forum Guards

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

Postby MainMan » Mon Oct 24, 05 5:26 pm

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.
Last edited by MainMan on Sat Nov 05, 05 7:35 pm, edited 3 times in total.
User avatar
MainMan
<i>Tru' Playa' Fer Defs</i>
 
Posts: 4655
Joined: Sun Jun 05, 05 7:38 am
Location: London, UK

Postby Gishank » Mon Oct 24, 05 5:31 pm

It does work when that happens they enter zombie mode as u could call it tell them to press Esc Twice there problem solved.
Image
Gishank
Forum Super Hero
 
Posts: 4235
Joined: Sun Aug 28, 05 9:17 am
Location: London, England.

Postby Snakey » Mon Oct 24, 05 5:33 pm

(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.
<center>

Image
User avatar
Snakey
Alpha
 
Posts: 3926
Joined: Wed Mar 30, 05 7:09 pm
Location: Wales

Postby MainMan » Mon Oct 24, 05 6:46 pm

(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.
User avatar
MainMan
<i>Tru' Playa' Fer Defs</i>
 
Posts: 4655
Joined: Sun Jun 05, 05 7:38 am
Location: London, UK

Postby Gishank » Mon Oct 24, 05 6:56 pm

well it's like ghost cloaks and ghost u enter zombie mode sadly i dunno how to stop it
Image
Gishank
Forum Super Hero
 
Posts: 4235
Joined: Sun Aug 28, 05 9:17 am
Location: London, England.

Postby MainMan » Tue Oct 25, 05 1:38 pm

come on someone help please all ive got is noob replies, which i specifically asked not for.
User avatar
MainMan
<i>Tru' Playa' Fer Defs</i>
 
Posts: 4655
Joined: Sun Jun 05, 05 7:38 am
Location: London, UK

Postby Gishank » Tue Oct 25, 05 2:19 pm

Hey these ain't newbie replys ya know u must be calling yyour self one as well
Image
Gishank
Forum Super Hero
 
Posts: 4235
Joined: Sun Aug 28, 05 9:17 am
Location: London, England.

Postby Alex » Tue Oct 25, 05 3:20 pm

(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.
Alex
Alpha
 
Posts: 8067
Joined: Wed Nov 12, 03 4:51 pm

Postby ~ô¿ô~Nobody~ » Tue Oct 25, 05 5:19 pm

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
Nobody is perfect...
------------------------------
Longc[A]t wrote:I still think Dae is a russian spambot.

~[A]Daedalus~ wrote:There will be a day when my patience goes away and you, along with all who rant with you, will get banned.

ô¿ô¥[GODZ]¥NOCHANC wrote:I can ban any one I want ANY time I want. You have no rights here.
User avatar
~ô¿ô~Nobody~
Alpha
 
Posts: 2520
Joined: Fri Dec 31, 04 3:20 pm
Location: Proclarush Taonas

Postby MainMan » Tue Oct 25, 05 5:38 pm

it doesnt do damage at all now, and it doesn't increase in size now either.
User avatar
MainMan
<i>Tru' Playa' Fer Defs</i>
 
Posts: 4655
Joined: Sun Jun 05, 05 7:38 am
Location: London, UK

Postby ~ô¿ô~Nobody~ » Tue Oct 25, 05 5:51 pm

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
Nobody is perfect...
------------------------------
Longc[A]t wrote:I still think Dae is a russian spambot.

~[A]Daedalus~ wrote:There will be a day when my patience goes away and you, along with all who rant with you, will get banned.

ô¿ô¥[GODZ]¥NOCHANC wrote:I can ban any one I want ANY time I want. You have no rights here.
User avatar
~ô¿ô~Nobody~
Alpha
 
Posts: 2520
Joined: Fri Dec 31, 04 3:20 pm
Location: Proclarush Taonas

Postby MainMan » Tue Oct 25, 05 7:16 pm

~[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.
User avatar
MainMan
<i>Tru' Playa' Fer Defs</i>
 
Posts: 4655
Joined: Sun Jun 05, 05 7:38 am
Location: London, UK


Return to Editing issues

Who is online

Users browsing this forum: No registered users and 1 guest