Raised This Month: $ Target: $400
 0% 

[TFC] Teleporter arrows


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
SpannerSpammer
Member
Join Date: Mar 2006
Old 03-20-2015 , 23:17   Re: [TFC] Teleporter arrows
Reply With Quote #7

Like Pizzahut, I too have been spoiled by Drippy's teleporter arrows, so I made my own MetaMod based version
a while back. It was a little laggy and the code was not optimized, but it worked. I had never even considered
porting it to AMX because I thought there wasn't any way to manipulate entity edict offsets, I guess I was
wrong. This helped a LOT guys, Thanks. With this I can port my Teleporter Exit Camera function to AMX.


Here's a little something for you Pizzahut, the attached SMA file is some old MM building offset code I just ported.
Note: I don't currently have a Linux box to test it out on so you will need to adjust the linux offset, just let me
know what the value should be. This code works on amx 1.8.2 on Windows, I don't know about later versions.

NOTE: For teleporters use this offset for TYPE
Code:
//                       raw windows offset / 4
#define PD_TELE_STATE 		124 / 4
These are the teleporter state values associated with this offet
Code:
#define TELE_NOT_PAIRED 		0	// Entry or Exit is idle
#define TELE_ENTRY_CHARGE		4	// Entry ONLY (charging)
#define TELE_EXIT_PAIRED 		8	// Exit ONLY (paired with Entry)
#define TELE_ENTRY_READY 		516	// Entry ONLY (fully charged, ready to use)
I can give you some steps on how to optimize your code if you want.
Attached Files
File Type: sma Get Plugin or Get Source (tele_info.sma - 743 views - 10.1 KB)
__________________
[NeoTF|DEV]SpannerSpammer-[AoE]-
NeoTF Development Team.
http://steamcommunity.com/groups/neotf
SpannerSpammer is offline
 


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


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