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-09-16 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
September 16, 2009, 02:18:34 PM *
Welcome, Guest. Please login or register.
Login with username, password and session length
News: Remember to check on the FAQ before start posting.
It may save you time and effort.
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: Question regarding removal of flash and smoke effect.  (Read 43 times)
Crazy
Level 2 Apprentice
**
Offline Offline

United States United States

Posts: 46



« on: September 04, 2009, 02:55:42 AM »

Hey everybody, I recently made a skill that if you use a smoke grenade or a flash bang and hit somebody, it deals an immense amount of damage.

Code
GeSHi (eventscripts):
   "skill1_setting"       "es_xsetinfo wcs_dmga 150|es_xsetinfo wcs_dmga 500|es_xsetinfo wcs_dmga 600|es_xsetinfo wcs_dmga 800|es_xsetinfo wcs_dmga 1050|es_xsetinfo wcs_dmga 1100"
   "racealias_grenades"    "es wcs_dealdamage event_var(attacker) event_Var(userid) server_var(wcs_dmga);es es_xtell event_var(attacker) #multi #lightgreen You have done server_var(wcs_dmga) to event_var(userid) with a smoke or flash nade;es es_xtell event_var(userID) #multi #lightgreen event_var(attacker) did server_var(wcs_dmga) using a smokenade or flash bang."
   "skill1_cmd"           "if (event_var(weapon) = smokegrenade) then if (event_var(dmg_health) = 1) then racealias_grenades;if (event_var(weapon) = flashbang) then if (event_var(dmg_health) = 1) then racealias_grenades"
   "skill1_sfx"         "0"


Thats the code for the skill. What I'm posting about is that, I was wondering if it would be possible to remove the flash effect, or the smoke effect of the flashbang and smokegrenade when I throw them so that they only do the damage that I do without doing the smoke and flash. It gets kind of annoying seeing all the smoke and flashes being used because the skill.

Btw the reason is does so much damage is because I run a wcs/zombie mod server. So don't say the skill is Overpowered or whatever please. =-D

Thanks for any help given in advance.
Logged
Crazy
Level 2 Apprentice
**
Offline Offline

United States United States

Posts: 46



« Reply #1 on: September 06, 2009, 12:44:11 AM »

Anybody up for at least a reply? =-\
Logged
Crazy
Level 2 Apprentice
**
Offline Offline

United States United States

Posts: 46



« Reply #2 on: September 09, 2009, 05:12:18 PM »

Bumpy
Logged
Gen.GenitalZ
Level 1 Trained Beginner
*
Offline Offline

United States United States

Posts: 20



« Reply #3 on: September 09, 2009, 09:05:02 PM »

The only thing i might be able to help you with is these two peices of code.

Makes Flash Bangs Last 20 seconds.
I Believe you can change the 20, to whatever you want.
Code:
es es_setplayerprop event_var(userid) CCSPlayer.m_flFlashDuration 20
This does not edit the duration of the flash, but instead the ALPHA of it.
Meaning you can set exactly HOW blind you get.
0 = no flash at all
Code:
es es_setplayerprop event_var(userid) CCSPlayer.m_flFlashMaxAlpha 0
You might be able to edit this one to be like
Code:
es_setplayerprop #a!d CCSPlayer.m_flFlashMaxAlpha 0
Which i THINK might make it set everyones flashalpha, except for dead people.
If not im pretty Sure this will make it so flashbangs are usefull to anyone alive.
Because its setting both teams.
Code:
es es_setplayerprop #t!d CCSPlayer.m_flFlashMaxAlpha 0;es es_setplayerprop #c!d CCSPlayer.m_flFlashMaxAlpha 0

Anyways, yeah you can mes with the coding and see if anything works for ya.
Sorry i cant help you with the smoke, i dont know on codes for it
Hope you can get it to work. repost the code u use cause im interested in seeing how it comes out.
Logged
Crazy
Level 2 Apprentice
**
Offline Offline

United States United States

Posts: 46



« Reply #4 on: September 11, 2009, 09:22:45 PM »

How exactly would I used any of those codes? I tried putting them into a skill, into the player_spawn_cmd, nothing works. =-\
Logged
Crazy
Level 2 Apprentice
**
Offline Offline

United States United States

Posts: 46



« Reply #5 on: September 12, 2009, 12:06:11 AM »

Well I got flash effect to go away using this line of coding,

Code:
es_xset wcs_flasheffect 1;es_keysetvalue WCSuserdata event_var(userid) flash_target victim;es_keysetvalue WCSuserdata event_var(userid) flash_duration 0.1;es_keysetvalue WCSuserdata event_var(userid) flash_alpha 1

But now its onto the mission of finding a way to turn off smoke for smokegrenades.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
Today at 01:43:39 PM
anyone here have desktop that from cyber power
Today at 12:44:52 PM
i'll ignore him cuz he is wrong about website...he think i hack his website because i got unban myself...well you were wrong it was someone....and yes my computer is fucked up and now have to buy new one or repair motherboard for $230
Today at 10:50:00 AM
Starting again?
Today at 08:27:33 AM
Can someone reply to my
Catagorized Changerace System to reduce lag in the support section, i really need it.
Today at 04:43:43 AM
oh and i have no idea who it is, could be you, but no way for me to know I will let hetal deal with it.
Today at 04:42:15 AM
are you trying to start shit especially after telling you your mobo or your PSU was broken?  Not to mention, I SAID was you for the WEBSITE which it is, not for the stealing of races which was pietro.
Today at 04:33:24 AM
good thing you don't think it was me.. cuz everytime something has done for you. you always call on me that i did it.... i found out why my computet not working cuz of  post...mean motherboard not working so it cost 230$ to repair motherboard or 260$ to get new computer same set up as ur old one...
Recent
[Today at 02:01:36 PM]

[Today at 01:59:38 PM]

[Today at 01:09:24 PM]

[Today at 01:08:29 PM]

[Today at 10:51:05 AM]

[Today at 08:45:05 AM]

[Today at 08:37:03 AM]

[Today at 06:46:20 AM]

[Today at 06:04:42 AM]

[Today at 05:29:22 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.138 seconds with 24 queries.