Raised This Month: $ Target: $400
 0% 

[DEV] *DEAD* TF2ItemsInfo v1.8.17.7 (21 Nov 2013)


Post New Thread Reply   
 
Thread Tools Display Modes
11530
Veteran Member
Join Date: Sep 2011
Location: Underworld
Old 11-08-2012 , 11:52   Re: [DEV] TF2 Items Info v1.8.13 (29.10.12)
Reply With Quote #81

Quote:
Originally Posted by Haruno Sakura View Post
Where can i get slot names from?
I need misc 1 slot name & misc 2 slot name
it would be great if someone told me names of them
Code:
switch( TF2ItemSlot:iSlot )
{
	case TF2ItemSlot_Primary:	strcopy( strSlot, sizeof(strSlot), "primary" );
	case TF2ItemSlot_Secondary:	strcopy( strSlot, sizeof(strSlot), "secondary" );
	case TF2ItemSlot_Melee:		strcopy( strSlot, sizeof(strSlot), "melee" );
	case TF2ItemSlot_Building:	strcopy( strSlot, sizeof(strSlot), "building" );
	case TF2ItemSlot_PDA1:		strcopy( strSlot, sizeof(strSlot), "pda" );
	case TF2ItemSlot_PDA2:		strcopy( strSlot, sizeof(strSlot), "pda2" );
	//case TF2ItemSlot_Head:		strcopy( strSlot, sizeof(strSlot), "head" );
	case TF2ItemSlot_Misc:		strcopy( strSlot, sizeof(strSlot), "misc" );
	case TF2ItemSlot_Action:	strcopy( strSlot, sizeof(strSlot), "action" );
}
Unrelated Edit: Small error in OP:

Quote:
Originally Posted by Leonardo View Post
Getting item information
PHP Code:
decl String:strQuality[16];
TF2II_GetItemSlotNameiItemDefIDstrQualitysizeof(strQuality) );
// result: "unique"
new iQuality TF2II_GetQualityByNamestrQuality );
// result: TF2ItemQuality_Unique (16) 
__________________

Last edited by 11530; 11-08-2012 at 12:07.
11530 is offline
Haruno Sakura
Junior Member
Join Date: Oct 2012
Old 11-08-2012 , 11:58   Re: [DEV] TF2 Items Info v1.8.13 (29.10.12)
Reply With Quote #82

Quote:
Originally Posted by 11530 View Post
Code:
switch( TF2ItemSlot:iSlot )
{
    case TF2ItemSlot_Primary:    strcopy( strSlot, sizeof(strSlot), "primary" );
    case TF2ItemSlot_Secondary:    strcopy( strSlot, sizeof(strSlot), "secondary" );
    case TF2ItemSlot_Melee:        strcopy( strSlot, sizeof(strSlot), "melee" );
    case TF2ItemSlot_Building:    strcopy( strSlot, sizeof(strSlot), "building" );
    case TF2ItemSlot_PDA1:        strcopy( strSlot, sizeof(strSlot), "pda" );
    case TF2ItemSlot_PDA2:        strcopy( strSlot, sizeof(strSlot), "pda2" );
    //case TF2ItemSlot_Head:        strcopy( strSlot, sizeof(strSlot), "head" );
    case TF2ItemSlot_Misc:        strcopy( strSlot, sizeof(strSlot), "misc" );
    case TF2ItemSlot_Action:    strcopy( strSlot, sizeof(strSlot), "action" );
}
Thanks but unfortunely misc works on all 2 miscs not on only one. Is there anything i can do to it apply only for 1st misc or 2nd misc ?
Haruno Sakura is offline
Leonardo
Veteran Member
Join Date: Feb 2010
Location: 90's
Old 11-08-2012 , 12:35   Re: [DEV] TF2 Item Info v1.2 (15.04.12)
Reply With Quote #83

