Scripting

  • Thread starter Thread starter chemflip
  • Start date Start date
C

chemflip

Guest
Hey guys I am slightly new to halflife2 deathmatch but i was wondering if you guys had any tips or websites where i could look into scripting things for hl2.

The main thing i want to do is have it auto-sprint when i strafe left or right (because i like to sprint but its hurting my hand to hold down shift all the time)
 
I haven't looked into scripting in source at all yet actually, but in hl I'd have done something like this:

alias +smoveleft "+sprint;+moveleft"
alias -smoveleft "-sprint;-moveleft"
alias +smoveright "+sprint;+moveright"
alias -smoveright "-sprint;-moveright"
(assuming the command for sprinting is +sprint)

and then:

bind a +smoveleft
bind d +smoveright

I don't have source installed on this computer so I can't check if that's how you do it. Please correct me if I'm wrong and I might learn something new :cheese:
 
pinkie also hurting

I'm having the same problem as chemflip - has anyone been successful at making the strafe left/strafe right buttons auto-sprint? Any info would be greatly appreciated.

p.s. - I"m not being a lazy-ass here, I've spent all afternoon today trying to figure it out myself before asking ;)
 
ComradeBadger said:
gtfo = get the **** out :P

I don't approve of scripts like this :)

Badger, settle down. Some scripts annoy me, the only script I ever used for hldm and op4 which now I am sure won't work with hl2dm, is longjump script, were you use jump button and not duck and jump. :|
 
Methinks the Badger is exploiting the lack of a sense of sarcasm some seem to have here.
 
I haven't found any reason to have scripts for anything in HL2DM.. and as for the one you want to do, don't do it. I rarely use my sprint in anything other than combat, unless I'm trying to get somewhere before someone else does. I used to use it whenever I could, and when I finally encountered an enemy, I would get shot in the face.

I'm not sure if this is true or not, but I read somewhere that hitting the sprint button and then jumping helps to conserve your sprint bar.. I've never scripted before, but is it possible to make a script that would use the sprint command and then after half a second use the jump command? I'd like to try it out.
 
Code:
alias +sjump "+speed; wait; wait; wait; +jump"
alias -sjump "-speed; -jump"

bind space +sjump

Try that, I don't have my HL2 computer available right now so I can't try it.

If it doesn't work I'll make a better one tonight if I can.
This stuff should go into your userconfig.cfg
 
Back
Top