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-06-17 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
June 17, 2009, 10:10:12 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: Help: Ammunition Expert  (Read 108 times)
Hyper009
Level 0 Beginner

Offline Offline

United States United States

Posts: 13



« on: June 14, 2009, 03:35:17 AM »

Well I'm making this race called Ammunition Expert

I haven't gotten to test it yet to see if everything works, I'm thinking all of the regular skills work and the ultimate.

Please take a look at the popup block and help me fix it. Thanks in advance.

--------Skills--------
Supplies--Spawn with a UMP and extra ammo
Specialized Rounds--Choose your ammo
Armor Piercing Rounds--Your bullets go straight through armor
The Golden Bullet--You get 1 shot that instantly kills someone(shoot within 10 seconds or it disintegrates)

here's the code!

Code
GeSHi (eventscripts):
"84"
{
"name"              "Ammunition Expert"
"author"            "Hyper"
"shortdescription"  "No one can out-smart bullets."
"required_level"    "0"
"maximum_level"     "0"
"allow_only"        "0"
"teamlimit"         "0"
"preloadcmd"        "0"
"player_spawn_cmd"  "es est_Restrictall server_var(wcs_userid);es est_UnRestrict server_var(wcs_userid) ump45"
"round_start_cmd"   "0"
"round_end_cmd"     "0"
"numberofskills"    "4"
"numberoflevels"    "4"
"skillnames"        "Supplies|Specialized Rounds|Armor Piercing Rounds|The Golden Bullet"
"skilldescr"        "Spawn with a UMP and extra ammo|Choose your ammo|Your bullets go straight through armor|You get 1 shot that instantly kills someone"
"skillcfg"          "player_spawn|player_spawn|player_attacker|player_ultimate"
 
"skill1_setting"    "es_xset wcs_umpammo 25|es_xset wcs_umpammo 30|es_xset wcs_umpammo 45|es_xset wcs_umpammo 50"
"skill1_cmd"        "es est_give event_var(userid) weapon_ump45;es_delayed 2 est_setclipammo event_var(userid) 1 server_var(wcs_umpammo)"
"skill1_sfx"        "0"
 
"skill2_setting"    "es_xset wcs_chance 25|es_xset wcs_chance 50|es_xset wcs_chance 75|es_xset wcs_chance 100"
"skill2_cmd"        "if (server_var(wcs_dice) <= server_var(wcs_chance)) then popup send aemenu server_var(wcs_userid)"
"skill2_sfx"        "0"
 
"skill3_setting"    "es_xset wcs_chance 10|es_xset wcs_chance 20|es_xset wcs_chance 30|es_xset wcs_chance 40"
"racealias_noarmor"    "es est_SetArmor event_var(userid) 0;es es_xtell event_var(userid) #multi #lightgreenYour armor has been #greenDestroyed;es es_xtell event_var(attacker) #multi #lightgreenYou have #greenDestroyed #lightgreenenemy's armor"
"skill3_cmd"        "es es_xif server_var(wcs_dice) <= server_var(wcs_chance) then racealias_noarmor"
"skill3_sfx"        "0"
 
"skill4_setting"    "es_xset wcs_damage 50|es_xset wcs_damage 75|es_xset wcs_damage 100|es_xset wcs_damage 200"
"skill4_cmd"        "es est_Restrictall event_var(userid);es est_UnRestrict event_var(userid) weapon_deagle;es_delayed .1 est_give event_var(userid) weapon_deagle;es_delayed .2 est_setclipammo 1;es playerset ammo event_var(userid)  weapon_deagle 0;es wcs_dealdamage event_var(attacker) event_var(userid) server_var(wcs_damage);es es_xtell event_var(userid) #multi #green[Ammuntion Expert] #lightgreenYou have #green10 seconds #lightgreento fire your #greenGolden Bullet;es_delayed 10 est_Restrictall event_var(userid);es est_UnRestrict event_var(userid) weapon_ump45; es_delayed .2 es est_give event_var(userid) weapon_ump45"
"skill4_sfx"        "0"
 
"ultimate_cooldown" "45"
}
 


And here's the block for the popup

Code
GeSHi (eventscripts):
block load
{
popup create aemenu
popup addline aemenu "Choose your Ammunition!"
popup addline aemenu "->1. Incidenary"
popup addline aemenu "->2. Explosive"
popup addline aemenu "->3. Liquid Nitrogen"
popup select aemenu 1 wcs/WCSultimates/incidenary
popup select aemenu 2 wcs/WCSultimates/explosive
popup select aemenu 3 wcs/WCSultimates/liquidnitrogen
popup timeout aemenu view 0
}
block incidenary
{
es est_Burn event_var(userid) 3
es es_xtell event_var(userid) #multi #green[Ammunition Expert] #lightgreenYou have been #greenBurned
es es_xtell event_var(attacker) #multi #green[Ammunition Expert] #lightgreenYou have #greenBurned #lightgreenyour enemy with #greenIncidenary Ammunition!
}
block explosive
{
es wcs_dealdamage event_var(attacker) event_var(userid) 10
es est_physpush event_var(userid) 0 0 300
es es_xtell event_var(userid) #multi #green[Ammunition Expert] #lightgreenYou have been #greenBlown back
es es_xtell event_var(attacker) #multi #green[Ammunition Expert] #lightgreenYou #greenBlew Back #lightgreenyour enemy with #greenExplosive Ammunition!
}
block liquidnitrogen
{
es est_Freeze event_var(userid) 1
es es_delayed 3 est_Freeze event_var(userid) 0
es es_xtell event_var(userid) #multi #green[Ammunition Expert] #lightgreenYou have been #greenFrozen
es es_xtell event_var(attacker) #multi #green[Ammunition Expert] #lightgreenYou have #greenFrozen #lightgreenyour enemy with #greenLiquid Nitrogen Ammunition!
}

