// OPEN THIS FILE IN WORDPAD // ______ __ __ ______ ______ // /\ ___\ /\ \/\ \ /\ == \ /\ ___\ // \ \___ \ \ \ \_\ \ \ \ __< \ \ __\ // \/\_____\ \ \_____\ \ \_\ \_\ \ \_\ // \/_____/ \/_____/ \/_/ /_/ \/_/ // ______ ______ ______ ______ ______ ______ ______ // /\ == \ /\ __ \ /\ __ \ /\ ___\ /\__ _\ /\ ___\ /\ == \ // \ \ __< \ \ \/\ \ \ \ \/\ \ \ \___ \ \/_/\ \/ \ \ __\ \ \ __< // \ \_____\ \ \_____\ \ \_____\ \/\_____\ \ \_\ \ \_____\ \ \_\ \_\ // \/_____/ \/_____/ \/_____/ \/_____/ \/_/ \/_____/ \/_/ /_/ // // Surf Booster // ____ ____ ____ ____ ____ ____ _________ ____ ____ __________ // ||P |||l |||u |||g |||i |||n ||| |||B |||y || Kat_Fish \______________ // ||__|||__|||__|||__|||__|||__|||_______|||__|||__||__________/ // |/__\|/__\|/__\|/__\|/__\|/__\|/_______\|/__\|/__\| // // Plugin by: Kat_Fish // // // With Special thanks to: Venjax, Zakk, Matteh, Clownfart // // eventscripts language by: mattie // // es_tools by: Awuh0 // // block load { es_xsetinfo Infboosts 1 // Set this to 1 to allow infinte boosts per round leave at 0 for 1 boost //----DO----NOT----EDIT-----BELOW----THESE----LINES--- //------------------------------------------------------------------------------ //------------------------------------------------------------------------------ //------------------------------------------------------------------------------ //------------------------------------------------------------------------------ //------------------------------------------------------------------------------ //------------------------------------------------------------------------------ es_xsetinfo surf_boost 1 es_xmakepublic surf_boost es_xdoblock corelib/noisy_on es_xset loc 0 es_xset aim 0 es_xset vec 0 es_xset varx 0 es_xset vary 0 es_xset varz 0 } block unload { es_xsetinfo surf_boost 0 es_xload corelib es_xdoblock corelib/noisy_off } // When the round starts, reset whether the player has used their boost or not event player_spawn { es playervar set event_var(userid) Boosted 0 } // When the player says !sboost do the check block event player_say { if (event_var(text) equalto "!sboost") do { es_xdoblock surf_boost/check } } // Check if they have already used the command this round block check { if (server_var(Infboosts) = 0) do { es_xset boosted 0 es_xset check_var 0 es playervar exists check_var event_var(userid) Boosted if (server_var(check_var) == 1) do { es playervar get boosted event_var(userid) Boosted if (server_var(boosted) = 0) do { es_xdoblock surf_boost/boost_player } es playervar set event_var(userid) Boosted 1 } } else do { es_xdoblock surf_boost/boost_player } } // The player boosting block block boost_player { // Get the players location es_getplayerprop loc event_var(userid) "CBaseEntity.m_vecOrigin" //Get where the player is aiming es est_GetviewCoord event_var(userid) varx vary varz // create a vector string es_createvectorstring aim server_var(varx) server_var(vary) server_var(varz) // Create a vector from points es_createvectorfrompoints vec server_var(loc) server_var(aim) // Boost the player forward es_setplayerprop event_var(userid) "CCSPlayer.baseclass.localdata.m_vecBaseVelocity" server_var(vec) // Get the players name and then send a message throughout the server saying player * has boosted es_xsetinfo playername 0 es_getplayername playername event_var(userid) es_msg #multi #lightgreen server_var(playername)#default has boosted! // Resets the view variables es_xset varx 0 es_xset vary 0 es_xset varz 0 } // By using this plugin you agree to the following terms of use. // ---------------------PLUGIN TERMS OF USE--------------------------- // You may not release this script as your own // If you modify this script you must keep the original credits in your // modified version of it.