Post: Any Help On Coding?
10-29-2010, 06:39 PM #1
TheJaRniBoi
Why So Serious?
(adsbygoogle = window.adsbygoogle || []).push({}); Basically how to I add the AC130 to the mod menu, so when i press x on the AC130 mod in the menu it activates AC130, pressed again turns it off.

One more thing how do i bind UFO to dpad left, teleport to dpad down?

Any ideas guys?
(adsbygoogle = window.adsbygoogle || []).push({});
10-29-2010, 06:48 PM #2
Cyborg Ninja
PS3 Security FtW !
Originally posted by CODGlitcha View Post
Basically how to I add the AC130 to the mod menu, so when i press x on the AC130 mod in the menu it activates AC130, pressed again turns it off.

One more thing how do i bind UFO to dpad left, teleport to dpad down?

Any ideas guys?


Walking AC130 or just plain ac130.

If you just want AC130:

self maps\mp\killstreaks\_killstreaks::giveKillstreak( "ac130", false );

And to Bind.

Ufo Mode

    doufo() 
{
self notifyOnPlayerCommand( "left", "+actionslot 3" );
self maps/mp/gametypes/_spectating::setSpectatePermission();
for(;Winky Winky
{
self waittill("left");
self allowSpectateTeam( "freelook", true );
self.sessionstate = "spectator";
self waittill("left");
self.sessionstate = "playing";
self allowSpectateTeam( "freelook", false );
}
}

Then Add Ufo Mode

To on Player spawn

self thread doufo();

Teleport

    doteleport() 
{
self notifyOnPlayerCommand("down", "+actionslot 2");

for(;Winky Winky
{
self waittill( "down" );
self beginLocationSelection( "map_artillery_selector", true, ( level.mapSize / 5.625 ) );
self.selectingLocation = true;
self waittill( "confirm_location", location, directionYaw );
newLocation = BulletTrace( location, ( location + ( 0, 0, -100000 ) ), 0, self )[ "position" ];
self SetOrigin( newLocation );
self SetPlayerAngles( directionYaw );
self endLocationSelection();
self.selectingLocation = undefined;
}
}



then add it to player spawn again.

self thread doteleport();



There Sorted :carling:
10-29-2010, 07:11 PM #3
Default Avatar
Newelly
Guest
Simply Add The

.dd Function Etc Into the menu..

Extract the .dd ( 00000002.dat ) file..

and then place it in there Smile
10-29-2010, 07:17 PM #4
TheJaRniBoi
Why So Serious?
thanks guys but is there anyway to get them selectable via mod menu
10-29-2010, 07:26 PM #5
Cyborg Ninja
PS3 Security FtW !
Originally posted by CODGlitcha View Post
thanks guys but is there anyway to get them selectable via mod menu


Depends What Mod Menu Your Using But for Mine.

menu.name[1] = "Ufo";
menu.function[1] = ::ufo;

menu.name[2] = "Teleport";
menu.function[2] = ::teleport;


Then You Would add above in the function slot ufomod or teleport.


Post Where You want it to go in your mod menu with the location in the menu and i can thread it for you.
10-29-2010, 07:29 PM #6
TheJaRniBoi
Why So Serious?
Originally posted by packarda12 View Post
Depends What Mod Menu Your Using But for Mine.

menu.name[1] = "Ufo";
menu.function[1] = ::ufo;

menu.name[2] = "Teleport";
menu.function[2] = ::teleport;


Then You Would add above in the function slot ufomod or teleport.


Post Where You want it to go in your mod menu with the location in the menu and i can thread it for you.


basically i just want the walking AC130, UFO & TELEPORT mod only selectable via the mod menu. I don't want any dpad functions or shortcuts. I tried adding the above codes to the mod menu in name and function but the mod only works via dpad functions.
10-29-2010, 07:37 PM #7
Cyborg Ninja
PS3 Security FtW !
Originally posted by CODGlitcha View Post
basically i just want the walking AC130, UFO & TELEPORT mod only selectable via the mod menu. I don't want any dpad functions or shortcuts. I tried adding the above codes to the mod menu in name and function but the mod only works via dpad functions.


Ah Actually Try this.

For teleport
    

doteleport()
{


self beginLocationSelection( "map_artillery_selector", true, ( level.mapSize / 5.625 ) );
self.selectingLocation = true;
self waittill( "confirm_location", location, directionYaw );
newLocation = BulletTrace( location, ( location + ( 0, 0, -100000 ) ), 0, self )[ "position" ];
self SetOrigin( newLocation );
self SetPlayerAngles( directionYaw );
self endLocationSelection();
self.selectingLocation = undefined;

}



And there it should work straight out of the menu.
10-29-2010, 07:44 PM #8
TheJaRniBoi
Why So Serious?
Originally posted by packarda12 View Post
Ufo and Teleport

Where made to be used with dpad functions i dont no any other way to make them function.

Ive tried to make the work just from the menu but could not figure it out.


elitemossy got teleport, walking AC130 to work via menu
10-29-2010, 07:55 PM #9
Cyborg Ninja
PS3 Security FtW !
Originally posted by CODGlitcha View Post
elitemossy got teleport, walking AC130 to work via menu



Ive updated the post above with a solution.
10-29-2010, 08:05 PM #10
DEREKTROTTER
You're Goddamn Right
you have to add code to the _ac130.gsc for walking AC-130

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo