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, 01:57:57 AM *
Welcome, Guest. Please login or register.
Login with username, password and session length
News: Hall of Fame
Must Visit it
Google  
  Home   Forum   Help Search Login Register   *
Pages: [1]   Go Down
  Print  
Author Topic: Fix for EST_DRUG  (Read 111 times)
[Oddity]TeacherCreature
Moderator
Level 7 Expert
*****
Offline Offline

United States United States

Posts: 1432



WWW
bonggged

myServer 72.5.102.44:27015
(Warning: click connects through Steam)
« on: December 16, 2009, 02:59:01 AM »

Is est_drug still not working for you guys?

I had used this in the past, with the same parameters wcs_drug <userid> <duration>


This goes on the top of your ultimates file:
Code:
es_xexists wcs_exists command wcs_drug
es es_xif (server_var(wcs_exists) = 0) then es_xregcmd wcs_drug wcs/WCSultimates/wcs_drug "wcs_drug <userid> <duration> - Blur vision"

Somewhere down below paste this block:

Code:
block wcs_drug
{
es_xsetinfo wcs_userid 0
es_xsetinfo wcs_duration 0

es_xgetargv wcs_userid 1
es_xgetargv wcs_duration 2

es es_xexists wcs_exists userid server_var(wcs_userid)
es es_xif (server_var(wcs_exists) = 1) do
{
es est_isalive wcs_alive server_var(wcs_userid)
es es_xif (server_var(wcs_alive) = 0) do
{
  es es_xsetplayerprop server_var(wcs_userid) CBasePlayer.m_iFOV 0
}
    es es_xif (server_var(wcs_alive) = 1) do
{
  es es_xif (server_var(wcs_duration) >= 1) do
  {
        es es_xsetplayerprop server_var(wcs_userid) CBasePlayer.m_iFOV 20
        es es_xdelayed 0.2 es_xsetplayerprop server_var(wcs_userid) CBasePlayer.m_iFOV 30
        es es_xdelayed 0.4 es_xsetplayerprop server_var(wcs_userid) CBasePlayer.m_iFOV 40
        es es_xdelayed 0.6 es_xsetplayerprop server_var(wcs_userid) CBasePlayer.m_iFOV 20
        es es_xdelayed 0.8 es_xsetplayerprop server_var(wcs_userid) CBasePlayer.m_iFOV 0
        es_xmath wcs_duration - 1
        es es_xdelayed 1 wcs_drug server_var(wcs_userid) server_var(wcs_duration)
      }
      es es_xif (server_var(wcs_duration) = 0) do
  {
        es es_xsetplayerprop server_var(wcs_userid) CBasePlayer.m_iFOV 0
      }
}
}
}
Logged

 
CA.Berettonawak
Le renommé méconnu...
Watchdogs
Level 7 Expert
*****
Offline Offline

France France

Posts: 2938


Big Berettonawak is watching you...


WWW
Bifkids
« Reply #1 on: December 16, 2009, 11:38:21 AM »

Stickied, thanks a lot Smiley
Logged

Quote from: N0life
Beret, keep yourself focusing on 1 project. Be sure to memorize that down since it sounds good.
Quote from: myself
i love tuna juice Cheesy
Quote from: Pietro
=CA= Pietro: back
=CA= Pietro: sorry, was downstair sharing my chocolate with my cat
=CA= Pietro: you should see his face when he ate it xD
Quote from: myself
=CA= Berettonawak: just because you don't have hope doesn't mean we're doomed
AvasT
Level 7 Expert
*****
Online Online

Brazil Brazil

Posts: 774




doug_tiozao
« Reply #2 on: December 16, 2009, 07:37:17 PM »

Very nice job Smiley
Logged

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

United States United States

Posts: 1432



WWW
bonggged

myServer 72.5.102.44:27015
(Warning: click connects through Steam)
« Reply #3 on: December 16, 2009, 11:29:41 PM »

Lol your welcome.

I kind of made it up and hope it works for you guys. I like coding these sort of problems nad races. So if you have more just ask.
Logged

DarkShadow
Level 7 Expert
*****
Offline Offline

Norway

Posts: 228


Have a nice day !


WWW
fdfcool
fdfcool

myServer 217.163.27.106:27015
(Warning: click connects through Steam)
« Reply #4 on: December 17, 2009, 03:57:05 AM »

Does this drug you like ma_drug or does it banish you?
Logged

Join my CSS Warcraft:Source Server! Cheesy



IP: 217.163.27.106:27015



My server ad
[Oddity]TeacherCreature
Moderator
Level 7 Expert
*****
Offline Offline

United States United States

Posts: 1432



WWW
bonggged

myServer 72.5.102.44:27015
(Warning: click connects through Steam)
« Reply #5 on: December 17, 2009, 04:32:30 AM »

It zooms your screen in and out to create a messed up view.

I dont know what ma_drug does so I cant answer that. By banish I think you mean est_drug and that is what wasnt working so this is not the same but has a similiar effect.
Logged

EpicDino
Level 1 Trained Beginner
*
Offline Offline

United States United States

Posts: 33



« Reply #6 on: December 24, 2009, 09:28:21 PM »

It zooms your screen in and out to create a messed up view.

I dont know what ma_drug does so I cant answer that. By banish I think you mean est_drug and that is what wasnt working so this is not the same but has a similiar effect.

Maybe a little off-topic, but ma_drug tilts your screen from side to side

Thanks for the fix TC
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
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
February 02, 2010, 12:23:17 AM
A WCS scripter?
Recent
[Today at 12:46:04 AM]

[February 04, 2010, 10:41:39 PM]

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

[February 04, 2010, 06:11:26 PM]

[February 04, 2010, 06:10:45 PM]

[February 04, 2010, 05:54:42 PM]

[February 04, 2010, 03:16:50 PM]

[February 04, 2010, 12:44:51 AM]

[February 03, 2010, 11:57:35 PM]

[February 03, 2010, 11:17:14 PM]
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.108 seconds with 23 queries.