Jump to content

How to disable grass in MTA ?


Maggi

Recommended Posts

Posted

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:

  • Moderators
Posted

there is no dedicated function to do such jobs - instead, temporarily replace the grass texture (although I reckon grass is by default on hills etc) with nothing.

Posted

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...

Posted

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.

Have problems running MTA or are experiencing crashes? See this thread for help!

Posted
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.

image.gif.e25ddd8be17e3a9b50a78609787fabd6.gif

Offical B.L.A.S.T.A.ddict
VCP - winners of the official MTA tournament (undefeated!) /smug

Posted

I believe SAMP may have turned off grass to get around a graphics bug.

Of course MTA could add an option for this, but I really can't see why...

Posted

adding (but not forcing) this won't hurt anybody, but can help some ppl

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

Posted

It takes time though, and adds another option for people to have to decide if they want. Why can't they just turn down their graphical settings until the grass goes that way?

Posted

well, that's right.

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

Posted

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.

Kinetic Roleplay

Forums || Mantis || YouTube

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...