[QUOTE=L337N008;14363233]Fire punch huh? I think I'll try to add that. I'll have to re-write the whole code in that way :[.[/QUOTE]
Not really. I'd just do something like, keep a variable in the weapon. Fuckit, gonna ghetto-lua it.
[lua]
self.combo=""
PrimaryAttack()
self.combo=self.combo.."left"
end
SecondaryAttack()
self.combo=self.combo.."right"
end
[/lua]
So when you use left/right it creates a string like leftleftright
In reload,
[lua]
Reload()
if self.combo=="whatever" then
tr.Entity:Ignite()
elseif etc etc
else
self.combo=""
end
[/lua]
You
You
Youu
Fucking you, L337N00B
I love you
This is awesome.
Finally a reason to play Garry's Mod again
[QUOTE=XcoliahX;14429458]You
You
Youu
Fucking you, L337N00B
I love you
This is awesome.
Finally a reason to play Garry's Mod again[/QUOTE]
Lol, thanks.
[QUOTE=MrJelle;14319228][url]http://www.youtube.com/watch?v=eE4XhXsehMA[/url] <--- That's Kenshiro. It'd work if you ramped the damage down to cope for the speed.[/QUOTE]
[b]AAATATATATATATATATAA[/b] [i]*funky 80's music*[/i]
Nice swep, and i thought there were rebel taunts (''haha like that?'')
What does the third person view for this look like? Does it actually show you punching?
Yes. It looks awesome.
[QUOTE=Jmax;14452842]What does the third person view for this look like? Does it actually show you punching?[/QUOTE]
Yes, it does.
How do you make 3rd person animations anyway?
Thanks for permission to use this in my gamemode, it's working great.
I've added some custom sounds and effects, hoping to make a combo hit vaporise a corpse. :3
[QUOTE=Jmax;14457709]How do you make 3rd person animations anyway?[/QUOTE]
This is how it looks in my SWEP (it wasn't created by me):
[lua]
if( SERVER ) then
AddCSLuaFile( "shared.lua" )
SWEP.HoldType = "fist"
local ActIndex = {}
ActIndex[ "fist" ] = ACT_HL2MP_IDLE_FIST
function SWEP:SetWeaponHoldType( t )
local index = ActIndex[ t ]
if (index == nil) then
return
end
self.ActivityTranslate = {}
self.ActivityTranslate [ ACT_HL2MP_IDLE ] = index
self.ActivityTranslate [ ACT_HL2MP_WALK ] = index + 1
self.ActivityTranslate [ ACT_HL2MP_RUN ] = index + 2
self.ActivityTranslate [ ACT_HL2MP_IDLE_CROUCH ] = index + 3
self.ActivityTranslate [ ACT_HL2MP_WALK_CROUCH ] = index + 4
self.ActivityTranslate [ ACT_HL2MP_GESTURE_RANGE_ATTACK ] = index + 5
self.ActivityTranslate [ ACT_HL2MP_GESTURE_RELOAD ] = index + 6
self.ActivityTranslate [ ACT_HL2MP_JUMP ] = index + 7
self.ActivityTranslate [ ACT_RANGE_ATTACK1 ] = index + 8
self:SetupWeaponHoldTypeForAI( t )
end
end
[/lua]
This is awesome. Is that ^^ a third person animation?
Mo fists! :d
may i ask if i could use these in my gamemode?
if only this was used with a lightsaber...
I cannot get this to work. I installed it correctly more than twice, but still my right punch animation gets replaced with the left punch animation, so they are both left punch animations!
If you have any suggestions on why this doesn't work, please tell me.
Well. I have one suggestion. Check the date of the OP and the last post. Congrats you're one step closer to figuring out the problem.
Let this thread die already, I made this SWEP a century ago.
Sorry, you need to Log In to post a reply to this thread.