Raised This Month: $32 Target: $400
 8% 

FF2 Freak Fortress 2 1.10.14 Released


Post New Thread Reply   
 
Thread Tools Display Modes
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 05-16-2014 , 23:56   Re: Freak Fortress 2 1.9.3 Released (and 1.10.0 betas)
Reply With Quote #671

Quote:
Originally Posted by friagram View Post
It's had both removeplayeritem and acceptentityinput kill for a long while now, I do this:

PHP Code:
stock TF2_RemoveWeaponSlot(clientslot)
{
    
decl ew;
    new 
weaponIndex;
    while ((
weaponIndex GetPlayerWeaponSlot(clientslot)) != -1)
    {
        
ew GetEntPropEnt(weaponIndexProp_Send"m_hExtraWearable");
        if(
IsValidEntity(ew))
        {
            
TF2_RemoveWearable(clientew);
        }
        
RemovePlayerItem(clientweaponIndex);
        
AcceptEntityInput(weaponIndex"Kill");
    }

It seems to work on everything, but bot killers.
I've tried not using acceptentitinput kill, removeedict, etc, nothing gets rid of them.
I think, I'll try just using removeplayeritem, but I think it does nothing.. because when I tried just doing it, nothing happens at all. Don't know if it's broken on windows, or linux, or both, or what.

Not calling removewearable on the fob, also seems to do nothing, so I've no idea.
You may also need to handle "m_hExtraWearableViewModel"
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 05-17-2014 , 00:10   Re: Freak Fortress 2 1.9.3 Released (and 1.10.0 betas)
Reply With Quote #672

Hmm, i think i tested that before, but it was always -1
I'll check again later.
I even tried findentitybyclassname on all tf_wearabales.. And removing the ones with the fob model. I guess it's possible that there is something higher up the higherarchy that needs to be removed, such as a viewmodel
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.
friagram is offline
hamza47sohail
Senior Member
Join Date: Jan 2014
Old 05-17-2014 , 14:21   Re: Freak Fortress 2 1.9.3 Released (and 1.10.0 betas)
Reply With Quote #673

Wliu how is 1.10 coming?
Keep up the good work
hamza47sohail is offline
Wliu
Veteran Member
Join Date: Apr 2013
Old 05-17-2014 , 20:59   Re: Freak Fortress 2 1.9.3 Released (and 1.10.0 betas)
Reply With Quote #674

Trying to fix an exploit where people can spawn into blue team whenever they feel like it. Then it'll be good to go.
__________________
~Wliu
Wliu is offline
Ojing
Junior Member
Join Date: Apr 2014
Old 05-18-2014 , 01:29   Re: Freak Fortress 2 1.9.3 Released (and 1.10.0 betas)
Reply With Quote #675

*Question about queue points error*

If hale give up or exit the game, queue points is give ordinarily.
but when users kill hale, there was error

[SM] Displaying call stack trace for plugin "freak_fortress_2.smx":
L 05/18/2014 - 14:07:26: [SM] [0] Line 2330, tf\addons\sourcemod\scripting\freak_fortress_ 2.sp::event_round_end()

and queue points are not given

ps) I use 1.10.0version which i download at github

https://github.com/50DKP/FF2-Official

Last edited by Ojing; 05-18-2014 at 01:33.
Ojing is offline
Wliu
Veteran Member
Join Date: Apr 2013
Old 05-18-2014 , 08:24   Re: Freak Fortress 2 1.9.3 Released (and 1.10.0 betas)
Reply With Quote #676

Quote:
Originally Posted by Ojing View Post
*Question about queue points error*

If hale give up or exit the game, queue points is give ordinarily.
but when users kill hale, there was error

[SM] Displaying call stack trace for plugin "freak_fortress_2.smx":
L 05/18/2014 - 14:07:26: [SM] [0] Line 2330, tf\addons\sourcemod\scripting\freak_fortress_ 2.sp::event_round_end()

and queue points are not given

ps) I use 1.10.0version which i download at github

https://github.com/50DKP/FF2-Official
Thanks, will investigate.
Could you display the full error please? There's usually at least 3 lines (so I can know what's going on-invalid index, etc).
__________________
~Wliu

Last edited by Wliu; 05-18-2014 at 08:25.
Wliu is offline
Eggman
Senior Member
Join Date: Jan 2010
Old 05-19-2014 , 06:53   Re: Freak Fortress 2 1.9.3 Released (and 1.10.0 betas)
Reply With Quote #677

Some little bug:
Code:
public Action:TF2_CalcIsAttackCritical(client, weapon, String:weaponname[], &bool:result)
{
	if(Enabled && IsBoss(client) && CheckRoundState()==1 && !TF2_IsPlayerCritBuffed(client) && BossCrits)
	{
		result=false;
		return Plugin_Changed;
	}
	return Plugin_Continue;
}
It shall be && !BossCrits, because cvar says "Can Boss get crits?", and 1 must mean "yes, he has"
Attached Files
File Type: sp Get Plugin or Get Source (freak_fortress_2.sp - 82 views - 215.3 KB)

Last edited by Eggman; 05-19-2014 at 06:55.
Eggman is offline
Wliu
Veteran Member
Join Date: Apr 2013
Old 05-19-2014 , 15:30   Re: Freak Fortress 2 1.9.3 Released (and 1.10.0 betas)
Reply With Quote #678

Whoops.
__________________
~Wliu
Wliu is offline
Wliu
Veteran Member
Join Date: Apr 2013
Old 05-19-2014 , 18:25   Re: Freak Fortress 2 1.9.3 Released (and 1.10.0 betas)
Reply With Quote #679

@ojing:
Have you updated your translation files? That's probably what's happening.

@Eggman:
Fixed, will commit in a few minutes.
__________________
~Wliu

Last edited by Wliu; 05-19-2014 at 18:26.
Wliu is offline
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 05-20-2014 , 16:00   Re: Freak Fortress 2 1.9.3 Released (and 1.10.0 betas)
Reply With Quote #680

What's this, eggman lives?
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.
friagram 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 00:07.


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