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, 10:52:08 PM *
Welcome, Guest. Please login or register.
Login with username, password and session length
News: Join the new Facebook Warcraft-Source.com Group! It has been currently opened!
Join!
Google  
  Home   Forum   Help Search Login Register   *
Pages: [1] 2 3   Go Down
  Print  
Author Topic: Question about weapon strictions on Deathmatch server  (Read 424 times)
gimik
Level 7 Expert
*****
Offline Offline

United States United States

Posts: 207



« on: December 04, 2009, 12:57:18 AM »

My clan runs a Deathmatch server to host their wcs mod. Since its a deathmatch we cant restrict a lot of stuff. For instance

Code:
    "player_spawn_cmd" "est_RestrictAll event_var(userid);es es_xdelay 0.1 est_unrestrict event_var(userid) weapon_Knife;es es_xdelay 0.2 est_unrestrict event_var(userid) weapon_Deagle;es es_xdelay 0.3 est_unrestrict event_var(userid) weapon_HEgrenade;es es_xdelay 0.4 est_unrestrict event_var(userid) weapon_Dual"

Code:
    "player_spawn_cmd" "est_RestrictAll event_var(userid);es es_xdelay 0.1 est_unrestrict event_var(userid) weapon_Knife;es es_xdelay 0.2 event_var(userid) weapon_M3;es es_xdelay 0.3 event_var(userid) weapon_XM1014;es es_xdelay 0.4 event_var(userid) weapon_HEgrenade"

These codes should restrict all weapons, and unrestrict those weapons i told it too.

However, due to the deatchmatchness we can't restrict anything, other than weapons for knife class. Even then its not restricting the guns, just making them drop them.

Any ideas?
Logged




AvasT
Level 7 Expert
*****
Offline Offline

Brazil Brazil

Posts: 775




doug_tiozao
« Reply #1 on: December 04, 2009, 01:24:48 AM »

WTF? You want to restrict weapons in a deathmatch server?
Logged

Lol?
Yiyas
Level 7 Expert
*****
Offline Offline

United Kingdom

Posts: 261


The name's Bugger. De-Bugger.



no1yiyas
no1yiyas
« Reply #2 on: December 04, 2009, 02:43:08 AM »

Increase the first unrestrict delay to 0.5s and then increase the delays by 0.1s from then on. That's if you've set up the est correctly.

Also. Use es_delayed <time> <what to delay> not es_delay Tongue
Logged

gimik
Level 7 Expert
*****
Offline Offline

United States United States

Posts: 207



« Reply #3 on: December 04, 2009, 03:55:23 AM »

@Avast

Its for like shotguns or deagle only classes, we havnt been able to restrict weapons for them.
Logged




gimik
Level 7 Expert
*****
Offline Offline

United States United States

Posts: 207



« Reply #4 on: December 04, 2009, 03:58:39 AM »

Also...we have a feature where you type 'Guns' and the guns menu pops up, so it will make them drop the weapons out the spawn, but they can get a gun from this menu whenever during the game.

Is there a way to disable the 'Guns' menu for certain classes?
Logged




Sasuke[Icetouch]
Level 7 Expert
*****
Offline Offline

Germany Germany

Posts: 181


FreeTimeCoder


« Reply #5 on: December 04, 2009, 01:52:21 PM »

You'd have to modify your guns script.
Just a few lines of code behind the text-check (if the player said guns) like getting the Race of the player, check up a list of races who you want to be unable to get the popup, if the race is in it, just exit, if not, do all the stoff which comes behind the check.
Logged

################################
Join our new Server with the newest Mod on it!

################################
AvasT
Level 7 Expert
*****
Offline Offline

Brazil Brazil

Posts: 775




doug_tiozao
« Reply #6 on: December 04, 2009, 06:55:37 PM »

Let me try to understand. You want to restrict shotguns and deagles?
I didn't get what you want for real.
Logged

Lol?
Sasuke[Icetouch]
Level 7 Expert
*****
Offline Offline

Germany Germany

Posts: 181


FreeTimeCoder


« Reply #7 on: December 04, 2009, 07:00:27 PM »

He wants to restrict all weapons for races who have an wcs restriction.
Like a knife race can only have knives, and a pumpgun race pumpguns only.
He's trying to say that his deathmatch, where you can choose weapons from a menu, interferes with his restrictions.
Logged

