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-05 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
February 05, 2010, 03:47:26 AM *
Welcome, Guest. Please login or register.
Login with username, password and session length
News: Remember to check on the FAQ before start posting.
It may save you time and effort.
Google  
  Home   Forum   Help Search Login Register   *
Pages: [1]   Go Down
  Print  
This topic has not yet been rated! You have not rated this topic. Select a rating:
Author Topic: Ability to friendly fire?  (Read 123 times)
The_cheaT
Level 0 Beginner

Offline Offline

United States United States

Posts: 1




STEAM_0:0:17633283
clubby9806
« on: September 15, 2009, 02:04:46 AM »

Im trying to code a medic race and so far i have two questions that hopefully someone could answer?

1. Is it possible to give a race the ability to friendly fire? (without team switch)
2. Would giving an extra damage a negative number for damage cause the victim to gain health?

thanks for your time
Logged
Atobos | Termi
Level 5 Trained Intermediate
*****
Offline Offline

Germany Germany

Posts: 113



WWW
terminator_228

myServer 93.186.196.111:27666
(Warning: click connects through Steam)
« Reply #1 on: January 04, 2010, 06:09:40 PM »

I think this is not possible, cuz the server have to set friendlyfire to 1... But you could make an ultimate that sets friendlyfire to 1 for a few sec...
Logged

The grimreaper
Level 0 Beginner

Offline Offline

Australia Australia

Posts: 13




The ۣۜۜGrimۜReaper
« Reply #2 on: February 01, 2010, 09:32:25 AM »

well i know u dont wont to change team but u could try finding a scrpit to change your self to spec so that u can kill your team and the other team
and by spec i mean spawn u as spec
Logged
Atobos | Termi
Level 5 Trained Intermediate
*****
Offline Offline

Germany Germany

Posts: 113



WWW
terminator_228

myServer 93.186.196.111:27666
(Warning: click connects through Steam)
« Reply #3 on: February 01, 2010, 06:46:46 PM »

well i know u dont wont to change team but u could try finding a scrpit to change your self to spec so that u can kill your team and the other team
and by spec i mean spawn u as spec

How should it be possible to SPAWN someone as SPECATOR ? ...
Logged

darkgrenchler
Level 4 Intermediate
****
Offline Offline

Canada Canada

Posts: 93


Lol...


« Reply #4 on: February 02, 2010, 12:39:22 AM »

No not a negative #... You can either use a multiplier [Setting] and or the dmg[Setting] its self

Code:
    "skill2_setting"    "es_xsetinfo wcs_multiplier 1.3|es_xsetinfo wcs_multiplier 1.6|es_xsetinfo wcs_multiplier 1.9|es_xsetinfo wcs_multiplier 2.1|es_xsetinfo wcs_multiplier 2.4"
    "racealias_rai1"    "es es_xsetinfo wcs_dmg event_var(dmg_health);es_xmath wcs_dmg float;es es_xmath wcs_dmg * server_var(wcs_multiplier);es est_RoundDecimal wcs_dmg server_var(wcs_dmg) 0;es wcs_dealdamage event_var(attacker) event_var(userid) server_var(wcs_dmg);wcs_getlanguage wcs_lng wcs_lng_damage;esnq est_csay event_var(attacker) + server_var(wcs_dmg) server_var(wcs_lng);esnq est_csay event_var(userid) + server_var(wcs_dmg) server_var(wcs_lng)"
    "skill2_cmd"        "es es_xif (server_var(wcs_dice) <= 15) then est_IsAlive wcs_alive event_var(userid);es es_xif (server_var(wcs_dice) <= 15) then es_xif (server_var(wcs_alive) = 1) then racealias_rai1"
    "skill2_sfx"        "es es_xif (server_var(wcs_dice) <= 15) then es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(attacker);es es_xif (server_var(wcs_dice) <= 15) then es_xgetplayerlocation wcs_x2 wcs_y2 wcs_z2 event_var(userid);es es_xif (server_var(wcs_dice) <= 15) then es_xif (server_var(wcs_alive) = 1) then est_Effect 3 #a 0 sprites/lgtning.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2) 2 13 16 100 155 255 255"

