Script help plz.....


(_NeT_WalBanger) #1

Hi
You probably been asked this a million times but…

How you bind Speach to actions…

I.e I seen people say “Grenade” when they throw a Grenade, or “airstrike” when when they throw a smoke can.

Also i would like to know if there is a EASY spawn changer.
I have 1 that you have to select what team you are (axis/allies) then select map then select which spawn…
But I saw someone say once, in there chat:- Spawning Default Spawn…
So i presume that you could have a button that you pressed and it would change each time you pressed i.e press the key

  1. Default spawn
  2. 2nd Spawn
  3. 3rd Spawn
  4. 4th spawn

This way it not matter what map you on or what team…

Thanks for your help :wink:


(CM..Punk) #2

[Edit: nm deleted, I didn’t read your post properly and answered a different question lol]

Did you try searching the forum?


(ouroboro) #3

Actually, he means something like this:

bind x “weaponbank 4; wait 100; +attack; wait 100; -attack; vsay_team FireInTheHole; say_team ^1Look out, I’m throwing a grenade!”

I just typed that from memory so it may not work perfectly. Tweak the wait times, etc. to suit your taste and/or framerate (for example, set the second wait to 400 or so and the nade will “cook” a few seconds). The first wait time is just to hesitate long enough to actually get the nade out before firing, otherwise you will fire the weapon you were holding beforehand and not prime the nade. Wait times are based on FPS, so if you cap your FPS at 76, then “wait 76” equals one second.

edit I might add that such scripts are more novelty than usefull, since finesse and timing play a great part in grenade skill. I’d suggest if you really feel the need for such a thing, you use your nades normally and bind a key to the warning portion only, like so:

bind x “vsay_team FireInTheHole; say_team ^1Look out, I’m throwing a grenade!”


(_NeT_WalBanger) #4

Hmmm thats close but not really what i wanted…

That dosnt wok if i scroll to Weapon 4 (i have to press 4) and also it makes me Fire it…
I wanted it to do it WHEN im throwing when i pres fire…

i.e I spawn at back of the bunker on Battery and get my grenade out ready to throw then i run to the back door and then press fire and hold for a few secs and throw out window by MG and thats when it says.