I've never done popups or blocks before so i would really like some help with that part.
« Last Edit: June 14, 2009, 05:59:04 PM by Hyper009 » Logged
WCA | Berettonawak [FR]
Le renommé méconnu...
Watchdogs
Level 7 Master
*****
Online Online

France France

Posts: 2329


Big Berettonawak is watching you...


WWW
Bifkids

myServer 81.93.251.44:27015
(Warning: click connects through Steam)
« Reply #1 on: June 14, 2009, 01:37:17 PM »

Seems fine except one part:
Quote
"skill1_cmd"        "es_delayed 1;es est_give event_var(userid) weapon_ump45
Remove the ";"

Then popup code can be optimised Smiley

Quote
block ae_menu
{   
popup create aemenu
popup addline aemenu "Choose your Ammunition!"
popup addline aemenu "->1. Incidenary"
popup addline aemenu "->2. Explosive"
popup addline aemenu "->3. Liquid Nitrogen"
 
popup timeout aemenu view 0
es popup send aemenu server_var(wcs_userid)
popup select aemenu 1 wcs/WCSultimates/incidenary
popup select aemenu 2 wcs/WCSultimates/explosive
popup select aemenu 3 wcs/WCSultimates/liquidnitrogen
 
}

-->

Code:
block load
{
  popup create aemenu
popup addline aemenu "Choose your Ammunition!"
popup addline aemenu "->1. Incidenary"
popup addline aemenu "->2. Explosive"
popup addline aemenu "->3. Liquid Nitrogen"
popup select aemenu 1 wcs/WCSultimates/incidenary
popup select aemenu 2 wcs/WCSultimates/explosive
popup select aemenu 3 wcs/WCSultimates/liquidnitrogen
popup timeout aemenu view 0
}
AND
Code:
"skill2_setting"    "es_xset wcs_chance 25|es_xset wcs_chance 50|es_xset wcs_chance 75|es_xset wcs_chance 100"
"skill2_cmd"        "if (server_var(wcs_dice) <= server_var(wcs_chance)) then popup send aemenu server_var(wcs_userid)"
"skill2_sfx"        "0"

Checking if player is alive when he spawns is point less Smiley

EDIT : Since there is already a block load in es_WCSultimates.txt, just include the lines in it (don't create another one, it would not work Wink)
« Last Edit: June 14, 2009, 01:39:49 PM by WCA | Berettonawak [FR] » Logged

Hyper009
Level 0 Beginner

Offline Offline

United States United States

Posts: 13



« Reply #2 on: June 14, 2009, 02:53:42 PM »

Okay, i edited that stuff in there, thanks for the help!

So it *should* work, ill test it later.

Is there a way in the block to designate them, like player_attacker?
Logged
Hyper009
Level 0 Beginner

Offline Offline

United States United States

Posts: 13



« Reply #3 on: June 14, 2009, 04:35:48 PM »

Sorry for the double post.

Error Report:

My server fails horribly so I'll attach a picture of most of the errors there

The ultimate gives the enemy a deagle and a ump45, don't know if the damage works, could just be my server

pop up doesn't come up on my server

Server doesn't recognize es_xset '>_>

clip ammo doesn't set to 50, you reload at the beginning of round because it is 0, my guess is because of es_xset failing on my server

est_Restrict doesn't restrict anything, doesn't recognize 'all'

So that's all I've found so far. main trouble is from x_Set i think..'


EDIT:

I think i fixed the weapon restrictions, does it need weapon_ump45 or just ump45?


 zomg.JPG (64.48 KB, 670x340 - viewed 7 times.)
« Last Edit: June 14, 2009, 04:47:16 PM by Hyper009 » Logged
Jareth
iRRex|Gaming / Deutscher forum Helfer
ServerAdmins
Level 7 Master
*****
Offline Offline

Germany Germany

Posts: 300


Ich helfe Gernen allen Deutschen =)


WWW
Per anfrage
xjarethx

myServer 195.3.216.36:27100
(Warning: click connects through Steam)
« Reply #4 on: June 14, 2009, 05:44:16 PM »

