Post: [Script] - A Working X/A Button Command.
09-06-2011, 03:04 AM #1
Correy
I'm the Original
(adsbygoogle = window.adsbygoogle || []).push({});
Hey, Whats up.
i've been studying Call Of Duty 4 Lately, doing a little research trying to gather anything i can and a little brain storming from my self to came up from out of the ordinary.
i've got the dpad buttons 80% working but i also got this code working for a button_a.

if i was you i would add this to a variable function showing that you must be in menu for this to happen otherwise, if you drop from something it's going to function.

    
if( self GetVelocity()[2] > 100 )
{
self notify("Item_Select");
}


this does need formatting to shape your menu system, but thats all for now.
hopefully i will get the rest of this dpad system working, but i got a few buttons working fine.

but one last thing, a bad thing for this is you have to have your player not frozen so he can jump.
(adsbygoogle = window.adsbygoogle || []).push({});

The following 2 users say thank you to Correy for this useful post:

Diddles2Fresshh, REZNET \|/
09-06-2011, 06:15 PM #2
DarKMaGiiC
Do a barrel roll!
niiiice
I only know how you can wait for the nightvision button pressed. For the other 3 Dpads i have no idea :P
09-07-2011, 12:40 AM #3
Originally posted by DarKMaGiiC View Post
niiiice
I only know how you can wait for the nightvision button pressed. For the other 3 Dpads i have no idea :P



hai can u host cl 11th prestige pleas, my mai can record PLEAS

The following 3 users groaned at Adam749 for this awful post:

cjmurder123, Joel, Jeremy
09-07-2011, 03:51 AM #4
Originally posted by Correy View Post

Hey, Whats up.
i've been studying Call Of Duty 4 Lately, doing a little research trying to gather anything i can and a little brain storming from my self to came up from out of the ordinary.
i've got the dpad buttons 80% working but i also got this code working for a button_a.

if i was you i would add this to a variable function showing that you must be in menu for this to happen otherwise, if you drop from something it's going to function.

    
if( self GetVelocity()[2] > 100 )
{
self notify("Item_Select");
}


this does need formatting to shape your menu system, but thats all for now.
hopefully i will get the rest of this dpad system working, but i got a few buttons working fine.

but one last thing, a bad thing for this is you have to have your player not frozen so he can jump.




This shall come in handy for Zombieland. Ima use it in order to jump off the zipline. Good job to u young sir. Cherrio.

The following user thanked Diddles2Fresshh for this useful post:

Correy
09-07-2011, 07:27 AM #5
Karoolus
I'm the W@W Menu Guy !
Originally posted by Correy View Post

Hey, Whats up.
i've been studying Call Of Duty 4 Lately, doing a little research trying to gather anything i can and a little brain storming from my self to came up from out of the ordinary.
i've got the dpad buttons 80% working but i also got this code working for a button_a.

if i was you i would add this to a variable function showing that you must be in menu for this to happen otherwise, if you drop from something it's going to function.

    
if( self GetVelocity()[2] > 100 )
{
self notify("Item_Select");
}


this does need formatting to shape your menu system, but thats all for now.
hopefully i will get the rest of this dpad system working, but i got a few buttons working fine.

but one last thing, a bad thing for this is you have to have your player not frozen so he can jump.


instead of freezing the players, just do this:

    self disableweapons();
on menu open &
    self enableweapons();
on menu close Winky Winky

won't freeze them but makes weapons unusable Winky Winky
09-07-2011, 10:13 AM #6
Originally posted by Karoolus View Post
instead of freezing the players, just do this:

    self disableweapons();
on menu open &
    self enableweapons();
on menu close Winky Winky

won't freeze them but makes weapons unusable Winky Winky
this is using the jump button isn't it, why would you need to disable weapons?
09-07-2011, 05:37 PM #7
Correy
I'm the Original
Originally posted by x. View Post
this is using the jump button isn't it, why would you need to disable weapons?


because like for a menu, or if you like drop of buildings..
09-07-2011, 05:42 PM #8
Originally posted by Correy View Post
because like for a menu, or if you like drop of buildings..


freeze controls would stop that , like you said. Disabling weapons won't stop you moving..
09-07-2011, 05:48 PM #9
Correy
I'm the Original
Originally posted by x. View Post
freeze controls would stop that , like you said. Disabling weapons won't stop you moving..


okay, cool..
you want to help me with this dpad button system, i got 2 world at war methods which may work for cod4?
09-07-2011, 11:27 PM #10
Originally posted by Correy View Post
okay, cool..
you want to help me with this dpad button system, i got 2 world at war methods which may work for cod4?


Not really, I'm trying to finish my patch but don't have much time.. just use Hawkins gun method from WAW for the dpad, it looks like it should work well..

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo