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 2008-12-05 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
December 05, 2008, 01:01:55 PM *
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] 2 3   Go Down
  Print  
This topic has not yet been rated! You have not rated this topic. Select a rating:
Author Topic: recode of multiple respawn skill  (Read 426 times)
[H.F.M.]Rasmus{Chef}
WCS Supporter
Level 7 Expert
*****
Online Online

Denmark Denmark

Posts: 889




Rasmus4J
rasmus4j

myServer 85.190.17.115:27015
(Warning: click connects through Steam)
« on: April 12, 2008, 09:33:05 PM »

Code:
"skill2_setting"    "es_xrand wcs_rand 1 30|es_xrand wcs_rand 1 25|es_xrand wcs_rand 1 20|es_xrand wcs_rand 1 15|es_xrand wcs_rand 1 10|es_xrand wcs_rand 1 05|es_xrand wcs_rand 1 00"
    "skill2_cmd"        "event round_start es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid);es es_xif (server_var(wcs_rand) <= 10) then es es_delayed 2 est_spawn event_var(userid);es es_xif (server_var(wcs_rand) <= 10) then es es_delayed 2 est_god event_var(userid) 1;es es_xif (server_var(wcs_rand) <= 10) then es es_delayed 2.2 est_teleport event_var(userid) server_var(wcs_x1) sevrer_var(wcs_y1) server_var(wcs_z1);es es_delayed 2.3 est_god event_var(userid) 0"
    "skill2_sfx"        "es es_xif (server_var(wcs_rand) <= 10) then es_xdelayed 2 est_Fade event_var(userid) 1 6 3 155 0 0 240;es es_xgetplayerlocation wcs_x2 wcs_y2 wcs_z2;es_xmath wcs_z2 + 10;est_effect 11 #a 0 Effects/laserplane.vmt server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2) 2.5 3 200"
   

all it does in difference from the original, is to respawn you at where you spawn at roundstart, instead of where you died. pretty simple.

feel free to use it

(this is for kryptonite, just to see if anythings wrong with it.)
Code:
"skill2_setting"    "es_xrand wcs_rand 1 30;es_setinfo timesyouspawn 1|es_xrand wcs_rand 1 25;es_setinfo timesyouspawn 1|es_xrand wcs_rand 1 20;es_setinfo timesyouspawn 2|es_xrand wcs_rand 1 15;es_setinfo timesyouspawn 2|es_xrand wcs_rand 1 10;es_setinfo timesyouspawn 3|es_xrand wcs_rand 1 05;es_setinfo timesyouspawn 3|es_xrand wcs_rand 1 00;es_setinfo timesyouspawn 4"
"skill2_cmd"        "event round_start es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid);es_setinfo thenumber 1;es_keygetvalue thenumber WCSuserdata event_var(userid) timestospawn;if (server_var(thenumber)<= server_var(timesyouspawn)) then racealias_respawnnow"
"skill2_sfx"        "es es_xif (server_var(wcs_rand) <= 10) then es_xdelayed 2 est_Fade event_var(userid) 1 6 3 155 0 0 240;es es_xgetplayerlocation wcs_x2 wcs_y2 wcs_z2;es_xmath wcs_z2 + 10;est_effect 11 #a 0 Effects/laserplane.vmt server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2) 2.5 3 200"
"racealias_respawnnow" "es es_xif (server_var(wcs_rand) <= 10) then es es_delayed 2 est_spawn event_var(userid);es es_xif (server_var(wcs_rand) <= 10) then es es_delayed 2.2 est_teleport event_var(userid) server_var(wcs_x1) sevrer_var(wcs_y1) server_var(wcs_z1);keymath WCSuserdata event_var(userid) timestospawn + 1"

