AssaultCube Reloaded Forums
quick knife script! - Printable Version

+- AssaultCube Reloaded Forums (https://acrf.victorz.ca)
+-- Forum: Gameplay (https://acrf.victorz.ca/forum-3.html)
+--- Forum: General (https://acrf.victorz.ca/forum-9.html)
+--- Thread: quick knife script! (/thread-882.html)



quick knife script! - {KE}bluwarguy - 2013-07-18

this is a quick knife script i foun on AC forum. its by slow_old_man so all credits to him! link: forum.cubers.net/thread-38.html sorry i cant post the code, im on ipod-and ipods suck.


RE: quick knife script! - DeltaStrikeOp - 2013-07-18

So here's the code that I copy+pasted onto here. If somebody could show me how to include these into ACR, that'd be nice. =)

Quick Knife - Credits go to Kirin/AizeN
Code:
alias quickknife [
    if (!= (curweapon) 6) [melee]
    attack
    onrelease [ sleep 1 [ if (= (curweapon) 0) [weapon (prevweapon)] ] ]
]
bind Q quickknife

Can somebody instead change the Q bind to V? The Q currently is for fire selection in ACR. I could probably change it, but I might fudge it up.

Zoom script by stef:
Code:
//zoom script by stef with fog 1024 trick added, a must for a sniper
alias adjustsens [
scopefov 40
scopesensscale = (divf $scopefov $fov)
]
alias altaction_4 [ alias oldfog $fog;fog 1024
adjustsens; domodifier 1; zoom 1;
onrelease [ zoom 0; adjustsens; fog $oldfog ]
]
alias delta_game_1 [
  if (= $arg1 1) [
    if (> $scopefov 5) [scopefov (- $scopefov 5) ]
  ][
    if (< $scopefov 60) [scopefov (+ $scopefov 5) ]
  ];
  sensitivity (divf (*f (*f $oldsens $scopesensscale) $scopefov) 40)
With this script you can zoom with your sniper. Just scroll with your scrollwheel while you scope.
Seems like a must for ACR.


RE: quick knife script! - Victor - 2013-07-18

This has been a pretty old issue report: https://code.google.com/p/assaultcuber/issues/detail?id=7


RE: quick knife script! - {KE}bluwarguy - 2013-07-18

i think for now you would have to put it in the autoexec.cfg


RE: quick knife script! - Victor - 2013-07-18

Or maybe a native quickknife (40 damage?) would be better, so you can knife quicker, but with less damage.


RE: quick knife script! - DeltaStrikeOp - 2013-07-18

Hi Victor,

A bug on ACR with the quick knife is that it's stuck on the knife, even if you release V

Also, i cant get the zoom script to work


RE: quick knife script! - dm.mossberg590a1 - 2013-07-18

I also can't get the zoom script to work... it just switches weapons Sad


RE: quick knife script! - rXn - 2013-07-19

Remember how knife worked in Counterstrike: Right mouse=quick, less damage, left mouse=slow, lots of damage. I think thats best for a knife.


RE: quick knife script! - DeltaStrikeOp - 2013-07-19

Hi all,

rXn, i suggest the same thing. quick knife could be a slashing motion, while a normal knife would be slower, and would basically be a stab. Stabbing requires more time, as you probably know from camping.

Eh, this might create too much coding and modeling though.


RE: quick knife script! - rXn - 2013-07-19

Mostly animation... I'm nto good at this but should be possible

Maybe with two different pseudo-weapons?


This forum uses Lukasz Tkacz MyBB addons.