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

SourcePets v1.185 (Updated: 2015-03-15)


Post New Thread Reply   
 
Thread Tools Display Modes
Nanochip
Senior Member
Join Date: Jan 2014
Old 03-30-2015 , 18:30   Re: SourcePets v1.185 (Updated: 2015-03-15)
Reply With Quote #41

Quote:
Originally Posted by abrandnewday View Post
Oh wait, I just viewed the source code. It's set up exactly like the one Arthurdead released in the Scripting section a while back, that I tried helping him with.

There's an enum for pet content, but it uses a config file as opposed to an include (which is what Arthur's version used, pain in the ass to modify, so I moved the content of the include directly into the plugin itself)

Defined heights are the same....actually now that I think back, Arthurdead said his was a modified version of Noodleboy's (or something along those lines). That's why this and his are similarly scripted.


Also, I see why the plugin is having issues with the menu not working. You have these "TF2_OnWaitingForPlayersStart" and "TF2_OnWaitingForPlayersEnd" checks that I've never seen used before (ever), and they set a true/false bool for MenuNotUsable.

Why is the menu only enabled on the start of waiting for players, then disabled when the game starts? Get rid of that bool check completely, and that'll solve the problem of the menu not appearing.

Shit to get rid of



Oh, and what is "#define PET_HUGCRAB 1". It only appears in the code once, as that define and it doesn't get used anywhere.
Thanks for the fix with the menus. For anyone wanting this fix, download here:
Attached Files
File Type: sp Get Plugin or Get Source (pets_tf2.sp - 325 views - 41.8 KB)
__________________
Nanochip is offline
Chdata
Veteran Member
Join Date: Aug 2012
Location: Computer Chair, Illinois
Old 03-31-2015 , 02:04   Re: SourcePets v1.185 (Updated: 2015-03-15)
Reply With Quote #42

How do these pets walk on the ground?

Is it still bad like before? With them more or less floating through air retaining a Z offset from you?
__________________
Chdata is offline
nguyenbaodanh
AlliedModders Donor
Join Date: Jun 2007
Location: HCMC, Vietnam
Old 03-31-2015 , 03:13   Re: SourcePets v1.185 (Updated: 2015-03-15)
Reply With Quote #43

only crow and seagull worh in CSGO
__________________
nguyenbaodanh is offline
Nanochip
Senior Member
Join Date: Jan 2014
Old 03-31-2015 , 08:57   Re: SourcePets v1.185 (Updated: 2015-03-15)
Reply With Quote #44

Quote:
Originally Posted by Chdata View Post
How do these pets walk on the ground?

Is it still bad like before? With them more or less floating through air retaining a Z offset from you?
Same as before, however I'd say this plugin makes it look like they're actually walking. At least more so than the previous attempts of a pet plugin.
__________________
Nanochip is offline
Chdata
Veteran Member
Join Date: Aug 2012
Location: Computer Chair, Illinois
Old 03-31-2015 , 09:08   Re: SourcePets v1.185 (Updated: 2015-03-15)
Reply With Quote #45

Darn. My one request is a ball that can roll across the ground + slopes. Smoothly.
__________________

Last edited by Chdata; 03-31-2015 at 09:08.
Chdata is offline
Nanochip
Senior Member
Join Date: Jan 2014
Old 03-31-2015 , 09:56   Re: SourcePets v1.185 (Updated: 2015-03-15)
Reply With Quote #46

Oh my , trying to picture how that would be done, lol.
__________________
Nanochip is offline
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 03-31-2015 , 10:16   Re: SourcePets v1.185 (Updated: 2015-03-15)
Reply With Quote #47

The only way to have "smooth" pets that follow you hostage slyle is to (1) make them hostages in css (2) use the robot entity in tf2, or (3) use tracktrains.

2 and 3 are the same, basicslly. 1 and 2 require nav meshes. 2 and 3 require a lot of clever workarounds to get running stable and properly (though its possible).

3 will be the best overall option, just make the tank constantly go toward the path_track parented to the player (or trace down and teleport the paths under the player above ground, so it follows).
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.
friagram is offline
MyBack
AlliedModders Donor
Join Date: Oct 2012
Location: Indiana, United States
Old 03-31-2015 , 10:43   Re: SourcePets v1.185 (Updated: 2015-03-15)
Reply With Quote #48

Quote:
Originally Posted by nguyenbaodanh View Post
only crow and seagull worh in CSGO
As far as stock animal models in CS:GO goes, There's also a pigeon. The elephant and giraff stuffed animals have no animations, but are better than nothing at least
MyBack is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 03-31-2015 , 11:30   Re: SourcePets v1.185 (Updated: 2015-03-15)
Reply With Quote #49

Quote:
Originally Posted by friagram View Post
The only way to have "smooth" pets that follow you hostage slyle is to (1) make them hostages in css (2) use the robot entity in tf2, or (3) use tracktrains.

2 and 3 are the same, basicslly. 1 and 2 require nav meshes. 2 and 3 require a lot of clever workarounds to get running stable and properly (though its possible).

3 will be the best overall option, just make the tank constantly go toward the path_track parented to the player (or trace down and teleport the paths under the player above ground, so it follows).
You forgot using projectiles, with velocity..
Mitchell is offline
Nanochip
Senior Member
Join Date: Jan 2014
Old 05-02-2015 , 21:53   Re: SourcePets v1.185 (Updated: 2015-03-15)
Reply With Quote #50

Went ahead and implemented client prefs:
Attached Files
File Type: sp Get Plugin or Get Source (pets_tf2.sp - 451 views - 43.8 KB)
__________________

Last edited by Nanochip; 05-03-2015 at 01:27. Reason: Now remembers the name, and disables pet whenever in spec or observer.
Nanochip 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 04:23.


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