"skill2_setting"    "es_xrand wcs_rand 1 30|es_xrand wcs_rand 1 25|es_xrand wcs_rand 1 20|es_xrand wcs_rand 1 15|es_xrand wcs_rand 1 10|es_xrand wcs_rand 1 05|es_xrand wcs_rand 1 00"
"skill2_cmd"        "event round_start es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid);es es_xif (server_var(wcs_rand) <= 10) then es es_delayed 2 est_spawn event_var(userid);es es_xif (server_var(wcs_rand) <= 10) then es es_delayed 2 est_god event_var(userid) 1;es es_xif (server_var(wcs_rand) <= 10) then es es_delayed 2.2 est_teleport event_var(userid) server_var(wcs_x1) sevrer_var(wcs_y1) server_var(wcs_z1);es es_delayed 2.3 est_god event_var(userid) 0"
"skill2_sfx"        "es es_xif (server_var(wcs_rand) <= 10) then es_xdelayed 2 est_Fade event_var(userid) 1 6 3 155 0 0 240;es es_xgetplayerlocation wcs_x2 wcs_y2 wcs_z2;es_xmath wcs_z2 + 10;est_effect 11 #a 0 Effects/laserplane.vmt server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2) 2.5 3 200"
   
the 1st is the modified from what i made, and the 2nd is what i made
« Last Edit: April 19, 2008, 11:17:53 PM by [X].plo|Rasmus[Coding-Team] » Logged

fearless
Level 0 Beginner

Offline Offline

United States United States

Posts: 3



« Reply #1 on: April 13, 2008, 05:23:40 AM »

Code:
"skill2_setting"    "es_xrand wcs_rand 1 30|es_xrand wcs_rand 1 25|es_xrand wcs_rand 1 20|es_xrand wcs_rand 1 15|es_xrand wcs_rand 1 10|es_xrand wcs_rand 1 05|es_xrand wcs_rand 1 00"
    "skill2_cmd"        "event round_start es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid);es es_xif (server_var(wcs_rand) <= 10) then es es_delayed 2 est_spawn event_var(userid);es es_xif (server_var(wcs_rand) <= 10) then es es_delayed 2 est_god event_var(userid) 1;es es_xif (server_var(wcs_rand) <= 10) then es es_delayed 2.2 est_teleport event_var(userid) server_var(wcs_x1) sevrer_var(wcs_y1) server_var(wcs_z1);es es_delayed 2.3 est_god event_var(userid) 0"
    "skill2_sfx"        "es es_xif (server_var(wcs_rand) <= 10) then es_xdelayed 2 est_Fade event_var(userid) 1 6 3 155 0 0 240;es es_xgetplayerlocation wcs_x2 wcs_y2 wcs_z2;es_xmath wcs_z2 + 10;est_effect 11 #a 0 Effects/laserplane.vmt server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2) 2.5 3 200"
   

all it does in difference from the original, is to respawn you at where you spawn at roundstart, instead of where you died. pretty simple.

feel free to use it

Hey there, me and my friend were trying to use your respawn skill on one of our races and it works great! but unfortunatly it seems that the person respawns every time they die, is there any way to put a limit on it so it only respawns them once, or twice?
Logged
[H.F.M.]Rasmus{Chef}
WCS Supporter
Level 7 Expert
*****
Online Online

Denmark Denmark

Posts: 889




Rasmus4J
rasmus4j

myServer 85.190.17.115:27015
(Warning: click connects through Steam)
« Reply #2 on: April 13, 2008, 08:21:02 PM »

well, this is ment to respawn you unlimited (know its overpowered), but im sure that it's possible to check for how many times you have respawned. i will work on it if you would like that?
Logged

Frodo
WCS ESP Dev Team
Level 7 Expert

Offline Offline

Posts: 846


Actinosphaerium eichhorni


WWW
ckenduro
aulix
« Reply #3 on: April 13, 2008, 08:29:32 PM »

wtf is this

Quote
event round_start e
Logged


Actually I found it as best Bux ever. Everything's automated!
[H.F.M.]Rasmus{Chef}
WCS Supporter
Level 7 Expert
*****
Online Online

Denmark Denmark

Posts: 889




Rasmus4J
rasmus4j

myServer 85.190.17.115:27015
(Warning: click connects through Steam)
« Reply #4 on: April 13, 2008, 08:41:25 PM »

event round_start e?
Logged

fearless
Level 0 Beginner

Offline Offline

United States United States

Posts: 3



