The reason I done the tutorial via client scripts is so that it covers everyone, I stated at the bottom if people want to use Easy FX they can, just follow treminaor's tutorial on the wiki for it. :)
Title: Re: [Tutorial] Black Ops 2 Style Wall Weapon FX
Post by: MakeCents on July 02, 2015, 04:32:52 pm
Title: Re: [Tutorial] Black Ops 2 Style Wall Weapon FX
Post by: Scobalula on July 02, 2015, 04:49:46 pm
tbh I really don't mind what way people go about putting the FX in their map, they can use Phil's or they can use Trem's Easy FX, don't really mind, once again the reason I done the client script way in this tutorial is to cover everyone, I could put Easy FX Tutorial here but then not everyone is using Easy FX, but I know for a fact this method will work for everyone.
My end goal is that for people that who want that Black Ops 2 wall weapon FX in their map, can do so using this, and if they want to use another method to put it in their map, then that's ok.
Title: Re: [Tutorial] Black Ops 2 Style Wall Weapon FX
Post by: MakeCents on July 02, 2015, 05:12:03 pm
tbh I really don't mind what way people go about putting the FX in their map, they can use Phil's or they can use Trem's Easy FX, don't really mind, once again the reason I done the client script way in this tutorial is to cover everyone, I could put Easy FX Tutorial here but then not everyone is using Easy FX, but I know for a fact this method will work for everyone.
My end goal is that for people that who want that Black Ops 2 wall weapon FX in their map, can do so using this, and if they want to use another method to put it in their map, then that's ok.
Alright, just trying help. I didn't see you deleting the origin after adding it, so figured I'd make a suggestion that doesn't contribute to gspawn, and makes your life a bit easier, is all. But really, you should be able to incorporate this into the weapon prob. Without doing easy fx or csc. Just by adding like one line to _zombiemode_weapons, for the play fx part.
Title: Re: [Tutorial] Black Ops 2 Style Wall Weapon FX
Post by: Scobalula on July 02, 2015, 05:57:32 pm
Alright, just trying help. I didn't see you deleting the origin after adding it, so figured I'd make a suggestion that doesn't contribute to gspawn, and makes your life a bit easier, is all. But really, you should be able to incorporate this into the weapon prob. Without doing easy fx or csc. Just by adding like one line to _zombiemode_weapons, for the play fx part.
I'll look into that, I was not aware also leaving the script_origin could contribute to a g_spawn error. lol I added to the tut to tell people to delete it.
Title: Re: [Tutorial] Black Ops 2 Style Wall Weapon FX
Post by: MakeCents on July 02, 2015, 06:01:42 pm
I'll look into that, I was not aware also leaving the script_origin could contribute to a g_spawn error. lol I added to the tut to tell people to delete it.
Cool. Origins are ents so... I once added 30+ in a map and was already close to 1000 ents, and I had a field day. Swapped out for structs, modified script, all worries done, lol.
Title: Re: [Tutorial] Black Ops 2 Style Wall Weapon FX
Post by: steviewonder87 on July 02, 2015, 07:07:50 pm
Well this tut is dif cause bam spawns an ent. This tut doesn't. But really, you can just play fx on the weapon, it is an ent too. Or even play fx at the origin of the trig, unless the angle matters.
Title: Re: [Tutorial] Black Ops 2 Style Wall Weapon FX
Post by: Scobalula on July 02, 2015, 07:26:17 pm
Well this tut is dif cause bam spawns an ent. This tut doesn't. But really, you can just play fx on the weapon, it is an ent too. Or even play fx at the origin of the trig, unless the angle matters.
Never said mine was better or different, wasn't aware of his tutorial also, tried searching for something similar, so did CreeperFace, couldn't find anything, but tbh never had much luck with the search on here.. If people want to use that and find it easy then go for it. :D
Title: Re: [Tutorial] Black Ops 2 Style Wall Weapon FX
Post by: Harry Bo21 on July 02, 2015, 08:23:02 pm
Well this tut is dif cause bam spawns an ent. This tut doesn't. But really, you can just play fx on the weapon, it is an ent too. Or even play fx at the origin of the trig, unless the angle matters.
Yea I just did playFX on the weapon model, but ive always been curious about csc scripting, so still a good read lol
Title: Re: [Tutorial] Black Ops 2 Style Wall Weapon FX
Post by: Scobalula on July 02, 2015, 09:39:11 pm
Well I tried doing it but I am new to scripting so it's all trial and error for me and obviosuly this is error.
My #1 attemt was via just adding playfx to the original funtion in _zombiemode_weapons.gsc like so:
When that didn't work I just made a new GSC and called it in my maps GSC:
But didn't work either, if I could get this to work it would make the whole process 100 times easier. :P
Title: Re: [Tutorial] Black Ops 2 Style Wall Weapon FX
Post by: MakeCents on July 02, 2015, 10:15:57 pm
to grab the model from the prefab and use that instead of the trigger itself
I think hes right, need to load it before zombiemode::main() i think, I always load fx in my init functions, which are called prior to that
You mean model.origin I think.
I meant he was missing the level._effect["wall_weapon_light"] = part. He just has the load fx part, without establishing the key. Yours is also missing that, of course, when you try to play it.
Title: Re: [Tutorial] Black Ops 2 Style Wall Weapon FX
Post by: Harry Bo21 on July 03, 2015, 12:09:07 am
Quote
level._effect["wall_weapon_light"] = part
that was what i meant ;)
Quote
model.origin
well yea you would use the origin, i just meant that .target is referring to the model in question. so yea .target.origin would be used for playing the fx :)
Title: Re: [Tutorial] Black Ops 2 Style Wall Weapon FX
Post by: Scobalula on July 03, 2015, 03:05:53 pm
Updated tutorial, thanks to Hitman for the script and to everyone else for helping. :D
Title: Re: [Tutorial] Black Ops 2 Style Wall Weapon FX
Post by: Scobalula on May 30, 2016, 09:51:21 pm
Updated with better FX rather than just a light, it actually has a little "flare" that shows, and will disappear as you get close.
Updated script part of the tutorial with less steps.
Title: Re: [Tutorial] Black Ops 2 Style Wall Weapon FX
Post by: thezombieproject on July 18, 2016, 02:02:36 pm
to grab the model from the prefab and use that instead of the trigger itself
if you use weapon_spawns.target and play fx on model most prefabs have half of the gun is in the wall and the origin of the weapon model is in wall? also some weapon origins are not centered on the model so fx will play few units away from the center of the prefab? Just wondering :)
Title: Re: [Tutorial] Black Ops 2 Style Wall Weapon FX
Post by: alaurenc9 on July 23, 2016, 04:00:30 pm
if you use weapon_spawns.target and play fx on model most prefabs have half of the gun is in the wall and the origin of the weapon model is in wall? also some weapon origins are not centered on the model so fx will play few units away from the center of the prefab? Just wondering :)
In BO2 the blue light fx around the chalk shows because all of the weapon chalk in BO2 is done by FX, and so they added that as just a little feature to make it stand out more, idk. But in BO2 they play the fx at the model origin is it should be fine because the model isn't 'in' the wall, its 'on' the wall.
Or even play fx at the origin of the trig, unless the angle matters.
Two things I want to say. #1: I noticed in BO2 FX that there is a billboard sprite flare and an oriented sprite flare. So if you want to, you could make both, but that would mean angles would matter. #2: You can use angles in PlayFX, like this: