January 17, 2018, 07:56:13 AM

Author Topic: [Race] Lego Man  (Read 11711 times)

Offline ^[Psycho]^

  • German
  • Level 7 Expert
  • *****
  • Posts: 407
  • Country: at
  • ~~~~~~~~
[Race] Lego Man
« on: November 14, 2010, 09:06:24 PM »
   


Hello

Today i made a Builder Race for the community :-)
and i made a nice stone effect for this race, good for builder theme
i hope you enjoy this, the ultimate is not only a building only a boring block.
i added some nice features, specially when not maxed, try it out and you see what i mean
note skill 3 is effect only

Thanks to Strickened and Joshtrav for effect plugin.

Install
add the race to the races.ini
add the ultimate block to bottom of es_default
wcs/tools/ultimates/default

Code: [Select]
[Lego Man]
required           = 0
maximum            = 0

restrictmap        = ""
restrictteam       = 0
restrictitem       = ""
teamlimit = 0

author             = "^[Psycho]^"
desc               = "Builder"
spawncmd           = "es_xdoblock wcs/tools/ultimates/default/stone"
deathcmd = ""
roundstartcmd      = ""
roundendcmd        = ""
preloadcmd         = ""

allowonly          = ""
onchange           = ""

numberofskills     = 4
numberoflevels     = 4
skillnames         = "Lego Man's Boots|Lego Man's Suit|Lego Stones|Lego Block"
skilldescr         = "Gain Speed and Low Gravity|Gain More HP and Armor|Throw Lego Stones|Build some Lego Blocks"
skillcfg           = "player_spawn|player_spawn|player_attacker|player_ultimate"
skillneeded        = "0|0|0|8"


[[skill1]]
setting        = "es_xset wcs_speed 1.1;es_xset wcs_gravity 0.6|es_xset wcs_speed 1.2;es_xset wcs_gravity 0.52|es_xset wcs_speed 1.3;es_xset wcs_gravity 0.44|es_xset wcs_speed 1.4;es_xset wcs_gravity 0.36"
cmd            = "es wcs_setfx speed event_var(userid) = server_var(wcs_speed) 0;es wcs_setfx gravity event_var(userid) = server_var(wcs_gravity) 0;es_tell server_var(wcs_userid) #multi #green[#defaultLego Man's Boots#green] #lightgreenUpgrade Your Speed to server_var(wcs_speed), and gravity to server_var(wcs_gravity)"
sfx            = ""

[[skill2]]
setting        = "es_xset wcs_addhealth 10;es_xset wcs_addarmor 15|es_xset wcs_addhealth 20;es_xset wcs_addarmor 30|es_xset wcs_addhealth 30;es_xset wcs_addarmor 45|es_xset wcs_addhealth 40;es_xset wcs_addarmor 60"
cmd            = "es wcs_setfx health event_var(userid) + server_var(wcs_addhealth) 0;es wcs_setfx armor event_var(userid) + server_var(wcs_addarmor) 0;es_tell server_var(wcs_userid) #multi #green[#defaultLego Man's Suit#green] #lightgreenIncreased Healt to server_var(wcs_addhealth), and Armor to server_var(wcs_addarmor)"
sfx            = ""

[[skill3]]
setting        = "es_xset wcs_chance 15|es_xset wcs_chance 25|es_xset wcs_chance 35|es_xset wcs_chance 45"
cmd            = "if (server_var(wcs_dice) <= server_var(wcs_chance)) then es_tell event_var(userid) #multi #lightgreenYou are throwing #defaultLego Stones #lightgreen."
sfx            = "if (server_var(wcs_dice) <= server_var(wcs_chance)) then es_xdoblock wcs/tools/ultimates/default/stone"

