PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Half-Life 2 Granten-Script


Darkman]I[
2009-11-22, 21:59:45
Hi,

zocke gerade mal wieder :umassa: HL2 und hätte gerne ein Script für die Granaten was wie folgt aussehen sollte:

1. Wechsel zur Granate
2. Wurf der Granate
3. Switch zur vorher genutzten Waffe

Das Script ist für den SP gedacht.

Ist sowas machbar?

Gruß,

Darkman

wry
2009-11-23, 13:52:46
Ich denke das sollte auch in HL2 SP funktionieren.


I made a simple script; If you tap the button, it switches to grenade. If you hold the button, it switches to grenade and primes it(gets ready to throw it) , let go of the button and it throws the nade, as for going back to previous weapon,you can use a seperate bind for 'lastinv' because I tried to add that into the script and it just makes you get a nade out and then put it away, but if you throw your last grenade it switches to smg, maybe someone good with alias' and scripts can whip up something later, but here is what I have so far:
In the folder below you need to make a file called autoexec.cfg or copy another .cfg file, clear out the text and rename the file to autoexec

C:\Program Files\Valve\Steam\SteamApps\(steam account)\half-life 2 deathmatch\hl2mp\cfg\

Inside autoexec.cfg place this:

alias +nade "slot5; +attack"
alias -nade "-attack"

Now, in game, open your console and make a bind with +nade
For example, Bind x +nade

I haven't even really used this bind all that much, but I made it in attempts to help people asking for a nade script that throws and switches, I guess half is better then nothing, I tried...


Quelle: Link (http://www.halflife2.net/forums/showthread.php?t=60199)