Where as yours will say AND fire it as soon as i spawn and change to weapon… I also run around with a grenade in my hand when im a covert… This would be no good :’(

But thanks for your effort and its very close to what i want.


(_NeT_WalBanger) #5

lol, you edited that as i posted :stuck_out_tongue:

is there nothing that will say :-
^1Look out, I’m throwing a grenade!
ONLY When i have a grenade in my hand AND press fire?


(ouroboro) #6

No, because that would require more advanced scripting options (like IF, AND, OR), which aren’t available in the game. But, you could do:

bind x “wait 100; +attack; wait 100; -attack; vsay_team FireInTheHole; say_team ^1Look out, I’m throwing a grenade!”

and only press it once you already have a nade in your hand.

Sorry but that’s about as good as it gets.


(_NeT_WalBanger) #7

:’(

well thanks anyway :slight_smile:

Anyword on the Spawning script? :slight_smile:


(CM..Punk) #8

I’d suggest if you really feel the need for such a thing, you use your nades normally and bind a key to the warning portion only, like so:

bind x “vsay_team FireInTheHole; say_team ^1Look out, I’m throwing a grenade!”

That doesn’t work as I thought it would, it still displays the normal vsay then does the say straight after, how do you replace ‘Fire in the hole’ for example with different text?


(Ifurita) #9

set prime “weaponbank 4; wait 10; +attack”
set release “-attack; say_team throwing grenade, weaponbank 3”
bind MOUSE4 “+vstr prime release”


(Depth_Charge) #10

You can only replace the words on a vsay with etpro
“vsay_team fireinthehole I’m Throwing a Nade”


(_NeT_WalBanger) #11

Ifurita… you are a beast, i remember last time i asked for some scripting like this you were the man then and you are again now

set prime “weaponbank 4; wait 10; +attack”
set release “-attack; say_team throwing grenade, weaponbank 3”
bind MOUSE4 “+vstr prime release”

That is Soooo Close to what i want but it takes up a button is there any way i can use mouse 1 AND fire SMG etc using Button 1?

Hmm what i mean is, i can use that “bind key” to also fire my normal weapons?

Thanks guys this is top.


(ouroboro) #12

dude no offense but just learn to use nades properly. u need finesse and timing to be good with nades, not a magic script.


(_NeT_WalBanger) #13

lol, no offence but i can…
and you dont need timing for grenades theres no skill in throwing grenades… if you miss you will kill anyway (unless you are
REALLY bad) or look round corners and throw them round


(FoxTailz) #14

You could just do
/bind x vsay_team IM THROWIN A NADE GUYS WATCH OUT!!!
and jsut push x whne ever u throw one


(FoxTailz) #15

You could also do
/bind x vsay_team FireInTheHole


(FoxTailz) #16

well if u need to sa yanything else here is the whole list

PathCleared “Path cleared.”
EnemyWeak “The enemy is weakened.”
AllClear “All clear.”
Incoming “Incoming!”
FireInTheHole “Fire in the hole!”
OnDefense “I’m on defense.”
OnOffense “I’m attacking.”
TakingFire “Taking fire!”
MinesCleared “Mines cleared.”
NeedBackup “I need backup!”
CoverMe “Cover me!”
NeedEngineer “We need an engineer!”
NeedOps “We need Covert Ops!”
Medic “Medic!”
NeedAmmo “I need ammo!”
NeedTarget “I need a target!”
WhereTo “Where to?”
FollowMe “Follow me!”
LetsGo “Let’s go!”
Move “Move!”
ClearPath “Clear the path!”
HoldFire “Hold fire!”
DefendObjective “Defend our objective!”
DisarmDynamite “Disarm the dynamite!”
ClearMines “Clear the mines!”
ReinforceDefense “Reinforce the defense!”
ReinforceOffense “Reinforce the offense!”
DestroyPrimary “Destroy the primary objective!”
DestroySecondary “Destroy the secondary objective!”
DestroyConstruction “Destroy the construction!”
ObjectiveDestroyed “Objective destroyed!”
RepairVehicle “Repair the vehicle!”
DestroyVehicle “Destroy the vehicle!”
EscortVehicle “Escort the vehicle!”
FireOnTarget “Fire on my target!”
CommandAcknowledged “Command acknowledged!”
CommandDeclined “Command declined!”
CommandCompleted “Command completed!”
ConstructionCommencing “Construction underway!”
ConstructionCompleted “Construction completed!”
ConstructionDestroyed “Construction destroyed!”
ObjectiveFailed “Objective failed!”
ObjectiveCompleted “Objective completed!”
Affirmative “Yes!”
Negative “No!”
Thanks “Thanks a lot!”
Welcome “You’re welcome.”
Oops “Oops!”
Sorry “Sorry!”
Hi “Hi!”
Bye “Bye.”
Cheer “Yeah!”
GreatShot “Great shot!”
GoodGame “Good game!”
IamSoldier “I’m a soldier.”
IamMedic “I’m a medic.”
IamEngineer “I’m an engineer.”
IamFieldOps “I’m a field ops.”
IamCovertOps “I’m a covert ops.”
FTMeetWaypoint “Meet at waypoint!”
FTAttackWaypoint “Attack waypoint!”
FTDefendWaypoint “Defend waypoint”
FTAttack “Attack!”
FTFallBack “Fall back!”
FTCoverMe “Cover me!”
FTCoveringFire “Soldier, covering fire!”
FTMortar “Deploy mortar!”
FTHealSquad “Heal the squad!”
FTHealMe “Heal me!”
FTReviveTeamMate “Revive team mate!”
FTReviveMe “Revive me!”
FTDestroyObjective “Destroy objective!”
FTRepairObjective “Repair objective!”
FTConstructObjective “Construct the objective!”
FTDisarmDynamite “Disarm the dynamite!”
FTDeployLandmines “Deploy landmines!”
FTDisarmLandmines “Disarm landmines!”
FTCallAirStrike “Call airstrike!”
FTCallArtillery “Call artillery!”
FTMortarBarrage “Call mortar barrage!”
FTResupplySquad “Resupply squad!”
FTResupplyMe “Resupply me!”
FTExploreArea “Explore area!”
FTExploreAtCoordinates “Explore at co-ordinates!”
FTSatchelObjective “Destroy satchel objective!”
FTInfiltrate “Infiltrate!”
FTGoUndercover “Go undercover!”
FTProvideSniperCover “Provide sniper cover!”


(_NeT_WalBanger) #17

Emm thanks but got to many “hotkeys” as it is… dont need any more :)… just would be handy :slight_smile:


(DarkangelUK) #18

I don’t think there has been one time what so ever that a team mate telling me he’s throwing a nade has halped me in anyway at all. Usually goes something like…

TM: say_team Im throwing a nade; vsay fireinthehole
ME: Thats nice, thanks for informing me that, in a game where everyone has grenades… you are actually throwing one. BRAVO!

About as pointless as people adding a bind saying they’re reloading. Tbh i don’t give a fluff.


(mouse) #19

totally agree angel, same goes for “selffkill!”.


(_NeT_WalBanger) #20

Welll I have had a few times where i have pulled the pin in a grenade and then some mong has sttod in the door way and its ended up killing us and then hes kicked of screaming n00b… like they do :frowning:

And as for Airstrikes/Artilary (which is the MAIN one i want it for) would be good so you can inform your team mates when you have done it so you can take it in turns to keep,say, the tank pinned rather than BOTH of you doing it same time…

That would be handy no??