Posts: 50
Threads: 12
Joined: Aug 2014
Reputation:
0
(02-19-2015, 17:18)Nekochan Wrote: (02-19-2015, 16:36)rvyASVP Wrote: (02-19-2015, 16:24)Nekochan Wrote: Try this function instead of 'switchtoweaponimmediate':
Code: self SetSpawnWeapon("wep");
Else you can try following:
Code: self TakeWeapon("wep"); // takes weapon without anim
self GiveWeapon("wep");
self SwitchToWeapon(Immediate)("wep");
.. or put SetSpawnWeapon instead
so instead of the 'wep' i should put in a wepon or am i wrong?
(02-19-2015, 16:36)rvyASVP Wrote: (02-19-2015, 16:24)Nekochan Wrote: Try this function instead of 'switchtoweaponimmediate':
Code: self SetSpawnWeapon("wep");
Else you can try following:
Code: self TakeWeapon("wep"); // takes weapon without anim
self GiveWeapon("wep");
self SwitchToWeapon(Immediate)("wep");
.. or put SetSpawnWeapon instead
so instead of the 'wep' i should put in a wepon or am i wrong?
nice dat finally works as planned ^^
but theres another thing, if i do that while the spas is doing this reload thing to put another bullet in the chamber, the intervention is going to shoot right after that...
i dont know but is there any way to fix dat?
Put a delay? ( wait .05; )
ok and now the last point how can i define a variable for every secondary and primary so i can do this without putting the special weapon to the code?
Posts: 3,704
Threads: 147
Joined: Jan 2011
Reputation:
119
(02-19-2015, 17:42)rvyASVP Wrote: (02-19-2015, 17:18)Nekochan Wrote: (02-19-2015, 16:36)rvyASVP Wrote: (02-19-2015, 16:24)Nekochan Wrote: Try this function instead of 'switchtoweaponimmediate':
Code: self SetSpawnWeapon("wep");
Else you can try following:
Code: self TakeWeapon("wep"); // takes weapon without anim
self GiveWeapon("wep");
self SwitchToWeapon(Immediate)("wep");
.. or put SetSpawnWeapon instead
so instead of the 'wep' i should put in a wepon or am i wrong?
(02-19-2015, 16:36)rvyASVP Wrote: (02-19-2015, 16:24)Nekochan Wrote: Try this function instead of 'switchtoweaponimmediate':
Code: self SetSpawnWeapon("wep");
Else you can try following:
Code: self TakeWeapon("wep"); // takes weapon without anim
self GiveWeapon("wep");
self SwitchToWeapon(Immediate)("wep");
.. or put SetSpawnWeapon instead
so instead of the 'wep' i should put in a wepon or am i wrong?
nice dat finally works as planned ^^
but theres another thing, if i do that while the spas is doing this reload thing to put another bullet in the chamber, the intervention is going to shoot right after that...
i dont know but is there any way to fix dat?
Put a delay? ( wait .05; )
ok and now the last point how can i define a variable for every secondary and primary so i can do this without putting the special weapon to the code?
Check weaponClass. I don't remember how it works. Try to search for "weaponClass". So with weaponClass you can get the type of weapon ( smg, lmg, assault, etc ).
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Posts: 50
Threads: 12
Joined: Aug 2014
Reputation:
0
(02-19-2015, 20:01)Nekochan Wrote: (02-19-2015, 17:42)rvyASVP Wrote: (02-19-2015, 17:18)Nekochan Wrote: (02-19-2015, 16:36)rvyASVP Wrote: (02-19-2015, 16:24)Nekochan Wrote: Try this function instead of 'switchtoweaponimmediate':
Code: self SetSpawnWeapon("wep");
Else you can try following:
Code: self TakeWeapon("wep"); // takes weapon without anim
self GiveWeapon("wep");
self SwitchToWeapon(Immediate)("wep");
.. or put SetSpawnWeapon instead
so instead of the 'wep' i should put in a wepon or am i wrong?
(02-19-2015, 16:36)rvyASVP Wrote: so instead of the 'wep' i should put in a wepon or am i wrong?
nice dat finally works as planned ^^
but theres another thing, if i do that while the spas is doing this reload thing to put another bullet in the chamber, the intervention is going to shoot right after that...
i dont know but is there any way to fix dat?
Put a delay? ( wait .05; )
ok and now the last point how can i define a variable for every secondary and primary so i can do this without putting the special weapon to the code?
Check weaponClass. I don't remember how it works. Try to search for "weaponClass". So with weaponClass you can get the type of weapon ( smg, lmg, assault, etc ).
i finally got it... it was self.Primary/secondaryWeapon or Name i dont remember
|