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-01-16 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
January 16, 2010, 01:32:17 PM *
Welcome, Guest. Please login or register.
Login with username, password and session length
News: WCS Tournament being opened for applications!

Post here for signups!
Google  
  Home   Forum   Help Search Login Register   *
Pages: [1] 2   Go Down
  Print  
Author Topic: i have a skill request  (Read 683 times)
HOLLIDAY
<Race Maker>
Watchdogs
Level 7 Expert
*****
Online Online

Posts: 2327


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)
« on: September 11, 2007, 01:15:54 AM »

can you make my dual skill work on all maps? lol

http://www.warcraft-source.com/board/index.php?topic=1624.0

Code:
"skill4_setting"    "es_xrand wcs_dmg 5 15|es_xrand wcs_dmg 7 18|es_xrand wcs_dmg 8 19|es_xrand wcs_dmg 10 21"
    "racealias_gg4"     "es es_xgetplayername wcs_name server_var(wcs_player);es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 server_var(wcs_userid);es es_xgetplayerlocation wcs_x2 wcs_y2 wcs_z2 server_var(wcs_player);es es_delayed 3 est_teleport server_var(wcs_userid) 0 0 900;es es_delayed 3.1 est_freeze server_var(wcs_userid) 1;es es_delayed 3 est_teleport server_var(wcs_player) 0 300 900;es es_delayed 3.1 est_freeze server_var(wcs_player) 1;racealias_setaim4"
    "racealias_setaim4" "es es_delayed 3.1 est_setaim server_var(wcs_userid) server_var(wcs_player) +15;es es_delayed 3.1 est_setaim server_var(wcs_player) server_var(wcs_userid) -15;racealias_strip4"
    "racealias_strip4"  "es est_stripplayer server_var(wcs_userid) 1;es est_stripplayer server_var(wcs_player) 1;es es_delayed 6 est_give server_var(wcs_userid) weapon_deagle;es es_delayed 6 est_give server_var(wcs_player) weapon_deagle;es es_delayed 10 est_teleport server_var(wcs_userid) server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1);es es_delayed 10 est_teleport server_var(wcs_player) server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2);racealias_unfrz4"
    "racealias_unfrz4"  "es es_delayed 10 est_freeze server_var(wcs_userid) 0;es es_delayed 10 est_freeze server_var(wcs_player) 0;es es_xtell server_var(wcs_userid) #multi #lightgreen: You have Challanged #green server_var(wcs_name) #lightgreento a Duel;es es_xgetplayername wcs_name server_var(wcs_userid);es es_xtell server_var(wcs_player) #multi #green: server_var(wcs_name) #lightgreenhas challanged you to a duel #greenFight in 3 seconds;es es_delayed 3 est_csay server_var(wcs_userid) 3;es es_delayed 4 est_csay server_var(wcs_userid) 2;es es_delayed 5 est_csay server_var(wcs_userid) 1;es es_delayed 6 est_csay server_var(wcs_userid) DRAW!;es es_delayed 3 est_csay server_var(wcs_player) 3;es es_delayed 4 est_csay server_var(wcs_player) 2;es es_delayed 5 est_csay server_var(wcs_player) 1;es es_delayed 6 est_csay server_var(wcs_player) DRAW!"
    "skill4_cmd"        "es est_playplayer server_var(wcs_userid) ambient\machines\wall_move3.wav;es_xsetinfo wcs_player 0;es es_xif (server_var(wcs_team) = 2) then est_randplayer wcs_player #c!d;es es_xif (server_var(wcs_team) = 3) then est_randplayer wcs_player #t!d;es es_xexists wcs_exists userid server_var(wcs_player);es es_xif (server_var(wcs_exists) = 1) then racealias_gg4"
    "skill4_sfx"        "es es_delayed 6 es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 server_var(wcs_userid);es_xmath wcs_z1 + 20;es est_Effect 10 #a 6 sprites/lgtning.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 200 5000 8 400 400 0 255 5 5 255 10;es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 server_var(wcs_userid);es_xmath wcs_z1 + 20;es est_Effect 10 #a 6 cs_italy/irongate01.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 200 5000 8 400 400 0 255 5 5 255 10"
    "ultimate_cooldown" "0"
