Maggi Posted November 25, 2010 Share Posted November 25, 2010 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. Link to comment
Discord Moderators Zango Posted November 25, 2010 Discord Moderators Share Posted November 25, 2010 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. Link to comment
Maggi Posted November 25, 2010 Author Share Posted November 25, 2010 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... Link to comment
Towncivilian Posted November 25, 2010 Share Posted November 25, 2010 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: No grass: 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
Ransom Posted November 25, 2010 Share Posted November 25, 2010 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
eAi Posted November 26, 2010 Share Posted November 26, 2010 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... Link to comment
dzek (varez) Posted November 26, 2010 Share Posted November 26, 2010 adding (but not forcing) this won't hurt anybody, but can help some ppl Link to comment
eAi Posted November 26, 2010 Share Posted November 26, 2010 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? Link to comment
dzek (varez) Posted November 26, 2010 Share Posted November 26, 2010 well, that's right. Link to comment
Maggi Posted November 26, 2010 Author Share Posted November 26, 2010 thanks for reply Link to comment
J.S. Posted November 26, 2010 Share Posted November 26, 2010 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
eAi Posted November 27, 2010 Share Posted November 27, 2010 Grass is procedurally generated I believe. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now