Raised This Month: $51 Target: $400
 12% 

[TF2] Spellbook Commands


Post New Thread Reply   
 
Thread Tools Display Modes
FlaminSarge
Veteran Member
Join Date: Jul 2010
Old 11-12-2013 , 21:00   Re: [TF2] Spellbook Commands
Reply With Quote #11

It's other slots, for them, I think. It's weird. Things are weird.
__________________
Bread EOTL GunMettle Invasion Jungle Inferno 64-bit will break everything. Don't even ask.

All plugins: Randomizer/GiveWeapon, ModelManager, etc.
Post in plugin threads with questions.
Steam is for playing games.
You will be fed to javalia otherwise.
Psyduck likes replays.

Last edited by FlaminSarge; 11-12-2013 at 21:00.
FlaminSarge is offline
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 11-13-2013 , 03:31   Re: [TF2] Spellbook Commands
Reply With Quote #12

I tested slots up to like 10 for spy and engineer it always returns -1 after their normal stuff
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.

Last edited by friagram; 11-13-2013 at 03:32.
friagram is offline
MaloModo
Veteran Member
Join Date: Aug 2008
Old 02-05-2014 , 16:31   Re: [TF2] Spellbook Commands
Reply With Quote #13

Quote:
Originally Posted by FlaminSarge View Post
A delay between command usages might be good.
This would be very handy along with the spell limit to open it up to everyone on say....a "trade" server. Again thx for all your hard work.
MaloModo is offline
SuperU
Member
Join Date: Feb 2014
Location: Panama
Old 04-02-2014 , 15:22   Re: [TF2] Spellbook Commands
Reply With Quote #14

How you can block people don't target people, i want give access to the people who donate but i don't want the donors target another people.

If this plugin support it which cvar i have to use?
SuperU is offline
FlaminSarge
Veteran Member
Join Date: Jul 2010
Old 04-03-2014 , 01:08   Re: [TF2] Spellbook Commands
Reply With Quote #15

Go ahead and read the section about command overrides, it'll help.
__________________
Bread EOTL GunMettle Invasion Jungle Inferno 64-bit will break everything. Don't even ask.

All plugins: Randomizer/GiveWeapon, ModelManager, etc.
Post in plugin threads with questions.
Steam is for playing games.
You will be fed to javalia otherwise.
Psyduck likes replays.
FlaminSarge is offline
SuperU
Member
Join Date: Feb 2014
Location: Panama
Old 04-03-2014 , 22:25   Re: [TF2] Spellbook Commands
Reply With Quote #16

My question is if use the command sm_setspell <charges> [spell] [target]

I want to know if i can block the target option to only the person who used the command for example

sm_setspell 3 4 SuperU

But if i i type FlaminSarge the plugin doesn't work because i'm not FlaminSarge

Note:i know in configs/admin_overrides.cfg. you edit the permissions

Last edited by SuperU; 04-04-2014 at 01:55.
SuperU is offline
Wormy
Senior Member
Join Date: Jan 2013
Location: 2fort
Old 07-22-2015 , 10:30   Re: [TF2] Spellbook Commands
Reply With Quote #17

How do I modify the plugin so I can remove unwanted spells? I'd like to remove the spells that can kill other players. I don't know how to edit the loops properly, so the spells will match with corresponding ID.
__________________

Last edited by Wormy; 07-22-2015 at 12:38.
Wormy is offline
FlaminSarge
Veteran Member
Join Date: Jul 2010
Old 10-09-2015 , 05:31   Re: [TF2] Spellbook Commands
Reply With Quote #18

I think it's probably a matter of checking against the spell ID passed into the command (where it uses GetCmdArg, then StringToInt), and if that int isn't what you want, return Plugin_Handled;

Try it yourself before you say "I don't know how". It's usually useful to learn new things.
__________________
Bread EOTL GunMettle Invasion Jungle Inferno 64-bit will break everything. Don't even ask.

All plugins: Randomizer/GiveWeapon, ModelManager, etc.
Post in plugin threads with questions.
Steam is for playing games.
You will be fed to javalia otherwise.
Psyduck likes replays.

Last edited by FlaminSarge; 10-09-2015 at 05:32.
FlaminSarge is offline
Wormy
Senior Member
Join Date: Jan 2013
Location: 2fort
Old 10-09-2015 , 05:44   Re: [TF2] Spellbook Commands
Reply With Quote #19

Well it is true though, I don't know how to do that. I don't got experience with SourcePawn. I'd love to learn but a few functions is not telling me much.
__________________
Wormy is offline
FlaminSarge
Veteran Member
Join Date: Jul 2010
Old 10-15-2015 , 03:32   Re: [TF2] Spellbook Commands
Reply With Quote #20

That section where it's got "if (spell < -1 || spell > 11)", you can add "|| spell == spellnumber" for the spells you want to block, probably.
__________________
Bread EOTL GunMettle Invasion Jungle Inferno 64-bit will break everything. Don't even ask.

All plugins: Randomizer/GiveWeapon, ModelManager, etc.
Post in plugin threads with questions.
Steam is for playing games.
You will be fed to javalia otherwise.
Psyduck likes replays.
FlaminSarge is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:49.


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