Logged

Phat_Wizard
<WCS coder>
Level 7 Expert
*****
Offline Offline

Canada Canada

Posts: 229




Phat_Wizard
phatwizard
« Reply #1 on: September 11, 2007, 01:32:31 AM »

well from what i can tell I think you might have the players fly?

I will try and well find a good method that I have in mind, probably better then est_fly or what ever. Tongue


edit: I think these might work for a good method of flying Tongue

    To set fly.
    es_setplayerprop <userid> CCSPlayer.baseclass.m_MoveType 4

    Should make shooting accurate. (eg: normal shooting)
    es_setplayerprop <userid> CBasePlayer.m_fFlags 1
« Last Edit: September 11, 2007, 01:38:18 AM by Phat_Wizard » Logged

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

Posts: 2327


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 #2 on: September 11, 2007, 01:44:01 AM »

no this one dosent use est_jetpack
that one works on all maps..i only used est_jetpack because this one didnt work on small maps
only if there was a way to determin the map size es_xif map = (small) then est_jetpack
                                                                    es_xif map =   (big)  then est_freeze
Logged

Phat_Wizard
<WCS coder>
Level 7 Expert
*****
Offline Offline

Canada Canada

Posts: 229




Phat_Wizard
phatwizard
« Reply #3 on: September 11, 2007, 01:48:11 AM »

Ah well, I may have an idea that might work sorta tho. But it would require quite some work, have an if (map in smallmaps) then/if (map in largemaps) then.

You could get it to work for at least all the official maps and some of the more popular custom ones.
Logged

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

Posts: 2327


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 #4 on: September 11, 2007, 02:27:10 AM »

cant make it where only those 2 can hit each other

the way it is they teleport pretty high in the sky
i didnt finishe the sfx because it only works on some maps
but im able to create a a floor like sfx that they can stand on with est_effect 10 like serpent ward, but really big so the players below wont be able to see them i could also make walls and a cealing lol ive done it before but had no use for it

can you really have an if (map in smallmaps) then/if (map in largemaps) then?
if you can then thats the answere.
i kinda dought that thoough
Logged

=[LSS]= Soldier
Level 7 Expert
*****
Offline Offline

United States United States

Posts: 538



WWW
Soldier62994
« Reply #5 on: September 11, 2007, 02:29:20 AM »

I'm pretty sure you can set it up to specific maps...
Logged


=[LSS]= NEW Wc3 Server
Phat_Wizard
<WCS coder>
Level 7 Expert
*****
Offline Offline

Canada Canada

Posts: 229




Phat_Wizard
phatwizard
« Reply #6 on: September 11, 2007, 02:43:46 AM »

http://www.eventscripts.com/pages/If

use the operator in.

first you must create 2 variables 1 called say wcs_smallmaps and the other say wcs_largemaps, then you would set them like

es_setinfo wcs_smallmaps "cs_office cs_assault cs_italy"

put what ever maps that need fly version of skill in the wcs_smallmaps var and the ones that it works on in the wcs_largemaps var then do 2 if commands.

if (server_var(map) in server_var(wcs_smallmaps)) then ...
if (server_var(map) in server_var(wcs_largemaps)) then ...

i check in CSS console about that server_var(map) and it exists, it should contain the map name.
Logged

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

Posts: 2327


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 #7 on: September 11, 2007, 03:34:15 AM »

what happens with a new custome map not defined?
Logged

Phat_Wizard
<WCS coder>
Level 7 Expert
*****
Offline Offline

Canada Canada

Posts: 229




Phat_Wizard
phatwizard
« Reply #8 on: September 11, 2007, 03:52:10 AM »

ummm maybe you can set it so if the map is not in ether var use fly.
eg:
if (server_var(map) notin server_var(wcs_largemaps)) then ...
Logged

Stinkyfax
I <3 WCS
Level 7 Expert
*****
Offline Offline

United Kingdom

Posts: 1903



WWW
Xrushiov

myServer 84.55.62.45:27016
(Warning: click connects through Steam)
« Reply #9 on: September 12, 2007, 03:51:58 PM »

