Jump to content

How to disable grass in MTA ?


Maggi

Recommended Posts

I am going to create gamemode like SA:MP's GodFather mod.

So, starting to prepare...First of all I want to disable client's "core" scripts like grass, stone on hills etc.

I've already searched MTA wiki but don't found any function that can disable grass. :idea:

Link to comment

I found a memory address to disable grass. I don't know if this has any other side effects, and I don't know how to make this a function. Here is the result:

Grass: gtasa2010112518241011.th.jpg No grass: gtasa2010112518200585.th.jpg

nop 0x5BF8EA

EDIT: Of course, all of the above is no use to you. Display of grass is controlled by the in-game setting "Visual FX". If set to "Low", grass is turned off. Why exactly do you want to disable grass via script, anyway? If a player's computer already struggles to play GTASA, their graphical settings are probably at the lowest possible settings regardless.

Link to comment
But game engine will still draw grass but with transparent texture...Game engine doesn't know about texture pixels... The purpose of disabling grass is to increase fps... for ex: the grass (or grass effect) is already disabled in samp...

Why is grass turned off on SA-MP? This can't be very significant... unless you have a very old machine which can hardly run MTASA anyway.

Link to comment

This may sound like a dumb idea, but potentially a createGrass() function. I can think of a couple good uses for it - mapping and such.

Also, the problem I see with just turning down the FX is that it's only off on the lowest setting, which also does not have the shadows or reflections that higher settings do.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...