Raised This Month: $119 Target: $400
 29% 

Showing results 1 to 25 of 32
Search took 0.01 seconds.
Search: Posts Made By: Dr. Jekyll
Forum: Plugins 11-08-2015, 00:08
Replies: 928
Views: 147,519
Posted By Dr. Jekyll
Re: [TF2] Custom Weapons 2 (Beta 2, Mar 12 2014)

Anyone have an idea for how I could block a building from being upgraded? I've tried hooking "player_upgradedobject" and returning plugin handled but that doesn't work. I've also tried changing the...
Forum: Scripting 11-07-2015, 00:39
Replies: 9
Views: 421
Posted By Dr. Jekyll
Re: Can Events like player_builtobject be blocked?

Just tried this tonight, and it worked for blocking "build". But I'm hoping to block the build command for one particular building, not for all of them. Any suggestions on how to do that?
Forum: Scripting 11-06-2015, 22:12
Replies: 13
Views: 1,068
Posted By Dr. Jekyll
Re: How do I change an entity's flags?

Still not working. There's got to be something I'm doing wrong. It's definitely getting inside the if statement with the SetEntProp line, but I'm still able to upgrade the sentry.
Forum: Scripting 11-01-2015, 23:10
Replies: 13
Views: 1,068
Posted By Dr. Jekyll
Re: How do I change an entity's flags?

