script for enemy territory... help please!!!!


(iamjackscolon89) #1

i really think that a script that would automatically switch over to my pistol once i run out of ammo would be useful. i really know nothing about scripting, though i do know how to edit/add things to a .cfg file.

i want the script to automatically switch to my pistols (bank 2) once i have used up all the ammo in my clip in my mp40/thompson (bank 3). im not talking about all of the ammo in my gun, im just talking about in one clip.

however, once i use all the ammo in my bank 2 and bank 3, then i want the script to automatically go to my thompson/mp40, reload, and then reset itself.

could anyone help me? if you dont understand what exactly i want the script to do, i can try to explain it again, since i dont know if i explained it clearly.

thank you very, very much in advance… :slight_smile:


(bacon) #2
seta cg_autoreload "0"
bind r "weaponbank 2"

:smiley:


(Sick Boy) #3

no can do


(Ifurita) #4

This isn’t possible. You can however set a bind like this:

bind x “weaponbank 1; weaponbank 2; weaponbank 3”
seta cg_weaponcycledelay “0”

so that if you don’t have any ammo for your SMG, then the next time you select it, it will take you straight to the pistol, instead of an empty SMG


(DG) #5

AFAIK best you can do is
a) turn autoreload off and have convenient keys for weaponbank 3 and 2

on similar theme, if not directly on topic, you can set your binds to load whichever of two weapons has any ammo, with preference, however it ignores wether you have to reload:

// SELECT WEAPON WITH AMMO
// by DG

set cg_weaponcycledelay "0"
bind 2 "weaponbank 3; weaponbank 2"
bind 3 "weaponbank 2; weaponbank 3"

from http://www.rtcw.jolt.co.uk/content/faq/et_scripts.html (not much there atm)


(DG) #6

bah, beaten to it :frowning:


(iamjackscolon89) #7

well i do eventually want to be able to reload my thompson/mp40. will i still be able to do that, or will it keep switching weapons?

so there isnt any script possible that would auto switch to pistols once i run out of ammo? :???: