Author Topic: Costume change/disappearing NPCs and CameraSweep question  (Read 2662 times)

kalynnda13

  • Minion
  • **
  • Posts: 29
Costume change/disappearing NPCs and CameraSweep question
« on: January 06, 2013, 03:52:44 AM »
Edit: 1) found out I can change the costume and 2) figured out that the problem was moving the player too far from the NPCs.  Yeah! Now I have to get the hero flying...and not moving through the air standing up :-)

****** problem that is resolved****
Something strange is occurring in my demo playback. I'm trying to simulate a costume change (from street clothes to hero costume). I have two NPCs in the scene, and they disappear when the "hero" appears.

Here's what I'm doing:
    Hero A (street clothes) walks out of the train station, pauses, and "listens" to the NPC conversation. A few seconds after the NPCs finish talking, Hero A does a costume change emote (EMOTE_COSTUMECHANGE_INNERWILL).  2.5 seconds into the emote, I move Hero A to a position outside of the scene and put Hero B (same character but in costume) in the same position. When Hero B shows up, the NPCs disappear.

Hero A is the "player". I originally tried to make Hero B the player, but then neither the NPCs nor Hero A were visible. I tried deleting Hero A at the end of the costume change emote, then adding the new Hero B as a player...but I got the same effect (no NPCs or Hero A).  It is working to move Hero A outside of the scene, except for the disappearing NPCs. I don't need them any more, and I can probably work around the issue with moving the camera, but...I'm hoping someone has an idea.

Also, is there an easier way to do a costume change?

****Camerasweep question:

I'd like to create a flight path for my toon and have the camera follow behind.  I can get the toon position (if I set the ID to the toon #) or the CAM positions...but not both.  I'm not looking forward to interleaving the various positions. I probably don't need to move the camera as often as the toon, which might help. Any ideas?

I appreciate all the help provide...to me and to others. Thanks to this wonderful community.

« Last Edit: January 06, 2013, 04:51:28 AM by kalynnda13 »

Sparky

  • Minion
  • **
  • Posts: 32
Re: Costume change/disappearing NPCs and CameraSweep question
« Reply #1 on: January 06, 2013, 04:08:13 AM »
Here's the way to do a costume change without needing two separate instances of your character.

Code: [Select]
0   32  Player
0   32  NEW Gnat-Man
0   32  COSTUME 0 0089a0ea -33.000000 0.000000 0.000000 -0.000315 0.000000 0.000000 0.000000 -0.054220 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
0   32  PARTSNAME Tight tights none 00220066 00662200
0   32  PARTSNAME Tight tights !Chest_Peak 00220066 00662200
0   32  PARTSNAME V_MALE_HEAD.GEO/GEO_Head_V_Asym_Masked V_Mask_No_Eyes none 00662200 00006600
0   32  PARTSNAME Spike tights Sleeve 00662200 00662200
0   32  PARTSNAME Spike tights none 00220066 00220066
0   32  PARTSNAME none none none 0000cc01 0000663b
0   32  PARTSNAME Crown_19 masked_matt_01a masked_matt_01b 0000a9ff 0000a9ff
0   32  PARTSNAME none none none 00000000 00000000
0   32  PARTSNAME V_MALE_EYES.GEO/GEO_Eyes_Sonic_01 !Cranium_Warrior_01 !Cranium_Warrior_01_Mask 0000a9ff 0000a9ff
0   32  PARTSNAME Tight base V_Beetle_02 0000a9ff 0000a9ff
0   32  PARTSNAME none none none 007eeef1 00000000
0   32  PARTSNAME none none none 00000000 00000000
0   32  PARTSNAME none none none 00000000 00000000
0   32  PARTSNAME none none none 00000000 00ffffff
0   32  PARTSNAME none none none 00000000 00000000
0   32  PARTSNAME none none none 00000000 00000000
0   32  PARTSNAME none none none 00000000 00000000
0   32  PARTSNAME none !X_Wings_Insect_01 none 00ffffff 00e3e3e3 0000cc01 0000663b GENERIC/FX_wings_Insect.fx
0   32  PARTSNAME none none none 00310099 00000000 00000000 00000000 Auras/Male/Fireflies/Fireflies_Fists_Combat.fx
0   32  PARTSNAME none none none 00000000 00000000
0   32  PARTSNAME none none none 00000000 00000000
0   32  PARTSNAME none none none 00000000 00000000
0   32  PARTSNAME none none none 0000cc01 0000663b
0   32  PARTSNAME none none none 00000000 00000000
0   32  PARTSNAME none none none 00000000 00000000
0   32  PARTSNAME none none none 00000000 00000000
0   32  PARTSNAME none none none 00000000 00000000
0   32  PARTSNAME none none none 0000cc01 0000663b
0   32  MOV EMOTE_IDLE2 0
0   32  POS 0 -10000 0
0   32  PYR 0 0.25 0

