Alright this is it so far
[lua]
local plasma = ents.Create("env_fire")
plasma:SetKeyValue("health", 60)
plasma:SetKeyValue("firesize", 500)
plasma:SetKeyValue("fireattack","1")
plasma:SetKeyValue("damagescale","50")
plasma:SetPos(tracer.HitPos)
plasma:SetKeyValue("spawnflags","128") --makes entity disappear when fire goes out, to stop amount of entities building up too high
plasma:Spawn()
plasma:Activate()
plasma:Fire("StartFire","",<when to turn on>)
plasma:SetKeyValue("firetype", "Plasma")
[/lua]
I do not know what to put here though... someone help?
[lua]
plasma:Fire("StartFire","",<when to turn on>)
[/lua]
Thanks
Put:
[lua]plasma:Fire("StartFire","",0)[/lua]
To turn it on instantly, when the function is called (when the weapon is fired, or put a number if you want a delay before it turns on).
And screenshake is:
[lua]local <name> = ents.Create("env_shake")
<name>:SetKeyValue("amplitude",<noise (1-16)>)
<name>:SetKeyValue("frequency",<speed of shaking (0-255)>)
<name>:SetKeyValue("duration",<how long till it goes>)
<name>:SetPos(<position>)
<name>:Fire("StartShake","",0)
<name>:Fire("Kill","",<how long till it goes>)[/lua]
Also, can you add me to credits for helping with the: damage, shake, and fires.
Goud out.
MattDaPcWiz,
I am putting togeather a ultimate swep pack that includes all of the models,
materials,sounds and scripts.
And I would really like to use your weapon in the pack.
Could you please pm me about it.
I have been wanting to show everyone how many awesome sweps we have for garrys
mod 10 just like we had a tone of great ones for garrysmod 9.
I downloaded the weapon and when I shoot it kills people but I don't see the explosion. Any idea why?
Wow this thing is the sh*t i used it on 40 zombies and lol they were gone = D thanks for this lua.
[QUOTE=otoris]MattDaPcWiz,
I am putting togeather a ultimate swep pack that includes all of the models,
materials,sounds and scripts.
And I would really like to use your weapon in the pack.
Could you please pm me about it.
I have been wanting to show everyone how many awesome sweps we have for garrys
mod 10 just like we had a tone of great ones for garrysmod 9.[/QUOTE]
I will consider it, but not yet, it's not finished, and some time soon, it will be
[b]Edit:[/b]
[QUOTE=Venomowl]I downloaded the weapon and when I shoot it kills people but I don't see the explosion. Any idea why?[/QUOTE]
An error message would help (A LOT) however, I would say the effect is simply not loading, try re-installing, does the sound and Combine Ball death effect still work?
[b]Edit:[/b]
[QUOTE=GoudX]Put:
Also, can you add me to credits for helping with the: damage, shake, and fires.
Goud out.[/QUOTE]
Will do
Bump for hoping the update will come :v:
Well I am having a problem with the update, my PM is down for some reason, can someone PM GoudX to email me? (meszanto@tsz.com.au)
I tried his code, and I guess I did something wrong, as it does not load the game fully when I try to do it...
What updates can we expect?
Well, if I get them working with GoudX, then I would expect the Plasma, bigger redius and the earthquake to say the least
Ahh cool.
Love the effects, the screenshots i've taken are worthy as desktop backrounds, and the wepaons itself is more controllable than the nuke SWeps But please keep the bluey purple effects! :-)
I no longer have any intention to change the effect, or it's colour...
I don't see the effects, but others on the server who aren't firing it report that they see it...
[code]Client Errors:
Can't find factory for entity: point_hurt
weapons/weapon_Fusion-BombGun/shared.lua:160: Tried to access a NULL Entity!
Server Logs:
DataTable warning: <class env_sprite>: Out-of-range value <-1976775680.000000> in SendPropFloat 'm_vOrigin[0]', clamping.
DataTable warning: <class env_sprite>: Out-of-range value <-279874432.000000> in SendPropFloat 'm_vOrigin[1]', clamping.
DataTable warning: env_sprite: Out-of-range value <118665280.000000> in SendPropFloat 'm_vOrigin[2]', clamping.[/code]
Matt, I have a feeling you can't quite make a black trail anyways can you?
(Yes I looked through and read all the posts, I just figured I'd ask that.)
[b]Edit:[/b]
As in, how could you color a particle effect black? Wouldn't that just make it transparent? Or am I thinking of the alpha now...Probably am, it's 2:30 in the morning.
well not alone, with some assistance perhaps,
as is the SWep's new features are having difficulties being added, and I need help with that...
any help would be great...
Thanks
i can't download it. I don't see the link. Help me please.
Wow. When I first decided to get this, I was skeptical. But I was blown away in awe when I first fired this SWEP. A+!
how about right click to explode the rocket in mid air? :D :D :D
you need to be more specific, or at least give a weapon example that already has this feature...
[QUOTE=MattDaPcWiz]you need to be more specific, or at least give a weapon example that already has this feature...[/QUOTE]
More specific? :lol:
Teta's nuke sweps has a function like that.
Have my children.
great, this could take a while then, ;)
This is very nice. Wish it would hurt props.
[QUOTE=QwertyAccess]I don't see the effects, but others on the server who aren't firing it report that they see it...
[code]Client Errors:
Can't find factory for entity: point_hurt
weapons/weapon_Fusion-BombGun/shared.lua:160: Tried to access a NULL Entity!
Server Logs:
DataTable warning: <class env_sprite>: Out-of-range value <-1976775680.000000> in SendPropFloat 'm_vOrigin[0]', clamping.
DataTable warning: <class env_sprite>: Out-of-range value <-279874432.000000> in SendPropFloat 'm_vOrigin[1]', clamping.
DataTable warning: env_sprite: Out-of-range value <118665280.000000> in SendPropFloat 'm_vOrigin[2]', clamping.[/code][/QUOTE]
I've been getting the entity factory error on a couple of SWEPs I've made for personal use. I never had this problem pre-GMoD10, is there a fix for this?
Re-code your weapons to acomodate for Gmod10 differences in coding?
Are you trying to put the fusion blast into a rocket?
what are you using to write the code?
personally Notepad++ would be my recommendation as it has the Lua format as a format that is built into it, and it's free...
What is he trying to do matt?
from the looks of things, he's trying to make some SWep's but running into some issues, that he did not have in gmod9, hence I said re-code accounting for gmod10 differences...
because while I do not know lua, I know enough info to know they changed it a LOT in gmod10
Sorry, you need to Log In to post a reply to this thread.