« Reply #5 on: April 13, 2008, 09:44:41 PM »

well, this is ment to respawn you unlimited (know its overpowered), but im sure that it's possible to check for how many times you have respawned. i will work on it if you would like that?
That would be absolutely amazeing if you had the time and wouldnt mind =) I just started this codeing thing, and I wasnt able to figure out how to do it .
Logged
mobsi
Level 7 Expert
*****
Offline Offline

Germany Germany

Posts: 207



« Reply #6 on: April 14, 2008, 05:10:14 PM »

well i had a few time and so i thought i code sth for you
Code
GeSHi (eventscripts):
"round_start_cmd" "es_keysetvalue WCSuserdata event_var(userid) timestospawn 1"
"skill2_setting"    "es_setinfo timesyouspawn 1|...|...|..." //and the number you got after the var is how often you spawn ;) its not only called so
"skill2_cmd" "es_setinfo thenumber 1;es_keygetvalue thenumber WCSuserdata event_var(userid) timestospawn;if (server_var(thenumber)<= server_var(timesyouspawn)) then racealias_respawnnow"    
"racealias_respawnnow" "--->respawncode<--- ; keymath WCSuserdata event_var(userid) timestospawn + 1"
"skill2_sfx"        "--->respawnsfx<---"
 

this way it should work

greez mobsi

btw thx to kryptonite for explaining me how the keys work ^^
Logged

better the devil you know than the devil you don't
[H.F.M.]Rasmus{Chef}
WCS Supporter
Level 7 Expert
*****
Online Online

Denmark Denmark

Posts: 889




Rasmus4J
rasmus4j

myServer 85.190.17.115:27015
(Warning: click connects through Steam)
« Reply #7 on: April 14, 2008, 06:07:37 PM »

Quote
well i had a few time and so i thought i code sth for you Wink
Code

GeSHi (eventscripts):
"round_start_cmd" "es_keysetvalue WCSuserdata event_var(userid) timestospawn 1"
"skill2_setting"    "es_setinfo timesyouspawn 1|...|...|..." //and the number you got after the var is how often you spawn its not only called so
"skill2_cmd" "es_setinfo thenumber 1;es_keygetvalue thenumber WCSuserdata event_var(userid) timestospawn;if (server_var(thenumber)<= server_var(timesyouspawn)) then racealias_respawnnow"   
"racealias_respawnnow"   "--->respawncode<--- ; keymath WCSuserdata event_var(userid) timestospawn + 1"
"skill2_sfx"        "--->respawnsfx<---"
 


this way it should work

greez mobsi

btw thx to kryptonite for explaining me how the keys work ^^
i dont understand shit of this:s
Logged

mobsi
Level 7 Expert
*****
Offline Offline

Germany Germany

Posts: 207



« Reply #8 on: April 14, 2008, 07:07:12 PM »

well ill explain ya or better i ll try it

es_keysetvalue creates a value in the keygroup WCSuserdata with the player that uses the skill as key.
the valuename is timetospawn and the value is 1
you can create keys and keygroups and as much values you want per key
keyvalues are global values
so you set "timetospawn" every roundstart ot "1"
in the setting you set the "timesyouspawn"  -> self explaining i think )
with es_keygetvalue you put the value of "thimestospawn" in the variable "thenumber"
and keymath "keygroup" "key" "valuename" "operator" "value"
sets the value of "timestospawn" to "timestospawn + 1"
Logged

better the devil you know than the devil you don't
fearless
Level 0 Beginner

Offline Offline

United States United States

Posts: 3



« Reply #9 on: April 14, 2008, 11:00:02 PM »

well i had a few time and so i thought i code sth for you
Code
GeSHi (eventscripts):
"round_start_cmd" "es_keysetvalue WCSuserdata event_var(userid) timestospawn 1"
"skill2_setting"    "es_setinfo timesyouspawn 1|...|...|..." //and the number you got after the var is how often you spawn ;) its not only called so
"skill2_cmd" "es_setinfo thenumber 1;es_keygetvalue thenumber WCSuserdata event_var(userid) timestospawn;if (server_var(thenumber)<= server_var(timesyouspawn)) then racealias_respawnnow"    
"racealias_respawnnow" "--->respawncode<--- ; keymath WCSuserdata event_var(userid) timestospawn + 1"
"skill2_sfx"        "--->respawnsfx<---"
 

