AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Grab+ (https://forums.alliedmods.net/showthread.php?t=61910)

ian.cammarata 10-22-2007 18:37

Re: Grab+
 
Quote:

Originally Posted by connorr (Post 545029)
Don't use accents, unless ian.cammarata want to make the file UTF-8

Actually even doing that, the Half-Life client doesn't support UTF anyway, still comes out messed up. Unless it has UTF support in non English version of the game, I dunno. But the official amxx translations aren't UTF-8, so I just followed their lead.

_Tool_ 10-23-2007 14:04

Re: Grab+
 
The coding looks pretty sound from looking at it, but is there a reason you had to have both engine and fakemeta?

ian.cammarata 10-23-2007 18:54

Re: Grab+
 
Quote:

Originally Posted by _Tool_ (Post 545436)
The coding looks pretty sound from looking at it, but is there a reason you had to have both engine and fakemeta?

Because I felt like it... and using the engine module keeps me from having to duplicate some of the code that already exists in the engine module, but not in fakemeta.

JayHaxor 10-27-2007 12:46

Re: Grab+
 
What is the admin flag for this?

maplebest 10-27-2007 15:28

Re: Grab+
 
This?

"#define ADMIN ADMIN_LEVEL_A"

From the script.

JayHaxor 10-27-2007 15:46

Re: Grab+
 
Thanks

vittu 10-27-2007 16:39

Re: Grab+
 
Quote:

Originally Posted by ian.cammarata (Post 543315)
Error on line 141??? I'm confused?
Code:

public plugin_init( )

I believe he was reffering to the error of SVC_DAMAGE already being defined in message_const.inc, which would give a compile error. Course it wasn't added until 1.80 but could be he was using a nightly build at the time.


----------------------
Quote:

Originally Posted by ian.cammarata (Post 545512)
Because I felt like it... and using the engine module keeps me from having to duplicate some of the code that already exists in the engine module, but not in fakemeta.

I don't use engine, so if anyone else wants it here is fakemeta only (minus engine, minus fun).


------------------------
Edit: Attachment removed uploaded wrong one, see here instead: http://forums.alliedmods.net/showthr...281#post548281

jee-er 10-28-2007 15:24

Re: Grab+
 
Question, when I go ingame. And I use +grab on a bind. I only turn red, and I cant pickup things like boxes and stuff. Also, how can I turn glow OFF ?

I setted the colors to zero, but it wont work.

ian.cammarata 10-28-2007 18:42

Re: Grab+
 
Quote:

Originally Posted by jee-er (Post 547157)
Question, when I go ingame. And I use +grab on a bind. I only turn red, and I cant pickup things like boxes and stuff. Also, how can I turn glow OFF ?

I setted the colors to zero, but it wont work.

It only lets you grab players, hostages, and weapons (basically just point entities). If you want to be able to grab everything, get entmod, or something like it.

You want the glow off, or the screenfade? I guess I can add an option for both when I get the chance, haven't really had time for any coding in the last 2 weeks though. Part of the reason I've been busy is because my webhost sucks, I had to get a new one, but I'm gonna have SVN now!!! :P Weeeeeeeeeeeeee!!!!!

maplebest 10-30-2007 05:01

Re: Grab+
 
Yes add something that can remove the screenfade.
And something that can make the glow be stronger or weaker.

:D

Thanks!

ian.cammarata 11-01-2007 01:50

Re: Grab+
 
Quote:

Originally Posted by vittu (Post 546807)
I don't use engine, so if anyone else wants it here is fakemeta only (minus engine, minus fun).

Does his file work for anyone else, cause it sure doesn't work for me, although I haven't tried AMXX 1.8.

vittu 11-01-2007 06:46

Re: Grab+
 
1 Attachment(s)
Quote:

Originally Posted by ian.cammarata (Post 548243)
Does his file work for anyone else, cause it sure doesn't work for me, although I haven't tried AMXX 1.8.

Yea sorry about that didn't notice I uploaded from the wrong folder, this one was the tested and fixed from my previous file.

Requires amxx 1.75 or above because of velocity_by_aim (moved from engine to core). Could rewrite that too incase someone needs it for below 1.75, but I dont think it's reallly needed (also pev_valid would require at least 1.70).

-------------
Edit: Removed due to update in main post.

ian.cammarata 11-01-2007 07:10

Re: Grab+
 
Quote:

Originally Posted by vittu (Post 548281)
Yea sorry about that didn't notice I uploaded from the wrong folder, this one was the tested and fixed from my previous file.

Oh yeah.... you have to register client prethink using fakemeta. I totally missed that, went over it like 5 times too.

vittu 11-01-2007 07:14

Re: Grab+
 
It was more then just that, unfinished conversions and one mistake. It was just I finished it off in a folder on my test server, but uploaded from my thumb drive cause that's where i usually work off of.

Woody56 11-10-2007 20:39

Re: Grab+
 
Using 1.76c on a NS server. Getting the following errors in HLSW:
[META] WARNING: Plugin didn't set meta_result: fakemeta_amxx.dll:PlayerPreThink() After putting "debug" I get this error in AMXX logs:
L 11/10/2007 - 19:26:30: [FAKEMETA] Invalid entity
L 11/10/2007 - 19:26:30: [AMXX] Displaying debug trace (plugin "grab_plus.amxx")
L 11/10/2007 - 19:26:30: [AMXX] Run time error 10: native error (native "pev")
L 11/10/2007 - 19:26:30: [AMXX] [0] phpieMnFg.sma::fm_player_prethink (line 236)

Any suggestions

vittu 11-10-2007 21:48

Re: Grab+
 
It looks like you are using the one I posted but that error doesn't match up, it matches with the original plugin... But that also doesn't make sense because if the ent is not valid target would be 0 and it would never get to that point.


However, I did forget to use FMRES_IGNORED instead of PLUGIN_CONTINUE. So if you were using the one I posted re-download, though it shouldn't make a difference. Also, that warning could be ignored. I think ian's been working on a new version, so look for that when he gets around to it.

`666 11-11-2007 11:58

Re: Grab+
 
with this new version can't grab weapons any more :(

vittu 11-11-2007 22:42

Re: Grab+
 
If your using the one I first posted by mistake no you can't. But if you using the one I reposted above, yes you can I tested it out and it works fine. The only difference from the one in the main post is it does not use engine or fun modules otherwise it is exactly the same.



btw ian, returns are ignored in plugin_init and plugin_precache as well as some others so you don't need to end those functions with a return.

`666 11-12-2007 00:56

Re: Grab+
 
ok, cheers m8

[DeathTV] Sid 6.7 11-12-2007 16:34

Re: Grab+
 
I always wanted this back from when I tried to compile Ultimate Jedi Grab. Had to rename all state vars to get it to compile, it ran, but it would crash my server grabbing stuff and spammed my console.

No problem with this! This is definitely on my top 10.

Very awesome job, A+ guys
I likes smashing things with it lol

ian.cammarata 11-12-2007 16:41

Re: Grab+
 
Quote:

Originally Posted by Woody56 (Post 551570)
Using 1.76c on a NS server. Getting the following errors in HLSW:
[META] WARNING: Plugin didn't set meta_result: fakemeta_amxx.dll:PlayerPreThink() After putting "debug" I get this error in AMXX logs:
L 11/10/2007 - 19:26:30: [FAKEMETA] Invalid entity
L 11/10/2007 - 19:26:30: [AMXX] Displaying debug trace (plugin "grab_plus.amxx")
L 11/10/2007 - 19:26:30: [AMXX] Run time error 10: native error (native "pev")
L 11/10/2007 - 19:26:30: [AMXX] [0] phpieMnFg.sma::fm_player_prethink (line 236)

Any suggestions


All fixed, get 1.2.1

vittu 11-12-2007 17:53

Re: Grab+
 
ian, just fyi not sure if you want to add a check or increase it for them:

If gp_throw_force is set higher than 2000, the server cvar sv_maxvelocity must be changed as well. sv_maxvelocity's default is 2000 (at least for cstrike, not sure about other mods), and if you set speed for velocity_by_aim higher than that it will not go where you aim but skew in another direction.

----------------------
Also, I believe it's faster to not change vectors like this with a for loop:
for( new i = 0; i < 3; i++ ) vViewPos[i] += ofs[i]
but rather do them manually:
vViewPos[0] += ofs[0]
vViewPos[1] += ofs[1]
vViewPos[2] += ofs[2]

ian.cammarata 11-16-2007 10:02

Re: Grab+
 
Quote:

Originally Posted by vittu (Post 552186)
Also, I believe it's faster to not change vectors like this with a for loop:
for( new i = 0; i < 3; i++ ) vViewPos[i] += ofs[i]
but rather do them manually:
vViewPos[0] += ofs[0]
vViewPos[1] += ofs[1]
vViewPos[2] += ofs[2]

You're probably right, I guess I'll change it. But I really liked having fewer lines of code.:up:

undoedun 11-16-2007 12:59

Re: Grab+
 
Look good! I must test this!

vittu 11-16-2007 16:05

Re: Grab+
 
Quote:

Originally Posted by ian.cammarata (Post 553498)
You're probably right, I guess I'll change it. But I really liked having fewer lines of code.:up:

I don't care about less lines of code, I prefer legibility and speed :P

RenXO 11-23-2007 13:12

Re: Grab+
 
No one for spanish translations?

[es]
COULDNT = No puedes agarrar a ese jugador.
ALREADY = Alguien ya esta agarrando eso.

killlotz 11-24-2007 16:47

Re: Grab+
 
What admin flag do you ahve to have to use this?

vittu 11-24-2007 16:58

Re: Grab+
 
Quote:

Originally Posted by killlotz (Post 556358)
What admin flag do you ahve to have to use this?

You can change it in the sma, but requires a recompile:
Code:

#define ADMIN ADMIN_LEVEL_A
flag "m"
http://www.amxmodx.org/funcwiki.php?...=1#const_admin

ian.cammarata 11-24-2007 19:50

Re: Grab+
 
Quote:

Originally Posted by vittu (Post 556366)
You can change it in the sma, but requires a recompile:
Code:

#define ADMIN ADMIN_LEVEL_A

Actually if you're using AMXX 1.8, you can change the flag by editing the file:
configs/cmdaccess.ini

More info in the changelog:
http://wiki.amxmodx.org/AMX_Mod_X_1...._Flag_Changing

cs1.6 12-15-2007 09:58

Re: Grab+
 
Hi,


Works great. Is it possible to add a cvar/feature that in chat a message is shown? After a while of grabbing entities or players and having your screen turn back and forth from normal to red you get eye aching. And if you disable the screenfading you are never sure if you grabbed the enity or not. A little cvar regarding a chat message would help much and i think is done fast.

Thanks,

cs

imre 12-26-2007 08:49

Re: Grab+
 
plz say how i fix plugins wat and were i sawe plzzzzzz

imindfreak 12-27-2007 13:42

Re: Grab+
 
nice work, this works great in my server!

imre 12-27-2007 14:34

Re: Grab+
 
=(

cs1.6 12-27-2007 14:50

Re: Grab+
 
Quote:

Originally Posted by imre (Post 567408)
=(


put grab_plus.amxx (Get Plugin) into folder: addons/amxmodx/plugins

and

put grab_plus.txt into folder: addons\amxmodx\data\lang


write
grab_plus.amxx into plugins.ini (in amxmodx/configs/)

project 12-27-2007 19:37

Re: Grab+
 
nice plugin :) would be fun to play wiht :D

testing on bots in a new game :D

hugz` 12-28-2007 11:51

Re: Grab+
 
Would be cool if you could grab explosive boxes at bomb sights.

Nikol4u 01-17-2008 08:51

Re: Grab+
 
Bulgarian:

Code:

[bg]
COULDNT = Nemoje da se hvane tozi igrach
ALREADY = Nqkoi drug veche e hvanal tozi igrach

thanks for the plugin

cs1.6 03-07-2008 23:52

Re: Grab+
 
The best grab plugin available!
I use this since a year i think.
At first i was sceptical because of the bigger size.
But its really worth it!

A chat notification of a successful grab would be very helpfull though. It would make the use much easier. And if u dont like it, make it available via a cvar option. Out of experience i must say the use of this plugin would be much easier with a chat confirm that u successfully grabbed someone.

A bug (?):

if u leave the game window (i work at my pc - others might get IM messgs) and work a while and then switch back to the game window, it seems the grab function is even working if u are on desktop/ in windows. U have mssgs from the plugin in the console - even u were on desktop and not in game.

letgoofmyeggs 03-08-2008 13:18

Re: Grab+
 
hey i was wondering if there was a way to make admins wit immunity, not able to be grabbed

Fr0sTbY7eX 03-09-2008 12:15

Re: Grab+
 
^^ Seconded, I want my other admins to have access to it but not be able to grab me.


All times are GMT -4. The time now is 09:20.

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