Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    2. News

    1. Red Dead Redemption 2

    1. GTA Online

      1. After Hours
      2. Find Lobbies & Players
      3. Guides & Strategies
      4. Vehicles
      5. Content Creator
      6. Help & Support
    2. Crews

      1. Events
      2. Recruitment
    1. Grand Theft Auto Series

    2. GTA Next

    3. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    4. GTA IV

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA Mods
    5. GTA Chinatown Wars

    6. GTA Vice City Stories

    7. GTA Liberty City Stories

    8. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    9. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    10. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    11. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    12. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    3. Featured Mods

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption

    2. Rockstar Games

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Programming
      5. Movies & TV
      6. Music
      7. Sports
      8. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Forum Support

    2. Site Suggestions

Sign in to follow this  
BiPolarBear

[REL/SA] Drinking At Bars

Recommended Posts

BiPolarBear

DRINKING AT BARS

Hellow Modern GTA Players !

Have you ever wanted to take a sip after a killing spree?

Did big smoke tell you to go get yourself some bears after a mission but couldn't do so?

DID YOU EVER WANT TO DRINK BUT COULDN'T DO SO?

Well now it's possible !

This mod brings the cut beta feature, the ability to drink at bars.

-A drink will leave you drunk for a little while

-To have a drink, simply walk into a bar of any interior

Enough talk, here's the link: (Version 1)

https://www.dropbox.com/s/lhw8liyu0mx09i6/Drink%20At%20Bars.rar?dl=0

Installation: Simply put DrinkAtBars.cs in your cleo folder

You should already know what cleo is..

I hope you enjoy my mod :)

Your feedback is important.

If you have any suggestions, please feel free to post them.

 

[V2.5] Wip!
Now you can drink at nightclubs and stripclubs and even casinos and unused places
In order to reach them easily, download enterable hidden interios
Unless you want to teleport to these locations :dozing:
FINAL VERSION :
RECREATED VERSION
For the people who are actually enjoying the mod, you will be happy to hear that Djjr, a well respectable
and thoughtful member of the community recreated this mod to a state no one has ever even dreamed of.
His "Recreated" version offers very neat features:
1-Realistic and dynamic drunk effect
2-Drinkin and actually walking around with the beer bottle
3-Overall, a much better coding structure
Enjoy
33a807q.png
qqo8ea.png
1zx2r1k.png

Credits (In Order) :

1- Djjr, for recreating the version into a much more better one

2-Dutchy/ZAZ's tutorials

3-Coding bible in sanny

4-Thatlilmythos for helping in solving bugs

Edited by BiPolarBear

Share this post


Link to post
Share on other sites
Ndukong

Nice mod. Very nice mod for a first.

Edited by Ndukong

Share this post


Link to post
Share on other sites
BiPolarBear

Nice mod. Very nice mod for a first.

Thanks for your feedback!

Share this post


Link to post
Share on other sites
HeySlickThatsMe

"Did big smoke tell you to go get yourself some bears after a mission but couldn't do so?"
Nah , but he told me that "all we had to do was follow the damn train"
Anyways nice work :p

Edited by HeySlickThatsMe

Share this post


Link to post
Share on other sites
thalilmythos

MAAAN FINALLY sh*t, I WAS WISHING FOR SOMETHING LIKE THIS, BUT COULDN'T BRING MYSELF TO DO IT, YOU THE MAN MAYN

Share this post


Link to post
Share on other sites
goodidea82

Can you make it compatible with Enterable Hidden Interior mod by ArtginPL?

Share this post


Link to post
Share on other sites
BiPolarBear

MAAAN FINALLY sh*t, I WAS WISHING FOR SOMETHING LIKE THIS, BUT COULDN'T BRING MYSELF TO DO IT, YOU THE MAN MAYN

You'd be surprised how much i waited for it too...

I even asked some modders special requests to make it for me...

But in the end a** kissing won't get you anywhere

I hope you enjoy the mod

If you have any requests, i'd be happy to try and make it !

Can you make it compatible with Enterable Hidden Interior mod by ArtginPL?

It is compatible ;)

I have that mod installed too

Amazing mod

Edited by BoltOfLightning

Share this post


Link to post
Share on other sites
BiPolarBear

[V2] Released!

 

1z69p1x.jpg

 

 

New Features

1-Now you can drink at nightclubs and stripclubs!

2-All places you can drink are marked properly on the radar! (Bars,disco,...) Except for stripclubs you have to find them yourself :colgate:

