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

[TF2] Pets


Post New Thread Reply   
 
Thread Tools Display Modes
arthurdead
Senior Member
Join Date: Jul 2013
Old 01-13-2014 , 12:57   Re: [TF2] Pets
Reply With Quote #21

i just give up on this
arthurdead is offline
404UserNotFound
BANNED
Join Date: Dec 2011
Old 01-13-2014 , 15:27   Re: [TF2] Pets
Reply With Quote #22

Hopefully someone can take over this plugin and keep it updated.
404UserNotFound is offline
404UserNotFound
BANNED
Join Date: Dec 2011
Old 01-13-2014 , 19:31   Re: [TF2] Pets
Reply With Quote #23

Attached is a fixed version of the pets plugin.

The pet duplication glitch was caused by changing your class repeatedly in the spawn room.

With a simple addition of the player_changeclass event set to kill the clients pet, the glitch has been successfully fixed!

No modifications to pets.inc was made, so use the one provided in the main post.
Attached Files
File Type: sp Get Plugin or Get Source (pets.sp - 121 views - 17.2 KB)

Last edited by 404UserNotFound; 01-13-2014 at 19:32.
404UserNotFound is offline
arthurdead
Senior Member
Join Date: Jul 2013
Old 01-13-2014 , 19:43   Re: [TF2] Pets
Reply With Quote #24

Quote:
Originally Posted by abrandnewday View Post
Attached is a fixed version of the pets plugin.

The pet duplication glitch was caused by changing your class repeatedly in the spawn room.

With a simple addition of the player_changeclass event set to kill the clients pet, the glitch has been successfully fixed!

No modifications to pets.inc was made, so use the one provided in the main post.
nice
arthurdead is offline
arthurdead
Senior Member
Join Date: Jul 2013
Old 01-13-2014 , 20:43   Re: [TF2] Pets
Reply With Quote #25

i am working on configs file right now
arthurdead is offline
404UserNotFound
BANNED
Join Date: Dec 2011
Old 01-13-2014 , 20:44   Re: [TF2] Pets
Reply With Quote #26

Quote:
Originally Posted by arthurdead View Post
i am working on configs file right now
Updated my prior post with this:

Code:
L 01/13/2014 - 20:36:33: [SM] Native "SetEntPropEnt" reported: Entity -1 (-1) is invalid
L 01/13/2014 - 20:36:33: [SM] Displaying call stack trace for plugin "pets.smx":
L 01/13/2014 - 20:36:33: [SM]   [0]  Line 387, C:\Coding\addons\sourcemod\scripting\pets.sp::CreateProjectile()
L 01/13/2014 - 20:36:33: [SM]   [1]  Line 344, C:\Coding\addons\sourcemod\scripting\pets.sp::PetThink()
Constant spam. I can't find any other tf_projectile entities that pets can "throw", so I'm thinking of removing the attack functions from my version and just leaving the attack animations in.

Last edited by 404UserNotFound; 01-13-2014 at 20:45.
404UserNotFound is offline
arthurdead
Senior Member
Join Date: Jul 2013
Old 01-13-2014 , 20:47   Re: [TF2] Pets
Reply With Quote #27

Quote:
Originally Posted by abrandnewday View Post
Updated my prior post with this:

Code:
L 01/13/2014 - 20:36:33: [SM] Native "SetEntPropEnt" reported: Entity -1 (-1) is invalid
L 01/13/2014 - 20:36:33: [SM] Displaying call stack trace for plugin "pets.smx":
L 01/13/2014 - 20:36:33: [SM]   [0]  Line 387, C:\Coding\addons\sourcemod\scripting\pets.sp::CreateProjectile()
L 01/13/2014 - 20:36:33: [SM]   [1]  Line 344, C:\Coding\addons\sourcemod\scripting\pets.sp::PetThink()
Constant spam. I can't find any other tf_projectile entities that pets can "throw", so I'm thinking of removing the attack functions from my version and just leaving the attack animations in.
fixed maybe
arthurdead is offline
404UserNotFound
BANNED
Join Date: Dec 2011
Old 01-13-2014 , 20:48   Re: [TF2] Pets
Reply With Quote #28

Quote:
Originally Posted by arthurdead View Post
fixed maybe
Hopefully *fingers crossed* I like this plugin a lot.

Once you and I have found and fixed all the issues, you should really head over to the New Plugins area, and make a new thread for this so that it's a "public" release!

Last edited by 404UserNotFound; 01-13-2014 at 20:48.
404UserNotFound is offline
arthurdead
Senior Member
Join Date: Jul 2013
Old 01-13-2014 , 20:49   Re: [TF2] Pets
Reply With Quote #29

Quote:
Originally Posted by abrandnewday View Post
Hopefully *fingers crossed* I like this plugin a lot.

Once you and I have found and fixed all the issues, you should really head over to the New Plugins area, and make a new thread for this so that it's a "public" release!
i want finish config files first
arthurdead is offline
404UserNotFound
BANNED
Join Date: Dec 2011
Old 01-13-2014 , 21:58   Re: [TF2] Pets
Reply With Quote #30

Quote:
Originally Posted by arthurdead View Post
i want finish config files first
Found another duplication glitch. Caused by the post_inventory_application event (which hasn't been coded in).

When you change items in a spawn room and respawn, your Pet duplicates itself leaving an idle copy.

Just add in this code to fix it:

PHP Code:
// Put this inside OnPluginStart
HookEvent("post_inventory_application"Event_InventoryEventHookMode_Post);


// Then this goes wherever
public Action:Event_Inventory(Handle:event, const String:name[], bool:dontBroadcast)
{
    new 
client GetClientOfUserId(GetEventInt(event"userid"));
    if(
petType[client] != 0)
    {
        
KillPet(client);
    }

Now I believe I have found and patched all pet duplication causes.

Finally, one thing you should add to the PetThink(client) function is a check to see if the player is a Spy. When the Spy cloaks, have the pet change its model "alpha" to 0 to make it go invis, otherwise the pet can give away the location of the Spy.

Last edited by 404UserNotFound; 01-13-2014 at 22:01.
404UserNotFound 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 03:55.


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