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,188 07-27-2013, 13:21
Last Post: Bandarigoda123
  how to remove commands in the chat ExoGamer* 6 4,370 07-20-2013, 09:24
Last Post: Pozzuh
  [Release] Mw3 Simple External Console barata 25 22,115 06-30-2013, 16:30
Last Post: nexzhd
  Simple flyable helicopter script port, could use help! akillj 0 2,515 06-15-2013, 09:20
Last Post: akillj
  server commands [HARD] Tony. 0 2,056 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,075 06-03-2013, 10:38
Last Post: Yamato
  Help Hide commands dhanin 5 3,976 03-28-2013, 00:11
Last Post: Dr3am95
  [Tutorial] Making A Simple Calculator! Ivankec 4 8,734 12-14-2012, 19:22
Last Post: Gam3rr0rZ
  HELP ME WITH COMMANDS schorweg123 4 3,431 10-28-2012, 10:50
Last Post: d0h!
  HELP ME WITH COMMANDS schorweg123 1 2,533 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.