Bug fixes:

After you drink the bottle won't drop and stick to the ground

Link

https://www.dropbox.com/s/mqzn6edjsoqmfre/Dink%20At%20Bars%20V2.zip?dl=0

 

ENJOY !!!

Edited by BoltOfLightning

Share this post


Link to post
Share on other sites
thalilmythos

the game freezes after a couple of seconds drinking.

 

Edit:
My mistake it was a uncompatibility thing.

Edited by thalilmythos

Share this post


Link to post
Share on other sites
goodidea82

Consider uploading it to some gta-specific website (e.g. gtainside.com). More people will get to know it and appreciate it.

 

>>2-All places you can drink are marked properly on the radar! (Bars,disco,...) Except for stripclubs you have to find them yourself

Would prefer if the marks are optional, because it should be a normal thing that you can drink at every bar etc.

Edited by goodidea82

Share this post


Link to post
Share on other sites
BiPolarBear

Consider uploading it to some gta-specific website (e.g. gtainside.com). More people will get to know it and appreciate it.

 

>>2-All places you can drink are marked properly on the radar! (Bars,disco,...) Except for stripclubs you have to find them yourself

Would prefer if the marks are optional, because it should be a normal thing that you can drink at every bar etc.

I will definitly look into uploading it on gta inside!

If you don't like the marks, simply delete the icons.cs file in your cleo folder ;)

Share this post


Link to post
Share on other sites
AquaVentusXI

A-MA-ZING !!

 

Can you make a icon mod with the hospital (and similar places) location?

 

Thank you man :)!

Share this post


Link to post
Share on other sites
thalilmythos

You forgot an interior, the stripclub in the desert, close to the ammunation left to las venturas, doesn't have the option to drink.

Share this post


Link to post
Share on other sites
Ndukong

A-MA-ZING !!

 

Can you make a icon mod with the hospital (and similar places) location?

 

Thank you man :)!

Check this out:

http://www.mixmods.com.br/2016/04/more-markers-marcar-mais-locais-no-radar.html

A-MA-ZING !!

 

Can you make a icon mod with the hospital (and similar places) location?

 

Thank you man :)!

Check this out:

http://www.mixmods.com.br/2017/02/mais-icones-no-radar.html

A-MA-ZING !!

 

Can you make a icon mod with the hospital (and similar places) location?

 

Thank you man :)!

Check this out:

http://www.mixmods.com.br/2017/02/mais-icones-no-radar.html

Share this post


Link to post
Share on other sites
BiPolarBear

You forgot an interior, the stripclub in the desert, close to the ammunation left to las venturas, doesn't have the option to drink.

 

That interior is completely forgotten about ! Nice find! Will be added in a short while.

 

A-MA-ZING !!

 

Can you make a icon mod with the hospital (and similar places) location?

 

Thank you man :)!

You mean icons for all locations on the map?

Hospitals,bulglar vans,etc..?

I've been really thinking about it

I want to see how much such a mod is requested to do c:

Edited by BiPolarBear

Share this post


Link to post
Share on other sites
BiPolarBear

Edit: The missing interior was added to the mod

 

You can now drink at the las venturas strip club next to ammunation :)

 

 

2r4r2mx.jpg

Edited by BiPolarBear

Share this post


Link to post
Share on other sites
Elothel

Very nice mod! Always missed this option in the bars.

 

Could you also add the drinking marker inside casinos? They have functioning bars and everything.

Share this post


Link to post
Share on other sites
BiPolarBear

Very nice mod! Always missed this option in the bars.

 

Could you also add the drinking marker inside casinos? They have functioning bars and everything.

I am working on a mod to make drinking in even the unused brothers ( also the casinos) so expect a release very soon

 

33a807q.png

qqo8ea.png

1zx2r1k.png

Edited by BiPolarBear

Share this post


Link to post
Share on other sites
Junior_Djjr

Don't load and create models at game start. Load and create them only when necessary, to save RAM. And why you loaded IDLE_STANCE.ifp? You didn't used it.

Try to not use a lot of waits, but call a external script, timer to control or something like this. Your mod stop running after drink, isn't cool.

It doesn't make sense to end the thread in a place that the script will never read, and you don't want to end your thread, you want it to be eternal.

You should not use 0605:, but the attach object opcode itself, so you can walk while holding the bottle.

 

I recommend you my cleo scripting tutorial (what is still in Portuguese but the Google Translator makes good service).