holliday if you dont' want to use spawn only coz care that smbody else kill them, u've got a bad way to go around. I told you already that it's not hard to make them only able to hit each other, unfortunately need some ideas not to die from 1st bullet. Maybe use sourcemod for it  Wink
Logged



[Oddity]TeacherCreature
Moderator
Level 7 Expert
*****
Offline Offline

United States United States

Posts: 1412



WWW
bonggged

myServer 72.5.102.44:27015
(Warning: click connects through Steam)
« Reply #10 on: September 12, 2007, 04:41:09 PM »

Can you use skybox ?
Logged

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

Posts: 2327


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 #11 on: September 13, 2007, 12:34:33 AM »

sky box?
how do you get spawn locations with an ultimate?
Logged

Stinkyfax
I <3 WCS
Level 7 Expert
*****
Offline Offline

United Kingdom

Posts: 1903



WWW
Xrushiov

myServer 84.55.62.45:27016
(Warning: click connects through Steam)
« Reply #12 on: September 13, 2007, 05:06:08 PM »

there are already spawn locations stored and variables for them are:
event round_freeze_end
{
  es_xsetinfo wcs_gamestarted "1"
  // get locations for mole
  es est_RandPlayer wcs_player #t
  es es_getplayerlocation wcs_x wcs_y wcs_z server_var(wcs_player)
  es_xmath wcs_z + 10
  es es_xformat wcs_location_t "%1|%2|%3" server_var(wcs_x) server_var(wcs_y) server_var(wcs_z)
  es est_RandPlayer wcs_player #c
  es es_getplayerlocation wcs_x wcs_y wcs_z server_var(wcs_player)
  es_xmath wcs_z + 10
  es es_xformat wcs_location_c "%1|%2|%3" server_var(wcs_x) server_var(wcs_y) server_var(wcs_z)
}
Logged



Phat_Wizard
<WCS coder>
Level 7 Expert
*****
Offline Offline

Canada Canada

Posts: 229




Phat_Wizard
phatwizard
« Reply #13 on: September 13, 2007, 05:32:35 PM »

So your saying that there is a location stored for each team for the mole skills, and they never get set again till next round?

Thats what I understand from code, but then again I want each player to have there Initial spawn location. >.< lol. But I already coded it and am going to improve mine a bit but mine gives each player there different spawn location. So that if by rare chance 2 players on same team teleport to spawn at same time they might get stuck in one another with the mole location, but mine they shouldn't.  Wink
Logged

chrishot
Level 7 Expert
*****
Offline Offline

United Kingdom

Posts: 164




chrishot
« Reply #14 on: September 13, 2007, 08:02:23 PM »

no i cus with dm it spawns you anywhere and it is the same de_dust so i guess it is possible soldier
Logged
Pages: [1] 2   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
January 14, 2010, 06:18:58 PM
here is the topic i created... please put the skills in there: http://warcraft-source.com/board/index.php/topic,9315.0.html
January 14, 2010, 06:15:26 PM
O.K. I started now the project for a new RaceCreator... I will programm it and upload it then.... would be nice if you could make a topic with all skills texno and all others (sepretated in "player_attacker" etc. )
January 14, 2010, 05:30:29 PM
yeah..
January 14, 2010, 04:11:46 PM
Oh i see... not very much skills / ultimates... and just maximum 4 lvl for the skills lol....
January 14, 2010, 04:08:57 PM
thanks, are there any bugs ?? I can't fix it because first : don't have the programm code and second : don't know if he wrote it in C#...^^
January 14, 2010, 11:37:50 AM
Here's the link... maby you can update it Termi ? "http://warcraft-source.com/board/index.php/topic,6199.0.html"

http://warcraft-source.com/board/index.php/topic,6199.0.html
January 13, 2010, 07:26:02 PM
No prob dude
Recent
[Today at 12:56:34 PM]

[Today at 12:12:58 PM]

[Today at 02:12:10 AM]

[Today at 12:02:45 AM]

[January 15, 2010, 11:58:57 PM]

[January 15, 2010, 11:25:21 PM]

[January 15, 2010, 11:04:53 PM]

[January 15, 2010, 10:44:43 PM]

by NeSo
[January 15, 2010, 07:20:35 PM]

[January 15, 2010, 06:07:34 PM]
Theme switch

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