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 2009-05-01 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
May 01, 2009, 05:35:33 AM *
Welcome, Guest. Please login or register.
Login with username, password and session length
News: Hall of Fame - Designer
Must Visit it
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: Bob's Questions  (Read 75 times)
Bob
Level 5 Trained Intermediate
*****
Offline Offline

United States United States

Posts: 149



« on: April 29, 2009, 02:33:04 PM »

HOLLIDAY would this work?
once you knife it does wcs_dmg to them (from the setting) and it has a 2 second cooldown thing

Code:

block load
{
  es_load corelib
  es_xdoblock corelib/noisy_on
  es_xsetinfo wcs_x1 0
  es_xsetinfo wcs_y1 0
  es_xsetinfo wcs_z1 0
  es_xsetinfo wcs_x2 0
  es_xsetinfo wcs_y2 0
  es_xsetinfo wcs_z2 0
  es_xsetinfo wcs_x3 0
  es_xsetinfo wcs_y3 0
  es_xsetinfo wcs_z3 0
}

block unload
{
  es_xunload corelib
  es_xdoblock corelib/noisy_off
}

event plyer_spawn
{
   es es_xkeysetvalue WCSuserdata event_var(userid) allow_HOLLIDAY 0
}

event plyer_death
{
   es es_xkeysetvalue WCSuserdata event_var(userid) allow_HOLLIDAY 0
}

