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-10-01 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
October 01, 2009, 05:13:44 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]   Go Down
  Print  
This topic has not yet been rated! You have not rated this topic. Select a rating:
Author Topic: Balancing guns  (Read 52 times)
LoganLoganLo
Level 0 Beginner

Offline Offline

United States United States

Posts: 17




loganloganlo
« on: September 28, 2009, 09:07:13 PM »

Anyone have a clue on how to make a script to balance guns and the proc so that you can use a TMP, Mac10, P90, Para, Ect. And have the same % of on those guns to say a slower BPS(Bullet per second) gun. I cant figure it out and I have heard alot about people having stuff to do this please help me out if your one of those who know how to do it please Smiley
Logged
Yiyas
Level 6 Experienced
*****
Offline Offline

United Kingdom

Posts: 135




no1yiyas
no1yiyas
« Reply #1 on: September 28, 2009, 10:46:09 PM »

Theres the same thing for shotgun, which decreases the chance to activate the attack by 30%. This is in es_wcs I believe under player_hurt. You can essentially just configure some new stuff for smgs or even weapon_TMP or weapon_knife.
Logged
LoganLoganLo
Level 0 Beginner

Offline Offline

United States United States

Posts: 17




loganloganlo
« Reply #2 on: September 29, 2009, 02:56:18 AM »

Somthing like tihs would that work? If I am doing it wrong please tell me so.

  // TMP penalty, give that value in % less chance to activate player_hurt skills
  "wcs_cfg_tmpchance" "30"
Logged
Yiyas
Level 6 Experienced
*****
Offline Offline

United Kingdom

Posts: 135




no1yiyas
no1yiyas
« Reply #3 on: September 29, 2009, 03:16:08 AM »

Yeah then in es_wcs under player_hurt after the shotgun thing...
Code:
  ifx true(wcs_cfg_tmpchance) do
  {
    if (event_var(weapon) = weapon_tmp) do
    {
      es_xrand wcs_dice 1 100
      if (server_var(wcs_dice) > server_var(wcs_cfg_tmpchance)) then es_xset wcs_hurtcheck 0
    }
  }

And similar for other weapons too.
Logged
LoganLoganLo
Level 0 Beginner

Offline Offline

United States United States

Posts: 17




loganloganlo
« Reply #4 on: September 29, 2009, 03:46:21 AM »

Where do I put that at I cant find the shot gun load.
Logged
Yiyas
Level 6 Experienced
*****
Offline Offline

United Kingdom

Posts: 135




no1yiyas
no1yiyas
« Reply #5 on: September 29, 2009, 08:05:33 AM »

I thought the config was in wcs/es_wcs.txt ... do a find for "if (server_var(wcs_cfg_shotgunchance) != "0")" or simply wcs_wpn_shotguns until you find that line and then go from there.
Logged
LoganLoganLo
Level 0 Beginner

Offline Offline

United States United States

Posts: 17




loganloganlo
« Reply #6 on: September 29, 2009, 08:52:52 PM »

I find this line does that other one go right after it?

 then es_xif (event_var(userid) != event_var(attacker)) then es_xset wcs_hurtcheck 1
  if (server_var(wcs_cfg_shotgunchance) != "0") do
  {
    if (event_var(weapon) in server_var(wcs_wpn_shotguns)) do
    {
Right ^ here would this line go after it?

  ifx true(wcs_cfg_tmpchance) do
  {
    if (event_var(weapon) = weapon_tmp) do
    {
      es_xrand wcs_dice 1 100
      if (server_var(wcs_dice) > server_var(wcs_cfg_tmpchance)) then es_xset wcs_hurtcheck 0
    }
  }
 
Logged
Yiyas
Level 6 Experienced
*****
Offline Offline

United Kingdom

Posts: 135




no1yiyas
no1yiyas
« Reply #7 on: September 29, 2009, 09:03:08 PM »

No because that'd mean evenscripts would do "does he have a shotgun? ok yes he does... does he have a tmp?" Tongue

Put it in after the "
    if (server_var(wcs_dice) > server_var(wcs_cfg_shotgunchance)) then es_xset wcs_hurtcheck 0
    }
  }
"

And one after the another for each gun you are wanting to use.
Logged
LoganLoganLo
Level 0 Beginner

Offline Offline

United States United States

Posts: 17




loganloganlo
« Reply #8 on: September 30, 2009, 02:15:38 AM »

I am a idiot. I admit I just learned how and I am still learning how to use the WCS mod. Sad *Sadly* I still dont get it. Angry. Do you mind talking me throu it on X fire or Steam please? Steam: Loganloganlo
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
Today at 11:43:28 AM
xD
Today at 02:51:27 AM
lol tenxo did you get that from tmu site...
September 30, 2009, 11:52:11 PM
lol @ the link
September 30, 2009, 09:58:44 PM
cool eh?
September 30, 2009, 09:21:33 PM
September 30, 2009, 07:55:53 PM
None
September 30, 2009, 05:15:29 PM
I been working since I got out of high school, and I genuinely prefer to work. xD
Recent
[Today at 05:12:46 PM]

[Today at 04:49:47 PM]

[Today at 03:45:33 PM]

[Today at 01:32:32 PM]

[Today at 12:26:37 PM]

[Today at 12:26:02 PM]

[Today at 12:23:15 PM]

[Today at 12:21:57 PM]

[Today at 06:56:38 AM]

[Today at 01:34:12 AM]
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.069 seconds with 25 queries.