Code:
skill1_setting"     "es_xset wcs_ump45 20|es_xset wcs_ump45 30|es_xset wcs_ump45 35|es_xset wcs_ump45 50"
    "skill1_cmd"         "es est_give event_var(userid) weapon_ump45;es_delayed 1 est_setclipammo event_var(userid) 1 server_var(wcs_ump45)"
    "skill1_sfx"         "es_toptext event_var(userid) 1 #yellow Effects by www.Source-Scripts.com"


This ode is right

Smiley
« Last Edit: June 14, 2009, 05:46:53 PM by Jareth » Logged

Hyper009
Level 0 Beginner

Offline Offline

United States United States

Posts: 13



« Reply #5 on: June 14, 2009, 05:56:12 PM »

Code:
skill1_setting"     "es_xset wcs_ump45 20|es_xset wcs_ump45 30|es_xset wcs_ump45 35|es_xset wcs_ump45 50"
    "skill1_cmd"         "es est_give event_var(userid) weapon_ump45;es_delayed 1 est_setclipammo event_var(userid) 1 server_var(wcs_ump45)"
    "skill1_sfx"         "es_toptext event_var(userid) 1 #yellow Effects by www.Source-Scripts.com"


This ode is right

Smiley

I don't see what you changed there.. from what i can tell you:

Changed my variable name

Changed the ammo count from what i had

Removed my delay

and added your sfx which are not exactly needed for the skill to work

Unless the delay is causing the problems, what did you fix?
Logged
WCA | Berettonawak [FR]
Le renommé méconnu...
Watchdogs
Level 7 Master
*****
Online Online

France France

Posts: 2329


Big Berettonawak is watching you...


WWW
Bifkids

myServer 81.93.251.44:27015
(Warning: click connects through Steam)
« Reply #6 on: June 15, 2009, 05:34:17 PM »

You cannot use event_var(userid) and event_var(attacker) in player_ultimate Smiley

Plus:
Quote
es_delayed .2 est_setclipammo 1;es playerset ammo event_var(userid)  weapon_deagle 0
What do you mean?
Logged

Hyper009
Level 0 Beginner

Offline Offline

United States United States

Posts: 13



« Reply #7 on: June 15, 2009, 07:35:08 PM »

You cannot use event_var(userid) and event_var(attacker) in player_ultimate Smiley

Plus:
Quote
es_delayed .2 est_setclipammo 1;es playerset ammo event_var(userid)  weapon_deagle 0
What do you mean?

Then how would i set the + damage in the ultimate, if it is even possible

And what i want from that code you pasted, set the primary clip ammo to 1, and the reserve to 0, so they cant reload it for multiple shots. So basicly they have a 1 round deagle.
Logged
WCA | Maxxi [NL]
WCS Supporter
Level 7 Master
*****
Offline Offline

Netherlands Netherlands

Posts: 1398



WWW
16maxpayne16

myServer 84.243.214.217:27015
(Warning: click connects through Steam)
« Reply #8 on: June 16, 2009, 09:03:51 AM »

You cannot use event_var(userid) and event_var(attacker) in player_ultimate Smiley

Plus:
Quote
es_delayed .2 est_setclipammo 1;es playerset ammo event_var(userid)  weapon_deagle 0
What do you mean?

Then how would i set the + damage in the ultimate, if it is even possible

And what i want from that code you pasted, set the primary clip ammo to 1, and the reserve to 0, so they cant reload it for multiple shots. So basicly they have a 1 round deagle.
you would have to use events
Logged

Hyper009
Level 0 Beginner

Offline Offline

United States United States

Posts: 13



« Reply #9 on: Today at 12:43:38 AM »

My friend mentioned something about changeing event_var(userid) with server_var(wcs_userid)

Is this the problem?
Logged
WCA | Maxxi [NL]
WCS Supporter
Level 7 Master
*****
Offline Offline

Netherlands Netherlands

Posts: 1398



WWW
16maxpayne16

myServer 84.243.214.217:27015
(Warning: click connects through Steam)
« Reply #10 on: Today at 08:51:32 AM »

read what i said and your friend cannot code...

if you want a timex extra damage you will need events
Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
Today at 09:36:03 PM
Is there a Race Called HellBoy on this site or can anybody make One.
Today at 09:20:39 PM
www.coding-alliance.com
But nothing to see with a new WCS site Tongue
(don't take this as ad, only answering a question)
Today at 09:15:22 PM
the WCA site?
Today at 09:12:11 PM
Warcraft-coding-alliance
something. Wink
Today at 07:31:15 PM
then what one you mean Huh
Today at 07:24:23 PM
Found it .
Today at 07:23:13 PM
No
Recent
[Today at 10:08:15 PM]

[Today at 09:34:04 PM]

[Today at 09:31:12 PM]

[Today at 09:30:28 PM]

[Today at 08:13:13 PM]

[Today at 07:33:43 PM]

[Today at 06:15:08 PM]

[Today at 05:47:25 PM]

[Today at 04:56:50 PM]

[Today at 04:01:13 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.207 seconds with 25 queries.