Raised This Month: $ Target: $400
 0% 

Disable fast moving with things


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 12-26-2007 , 19:57   Disable fast moving with things
Reply With Quote #1

Hi, in many maps there are things (like boxes), that can be moved, I mean if I go forward and touch the thing, I go forward with that thing (maybe little slower). What I want is to disable ability to move very fast, when I press E (+use) button on that thing, that the thing could only be moved by touching and walking in it, and would nothing change when I press E button. Can someone make something like that?
Attached Thumbnails
Click image for larger version

Name:	thing.jpg
Views:	198
Size:	86.9 KB
ID:	22377  
hleV is offline
M249-M4A1
I <3 Mac
Join Date: May 2005
Location: Not interested
Old 12-27-2007 , 03:21   Re: Disable fast moving with things
Reply With Quote #2

I don't know if your talking about the use glitch with moveable objects, but it seems like that's something that can't be fixed (at least I did not find a solution)
__________________
M249-M4A1 is offline
fxfighter
Veteran Member
Join Date: Feb 2007
Location: Trollhättan
Old 12-27-2007 , 13:08   Re: Disable fast moving with things
Reply With Quote #3

The box or object you kan move is tied whit an ent(func_pushable)
we culd easly remove the hole move able object but dont know what to do if you want to keep it.

engine
Code:
 
* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <engine>
new P_move 
public plugin_init() {
register_plugin("nomove", "0.1", "fxfighter")
P_move = register_cvar( "amxx_nomoveable", "1" )
nomove()
}
public nomove()
{
if(!get_pcvar_num(P_move))
{
return PLUGIN_HANDLED
}
 
new ent = -1
while((ent = find_ent_by_class(ent,"func_pushable")) != 0){
remove_entity(ent)
}
return PLUGIN_CONTINUE
}

Last edited by fxfighter; 12-27-2007 at 13:17.
fxfighter is offline
Send a message via MSN to fxfighter
Vet
Veteran Member
Join Date: Jul 2006
Location: I|O wa
Old 12-28-2007 , 10:28   Re: Disable fast moving with things
Reply With Quote #4

Quote:
Originally Posted by fxfighter View Post
we culd easly remove the hole move able object but dont know what to do if you want to keep it.
(func_wall)

But I don't think he's not trying to disable the movement altogether, I think he just wants to move faster when pressing the +USE key. Try setting the friction to a lower value when the player is touching it and pressing the +USE key and see if that works.
__________________
=====================================
- My Plugins -
=====================================
Vet is offline
Send a message via MSN to Vet
kp_uparrow
Penalized Member
Join Date: Jun 2006
Location: 192.168.0.1
Old 12-29-2007 , 00:50   Re: Disable fast moving with things
Reply With Quote #5

Quote:
Originally Posted by Vet View Post
(func_wall)

But I don't think he's not trying to disable the movement altogether, I think he just wants to move faster when pressing the +USE key. Try setting the friction to a lower value when the player is touching it and pressing the +USE key and see if that works.
no no, he wants slower movement when pushing, and reading fxfighter made me choke
__________________
I USED A SECOND ACCOUNT TO DO MORE KARMA UPS AND DOWNS UNTIL GREENTRYST CAUGHT ME
kp_uparrow is offline
Vet
Veteran Member
Join Date: Jul 2006
Location: I|O wa
Old 12-29-2007 , 00:58   Re: Disable fast moving with things
Reply With Quote #6

Ah right. Well the solution will be nearly the same. Detect the touch and disable the USE key while touching it.
__________________
=====================================
- My Plugins -
=====================================
Vet is offline
Send a message via MSN to Vet
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 01-24-2008 , 07:12   Re: Disable fast moving with things
Reply With Quote #7

*bumb*
hleV is offline
hebusletroll
Senior Member
Join Date: Apr 2006
Old 01-25-2008 , 07:43   Re: Disable fast moving with things
Reply With Quote #8

Quote:
Originally Posted by Vet View Post
Ah right. Well the solution will be nearly the same. Detect the touch and disable the USE key while touching it.
So, since the first HL release, pushing an object with use key is bugged : you move fastly because friction is not managed very well. But YOU CANNOT remove +USE function because if you can push an object, you can also pull it !! And pull work only if you use the +USE key.
__________________
Boring about playing same weapons ? PowerWeapons is available !
PowerWeapon v1.0 released !
Play up to 70 new weapons and create your own weapons !
Tested on Windows Server 2003, 2008/R2, 2012 and Linux Ubuntu 10.x and CentOs 6.x
hebusletroll is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-25-2008 , 08:57   Re: Disable fast moving with things
Reply With Quote #9

Detect touch won't work since you don't need to touch object to push/pull them.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 01-25-2008 , 08:58   Re: Disable fast moving with things
Reply With Quote #10

Would not be a good way to hook +use key and altering entitie friction value ?
__________________
Arkshine is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:02.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode