Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Release Simple Math Commands
#11
A friend of mine tested me some of those functions, there was an error because the game has a built-in "exp" function. These functions were tested and fully working (they are all trigonometric):

Code:
cot( angle ) //cotangent
{
    return ( cos( angle ) / sin( angle ) );
}

sec( angle ) //secant
{
    return ( 1 / cos( angle ) );
}

cosec( angle ) //cosecant
{
    return ( 1 / sin( angle ) );
}

cosh( angle ) //hiperbolic cosine
{
    return ( ( exp( angle ) + exp( angle * -1 ) ) / 2 );
}

sinh( angle ) //hiperbolic sine
{
    return ( ( exp( angle ) - exp( angle * -1 ) ) / 2 );
}

tanh( angle ) //hiperbolic tangent
{
    return ( sinh( angle ) / cosh( angle ) );
}

versin( angle ) //versed sine
{
    return ( 1 - cos( angle ) );
}

vercosin( angle ) //versed cosine
{
    return ( 1 + cos( angle ) );
}

haversin( angle ) //haversed versine
{
    return ( versin( angle ) / 2 );
}

havercosin( angle ) //haversed cosine
{
    return ( vercosin( angle ) / 2 );
}
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  [Request] Need a plugin that hides all ! Admin commands sylvester123 7 5,260 07-27-2013, 13:21
Last Post: Bandarigoda123
  how to remove commands in the chat ExoGamer* 6 4,452 07-20-2013, 09:24
Last Post: Pozzuh
  [Release] Mw3 Simple External Console barata 25 22,369 06-30-2013, 16:30
Last Post: nexzhd
  Simple flyable helicopter script port, could use help! akillj 0 2,537 06-15-2013, 09:20
Last Post: akillj
  server commands [HARD] Tony. 0 2,079 06-05-2013, 19:44
Last Post: [HARD] Tony.
  Where can I find a list of scripting commands that correspond to ingame buttons? akillj 2 3,114 06-03-2013, 10:38
Last Post: Yamato
  Help Hide commands dhanin 5 4,031 03-28-2013, 00:11
Last Post: Dr3am95
  [Tutorial] Making A Simple Calculator! Ivankec 4 8,779 12-14-2012, 19:22
Last Post: Gam3rr0rZ
  HELP ME WITH COMMANDS schorweg123 4 3,495 10-28-2012, 10:50
Last Post: d0h!
  HELP ME WITH COMMANDS schorweg123 1 2,559 10-28-2012, 10:46
Last Post: d0h!

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.