AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   New Plugin Submissions (https://forums.alliedmods.net/forumdisplay.php?f=26)
-   -   Drop Grenades (https://forums.alliedmods.net/showthread.php?t=334632)

fl0werD 10-09-2021 15:23

Drop Grenades
 
1 Attachment(s)
Author: fl0wer
Version: 1.0.2

Description
The player can drop grenades from their inventory just like weapons.

Settings
amx_candrop_hegrenade "1" // Player can drop HE grenade. (Default: 1)
amx_candrop_flasbang "1" // Player can drop flashbang. (Default: 1)
amx_candrop_smokegrenade "1" // Player can drop smoke grenade. (Default: 1)

Requirements
AmxModX 1.9.0 and higher
HamSandwich
FakeMeta
ReAPI

Cristian505 10-10-2021 12:25

Re: Drop Grenades
 
very cool

Cristian505 10-10-2021 12:26

Re: Drop Grenades
 
but not all users use reapi

fl0werD 10-10-2021 15:26

Re: Drop Grenades
 
Quote:

Originally Posted by Cristian505 (Post 2760200)
but not all users use reapi

I sympathize with them

Mordekay 10-10-2021 18:25

Re: Drop Grenades
 
https://forums.alliedmods.net/showthread.php?t=23340
Already approved
works
more features
no re-shit needed.

Celena Luna 10-10-2021 22:31

Re: Drop Grenades
 
1.
PHP Code:

Grenades_world_model[MAX_GRENADES][] 

=>
PHP Code:

grenades_world_model[MAX_GRENADES-1][] 

2.
Code:
new grenades[][] = {         "weapon_hegrenade",         "weapon_flashbang",
        "weapon_smokegrenade",
    }

3. bind_pcvar_* type of native only exist in 1.9+ so 1.8.2 won't work. You need to say specifically which version of AMXX is required

Also, most of this could be archive within AMXX so I don't see the reason to make it exclusively for ReAPI like this.

Quote:

Originally Posted by Mordekay (Post 2760234)
https://forums.alliedmods.net/showthread.php?t=23340
Already approved
works
more features
no re-shit needed.

There is no need to talk shit to reHLDS, it is a really good things that the community come together and try to fix those problem that Value left there for ages

P/S: it is funny that when I try to compile with AMXX 1.10, there ain't any error when there is writing error there

fl0werD 10-11-2021 15:31

Re: Drop Grenades
 
1. What?
2. What?)
3. Thanks. I don't follow old versions. I added to require.

Celena Luna 10-11-2021 23:24

Re: Drop Grenades
 
1. Ahh my mistake it actually here
Code:
enum {     GRENADE_HEGRENADE,     GRENADE_FLASHBANG,     GRENADE_SMOKEGRENADE,
    MAX_GRENADES,
}

you left out that comma at the last one which normally an basic writing error.
idk why 1.10 compiler allow it but it should not be allow like that.

2. Same as 1

fl0werD 10-12-2021 13:12

Re: Drop Grenades
 
Quote:

Originally Posted by Celena Luna (Post 2760364)
1. Ahh my mistake it actually here
Code:
enum {     GRENADE_HEGRENADE,     GRENADE_FLASHBANG,     GRENADE_SMOKEGRENADE,
    MAX_GRENADES,
}

you left out that comma at the last one which normally an basic writing error.
idk why 1.10 compiler allow it but it should not be allow like that.

2. Same as 1

It code style is good for edit and moving lines between themselves.

Celena Luna 10-12-2021 22:17

Re: Drop Grenades
 
Quote:

Originally Posted by fl0werD (Post 2760403)
It code style is good for edit and moving lines between themselves.

but it fundamentally wrong :shock:
It create a bad habit and it get error in most of the programing language.

Edit: Well, I guess it is your choice of style and the Approver accept it or not, not mine after all.


All times are GMT -4. The time now is 06:13.

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