Your Ad Here

Subscribe
 Post #1
 20th March 2008
Spacetech's Avatar
January 2006
879 Posts
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.


Temp fix for a problem: http://forums.facepunchstudios.com/s...8&postcount=28

If you have an old version, delete the old version before installing the new version

Pictures:






Pet Commands:
  1. /spm - Shows the version info + available commands.
  2. /petinfo - Shows you your pets name, age, hp, gender, and type
  3. /adopt pet - You receive a pet egg
  4. /adoptinfo - Shows you a list of pets you can adopt
  5. /name name - Renames your pet to name
  6. /follow - Your pet will follow you (Toggle).
  7. /move - Your pet will move to the spot you are looking at.
  8. /leash
    1. /leash radius - Your pet will be leashed in a radius of radius
    2. /leash hide - Hides your pets 3d leash radius
    3. /leash show - Shows your pets 3d leash radius
  9. /feed - Feeds your pet so it won't die. You must be near your pet when using this command.
  10. /stay - Your pet will stay in its current location.
  11. /heal - Heals your pet (Can be used once every couple seconds).
  12. /attack player - Your pet will attack / not attack player (It's a toggle).
  13. /release - Releases your pet.
Admin Only:
  1. /givepet player pet - Gives player a pet egg.
  2. /reloadcommands - Reloads all chat commands.

Installation: Drag and Drop the Spacetechs Pet Mod folder into your addons folder.

Configuring: Open "Spacetechs Pet Mod\lua\SPM\Shared\Config.lua" and edit variables.

Change Log:
  • 2.0
    -Rewrote the whole mod

The follow and move commands might not work on maps that don't have npc nodes

Special thanks to G3X and Boofy for letting me use their servers for testing.
Also thank LuaPineapple for the leash 3d radius thing.
 Post #2
 20th March 2008
GeXeH2's Avatar
February 2008
30 Posts
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.
 Post #3
 20th March 2008
BOOFY's Avatar
May 2007
114 Posts
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!
 Post #4
 20th March 2008
Ankan's Avatar
October 2007
729 Posts
would be nice to have a stool or something to make it easier to use
 Post #5
 20th March 2008
Gold Member
CowThing's Avatar
November 2006
2,738 Posts
I loved the old pet mod, I'm going to test it out now. :)
 Post #6
 20th March 2008
Spacetech's Avatar
January 2006
879 Posts
Ankan posted:
would be nice to have a stool or something to make it easier to use
How would a stool make it easier to use?
 Post #7
 20th March 2008
Hiccuper's Avatar
August 2007
1,932 Posts
Ooh, looks awesome, downloading.
Did you fix the strider?
 Post #8
 20th March 2008
Spacetech's Avatar
January 2006
879 Posts
Hiccuper posted:
Ooh, looks awesome, downloading.
Did you fix the strider?
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.
 Post #9
 20th March 2008
Ankan's Avatar
October 2007
729 Posts
like a pet adoption tool
 Post #10
 20th March 2008
Gold Member
*Freezorg*'s Avatar
February 2008
4,175 Posts
Awesome! Downloading now.
 Post #11
 20th March 2008
Orange Blah's Avatar
March 2007
1,172 Posts
Nice.
 Post #12
 20th March 2008
Dennab
December 2007
710 Posts
I love this addon! My server now has this.
 Post #13
 20th March 2008
Freelancer's Avatar
April 2005
227 Posts
Grand. Thanks.
 Post #14
 21st March 2008
Kwigg's Avatar
January 2007
1,378 Posts
Now we need a mingebag pet.
Lol.
 Post #15
 22nd March 2008
longears34's Avatar
February 2008
1,908 Posts
I love you.
 Post #16
 22nd March 2008
PC Camp's Avatar
July 2007
1,736 Posts
Nice release! :D

Can't wait to get home from vacation and try this. How did the effect come out for the leash?
 Post #17
 22nd March 2008
Spacetech's Avatar
January 2006
879 Posts
PC Camp posted:
Nice release! :D

Can't wait to get home from vacation and try this. How did the effect come out for the leash?
I ended up asking LPine for help and he knew what to do. It took a while.
 Post #18
 22nd March 2008
PC Camp's Avatar
July 2007
1,736 Posts
Ahh well that's good to hear. Did I help one bit? Like getting you in the right direction.
 Post #19
 22nd March 2008
Spacetech's Avatar
January 2006
879 Posts
PC Camp posted:
Ahh well that's good to hear. Did I help one bit? Like getting you in the right direction.
Yea you did. :)
 Post #20
 22nd March 2008
