Archived copy of warcraft-source.com, the Warcraft: Source (WCS) forum (2007–2011), rebuilt from the Internet Archive by wc3mods.net. This page was captured on 2010-02-26 (original capture). Home · Forum · All archived topics · Downloads

Author Topic: player_spawn SFX into a player_attacker, How?  (Read 191 times)

Offline darkgrenchler

  • Level 5 Trained Intermediate
  • *****
  • Posts: 103
  • Lol...
player_spawn SFX into a player_attacker, How?
« on: January 22, 2010, 12:50:42 AM »
Code: [Select]
"skill3_sfx"        "es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid);es_xmath wcs_z1 + 60;es est_effect 10 #a 0 sprites/lgtning.vmt server_var(wcs_x1) server_var(wcs_y1)server_var(wcs_z1) 20 200 4 20 0 0 255 0 0 200 13;es_xmath wcs_z1 - 20;es est_effect 10 #a 0 sprites/lgtning.vmt server_var(wcs_x1) server_var(wcs_y1)server_var(wcs_z1) 20 200 4 20 0 0 0 255 0 200 13;es_xmath wcs_z1 - 20;es est_effect 10 #a 0 sprites/lgtning.vmt server_var(wcs_x1) server_var(wcs_y1)server_var(wcs_z1) 20 200 4 20 0 0 0 0 255 200 13;es es_fire event_var(userid) !self DispatchEffect WaterSurfaceExplosion"
Okay heres my idea, since I saw a "Mars" race, I want to make a Uranus race that slows and dmg that this water splash effect, so what I need help on is converting that spawn SFX into a attacker sfx. When i shoot someone a water splash effect will surround him.

Offline HOLLIDAY

  • <Race Maker>
  • Watchdogs
  • Level 7 Expert
  • *****
  • Posts: 2350
  • of all the things ive lost i miss my mind the most
    • http://holliday.clanservers.com
Re: player_spawn SFX into a player_attacker, How?
« Reply #1 on: January 22, 2010, 05:09:49 AM »
you wont have to do anything,
in player_attacker the victim = userid so it will work as it is....

there is an error in that code
there is no space between server_var(s)

es est_effect 10 #a 0 sprites/lgtning.vmt server_var(wcs_x1) server_var(wcs_y1)server_var(wcs_z1) 20 200 4 20 0 0 255 0 0 200 13

fixed

Code: [Select]
"skill3_sfx"        "es_getplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid);es_xmath wcs_z1 + 60;es est_effect 10 #a 0 sprites/lgtning.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 20 200 4 20 0 0 255 0 0 200 13;es_xmath wcs_z1 - 20;es est_effect 10 #a 0 sprites/lgtning.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 20 200 4 20 0 0 0 255 0 200 13;es_xmath wcs_z1 - 20;es est_effect 10 #a 0 sprites/lgtning.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 20 200 4 20 0 0 0 0 255 200 13;es es_fire event_var(userid) !self DispatchEffect WaterSurfaceExplosion"

Offline Tmu Chuck

  • Level 7 Expert
  • *****
  • Posts: 162
    • TMU WEBSITE!!!
Re: player_spawn SFX into a player_attacker, How?
« Reply #2 on: January 22, 2010, 06:29:42 AM »
holiday you back!!!
   

Offline HOLLIDAY

  • <Race Maker>
  • Watchdogs
  • Level 7 Expert
  • *****
  • Posts: 2350
  • of all the things ive lost i miss my mind the most
    • http://holliday.clanservers.com
Re: player_spawn SFX into a player_attacker, How?
« Reply #3 on: January 22, 2010, 09:12:24 AM »
im back?
the site is back

Offline Tmu Chuck

  • Level 7 Expert
  • *****
  • Posts: 162
    • TMU WEBSITE!!!
Re: player_spawn SFX into a player_attacker, How?
« Reply #4 on: January 22, 2010, 09:31:50 AM »
have you heard www.wacraft-source.nl?
   

Offline darkgrenchler

  • Level 5 Trained Intermediate
  • *****
  • Posts: 103
  • Lol...
Re: player_spawn SFX into a player_attacker, How?
« Reply #5 on: January 22, 2010, 04:54:44 PM »
you wont have to do anything,
in player_attacker the victim = userid so it will work as it is....

there is an error in that code
there is no space between server_var(s)

es est_effect 10 #a 0 sprites/lgtning.vmt server_var(wcs_x1) server_var(wcs_y1)server_var(wcs_z1) 20 200 4 20 0 0 255 0 0 200 13

fixed

Code: [Select]
"skill3_sfx"        "es_getplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid);es_xmath wcs_z1 + 60;es est_effect 10 #a 0 sprites/lgtning.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 20 200 4 20 0 0 255 0 0 200 13;es_xmath wcs_z1 - 20;es est_effect 10 #a 0 sprites/lgtning.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 20 200 4 20 0 0 0 255 0 200 13;es_xmath wcs_z1 - 20;es est_effect 10 #a 0 sprites/lgtning.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 20 200 4 20 0 0 0 0 255 200 13;es es_fire event_var(userid) !self DispatchEffect WaterSurfaceExplosion"

Help appreciated HOLLIDAY :)

Offline Atobos | Termi

  • Level 7 Expert
  • *****
  • Posts: 181
    • Atobos
Re: player_spawn SFX into a player_attacker, How?
« Reply #6 on: January 22, 2010, 11:14:45 PM »
you wont have to do anything,
in player_attacker the victim = userid so it will work as it is....

there is an error in that code
there is no space between server_var(s)

es est_effect 10 #a 0 sprites/lgtning.vmt server_var(wcs_x1) server_var(wcs_y1)server_var(wcs_z1) 20 200 4 20 0 0 255 0 0 200 13

fixed

Code: [Select]
"skill3_sfx"        "es_getplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid);es_xmath wcs_z1 + 60;es est_effect 10 #a 0 sprites/lgtning.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 20 200 4 20 0 0 255 0 0 200 13;es_xmath wcs_z1 - 20;es est_effect 10 #a 0 sprites/lgtning.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 20 200 4 20 0 0 0 255 0 200 13;es_xmath wcs_z1 - 20;es est_effect 10 #a 0 sprites/lgtning.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 20 200 4 20 0 0 0 0 255 200 13;es es_fire event_var(userid) !self DispatchEffect WaterSurfaceExplosion"

Help appreciated HOLLIDAY :)


Lol? He gave you the code.... the fixed code is at the code field under "fixed" XDXD

Offline darkgrenchler

  • Level 5 Trained Intermediate
  • *****
  • Posts: 103
  • Lol...
Re: player_spawn SFX into a player_attacker, How?
« Reply #7 on: January 23, 2010, 12:34:33 AM »
yes I know. The one with the red is the sfx mistake