Absolutely nothing against Dutchy and ZAZ, but I notice that almost all the people that learn with these tutorials make these errors, which should not be tutorial errors, but rather that the tutorial doesn't leave such things very clear.

 

There are several details like changing the description of the opcode trying to change the opcode operation, for example when you changed the "+=" by "=" in "0109:", being that this isn't an operator, this is a description, and many people make these mistakes. (I already did it too)

As well as naming the script, right, it isn't an error when you use a unique name and with less than 7 chars, but the fact is that people don't even know what this is for, they think it's mandatory.

As well as low level, I believe that all people who program in SCM in low level is because they don't know that high level exist. Low level is a mindblow, seriously, even me, I program in SCM about 7 years, and I think hard to writing/reading in low level.

 

 


I created a simple bar script in my way (I don't use Sanny Builder, but, well..):

 

/*Code by Junior_Djjr - MixMods.com.br    Feel free to edit*/{$cleo}0000:const          hObject = [email protected] = [email protected] = [email protected] = [email protected] bDrunk = [email protected] = [email protected] = [email protected] = [email protected] = [email protected] // TimersiTimerLastDrink = [email protected]           ///////////////////////////////////////////////////////////////////////////////////////////////////while true    wait 0    player.Defined(0)    jf continue        // LS Alhambra Club    if 00FE:   actor $player_actor sphere 0 in_sphere 499.584 -18.8101 1000.679 radius 50.0 50.0 10.0    then        x = 499.584        y = -18.8101        z = 1000.679        gosub @apply    end         // Pig Pen    if 00FE:   actor $player_actor sphere 0 in_sphere 1213.542 -13.100 1000.921 radius 50.0 50.0 10.0    then        x = 1213.542        y = -13.100        z = 1000.921        gosub @apply    end        gosub @process_drunkend///////////////////////////////////////////////////////////////////////////////////////////////////:applygosub @requestiTimes = 0while 00FE:   actor $player_actor sphere 0 in_sphere x y z radius 50.0 50.0 10.0    wait 0        if 03CA:   object hObject exists    then        if 0474:   actor $player_actor near_object_in_cube hObject radius 1.0 1.0 0.8 sphere 0 // WORKAROUND, FIX ME        then            if 00E1:   player 0 pressed_key 10 // N            then                gosub @remove_drink                continue            end        else            0108: destroy_object hObject            continue        end                  if iTimerLastDrink > 2000        then            if iTimes > 5            then                gosub @remove_drink                iTimes = 0            end            if 00E1:   player 0 pressed_key 11 // Y            then                gosub @drink            end        end    else         // bar        if 0102:   actor $player_actor in_sphere x y z radius 1.5 1.5 3.0 sphere 1 stopped_on_foot        then            gosub @drink            0109: player $player_actor money += -10            bDrunk = true            iTimes = 0        else            actor.StorePos($player_actor,[email protected],[email protected],[email protected])        end    end        gosub @process_drunk    endgosub @delete_objectgosub @releasereturn       ///////////////////////////////////////////////////////////////////////////////////////////////////:drink gosub @drink_anim fDrunkLevel += 1.5iTimerLastDrink = 0iTimes++return :drink_animgosub @delete_objectgosub @create_object01B9: set_actor $player_actor armed_weapon_to 0070A: AS_actor $player_actor attach_to_object hObject offset 0.06 0.015 -0.05 on_bone 6 16 perform_animation "DRNKBR_PRTL" IFP_file "GANGS" time -1return    :remove_drink0605: actor $player_actor perform_animation "NULL" IFP "NULL" framedelta 4.0 loop 0 lockX 0 lockY 0 lockF 0 time -10108: destroy_object hObject return:requestmodel.Load(1486)04ED: load_animation "GANGS"038B: load_requested_modelsreturn:create_object029B: hObject = init_object 1486 at 0.0 0.0 0.00382: set_object hObject collision_detection falsereturn:release04EF: release_animation "GANGS"model.Destroy(1486)gosub @delete_objectreturn:delete_objectif 03CA:   object hObject existsthen 0108: destroy_object hObjectendreturn:process_drunkif fDrunkLevel > 0.0then    if iTimerLastDrink > 1000    then        007F: fDrunkLevel -= frame_delta_time * 0.001        if fDrunkLevel < 0.0        then            fDrunkLevel = 0.0        end        0092: iDrunkLevel = float fDrunkLevel to_integer        player.SetDrunkVisuals(0,iDrunkLevel)        //0AD1: show_formatted_text_highpriority "drunk %.3f" time 2000 fDrunkLevel    endendreturn
I didn't test much, but it should be okay.

Only works at 1 bar at a time (by 50.0 radius, need to increase?)

 

You can walk with the bottle in hand, drink it (Y) or drop it (N) to get another one. If you drink too much, you'll have to get another one.

 

The operation of getting drunk is something very dynamic, it takes a while to stay drunk, and over time the effect will fade... slowly.

 

 

 

I'm not stealing your project, I made it to teach. Come on, we've all thought about doing a bar mod :p

 

You can easily edit to add new bars:

 

    // LS Alhambra Club    if 00FE:   actor $player_actor sphere 0 in_sphere 499.584 -18.8101 1000.679 radius 50.0 50.0 10.0    then        x = 499.584        y = -18.8101        z = 1000.679        gosub @apply    end 
Feel free. Edited by Junior_Djjr

Share this post


Link to post
Share on other sites
anthony

Wouldn't be more logic to 'buy' a drink instead of having a free one everytime. Anyway, this and buying/smoking weed are pretty cool!

Edited by anthony

Share this post


Link to post
Share on other sites
Junior_Djjr

Wouldn't be more logic to 'buy' a drink instead of having a free one everytime. Anyway, this and buying/smoking weed are pretty cool!

But it isn't free. $10

 

0109: player $player_actor money += -10
Edited by Junior_Djjr

Share this post


Link to post
Share on other sites
anthony

 

Wouldn't be more logic to 'buy' a drink instead of having a free one everytime. Anyway, this and buying/smoking weed are pretty cool!

But it isn't free. $10

 

0109: player $player_actor money += -10

Was talking about the OP; but hey it's nice you thought about it, I didn't notice it.

Share this post


Link to post
Share on other sites
Junior_Djjr

 

 

Wouldn't be more logic to 'buy' a drink instead of having a free one everytime. Anyway, this and buying/smoking weed are pretty cool!

But it isn't free. $10

 

0109: player $player_actor money += -10

 

Was talking about the OP; but hey it's nice you thought about it, I didn't notice it.

 

He did it too :p

Are you sure? Is there in the code.

Share this post


Link to post
Share on other sites
BiPolarBear

I'm not stealing your project, I made it to teach. Come on, we've all thought about doing a bar mod :p

You can easily edit to add new bars:

 

    // LS Alhambra Club    if 00FE:   actor $player_actor sphere 0 in_sphere 499.584 -18.8101 1000.679 radius 50.0 50.0 10.0    then        x = 499.584        y = -18.8101        z = 1000.679        gosub @apply    end 
Feel free.

I dropped my pants when i read the legendary Djjr's name on my mod

I adore your coding. However it seems a bit advanced from me, starting off from Zaz and dutchy's tutorials.

Your "Recreated" Version makes the mod much more "Dynamic" and "Alive" than mine :)

