• PointShop Custom Item Additions
    48 replies, posted
Please show us your custom items you have created for PointShop! You do not have to release them, pictures are just fine and suggestions are welcome as well. If you do post a code please provide a picture as well to give other users an idea of what your item is. Here are some of mine. (With Code) [B]AntlionGib Backpack.[/B] [CODE]ITEM.Name = 'AntlionGib' ITEM.Price = 0 ITEM.Model = 'models/Gibs/Antlion_gib_Large_2.mdl' ITEM.Bone = 'ValveBiped.Bip01_Spine2' function ITEM:OnEquip(ply, modifications) ply:PS_AddClientsideModel(self.ID) end function ITEM:OnHolster(ply) ply:PS_RemoveClientsideModel(self.ID) end function ITEM:ModifyClientsideModel(ply, model, pos, ang) model:SetModelScale(0.8, 0) pos = pos + (ang:Right() * 5) + (ang:Up() * 0) + (ang:Forward() * 6) ang:RotateAroundAxis(ang:Forward(), 90) return model, pos, ang end[/CODE] [IMG]http://reconcilegaming.com/Public/BaconAntlionGibBackpack.png[/IMG] ---------------------------------------------------------------------------------------------------------- [B]Laser Shades: (Couldn't think of a better name lol)[/B] [CODE]ITEM.Name = 'Laser Shades' ITEM.Price = 0 ITEM.Model = 'models/props_wasteland/panel_leverHandle001a.mdl' ITEM.Attachment = 'eyes' function ITEM:OnEquip(ply, modifications) ply:PS_AddClientsideModel(self.ID) end function ITEM:OnHolster(ply) ply:PS_RemoveClientsideModel(self.ID) end function ITEM:ModifyClientsideModel(ply, model, pos, ang) model:SetModelScale(1.0, 0) pos = pos + (ang:Forward() * -7) + (ang:Up() * 1.8) ang:RotateAroundAxis(ang:Right(), -90) return model, pos, ang end[/CODE] [IMG]http://reconcilegaming.com/Public/BaconLaserShades.png[/IMG] ---------------------------------------------------------------------------------------------------------- [B]Harpoon Hat:[/B] [CODE]ITEM.Name = 'Harpoon' ITEM.Price = 400 ITEM.Model = 'models/props_junk/harpoon002a.mdl' ITEM.Attachment = 'eyes' function ITEM:OnEquip(ply) ply:PS_AddClientsideModel(self.ID) end function ITEM:OnHolster(ply) ply:PS_RemoveClientsideModel(self.ID) end function ITEM:ModifyClientsideModel(ply, model, pos, ang) model:SetModelScale(0.3, 0) pos = pos + (ang:Forward() * -3) + (ang:Up() * -0) ang:RotateAroundAxis(ang:Right(), 90) ang:RotateAroundAxis(ang:Up(), 108) return model, pos, ang end [/CODE] [IMG]http://reconcilegaming.com/Public/baconharpoonhat.png[/IMG] [HR][/HR] [B]****************************[/B] [B]User Submitted Content[/B] [I]Please view the links below each tag to view the possible requirements needed with the code.[/I] [B]****************************[/B] [HR][/HR] [B]Mutt Box by Lebofly[/B] [U][url]http://facepunch.com/showthread.php?t=1246854&p=39684792&viewfull=1#post39684792[/url][/U] [CODE]ITEM.Name = 'Mutt box' ITEM.Price = 2000 ITEM.Model = 'models/props_lab/kennel_physics.mdl' ITEM.Attachment = 'eyes' ITEM.AllowedUserGroups = { "admin", "superadmin", "donator" } function ITEM:OnEquip(ply, modifications) ply:PS_AddClientsideModel(self.ID) end function ITEM:OnHolster(ply) ply:PS_RemoveClientsideModel(self.ID) end function ITEM:ModifyClientsideModel(ply, model, pos, ang) model:SetModelScale(.5, 0) pos = pos + (ang:Right() * 0) + (ang:Forward() * -2) + (ang:Up() * -5) return model, pos, ang end[/CODE] [HR][/HR] [B]Keyboard Weapon by Eccid[/B] [U][url]http://facepunch.com/showthread.php?t=1246854&p=39697795&viewfull=1#post39697795[/url][/U] [B]Models:[/B] [U][url]http://facepunch.com/showthread.php?t=1246854&p=39796296&viewfull=1#post39796296[/url][/U] [CODE]ITEM.Name = 'Keyboard' ITEM.Price = 500 ITEM.Model = 'models/weapons/w_keyboard.mdl' ITEM.WeaponClass = 'weapon_zm_keyboard' function ITEM:OnEquip(ply) ply:StripWeapon('weapon_zm_improvised') ply:Give(self.WeaponClass) ply:SelectWeapon(self.WeaponClass) end function ITEM:OnHolster(ply) ply:StripWeapon(self.WeaponClass) ply:Give('weapon_zm_improvised') ply:SelectWeapon('weapon_zm_improvised') end[/CODE] [HR][/HR] [B]Creeper Hat by mumuk[/B] [U][url]http://facepunch.com/showthread.php?t=1246854&p=40655553&viewfull=1#post40655553[/url][/U] [CODE]ITEM.Name = 'Creeper' ITEM.Price = 100 ITEM.Model = 'models/fish/minecraft_creeper.mdl' ITEM.Attachment = 'eyes' function ITEM:OnEquip(ply, modifications) ply:PS_AddClientsideModel(self.ID) end function ITEM:OnHolster(ply) ply:PS_RemoveClientsideModel(self.ID) end function ITEM:ModifyClientsideModel(ply, model, pos, ang) --model:SetModelScale(1.6, 0) pos = pos + (ang:Forward() * -3) + (ang:Up() * -5) --ang:RotateAroundAxis(ang:Right(), 90) return model, pos, ang end[/CODE] [HR][/HR] [B]This small pack is by fruitftw[/B] [U][url]http://facepunch.com/showthread.php?t=1246854&p=40695179&viewfull=1#post40695179[/url][/U] [CODE]ITEM.Name = 'Doublecross-Comm' ITEM.Price = 3500 ITEM.Model = 'models/player/items/sniper/grfs_sniper.mdl' ITEM.Attachment = 'eyes' function ITEM:OnEquip(ply, modifications) ply:PS_AddClientsideModel(self.ID) end function ITEM:OnHolster(ply) ply:PS_RemoveClientsideModel(self.ID) end function ITEM:ModifyClientsideModel(ply, model, pos, ang) model:SetModelScale(1.0, 0) pos = pos + (ang:Forward() * -3.8) + (ang:Up() * -3) return model, pos, ang end[/CODE] [CODE]ITEM.Name = 'Anger' ITEM.Price = 5000 ITEM.Model = 'models/player/items/sniper/c_bet_brinkhood.mdl' ITEM.Attachment = 'eyes' function ITEM:OnEquip(ply, modifications) ply:PS_AddClientsideModel(self.ID) end function ITEM:OnHolster(ply) ply:PS_RemoveClientsideModel(self.ID) end function ITEM:ModifyClientsideModel(ply, model, pos, ang) model:SetModelScale(1.0, 0) pos = pos + (ang:Forward() * -3.5) + (ang:Up() * -3) return model, pos, ang end[/CODE] [CODE]ITEM.Name = 'Ebenezer (Wintersday Special)' ITEM.Price = 500000000 ITEM.Model = 'models/player/items/all_class/xms_winter_joy_hat_sniper.mdl' ITEM.Attachment = 'eyes' function ITEM:OnEquip(ply, modifications) ply:PS_AddClientsideModel(self.ID) end function ITEM:OnHolster(ply) ply:PS_RemoveClientsideModel(self.ID) end function ITEM:ModifyClientsideModel(ply, model, pos, ang) model:SetModelScale(1.0, 0) pos = pos + (ang:Forward() * -3.5) + (ang:Up() * -3) return model, pos, ang end[/CODE] [CODE]ITEM.Name = 'Press Hat (Forum Special)' ITEM.Price = 500000000 ITEM.Model = 'models/player/items/all_class/pcg_hat_sniper.mdl' ITEM.Attachment = 'eyes' function ITEM:OnEquip(ply, modifications) ply:PS_AddClientsideModel(self.ID) end function ITEM:OnHolster(ply) ply:PS_RemoveClientsideModel(self.ID) end function ITEM:ModifyClientsideModel(ply, model, pos, ang) model:SetModelScale(1.0, 0) pos = pos + (ang:Forward() * -3.5) + (ang:Up() * -3) return model, pos, ang end[/CODE] [CODE]ITEM.Name = 'Straw Hat' ITEM.Price = 2500 ITEM.Model = 'models/player/items/sniper/bio_sniper_boater.mdl' ITEM.Attachment = 'eyes' function ITEM:OnEquip(ply, modifications) ply:PS_AddClientsideModel(self.ID) end function ITEM:OnHolster(ply) ply:PS_RemoveClientsideModel(self.ID) end function ITEM:ModifyClientsideModel(ply, model, pos, ang) model:SetModelScale(1.0, 0) pos = pos + (ang:Forward() * -3.5) + (ang:Up() * -3) return model, pos, ang end[/CODE]
[B][U]How to install:[/U][/B] [I]Please excuse the formatting, I know it's horrible.[/I] First of all, I am going to assume you all know how to use FTP so lets get started! First thing you are going to want to do is open your favorite text editor and past one of the codes in there. Such as this...(I am going to use the AntilionGib BackPack as an example.) [IMG]http://reconcilegaming.com/Public/notepadpointshop.png[/IMG] Navigate to 'File' then 'Save As...' [IMG]http://reconcilegaming.com/Public/notepadpointshopsave.png[/IMG] Set the 'File name' and the 'Save as type' (For the save as type, I just used Garry's Mod Lua Source File extension but I believe Lua Source File would work just as well.) [IMG]http://reconcilegaming.com/Public/notepadpointshoptype.png[/IMG] [B]Then click save![/B] Now to begin with the installation. Open up the FTP program of your choosing and navigate to [B]"/garrysmod/addons/pointshop-master/lua/items/accessories"[/B] This file is an accessory so it only seems right to go into the accessories folder. ;) Just drag the file from your desktop (or where ever you saved it to) and drop it in as seen below. [IMG]http://reconcilegaming.com/Public/notepadpointshopdrag.png[/IMG] You should end up seeing something like this.... [IMG]http://reconcilegaming.com/Public/notepadpointshopdrop.png[/IMG] The only thing left to do is restart you server and tada! You should now have the Antlion Gib as a backpack. [B]Side Note:[/B] I will be adding more items soon, if you have any suggestions for an item please post them. ^^
Half-life 2 Lemars dog house, Just sits around the players head. Made by Lantos (C) 2052 Penis Inc. [LUA]ITEM.Name = 'Mutt box' ITEM.Price = 2000 ITEM.Model = 'models/props_lab/kennel_physics.mdl' ITEM.Attachment = 'eyes' ITEM.AllowedUserGroups = { "admin", "superadmin", "donator" } function ITEM:OnEquip(ply, modifications) ply:PS_AddClientsideModel(self.ID) end function ITEM:OnHolster(ply) ply:PS_RemoveClientsideModel(self.ID) end function ITEM:ModifyClientsideModel(ply, model, pos, ang) model:SetModelScale(.5, 0) pos = pos + (ang:Right() * 0) + (ang:Forward() * -2) + (ang:Up() * -5) return model, pos, ang end[/LUA]
Nice! I will try and add this to my server when i get off work.
[QUOTE=grazingbacon;39693993]Nice! I will try and add this to my server when i get off work.[/QUOTE] Might want to tweak those usergroups :P
Very nice, I like this thread. I used the harpoon and doghouse. I'll share my code for custom melee weaps on ttt. Adding models and such will be up to anyone using the code, though. In order for it to work right, you need to make a new weap for each of the ones you add with this code. [code]ITEM.Name = 'Keyboard' ITEM.Price = 500 ITEM.Model = 'models/weapons/w_keyboard.mdl' ITEM.WeaponClass = 'weapon_zm_keyboard' function ITEM:OnEquip(ply) ply:StripWeapon('weapon_zm_improvised') ply:Give(self.WeaponClass) ply:SelectWeapon(self.WeaponClass) end function ITEM:OnHolster(ply) ply:StripWeapon(self.WeaponClass) ply:Give('weapon_zm_improvised') ply:SelectWeapon('weapon_zm_improvised') end[/code]
If I was ever interested in hosting a TTT server then I would love to use this. Nothing like beating your enemy with a keyboard. XD
[QUOTE=Eccid;39697795]Very nice, I like this thread. I used the harpoon and doghouse. I'll share my code for custom melee weaps on ttt. Adding models and such will be up to anyone using the code, though. In order for it to work right, you need to make a new weap for each of the ones you add with this code. [code]ITEM.Name = 'Keyboard' ITEM.Price = 500 ITEM.Model = 'models/weapons/w_keyboard.mdl' ITEM.WeaponClass = 'weapon_zm_keyboard' function ITEM:OnEquip(ply) ply:StripWeapon('weapon_zm_improvised') ply:Give(self.WeaponClass) ply:SelectWeapon(self.WeaponClass) end function ITEM:OnHolster(ply) ply:StripWeapon(self.WeaponClass) ply:Give('weapon_zm_improvised') ply:SelectWeapon('weapon_zm_improvised') end[/code][/QUOTE] That code does not work for me, it does not even take away my crowbar, I have the correct amount of points and I have created weapons_zm_keyboard in entites/weapons
well you can't really use them without the material files :S
[QUOTE=kaytaro;39785686]well you can't really use them without the material [B]and the model[/B] files :S[/QUOTE] FTFY.
[QUOTE=kaytaro;39785686]well you can't really use them without the material files :S[/QUOTE] I do have the material files...
I'm pretty sure you have the files in the wrong place. That code works you just have to change it to fit what weapon you want to strip and then what weapon you want to be equipped with. The file doesn't need to be 'weapon_zm_keyboard' it can be anything you want it to be. Copy the weapon_zm_improvised folder and make it weapon_zm_improvised2 then replace the model with something else. Then in this code replace weapon_zm_keyboard with weapon_zm_improvised2. Or what ever your folder is.
[QUOTE=Starz0r;39785838]FTFY.[/QUOTE] ? what Smithy: I was saying if you're going to share the code wouldn't it be nice to share the files for the models and materials?
*Face palm* I need someone who knows what they are talking about to help me, also Kaytaro please learn to read, I quoted the code, I did not make it.
[QUOTE=smithy285;39791924]*Face palm* I need someone who knows what they are talking about to help me, also Kaytaro please learn to read, I quoted the code, I did not make it.[/QUOTE] I believe the reason why it is not working is because it has custom view model and world model views as it has been repositioned and what not. The keyboard files have been saved originally as a prop and the creator has made the world and viewer model which we lack. We do not have models/weapons/w_keyboard.mdl as it is not originally a weapon. Yes we have the prop materials but not the weapon materials. You get me?
SMH..... good luck then. Its a simple fix
For all of you wanting the models for the keyboard I uploaded them to dropbox. [url]https://www.dropbox.com/s/ujz1c6v25n1lchf/Keyboard%20Models.rar?m[/url]
Very simple to coding.
[QUOTE=smithy285;39791924]*Face palm* I need someone who knows what they are talking about to help me, also Kaytaro please learn to read, I quoted the code, I did not make it.[/QUOTE] Did you create the keyboard swep as well? If you did, have you made sure it works? I just reused the crowbar script and edited the models and names. If you can go through the steps you took, I may be able to find out what went wrong.
[QUOTE=Eccid;39873303]Did you create the keyboard swep as well? If you did, have you made sure it works? I just reused the crowbar script and edited the models and names. If you can go through the steps you took, I may be able to find out what went wrong.[/QUOTE] I got it working a while back now, while editing the model names I messed up the other code.
Yeah, I just realized your last post was 6 days ago :P Glad you got it working.
[IMG]http://www.hostfile.nl/thumbs/fmeakoxk4p/15683/minecraft.jpg[/IMG] [CODE]ITEM.Name = 'Creeper' ITEM.Price = 100 ITEM.Model = 'models/fish/minecraft_creeper.mdl' ITEM.Attachment = 'eyes' function ITEM:OnEquip(ply, modifications) ply:PS_AddClientsideModel(self.ID) end function ITEM:OnHolster(ply) ply:PS_RemoveClientsideModel(self.ID) end function ITEM:ModifyClientsideModel(ply, model, pos, ang) --model:SetModelScale(1.6, 0) pos = pos + (ang:Forward() * -3) + (ang:Up() * -5) --ang:RotateAroundAxis(ang:Right(), 90) return model, pos, ang end [/CODE] [B][U]Download model made by "Fish"[/U][/B] [url]http://www.hostfile.nl/files/33fqizixz8/1886/Minecraft[/url]
Thanks for sharing! I will be adding this to my server when i get a chance.
It will be great if this topic stay updated :p
You should update the OP with all of the user submitted content
Going to need tf2 mounted for these. These are all fitted for hl2, css models are taller then hl2 ones! Sorry no pictures! There just the simple tf2 items! [code]ITEM.Name = 'Doublecross-Comm' ITEM.Price = 3500 ITEM.Model = 'models/player/items/sniper/grfs_sniper.mdl' ITEM.Attachment = 'eyes' function ITEM:OnEquip(ply, modifications) ply:PS_AddClientsideModel(self.ID) end function ITEM:OnHolster(ply) ply:PS_RemoveClientsideModel(self.ID) end function ITEM:ModifyClientsideModel(ply, model, pos, ang) model:SetModelScale(1.0, 0) pos = pos + (ang:Forward() * -3.8) + (ang:Up() * -3) return model, pos, ang end [/code] [code]ITEM.Name = 'Anger' ITEM.Price = 5000 ITEM.Model = 'models/player/items/sniper/c_bet_brinkhood.mdl' ITEM.Attachment = 'eyes' function ITEM:OnEquip(ply, modifications) ply:PS_AddClientsideModel(self.ID) end function ITEM:OnHolster(ply) ply:PS_RemoveClientsideModel(self.ID) end function ITEM:ModifyClientsideModel(ply, model, pos, ang) model:SetModelScale(1.0, 0) pos = pos + (ang:Forward() * -3.5) + (ang:Up() * -3) return model, pos, ang end [/code] [code]ITEM.Name = 'Ebenezer (Wintersday Special)' ITEM.Price = 500000000 ITEM.Model = 'models/player/items/all_class/xms_winter_joy_hat_sniper.mdl' ITEM.Attachment = 'eyes' function ITEM:OnEquip(ply, modifications) ply:PS_AddClientsideModel(self.ID) end function ITEM:OnHolster(ply) ply:PS_RemoveClientsideModel(self.ID) end function ITEM:ModifyClientsideModel(ply, model, pos, ang) model:SetModelScale(1.0, 0) pos = pos + (ang:Forward() * -3.5) + (ang:Up() * -3) return model, pos, ang end [/code] [code] ITEM.Name = 'Press Hat (Forum Special)' ITEM.Price = 500000000 ITEM.Model = 'models/player/items/all_class/pcg_hat_sniper.mdl' ITEM.Attachment = 'eyes' function ITEM:OnEquip(ply, modifications) ply:PS_AddClientsideModel(self.ID) end function ITEM:OnHolster(ply) ply:PS_RemoveClientsideModel(self.ID) end function ITEM:ModifyClientsideModel(ply, model, pos, ang) model:SetModelScale(1.0, 0) pos = pos + (ang:Forward() * -3.5) + (ang:Up() * -3) return model, pos, ang end [/code] [code] ITEM.Name = 'Straw Hat' ITEM.Price = 2500 ITEM.Model = 'models/player/items/sniper/bio_sniper_boater.mdl' ITEM.Attachment = 'eyes' function ITEM:OnEquip(ply, modifications) ply:PS_AddClientsideModel(self.ID) end function ITEM:OnHolster(ply) ply:PS_RemoveClientsideModel(self.ID) end function ITEM:ModifyClientsideModel(ply, model, pos, ang) model:SetModelScale(1.0, 0) pos = pos + (ang:Forward() * -3.5) + (ang:Up() * -3) return model, pos, ang end [/code]
[QUOTE=Lebofly;40695040]You should update the OP with all of the user submitted content[/QUOTE] When i get off work i shall do this. ;)
Does anyone have any advice on getting hats and things set up for Counter Strike sized models? I've caved into pressure and decided to look into a Pointshop for TTT, but the hats randomly start clipping. Great thread so far, anyway. Lots of useful resources.
Its all trial and error sadly.
[QUOTE=NiandraLades;40699772]Does anyone have any advice on getting hats and things set up for Counter Strike sized models? I've caved into pressure and decided to look into a Pointshop for TTT, but the hats randomly start clipping. Great thread so far, anyway. Lots of useful resources.[/QUOTE] I've wondered the same thing, either you will have to make specific sized models for CS:S or HL2, unless you can position it to fit both with out looking ridiculous lol.
Sorry, you need to Log In to post a reply to this thread.