PC Camp's Avatar
July 2007
1,736 Posts
Woah sweet. I'll take a look at the code and see what you did.
 Post #21
 23rd March 2008
Gold Member
Dennab
September 2006
7,852 Posts
Cool you rewrote it, always wanted eggs. I was thinking about taking up modeling and animation and make simple animals.
 Post #22
 23rd March 2008
Gold Member
noobcake's Avatar
November 2006
4,626 Posts
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! :D

Have my babies and
 Post #23
 23rd March 2008
Dennab
February 2006
5,339 Posts
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
 Post #24
 23rd March 2008
Spacetech's Avatar
January 2006
879 Posts
Grenadiac posted:
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
Pets dieing is life. Just readopt after it dies
 Post #25
 27th March 2008
Rooflex's Avatar
April 2007
1,662 Posts
Sweet man, i was waiting for this to get back to work.
 Post #26
 27th March 2008
MrPresident's Avatar
August 2007
188 Posts
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)
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)
I had to restart the map to adopt another pet.

Overall, good work, just thought I'd point out what I found. :)
 Post #27
 27th March 2008
Stig Golden's Avatar
June 2007
955 Posts
Cool, this looks fun :D
 Post #28
 27th March 2008
Spacetech's Avatar
January 2006
879 Posts
MrPresident posted:
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)
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)
I had to restart the map to adopt another pet.

Overall, good work, just thought I'd point out what I found. :)
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
SPM.Players[self.Player].Egg = false
with
SPM.Players[self.Entity:GetNetworkedEntity("Player")].Egg = false
 Post #29
 28th March 2008
Gold Member
Jager_57's Avatar
May 2007
2,573 Posts
Alright! A new release! You make a great mod Spacetech.
 Post #30
 28th March 2008
MrPresident's Avatar
August 2007
188 Posts
Thanks for that Space. =)
 Post #31
 28th March 2008
Gold Member
dedo678's Avatar
November 2006
4,517 Posts
Fuck, I've grown attached to my pet. I'm gonna cry if he dies.



Edit:

Well, he died.
 Post #32
 28th March 2008
klasal's Avatar
May 2005
10 Posts
all i get is "unknown command" 'though it does tell me the mod is running;

what do i have to do to use this mod?
 Post #33
 28th March 2008
Gold Member
Dennab
August 2007
3,329 Posts
klasal posted:
all i get is "unknown command" 'though ist does tell me the mod is running;

what do i have to do to use this mod?
Press y, then type the "commands" in
 Post #34
 28th March 2008
DrFattyJr's Avatar
November 2007
977 Posts
Good to see you're not dead spacetech lol it's been awhile. I learned everything i know about lua from you and lpine and i always loved the old version of this mod :)
 Post #35
 28th March 2008
Gold Member
tyanet's Avatar
June 2007
3,093 Posts
What are all the different types of pets?
 Post #36
 28th March 2008
Gold Member
Dennab
September 2006
7,852 Posts
dedo678 posted:
Well, he died.
Sorry for your loss D=
 Post #37
 28th March 2008
klasal's Avatar
May 2005
10 Posts
stylee32 posted:
Press y, then type the "commands" in
thank you, i thought i had to use the console;

great mod ...
 Post #38
 28th March 2008
Spacetech's Avatar
January 2006
879 Posts
tyanet posted:
What are all the different types of pets?
Type /spm in chat for a list.
 Post #39
 28th March 2008
haruspex's Avatar
April 2007
188 Posts
Hmm.

Roleplay + Pets

Hmm.

They could give CPs Hunters!!

That would be so cool seeing some cps backed up by hunters chasing someone down a street.

:D
 Post #40
 28th March 2008
Zeltrax3000's Avatar
August 2007
119 Posts
haruspex posted:
Hmm.

Roleplay + Pets

Hmm.

They could give CPs Hunters!!

That would be so cool seeing some cps backed up by hunters chasing someone down a street.

:D



Lol That Would Be Cool.
Reply

All times are GMT. The time now is 12:04AM.

Facepunch Studios 2010 - Server 'MARGE'