I will add all of the other bars as well

Thanks for all of the tips. Also, a real thank you for stating that i am the one who started the project mate :)

Edit: For some reason game crashes after drinking a couple of times

I don't know how to fix or even change anything, your codes are difficult for me to understand :/

Anyhow here is my final version, includes all existing interior bars

https://www.dropbox.com/sh/bt7skrxo56tjhtz/AACVQG_8M0Z7TdcFuiDafV2La?dl=0

Djjr please feel free copying all my coordinates to your mod and bring it to it's full potential, and i will post it on this page too

Edited by BiPolarBear

Share this post


Link to post
Share on other sites
anthony

 

 

 

Wouldn't be more logic to 'buy' a drink instead of having a free one everytime. Anyway, this and buying/smoking weed are pretty cool!

But it isn't free. $10

 

0109: player $player_actor money += -10

Was talking about the OP; but hey it's nice you thought about it, I didn't notice it.

 

He did it too :p

Are you sure? Is there in the code.

 

Jesus, I need to stop living by night.

Share this post


Link to post
Share on other sites
Junior_Djjr

(snip)

Thanks :p

The problem creating spheres (in real, cylinders) (03BC:) is that the game has limits, with many, new ones stop appearing. You need to check if near to location before add the "sphere" there. Also, just use "sphere 1" (or "sphere true") in opcodes like 00ED:, game default missions work in this way, you don't need to use 03BC: to create spheres. (btw: sphere works in 00ED:? Because, it's X Y, there's no Z coord).

Also, using 2D opcodes like 00ED: to check if is near to a point, will return true also if you're in different Z coord, so, imagine a house with 2 floors, will return true even if you're at second floor.