Then how do I specify that I want to change the "upgradable" flag? There's 2 other spawnflags for sentries that I don't want to touch. (https://developer.valvesoftware.com/wiki/Obj_sentrygun)
Forum: Scripting 11-01-2015, 00:23
Replies: 13
Views: 1,068
Posted By Dr. Jekyll
Re: How do I change an entity's flags?

I was just looking back through my posts and I realized I forgot to thank you for posting this. Unfortunately it's not working for some reason. The buildings can still be upgraded. Is there any...
Forum: Scripting 10-31-2015, 17:19
Replies: 9
Views: 421
Posted By Dr. Jekyll
Re: Can Events like player_builtobject be blocked?

Sorry, I should have included the code where I hook the event. I am using EventHookMode_Pre as my third parameter.

I'm going off this page...
Forum: Scripting 10-31-2015, 17:16
Replies: 9
Views: 421
Posted By Dr. Jekyll
Forum: Scripting 10-30-2015, 21:43
Replies: 9
Views: 421
Posted By Dr. Jekyll
Can Events like player_builtobject be blocked?

Working on a plugin for Custom Weapons 2 to limit the level that an engineer can upgrade his buildings to. I'm trying to prevent a building from being built. Here's the code:

//used when "max...
Forum: Plugins 10-30-2015, 20:48
Replies: 928
Views: 147,519
Posted By Dr. Jekyll
Forum: Plugins 10-30-2015, 00:03
Replies: 928
Views: 147,519
Posted By Dr. Jekyll
Re: [TF2] Custom Weapons 2 (Beta 2, Mar 12 2014)

Scream Fortress Update broke TF2 attributes. You need the latest game data file, which can be found here. (https://raw.githubusercontent.com/FlaminSarge/tf2attributes/master/tf2.attributes.txt)
...
Forum: Scripting 10-24-2015, 23:59
Replies: 4
Views: 250
Posted By Dr. Jekyll
Re: PrintToServer not working with 2-d arrays?

I found the error. I was using the wrong variable name :cry:

This is what happens when I try to code on 4 hours of sleep.
Forum: Scripting 10-22-2015, 23:23
Replies: 4
Views: 250
Posted By Dr. Jekyll
PrintToServer not working with 2-d arrays?

Code:



Error:



Am I doing something wrong or does PrintToServer just not work with 2d arrays?
Forum: Plugins 10-19-2015, 14:44
Replies: 928
Views: 147,519
Posted By Dr. Jekyll
Re: [TF2] Custom Weapons 2 (Beta 2, Mar 12 2014)

Aren't there a total of 7 weapon slots though? Shouldn't it be 7 * 34?

And how do you deal with players leaving the server and other ones joining?
Forum: Plugins 10-19-2015, 02:42
Replies: 928
Views: 147,519
Posted By Dr. Jekyll
Re: [TF2] Custom Weapons 2 (Beta 2, Mar 12 2014)

Question about keeping track of attributes:

I'm making an attribute to limit the level that an engineer can upgrade their buildings to. Can I just use the player index instead of the weapon's...
Forum: Scripting 10-16-2015, 20:40
Replies: 4
Views: 293
Posted By Dr. Jekyll
Re: Do I have to hook events on plugin start?

I'm not sure. It seems like it should be more efficient, although I'm not sure by how much. I don't know enough about how sourcemod manages memory and processing power to be sure though.
Forum: Scripting 10-14-2015, 16:10
Replies: 4
Views: 293
Posted By Dr. Jekyll
Do I have to hook events on plugin start?

I'm writing an attributes plugin for Custom Weapons 2. The only attribute I have at the moment is one designed to limit the maximum level an engineer can upgrade his buildings to. Here's a link to...
Forum: Scripting 10-02-2015, 21:03
Replies: 13
Views: 1,068
Posted By Dr. Jekyll
Re: How do I change an entity's flags?

So here are the arguments I'm using. Is this correct?

SetEntProp(ent, bool, "m_spawnflags_upgradable", false, 4, 0);

I should probably mention that ent is the name of an int I'm using to store...
Forum: Scripting 10-02-2015, 13:04
Replies: 13
Views: 1,068
Posted By Dr. Jekyll
Re: How do I change an entity's flags?

Thanks, I'll try this tonight.
Forum: Scripting 10-02-2015, 01:23
Replies: 13
Views: 1,068
Posted By Dr. Jekyll
How do I change an entity's flags?

I need to change the flags on a player's sentry gun so that it cannot be upgraded. I've found the function to set and get entity flags, and I've figured out how to get the index of the sentry gun,...
Forum: Plugins 09-29-2015, 00:00
Replies: 928
Views: 147,519
Posted By Dr. Jekyll
Re: [TF2] Custom Weapons 2 (Beta 2, Mar 12 2014)

Actually there is. https://wiki.alliedmods.net/Scripting_FAQ_(SourceMod)#How_do_I_hook_.2Bcommands.2C_such_as_.2Bzoom_and_.2Battack.3F
Forum: Plugins 09-26-2015, 02:12
Replies: 134
Views: 36,184
Posted By Dr. Jekyll
Re: [TF2] Amp Node

Were you successful? Does this plugin still work?
Forum: Plugins 09-25-2015, 23:12
Replies: 1,607
Views: 814,629
Posted By Dr. Jekyll
Re: [TF2Items] Give Weapon (v3.14159, 11/29/2013)

Just re-downloaded the latest version (1.6.2-272) from here (https://builds.limetech.org/?p=tf2items), but it's missing the "plugins" folder. Anyone else having this issue?
Forum: Scripting 09-25-2015, 23:00
Replies: 4
Views: 310
Posted By Dr. Jekyll
Re: How do i give custom weapons their own skins and sounds?

Yeah I tried Xykon's plugin. It made my server lag like hell, and custom weapons 2 stopped working. I'm not sure if that was caused by the plugin or something else.

By custom sounds I mean I want...
Forum: Scripting 09-25-2015, 01:58
Replies: 4
Views: 310
Posted By Dr. Jekyll
How do i give custom weapons their own skins and sounds?

Is this the right place to ask this kind of question? I'm still not really sure where I should post about this.

I've been messing around with Custom Weapons 2 over the past week (which is an...
Forum: Plugins 09-20-2015, 23:49
Replies: 928
Views: 147,519
Posted By Dr. Jekyll
Re: [TF2] Custom Weapons 2 (Beta 2, Mar 12 2014)

Anyone tried to download and use weapons from the workshop weapons pack lately? The viewmodels for the weapons are not showing up for me. Anyone else having this issue?
Showing results 1 to 25 of 32

 
Forum Jump

All times are GMT -4. The time now is 16:46.


Powered by vBulletin®
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Theme made by Freecode