Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-21-2001, 12:12 PM
BocoC BocoC is offline
Registered User
BocoC's Avatar
Join Date: Jun 2001
Location: Washington State, USA
Posts: 980
BocoC is on a distinguished road
Send a message via AIM to BocoC Send a message via Yahoo to BocoC
Npcserver stuff

Stefan, could you please made the flag 'washit' serverside on npcserver? Without it, we can't create serverside baddy's, only clientside ones. We have tried many things, including having a clientside washit send a triggeraction. But, only a clientside triggeraction would work, and that is not good. Please add all the hit-checking commands to serverside for npcserver. And, please fix the 'lighteffectsenabled' flag, or else add a flag that checks if the player can see setcoloreffect commands. Thank you.
__________________
-Boco

FLKJH$TRFG*$(&%>FMG >REN<>F ;.kjsd
Reply With Quote
  #2  
Old 09-21-2001, 06:21 PM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Why does the server need to know if the player can see lighting effects? It's not like it has to draw those effects or anything.
Reply With Quote
  #3  
Old 09-21-2001, 08:07 PM
BocoC BocoC is offline
Registered User
BocoC's Avatar
Join Date: Jun 2001
Location: Washington State, USA
Posts: 980
BocoC is on a distinguished road
Send a message via AIM to BocoC Send a message via Yahoo to BocoC
Well, I have a mine where people see via a big light effect. I use seteffect to make the level's dark. When the player uses their lantern, a big light effect appears over them so they can see. Looks very nice. The only problem is that people who can't see light effects are stuck. They can't see because the level is so dark. Since seteffect can be seen by anyone who has 'Use Direct X' enabled, the 'lighteffectsenabled' flag always returns true. That is bad. I was asking Stefan if he could fix the lighteffectsenabled flag, or add a new one that checks if the player can see setcoloreffect commands.
__________________
-Boco

FLKJH$TRFG*$(&%>FMG >REN<>F ;.kjsd
Reply With Quote
  #4  
Old 09-21-2001, 09:49 PM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally posted by BocoC
Well, I have a mine where people see via a big light effect. I use seteffect to make the level's dark. When the player uses their lantern, a big light effect appears over them so they can see. Looks very nice. The only problem is that people who can't see light effects are stuck. They can't see because the level is so dark. Since seteffect can be seen by anyone who has 'Use Direct X' enabled, the 'lighteffectsenabled' flag always returns true. That is bad. I was asking Stefan if he could fix the lighteffectsenabled flag, or add a new one that checks if the player can see setcoloreffect commands.
Ah. You shouldn't talk about clientside effects in a post offering suggestions for serverside stuff.
Reply With Quote
  #5  
Old 09-21-2001, 11:29 PM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x will become famous soon enough
NPC Code:
if (actionwashit) hearts-=strtofloat(#P(0));
//#CLIENTSIDE
if (washit) triggeraction x+1.5,y+2,washit,#v(playerswordpower);

As for the other thing, just make an option at the start of your server in which it is asked if the player can see both seteffect and setcoloreffect.
__________________

Reply With Quote
  #6  
Old 09-22-2001, 04:57 AM
BocoC BocoC is offline
Registered User
BocoC's Avatar
Join Date: Jun 2001
Location: Washington State, USA
Posts: 980
BocoC is on a distinguished road
Send a message via AIM to BocoC Send a message via Yahoo to BocoC
Quote:
Originally posted by grim_squeaker_x
NPC Code:
if (actionwashit) hearts-=strtofloat(#P(0));
//#CLIENTSIDE
if (washit) triggeraction x+1.5,y+2,washit,#v(playerswordpower);

As for the other thing, just make an option at the start of your server in which it is asked if the player can see both seteffect and setcoloreffect.
That code won't work. Tried already. I think the problem is the clientside triggeraction is trying to trigger a serverside action. If I am correct, the //#CLIENTSIDE command makes the triggeraction NOT send to the server.
__________________
-Boco

FLKJH$TRFG*$(&%>FMG >REN<>F ;.kjsd
Reply With Quote
  #7  
Old 09-22-2001, 04:59 AM
BocoC BocoC is offline
Registered User
BocoC's Avatar
Join Date: Jun 2001
Location: Washington State, USA
Posts: 980
BocoC is on a distinguished road
Send a message via AIM to BocoC Send a message via Yahoo to BocoC
Quote:
Originally posted by Kaimetsu


Ah. You shouldn't talk about clientside effects in a post offering suggestions for serverside stuff.
Wha-? I am asking that 'washit' works server side, and the built-in flag 'lighteffectsenabled' to check if the player can see setcoloreffect commands.
__________________
-Boco

FLKJH$TRFG*$(&%>FMG >REN<>F ;.kjsd
Reply With Quote
  #8  
Old 09-22-2001, 09:26 AM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally posted by BocoC

Wha-? I am asking that 'washit' works server side, and the built-in flag 'lighteffectsenabled' to check if the player can see setcoloreffect commands.
lighteffectsenabled doesn't fit under the thread's "npcserver stuff" title.
Reply With Quote
  #9  
Old 09-22-2001, 09:04 PM
BocoC BocoC is offline
Registered User
BocoC's Avatar
Join Date: Jun 2001
Location: Washington State, USA
Posts: 980
BocoC is on a distinguished road
Send a message via AIM to BocoC Send a message via Yahoo to BocoC
Quote:
Originally posted by Kaimetsu


lighteffectsenabled doesn't fit under the thread's "npcserver stuff" title.
Oh well. You can really only use the command if you are a p2p server, since it deals with light effects =P
__________________
-Boco

FLKJH$TRFG*$(&%>FMG >REN<>F ;.kjsd
Reply With Quote
  #10  
Old 09-22-2001, 09:08 PM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally posted by BocoC


Oh well. You can really only use the command if you are a p2p server, since it deals with light effects =P
Maybe so, but P2P != NPC Server.
Reply With Quote
  #11  
Old 09-22-2001, 09:12 PM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x will become famous soon enough
Quote:
Originally posted by BocoC

That code won't work. Tried already. I think the problem is the clientside triggeraction is trying to trigger a serverside action. If I am correct, the //#CLIENTSIDE command makes the triggeraction NOT send to the server.
Actually I know that clientside triggeraction can trigger serverside actions, otherwise any weapon using triggeraction could never work, so why it doesn't work in this case is unknown to me.
__________________

Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 06:50 AM.


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