• SPet Mod 2
    217 replies, posted
This is a complete rewrite of my old petmod. In this mod you pretty much adopt a pet and hang out with it. You can feed it, tell it to attack players, tell it to stay, put it on a leash, and heal it if it's getting attacked. Their is also an age system so your pet can die if it's really old. Your pet can also die if you don't feed it. You could also color the pets egg so once it hatchs your pet will have the same color. [url=http://www.garrysmod.org/downloads/?a=view&id=34406][img]http://www.garrysmod.org/img/?t=dll&id=34406[/img][/url] Temp fix for a problem: [url]http://forums.facepunchstudios.com/showpost.php?p=9469228&postcount=28[/url] :siren: If you have an old version, delete the old version before installing the new version :siren: [b]Pictures[/b]: [img]http://img223.imageshack.us/img223/4509/78869455mn0.jpg[/img] [img]http://img223.imageshack.us/img223/3392/54798204le4.jpg[/img] [img]http://img401.imageshack.us/img401/7738/28890515wo7.jpg[/img] [img]http://img228.imageshack.us/img228/1165/95148677ab9.jpg[/img] [img]http://img410.imageshack.us/img410/7890/35059097gr0.jpg[/img] [b]Pet Commands[/b]: [list=1] [*][b]/spm[/b] - Shows the version info + available commands. [*][b]/petinfo[/b] - Shows you your pets name, age, hp, gender, and type [*][b]/adopt[/b] pet - You receive a pet egg [*][b]/adoptinfo[/b] - Shows you a list of pets you can adopt [*][b]/name[/b] name - Renames your pet to name [*][b]/follow[/b] - Your pet will follow you (Toggle). [*][b]/move[/b] - Your pet will move to the spot you are looking at. [*][b]/leash[/b] [list=1] [*]/leash radius - Your pet will be leashed in a radius of radius [*]/leash hide - Hides your pets 3d leash radius [*]/leash show - Shows your pets 3d leash radius [/list] [*][b]/feed[/b] - Feeds your pet so it won't die. You must be near your pet when using this command. [*][b]/stay[/b] - Your pet will stay in its current location. [*][b]/heal[/b] - Heals your pet (Can be used once every couple seconds). [*][b]/attack[/b] player - Your pet will attack / not attack player (It's a toggle). [*][b]/release[/b] - Releases your pet. [/list] [b]Admin Only[/b]: [list=1] [*][b]/givepet[/b] player pet - Gives player a pet egg. [*][b]/reloadcommands[/b] - Reloads all chat commands. [/list] [b]Installation[/b]: Drag and Drop the Spacetechs Pet Mod folder into your addons folder. [b]Configuring[/b]: Open "Spacetechs Pet Mod\lua\SPM\Shared\Config.lua" and edit variables. [b]Change Log[/b]: [list] [*][u]2.0[/u] -Rewrote the whole mod [/list] :siren: The follow and move commands might not work on maps that don't have npc nodes :siren: Special thanks to G3X and Boofy for letting me use their servers for testing. Also thank LuaPineapple for the leash 3d radius thing.
It was a pleasure helping you straighten out some bugs. Thanks for letting me beta test this on my server. Nothing comes close to zapping you with my Vortigaunt. :v:
Nice, this was a privalige to host your mod on my server, it was really good and it's one hell of a mod! Well done!
would be nice to have a stool or something to make it easier to use
I loved the old pet mod, I'm going to test it out now. :)
[QUOTE=Ankan]would be nice to have a stool or something to make it easier to use[/QUOTE] How would a stool make it easier to use?
Ooh, looks awesome, downloading. Did you fix the strider?
[QUOTE=Hiccuper]Ooh, looks awesome, downloading. Did you fix the strider?[/QUOTE] Their was nothing to fix with the strider. The strider is more or less a half life 2 problem and/or an ai node problem.
like a pet adoption tool
Awesome! Downloading now.
Nice.
I love this addon! My server now has this.
Grand. Thanks.
Now we need a mingebag pet. Lol.
I love you.
Nice release! :D Can't wait to get home from vacation and try this. How did the effect come out for the leash?
[QUOTE=PC Camp]Nice release! :D Can't wait to get home from vacation and try this. How did the effect come out for the leash?[/QUOTE] I ended up asking LPine for help and he knew what to do. It took a while.
Ahh well that's good to hear. Did I help one bit? Like getting you in the right direction.
[QUOTE=PC Camp]Ahh well that's good to hear. Did I help one bit? Like getting you in the right direction.[/QUOTE] Yea you did. :)
Woah sweet. I'll take a look at the code and see what you did.
Cool you rewrote it, always wanted eggs. I was thinking about taking up modeling and animation and make simple animals.
Glad it got redone, I thought it was dead! Well done, Well done indeed, to BOOFY, G3X, LPine, And last but certainly not least, Spacetech! :v: :D Have my babies and :20bux:
Can I fix it so my pet doesn't die? That's what I hated about the old one, I always got so attached to my dear Lamarr :crying:
[QUOTE=Grenadiac]Can I fix it so my pet doesn't die? That's what I hated about the old one, I always got so attached to my dear Lamarr :crying:[/QUOTE] Pets dieing is life. Just readopt after it dies :v:
Sweet man, i was waiting for this to get back to work. :v:
Testing your addon I came across some minor things: I destroyed my egg with a gun and I got the following error message. [code] entities/spm_egg/init.lua:66: attempt to index field '?' (a nil value) [/code] It would not let me adopt another pet after that. Also after a time (I'm assuming would have been when the egg would have hatched...) I got this: [code] Timer Error: entities/spm_egg/init.lua:37: attempt to index field 'Entity' (a nil value) [/code] I had to restart the map to adopt another pet. Overall, good work, just thought I'd point out what I found. :)
Cool, this looks fun :D
[QUOTE=MrPresident]Testing your addon I came across some minor things: I destroyed my egg with a gun and I got the following error message. [code] entities/spm_egg/init.lua:66: attempt to index field '?' (a nil value) [/code] It would not let me adopt another pet after that. Also after a time (I'm assuming would have been when the egg would have hatched...) I got this: [code] Timer Error: entities/spm_egg/init.lua:37: attempt to index field 'Entity' (a nil value) [/code] I had to restart the map to adopt another pet. Overall, good work, just thought I'd point out what I found. :)[/QUOTE] Thanks for letting me know. I'll fix it on next release. I'll just wait and see if anyone find any other bugs. A temp fix would be opening up "Spacetechs Pet Mod\lua\entities\spm_egg\init.lua" and replace the line [lua]SPM.Players[self.Player].Egg = false[/lua] with [lua]SPM.Players[self.Entity:GetNetworkedEntity("Player")].Egg = false[/lua]
Alright! A new release! You make a great mod Spacetech.
Thanks for that Space. =)
Sorry, you need to Log In to post a reply to this thread.