Cvar's

Thread: Cvar's

  1. #1

    Cvar's

    Hey guys i created a little hack with fum1ns esp src to learn.Anyways i cant quite seem to figure out how to force a cvar as in impulse 101 i know how to change sv_cheats to 1 and consistency etc. i just cant figure that out.Thanks alot guys.

  2. #2
    So in other words your trying to make your hack use impulse101 and noclip?

  3. #3
    LOL,no i just wanna add some extra useless options cause im cool like that :D

  4. #4
    Quote Originally Posted by roflcopter1 View Post
    Hey guys i created a little hack with fum1ns esp src to learn.Anyways i cant quite seem to figure out how to force a cvar as in impulse 101 i know how to change sv_cheats to 1 and consistency etc. i just cant figure that out.Thanks alot guys.
    ConVar *impulse=base.m_pCvar->FindVar("impulse");
    if(base.m_psCvar->your_cvar==1){ impulse->SetValue(100); // You can set it as any value you want of course. }
    else if(base.m_psCvar->your_cvar==0){ impulse->SetValue(0); // If your cvar = 0, do not set impulse value. }

    At least messing with impulse made my CSS crash in injection but this is somehow it should done. And if you mean how to force some cvars at server, everything doesnt work even with sv_cheats bypasser.
    Last edited by mencore; 14th June 2008 at 03:59.

  5. #5
    hm,thanks alot Hardcore

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Log in

Log in