Garry's Mod

Garry's Mod

Team Fortress 2 Magic Spells + Mini Quest
82 Comments
BubbaCub14 21 Jul @ 2:44pm 
nvm i one shot him with admin gun
BubbaCub14 20 Jul @ 9:21pm 
can you make a one with no quest plz
Dumb Boy 13 Feb @ 10:26am 
NPC Suggestion: Red MvM Robots, They Friendly To RED Team But They Hostile To BLU Team And MvM Robots. You Can Do İt Rİght? RİGHT??
Froze  [author] 8 Nov, 2024 @ 5:17pm 
download mvm money entities requirements
Supermankid379 8 Nov, 2024 @ 2:35pm 
[Team Fortress 2 Magic Spells + Mini Quest] lua/autorun/sh_tf2_magic_spells_entities.lua:1485: attempt to call method 'Jump' (a nil value)
1. TF2BlastDamage - lua/autorun/sh_tf2_magic_spells_entities.lua:1485
2. Explode - lua/autorun/sh_tf2_magic_spells_entities.lua:1447
3. unknown - lua/autorun/sh_tf2_magic_spells_entities.lua:1423

Timer Failed! [Simple][@lua/autorun/sh_tf2_magic_spells_entities.lua (line 1419)]
also got this error when i casted the monoculus and it hit a npc or player
Supermankid379 8 Nov, 2024 @ 2:29pm 
about the small spell i cast it and got this error [Team Fortress 2 Magic Spells + Mini Quest] lua/autorun/sh_tf2_magic_spells_entities.lua:59: Tried to use a NULL entity! 1. GetNWBool - [C]:-1 2. unknown - lua/autorun/sh_tf2_magic_spells_entities.lua:59Timer Failed! [Simple][@lua/autorun/sh_tf2_magic_spells_entities.lua (line 58)] [Team Fortress 2 Magic Spells + Mini Quest] lua/autorun/sh_tf2_magic_spells.lua:226: attempt to call method 'GetMaxJumpLevel' (a nil value) 1. tf2_magic_spells - lua/autorun/sh_tf2_magic_spells.lua:226 2. unknown - lua/autorun/sh_tf2_magic_spells.lua:278 3. unknown - lua/includes/modules/concommand.lua:54
Supermankid379 7 Nov, 2024 @ 10:34am 
and also the fire ball and monoculus spell do no dmg to players or npc
Froze  [author] 6 Nov, 2024 @ 5:18pm 
will be looked into
Supermankid379 6 Nov, 2024 @ 11:48am 
how do you stop being small when you cast the small spell its not off even if i die
Supermankid379 2 Nov, 2024 @ 4:37pm 
cool but i cant find it on mvm ghost town and also the comands dont show up fro me
Edward 29 Oct, 2024 @ 8:09am 
Please come to our lord and saviour Jesus Christ and please read the Bible and please do not use swear on anything or use bad words and foul words as the lord forbids it and do not believe in evolution as it is a distraction from the enemy to hide our lord and savior Jesus Christ from you and please do not celebrate pagan aspects of holidays and please ask forgiveness and repent to our lord and savior Jesus Christ
Froze  [author] 11 Oct, 2024 @ 7:27pm 
after clearing the quest you can pick up spellbooks
Gopnik | That Sandbox Server 11 Oct, 2024 @ 5:22pm 
how do you use it without the miniquest
Froze  [author] 2 Oct, 2024 @ 12:48am 
The stealth bug is finally fixed.
Also regarding the tf2 footprints, can i talk about it in dms?
Froze  [author] 29 Sep, 2024 @ 6:05pm 
true, will look ionto it
KinoDerToaster 29 Sep, 2024 @ 9:27am 
:o nice! The healing spell works now!
The only other bug still present is that stealth will refuse to reactivate if you attack anything while it's active, making you have to leave and rejoin for it to work again. Also it only makes the weapon you're holding invisible rather than the c_hands and weapon. I feel having the C_hands invisible too would be a great addition.
Froze  [author] 29 Sep, 2024 @ 5:49am 
i've added some isvalid() checks
footprints? might be doable...but well if it ever comes out the dono button is in the desc :steamhappy: hahaha
but yea nice idea
KinoDerToaster 28 Sep, 2024 @ 11:00pm 
Dude I would PAY you if you could somehow implement the footprints, especially headless horseshoes into gmod from tf2 just like these spells lol, that would be a dope asf but cool addition to this mod in my opinion to have player-usable footsteps and all the color options as well. Def would pay for that xd
Froze  [author] 27 Sep, 2024 @ 6:58pm 
sure i'll try and fix stuff for this mod
it's october so this mod needs to be paid some attention haha
KinoDerToaster 27 Sep, 2024 @ 1:41pm 
For healing spell, it gives the error:

"[Team Fortress 2 Magic Spells + Mini Quest] lua/autorun/sh_tf2_magic_spells.lua:565: Tried to use a NULL entity!

I recommend adding a validity check to ensure that the entity you're calling GetNWString on is valid. In lua/autorun/sh_tf2_magic_spells.lua at line 565:

lua

function tf2_magic_spells_get_team(entity)
if not IsValid(entity) then
return nil -- or a default value like TEAM_UNASSIGNED
end
return entity:GetNWString("Team")
end

