Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Leaning cfg experiment  (Read 1776 times)

0 Members and 1 Guest are viewing this topic.

Offline Monkatraz

  • *
  • *
  • +4% chance to make useful post
  • Monkatraz has no influence.
Leaning cfg experiment
« on: February 03, 2015, 01:05:13 AM »
NOTE: Before you go into this, this is an experiment and you will see a lot of bugs. Like the timing being off, because it uses waits (I need to learn mapadd stuff so badly). Seconds, the timing are way off and about three times as long as they are supposed to be because I recorded in 60 fps, forcing my game into 60 fps. I usually play at 144, so I adjusted the waits for that instead of 60. This is why you see me leaning too far and stuff, and why rollangle is acting balls crazy. The reason why I didn't really mind because it still works, and still shows the concept.



Ignore the lens flares, I was fucking around.
So how does it work? It uses roll angle to simulate the "rotate" bit of leaning. You are actually moving ever so slightly and that's why you have to correct. I'm currently thinking up of ideas on how to fix this. Second, it actually moves you left/right, giving the impression you are moving to lean out (sort of, it works well enough). It sets your sv_maxspeed to 7, and sv_stopspeed so some high number. Its the slowest I think you can go, but I should try some other stuff. The reason rollangle keeps going in and out is that there is a bug when firing that it locks your view angle, which means I have to do that wonky work around.

The advantage of leaning out is this: Your legs, stomach, and arms take absolutely no damage while leaning... however this means even if your leaning in the middle of nowhere you're going to take less damage. I can't really fix this, but you got to kind of play fair with SMOD.

I won't release the script until I find some mapadd solutions. Hope you like the idea.
MLG

Offline PaiCrai

  • *
  • +3% chance to make useful post
  • PaiCrai has no influence.
Re: Leaning cfg experiment
« Reply #1 on: February 03, 2015, 03:41:30 AM »
that is v interesting dude

btw about the lens flares, i was just thinking about this earlier today, is it just like (or literally) the lens flare mod for css?
smignature

Offline Monkatraz

  • *
  • *
  • +4% chance to make useful post
  • Monkatraz has no influence.
Re: Leaning cfg experiment
« Reply #2 on: February 03, 2015, 03:43:08 AM »
its from some gmod workshop addon, I just extracted the gma
MLG

Offline BIZ

  • 32-Bit Hobo
  • *
  • *
  • +0% chance to make useful post
  • BIZ hides in shadows.
    • BSNOOCH.COM
Re: Leaning cfg experiment
« Reply #3 on: February 03, 2015, 03:45:43 AM »
so whats the difference between this and SMOD leaning?

Offline Monkatraz

  • *
  • *
  • +4% chance to make useful post
  • Monkatraz has no influence.
Re: Leaning cfg experiment
« Reply #4 on: February 03, 2015, 03:49:12 AM »
It allows npcs to see you and fire at you, but still pretty much acts the same (other than that super stealth thing).
MLG

Offline PaiCrai

  • *
  • +3% chance to make useful post
  • PaiCrai has no influence.
Re: Leaning cfg experiment
« Reply #5 on: February 03, 2015, 03:55:17 AM »
i like that v much (sorta)
smignature

Offline Monkatraz

  • *
  • *
  • +4% chance to make useful post
  • Monkatraz has no influence.
Re: Leaning cfg experiment
« Reply #6 on: February 03, 2015, 03:59:56 AM »
I'm working on some sort of system that basically adds a stealth mode, and this is a part of it. When crouched, you don't use this system and instead use the old one (you can't fire your weapon while leaning of course), because you can't be seen while leaning with the old SMOD default.
MLG

Offline PaiCrai

  • *
  • +3% chance to make useful post
  • PaiCrai has no influence.
Re: Leaning cfg experiment
« Reply #7 on: February 03, 2015, 04:02:14 AM »
sounds like a very good balance
smignature

Offline BIZ

  • 32-Bit Hobo
  • *
  • *
  • +0% chance to make useful post
  • BIZ hides in shadows.
    • BSNOOCH.COM
Re: Leaning cfg experiment
« Reply #8 on: February 03, 2015, 04:18:33 AM »
It allows npcs to see you and fire at you, but still pretty much acts the same (other than that super stealth thing).
thats what i was hoping, it really bugged me before with the no damage, no target mode.

Offline Nyanch

  • *
  • +1% chance to make useful post
  • Nyanch has no influence.
Re: Leaning cfg experiment
« Reply #9 on: February 03, 2015, 05:50:09 AM »
What is this, tactical?

Offline Monkatraz

  • *
  • *
  • +4% chance to make useful post
  • Monkatraz has no influence.
Re: Leaning cfg experiment
« Reply #10 on: February 03, 2015, 05:53:40 AM »
What is this, tactical?
Yep, I mess around in a lot of different mods.
MLG

Offline Pepsifan04

  • *
  • *
  • +12% chance to make useful post
  • Pepsifan04 might someday be someone...Pepsifan04 might someday be someone...Pepsifan04 might someday be someone...Pepsifan04 might someday be someone...
Re: Leaning cfg experiment
« Reply #11 on: February 03, 2015, 06:11:44 AM »
Ok here I go:
Use logic_relay with delay time instead "wait" commands, i can see game freezes as the cmds are being executed (it's up to you really, just a suggestion)
I like the fact that npc are wearing bulletproof baseball caps :D

From what I saw I think it uses sv_rollangle and moves player slightly to the side, which is nice idea but it can get messy sometimes (trust me, I've got that idea much earlier) but I'm hoping that you'll be able to make something better than me

I'm gonna mess around with this idea and see what I'll be able to make
Officially Unofficial BSNOOCH Discord:
https://discordapp.com/invite/eBqezeR