Now you can remove or modify the inline styles that I have in there. I had them there when I was playing around with the font size and spacing on thr4shmetal.com. There’s not much else to know. I tested this on drupal 5.x and 6.x Enjoy.
For all of you who love to use “else - if” as thier primary conditional programming, switch statements are a great alternative.
the syntax looks like this:
<?php
switch ($var)
{
case 1:
echo "Condition 1";
break;
case 2:
echo "Condition 2";
break;
case 3:
echo "Condition 3";
break;
default:
echo "This text appears when the var doesn't match any case";
}
?>
$var can be set anyway you want, through a session so a content can be changed on login. I’ve used switch statements primarily when filtering websites out.
Check out my example:
below i am declaring the var “$cat” by getting the string from the url.
Switch statements are just another way of doing the same thing, I find that they are more organized within my programming and it is easier to add conditions later on.
I’ve gotten a ton of feedback over the last couple months on this guide. I also played a ton more. So I made a ton of amendments and additions. Happy Hunting.
1. This is the half life engine
Have you played counter strike? You buy the M16 and couch down, let off some burst fire at some terrorist? Well this game allows for the same tactics that worked well in counter strike. The zombies wonder around slow and stupid, from a distance carefully aim an m16 or your pistols at a zombie’s head and let off a burst. You will notice that the zombie’s head is easily turned into jello and splattered on the ground. You can easily kill 20-30 zombies with one clip of the m16 if you attack this way.
2. Zombies are Stupid Zombies will attack anything, including, pipe bombs, when you hurl a pipe bomb out a window and into a crowd of zombies, they will run at it as fast as they can, in a few short seconds all zombies in the area will be turned into zombie paste. A good strategy for this is to use pipe bombs when a teammate or yourself is hit with bomber puke.
Zombies also run in a straight line, most weapons (especially the m16) will tare through zombies with ease, 3 bullets can kill over 7 zombies if they stand in a line while running at you.
3. Don’t Get Surrounded There are times when hundreds of zombies will be running at you from all directions. If you trigger an alarm, or if a Boomer pukes on you. It can be overwhelming and cause you to panic quiet easily.
Zombies can only attack melee, which means the most damage they can do to you is when they have you surrounded, by backing up into a corner or putting your back to a wall you can cut down the beating by 50% and cause these morons to line up so you can take them down in sections.
In addition to this, grouping together in a corner can make your team an indestructible force. You can literally walk through your team mates. This makes it possible for all 4 players to stand in the same corner. 4 Players with Auto shotgun in a corner can waste a tank on normal-hard without suffering any damage. Remember this when planning a strategy on survival or during a campaign last stand.
4. Conserve Ammo and Milk The Ammo Piles
Even though the pistol seems ineffective when being rushed. It is very useful tool when it comes to conserving primary ammo. On Hard and Expert difficulty it takes more ammo to take down most enemies. This means you run out of primary ammo quickly. Using your pistols whenever possible to take out distant zombies will help save on ammo needed for tanks and other supers.
When you exit a safe house and you have to waste some zombies, before you move on be sure to go back into the safe house and max out your ammo again.
When running around with an upgraded weapon like the m16, you might find other spots in the campaign with more weapons, even though you already have one, grab a new one, it will conveniently have full ammo, and it might help you make it to that next safe house.
5. Friendly Fire is ALWAYS on.
That is right, friendly fire is always on, so that means if your friend is aiming his shotgun at a zombie, and you jump in front of him, your getting an ass full of lead.
a. Don’t Stand in door ways,
b. Don’t Jump in front of your team mates,
c. Stay to the side in hall ways and tunnels.
d. If your buddy is covered with zombies, shoot them, not him, if your not a steady shot, then melee the zombies instead, they will be knocked off of him and hopefully in a better position for you to shoot them.
6. Keep Moving
For most of the campaign, zombies will not stop coming, if you try to camp, you will just keep running into smokers, boomers, and hunters, they will not stop spawning, Get to the safe house, don’t mess around.
7. The Super Infected and you There are 5 different types of super infected that you will run into.
One. Hunters - hunters are these jumpy bastards that you can identify easily. They screech, and crawl, they will also jump long distances. These things will jump at you and pin you to the ground, your team mates will have to get him off of you. It’s best to melee hunters off your team mates when possible. You can dodge hunters by side stepping their jumps.
Two. Smokers - Smokers have a huge tongue and will try to strangle you with it. Smokers make coughing sounds when they are near by and have a green mist surrounding them. When you kill them a cloud of toxic smoke it appear over the body, don’t stand in this. If they get you will their tongue, your team mate can shoot the tongue and break the hold, melee you, are they can kill the smoker himself.
Three. Boomers - these fat pieces of shit will try and puke on you, theirĀ puke will attract every zombie in the area to you, it also blinds you. Boomers make burping sounds when they are in the area and look like a fat guy in a little coat. When shot, they will explode and cause damage to anyone around it. To Take this fuckers out safely, melee them back and fire a shot.
Four. The Witch - the witch is found on her knees, crying. She also gets her own music, some scary shit too.
If you can avoid her, you are better off, if she knocks you down, your buddies will pick you back up, but you’ll have 30hp left, and it will slowly drop. Don’t shine a flash light on her. She usually appears once per section, however the director will sometimes place her more than once just to screw with you. If your skilled enough you can crown the which buy firing an auto shotgun at her face at point blank.
Crowning the Witch:
Five. - The Tank - This Huge zombie will take a lot of punishment before going down, I think his health is something like 3500, so it will take the whole team to take him down most of the time. When he hits you, you will go flying through the air and a huge chunk of life will be missing from your health bar. If attacked up close, run, be the bait and let your team mates attack him. If they are the bait, then just shoot with every bit of ammo you have. Tanks can smash cars towards you as well. If there is a tank running towards you and you are behind a car. The tank can punch the car and kill you with it.
8. The game is never the same.
So you beat a campaign, and you want to play it again. You think, “I got this, I know where everything is, I can avoid the witch this time, and I have a perfect strategy for that tank in the long hallway”. Well guess what. The zombies are always placed in different spots. You will most likely never have a same play through. Sometimes the witch is right in front of the safe house, while other times, she is tucked away in the woods, this goes for every campaign, so always stay on your toes.
9. Stay together
I know you might think you are l33t, and you can handle zombies on your own, no problem, however, if a hunter has you pinned and you are 2 minutes further along then your friends, then your as good as dead.
10. GET IN THE CHOPPER, GET IN THE TANK, GET ON THE BOAT At the end of every campaign you will have to make a last stand against the horde while help is on its way. During this time you will be attacked by multiple tanks, boomers, smokers, hunters, and endless zombies.
When rescue gets there, run to it. At that point zombies will not stop coming until you are dead, or you escape. I can’t tell you how many times i die right in front of the helicopter. Just run run run.
END That’s it, keep this 10 tips in mind when fighting the horde, keep your ammo full and your ass out of the line of fire, happy hunting.
Having trouble deciding what to charge your client? Here is a little guide that I made up to help out people new to charging for web services.
1. The cost of your past projects.
In your portfolio you will display past projects, they play a factor in price of future costs - Normally this works because - if you are working for “mom and pop shops” - they will pay very little - and the website will normally be simple, the more expensive sites, seem to be bigger and more impressive.
therefore you end up working uphill - the bigger the project is, the easier it will be to get another big project because you will have something in your portfolio that shows that you have experience.
2. Technology.
Depending on what the client wants, you can charge them more. A common example is charging larger amounts of money for flash elements, or if you need to write a custom ajax script for the website.
The way I handle this is by charging by time - and the cost is different depending on what technology I’m building in.
Here is an example :
The Client - “Build me a 5 page website, you need to design a logo and a template, a flash header, and I want to be able to update the page content.”
Sometimes you get lucky and land a client that is huge. Bigger clients are trying to buy the best they can get and are expecting to spend a certain amount of money - Under charging them might even make them think less of you - so when working with a company grosses a large income a year, make sure you adjust your pricing accordingly.
4. Experience and Contacts
The more experience you have, the more you are worth an hour. Normally it is because you will be more reliable and have more capabilities than those less experienced than you are. Also having contacts and resources, that are beneficial to your clients, could also be a factor.
If you know a developer who has 4 years of flex experience - you could outsource to him for ( example ) 500, and charge the client 1200 - you get the project done - make money - and have a new technology on your portfolio.
5. New Clients with Long Lasting Projects
Sometimes you will get a client that is looking for a developer to fill a role in a long lasting project. Sometimes it’s appropriate to charge less on the first project for these clients - once the first part of the project you would charge them normally - this will help start a good client relationship with them that could last years.
I hope you find this little guide helpful - Good luck out there
This will allow you to place ads between any post you want on your home page. What we have to do is screw around with the Wordpress While loop and make it do our evil bidding.
First - you need to edit the index.php of your theme. What ever theme you are using you want to edit it by using the wordpress admin or opening it in your favorite code editor.
themes chill here:
root/wp-content/themes/
and just find your theme and open index.php
Once you have this mush of code opened in front of you its time to start poking around.
Then using your HTML knowledge look at the code within the while loop and try to figure out where the post ends, most likely you can just stick your add right before the last “</div>” before the endwhile.
when you know where you want your add, stick this code there: