UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

UGX Scripting Reference [ALPHA] released

HOT
broken avatar :(
Created 10 years ago
by Delta
0 Members and 1 Guest are viewing this topic.
11,343 views
broken avatar :(
×
broken avatar :(
[UGX] Founder
Location: usBay Area, California
Date Registered: 24 June 2011
Last active: 8 months ago
Posts
5,551
Respect
6,691Add +1
Forum Rank
Immortal
Primary Group
UGX Administrator
My Groups
More
My Contact & Social Links
More
Signature
If Java had true garbage collection, most programs would delete themselves upon execution.
×
treminaor's Groups
UGX Administrator
UGX Team Member
UGX Site Moderator Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms.
I didn't test it, just going off of what the function has in the utility scripts.

Function:

Code Snippet
Plaintext
getAIarrayTouchingVolume( sTeamName, sVolumeName, eVolume )

Description: Returns an array of AI touching a trigger.

Function arguments:
sTeamName: Required(string). The "Team" to get an array of. Options include "Allies", "Axis", and "all".
sVolumeName: Required(string). The targetname of the entity to check.
evolume: Optional(entity). The entity to get. Overrides the sVolumeName argument string.
I'm pretty sure the reason those functions have no description yet is because Delta is still working on parsing them out of the utility scripts. I would focus on the functions not from [SP/MP] Utility Functions at this time.
broken avatar :(
×
broken avatar :(
[UGX] Maintainer (Admin & Programmer)
Location: deFriedrichshafen, Baden-Württemberg, Germany
Date Registered: 29 August 2012
Last active: 7 hours ago
Posts
435
Respect
Forum Rank
Perk Hacker
Primary Group
UGX Administrator
My Groups
More
My Contact & Social Links
More
Personal Quote
Dolphin!
Signature
changed one line of code, bug is fixed


Coming to work on monday morning.
When a bug mysteriously disappears.


:ugxmods: Developer ;)
×
Delta's Groups
UGX Administrator
UGX Team Member
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
UGX V.I.P.
UGX V.I.P.
UGX Chat Moderator Has the ability to mute, kick, or ban chat members for being abusive or breaking the rules of the forum.
UGX Site Moderator Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
Delta's Contact & Social Linksthe-deltaugxDeltaItsDeltaigDelta igdeltaigdeltaUGX_DeltaDelta#6147Personal Site
No. Parsing is done. - And with no information to this function I can't magically generate all information.
There were some mistakes made in my parsing ( I could have read the actual variable name which often reveals the datatype itself )

As merging this into the DB is time consuming I try to write this in PHP, but enough technical talk.

Obviously any function which has the giant "automatically box" is not correct. - Utility functions are the most worst, as some are just helper functions for other functions and most of them are undocumented. ( and therefore also in a group like unknown, undefined, a classic is _anim )

There are also some chrome issues ( and as usual IE ) which I will fix in this week - whenever I have a couple of hours

Be patient ;) - it's finally out after a long time beeing an inactive project and current state is surprisingly good^^
broken avatar :(
×
broken avatar :(
[UGX] Founder
Location: usBay Area, California
Date Registered: 24 June 2011
Last active: 8 months ago
Posts
5,551
Respect
6,691Add +1
Forum Rank
Immortal
Primary Group
UGX Administrator
My Groups
More
My Contact & Social Links
More
×
treminaor's Groups
UGX Administrator
UGX Team Member
UGX Site Moderator Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms.
Oh wait was Daedra posting his own description of the function? I misunderstood, thought he was copy/pasting from one of the doc comments above the functions in the utility file.

Yeah if the information isn't there to parse out in the first place then unfortunately the information will have to be filled in manually by someone. I would prefer if you tested the function before writing the usage because for all we know the function may not even work (and we can label it as such) or be worth documenting.
broken avatar :(
×
broken avatar :(
☭ Soviet Commander ☭
Location: us
Date Registered: 13 August 2012
Last active: 8 years ago
Posts
2,790
Respect
Forum Rank
King of the Zombies
Primary Group
Community Daedra
My Groups
More
My Contact & Social Links
More
Signature
Let's keep this thread on topic from here on in. -DBZ

+1 to off-topic reply -DBZ

lmao. Too funny.

Goliath Script Placer: http://ugx-mods.com/forum/index.php/topic,11234.msg125257/topicseen.html#new

"...Christ, people. Learn C, instead of just stringing random characters
together until it compiles (with warnings)..."

-Linus Torvalds
×
daedra descent's Groups
Community Daedra
Community Daedra
daedra descent's Contact & Social LinksBlueSoviet
Oh wait was Daedra posting his own description of the function? I misunderstood, thought he was copy/pasting from one of the doc comments above the functions in the utility file.

Yeah if the information isn't there to parse out in the first place then unfortunately the information will have to be filled in manually by someone. I would prefer if you tested the function before writing the usage because for all we know the function may not even work (and we can label it as such) or be worth documenting.

Just tested using an SP map. Works perfectly.

Code(s) used:
Spoiler: click to open...

Test 1: No eVolume override

Code Snippet
Plaintext
volume_check()
{
ai = undefined;
override_volume = getent("test_volume", "targetname");
while(1)
{
ai = getAIarrayTouchingVolume("allies", "test_volume");

for( i = 0; i < ai.size; i++ )
{
ai[i] dodamage(999999, ai[i].origin);
iprintln("AI has been killed");
}
wait(1);
}
}

Test 2: with eVolume override

Code Snippet
Plaintext
volume_check()
{
ai = undefined;
override_volume = getent("test_volume", "targetname");
while(1)
{
ai = getAIarrayTouchingVolume("allies", "test_volume", override_volume);

for( i = 0; i < ai.size; i++ )
{
ai[i] dodamage(999999, ai[i].origin);
iprintln("AI has been killed");
}
wait(1);
}
}


In-game result:

Spoiler: click to open...
broken avatar :(
×
broken avatar :(
[UGX] Founder
Location: usBay Area, California
Date Registered: 24 June 2011
Last active: 8 months ago
Posts
5,551
Respect
6,691Add +1
Forum Rank
Immortal
Primary Group
UGX Administrator
My Groups
More
My Contact & Social Links
More
×
treminaor's Groups
UGX Administrator
UGX Team Member
UGX Site Moderator Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms.
broken avatar :(
×
broken avatar :(
[UGX] Maintainer (Admin & Programmer)
Location: deFriedrichshafen, Baden-Württemberg, Germany
Date Registered: 29 August 2012
Last active: 7 hours ago
Posts
435
Respect
Forum Rank
Perk Hacker
Primary Group
UGX Administrator
My Groups
More
My Contact & Social Links
More
Personal Quote
Dolphin!
×
Delta's Groups
UGX Administrator
UGX Team Member
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
UGX V.I.P.
UGX V.I.P.
UGX Chat Moderator Has the ability to mute, kick, or ban chat members for being abusive or breaking the rules of the forum.
UGX Site Moderator Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
Delta's Contact & Social Linksthe-deltaugxDeltaItsDeltaigDelta igdeltaigdeltaUGX_DeltaDelta#6147Personal Site
Yay, first update is out and running. Chrome can actually enjoy the Script Reference as well.

Code Snippet
Plaintext
fixed filter button misplacement in chrome
fixed search - it actually works in chrome now

these two fixes will most likey be noticeable in other browsers as well ]=D

fixed "Copy To Clipboard" icon won’t work with a function which hasn’t been visted yet.
will display a refresh icon + wait curser while it’s getting the data [fast and fancy fix^^]

fixed tooltip will mirror to the top and is gone when window height is too low.

fixed filters. Work in chrome now.

tweaking behavior of the search textfield

About content issues ( wrong datatype, description, ... )

As mentioned already, I'll give scripters with a great knowledge access to the dev tool, to update functions in realtime. ( as we UGX dev do )
As this requires the Usermenu ( and most likeley the chat as well ) it will take a bit to grant access to this.

In the meantime, if you notice something dramatically int the core category then please report so we can fix it asap.
broken avatar :(
×
broken avatar :(
Location: usMissouri
Date Registered: 6 August 2013
Last active: 5 months ago
Posts
513
Respect
Forum Rank
Zombie Enslaver
Primary Group
Member
My Contact & Social Links
More
Signature
Projects:
Unnamed Project: 5%
Mutliple Downloadable Items for Mappers: (Released after map releases)
×
GerardS0406's Groups
GerardS0406's Contact & Social LinksGerardS0406Gerard0406GerardS0406MrGerard0406
Can you plz tell the non-donators more about what ugx is doing right now because we've been waiting for a while!
broken avatar :(
×
broken avatar :(
[UGX] Maintainer (Admin & Programmer)
Location: deFriedrichshafen, Baden-Württemberg, Germany
Date Registered: 29 August 2012
Last active: 7 hours ago
Posts
435
Respect
Forum Rank
Perk Hacker
Primary Group
UGX Administrator
My Groups
More
My Contact & Social Links
More
Personal Quote
Dolphin!
×
Delta's Groups
UGX Administrator
UGX Team Member
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
UGX V.I.P.
UGX V.I.P.
UGX Chat Moderator Has the ability to mute, kick, or ban chat members for being abusive or breaking the rules of the forum.
UGX Site Moderator Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
Delta's Contact & Social Linksthe-deltaugxDeltaItsDeltaigDelta igdeltaigdeltaUGX_DeltaDelta#6147Personal Site
Can you plz tell the non-donators more about what ugx is doing right now because we've been waiting for a while!

Well we are busy ;)

The rest of the team is working on UGX Mod v1.1 while I work on other things.
( Donors will get this info first soon enough + after some days everyone else )

There is a new Devlog ( 17th July ) which should be available to public very soon as well
( But everyone is mainly busy and we will share information as soon as it makes sense )

And there is also a small hint on twitter ( 5 days ago ) ;)
broken avatar :(
×
broken avatar :(
Location: usMissouri
Date Registered: 6 August 2013
Last active: 5 months ago
Posts
513
Respect
Forum Rank
Zombie Enslaver
Primary Group
Member
My Contact & Social Links
More
×
GerardS0406's Groups
GerardS0406's Contact & Social LinksGerardS0406Gerard0406GerardS0406MrGerard0406
k thank u!  ;)
broken avatar :(
×
broken avatar :(
Location: gbSomewhere in the UK
Date Registered: 20 July 2013
Last active: 2 months ago
Posts
79
Respect
Forum Rank
Rotting Walker
Primary Group
Donator ♥
My Groups
More
×
AoKMiKeY's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
AoKMiKeY's Contact & Social Links
Hello all, I have never posted on this site before but as a very experience call of duty 5 coder i have decided to test some of the unconfirmed functions in the script reference...

isString( string );

i can confirm this works for call of duty 5 zombies and single player. I am not able to test in MP

code used to test the function
Code Snippet
Plaintext
testString(string, notstring)
{

if( isString(string) )
self iPrintln("true "+string);
else
self iPrintln("false "+string);

if( isString(notstring) )
self iPrintln("true "+notstring);
else
self iPrintln("false "+notstring);
}

when used:
testString( "hello", 10 );

result
"true hello"
"false 10"


From AoKMiKeY :)
broken avatar :(
×
broken avatar :(
[UGX] Founder
Location: usBay Area, California
Date Registered: 24 June 2011
Last active: 8 months ago
Posts
5,551
Respect
6,691Add +1
Forum Rank
Immortal
Primary Group
UGX Administrator
My Groups
More
My Contact & Social Links
More
×
treminaor's Groups
UGX Administrator
UGX Team Member
UGX Site Moderator Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms.
isString( string );
i can confirm this works for call of duty 5 zombies and single player. I am not able to test in MP
Thanks, I have approved the function now.
broken avatar :(
×
broken avatar :(
Location: tr
Date Registered: 1 March 2013
Last active: 4 days ago
Posts
816
Respect
Forum Rank
The Decider
Primary Group
2015 Contest Winner
My Groups
More
My Contact & Social Links
More
Personal Quote
Caw caw caw
×
johndoe's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
2015 Contest Winner
johndoe's Contact & Social Linksmyc153-johndoe


I just realized it lists the functions two times.
Last Edit: August 07, 2014, 12:17:31 am by johndoe
broken avatar :(
×
broken avatar :(
[UGX] Founder
Location: usBay Area, California
Date Registered: 24 June 2011
Last active: 8 months ago
Posts
5,551
Respect
6,691Add +1
Forum Rank
Immortal
Primary Group
UGX Administrator
My Groups
More
My Contact & Social Links
More
×
treminaor's Groups
UGX Administrator
UGX Team Member
UGX Site Moderator Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms.
(Image removed from quote.)

I just realized it lists the functions two times.
Yeah Delta merged two different lists of functions a couple weeks ago and it created some duplicates. He's working on fixing it but right now we are more focused on the new Map Manager update that's in the works.
broken avatar :(
×
broken avatar :(
Location: gbSomewhere in the UK
Date Registered: 20 July 2013
Last active: 2 months ago
Posts
79
Respect
Forum Rank
Rotting Walker
Primary Group
Donator ♥
My Groups
More
×
AoKMiKeY's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
AoKMiKeY's Contact & Social Links
Hello, I have another on for you.

I am a writer on the wiki site http://wiki.modsrepository.com and i have just added this one onto the site after running into it. It works on SP and Zombies also MP.

http://wiki.modsrepository.com/index.php?title=Call_of_Duty_4:_Scripting_Reference_-_Mathl::Abs

Sorry, Cant be asked to write it all again. Please reference the site.

Thank you,
                AoKMiKeY
broken avatar :(
×
broken avatar :(
[UGX] Founder
Location: usBay Area, California
Date Registered: 24 June 2011
Last active: 8 months ago
Posts
5,551
Respect
6,691Add +1
Forum Rank
Immortal
Primary Group
UGX Administrator
My Groups
More
My Contact & Social Links
More
×
treminaor's Groups
UGX Administrator
UGX Team Member
UGX Site Moderator Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms.
Hello, I have another on for you.
Replied to your PM.

 
Loading ...