################################
Join our new Server with the newest Mod on it!

################################
AvasT
Level 7 Expert
*****
Offline Offline

Brazil Brazil

Posts: 775




doug_tiozao
« Reply #8 on: December 04, 2009, 08:07:37 PM »

Ooh, Cheesy, put your racepack here!
Logged

Lol?
gimik
Level 7 Expert
*****
Offline Offline

United States United States

Posts: 207



« Reply #9 on: December 04, 2009, 08:29:50 PM »

I don't own the server so i dont have access to a lot of files...yet.. I'm just helping them code and make races. The guy that usually does it had his computer blow up on him and lost all of his work.

Ill see what i can do, until then can you explain what i have to do, so i can let the server owner know?
Logged




AvasT
Level 7 Expert
*****
Offline Offline

Brazil Brazil

Posts: 775




doug_tiozao
« Reply #10 on: December 04, 2009, 10:50:23 PM »

Yep
Logged

Lol?
gimik
Level 7 Expert
*****
Offline Offline

United States United States

Posts: 207



« Reply #11 on: December 05, 2009, 08:54:33 PM »

What do you mean "Yep"

Can you explain what i have to do?
Logged




AvasT
Level 7 Expert
*****
Offline Offline

Brazil Brazil

Posts: 775




doug_tiozao
« Reply #12 on: December 05, 2009, 10:37:34 PM »

Talk to the server owner and ask for him the races of the server, then post then here!
Logged

Lol?
gimik
Level 7 Expert
*****
Offline Offline

United States United States

Posts: 207



« Reply #13 on: December 06, 2009, 08:29:25 PM »

Heres the race i want to restrict everything but Deagles,HEgrenades, and of course a knife.

