Aller au contenu

Photo

restrict vfx to certain clients ?


  • Veuillez vous connecter pour répondre
9 réponses à ce sujet

#1
xorbaxian

xorbaxian
  • Members
  • 10 messages
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.

#2
FunkySwerve

FunkySwerve
  • Members
  • 1 308 messages
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

#3
xorbaxian

xorbaxian
  • Members
  • 10 messages
well, i was afraid of that. thanks for the confirmation!

#4
The Amethyst Dragon

The Amethyst Dragon
  • Members
  • 1 882 messages
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.

#5
FunkySwerve

FunkySwerve
  • Members
  • 1 308 messages
Oh boy. I never thought I'd see the day I envied a win nwnx user. :P Now, to convince someone to add the lin version... :P

Thanks,
Funky

#6
Squatting Monk

Squatting Monk
  • Members
  • 446 messages

FunkySwerve wrote...
Now, to convince someone to add the lin version... :P

It's in nwnx_funcsext.

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


#7
FunkySwerve

FunkySwerve
  • Members
  • 1 308 messages
Ah, many thanks. Looks like I'm over a year out-of-date on linux nwnx plugins.

Funky

#8
The Amethyst Dragon

The Amethyst Dragon
  • Members
  • 1 882 messages

Squatting Monk wrote...

FunkySwerve wrote...
Now, to convince someone to add the lin version... :P

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.

#9
virusman

virusman
  • Members
  • 282 messages
You can use this list as a starting point.

#10
The Amethyst Dragon

The Amethyst Dragon
  • Members
  • 1 882 messages

virusman wrote...

You can use this list as a starting point.

Thanks!