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-03-06 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
March 06, 2009, 09:35:10 AM *
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  
Author Topic: Restrict Knife attack  (Read 43 times)
bretalemeau
Level 0 Beginner

Offline Offline

United States United States

Posts: 1



« on: March 05, 2009, 01:34:13 AM »

Is there anyway to limit the knife attack of a certain race to only the weak slash attack, and if so how? Thanks!
Logged
WCA | Maxxi [NL]
Level 7 Expert
*****
Offline Offline

Netherlands Netherlands

Posts: 981



WWW
16maxpayne16

myServer 84.243.214.217:27015
(Warning: click connects through Steam)
« Reply #1 on: March 05, 2009, 09:13:35 AM »

maybe with something like this
CBaseCombatWeapon::SecondaryAttack()

but im not sure how to restrict it then Tongue
Logged

Server = work in progress Smiley

password = wca
SynDraXx
Level 4 Intermediate
****
Offline Offline

Germany Germany

Posts: 89


- Junior Coder -


« Reply #2 on: March 05, 2009, 05:43:05 PM »

is there a list or description of the cbase commands?!
never saw a thread about that commands =/

some thing of advanced race coding, i think xD
Logged
WCA | Maxxi [NL]
Level 7 Expert
*****
Offline Offline

Netherlands Netherlands

Posts: 981



WWW
16maxpayne16

myServer 84.243.214.217:27015
(Warning: click connects through Steam)
« Reply #3 on: March 05, 2009, 07:21:07 PM »

is there a list or description of the cbase commands?!
never saw a thread about that commands =/

some thing of advanced race coding, i think xD
there is a list but i dont know how to use em you can look them up somehow in sdk
here is a list for all kinds of that stuff=p http://wiki.alliedmods.net/Virtual_Offsets_(Source_Mods)
Logged

Server = work in progress Smiley

password = wca
SynDraXx
Level 4 Intermediate
****
Offline Offline

Germany Germany

Posts: 89


- Junior Coder -


« Reply #4 on: March 05, 2009, 09:10:16 PM »

wow, thanks
that list is very nice... but there is no description but u can think of the function it has, at the some commands Cheesy

someone with the knowledge of that cmds should make a short guide or something, how to use them Tongue
Logged
WCA | Maxxi [NL]
Level 7 Expert
*****
Offline Offline

Netherlands Netherlands

Posts: 981



WWW
16maxpayne16

myServer 84.243.214.217:27015
(Warning: click connects through Steam)
« Reply #5 on: March 05, 2009, 09:56:19 PM »

wow, thanks
that list is very nice... but there is no description but u can think of the function it has, at the some commands Cheesy

someone with the knowledge of that cmds should make a short guide or something, how to use them Tongue
you can find out what they do in sdk i think not sure
Logged

Server = work in progress Smiley

password = wca
freddukes
WCS ESP Dev Team
Level 7 Expert

Offline Offline

United Kingdom

Posts: 292



« Reply #6 on: Today at 12:11:45 AM »

There's no way to hook functions without having a C++ mod, and even then it'd be tricky (and maybe impossible)... basically there's no way for a WCS race to do it... However, with EST, you're apparently able to block client side commands such as +attack2 etc... I tried to do this but it never worked with me :S Maybe you'll have better look... http://forums.mattie.info/cs/forums/viewtopic.php?p=209953#209953
Logged

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

United States United States

Posts: 1073



WWW
bonggged

myServer 208.167.227.103:27015
(Warning: click connects through Steam)
« Reply #7 on: Today at 03:19:12 AM »

Since you know that Attack 2 does 55 dmg or more you could decide what attack they used and vary results.

I have a race when it knifes if dmg is over 50 I know they attack 2 so I do one thing, and if dmg is < 50 I have it do something else. Not what you asked for but useful anyway.
Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
Today at 08:47:05 AM
all i needed to know thanks all Smiley
Today at 01:27:15 AM
diraiba is right, people are got scared of low internet in most times wrongfully. IMO 2 mbit is enough for 30 ppl
March 05, 2009, 11:07:35 PM
u can do it with 1MB up easily... dont worry about that...
March 05, 2009, 07:19:57 PM
ty
March 05, 2009, 06:37:30 PM
for 20 slots u need a minimum of 15mbit i think...
March 05, 2009, 10:45:11 AM
ure wrong darkshadow
March 05, 2009, 08:49:33 AM
thats not what i asked Tongue
Recent
[Today at 09:17:43 AM]

[Today at 08:51:48 AM]

[Today at 05:37:10 AM]

[Today at 03:27:45 AM]

[Today at 03:20:40 AM]

[Today at 03:19:12 AM]

[March 05, 2009, 11:55:51 PM]

[March 05, 2009, 11:15:05 PM]

[March 05, 2009, 10:35:44 PM]

[March 05, 2009, 05:41:59 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.041 seconds with 24 queries.