Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Bug Report (https://forums.graalonline.com/forums/forumdisplay.php?f=193)
-   -   Particle Gani Attr Effects Broken (https://forums.graalonline.com/forums/showthread.php?t=134268336)

fowlplay4 06-20-2013 02:56 AM

Particle Gani Attr Effects Broken
 
Other player gets 'enrage' set in their attributes. Displays just fine to everyone in the level.

I leave the level and re-enter. Player with 'enrage' set in their attributes effect doesn't display anymore. I reconnect and it appears fine.

This broke when GS3 was implemented/released.

Here's the GANI in question.

yen-effect-enrage.gani:

PHP Code:

GANI0001
SPRITE    0         SPRITES   24    0   16    8 sprite

SINGLEDIRECTION
CONTINUOUS
DEFAULTHEAD head19
.png
DEFAULTBODY body
.png
COLOREFFECT 20 0 1 0 .99
COLOREFFECT 22 .2 1 0 .6

SCRIPT
if (created || playerenters){
  if (!
particleeffectsenabled) return;
  
with (findimg(200)) {
    
attachtoowner true;
    
attachoffset "-.5,-.5,0";
    
emitter.delaymin .01;
    
emitter.delaymax .1;
    
emitter.nrofparticles 2;
    
emitter.emissionoffset = {1,.5,0};
    
emitter.continueafterdestroy true;
    
layer 0;
    
emitter.layer 0;
    
emitter.firstinfront false;
    
emitter.particle.lifetime 1.5;
    
emitter.particle.image "g4_animation_whitefire-notrans.gif";
    
emitter.particle.red 1;
    
emitter.particle.green 0.25;
    
emitter.particle.blue 0;
    
emitter.particle.alpha .25;
    
emitter.particle.mode 0;
    
emitter.particle.zoom 0.5;
    
emitter.particle.speed 3;
    
emitter.particle.angle pi/2;

    
emitter.addlocalmodifier("once"00"angle""replace"0pi*2);
    
emitter.addlocalmodifier("range".3.85"zangle""replace"0pi*2);
    
emitter.addlocalmodifier("range"0.85"zoom""replace"2.5);
    
emitter.addlocalmodifier("range".4.85"speed""replace"0, -5);
      
emitter.addlocalmodifier("range".45.75"alpha""replace".2.0);
      
emitter.addlocalmodifier("range".4.80"green""replace".0.5);
  }  
}
SCRIPTEND 


devilsknite1 06-20-2013 10:23 PM

A lot of things on UN that we had with any GS1 broke under the same circumstances. Probably not likely to be there is really only one line that is the old language, but some things were fixed after we ported them to GS2. One line wouldn't fix the problem you're having, just throwing in that GS3 has created problems for whatever reason

fowlplay4 06-21-2013 01:22 AM

It works fine if I use a timeout but I don't want to back track and make ganis laggier than they have to be because GS3 decided to come and break everything.

DustyPorViva 06-21-2013 01:53 AM

What happens if you just change:

PHP Code:

if (created || playerenters){ 

to:

PHP Code:

function onPlayerEnters() { 

?

Raven613 06-21-2013 02:05 AM

Quote:

Originally Posted by DustyPorViva (Post 1719473)
What happens if you just change:

PHP Code:

if (created || playerenters){ 

to:

PHP Code:

function onPlayerEnters() { 

?

That along with many other things have been tried.

Cubical 06-21-2013 02:25 AM

Ive also noticed this with the acid effect on gk when its added to a player attr. The only resolution I found was setting it over and.over in a timeout


All times are GMT +2. The time now is 07:10 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.