Raised This Month: $51 Target: $400
 12% 

Why Saxxy weapon not work for me? :(


Post New Thread Reply   
 
Thread Tools Display Modes
Leonardo
Veteran Member
Join Date: Feb 2010
Location: 90's
Old 09-18-2013 , 12:45   Re: Why Saxxy weapon not work for me? :(
Reply With Quote #11

Quote:
Originally Posted by Powerlord View Post
See? tf2items_giveweapons.sp even agrees with me.
include/string.inc:111
PHP Code:
stock bool:StrEqual(const String:str1[], const String:str2[], bool:caseSensitive=true)
{
    return (
strcmp(str1str2caseSensitive) == 0);

EDIT:
if you still don't get it
PHP Code:
    if (strcmp(weaponClassname"saxxy"false) != 0flags |= FORCE_GENERATION
is same as
PHP Code:
    if ( !StrEqual(weaponClassname"saxxy"false) ) flags |= FORCE_GENERATION

Last edited by Leonardo; 09-18-2013 at 13:19.
Leonardo is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 09-18-2013 , 12:51   Re: Why Saxxy weapon not work for me? :(
Reply With Quote #12

Quote:
Originally Posted by Powerlord View Post
saxxy is a meta-class and requires FORCE_GENERATION to work.
meta-classes require a LACK of FORCE_GENERATION to work.
__________________
asherkin is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 09-18-2013 , 13:47   Re: Why Saxxy weapon not work for me? :(
Reply With Quote #13

Quote:
Originally Posted by asherkin View Post
meta-classes require a LACK of FORCE_GENERATION to work.
Oh whoops... I'm having a slight case on the Mondays today (seriously, my brain is convinced that the past week has been Friday, Thursday, Saturday, Saturday, Wednesday, Thursday, and Monday (today) in that order).

While we're on the subject, when is FORCE_GENERATION needed?
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 09-18-2013 at 13:49.
Powerlord is offline
Root_
Veteran Member
Join Date: Jan 2012
Location: ryssland
Old 09-18-2013 , 14:22   Re: Why Saxxy weapon not work for me? :(
Reply With Quote #14

I think FORCE_GENERATION should be used all the times.
__________________


dodsplugins.com - Plugins and Resources for Day of Defeat
http://twitch.tv/zadroot
Root_ is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 09-19-2013 , 13:09   Re: Why Saxxy weapon not work for me? :(
Reply With Quote #15

Quote:
Originally Posted by Root_ View Post
I think FORCE_GENERATION should be used all the times.
and yet meta-classnames like saxxy and tf_weapon_shotgun show that it shouldn't be done all the time.

I'm curious as to exactly when it should be used... since it defaults to off, it seems to me that it should only be enabled when needed... which is why I want to know when it's needed.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
barel31
Member
Join Date: Mar 2011
Old 09-19-2013 , 14:34   Re: Why Saxxy weapon not work for me? :(
Reply With Quote #16

any help plz?
barel31 is offline
Oshizu
Veteran Member
Join Date: Nov 2012
Location: Warsaw
Old 09-23-2013 , 12:36   Re: Why Saxxy weapon not work for me? :(
Reply With Quote #17

If using TF2Items Extension includes is too difficult for you to give players Saxxy
You should try TF2Items Give Weapon includes
It's quite simple
PHP Code:
TF2Items_GiveWeapon(client423// Will give player saxxy 
__________________
...
Oshizu 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 12:58.


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