Quote:
Originally Posted by 11530 View Post
Code:
switch( TF2ItemSlot:iSlot )
{
	case TF2ItemSlot_Primary:	strcopy( strSlot, sizeof(strSlot), "primary" );
	case TF2ItemSlot_Secondary:	strcopy( strSlot, sizeof(strSlot), "secondary" );
	case TF2ItemSlot_Melee:		strcopy( strSlot, sizeof(strSlot), "melee" );
	case TF2ItemSlot_Building:	strcopy( strSlot, sizeof(strSlot), "building" );
	case TF2ItemSlot_PDA1:		strcopy( strSlot, sizeof(strSlot), "pda" );
	case TF2ItemSlot_PDA2:		strcopy( strSlot, sizeof(strSlot), "pda2" );
	//case TF2ItemSlot_Head:		strcopy( strSlot, sizeof(strSlot), "head" );
	case TF2ItemSlot_Misc:		strcopy( strSlot, sizeof(strSlot), "misc" );
	case TF2ItemSlot_Action:	strcopy( strSlot, sizeof(strSlot), "action" );
}
Unrelated Edit: Small error in OP:
Quote:
Originally Posted by Leonardo View Post
Getting item information
PHP Code:
decl String:strQuality[16];
TF2II_GetItemSlotNameiItemDefIDstrQualitysizeof(strQuality) );
// result: "unique"
new iQuality TF2II_GetQualityByNamestrQuality );
// result: TF2ItemQuality_Unique (16) 
thanks

@Haruno Sakura,
no. they're using same slot.

Last edited by Leonardo; 11-08-2012 at 13:54.
Leonardo is offline
grimd34th
SourceMod Donor
Join Date: Jun 2011
Old 11-11-2012 , 20:46   Re: [DEV] TF2 Items Info v1.8.13 (29.10.12)
Reply With Quote #84

can you please update your updatelist its spamming my updater.log
grimd34th is offline
Leonardo
Veteran Member
Join Date: Feb 2010
Location: 90's
Old 11-30-2012 , 12:17   Re: [DEV] TF2 Items Info v1.8.14 (30.11.12)
Reply With Quote #85

I wondering why nobody asked me to add this:
bump to version 1.8.14:
addad TF2II_GetItemAttributes function (returns Array of attributes)
Leonardo is offline
Huntereb
>:) (:<
Join Date: Jul 2012
Old 11-30-2012 , 14:33   Re: [DEV] TF2 Items Info v1.8.14 (30.11.12)
Reply With Quote #86

Quote:
Originally Posted by Leonardo View Post
I wondering why nobody asked me to add this:
bump to version 1.8.14:
addad TF2II_GetItemAttributes function (returns Array of attributes)
Ahhhh, you changed your profile picture and now you look gaaa-(ugly/stupid meaning of this word)-aaay.

Thanks for the update also, or something.
Huntereb is offline
Leonardo
Veteran Member
Join Date: Feb 2010
Location: 90's
Old 11-30-2012 , 16:11   Re: [DEV] TF2 Items Info v1.8.14 (30.11.12)
Reply With Quote #87

Quote:
Originally Posted by Huntereb View Post
Ahhhh, you changed your profile picture and now you look gaaa-(ugly/stupid meaning of this word)-aaay.
it's just my way to say Thanks to my fiancee who made this picture.

and one more note about new function: be careful, do CloneArray
Code:
new Handle:hAttributes = CreateArray();
new Handle:hOldAttributes = TF2II_GetItemAttributes( iItemDefID );
if( hOldAttributes != INVALID_HANDLE )
{
    hAttributes = CloneArray( hOldAttributes );
    CloseHandle( hOldAttributes ):
}
EDIT:
no need to do this anymore (since v1.8.15)
__________________

Last edited by Leonardo; 12-07-2012 at 04:33.
Leonardo is offline
FlaminSarge
Veteran Member
Join Date: Jul 2010
Old 12-03-2012 , 08:55   Re: [DEV] TF2 Items Info v1.8.14 (30.11.12)
Reply With Quote #88

Requesting natives to get an item's style stuffs.
__________________
Bread EOTL GunMettle Invasion Jungle Inferno 64-bit will break everything. Don't even ask.

All plugins: Randomizer/GiveWeapon, ModelManager, etc.
Post in plugin threads with questions.
Steam is for playing games.
You will be fed to javalia otherwise.
Psyduck likes replays.
FlaminSarge is offline
questionablysober
Junior Member
Join Date: Jan 2013
Old 02-06-2013 , 23:55   Re: [DEV] TF2 Items Info v1.8.15 (07.12.12)
Reply With Quote #89

So do you have a way of making a plug-in that allows people to read from the MvM_Uprades.txt of the server instead of trying to match it with the client side?
questionablysober is offline
[PL]Luki
Member
Join Date: Jun 2009
Old 04-05-2013 , 17:05   Re: [DEV] TF2 Items Info v1.8.15 (07.12.12)
Reply With Quote #90

Any chances of getting a function to read items' 'capabilities' directly?
__________________
TF2 Backpack Image Generator: http://luki.net.pl/tfsig.php
I do private (mostly paid) plugin requests.

Last edited by [PL]Luki; 04-05-2013 at 17:13.
[PL]Luki is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:54.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode