sm_savebuild helper

SayreX
1+ Posts
1+ Posts
Posts: 10
Joined: Tue Jan 25, 2011 2:24 am

sm_savebuild helper

Post by SayreX » Sat Feb 12, 2011 7:12 pm

i saw some ppl saving a huge building and i thought that it would be easier if the props that have been saved would change color, and so i made this =\

Code: Select all

ent_setname prop_save
ent_fire prop_save color "255 0 0"

wait 20;ent_fire prop_save addoutput "prop_dynamic"

//////////////////////////////////////////////

wait 30;sm_savebuild filename password  //////

//////////////////////////////////////////////

To make use of this, i have this script save as "savebuild" and bound to a key like this :

Code: Select all

bind f4 "exec savebuild"

If u wanna use it, make sure to change the filename and the password to your liking.

Also make sure the script is saved at:

Code: Select all

..\Steam\steamapps\ " Your Steam User Name " \half-life 2 deathmatch\hl2mp\cfg
The folder is Usually located at:

Code: Select all

C:\Program Files\Steam\steamapps\ " Your Steam User Name " \half-life 2 deathmatch\hl2mp\cfg
Have Fun. :roll:

User avatar
Blake
500+ Posts
500+ Posts
Posts: 588
Joined: Mon Jul 05, 2010 8:51 pm
Location: Ontario, Canada

Re: sm_savebuild helper

Post by Blake » Sat Feb 12, 2011 9:05 pm

SayreX wrote:

Code: Select all

ent_setname prop_save
ent_fire prop_save color "255 0 0"

wait 20;ent_fire prop_save addoutput "prop_dynamic"

//////////////////////////////////////////////

wait 30;sm_savebuild filename password  //////

//////////////////////////////////////////////

wait 20;ent_fire prop_save addoutput "prop_dynamic"
should be this
wait 20;ent_fire prop_save addoutput "classname prop_dynamic"
Unkown wrote: Life’s too short to worry about the little things.
Albert Einstein wrote: You do not really understand something unless you can explain it to your grandmother.

User avatar
ant_8490
Site Admin
Posts: 4388
Joined: Fri Apr 09, 2010 3:20 pm
Location: United States

Re: sm_savebuild helper

Post by ant_8490 » Sat Feb 12, 2011 9:06 pm

Yep colors definitely help with large builds. Also just to add, if you don't want to make a script you can just used something like this in console:

Code: Select all

sm_savebuild filename password; e_fire color 255
"e_fire" gets rid of the need to name the prop first. It's like running ent_fire <name>..., but on the prop your looking at.

And for classname changes:

Code: Select all

e_addoutput classname prop_dynamic
Using e_fire and e_addoutput makes these commands bindable too since it doesn't require quotes.
[GR]Ant_8490{A}
Area 51 Servers - Owner
Image
Image
Image
Image

MSI GE76 Raider
i9-11980HK 2.6GHz 8-Core Processor
32GB 3200Mhz DDR4 RAM
NVIDIA GeForce RTX 3080 Laptop GPU 16GB
2TB Samsung 980 Pro SSD
Windows 10

SayreX
1+ Posts
1+ Posts
Posts: 10
Joined: Tue Jan 25, 2011 2:24 am

Re: sm_savebuild helper

Post by SayreX » Sun Feb 13, 2011 4:30 am

mhm i alway fail at writing "classname" always >.>

but Ant's 1 line code it better, so my script is kinda useless now :D

User avatar
shadowslayer
1000+ Posts
1000+ Posts
Posts: 1280
Joined: Fri Sep 03, 2010 8:51 pm

Re: sm_savebuild helper

Post by shadowslayer » Mon Feb 14, 2011 6:35 pm

e_fire? man, this will make military scripts alot easier
Spoiler
Show
Saying "Your lucky i'm peaceful" is pretty much like saying "when i grow up i wanna be an arms race!"-HL2shadowslayer, Area 51 Minecraft
Imagethe only reason you shouldnt mess with me