[[skill4]]
setting        = "es_xset wcs_delay 4|es_xset wcs_delay 3|es_xset wcs_delay 2|es_xset wcs_delay 0"
cmd            = "if (server_var(wcs_delay) = 4) then wcs_xalias racealias_delay44;if (server_var(wcs_delay) = 3) then wcs_xalias racealias_delay33;if (server_var(wcs_delay) = 2) then wcs_xalias racealias_delay22;if (server_var(wcs_delay) = 0) then wcs_xalias racealias_delay00"
racealias_delay00 = "es usermsg hudhint server_var(wcs_userid) ...Build..Block...;es_prop_dynamic_create server_var(wcs_userid) props/de_nuke/cinderblock_stack.mdl;es_emitsound player server_var(wcs_userid)  physics/plaster/ceiling_tile_impact_hard2.wav 1.0 0.5"
racealias_delay22 = "es usermsg hudhint server_var(wcs_userid) ...Creating.Block...;es_delayed 2 es usermsg hudhint server_var(wcs_userid) ...Build..Block...;es_delayed 2 es_prop_dynamic_create server_var(wcs_userid) props/de_nuke/cinderblock_stack.mdl;es_emitsound player server_var(wcs_userid)  physics/plaster/ceiling_tile_impact_hard2.wav 1.0 0.5"
racealias_delay33 = "es usermsg hudhint server_var(wcs_userid) ...Creating.Block...;es_delayed 3 es usermsg hudhint server_var(wcs_userid) ...Build..Block...;es_delayed 3 es_prop_dynamic_create server_var(wcs_userid) props/de_nuke/cinderblock_stack.mdl;es_emitsound player server_var(wcs_userid)  physics/plaster/ceiling_tile_impact_hard2.wav 1.0 0.5"
racealias_delay44 = "es usermsg hudhint server_var(wcs_userid) ...Creating.Block...;es_delayed 4 es usermsg hudhint server_var(wcs_userid) ...Build..Block...;es_delayed 4 es_prop_dynamic_create server_var(wcs_userid) props/de_nuke/cinderblock_stack.mdl;es_emitsound player server_var(wcs_userid)  physics/plaster/ceiling_tile_impact_hard2.wav 1.0 0.5"
sfx            = "es_getplayerlocation wcs_x1 wcs_y1 wcs_z1 server_var(wcs_userid);es est_effect 7 #a 0 sprites/smoke.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 40 1"
cooldown       = "4|3|2|1"

Ultimate block

Code: [Select]
block stone
{
  es_xset vector1 0
  es_getplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid)
  es_createvectorstring vector1 server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1)
  es est_effect_14 #a 0 models\props_wasteland\rockgranite03b.mdl server_var(vector1) server_var(vector1) 200 30 900
  es est_effect_08 #a 0 sprites/lgtning.vmt server_var(vector1) 20 80 1 2 100 400 3 128 64 12 255 10 1
}
« Last Edit: May 15, 2011, 04:16:59 PM by Kamiqawa »

Offline xines

  • Level 7 Expert
  • *****
  • Posts: 342
  • Country: dk
  • Wcs FTW <33 - - - - - - - but still doing ur mom!
    • Dark WCS
Re: [Builder] Lego Man
« Reply #1 on: November 14, 2010, 09:08:16 PM »
Nice release thanks for this ! ;D ;D
Xines Making people laugh on WCS!



Offline SyNatic

  • Level 0 Beginner
  • Posts: 10
  • Country: 00
  • <3 WCS :)
Re: [Builder] Lego Man
« Reply #2 on: November 14, 2010, 10:51:00 PM »
nice =) ty <3

Offline Los Pwner

  • Level 7 Expert
  • *****
  • Posts: 231
  • Country: dk
  • New at scripting, but love the idea of WCS! :D
Re: [Builder] Lego Man
« Reply #3 on: November 15, 2010, 04:16:02 PM »
Finally! Thank you so much :)

Offline Joao

  • Level 7 Expert
  • *****
  • Posts: 615
  • Country: br
Re: [Builder] Lego Man
« Reply #4 on: November 15, 2010, 05:22:33 PM »
AWESOME!