Multiplier

Code:
"skill2_setting"    "es_xrand wcs_rand 1 5;es_xrand wcs_damage 7 10|es_xrand wcs_rand 1 4;es_xrand wcs_damage 9 11|es_xrand wcs_rand 1 3;es_xrand wcs_damage 10 13|es_xrand wcs_rand 1 2;es_xrand wcs_damage 12 14|es_xrand wcs_rand 1 1;es_xrand wcs_damage 15 18|es_xrand wcs_rand 1 1;es_xrand wcs_damage 17 20|es_xrand wcs_rand 1 1;es_xrand wcs_damage 19 22|es_xrand wcs_rand 1 1;es_xrand wcs_damage 20 23"
    "racealias_nib1"    "es wcs_dealdamage event_var(attacker) event_var(userid) server_var(wcs_damage);es est_csay event_var(attacker)  server_var(wcs_damage);es est_csay event_var(userid)  server_var(wcs_damage) additional damage"
    "skill2_cmd"        "es est_playplayer event_var(userid) ambient\explosions\explode_9.wav;es es_xif (server_var(wcs_rand) = 1) then est_isalive wcs_alive event_var(userid);es es_xif (server_var(wcs_rand) = 1) then es_xif (server_var(wcs_alive) = 1) then racealias_nib"
    "skill2_sfx"        "es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid);es est_effect 10 #a 0 sprites/scanner.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 50 350 2 90 200 0 155 155 155 155 2"
   
DMG its self
Logged
The grimreaper
Level 0 Beginner

Offline Offline

Australia Australia

Posts: 13




The ۣۜۜGrimۜReaper
« Reply #5 on: February 03, 2010, 07:00:50 AM »

Quote
well i know u dont wont to change team but u could try finding a scrpit to change your self to spec so that u can kill your team and the other team
and by spec i mean spawn u as spec

umm you can i have seen it on a race befor on a wcs server that i played cant remember the name for steam id tho =( and u can spawn someone as a spectator in est_admin not sure if it could work but maby make that script into a race some how
Logged
HOLLIDAY
<Race Maker>
Watchdogs
Level 7 Expert
*****
Offline Offline

Posts: 2337


of all the things ive lost i miss my mind the most


WWW
Wc3_HOLLIDAY_Wc3
wc3hollidaywc3

myServer 8.2.0.222:27015
(Warning: click connects through Steam)
« Reply #6 on: February 03, 2010, 09:24:35 AM »

you might be going about this the wrong way
if your idea is to use friendly fire so that shooting a team mate will give health..

it might be better to go into event weapon_fire and est_getviewplayer and if player = team mate then give the health
(also check for userid's ammo that it is <= 1)
Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
February 04, 2010, 10:14:46 PM
Anyone know the if there is a code where if some kills someone with a knife they get hp and speed?
February 04, 2010, 02:33:47 AM
Sup?
February 04, 2010, 02:33:37 AM
hey Ghost
February 04, 2010, 01:44:10 AM
hey dark
February 02, 2010, 10:43:30 AM
Yap, he mean eventscripter xD
February 02, 2010, 01:03:48 AM
Eventscripter. lol
February 02, 2010, 12:23:17 AM
A WCS scripter?
Recent
[Today at 03:20:48 AM]

[Today at 03:09:40 AM]

[Today at 02:51:34 AM]

[February 04, 2010, 10:41:39 PM]

[February 04, 2010, 09:26:55 PM]

[February 04, 2010, 06:11:26 PM]

[February 04, 2010, 06:10:45 PM]

[February 04, 2010, 05:54:42 PM]

[February 04, 2010, 03:16:50 PM]

[February 04, 2010, 12:44:51 AM]
Theme switch

Powered by MySQL Powered by PHP Powered by SMF 1.1.4 | SMF © 2006-2009, Simple Machines LLC
TinyPortal v0.9.8 © Bloc
Valid XHTML 1.0! Valid CSS!
Page created in 0.103 seconds with 24 queries.