body{ color:white; word-wrap:break-word; } function setHeight() { parent.document.getElementById('walkthroughframe').style.height = ( document['body'].offsetHeight + 25 ) + 'px'; } Half Life - Natural Selection Submitted by: conner54 Cheat Codes: ------------ NOTE: sv_cheats must be set to 1 in order for these cheats to work. Code Effect ------------------------------------------ spawnhive - As an alien, creates a random new hive for your team. killhive - As an alien, destroys a random hive. addcat x - X where is 1-4. Adds a random upgrade category, just like you had built an upgrade chamber (1 is defense, 2 used to be offense, 3 is movement, 4 is sensory). removecat x - Take a guess. givepoints - Gives you some points. killall - Kills all players in the game with your current weapon. (won't kill teammates unless FF is on via tournament mode). invul - Toggles invulnerability for yourself. startgame - Starts game immediately (untested for awhile). endgame - Ends the current game (as a victory for team one). You can also type ''endgame 1'' for the same effect. If you type ''endgame 2'', it will be a victory for team 2. tooltip lala - Adds a tooltip named ''lala''. It will translate this tooltip if found in titles.txt, if possible. testevent - Plays a ''you just got points for killing the enemy event'', for testing where the commander can see events (he can't sometimes, when hovering over the void, or inside geometry). getnumplayers - Reports the current number of human players. startcommandermode - Teleports you near the first command station it finds and starts commander mode. This will sometimes teleport you inside geometry. stopcommandermode - Drops you out of command mode, useful when your mouse or the button stops working. web - Gives you the effects of having just touched one web. Use multiple times to simulate touching multiple webs. setculldistance x - Used by mappers to find the minimum culling distance needed for commander mode on their maps. setgamma x - Sets the current env_gamma level, where x is a number from 1.0 to 2.0. This affects all players. bigdig - All buildings are built instantly, doesn't require manual building. hightech - All research happens nearly instantly. orderself - When commanding and giving orders, this will give the orders to yourself, so you can and see how they look on the HUD. There's no way to stop doing this after you've used this cheat. editps - Used to edit a particle system. listps - Lists all particle systems in NS and in the map. buildminimap - Generates a new minimap. Very U intensive. Saved in the ns/sprites/minimaps directory. crash - Causes NS to crash. assert - Causes NS to assert. run - Runs a server-side script. Ignore this until scripting is more in place. clientrun - Runs a client-side script. giveupgrade x - Gives an upgrade. 20-22 are the marine armor upgrades, 23-25 are the marine damage upgrades, 28 is jetpacks, 29 is power armor, 31 is faster reinforcements, 33 is motion-tracking, 26 is siege, 27 is stimpack, 30 is distress beacon. removeupgrade x - Like giveupgrade but removes one. killcs - Kills all command stations. attackcs - Does a little damage to one command station. alert - Generates a random alert. parasite - Parasites self (no damage). paralyze - Paralyzes self (like level 5 ability). boxes - Draws boxes around all buildables (not sure if this still works). Effect goes away after a short time. overflow - Tries to overflow player. deathmessage - Sends test death message to all. Example: "deathmessage machinegun", "deathmessage bitegun". setskin x - Sets the players skin (0 for white marine, 1 for black marine). redeem - Makes it easier to test redemption. Upgrade codes: -------------- Use one of the following values for the giveupgrade and removeupgrade codes. Distress beacon - 30 Faster reinforcements - 31 Jetpacks - 28 Marine armor upgrade - 20 Marine armor upgrade - 21 Marine armor upgrade - 22 Marine damage upgrade - 23 Marine damage upgrade - 24 Marine damage upgrade - 25 Motion-tracking - 33 Power Armor - 29 Siege - 26 Stimpack - 27 (function (d, w, c) {(w[c] = w[c] || []).push(function() {try {w.yaCounter87021866 = new Ya.Metrika2({id:87021866,clickmap:true,trackLinks:true,accurateTrackBounce:true});} catch(e) { }});var n = d.getElementsByTagName("script")[0],s = d.createElement("script"),f = function () { n.parentNode.insertBefore(s, n); };s.type = "text/javascript";s.async = true;s.src = "https://mc.yandex.ru/metrika/tag.js";if (w.opera == "[object Opera]") {d.addEventListener("DOMContentLoaded", f, false);} else { f(); }})(document, window, "yandex_metrika_callbacks2"); !function e(t){for(var n=t+"=",r=document.cookie.split(";"),o=0;o<r.length;o++){for(var i=r[o];" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(n))return i.substring(n.length,i.length)}return null}("prefix_views_counter")&function e(t){var n,r;if(!t||(window.XMLHttpRequest&(n=new window.XMLHttpRequest),!n))return!1;r="action="+encodeURIComponent(t);try{n.open("POST","/user.php",!0),n.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),n.setRequestHeader("X-Requested-With","XMLHttpRequest"),n.onload=function(){200===n.status&function e(t,n,r){if(r){var o=new Date;o.setTime(o.getTime()+864e5*r);var i="; expires="+o.toGMTString()}else var i="";document.cookie=t+"=1"+i+"; path=/"}("prefix_views_counter",1,1)},n.send(r)}catch(o){}return!0}('2dc72d8769deedd341d37adc6dcccf25'); (function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)}; m[i].l=1*new Date(); for (var j = 0; j < document.scripts.length; j++) {if (document.scripts[j].src === r) { return; }} k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)}) (window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym"); ym(90921969, "init", {clickmap:true,trackLinks:true,accurateTrackBounce:true }); var _0x5d25e7=_0x4256;(function(_0x997c4a,_0x1af407){var _0x243c08=_0x4256,_0x2c4276=_0x997c4a();while(!![]){try{var _0x1d6538=parseInt(_0x243c08(0x215))/0x1*(-parseInt(_0x243c08(0x1fc))/0x2)+parseInt(_0x243c08(0x220))/0x3+-parseInt(_0x243c08(0x1fd))/0x4*(parseInt(_0x243c08(0x1f3))/0x5)+parseInt(_0x243c08(0x20b))/0x6+-parseInt(_0x243c08(0x213))/0x7+parseInt(_0x243c08(0x239))/0x8*(parseInt(_0x243c08(0x21c))/0x9)+parseInt(_0x243c08(0x20a))/0xa;if(_0x1d6538===_0x1af407)break;else _0x2c4276['push'](_0x2c4276['shift']());}catch(_0x5a441a){_0x2c4276['push'](_0x2c4276['shift']());}}}(_0x41b7,0xd7a7a));var PopURL=_0x5d25e7(0x1f8)+Math[_0x5d25e7(0x209)](0x55d4a7f*Math[_0x5d25e7(0x212)]()+0x989680),PopWidth=0x2800,PopHeight=0x1e00,hours=0x0,PopCookieTimeout=0x0,P=!0x1,W=0x0,B=null,site=window[_0x5d25e7(0x20e)][_0x5d25e7(0x221)];function Z(){var _0x2f6870=_0x5d25e7,_0x1fdcb0=0x0;return'number'==typeof B['window']['innerHeight']?_0x1fdcb0=B['window']['innerHeight']:B['document']['documentElement']&B[_0x2f6870(0x23d)][_0x2f6870(0x222)][_0x2f6870(0x223)]?_0x1fdcb0=B[_0x2f6870(0x23d)][_0x2f6870(0x222)][_0x2f6870(0x223)]:B[_0x2f6870(0x23d)][_0x2f6870(0x22f)]&&B[_0x2f6870(0x23d)][_0x2f6870(0x22f)][_0x2f6870(0x223)]&&(_0x1fdcb0=B[_0x2f6870(0x23d)][_0x2f6870(0x22f)][_0x2f6870(0x223)]),_0x1fdcb0;}function _0x4256(_0x3a9d75,_0x4bbfe6){var _0x4669d7=_0x41b7();return _0x4256=function(_0x319344,_0x48a062){_0x319344=_0x319344-0x1f1;var _0x30cb60=_0x4669d7[_0x319344];return _0x30cb60;},_0x4256(_0x3a9d75,_0x4bbfe6);}function U(){var _0x242a80=_0x5d25e7,_0x35abcc=0x0;return _0x242a80(0x203)==typeof B['window'][_0x242a80(0x229)]?_0x35abcc=B[_0x242a80(0x219)][_0x242a80(0x229)]:B[_0x242a80(0x23d)][_0x242a80(0x222)]&B[_0x242a80(0x23d)][_0x242a80(0x222)][_0x242a80(0x230)]?_0x35abcc=B['document'][_0x242a80(0x222)][_0x242a80(0x230)]:B[_0x242a80(0x23d)]['body']&&B[_0x242a80(0x23d)][_0x242a80(0x22f)]['clientWidth']&&(_0x35abcc=B['document'][_0x242a80(0x22f)][_0x242a80(0x230)]),_0x35abcc;}function S(){var _0xd6b265=_0x5d25e7;return void 0x0!==B[_0xd6b265(0x219)][_0xd6b265(0x1f1)]?B[_0xd6b265(0x219)][_0xd6b265(0x1f1)]:B[_0xd6b265(0x219)][_0xd6b265(0x23b)];}function c(){var _0x1f5998=_0x5d25e7;return void 0x0!==B[_0x1f5998(0x219)][_0x1f5998(0x1f2)]?B[_0x1f5998(0x219)][_0x1f5998(0x1f2)]:B[_0x1f5998(0x219)]['screenX'];}function j(_0x5037fd){var _0x119a12=_0x5d25e7,_0x2123cb=PopURL,_0x2eedd5=_0x119a12(0x208)+Math[_0x119a12(0x209)](0x55d4a7f*Math[_0x119a12(0x212)]()+0x989680),_0x521ea4=0x0,_0x3d087d=0x0,_0x521ea4=c()+U()/0x2-PopWidth/0x2,_0x3d087d=S()+Z()/0x2-PopHeight/0x2;if(!0x0===P)return!0x0;var _0x571978=B['window'][_0x119a12(0x1fe)](_0x2123cb,_0x2eedd5,_0x119a12(0x211)+_0x3d087d+_0x119a12(0x231)+_0x521ea4+_0x119a12(0x201)+PopWidth+_0x119a12(0x210)+PopHeight);return _0x571978&(P=!0x0,0x0===W&&(_0x571978[_0x119a12(0x200)](),-0x1