• How to add act_vm_idle in a base
    22 replies, posted
Title says it all how I can make it work. I just added in my shared.lua [CODE] function SWEP:Idle() if self.dt.Suppressed then self:SendWeaponAnim(ACT_VM_IDLE_SILENCED) else self:SendWeaponAnim(ACT_VM_IDLE) end self.dt.State = SWB_IDLE CT = CurTime() self:SetNextSecondaryFire(CT + self.IdleTime) self:SetNextPrimaryFire(CT + self.IdleTime) return true end [/CODE] For example: Deploy work with: SWEP.DeployTime = 1 (In case this helps to wondering something) But this doesn't seem to work. Any tip?
1) Are you calling SWEP:Idle() anywhere in your code? 2) Don't use self.dt, use the proper Set/Get methods.
I just added the function of ACT_VM_IDLE with the other functions that calls the others animation such as draw and reload. Everything is where it needs to be , the problem I guess is that , the function is not called to be used.
Any help , please ?
Look at how the fists handle idle: [url]https://github.com/garrynewman/garrysmod/blob/master/garrysmod/lua/weapons/weapon_fists.lua[/url]
Now works, but skip the rest of animations like , sil off , sil on , reloads and start_reload_shotgun , end_reload_shotgun ? Any tip to fix that ?
What?
I mean when reloading or shooting , the idle just pop instantly without playing the rest of the sequence of the reload. And sorry my english is not the best x)
Make sure you run self:SetNextIdle( CurTime() + self:SequenceDuration() ) after you run a different activity.
Okay , thank you it's working fine the idle animations but , in case of act_vm_idle and act_vm_idle_silenced it only reproduce act_vm_idle_silenced not the idle without the silencer. Any idea ?
[QUOTE=Xanatos98;48878792]Okay , thank you it's working fine the idle animations but , in case of act_vm_idle and act_vm_idle_silenced it only reproduce act_vm_idle_silenced not the idle without the silencer. Any idea ?[/QUOTE] Dime que estas intentando hacer y traducirte porque no se te entiende my bien. Y de paso te intentare ayudar. Translation: Tell me what you're trying to do and ill translate it properly for them and ill help you as well
[QUOTE=geferon;48878868]Dime que estas intentando hacer y traducirte porque no se te entiende my bien. Y de paso te intentare ayudar. Translation: Tell me what you're trying to do and ill translate it properly for them and ill help you as well[/QUOTE] Intento añadir a una base la sequencia act_vm_idle , todo bien por el momento , el único problema es que ahora el act_vm_idle en las armas silenciadas que tienen 2 act_vm_idle uno para el sin silenciador y otro para el , solo displayea con el codigo que me han dado con silenciador y no sin el. Estoy intentado que me hechen una mano para incluir el act_vm_idle sin silenciador
Basically, what this guy wants is an act for a gun that has both idle acts either for the gun with a silencer and without it. Basically he wants the code for the gun's idle act without the silencer. [editline]11th October 2015[/editline] Eres el primer español que encuentro en esta seccion de gmod. Enhorabuena
Any idea on how to add the second idle for suppressed weapons ?
Anyone ?
bump
Isn't your question answered?
[QUOTE=vrej;48904992]Isn't your question answered?[/QUOTE] No
The first question about the idle it has been answered but then I asked another question about adding idle for silenced guns. So the question now is: how to add act_vm_idle in a silenced weapon ?. The code up there that gave me code_gs already enable the act_vm_idle_silenced but not the act_vm_idle without silencer
Coño, haber dicho eso desde el principio. Te lo puedo hacer en casa. Agregame en steam te lo paso cuando pueda. Translation: I know how to do that. Just add me on steam and ill give it to ya when i can
[QUOTE=geferon;48907702]Coño, haber dicho eso desde el principio. Te lo puedo hacer en casa. Agregame en steam te lo paso cuando pueda. Translation: I know how to do that. Just add me on steam and ill give it to ya when i can[/QUOTE] I prefer people to tell me and learn myself. Than you doing it for me. Thank you anyway
[QUOTE=Xanatos98;48907820]I prefer people to tell me and learn myself. Than you doing it for me. Thank you anyway[/QUOTE] O te explico como. Ya que son solo 2 lineas
[QUOTE=geferon;48907825]O te explico como. Ya que son solo 2 lineas[/QUOTE] Si me lo explicas si , pero no quiero que me hagas tú el trabajo.
Sorry, you need to Log In to post a reply to this thread.