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:06:58 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]   Go Down
  Print  
This topic has not yet been rated! You have not rated this topic. Select a rating:
Author Topic: Knife to pistol  (Read 117 times)
nubcakes
Level 1 Trained Beginner
*
Offline Offline

United States United States

Posts: 23




Nubcakes
« on: January 14, 2008, 03:19:56 PM »

If you have a knife race that restricts all weapons, is it possible to make it so that it comes back to life and can use the magician's 1 shot pistol?

thanks
Logged
[H.F.M.]Rasmus{Chef}
WCS Supporter
Level 7 Expert
*****
Offline Offline

Denmark Denmark

Posts: 889




Rasmus4J
rasmus4j

myServer 85.190.17.115:27015
(Warning: click connects through Steam)
« Reply #1 on: January 14, 2008, 03:23:45 PM »

possibly...
wouldnt it not just require that you put es est_UnRestrict event_var(userid) <The pistolname>; in skill_cmd/racealias? not sure.. but think so? it would have to be in racealias i just figured out...
because if you put it in skill_cmd, then you could as well put the command in player_spawn_cmd...
Logged

Angelღ
Level 7 Expert
*****
Offline Offline

United States United States

Posts: 334



WWW
1101101
younggunelite
« Reply #2 on: January 15, 2008, 10:46:05 PM »

no it would it be alot more then that mostly because that would unrestrict it forever not just for an after respawn.

the command would more then likely make it so you are unrestricted to that gun.
Logged

"Death is just the first step"

~AJ
nubcakes
Level 1 Trained Beginner
*
Offline Offline

United States United States

Posts: 23




Nubcakes
« Reply #3 on: January 16, 2008, 01:46:13 AM »

yeah that was my idea, I didn't want to make a knife race that could use a pistol all the time, but just when it respawns it has 1 bullet, would that just be an unrestrict command in the skill or would that conflict with the spawn_cmd?
Logged
[H.F.M.]Rasmus{Chef}
WCS Supporter
Level 7 Expert
*****
Offline Offline

Denmark Denmark

Posts: 889




Rasmus4J
rasmus4j

myServer 85.190.17.115:27015
(Warning: click connects through Steam)
« Reply #4 on: January 16, 2008, 11:22:14 AM »

if it in player_spawn_cmd is est_RestrictAll and so on... and then in skill you have a racealias that tells if player is dead then respawn and unrestrict weapon... then next time you spawn the player_spawn_cmd is activated? wouldnt that work?
Logged

Angelღ
Level 7 Expert
*****
Offline Offline

United States United States

Posts: 334



WWW
1101101
younggunelite
« Reply #5 on: January 16, 2008, 11:51:49 AM »

no because you get respawned when your about to play the first time so the skill would more then likely unrestrict.

check dead is es est_isalive (userid) ;if (server_var(wcs_isalive) = 1) then es est_restictplayer (userid);if (server_var(wcs_isalive) = 0) then es est_unrestrictplayer (userid) then es_xdelayed 3 es est_spawn (userid) 1; es_ctell (userid) you have spawned and you are allowed to pick up a weapon. 
Logged

"Death is just the first step"

~AJ
[H.F.M.]Rasmus{Chef}
WCS Supporter
Level 7 Expert
*****
Offline Offline

Denmark Denmark

Posts: 889




Rasmus4J
rasmus4j

myServer 85.190.17.115:27015
(Warning: click connects through Steam)
« Reply #6 on: January 16, 2008, 12:06:21 PM »

yeah ok... guess you are right... i dont get the code completly yet... so:P
Logged

=DR= king
Level 5 Trained Intermediate
*****
Offline Offline

Canada Canada

Posts: 113




JKING237
007king
« Reply #7 on: January 18, 2008, 12:26:13 PM »

there is a race that some one made i for get ill look it up for you later
Logged
Pages: [1]   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.044 seconds with 27 queries.