Raised This Month: $12 Target: $400
 3% 

Force Use / Touch


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DotNetJunkie
Senior Member
Join Date: May 2005
Location: In front of my pc
Old 02-25-2007 , 00:59   Force Use / Touch
Reply With Quote #1

I'm trying to get a door to open that I'm looking at in game
similar to the way people used force_use and force_touch in AMXX or Metamod
and so far I can't figure it out.

I've tried playing around with using CBaseEntity::Touch and CBaseEntity::Use
(using either offsets or signature scanning of course :S) and so far I can't get them to open a door.

Anyone got any ideas?
Thanks!
__________________
DotNetJunkie is offline
Send a message via ICQ to DotNetJunkie Send a message via AIM to DotNetJunkie Send a message via MSN to DotNetJunkie Send a message via Yahoo to DotNetJunkie
c0ldfyr3
AlliedModders Donor
Join Date: Aug 2005
Location: Ireland
Old 02-26-2007 , 04:18   Re: Force Use / Touch
Reply With Quote #2

Quote:
Originally Posted by DotNetJunkie View Post
I'm trying to get a door to open that I'm looking at in game
similar to the way people used force_use and force_touch in AMXX or Metamod
and so far I can't figure it out.

I've tried playing around with using CBaseEntity::Touch and CBaseEntity::Use
(using either offsets or signature scanning of course :S) and so far I can't get them to open a door.

Anyone got any ideas?
Thanks!
If they're facing it, can't you just ClientCommand "+use; wait; -use"?
__________________
c0ldfyr3 is offline
Send a message via MSN to c0ldfyr3 Send a message via Yahoo to c0ldfyr3
BAILOPAN
Join Date: Jan 2004
Old 02-26-2007 , 12:49   Re: Force Use / Touch
Reply With Quote #3

You could also try IServerGameEnts::MarkEntitiesAsTouching or something.
__________________
egg
BAILOPAN is offline
Reply



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 06:43.


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