[TF2] Visible Weapons Natives (broken)(v1.2, 2/24/2011)
11 Attachment(s)
ATTACHABLES IS BROKEN THEREFORE THIS IS BROKEN
SO! People requested for Randomizer to have visible weapons. I said "nowai, needs attachables, and I'm not including attachables in randomizer as a requirement!" So then I found out how to make it optional. So here. Natives for giving weapons to clients. What it does is, all plugins that use this can add the native VisWep_GiveWeapon(client, slot, model) after each time they give a weapon. It will automatically organize each slot's attachable entity, as well as invis/vis the slots depending on OnWeaponSwitch from SDKHooks. So, requires SDKHooks and Attachables. http://forums.alliedmods.net/showthread.php?t=106748 https://forums.alliedmods.net/showthread.php?t=126577 Cvar: visibleweapons_version (default 1.2) Native: PHP Code:
new bool:visibleweapons = false; OnPluginStart, do this: visibleweapons = LibraryExists("visweps"); And then, OnLibraryAdded: if (StrEqual(name, "visweps")) visibleweapons = true; OnLibraryRemoved: if (StrEqual(name, "visweps")) visibleweapons = false; Then put the if (visibleweapons) in front of each time you use VisWep_GiveWeapon so it skips over it if visibleweapons is not on the server. NOTE: You CAN put in a number for the model name, and it will attempt to find the model associated with that item index. E.g. 312 = brass beast. Will auto-set the brass beast model. Look at http://forums.alliedmods.net/showthread.php?t=141962 and https://forums.alliedmods.net/showthread.php?t=139069 for examples. TL;DR if you're a developer and you put this native in a giveweapon plugin at each time the weapon is given, it will make the weapon visible and auto-invis it if the weapon is not out. Also does the banner backpacks, and stuff. To the people that are here for Randomizer and Give Weapon: just install the plugin, and SDKHooks and Attachables. ALSO to such persons, models for the Rebel's Curse and Khopesh Climber. Credit to Mecha the Slag for some/most of the basic code. Changelog Code:
2/24/2011(v1.2) |
Re: [TF2] Visible Weapons Natives
Good job! :D
|
Re: [TF2] Visible Weapons Natives
Hey Sarge did you by any chance install this on our server?
|
Re: [TF2] Visible Weapons Natives
Not yet. You do it.
|
Re: [TF2] Visible Weapons Natives
Ok will do soon.
Parents pissed at me so I have no steam access for a bit. Server rent up soon. I'll work on getting those things in check. |
Re: [TF2] Visible Weapons Natives
I have noticed using this that the golden wrench doesn't look golden to anyone but yourself, with your randomizer/giveweapon plugins. Is it possible to fix this?
|
Re: [TF2] Visible Weapons Natives
Quote:
1) Do you have ANY idea what kinda sh**storm would happen with Valve if I made golden wrenches ACTUALLY GOLDEN? The whole reason they made stuff invisible was so people couldn't put exclusive items on at will. So it will stay a normal wrench. 2) It's a material override, which I am not going to figure out. Don't try to do it. Valve will eat you. So will voogru. I'd be scared of voogru more. |
Re: [TF2] Visible Weapons Natives
Hahahah Yeah, I figured as much. Still had to ask because your earliest versions of giveweapon had visible golden wrenches :twisted:
|
Re: [TF2] Visible Weapons Natives
... o.o since when?
|
Re: [TF2] Visible Weapons Natives
Quote:
|
| All times are GMT -4. The time now is 21:23. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.