Author Topic: restrict vfx to certain clients ?  (Read 352 times)

Legacy_xorbaxian

  • Newbie
  • *
  • Posts: 20
  • Karma: +0/-0
restrict vfx to certain clients ?
« on: September 19, 2013, 04:19:08 am »


               hi,

i'm developing a module for a pw incorporating some p&p spells, many of which are detects. currently, i've written these so they return textual information using SendMessageToPC(). what i'd like to do is give visual feedback; for example, detect evil would highlight all evil character in a red glow. i don't want this to be visible to all players, however; just the player whose character cast the spell. i've heard there's a way to limit the effects of some vfx so they appear to some players and not others -- is this true? if so, how would i do that?

thanks.
               
               

               
            

Legacy_FunkySwerve

  • Hero Member
  • *****
  • Posts: 2325
  • Karma: +0/-0
restrict vfx to certain clients ?
« Reply #1 on: September 19, 2013, 04:29:21 am »


               Not feasible, as far as I know. All the approaches I know of to do this involve the client having or not having certain files. HG's approach is to display one vfx to people who have our optional hak and who have toggled !enhmode on, and a specified alternate vfx to those who don't. More typical approaches involve one having one 2da, and another a modded 2da. Might be possible with the Client Extender (NWNCX), but I suspect not.

Funky
               
               

               
            

Legacy_xorbaxian

  • Newbie
  • *
  • Posts: 20
  • Karma: +0/-0
restrict vfx to certain clients ?
« Reply #2 on: September 19, 2013, 11:05:07 am »


               well, i was afraid of that. thanks for the confirmation!
               
               

               
            

Legacy_The Amethyst Dragon

  • Hero Member
  • *****
  • Posts: 2981
  • Karma: +0/-0
restrict vfx to certain clients ?
« Reply #3 on: September 19, 2013, 04:34:31 pm »


               I use the Windows version of nwnx_funcs (a NWNX2 plugin), which has a function that displays a (non-duration) VFX for a single PC at a specified position.

// Applies a visual effect at a specified location that only oPC can see
// This only works with instant visual effects (VFX_FNF_*, VFX_IMP_*)
void NWNXFuncs_ApplyVisualEffectForPC(object oPC, int nVFX, vector vPos)

I use this for my PW's paladins' ability to detect evil and for multiple other uses.
               
               

               
            

Legacy_FunkySwerve

  • Hero Member
  • *****
  • Posts: 2325
  • Karma: +0/-0
restrict vfx to certain clients ?
« Reply #4 on: September 19, 2013, 10:30:03 pm »


               Oh boy. I never thought I'd see the day I envied a win nwnx user. '<img'> Now, to convince someone to add the lin version... '<img'>

Thanks,
Funky
               
               

               
            

Legacy_Squatting Monk

  • Hero Member
  • *****
  • Posts: 776
  • Karma: +0/-0
restrict vfx to certain clients ?
« Reply #5 on: September 22, 2013, 01:30:17 am »


               

FunkySwerve wrote...
Now, to convince someone to add the lin version... '<img'>

It's in nwnx_funcsext.
               
               

               


                     Modifié par Squatting Monk, 22 septembre 2013 - 12:32 .
                     
                  


            

Legacy_FunkySwerve

  • Hero Member
  • *****
  • Posts: 2325
  • Karma: +0/-0
restrict vfx to certain clients ?
« Reply #6 on: September 22, 2013, 02:09:15 am »


               Ah, many thanks. Looks like I'm over a year out-of-date on linux nwnx plugins.

Funky
               
               

               
            

Legacy_The Amethyst Dragon

  • Hero Member
  • *****
  • Posts: 2981
  • Karma: +0/-0
restrict vfx to certain clients ?
« Reply #7 on: September 22, 2013, 07:07:53 am »


               

Squatting Monk wrote...

FunkySwerve wrote...
Now, to convince someone to add the lin version... '<img'>

It's in nwnx_funcsext.

These are the kinds of things that could go onto the NWNX2 page at the community site.  Is there a forum/documentation/etc. link somewhere?  The Linux section is rather lacking.
               
               

               
            

Legacy_virusman

  • Sr. Member
  • ****
  • Posts: 448
  • Karma: +0/-0
restrict vfx to certain clients ?
« Reply #8 on: September 22, 2013, 08:59:01 am »


               You can use this list as a starting point.
               
               

               
            

Legacy_The Amethyst Dragon

  • Hero Member
  • *****
  • Posts: 2981
  • Karma: +0/-0
restrict vfx to certain clients ?
« Reply #9 on: September 22, 2013, 04:15:36 pm »


               

virusman wrote...

You can use this list as a starting point.

Thanks!