Maggi Posted November 25, 2010 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.
Moderators Zango Posted November 25, 2010 Moderators 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.
Maggi Posted November 25, 2010 Author 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...
Towncivilian Posted November 25, 2010 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. Have problems running MTA or are experiencing crashes? See this thread for help!
Ransom Posted November 25, 2010 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. Offical B.L.A.S.T.A.ddict VCP - winners of the official MTA tournament (undefeated!) /smug
eAi Posted November 26, 2010 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...
dzek (varez) Posted November 26, 2010 Posted November 26, 2010 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)!
eAi Posted November 26, 2010 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?
dzek (varez) Posted November 26, 2010 Posted November 26, 2010 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)!
J.S. Posted November 26, 2010 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. Kinetic Roleplay Forums || Mantis || YouTube
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