Code:
    "#"
      {
        "name"              "Rabbit Class"
        "author"            "Joker | Rabbit"
        "required_level"    "300"
        "maximum_level"     "0"
        "allow_only"        "0"
        "teamlimit"         "2"
        "preloadcmd"        "0"
        "player_spawn_cmd"  "0"
        "round_start_cmd"   "0"
        "round_end_cmd"     "0"
        "numberofskills"    "5"
        "numberoflevels"    "5"
        "skillnames"        "Leap|Bunny Hop|Flee|Carrot Eater|Scream"
        "skilldescr"        "Allows you to jump Higher|Allows you to jump Further|Increases Run Speed|Regain HP|Become invulnerable for a very short time"
        "skillcfg"          "player_spawn|player_spawn|player_spawn|player_spawn|player_ultimate"


        "skill1_setting"    "es_xsetinfo wcs_gravity 0.6|es_xsetinfo wcs_gravity 0.52|es_xsetinfo wcs_gravity 0.44|es_xsetinfo wcs_gravity 0.30|es_xsetinfo wcs_gravity 0.22"
        "skill1_cmd"        "es es_xdelayed 2 est_SetGravity event_var(userid) server_var(wcs_gravity);es es_xkeysetvalue WCSuserdata event_var(userid) gravity server_var(wcs_gravity);wcs_getlanguage wcs_lng wcs_lng_r_levitation;es es_xtell event_var(userid) #multi server_var(wcs_lng)"
        "skill1_sfx"        "es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 server_var(wcs_userid);es_xmath wcs_z1 + 40;es_toptext event_var(userid) 1 #blue Effects by angel and Race By angel;es est_effect 10 #a 0 sprites/640_logo.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 250 190 3 150 100 0 155 115 100 200 1"

        "skill2_setting"    "es_xsetinfo wcs_multiplier 1.4|es_xsetinfo wcs_multiplier 1.7|es_xsetinfo wcs_multiplier 2|es_xsetinfo wcs_multiplier 2.3|es_xsetinfo wcs_multiplier 2.6"
        "skill2_cmd"        "es es_xkeysetvalue WCSuserdata event_var(userid) longjump server_var(wcs_multiplier);wcs_getlanguage wcs_lng wcs_lng_r_longjump;es es_xtell event_var(userid) #multi server_var(wcs_lng)"
        "skill2_sfx"        "es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 server_var(wcs_userid);es_xmath wcs_z1 + 40;es est_effect 10 #a 0 sprites/lgtning.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 60 80 3 60 100 0.8 155 20 10 155 1"   

        "skill3_setting"    "es_xsetinfo wcs_speed 1.4|es_xsetinfo wcs_speed 1.5|es_xsetinfo wcs_speed 1.6|es_xsetinfo wcs_speed 1.7|es_xsetinfo wcs_speed 1.8"
        "skill3_cmd"        "es es_xkeygetvalue wcs_tmp WCSuserdata event_var(userid) speed;es es_xif (server_var(wcs_tmp) > server_var(wcs_speed)) then es_xsetinfo wcs_speed server_var(wcs_tmp);es es_xkeysetvalue WCSuserdata event_var(userid) speed server_var(wcs_speed);es est_Speed event_var(userid) server_var(wcs_speed)"
        "skill3_sfx"        "es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid);es_xmath wcs_z1 + 15;es_toptext event_var(userid) 1 #red Effects by angel and Race By angel;es est_effect 11 #a 0 sprites/physring1.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 3 5 255"

    "skill4_setting"    "es_xset wcs_hp 10;es_xset wcs_time 15;es_xset wcs_waves 10;es_xset wcs_radius 150|es_xset wcs_hp 15;es_xset wcs_time 15;es_xset wcs_waves 12;es_xset wcs_radius 180|es_xset wcs_hp 20;es_xset wcs_time 15;es_xset wcs_waves 14;es_xset wcs_radius 200|es_xset wcs_hp 25;es_xset wcs_time 15;es_xset wcs_waves 12;es_xset wcs_radius 220|es_xset wcs_hp 30;es_xset wcs_time 15;es_xset wcs_waves 12;es_xset wcs_radius 250"
        "skill4_cmd"        "es_keysetvalue WCSuserdata event_var(userid) regeneration 1;es_keysetvalue WCSuserdata event_var(userid) regen_round server_var(wcs_roundcounter);es_xrand wcs_rand 3 15;es_delayed server_var(wcs_rand) wcs_regeneration event_var(userid) server_var(wcs_hp) server_var(wcs_time) 150 -1 server_var(wcs_radius)"
        "skill4_sfx"  "0"

        "skill5_setting"    "es_xsetinfo wcs_duration 3.0|es_xsetinfo wcs_duration 3.5|es_xsetinfo wcs_duration 4.0|es_xsetinfo wcs_duration 4.5|es_xsetinfo wcs_duration 5"
        "skill5_cmd"        "es es_xtell server_var(wcs_userid) : Got immortal for server_var(wcs_duration) seconds.;es est_god server_var(wcs_userid) 1;es es_xdelayed server_var(wcs_duration) wcs_removefx god server_var(wcs_userid);es es_xdelayed server_var(wcs_duration) es_tell server_var(wcs_userid) : Mortal again !;es_xmath wcs_duration - 1;es es_xdelayed server_var(wcs_duration) es_tell server_var(wcs_userid) : becoming mortal again..."
        "skill5_sfx"        "es est_effect 4 #a 0 sprites/lgtning.vmt server_var(wcs_userid) 1 10 10 10 255 0 25 255"
        "ultimate_cooldown" "80"

    }




Logged




AvasT
Level 7 Expert
*****
Offline Offline

Brazil Brazil

Posts: 775




doug_tiozao
« Reply #14 on: December 06, 2009, 10:38:33 PM »

Put it on player_spawn_cmd

Code:
es est_restrictall event_var(userid) 1;es_delayed 1 est_unrestrict event_var(userid) weapon_deagle;es_delayed 1 est_unrestrict event_var(userid) weapon_hegrenade;es_delayed 1 est_unrestrict event_var(userid) weapon_knife

If it don't work just tell me then i'll make a detailed script for it Smiley

Smiley
Logged

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

Last 7 Shouts:
Today at 03:56:44 PM
wow there only 780 wcs member...in steam group?
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
Recent
[Today at 09:31:25 PM]

[Today at 08:05:54 PM]

[Today at 08:00:35 PM]

[Today at 05:06:11 PM]

[Today at 05:01:28 PM]

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

[February 04, 2010, 06:11:26 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.114 seconds with 24 queries.