You are viewing our Forum Archives. To view or take place in current topics click here.
A positive thread
Posted:

A positive threadPosted:

w0lfschild
  • Junior Member
Status: Offline
Joined: Mar 19, 201212Year Member
Posts: 73
Reputation Power: 2
Status: Offline
Joined: Mar 19, 201212Year Member
Posts: 73
Reputation Power: 2
Hello there.

Today I would like to start a topic that will contain mostly if not entirely interesting, helpful and fun things to do in the L4D series as well as TF2 and Portal 2.

The goal is for each new post to contain something that you know and find interesting and or fun that has not been posted and post it. That is all. No limits on what it is, you could simply post some commands you use frequently or an alias you wrote up. It could even be a tutorial or a video of you doing a trick or glitch in game or even just point out secrets and tricks.

Also what you post doesn't have to be something nobody has ever heard of before it could be as simple as saying "hey I like to use sv_bounce instead of sv_gravity because then people don't end up floating around all over the place and it still keeps an aspect of risk when you bounce because you will take fall damage".

Also try to be supportive of other peoples posts if you like them, don't be afraid to +rep someone or like their post. Even if what they post might not be the exact right way of doing something maybe suggest a way you think works better without being snide about it.

To start us off here I'll post two things I find neat and useful:




First:

A brief discussion of using alias as toggles.

There are lots of commands you can toggle by default or quite easily but sometimes you just want to toggle between two completely unrelated things or maybe add the ability to toggle a loop on or off.

First there is the simple toggle. Which is created by making an alias as a toggle state, which will be bound to a button most likely, and two other alias which run the desired commands and then switch the functionality of the toggle state.


alias "ZoomON" "+zoom; alias ZoomToggle ZoomOFF"
alias "ZoomOFF" "-zoom; alias ZoomToggle ZoomON"
alias "ZoomToggle" "ZoomON"


The above is a basic example ripped directly off of the valve dev wiki.

Next a short taste of a looping toggle. Which is created using several additional alias.
This is just how I wrote mine there could surely be better ways.

First make six alias, four will be in one group the other two will simply be the start and stop which in my case I made them into + and - states.

The first alias by default will target the second alias
The second alias will run a command/group of commands, wait and then run the first alias

^ This is where the loop is

The third alias will set the first alias to the default state
The fourth alias will set the first alias to run nothing

Now for the toggles

The fifth alias will run the third alias and then the first starting the loop
The sixth alias will run the fourth alias thus killing the loop


alias "a1" "a2
alias "a2" "ent_rotate 2; wait 10; a1
alias "a3" "alias a1 a2
alias "a4" "alias a1

alias "+rt" "a3;a1
alias "-rt" "a4

bind k "+rt






Second:

Making yourself a hat.

For those of you who play Valve games on pc, you have probably come to realize that hats are what makes the world go round and without a hat you will most likely end up at a dead end job and forever alone.

Since there is no hat feature on any Valve xbox titles some of you may or may not have become depressed but at last there is an easy fix and here is how.

1) Find a model for something small and hat-like (maybe a rock or a box or a frog or something of the likes)

2) create the prop

prop_dynamic_create <prop path>

3) set the name of the prop to something new

ent_setname <name goes here>

4) set yourself as the parent of the newly named prop

ent_fire <prop name> SetParent !activator

5) set the attachment point to your head

ent_fire <prop name> SetParentAttachment eyes

6) make sure the prop is not solid so you don't get your head stuck inside it

ent_fire <prop name> addoutput "solid 0

7) Now you have a lovely prop wedged onto your head that you can show off to all your freinds