Thank you.

PS: a lotttttttttttt of blocks can crash the server

Offline Rioux.

  • Level 7 Expert
  • *****
  • Posts: 192
  • Country: 00
  • Keep Working :)
Re: [Builder] Lego Man
« Reply #5 on: November 15, 2010, 05:26:42 PM »
what you meen about alot a blocks can crash the server.?

and nice job psycho :)

Offline Joao

  • Level 7 Expert
  • *****
  • Posts: 615
  • Country: br
Re: [Builder] Lego Man
« Reply #6 on: November 15, 2010, 05:57:12 PM »
When i created something like 300 blocks the server just crashed

Offline SyNatic

  • Level 0 Beginner
  • Posts: 10
  • Country: 00
  • <3 WCS :)
Re: [Builder] Lego Man
« Reply #7 on: November 16, 2010, 09:53:38 AM »
Nice race ty <3

Offline ^[Psycho]^

  • German
  • Level 7 Expert
  • *****
  • Posts: 407
  • Country: at
  • ~~~~~~~~
Re: [Builder] Lego Man
« Reply #8 on: November 16, 2010, 11:32:36 AM »
AWESOME!


Thank you.

PS: a lotttttttttttt of blocks can crash the server

this have been always like that, just set 1 or 2 second more cooldown to prevent server from spamming blocks.

Hope you guys enjoy this race :-)

Offline N1xda

  • Level 1 Trained Beginner
  • *
  • Posts: 37
  • Country: de
  • <3 WCS :)
Re: [Builder] Lego Man
« Reply #9 on: November 16, 2010, 01:33:46 PM »
Nice N1

Offline Gui Cs

  • Level 5 Trained Intermediate
  • *****
  • Posts: 100
  • Country: 00
  • Wcs Maniac (666'
Re: [Builder] Lego Man
« Reply #10 on: November 16, 2010, 02:44:57 PM »
cool race, 300 blocks and the sv crash  :-\
LiquidBr

Offline Kami

  • Developer
  • Level 7 Expert
  • *****
  • Posts: 752
  • Country: de
  • Pokemon Master!
Re: [Builder] Lego Man
« Reply #11 on: November 16, 2010, 03:01:28 PM »
dont create 300 blocks lol.

Its not the races fault that some ppl think 300 blocks is a good thing to have-.-'

Offline AvasT

  • Brazilian
  • Level 7 Expert
  • *****
  • Posts: 1292
  • Country: 00
  • Slackline is not a Crime!
Re: [Builder] Lego Man
« Reply #12 on: November 16, 2010, 04:02:46 PM »
300 blocks will override the current count of props in the map, and i think the max count is 1024 or something around do that, if you have more than this, will cause crash, so don't do this :> (stolen from kami, i mean, the smiley :D)

#Psycho
Nice job bro :D




Quote
Never tell your password to anyone.
23:51 - MiB: Hi wife
23:51 - MiB: Imma slap you since you been naughty
23:51 - AvasT: Hi husband
23:51 - AvasT: Sure, on my ass
23:51 - MiB: Imma slap you with my big stick!
23:51 - AvasT: Ok
23:52 - MiB: *-*

Offline Gui Cs

  • Level 5 Trained Intermediate
  • *****
  • Posts: 100
  • Country: 00
  • Wcs Maniac (666'
Re: [Builder] Lego Man
« Reply #13 on: November 16, 2010, 04:09:24 PM »
yeah, my fps goes to 20 with 300 blocks
LiquidBr

Offline ^[Psycho]^

  • German
  • Level 7 Expert
  • *****
  • Posts: 407
  • Country: at
  • ~~~~~~~~
Re: [Builder] Lego Man
« Reply #14 on: November 16, 2010, 04:15:12 PM »
Well Block SPAM is annoying, Theta Why i suggest Ultimate cooldown 3sek. There will Be always spammer soo..