Scripts Or Whatever You Call Them
Hivelord
Join Date: 2003-06-21 Member: 17567Members, Reinforced - Shadow
I wanna know how to make a script like i saw this guy whenever he did something like almost run out of ammo he reloads automatically and when he builds as a gorge he auto goes Gorge: Offensive chamber placed and stuff, i wanna know like how to make them / where to get em, if anyone can help.
Comments
and the reload thing, there are scripts out there that will auto-change weapon when you run out of ammo... i fail to see the point for one that auto-reloads as the guns already do i think :o
Just apply a bit of thought and logic and you can write pretty much anything you want in no time, I personally created the most kick-arse comm script (no mic at the time) ever and I could say almost anything in just 2 key pushes, the most used of which would just be double tapping the same key. Plus they were optimised for easy reading with all the key words in a sentence in bold so you could tell in a glance what was written... I was proud <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html//emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /><!--endemo-->
and the reload thing, there are scripts out there that will auto-change weapon when you run out of ammo... i fail to see the point for one that auto-reloads as the guns already do i think :o <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
indeed
they dont help you
and in many cases they set you back tbh
But for a start you want to know how to use "bind" and "alias" commands. It's very easy to learn and you can make some nice scripts just with that. Just read some and you'll realize how scripting is done. Its very easy. I've never done big and complicated scripts but I have done some useful ones for myself and friends like "buying-scripts" for CS, or blink scripts for NS.
example:
alias reloadandsay "impulse 2; say_team reloading, cover me"
bind r reloadandsay
an "alias" defines a set of commands to be run one after another. the ";" separates commands. "bind" binds a key to a command or an alias. (impulse 2 works just like "+reload;wait;-reload")
"+" before a command is pressing the key. "-" means releasing the key. This way you can make a simple blink script like this:
alias +blinkkk "slot 2; +attack"
alias -blinkkk "-attack;slot 1"
bind mouse4 blinkkk
That (if I'm not mistaken) will make you change to blink and start running like hell when you press and hold your mouse 4 button, and will change to claws when you release it.
Of course there are many ways to do the same thing (i.e: sometimes you can just bind directly without using alias).
So read some and write yours <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html//emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif' /><!--endemo-->
No... there aren't. You can't make conditional statements in scripts.
its easily changed into 50 shot
Do <i>not</i> start discussing scripts - cheats in here, will ya?
As far as switching when you are out of ammo, the only thing that would come close is a script that when you press fire you fire your weapon on full auto, and then when you release your weapon it would switch over to pistol....
If you would write something that would wait a specified amount of time before switching, say 5 seconds, it would lock out all keyboard controls during that time.
As far as the blink/swipe script, that is just a script that allows you to press a button blink to the target, release button and swipe...press to blink away, once released you swipe again. Or it could be blink in, auto switch to swipe, and after swipe auto switch to blink to blink away...
<a href='http://www.unknownworlds.com/forums/index.php?showtopic=72007' target='_blank'>http://www.unknownworlds.com/forums/in...showtopic=72007</a>
that's an ogc function, not a script <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
Yea, that's a hack function, no script can detect your ammunition level and there are no conditional scripts in half-life.