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

lmModule 1.1 BETA (a location reporter/marker plugin.)


Post New Thread Reply   
 
Thread Tools Display Modes
kulfaangaren!
Junior Member
Join Date: May 2004
Location: Stockholm, Sweden
Old 06-07-2004 , 09:47  
Reply With Quote #41

So what you guys are suggesting is that I make invisible entities with the shape of a room/area and put it in the map and then do some kind of collision detection with pfn_touch() to detect when a player moves into that area but with no way of knowing when the user leaves the area without entering a new area ?
This sounds like ALOT of touble with some drawbacks one will have to code alot of extra code to get around.
Offcourse I might just be 57()()p1[) and unable to see the logic and beauty in this solution

// Fredrik
kulfaangaren! is offline
Send a message via MSN to kulfaangaren!
ts2do
Senior Member
Join Date: Mar 2004
Old 06-07-2004 , 10:27  
Reply With Quote #42

well actually when pfn_touch is called, the trigger will be teleported out of world and back, the string is set for like 1 sec
set_task(1.0,"teleport",iEnt) iEnt being the trigger
and in teleport would set every1s string to null then a teleport for the trigger to like -10000 -10000 -10000 then back to its original point
then if it called pfn_touch, it will set the users string to where they are
__________________
ts2do is offline
Send a message via AIM to ts2do
VEN
Veteran Member
Join Date: Jan 2005
Old 06-19-2006 , 10:57  
Reply With Quote #43

I've replaced str[un]pack natives with "copy" since it's not supported by AMXX.
Also implemented a fake native lm_get_user_locdesc:
Code:
// Retrieves a description of the area // at which player is currently located // returns area index or -1 if not in the area native lm_get_user_locdesc(index, desc[], len);
so now you can use this plugin as a fake module to retrieve area description in your own plugin(s).

To get the idea of how to use that native take a look at the sample plugin lm_get_user_locdesc_test.sma

All needed files are attached below.
Attached Files
File Type: sma Get Plugin or Get Source (lmmodule.sma - 945 views - 32.2 KB)
File Type: sma Get Plugin or Get Source (lm_get_user_locdesc_test.sma - 829 views - 519 Bytes)
File Type: inc lm.inc (232 Bytes, 159 views)
VEN 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 05:42.


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