Need help setting up a loadout plugin that piggybacks [TF2items] Give Weapon plugin
3 Attachment(s)
So
I have the [TF2items] Give Weapon plugin working to my knowledge. Ultimately my goal is to setup a plugin before the end of the month for my birthday :crab: that will make tf2 more accessible for noobs by dictating loadouts for specific classes. My issue is that I am not familiar with coding and can only either get every player to be completely weaponless or I get the weapons copying themselves and crashing the server via entity limit. I'll attach the files for my last attempt, yet another t-pose party. :bacon: The code i was trying to Frankenstein came from the first two pages of this thread https://forums.alliedmods.net/showthread.php?t=203225 If i can see an example of just one working weapon I feel like i can figure out the rest from there. |
Re: Need help setting up a loadout plugin that piggybacks [TF2items] Give Weapon plug
We can help you if more information is provided.
1. Are you wanting to give every Human and Bot Scout a STOCK Syringe Gun and a Medi Gun? 2. Are you running TF2Attributes? 3. Are you wanting to change player cosmetics? 4. What are the specific loadout do you want for a specific class? The code you provided won't work until you change it. Once fixed it will give a standard Syringe Gun and standard Medi Gun to all Scouts when they spawn or touch a locker. Change this line: Code:
public OnPostInventoryApplication( Handle:hEvent, const String:strEventName[], bool:bDontBroadcast ) Code:
public OnPostInventoryApplicationAndPlayerSpawn( Handle:hEvent, const String:strEventName[], bool:bDontBroadcast ) |
Re: Need help setting up a loadout plugin that piggybacks [TF2items] Give Weapon plug
1 Attachment(s)
Script now amended, restarted the server but no go - still just t-poses. It's gotta be my config txt then right?
/just/ in case i read something wrong this is what my .sp looks like verbatim right now Code:
#include <sourcemod> Quote:
Quote:
However, my final product I want to look pretty dang similar to the picture i attached (simpler tf2 v0.4.png) All regular unless specified Scout with Backscat, Crit-a-cola, Bat Heavy with Rocket Launcher(2rocketclip), Family Business, Cabertoss :grrr: (+movementspeed while active) Engineer with Panic Attack, Ambassadore, Gunslinger Medic with Shotgun, Quick-fix, Solemn Vow Sniper with Classic, Piss, Bushwhacka Quote:
Alright, copied the .sp, .smx & .inc into their directories & restarted but still t-pose central for now. Quote:
I guess I wouldn't mind being able to so some of that but I didn't think of doing that with this plugin. |
Re: Need help setting up a loadout plugin that piggybacks [TF2items] Give Weapon plug
1 Attachment(s)
I don't believe it is your config text file since you aren't using any custom weapons at all yet.
I tested your code without any edits on my server and it runs as intended. All scouts receive a Syringe Gun and Medigun. There is no T-pose. I suspect there is a problem with your tf2items or tf2items_giveweapon plugin. You can test it by trying to give yourself a weapon. Try giving yourself a rocketlauncher by typing: !gimme 18 You can also type: sm plugins list That will show you what plugins are running, and if if any plugins failed to load properly. You can also check your error log in: /tf/addons/sourcemod/logs/ Alternatively, you could just build the plugin without having a requirement to use tf2items or tf2items_giveweapon. See attached plugin for working example of Scout and Medic without tf2items. |
Re: Need help setting up a loadout plugin that piggybacks [TF2items] Give Weapon plug
1 Attachment(s)
oh, here we go
Code:
Unkown command: !gimme That item code doesn't appear in the pyrobattle.sp anymore and i doubt it's referenced in the smx so I reckon you're right about it not being the pyrobattle.sp For good measure in case something broke while I wasn't looking I ran sm plugins list again. Everything's working as far as I can tell. In case it's an option I want to mention at this point I'm happy to give you the login details to my server and just send you money through paypal to help. I've made a mess and I feel obliged to compensate you. |
Re: Need help setting up a loadout plugin that piggybacks [TF2items] Give Weapon plug
WAIT NO YOUR SCRIPT WORKS
alright yeah idk what was going wrong with tf2items but this is just as good, gdi I could kiss you man. Thank you so much lol - ignore my last post. I've added the other classes to the code Code:
{ Is there anyway to change attributes with this plugin? If not all good, i'll cope. If so then how would i reduce the clip on the liberty launcher to 2 and increase the movespeed when the cabertoss is active? |
Re: Need help setting up a loadout plugin that piggybacks [TF2items] Give Weapon plug
2 Attachment(s)
The easiest way to change attributes is to install TF2Attributes. Once you do that you can use the plugin attached to this post for increased speed while caber is active and reduced ammo for rocketlauncher.
I would've had this done sooner but changing the rocketlauncher ammo for the Heavy proved difficult. It appears that giving weapons to other classes (such as rocketlauncher to Heavy) results in the weapon having the default weapon ammo (such as 200 ammo for minigun applied to rocketlauncher). Anyway, enjoy the plugin. I hope you have a great Birthday! |
Re: Need help setting up a loadout plugin that piggybacks [TF2items] Give Weapon plug
Perfection dude. Couple of randoms hopped on my server and helped me test balance and it's actually pretty damn good.
Thanks again, keep safe and all that. |
Re: Need help setting up a loadout plugin that piggybacks [TF2items] Give Weapon plug
Quote:
This Working Spawn Giver loadout https://github.com/Hartmannq/SpawnWeapon |
Re: Need help setting up a loadout plugin that piggybacks [TF2items] Give Weapon plug
Quote:
|
All times are GMT -4. The time now is 02:09. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.