There are more things (all command related, I'm not gonna try and mess with scripts) I'll post later if this thread gets rolling, like easily playing the jukebox songs whenever/wherever you want to.


Last edited by w0lfschild ; edited 2 times in total

The following 2 users thanked w0lfschild for this useful post:

Bergie (04-16-2012), Venom199 (04-11-2012)
#2. Posted:
REAPEROWNSYOU
  • Junior Member
Status: Offline
Joined: Dec 12, 200915Year Member
Posts: 60
Reputation Power: 1
Status: Offline
Joined: Dec 12, 200915Year Member
Posts: 60
Reputation Power: 1
Very nicely done. Alias command and grouping can be tricky at times but you explained it quite nicely.
#3. Posted:
Breaking-Bad
  • TTG Senior
Status: Offline
Joined: May 15, 201113Year Member
Posts: 1,191
Reputation Power: 98
Status: Offline
Joined: May 15, 201113Year Member
Posts: 1,191
Reputation Power: 98
Nice Post About Alias commands Keep It Up Mate
#4. Posted:
w0lfschild
  • Junior Member
Status: Offline
Joined: Mar 19, 201212Year Member
Posts: 73
Reputation Power: 2
Status: Offline
Joined: Mar 19, 201212Year Member
Posts: 73
Reputation Power: 2
Thanks people.

I now have l4d2 on PC so I'll try to post some more l4d specific stuff.

For starters here is how to play a sound file. It's actually as simple as just play <path>
but here are some examples:


play music/flu/jukebox/all_i_want_for_xmas
play music/flu/jukebox/badman
play music/flu/jukebox/midnightride
play music/flu/jukebox/portal_still_alive
play music/flu/jukebox/re_your_brains
play music/flu/jukebox/thesaintswillnevercome
play music/flu/rocketride
play music/gallery_music
play music/wam_music


Those are just a few I'll try n dump the whole sound folder later.

I'm not sure if all players hear these so if that's not the case just use a clientcommand to play the song for them.


ent_create point_clientcommand
ent_fire point_clientcommand addoutput "targetname pc1
ent_fire player addoutput "onuser1 pc1,command,play music/flu/jukebox/portal_still_alive
bind "UP" "ent_fire player fireuser1"
#5. Posted:
Dracolich
  • Ladder Climber
Status: Offline
Joined: Oct 02, 201113Year Member
Posts: 347
Reputation Power: 63
Status: Offline
Joined: Oct 02, 201113Year Member
Posts: 347
Reputation Power: 63
w0lfschild wrote Thanks people.

I now have l4d2 on PC so I'll try to post some more l4d specific stuff.

For starters here is how to play a sound file. It's actually as simple as just play <path>
but here are some examples:


play music/flu/jukebox/all_i_want_for_xmas
play music/flu/jukebox/badman
play music/flu/jukebox/midnightride
play music/flu/jukebox/portal_still_alive
play music/flu/jukebox/re_your_brains
play music/flu/jukebox/thesaintswillnevercome
play music/flu/rocketride
play music/gallery_music
play music/wam_music


Those are just a few I'll try n dump the whole sound folder later.

I'm not sure if all players hear these so if that's not the case just use a clientcommand to play the song for them.


ent_create point_clientcommand
ent_fire point_clientcommand addoutput "targetname pc1
ent_fire player addoutput "onuser1 pc1,command,play music/flu/jukebox/portal_still_alive
bind "UP" "ent_fire player fireuser1"


yeah i think it wouldnt play for all sence i use playgamesound for music
example: playgamesound Jukebox.still_alive or playgamesound jukebox.re_your_brains
and those are only on my side

good post so far
#6. Posted:
StabThemBacks
  • Challenger
Status: Offline
Joined: Nov 21, 201014Year Member
Posts: 134
Reputation Power: 6
Status: Offline
Joined: Nov 21, 201014Year Member
Posts: 134
Reputation Power: 6
dexgo wrote
yeah i think it wouldnt play for all sence i use playgamesound for music
example: playgamesound Jukebox.still_alive or playgamesound jukebox.re_your_brains
and those are only on my side

good post so far

Play works just fine.
#7. Posted:
w0lfschild
  • Junior Member
Status: Offline
Joined: Mar 19, 201212Year Member
Posts: 73
Reputation Power: 2
Status: Offline
Joined: Mar 19, 201212Year Member
Posts: 73
Reputation Power: 2
OK todays post:

How to strap an item spawn on your back
(eg the type of items that are at all spawns and have infinite uses, anyone can grab it off your back and you can too if you're in third person)

rather then going into much explanation I'll just post some example code


//create and name the weapon spawn
ent_create weapon_chainsaw_spawn
ent_setname chain1

//add infinte uses
ent_fire chain1 addoutput "spawnflags 8

//remove clipping
ent_fire chain1 addoutput "solid 1

//set the parent to yourself (or you could stick it on someone else)
ent_fire chain1 setparent !activator

//strap it to your back
//(<primary> is where your primary weapon sits on your back when not equiped)
ent_fire chain1 setparentattachment primary

//run around with a working chainsaw spawn on your back xD


Now here is a list of all the weapon/item spawn entities

    weapon_adrenaline_spawn
    weapon_ammo_spawn
    weapon_autoshotgun_spawn
    weapon_chainsaw_spawn
    weapon_defibrillator_spawn
    weapon_first_aid_kit_spawn
    weapon_gascan_spawn
    weapon_grenade_launcher_spawn
    weapon_hunting_rifle_spawn
    weapon_item_spawn
    weapon_melee_spawn
    weapon_molotov_spawn
    weapon_pain_pills_spawn
    weapon_pipe_bomb_spawn
    weapon_pistol_magnum_spawn
    weapon_pistol_spawn
    weapon_pumpshotgun_spawn
    weapon_rifle_ak47_spawn
    weapon_rifle_desert_spawn
    weapon_rifle_m60_spawn
    weapon_rifle_spawn
    weapon_scavenge_item_spawn
    weapon_shotgun_chrome_spawn
    weapon_shotgun_spas_spawn
    weapon_smg_silenced_spawn
    weapon_smg_spawn
    weapon_sniper_military_spawn
    weapon_spawn
    weapon_upgradepack_explosive_spawn
    weapon_upgradepack_incendiary_spawn
    weapon_vomitjar_spawn


Enjoy.
#8. Posted:
Bergie
  • Ladder Climber
Status: Offline
Joined: Feb 15, 201014Year Member
Posts: 307
Reputation Power: 17
Status: Offline
Joined: Feb 15, 201014Year Member
Posts: 307
Reputation Power: 17
love the hat thing made me laugh will be using that eventually
#9. Posted:
w0lfschild
  • Junior Member
Status: Offline
Joined: Mar 19, 201212Year Member
Posts: 73
Reputation Power: 2
Status: Offline
Joined: Mar 19, 201212Year Member
Posts: 73
Reputation Power: 2
Bergie wrote love the hat thing made me laugh will be using that eventually


Thanks, I threw a little humor in there in hopes someone might get a chuckle out of it. I'm also uploading a short youtube video of me sticking a tire on my head and another where I strap an weapon_smg_spawn and weapon_shotgun_spawn to my back.

Next things I'll probably try to get up are spawning the mounted turrets that are in a few maps and some other miscellaneous junk.


EDIT: Hat/Backpack video now up. Check Original Post.
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.