Bravo advance using suppression fire for cover

An SAS bot sniping on a rooftop

Marines in close combat while assaulting a rooftop


Hosted by:
Bot Epidemic
and
TeleFragged

Visitor #: 00760

Latest news on CGFThe CGF conceptTechnical CGF information [AI and design]Got a CGF question? Read this firstHow to script CGF missions yourselfGet your CGF files and missions hereLinks to related sites [such as AQ2 or AI sites]

Breakable Glass for CGF / AQ2

Would you like to bust through windows to surprise your opponent? Is it cool to take out both your target and the pane he feels safe behind? Does the sound of breaking glass get your adrenaline pumping?

My bots answered "yes, yes, and yes". They consider breakable windows essential for single player AQ2 (and for some LAN AQ2). So Tekminus, doing the test maps, and I, doing bots and additional coding, sat down and started breaking stuff.
Have a look at the results...

Sabotage about to sabotage the window Sabotage halfway the window - he receives damage and the windows starts breaking The result of Sabotage's jump (a pity you can't hear the noise)

This breakable glass allows you to:

  • jump through windows
    you need to have sufficient speed and approach the pane more or less frontally; you receive 15 damage and continue to bleed [see top 3 images above]
Adi using his shotgun to open the window and lay down the grunt Grunt (well camouflaged behind the window) taking out Adi with only a bullet hole in the window Adi, receiving complimentary glasses with his sniper bullet
  • fire through windows
    Take out your opponent through the glass. When using the sniper rifle or the shotguns, the pane will always break. For bullet weapons (handgun, machine guns) the chances are about 25% percent for the glass to break. In all cases, glass fragments erupt from the pane. Bullet effectivity is not reduced (just made fancier) [see second row of images]
Thug kicking Sabotage towards the windows and ... ... Sabotage busting the window while Thug gets his gun Adi creates a way through - his shotgun causes both the window and grunt to shatter
  • jump kick window (or your opponent through the window)
    When you lack the speed to jump through, your repertoire of jump-kicks will do to break the window; however, you incur the 15 damage and bleeding. Skilled Action gamers will soon use their opponents to break the glass and receive that damage. [see third row, image 1 & 2]
  • grenades and windows
    Hand grenades will easily break windows: first, when you throw them through the glass to surprise your friend. And second, when the grenade explodes and blasts away any nearby windows still untouched.
  • knifes
    Knifes have a harder time in dealing with glass. Thrown knifes will happily bounce from glass. The sole way of destructing a window with a knife is to slash it (and you won't receive damage from that).

For normal gamers, that's about all you have to know about breakable glass. Except for one thing: at this time, none of the official Action Quake2 maps features breakable glass, except for office3. However, mappers can add breakable glass easily, and without endangering normal Action Quake2 performance on their maps. So start requesting breakable glass from your favourite mappers today!

(NB. Breakable glass has been present in the early days of Action Quake (at the time of version 0.47). It was taken out, because the amount of glass fragments (and the corresponding broadcast messages) tended to crash servers.
This time, utmost care has been taken to keep the amount of glass fragments and messages within server specified limits. In addition, the breaking of glass has been fully integrated with all of AQ2's features: different weapon types, damage, running, jump kicks, bullet holes, blood splats, grenades, and teamplay rounds.)

For server ops and mappers, there two more important things:

  1. breakable windows are as optional to the server as are bullet holes, blood splats and ejecting shells. By default, they are not enabled. Set the cvar "breakableglass" to "1" to enable breakable glass.
    Breakable glass will cause an amount of lag comparable to bullet holes; breakable glass therefor is not a realistic option for internet games. It definitely is a good option for CGF bot games, and for some LAN games as well.
    Note that the current special FX such as bullet holes, blood splats and shells mainly have a cosmetic purpose; however, breakable glass really affects the game.
    Broken glass will be reconstructed for every round of team play, ensuring maximum recycling of this material.
    The total amount of glass fragments (dynamic entities) can be controlled via the cvar "glassfragmentlimit" (default value "30").

  2. As mentioned above, mappers can add breakable glass without endangering the map's performance under normal Action Quake2 deathmatch and team play. That's because, by default, all func_explosives are removed in multi-player mode. Only when breakable glass is enabled, solely those func_explosives that contain transparent surfaces are retained.
    To add a breakable glass brush, you have to make it a func_explosive. Then make sure the textures are set to be transparent. Make sure the brush has health (health > 0), and doesn't cause damage (dmg = 0). Make sure you add a target_speaker entity that plays the (standard Q2) breaking glass sound (brkglas.wav). That's it.
    (For these glass func_explosives, the new code will automatically spawn a a trigger field detect player movement; you don't need to add additional triggers).

Special credits: tekminus, for crafting the first AQ2 test maps so my bots and I could exercise the breaking of glass.

Breakable Glass Downloads

William



Questions? Comments? Suggestions? Send them here
CGF is written by William van der Sterren. All content is © William van der Sterren unless otherwise stated.
Action Quake2 is written by, and ©, the A-Team
CGF website designed by Cube, © 1999. Best viewed @ 800x600 HiColor in a version 4 browser.
And yes, a large number of bots were hurt during the photo sessions (but they fell in the line of duty).

This site uses the PNG (Portable Network Graphics) image format.
If your browser cannot display this image format please go to this site to download a plug-in.