Fortunately, you checked if is in interior, if not, will return true also if you're walking at exterior. It would be very strange for you to be walking and suddenly CJ start drinking.

And it's better to use "stopped _on_foot". Look at my version:

 

if 0102:   actor $player_actor in_sphere x y z radius 1.5 1.5 3.0 sphere 1 stopped_on_foot
And,

 

Model.Load(1486)wait 0 if    Model.Available(1486)else_jump @drink
Don't "reload" if not loaded yet, including, the real name of this opcode is "request_model", is to just request, mark as necessary, the game automatically loads over time. And "Model.Destroy(1486)" you can use even after create the object (the real name is "mark_model_as_no_longer_necessary"). In real, it's better to load 1486 at same time you load anims and other models.

 

As well, you didn't marked as no longer necessary the models for actors and anims. They will always be loaded occupying RAM.

 

Here:

 

:Waypointswait 250 if or$Active_Interior == 1 $Active_Interior == 2 $Active_Interior == 3 $Active_Interior == 4 $Active_Interior == 5 $Active_Interior == 6 $Active_Interior == 7 $Active_Interior == 8else_jump @waypoints2jump @LOAD
You can just...

 

:Waypointswait 250 if and$Active_Interior >= 1$Active_Interior <= 8else_jump @waypoints2jump @LOAD 
But... Why not?

 

:Waypointswait 250 if$Active_Interior > 0else_jump @Waypointsjump @LOAD
Also

 

03BD: destroy_sphere [email protected]
[email protected] is a timer, not a var to be used. It increases value (in ms) every time a "wait" passes.

 

 

03BC: [email protected] = create_sphere_at -2656.3054 1404.7451 906.2734 radius 1.003BC: [email protected] = create_sphere_at -2656.3054 1404.7451 906.2734 radius 1.0
Duplicated.

 

edit: Added the coords. Now with 15 bars (I don't added all of them because mine can't handle bars too close). Download.

Edited by Junior_Djjr

Share this post


Link to post
Share on other sites
BiPolarBear
Duplicated.edit: Added the coords. Now with 15 bars (I don't added all of them because mine can't handle bars too close). Download.

This brought tears to my eyes, Djjr :)

I only have a couple of suggestions to make and maybe you can release the final version

1- Pressing TAB in the red marker to buy a beer instead of automatically giving it to the player feels better imo

2- The "drunk" effect feels like forever to wear off. I think it should be max 60 seconds (60 mins in game)

3- It would be nice if the player exits with the bottle and takes a walk around with the bottle but that's just optional

4- The number of "Sips" of the bottle should be more IF you will consider number 3. Imagine free roaming with a bottle in your hand even maybe driving around and driving drunk

If you drive next to a cop drunk, you will get a 1 star wanted level

5- Consider adding my icons.cs to your mod as it would be nice to show the locations of the bars on the map

Add all of these and you will have the best drinking mod out there :)

Edited by BiPolarBear

Share this post


Link to post
Share on other sites
anthony

It work like it should! It's nice; one thing tho; the -10$ doesn't seem to work, I didn't loose any money, I don't know why. And I agree with everything that BiPolarBear said. One more thing, I think it would be cool to add a 'blur' effect.

Share this post


Link to post
Share on other sites
Junior_Djjr

(snip)

1- I will do this.

2- The idea is to give a realism. 1 minute is very little, imagine you inside the LS club, you drink, and you are 1 minute walking the club "enjoying it", the whole effect of the drink will end only this minute, it isn't realistic, and thinking about it, drinking 4 bottles and taking 10 minutes (10 hours in the game) seems realistic... I wanted something like that, but I have not tested whether it's correct or taking longer than I expected.

3- Yes... but if I want to do this it will have to change a lot in the script operation, because I did not think about those possibilities. My focus was a simple script (in fact, it didn't even get that simple, I even wanted to make a configuration file for people to add more bars, useful for map mods)

4- It would be very cool.

5- If yes, optional and with good warning. Because the game has a limit of icons, besides being trapped in the save game (yes, cleo_saves solves, but its operation in the cleo has many many problems), I avoid to the maximum to add icons in mods. I also like mods where you use things naturally, for example, one of the things I liked the most in this mod is that I go somewhere, and I see some bar, and I can drink there, without any information, with no icon indicating that bar, without the game tell me there's a bar over there, I just came in and saw, I like that.

Edited by Junior_Djjr

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.