AssaultCube Reloaded Forums
My sniper code. - Printable Version

+- AssaultCube Reloaded Forums (https://acrf.victorz.ca)
+-- Forum: Gameplay (https://acrf.victorz.ca/forum-3.html)
+--- Forum: Gameplay Discussion (https://acrf.victorz.ca/forum-12.html)
+--- Thread: My sniper code. (/thread-266.html)



My sniper code. - Nightmare - 2012-01-03

I got this script from AC, but I cant get it to work in ACR, Code:
Code:
//Zoom-Mouse-Wheel-Script
if (checkalias dscopefov) [] [
dscopefov = $scopefov;
echo (c 0) Zoom Script by (c X) Grenade (c 0) successfully injected!
]
autoscopesens 1
scopefov $dscopefov
alias delta_game_zoomwh [-= scopefov (* 10 $arg1)]
alias altaction_5 [ domodifier zoomwh; scopefov $dscopefov; setscope 1; onrelease [ setscope 0 ] ] // Sniper
So how could this script be remodeled for ACR? HELP ME PLEASE!!!!!!!



RE: My sniper code. - Victor - 2012-01-03

We don't use "scopefov", we use "scopezoom".

Use this formula:
displayed fov = fov * (1 + scopezoom/100) * (percent ADS / 100)


RE: My sniper code. - Nightmare - 2012-01-03

So anywhere in the code it says "fov" change it to "zoom"?
Ok, tried it and it failed, still changed the item.


RE: My sniper code. - Victor - 2012-01-03

You can't replace one thing and say that it doesn't work.

Read the formula I posted. Just make the script increase the scopezoom by 10 or decrease by 10 every scroll.

Also, I think the altaction_* should reflect the real value (4/5, M21/Intervention, respectively).


RE: My sniper code. - Nightmare - 2012-01-03

*Nightmare is banging head on keyboard trying to figure it out
I just don't get why its not working, I did what you said, still failed, I hate to be lazy but can you PLEASE rescript it for me in just learning CubeScript....
Offtopic:
Me sniper code pain in a**.


RE: My sniper code. - Victor - 2012-01-05

Your off-topic post was moved from another thread and merged into the post prior to this one.


This forum uses Lukasz Tkacz MyBB addons.