script help

Have a question you need to ask? Need help? Ask here!

Moderator: Core Staff

Post Reply
User avatar
Turbo2233
CJ Fan
CJ Fan
Posts: 116
Joined: December 8th, 2011, 1:38 pm
Location: unknown

script help

Post by Turbo2233 » January 17th, 2012, 6:18 pm

hi guys i am trying to make it so if i fire the rpg it will change your wep soon as you shoot i tried this code and it doesnt work can someone help me?

Code: Select all

bind E "+actionslot 4; +attack; wait 2; weapnext; wait 2; weapnext"

IzNoGoD
CJ Worshipper
CJ Worshipper
Posts: 343
Joined: January 6th, 2009, 8:39 pm
Location: Netherlands/Holland

Re: script help

Post by IzNoGoD » January 17th, 2012, 6:59 pm

try the command "weaponslot primary" or "weaponslot primaryb" (no quotes)
LMGTFY!

Its not a glitch... Its the future!

User avatar
Sonic
PC Team
PC Team
Posts: 636
Joined: October 18th, 2011, 6:06 pm

Re: script help

Post by Sonic » January 17th, 2012, 7:17 pm

Turbo2233 wrote:hi guys i am trying to make it so if i fire the rpg it will change your wep soon as you shoot i tried this code and it doesnt work can someone help me?

Code: Select all

bind E "+actionslot 4; +attack; wait 2; weapnext; wait 2; weapnext"
No idea why you would want a such script but ok.

Code: Select all

bind E "+actionslot 4; +attack; wait 2; -attack; wait2; weapnext; wait 2; weapnext"
Try that?

User avatar
Turbo2233
CJ Fan
CJ Fan
Posts: 116
Joined: December 8th, 2011, 1:38 pm
Location: unknown

Re: script help

Post by Turbo2233 » January 17th, 2012, 8:29 pm

no it doesnt it nerly shoots then swap wep

User avatar
Hoogie
Core Staff
Core Staff
Posts: 3974
Joined: September 2nd, 2008, 10:22 am
Location: Holland

Re: script help

Post by Hoogie » January 17th, 2012, 8:35 pm

So increase the wait?
-=[[CoDJumper.com Movies]]=-
[[Ambush]] || [[Backlot]] || [[Bloc]] || [[Bog]] || [[Broadcast]] || [[Chinatown]] || [[Countdown]]
[[Crash]] || [[Creek]] || [[Crossfire]] || [[District]] || [[Downpour]] || [[Killhouse]] || [[Overgrown]]
[[Pipeline]] || [[Shipment & Wetwork]] || [[Showdown]] || [[Strike]] || [[Vacant]]


A woman can fake an orgasm, but a man can fake an entire relationship

User avatar
Goro92
CJ Spammer!
CJ Spammer!
Posts: 605
Joined: March 7th, 2011, 5:54 pm
Location: Brescia, Italy

Re: script help

Post by Goro92 » January 17th, 2012, 8:50 pm

why the fuck do u need that bind? :roll:
Image

User avatar
Sonic
PC Team
PC Team
Posts: 636
Joined: October 18th, 2011, 6:06 pm

Re: script help

Post by Sonic » January 17th, 2012, 9:37 pm

serveaiuto wrote:why the fuck do u need that bind? :roll:
I was thinking the same..

User avatar
iCYsoldier
CJ Worshipper
CJ Worshipper
Posts: 289
Joined: December 5th, 2009, 7:12 am
Location: Australia

Re: script help

Post by iCYsoldier » January 17th, 2012, 11:04 pm

It's pretty simple, but depends on your current FPS. The 'wait' statements wait for a certain amount of frames, and the rpg takes a bit over a second to shoot, so if you're on 333 fps, you would need something like this:

bind E "+attack; -attack; wait 350; weapnext"

You need to wait more than your current fps, or the rpg will switch before it fires.

If you're on x fps:

bind E "+attack; -attack; wait (x+10); weapnext"

ThaWalrus

Re: script help

Post by ThaWalrus » January 18th, 2012, 9:32 pm

Arent you the guy that was spamming the forums?

Post Reply

Who is online

Users browsing this forum: No registered users and 22 guests