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-05-18 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
May 18, 2009, 05:54:35 PM *
Welcome, Guest. Please login or register.
Login with username, password and session length
News: Please obey the rules, to achieve a pleasent order in our community.
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: can anyone help  (Read 43 times)
๖ۜAñgêløک
Level 4 Intermediate
****
Offline Offline

United Kingdom

Posts: 89




skeav94
« on: May 17, 2009, 07:01:27 AM »

hay guys

so i have these codes for Exploding bullets

how would i change them so i can use them as a Skill

Code:
block config
{
 
// Set this to the guns which create rockets.
 
// Place a semi-colon after each weapon.
  es_xsetinfo exp_guns "p228; awp; g3sg1; scout; m249; m4a1; ump45; famas; galil; deagle; elite; m3; xm1014; fiveseven; sg550; sg552; aug;"

 
// Set this to the radius of the explosion.
  es_xsetinfo exp_radius 96

  // Set this to the magnitude of the explosion.
  es_xsetinfo exp_magnitude 200
}
block load
{
  es_xsetinfo exp_version 2.0
  es_xmakepublic exp_version

  es_xsetinfo exp_t 0
  es_xsetinfo exp_o 0
  es_xdoblock corelib/noisy_on
  es_xdoblock expl_shells/config

  es_xgetgame exp_t
  es es_xif (Counter-Strike in server_var(exp_t)) do

  es_keygroupcreate expl_players
  es_xsetinfo player_setup 0

  es_regclientcmd wax_on expl_shells/fire "Fires"
  es_regclientcmd wax_off expl_shells/nofire "Stops"
  {
    es_xmsg #multi "#green LOOOOL"
  }
  else do
  {
    es es_xif (SourceForts in server_var(exp_t)) do
    {
      say "LOOOOL"
    }
    else do
    {
      es_xmsg "LOOOOL"
    }
  }
}
block unload
{
  es_xdoblock corelib/noisy_off
  es_unregclientcmd wax_on-n
  es_unregclientcmd wax_off-n

  es_keygroupdelete expl_players
  es_xgetgame exp_t
  es es_xif (Counter-Strike in server_var(exp_t)) do
  {
    es_xmsg #multi "#greenLOOOOL"
  }
  else do
  {
    es es_xif (SourceForts in server_var(exp_t)) do
    {
      say "LOOOOL"
    }
    else do
    {
      es_xmsg "LOOOOL"
    }
  }
}
event round_start
{
  es_xgetuserid exp_t
  es es_xfire server_var(exp_t) env_explosion Kill
}

event player_connect
{
es_keycreate expl_players event_var(userid)
es_keysetvalue expl_players event_var(userid) expl "0"
}

event player_disconnect
{
es_keydelete expl_players event_var(userid)
}


block fire
{
es_set plyr "0"
es_getcmduserid plyr
es_keysetvalue expl_players server_var(plyr) expl "1"
}

block nofire
{
es_set nplyr "0"
es_getcmduserid nplyr
es_keysetvalue expl_players server_var(nplyr) expl "0"
}

event bullet_impact
{
  es_setinfo fplyr event_var(userid)
  es_setinfo fplyr_expl 0
  es_keygetvalue fplyr_expl expl_players server_var(fplyr) expl
  if (server_var(fplyr_expl) == 1) do
  {

  es es_xsetinfo exp_gun event_var(es_userweapon)
  es_xstring exp_gun replace weapon_
  es es_xformat exp_gun "%1;" server_var(exp_gun)
  es es_xif (server_var(exp_gun) in server_var(exp_guns)) do
  {
    es es_xtrick entity env_explosion
    es es_xformat exp_t "origin %1 %2 %3" event_var(x) event_var(y) event_var(z)
    es es_xfire event_var(userid) env_explosion addoutput server_var(exp_t)
    es es_xformat exp_t "imagnitude %1" server_var(exp_magnitude)
    es es_xfire event_var(userid) env_explosion addoutput server_var(exp_t)
    es es_xformat exp_t "iradiusoverride %1" server_var(exp_radius)
    es es_xfire event_var(userid) env_explosion addoutput server_var(exp_t)
    es es_xgetplayerhandle exp_o event_var(userid)
    es_xsetinfo exp_t 0
    es es_xexists exp_t keygroup rocketguns
    es es_xif (server_var(exp_t) == 1) do
    {
      es_xkeygroupdelete rocketguns
    }
    es_xcreateentitylist rocketguns env_explosion
    es_xforeachkey exp_t in rocketguns "es es_xsetindexprop server_var(exp_t) CBaseEntity.m_hOwnerEntity server_var(exp_o)"
    es_xkeygroupdelete rocketguns
    es es_xfire event_var(userid) env_explosion Explode
  }
  }
}
Logged
๖ۜAñgêløک
Level 4 Intermediate
****
Offline Offline

