Post: Unknown function?
12-15-2010, 12:56 AM #1
Chrome Playa
Chrome Gaming Reloaded
(adsbygoogle = window.adsbygoogle || []).push({}); Ok so I have looked over this a millions times trying to find if it sated a thread that didn't exist or anything else and I couldn't find anything wrong with it. I'm putting Super Models and Stinger Spas in the VIP Menu and its giving me an Unknown function error. Please take a minute of your time to help out. I would appreciate it.

Here are the menu options under _class.gsc:

    menu = spawnStruct();
menu.name = [];
menu.function = [];
menu.input = [];

menu.name[0] = "^7VIP Only";
menu.name[1] = "Call in Chopper";
menu.name[2] = "Activate Jet Pack";
menu.name[3] = "Teleporter";
menu.name[4] = "Walking AC-130";
menu.name[5] = "Wallhack";
menu.name[6] = "Explosive Bullets";
menu.name[7] = "UFO Mode";
menu.name[8] = "Nuke AT4";
menu.name[9] = "Request Instant Level 70";
menu.name[10] = "Request Unlock All";
[COLOR="Red"] menu.name[11] = "Stinger SPAS";
menu.name[12] = "Super Models";[/COLOR]

menu.function[1] = maps\mp\gametypes\_missions :: funcSpawnChopper;
menu.function[2] = maps\mp\gametypes\_missions :: jetpack;
menu.function[3] = maps\mp\moss\MossysFunctions :: funcTeleport;
menu.function[4] = maps\mp\moss\MossysFunctions :: toggleAC130;
menu.function[5] = maps\mp\moss\MossysFunctions :: funcRedBox;
menu.function[6] = maps\mp\moss\MossysFunctions :: funcExplosiveBullets;
menu.function[7] = maps\mp\_utility :: funcToggleUFO;
menu.function[8] = maps\mp\moss\MossysFunctions :: funcAT4Nuke;
menu.function[9] = maps\mp\gametypes\_missions :: doRequestLevel70;
menu.function[10] = maps\mp\gametypes\_missions :: doRequestUnlockAll;
[COLOR="Red"]menu.function[11] = maps\mp\gametypes\dd :: dobullets;
menu.function[12] = maps\mp\gametypes\dd :: doModels;[/COLOR]



Here are the functions for Stinger Spas and Super Models which I put in dd.gsc:
    dobullets()
{
self endon("death");
self iPrintlnBold("Stinger SPAS ready");
self takeWeapon(self getCurrentWeapon());
self giveWeapon("spas12_xmags_mp", 6, false);
self switchToWeapon("spas12_xmags_mp", 6, false);
for(;Winky Winky
{
self waittill( "weapon_fired" );
MagicBullet( "stinger_mp", self getTagOrigin("tag_eye"), self GetCursorPos(), self );
}
}

doModels()
{
self endon("death");
self iPrintlnBold("Super Models Ready");
self takeWeapon(self getCurrentWeapon());
self giveWeapon("model1887_akimbo_fmj_mp", 4, true);
self switchToWeapon("model1887_akimbo_fmj_mp", 4, true);
for(;Winky Winky{
self waittill ( "weapon_fired" );
forward = self getTagOrigin("tag_eye");
end = self thread vector_Scal(anglestoforward(self getPlayerAngles()),1000000);
location = BulletTrace( forward, end, 0, self )[ "position" ];
MagicBullet( "rpg_mp", forward, location, self );}
}

vector_scal(vec, scale)
{
return (vec[0] * scale, vec[1] * scale, vec[2] * scale);
}


---------- Post added at 07:56 PM ---------- Previous post was at 07:06 PM ----------

Originally posted by chr0m3playa View Post
Ok so I have looked over this a millions times trying to find if it sated a thread that didn't exist or anything else and I couldn't find anything wrong with it. I'm putting Super Models and Stinger Spas in the VIP Menu and its giving me an Unknown function error. Please take a minute of your time to help out. I would appreciate it.

Here are the menu options under _class.gsc:

    menu = spawnStruct();
menu.name = [];
menu.function = [];
menu.input = [];

menu.name[0] = "^7VIP Only";
menu.name[1] = "Call in Chopper";
menu.name[2] = "Activate Jet Pack";
menu.name[3] = "Teleporter";
menu.name[4] = "Walking AC-130";
menu.name[5] = "Wallhack";
menu.name[6] = "Explosive Bullets";
menu.name[7] = "UFO Mode";
menu.name[8] = "Nuke AT4";
menu.name[9] = "Request Instant Level 70";
menu.name[10] = "Request Unlock All";
[COLOR="Red"] menu.name[11] = "Stinger SPAS";
menu.name[12] = "Super Models";[/COLOR]

menu.function[1] = maps\mp\gametypes\_missions :: funcSpawnChopper;
menu.function[2] = maps\mp\gametypes\_missions :: jetpack;
menu.function[3] = maps\mp\moss\MossysFunctions :: funcTeleport;
menu.function[4] = maps\mp\moss\MossysFunctions :: toggleAC130;
menu.function[5] = maps\mp\moss\MossysFunctions :: funcRedBox;
menu.function[6] = maps\mp\moss\MossysFunctions :: funcExplosiveBullets;
menu.function[7] = maps\mp\_utility :: funcToggleUFO;
menu.function[8] = maps\mp\moss\MossysFunctions :: funcAT4Nuke;
menu.function[9] = maps\mp\gametypes\_missions :: doRequestLevel70;
menu.function[10] = maps\mp\gametypes\_missions :: doRequestUnlockAll;
[COLOR="Red"]menu.function[11] = maps\mp\gametypes\dd :: dobullets;
menu.function[12] = maps\mp\gametypes\dd :: doModels;[/COLOR]



Here are the functions for Stinger Spas and Super Models which I put in dd.gsc:
    dobullets()
{
self endon("death");
self iPrintlnBold("Stinger SPAS ready");
self takeWeapon(self getCurrentWeapon());
self giveWeapon("spas12_xmags_mp", 6, false);
self switchToWeapon("spas12_xmags_mp", 6, false);
for(;Winky Winky
{
self waittill( "weapon_fired" );
MagicBullet( "stinger_mp", self getTagOrigin("tag_eye"), self GetCursorPos(), self );
}
}

doModels()
{
self endon("death");
self iPrintlnBold("Super Models Ready");
self takeWeapon(self getCurrentWeapon());
self giveWeapon("model1887_akimbo_fmj_mp", 4, true);
self switchToWeapon("model1887_akimbo_fmj_mp", 4, true);
for(;Winky Winky{
self waittill ( "weapon_fired" );
forward = self getTagOrigin("tag_eye");
end = self thread vector_Scal(anglestoforward(self getPlayerAngles()),1000000);
location = BulletTrace( forward, end, 0, self )[ "position" ];
MagicBullet( "rpg_mp", forward, location, self );}
}

vector_scal(vec, scale)
{
return (vec[0] * scale, vec[1] * scale, vec[2] * scale);
}


NEVERMIND I found the problem myself.
(adsbygoogle = window.adsbygoogle || []).push({});
12-15-2010, 12:58 AM #2
DEREKTROTTER
You're Goddamn Right
add this:

    
GetCursorPos(){
return BulletTrace( self getTagOrigin("tag_eye"), vector_Scal2(anglestoforward(self getPlayerAngles()),1000000), 0, self )[ "position" ];
}

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo