project reality header
Go Back   Project Reality Forums > Developer Blogs > Arab
19 Dec 2018, 00:00:00 (PRT)
Register Forum RulesDeveloper Blogs Project Reality Members List Search Today's Posts Mark Forums Read

Rate this Entry
Working Smoke Grenades against bots
Posted in: Coding
Posted 2018-09-23 at 03:55 by Arab


Hello all!

Today I'm proud to announce that smoke grenades will finally make a come back in COOP!

The reason why they were taken out is because they never worked against bots. They were able to see through them, making cover useless. This has been a problem in Battlefield 2 since it's release, and therefore many servers opted to prohibit using smoke grenades against bots.

...Until now.

So I am pleased to say that all smoke grenades will now properly against bots!

These apply for all smoke grenades including Underbarrel Grenade Launchers but excluding Signal Grenades.

How it works:

The smoke grenades spawn an invisible sphere collision mesh which is created as a Projectile to be used against bots. Using the napalm system (GLU-1) to create a spawner, it spawns an invisible Player Controlled Object with mapped materials and detonation code that uses the collision mesh when the projectile is activated.

Smoke Grenades and UGL SP versions are created to use each spawners with varied delays and only for _sp kits/factions. This is to ensure that it remains in the COOP gamemode only.

The concept of this system was created by SatNav in the BF2SP Community, a retired, knowledgeable, veteran BF2 modder who has contributed a lot in our understanding of the BF2 Engine and modding in general.

Initially, it is an Emitter that uses the invisible sphere Collision Mesh and Air Map Material as a Particle Effect. This was attached to the Smoke Grenade effect and set to spawn upon firing. The only disadvantage was that it only worked in Offline mode.

Since then, many other modders set out to improve upon it and make it work online.

How to use:

For Smoke Grenades: A 15 second delay when the projectile lands. Simply wait for the smoke effect to completely fill at its peak before moving.

For UGL's: A 1 second delay when the projectile lands.

It is also included for the new ninja _sp kits so admins can freely use it against bots!


The same system will be incorporated for Vehicle Smoke Launchers too, allowing land vehicles to avoid sticky situations in COOP.

This feature will make gameplay more immersive and realistic, allowing teammates to make revives safely, provide cover or as a distraction.

Expect this feature to ship out with the v1.6 update when it's released!

See you on the battlefield!
Updated 2018-09-23 at 05:12 by Arab
Views: 4636 | Comments: 16


Comments
Total Comments: 16
  1. Old Comment
    Petar97's Avatar
    Finally! great work sir
    Posted 2018-09-23 at 14:51 by Petar97 Petar97 is offline
  2. Old Comment
    Fastjack's Avatar
    Nice done.
    Posted 2018-09-23 at 15:05 by Fastjack Fastjack is offline
  3. Old Comment
    sweedensniiperr's Avatar
    I don't i actually understand how this works... Will thebots shoot through the smoke but the sphere makes the bullets dissapear? Or is it an invisible "object" that bots can't "see" through?

    I take it that this will not work properly with bots using thermal controlled vehicles. - They will not see through the smoke even with thermals?
    Posted 2018-09-23 at 15:17 by sweedensniiperr sweedensniiperr is online now
  4. Old Comment
    Veterans-Gaming's Avatar
    Thank you all very much for your hard work!
    Posted 2018-09-23 at 17:45 by Veterans-Gaming Veterans-Gaming is offline
  5. Old Comment
    Thank you for the COOP love! Is mortar smoke viable too?
    Posted 2018-09-23 at 20:34 by keed keed is offline
  6. Old Comment
    Arab's Avatar
    Quote:
    Originally Posted by keed View Comment
    Thank you for the COOP love! Is mortar smoke viable too?
    For mortar smoke, it's viable too. It'll work in the same way as the UGLs.

    Quote:
    Originally Posted by sweedensniiperr View Comment
    I don't i actually understand how this works... Will thebots shoot through the smoke but the sphere makes the bullets dissapear? Or is it an invisible "object" that bots can't "see" through?

    I take it that this will not work properly with bots using thermal controlled vehicles. - They will not see through the smoke even with thermals?
    It's an invisible sphere object that bots can't see through. I'm not sure if this will affect bots using thermals - hasn't been tested but will add that to the To Do list
    Posted 2018-09-24 at 01:22 by Arab Arab is offline
    Updated 2018-09-24 at 01:41 by Arab
  7. Old Comment
    HeneraLuna's Avatar
    Finally , I've been wondering when will this be in PR
    Posted 2018-09-24 at 04:23 by HeneraLuna HeneraLuna is offline
  8. Old Comment
    Rotblut's Avatar
    Was waiting for this. It was fun to test this. What surprises me was that the Mortarsmoke is working as well. Dev's, thanks for listnening to our COOP Comunity and for so much work u put in.
    Posted 2018-09-25 at 10:57 by Rotblut Rotblut is offline
  9. Old Comment
    Are bots able to run through the smoke or are they just going around or getting stuck in front of it?
    Posted 2018-09-25 at 20:32 by Skywalker-11 Skywalker-11 is offline
  10. Old Comment
    Arab's Avatar
    Quote:
    Originally Posted by Skywalker-11 View Comment
    Are bots able to run through the smoke or are they just going around or getting stuck in front of it?
    Bots go through the smoke to seek out the target
    This happens when the bots fire at the player and smoke is deployed, they follow their line of sight to find the player.
    Posted 2018-09-26 at 14:00 by Arab Arab is offline
 


All times are GMT. The time now is 10:00.