NEW Crazy MOD from {SFX}

Started by PacRac {sfx}, March 02, 2015, 02:25:09 PM

Previous topic - Next topic

PacRac {sfx}

ok m8. Looking forward for the result. Just dont forget that it must still be possible to escape, i mean we need to be able to keep running to getaway point.
Gotcha did u try the example i posted?

Gotcha {sfx}

#16
I just tested your example, very nice effect. So far messing with the camera is just choppy, so it may only be done via stufftexted commands like you've done.

I can't seem to emulate the negative health effect, I tried just forcing the killed state on the player but this just makes it where you can't shoot, or jump, and puts you in the "sharking" position.

I'm gonna keep messing around, but really I think you've about got it lol.

EDIT:
So I've been playing around with your example, what I've got is a little buggy but it's a neat effect. The zooming in and out is the only way I could think to negate the zoom 420 part. Try it, maybe you could mold it more to what you're wanting.

But, by the way, just had a thought, this mod will need event handlers because if people time out, leave, or anything, during drunkness, something will have to detect that event and do a -moveleft,-moveright, etc etc, to turn it off. I was doing something and either quit the game during the drunkeness or killed myself but when I restarted my test server I was stuck going right.

EDIT2: Updated what I posted. Now it's really hard LOL, but it gives you a lot to play with. Maybe just taking the safezoom off, or spacing out some of the stufftext. Seems like a fun challenge right now though lol, it'd definitely be hard


//PacRac's Drunk Script 8/31/15

drunk:
iprintlnbold_noloc "Drunk script starting..."
level.drunk = 1
thread drunker
wait 30
level.drunk = 0
$player weaponcommand dual zoom 0 0
$player respawn
$player nodamage
wait 1
$player stufftext "zoomoff"
$player takedamage
end


drunker:
wait 5
iprintlnbold_noloc "Becoming Drunk in 5 seconds...."
wait 5
$player weaponcommand dual zoom 420 1
$player stufftext "+attacksecondary"
wait 0.10
$player stufftext "-attacksecondary"
while (1)
{
if (level.drunk != 1)
{
iprintlnbold_noloc "DRUNK OFF"
end
}
if (level.drunk == 1)
{
waitframe
$player stufftext "+lookdown"
wait 0.4
$player stufftext "+moveright"
wait 0.4
$player stufftext "+leanright"
$player stufftext "+right"
wait 0.4
$player stufftext "-leanright"
wait 0.4
$player stufftext "-moveright"
wait 0.4
$player stufftext "+leanleft"
wait 0.4
$player stufftext "+moveleft"
wait 0.4
$player stufftext "-leanleft"
$player stufftext "-right"
wait 0.4
$player stufftext "-moveleft"
$player stufftext "+left"
wait 0.4
$player stufftext "-lookdown"
wait 0.4
$player stufftext "+lookup"
wait 0.4
$player stufftext "+moveleft"
wait 0.4
$player stufftext "+leanleft"
wait 0.4
$player stufftext "-leanleft"
wait 0.4
$player stufftext "-moveleft"
wait 0.4
$player stufftext "+leanright"
wait 0.4
$player stufftext "+moveright"
wait 0.4
$player stufftext "-lookup"
$player stufftext "-leanright"
$player stufftext "-moveright"
$player stufftext "-left"
}
waitframe
}
end

Goober {sfx}

What a toughy... but who doesn't like a good challenge.  ;D

I can look to see what I can do sometime this weekend.

PacRac {sfx}

Quote
But, by the way, just had a thought, this mod will need event handlers because if people time out, leave, or anything, during drunkness, something will have to detect that event and do a -moveleft,-moveright, etc etc, to turn it off. I was doing something and either quit the game during the drunkeness or killed myself but when I restarted my test server I was stuck going right.

Well that's the thing, the tests i've done when u end the loop it stops all the stufftext commands and all goes fine like u see when u got Sober "Drunk Off".

Just just need to end thread or loop when local.player is Null.

I will check this tomorow is pretty late :D

Gotcha {sfx}

Hopefully you like the changes. I made the camera also move right and left.

And yes it'll need a null check, but what I mean is, I'm high and had a couple tequilas so let me close my eyes and try to remember....

Hmmm..

Okay I either disconnected in the middle of the loop, or typed restart. Most likely disconnected because my "X" key is bound to disconnect for testing purposes.

The loop ALWAYS ends perfectly on time and everything when the script goes all the way through, but I didn't let it. I'm worried about people disconnected from the server, whether on purpose or accident. If someone lagged out, accidentally quit, or just left, the commands might still be inflicted on them because it sets the command some kinda crazy way that sticks. Unless you exit mohaa I think. Idk but I've had things happen to me on stock servers that make like +moveleft stick on me, and I have to console and type "-moveleft".

Question is, you wanna make it or me? Lol I'm down for any part of this project, I haven't had much to work on lately lol.

PacRac {sfx}

#20
i understand what your talking about. Yes it must be tested. It might have a command to reset all movements i don't know we could start to search if is there a command reset all the stufftext to the player.
If there is none then we need to study how to fix the stick commands.
Reborn events are a good and stable way to do it yet it is possible to do it via torso files.
On my mods i always try to make them with original codes, reborn events free, in this way it is possible any one grab it and play it without the need to install reborn patch.
I wont have time this next days to grab this, if u have time do it, will be great  ;)

By the way i tested you alterations, the zoom effect is really nice yet it is too much i think. value 150 this the best and also the side movements made it harder to move, just don't forget that the guy that holds the beer must be able to run to it's base, and besides the effect is really realistic the way u made it makes the runaway almost impossible. When i got time i will do some tests and adapt to my liking then will post.

Keep the good work Gotcha

Gotcha {sfx}

States, really? Hmm. You're more advanced than me but I'll see what I can do. Honestly reborn events is the only thing I can think of because something has to catch the disconnection and force "-" versions of all the commands we use.

I'm gonna try a few things today and see what I can manage. But this thing of using states, I'll have to see that. But how would it work? I can't think of a way to use states to reset these effects in a way that doesn't depending on the player still being connected.

I do my best to use original code, but I LOVE the things reborn has added, if we can avoid using a registerev I'm more than willing but it's beyond my knowledge at the moment. I've seen your work, great scripting, so if it can be done I know you could do it lol. But my only idea is registerev.

The only real restriction I ever give myself is my mods have to be serverside. I haven't made a single client side mod, I don't want people to have to download stuff lol.

PacRac {sfx}

Ye use the event then. It is better and best structured.
Then later i can try adapt it without the events, but yes with events is much better.
And about the serverside...We are driving the same road ;). I also always try to do it serverside.

Keep good work Gotcha.

By the way lets use the posts to share parts of scripts to fix or test.
But i think it would be better to share the testing files or full scripts in the {SFX} Team section.

I think this is the best way.

Goober {sfx}

Quote from: PacRac {sfx} on September 01, 2015, 09:09:41 AM
By the way lets use the posts to share parts of scripts to fix or test.
But i think it would be better to share the testing files or full scripts in the {SFX} Team section.

I think this is the best way.

Post your updated files in this post. You can create a seperate thread for scripts. Partial scripts in this post should be OK.