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.