this way it should work

greez mobsi

btw thx to kryptonite for explaining me how the keys work ^^

Thanks so much =) ill add that now and see what happens! thanks a bunch
Logged
mobsi
Level 7 Expert
*****
Offline Offline

Germany Germany

Posts: 207



« Reply #10 on: April 16, 2008, 04:42:41 PM »

plz tell me if it worked
Logged

better the devil you know than the devil you don't
HOLLIDAY
<Race Maker>
Watchdogs
Level 7 Expert
*****
Offline Offline

Posts: 1906



WWW
Wc3_HOLLIDAY_Wc3
wc3hollidaywc3

myServer 8.2.0.222:27015
(Warning: click connects through Steam)
« Reply #11 on: April 16, 2008, 07:32:35 PM »

unkown command evet
Syntax error "es_xgetplayerlocation"
you just want it to respawn you?


"es est_spawn event_var(userid) 1"


what you have will respawn you and teleport you to where you died,giving you godfx for 2.somthing seconds...well ...no it wont because your event round_start cancels your playerlocation....so it might just respawn you with 4-5 errors in consol.......

"es est_spawn event_var(userid) 1"
Logged


  connect 8.2.0.222:27015
[H.F.M.]Rasmus{Chef}
WCS Supporter
Level 7 Expert
*****
Online Online

Denmark Denmark

Posts: 889




Rasmus4J
rasmus4j

myServer 85.190.17.115:27015
(Warning: click connects through Steam)
« Reply #12 on: April 16, 2008, 08:07:59 PM »

i ahve changed it so that it doesnt give you god, but respawns you at spawn...
Logged

HOLLIDAY
<Race Maker>
Watchdogs
Level 7 Expert
*****
Offline Offline

Posts: 1906



WWW
Wc3_HOLLIDAY_Wc3
wc3hollidaywc3

myServer 8.2.0.222:27015
(Warning: click connects through Steam)
« Reply #13 on: April 17, 2008, 03:32:24 AM »

if thats all you want it to do then

es est_spawn event_var(userid) 1

why event round start?
event is not a command, the event is set in the skill_cfg
Logged


  connect 8.2.0.222:27015
[H.F.M.]Rasmus{Chef}
WCS Supporter
Level 7 Expert
*****
Online Online

Denmark Denmark

Posts: 889




Rasmus4J
rasmus4j

myServer 85.190.17.115:27015
(Warning: click connects through Steam)
« Reply #14 on: April 17, 2008, 03:42:53 PM »

you havent read it all i guess...
it says event round_start es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1
that does that at the event round_start it collects the location of the player, and saves it, and then when you die it recalls those coordinates and spawn you there. its tested and WORKS 100%
Logged

Pages: [1] 2 3   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
December 04, 2008, 09:57:56 PM
gg
December 04, 2008, 09:46:16 PM
hey guys, how are you?
gonna sleep, cya tomorrow
December 03, 2008, 12:45:48 PM
@ bombkill : all mods should be compatible with WCS... but we can't be sure
@retrokboy : css server? provider? other mods?
December 03, 2008, 01:49:25 AM
I NEED SERVER HELP MY FORUM IS IN BUG REPORT PLEASE REPLY I NEED HALP
December 02, 2008, 10:05:01 PM
does anyone know where all the wcs compatible mods are listed or a website i can find them
December 02, 2008, 08:24:47 PM
/agree
Recent
[Today at 12:14:07 PM]

[Today at 10:58:16 AM]

[Today at 09:15:22 AM]

[Today at 04:51:59 AM]

[Today at 04:11:23 AM]

[Today at 04:04:32 AM]

[Today at 04:02:29 AM]

[Today at 03:33:23 AM]

[Today at 01:07:24 AM]

[December 04, 2008, 10:55:49 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.102 seconds with 27 queries.