United Kingdom

Posts: 89




skeav94
« Reply #1 on: May 17, 2009, 07:51:50 AM »

would this skill work with this ?? or would i have to change somthing for it to work.

Code:
    "skill3_setting"    "es_xsetinfo exp_guns p228; awp; g3sg1; scout; m249; m4a1; ump45; famas; galil; deagle; elite; m3; xm1014; fiveseven; sg550; sg552; aug"
    "skill3_cmd"        "if (event_var(text) = wax-on) then es_xdoblock wcs/WCSultimates/ExplodingBullets"
    "skill3_sfx"        "0"
Logged
๖ۜAñgêløک
Level 4 Intermediate
****
Offline Offline

United Kingdom

Posts: 89




skeav94
« Reply #2 on: May 17, 2009, 12:33:41 PM »

sorry didnt know can anyone help me ?
« Last Edit: May 17, 2009, 03:18:20 PM by ๖ۜAñgêløک » Logged
WCA | Pietro [DK]
Level 7 Master
*******
Offline Offline

Denmark Denmark

Posts: 411




Pietro_Annuzzi
« Reply #3 on: May 17, 2009, 01:43:12 PM »

B U M P
aint it a rule that bumping isnt allowed?
Logged
WCA | Rasmus [DK]
wcs coder (part of new wcs dev team)
WCS Supporter
Level 7 Master
*****
Offline Offline

Denmark Denmark

Posts: 1449




Rasmus4J
rasmus4j

myServer 85.190.17.115:27015
(Warning: click connects through Steam)
« Reply #4 on: May 17, 2009, 01:46:02 PM »

yes it is.
Logged

where would you put the comma in the following telegram from a wife, to her husband in the navy?
"Not getting any better hurry home!"

๖ۜAñgêløک
Level 4 Intermediate
****
Offline Offline

United Kingdom

Posts: 89




skeav94
« Reply #5 on: May 17, 2009, 03:58:16 PM »

HELP
Logged
๖ۜAñgêløک
Level 4 Intermediate
****
Offline Offline

United Kingdom

Posts: 89




skeav94
« Reply #6 on: Today at 05:55:09 AM »

how come no one can help me ?
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
Today at 05:44:38 PM
we should keep this going. its funny and interresting.
http://warcraft-source.com/board/index.php/topic,7317.msg52013.html#msg52013
Today at 01:56:42 PM
I voted Japan, i'm finnish >.>
Today at 01:49:33 PM
I voted english even tough I am norwegian Tongue
Today at 12:07:03 PM
Fixed, added Turkish
Today at 08:43:22 AM
french, not france Cry
May 17, 2009, 08:23:23 PM
I added Danish Tongue
May 17, 2009, 07:18:04 PM
in the german section.^^
Recent
[Today at 05:40:48 PM]

by maze
[Today at 05:27:32 PM]

[Today at 05:23:54 PM]

[Today at 05:20:29 PM]

[Today at 05:02:21 PM]

[Today at 05:00:18 PM]

[Today at 03:23:09 PM]

[Today at 01:55:50 PM]

[Today at 01:33:39 PM]

[Today at 05:55:09 AM]
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.055 seconds with 26 queries.