Additionally, in the loop or function at line 584, you could check that each entity is valid before processing it. For example:

lua

for _, ent in pairs(ents.FindInSphere(pos, radius)) do
if IsValid(ent) and ent:IsPlayer() then
local team = tf2_magic_spells_get_team(ent)
-- Proceed with healing or other logic
end
end
KinoDerToaster 27 Sep, 2024 @ 1:40pm 
Hi again!! thanks for your speedy reply, Yes I discovered you can bind keys to launch specific spells like i.e: bind h "tf2_magic_spells_debug_cast projectile teleport", I tested the mod some more and found some bugs worth noting.

For the stealth spell, it works fantastic in third person, however it only makes handheld weapons invisible in first person, and I feel it would be much better if it made the c_hands invisible as well. The only error I found with this ability was when you attacked an enemy, the invisibility would turn off and could not be activated again, only fixing itself when you made a new game.

I recommend ensuring that the stealth state variables are properly reset after an attack. It's possible that a flag preventing reactivation isn't being cleared.
Froze  [author] 26 Sep, 2024 @ 10:37pm 
so you want to have the spells able to be manually chosen?
KinoDerToaster 26 Sep, 2024 @ 9:14pm 
Question: can we have it so these spells can be independently casted regardless of map? I think it'd be neat to have each as a bindable key.
KinoDerToaster 26 Sep, 2024 @ 7:56pm 
This is so cool! I had a feeling the tf2 halloween spells could've been ported but I didn't know it would be this seamless! You did a great job and should pat yourself on the back right now.
Neveren 11 May, 2024 @ 4:29am 
In general, I'll figure it out myself
Neveren 11 May, 2024 @ 4:27am 
So I did not understand how it works, for some reason the task on my map did not work correctly
Froze  [author] 11 May, 2024 @ 4:23am 
i mean after doing the quest you can use spells anywhere
Neveren 11 May, 2024 @ 4:21am 
I wish I could use magic anywhere without a quest. I would remove this restriction.
jku43w 16 Feb, 2024 @ 8:08am 
how to use?
Froze  [author] 12 Jan, 2024 @ 5:11pm 
yes
redboi 12 Jan, 2024 @ 4:49pm 
does this require all of the requirements
?
Partnerbot 17 Apr, 2023 @ 7:11pm 
hey can we get more game mode items like a control point or a bomb spawner and hatch for mvm as well as maybe a map tool to help set up certain points of interest for the bots like having engies relize the importance of certain spots or having them not just go through sewers to get to the intel room on two fort or even giving engis the ability to build teloporters out side of spawn designated areas i know its a lot to ask but atleast try to do the mvm game mod
ᛉ RVNIK DETH ᛉ 1 Apr, 2023 @ 11:14am 
also @defjamasusal i think the magazine is in the robot u have to kill in ghost town
ᛉ RVNIK DETH ᛉ 1 Apr, 2023 @ 11:13am 
do i have to kill the boss again if i disable the mod?
Defjamasusual 5 Mar, 2023 @ 2:20pm 
where the heck is the spell magazine?
meadpilled scurvycel 16 Feb, 2023 @ 2:25am 
please make it so you can use spells in other maps, this seems SO FUN
Lynx 2 Feb, 2023 @ 7:27am 
im stuck on spell that makes me small i cant pick other
braindamaged 28 Jan, 2023 @ 9:20am 
why does the addon need the tf2 navmesh pack?
Combined 7 Jan, 2023 @ 12:34pm 
Are you considering making the power-ups from TF2 next? Like plague, vampire, regen, etc.
Froze  [author] 29 Dec, 2022 @ 9:54pm 
how? any errors?
if it doesnt work enable the shortcut command
and read description thoroughly
Kris Deltarune 29 Dec, 2022 @ 7:50pm 
it dident work
Froze  [author] 28 Dec, 2022 @ 6:45pm 
bind h tms_cast_chosen
Kris Deltarune 28 Dec, 2022 @ 6:29pm 
um i forgor how to bind stuff and i wana bind it to H
Froze  [author] 19 Dec, 2022 @ 4:17pm 
yes
UNATCO Trooper 19 Dec, 2022 @ 4:14pm 
thank you. can i copy and paste all of that?
Froze  [author] 19 Dec, 2022 @ 2:46pm 
type this in console:
lua_run Entity(1):SetPData("tf2_magic_spells_has_magazine", true);lua_run Entity(1):SetNWBool("tf2_magic_spells_has_magazine", true)
UNATCO Trooper 19 Dec, 2022 @ 11:36am 
can i just skip the mini quest and have spell book to the entitles menu? please, this a good addon is just that my computer can't handle loading in 2 maps.
Goblin 2 10 Nov, 2022 @ 4:58pm 
when im playing on flatgrass it will give a message saying to get to mvm_ghost_town is there a way to have it not there while on other maps? thanks!
Froze  [author] 5 Nov, 2022 @ 4:19pm 
if youre talking about the spell pickup message telling you to go to mvm_ghost_town then obviously go to mvm_ghost_town and get the magazine to get rid of the message

but what message are you talking about?
Goblin 2 5 Nov, 2022 @ 1:16pm 
how do i get rid of the message popping up on my screen?