5000 32 MOV EMOTE_COSTUMECHANGE_INNERWILL 0
0   32 COSTUME 0 0089a0ea -33.000000 0.000000 0.000000 -0.000315 0.000000 0.000000 0.000000 -0.054220 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
0   32  PARTSNAME Tight tights !Hips_Stripe_3 00006600 00000000
0   32  PARTSNAME Tight tights !Chest_Stripe_4 00006600 00000000
0   32  PARTSNAME V_MALE_HEAD.GEO/GEO_Head_V_Asym_Masked V_Mask_No_Eyes none 00006600 00006600
0   32  PARTSNAME Spike tights !glove_Round 0000fdff 00000000
0   32  PARTSNAME Spike tights !Boot_Round 0000fdff 00000000
0   32  PARTSNAME none none none 0000cc01 0000663b
0   32  PARTSNAME Crown_19 masked_matt_01a masked_matt_01b 007eeef1 00000000
0   32  PARTSNAME none none none 00000000 00000000
0   32  PARTSNAME V_MALE_EYES.GEO/GEO_Eyes_Sonic_01 !Cranium_Warrior_01 !Cranium_Warrior_01_Mask 000046d4 00000000
0   32  PARTSNAME Tight base V_Beetle_02 0000fdff 0000fdff
0   32  PARTSNAME none none none 007eeef1 00000000
0   32  PARTSNAME none none none 00000000 00000000
0   32  PARTSNAME none none none 00000000 00000000
0   32  PARTSNAME none none none 00000000 00ffffff
0   32  PARTSNAME none none none 00000000 00000000
0   32  PARTSNAME none none none 00000000 00000000
0   32  PARTSNAME none none none 00000000 00000000
0   32  PARTSNAME none !X_Wings_Insect_01 none 00ffffff 00e3e3e3 0000cc01 0000663b GENERIC/FX_wings_Insect.fx
0   32  PARTSNAME none none none 0000cacc 00000000 00000000 00000000 Auras/Male/Atomic/Atomic_Fists_Combat.fx
0   32  PARTSNAME none none none 00000000 00000000
0   32  PARTSNAME none none none 00000000 00000000
0   32  PARTSNAME none none none 00000000 00000000
0   32  PARTSNAME none none none 0000cc01 0000663b
0   32  PARTSNAME none none none 00000000 00000000
0   32  PARTSNAME none none none 00000000 00000000
0   32  PARTSNAME none none none 00000000 00000000
0   32  PARTSNAME none none none 00000000 00000000
0   32  PARTSNAME none none none 0000cc01 0000663b

You just need to use the same numbering but simply swap out everything from COSTUME down. The reason the two NPC's are disappearing is because from my experience if they are too far away from a character the demo won't display them even if one is right next to them. So they won't vanish now that you use the costume change in my example.

Samuraiko

  • Honorary Paragon Dev and
  • Elite Boss
  • *****
  • Posts: 350
  • EVERYONE LOOK AWESOME - I'M FILMING!
    • The Wandering Crane
Re: Costume change/disappearing NPCs and CameraSweep question
« Reply #2 on: January 06, 2013, 05:10:18 AM »
Another way to cheat is to make an invisible puddle the Player. :)

Michelle
aka
Samuraiko/Dark_Respite
The game may be gone, but the videos are still here...
http://www.youtube.com/samuraiko
http://cohtube.blogspot.com

Floride

  • Elite Boss
  • *****
  • Posts: 863
  • Badgehunter Extraordinaire
Re: Costume change/disappearing NPCs and CameraSweep question
« Reply #3 on: January 06, 2013, 09:09:07 AM »
Also, is there an easier way to do a costume change?
I usually use:
MOV DEMONSUMMONER_HIT_BOOSTUP 0
It's nice and fast, and gets bright enough to mostly obsfucate the character, and lasts just long enough to not notice any fading in or out.
History shows again and again
How nature points out the folly of men