event player_footstep
{
   es_keygetvalue wcs_tmp WCSuserdata event_var(userid) allow_HOLLIDAY
   ifx true(wcs_tmp) do
{
  es_xif (event_var(es_userteam) = 3) do
  {
  es est_Near targetid #t 20000 event_var(userid) "es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 server_var(targetid);es_xmath wcs_z1 + 30;es est_effect 11 event_var(userid) 0 VGUI\gfx\VGUI\arctic.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 1 .3 255"
  }
  es_xelse do
  {
  es_xif (event_var(es_userteam) = 2) do
  {
  es est_Near targetid #c 20000 event_var(userid) "es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 server_var(targetid);es_xmath wcs_z1 + 30;es est_effect 11 event_var(userid) 0 VGUI\gfx\VGUI\gign.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 1 .3 255"
   }
  }
 }
}
event weapon_fire
{
  es_keygetvalue wcs_tmp WCSuserdata event_var(userid) allow_HOLLIDAY
  ifx true(wcs_tmp) do
{
  es es_xif (event_var(weapon) = knife) do
  {
  es_xif (event_var(es_userteam) = 3) do
  {
  es est_Near targetid #t 250 event_var(userid) "es wcs_dealdamage event_var(userid) server_var(targetid) server_var(wcs_dmg);es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 server_var(targetid);es_xmath wcs_z1 + 60;es es_xgetplayerlocation wcs_x2 wcs_y2 wcs_z2 server_var(wcs_userid);es_xmath wcs_z2 + 60;es est_effect 3 event_var(userid) 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) 0.5 2 2 255 255 20 155;es_keysetvalue WCSuserdata event_var(userid) allow_HOLLIDAY 0;es est_fade server_var(targetid) 0 1 1 255 255 20 120;es es_xtell event_var(userid) #multi #lightgreen You are not able to use #green Death Spike #lightgreen for another #green 2 seconds;es_delayed 2 es_keysetvalue WCSuserdata event_var(userid) allow_HOLLIDAY 1"
  }
  es_xelse do
  {
  es_xif (event_var(es_userteam) = 2) do
  {
  es est_Near targetid #c 250 event_var(userid) "es wcs_dealdamage event_var(userid) server_var(targetid) server_var(wcs_dmg);es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 server_var(targetid);es_xmath wcs_z1 + 60;es es_xgetplayerlocation wcs_x2 wcs_y2 wcs_z2 server_var(wcs_userid);es_xmath wcs_z2 + 60;es est_effect 3 event_var(userid) 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) 0.5 2 2 255 255 20 155;es_keysetvalue WCSuserdata event_var(userid) allow_HOLLIDAY 0;es est_fade server_var(targetid) 0 1 1 255 255 20 120;es es_xtell event_var(userid) #multi #lightgreen You are not able to use #green Death Spike #lightgreen for another #green 2 seconds;es_delayed 2 es_keysetvalue WCSuserdata event_var(userid) allow_HOLLIDAY 1"
 }
}   

EDIT* i edited it so i think it will work Tongue
« Last Edit: April 30, 2009, 10:31:19 PM by Bob » Logged
WCA | Maxxi [NL]
Level 7 Master
*******
Offline Offline

Netherlands Netherlands

Posts: 1221



WWW
16maxpayne16

myServer 84.243.214.217:27015
(Warning: click connects through Steam)
« Reply #1 on: April 29, 2009, 03:24:43 PM »

yo should know what opperators do Tongue

you now have: is greaterthan smaller then  and that makes no sense if you tell what you want to do exactly we can help you alot better and not only show the code Wink
Logged

Bob
Level 5 Trained Intermediate
*****
Offline Offline

United States United States

Posts: 149



« Reply #2 on: April 29, 2009, 03:54:05 PM »

ok...  I want like if 3 > or < 2 then do bla bla bla or if 2 > or < 3 then do bla bla bla then i have another thing that 3 = 3 do and 2 = 2 do but as server_var(tteam) and server_var(yteam)
yteam = yourteam
tteam = targetteam
Logged
Ðioguinhu :D
Level 6 Experienced
******
Offline Offline

Brazil Brazil

Posts: 215



WWW
doug_tiozao

myServer 200.219.246.21:27040 ZM +WCS;200.219.246.54:27047 SURF + WCS
(Warning: click connects through Steam)
« Reply #3 on: April 29, 2009, 06:46:49 PM »

if you make "><" Greater than and Less than i think you cant use both of them so make two chances, post the skill here!
Logged

Learning Eventscripts and WCS lover *-*
I love WCS Grin
Bob
Level 5 Trained Intermediate
*****
Offline Offline

United States United States

Posts: 149



« Reply #4 on: April 29, 2009, 07:07:05 PM »

nononon... its not a chance kind of thing its a thing where you do est_getplayerteam tteam server_var(target);est_getplayerteam yteam server_var(wcs_userid), then the (server_var(tteam) >< server_var(yteam)) do bla bla bla

and its a weapon_fire thing
Logged
WCA | Maxxi [NL]
Level 7 Master
*******
Offline Offline

Netherlands Netherlands

Posts: 1221



WWW
16maxpayne16

myServer 84.243.214.217:27015
(Warning: click connects through Steam)
« Reply #5 on: April 29, 2009, 07:53:12 PM »

use =
Logged

Ðioguinhu :D
Level 6 Experienced
******
Offline Offline

Brazil Brazil

Posts: 215



WWW
doug_tiozao

myServer 200.219.246.21:27040 ZM +WCS;200.219.246.54:27047 SURF + WCS
(Warning: click connects through Steam)
« Reply #6 on: April 29, 2009, 09:16:17 PM »

mitchel is correct use equal to (=)
Logged

Learning Eventscripts and WCS lover *-*
I love WCS Grin
WCA | Maxxi [NL]
Level 7 Master
*******
Offline Offline

Netherlands Netherlands

Posts: 1221



WWW
16maxpayne16

myServer 84.243.214.217:27015
(Warning: click connects through Steam)
« Reply #7 on: April 29, 2009, 09:56:48 PM »

mitchel is correct use equal to (=)
es sucks in most coding its == Tongue

last week i was fixing something but it didnt wanted to work but i was in == style instead of = Tongue
Logged

Ðioguinhu :D
Level 6 Experienced
******
Offline Offline

Brazil Brazil

Posts: 215



WWW
doug_tiozao

myServer 200.219.246.21:27040 ZM +WCS;200.219.246.54:27047 SURF + WCS
(Warning: click connects through Steam)
« Reply #8 on: April 29, 2009, 11:29:21 PM »

lol
es is piecing me off!
Logged

Learning Eventscripts and WCS lover *-*
I love WCS Grin
Bob
Level 5 Trained Intermediate
*****
Offline Offline

United States United States

Posts: 149



« Reply #9 on: April 30, 2009, 03:31:59 AM »

HOLLIDAY can you look at number 3 i just posted i really need your help Tongue
Logged
WCA | Maxxi [NL]
Level 7 Master
*******
Offline Offline

Netherlands Netherlands

Posts: 1221



WWW
16maxpayne16

myServer 84.243.214.217:27015
(Warning: click connects through Steam)
« Reply #10 on: April 30, 2009, 09:05:49 AM »

when you get a team also use an event_var(userid) of something similar
instead of es es_xif just use if Wink
Logged

HOLLIDAY
<Race Maker>
Moderator
Level 7 Master
*****
Offline Offline

Posts: 2081



WWW
Wc3_HOLLIDAY_Wc3
wc3hollidaywc3

myServer 8.2.0.222:27015
(Warning: click connects through Steam)
« Reply #11 on: April 30, 2009, 09:52:30 AM »

use  es_getplayerteam <var> <userid>
not est_getplayerteam <var>

you use yteam
then say tteam


i would suggest using est_near for this, just make a radius of like 20000 or something,

if your going to use event player_footstep  this will work
and instead of using that blue effect, use a terrorist and counter terrorist model as the image that can be seen through walls

only thing is that it cant be seen through a few walls, so you wont see them at the other end of the map if the map is de_dust

but this works
better than a wireframe, lol

Code:
    if (event_var(es_userteam) = 2) then es est_Near targetid #c 20000 event_var(userid) "es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 server_var(targetid);es_xmath wcs_z1 + 30;es est_effect 11 event_var(userid) 0 VGUI\gfx\VGUI\gign.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 1 .3 255"
    if (event_var(es_userteam) = 3) then es est_Near targetid #t 20000 event_var(userid) "es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 server_var(targetid);es_xmath wcs_z1 + 30;es est_effect 11 event_var(userid) 0 VGUI\gfx\VGUI\arctic.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 1 .3 255"
   

would be better to use repeat than player_footstep
you have to stay moving for this to work
« Last Edit: April 30, 2009, 10:29:46 AM by HOLLIDAY » Logged


Bob
Level 5 Trained Intermediate
*****
Offline Offline

United States United States

Posts: 149



« Reply #12 on: April 30, 2009, 01:41:33 PM »

oh wow thanks holliday Tongue ill test it today

OMG IT WORKS!!!!!!
THANKYOU HOLLIDAY! THANKS ALOT! Tongue and is it for anyone to see? or just the user?
« Last Edit: April 30, 2009, 01:48:14 PM by Bob » Logged
HOLLIDAY
<Race Maker>
Moderator
Level 7 Master
*****
Offline Offline

Posts: 2081



WWW
Wc3_HOLLIDAY_Wc3
wc3hollidaywc3

myServer 8.2.0.222:27015
(Warning: click connects through Steam)
« Reply #13 on: April 30, 2009, 06:08:53 PM »

only the player in  event player_footstep will see it,
you need to use the keyget keyset values like you did before

Logged


Bob
Level 5 Trained Intermediate
*****
Offline Offline

United States United States

Posts: 149



« Reply #14 on: April 30, 2009, 09:22:26 PM »

how would i do that Tongue

Im kinda cunfused. can u copy the code and post again please Smiley

EDIT* oh nevermind i found what i did wrong Tongue
« Last Edit: April 30, 2009, 10:28:45 PM by Bob » Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
April 30, 2009, 11:47:31 PM
i don't like that, but you can get cracked css for free, so why 5 dollars?
now please stop
April 30, 2009, 11:34:36 PM
lol berretton you cant do math 5 dollars is not the same as 20 dollars....by the way you know what kind hack does pietro want for $5..that's what you told chuck and what it do....
April 30, 2009, 10:58:12 PM
Pietro is not giving a bad reputation to WCA, although he's a bit quick to get nerved by noobs.
Ramon, yes he bought such a hack, it's called "buy new css for 20 dollars"
April 30, 2009, 10:14:25 PM
you said we didn't quit you noob? lol didn't you wrote in topic that i quit this site because berreton did than samuri did....don't lie pietro....oh yeah didn you sell model from chuck so he can pay you 5 bucks so you can buy a hack that you can't get vac ban?Huh
April 30, 2009, 06:56:56 PM
Tongue WCA sorry for the spam from me and the kid pietro
April 30, 2009, 06:40:01 PM
I would add more names to that list but I don't need anymore drama in my life let alone my thread Tongue
April 30, 2009, 06:32:07 PM
Yea im being a kid to but realy Pietro is giving WCA a bad reputation
Recent
[Today at 05:29:23 AM]

[Today at 04:42:31 AM]

[Today at 02:47:18 AM]

[Today at 02:43:52 AM]

[Today at 01:02:47 AM]

[Today at 12:56:20 AM]

[Today at 12:35:09 AM]

[Today at 12:04:29 AM]

[April 30, 2009, 11:55:07 PM]

[April 30, 2009, 11:37:23 PM]
Theme switch

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