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

DoD Smokegrenades plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Trp. Jed
Member
Join Date: Aug 2004
Old 11-01-2004 , 18:53  
Reply With Quote #41

Well we're not running many plugins and I've never seen a reliable channel overflow on our server.

I assume whats causing it for you is the actual "must-have" smoke sprites - the small smoke puffs given off by the initial ignition are only sent to the potential visible set as they dont make up part of the main smoke screen and therefore aren't mission critical.

The sprites that make up the actual screen itself are important. While a player may be in a part of the map that can't see the smoke screen, theres a risk that they may round a corner after some of the sprites are emitted. As the sprites last quite a while, theres a chance that if it was only sent to the PVS that players arriving post TE creation would get a smoke screen that isn't as thick which in effect is a "cheat". Hence, when a grenade goes off, the sprites making up the smoke screen are sent to ALL clients as reliable broadcast messages.

As for priming the nade, there really isn't much point as it does't explode and the throw velocity is pretty much the same as the regular grenades. However the throw velocity is based on the aim angle so the higher you aim your trajetory, the harder its thrown.
Trp. Jed is offline
MAUGHOLD
Veteran Member
Join Date: Nov 2004
Location: CA USA
Old 11-07-2004 , 00:07  
Reply With Quote #42

when i hit the key i have bound for throw_smoke which is "del" nothing happens but when i type it in the console i toss the smoke nade.

after the nade is tossed it works great but the sound never stops.
unless i hit stopsound but that just stops it for me probably.

//server specs

v1.1.2.0 (Windows, Dedicated)

MetaMod v1.17.1

amxmodX ver 0.20 beta

//currently running amxmodX plugins

[ 2] Admin Commands 0.20
[ 3] Admin Help 0.20
[ 4] Menus Front-End 0.20
[ 5] Commands Menu 0.20
[ 6] Players Menu 0.20
[ 7] Maps Menu 0.20
[ 8] Anti Flood 0.20
[ 9] Admin Chat 0.20
[ 10] Admin Votes 0.20
[ 11] NextMap 0.20
[ 12] TimeLeft 0.20
[ 13] Nextmap Chooser 0.20
[ 14] Scrolling Message 0.20
[ 15] Info. Messages 0.20
[ 16] Pause Plugins 0.20
[ 17] DoD Stats 0.20dod
[ 18] Stats Configurati 0.20
[ 19] Swear Filter with 1.1
[ 20] Simple Slots 1.6.1
[ 21] Client Exec 0.7
[ 22] DoD Camper Punish 1.0d
[ 23] DoD Teams 0.6
[ 24] AMXX DoD Smoke Gr 1.2

im wondering if theres a conflict somewere.
__________________
{FJ}Justice STEAM_0:0:633975 If anyone needs any help with their server, Just add me to steam friends and I'll help you out.
MAUGHOLD is offline
FeuerSturm
AlliedModders Donor
Join Date: Apr 2004
Old 11-07-2004 , 09:14  
Reply With Quote #43

you should try to bind another key, maybe starting with a normal
key from the alphabet could already fix it

btw, you're using an old version of DoD CamperPunish, for AMX Mod X 0.20, i would highly recommend to update to the latest version of it
which is far less laggy and uses more features of the new dod modules.
click my signature, then click on "Beta" section
FeuerSturm is offline
MAUGHOLD
Veteran Member
Join Date: Nov 2004
Location: CA USA
Old 11-07-2004 , 20:08  
Reply With Quote #44

ok sorry i had a binding conflict in my userconfig.cfg that was stopping it from working. im such a nub del will work.

jed your plugin rocks bro. i love the amount of smoke and the duration.

the sound is way loud though and goes on for too long after the smoke stops.

can you lesson the sound and keep it to the length of the smoke output.

BTW FireStorm i have the new version of cpunish very nice bro.

__________________
{FJ}Justice STEAM_0:0:633975 If anyone needs any help with their server, Just add me to steam friends and I'll help you out.
MAUGHOLD is offline
-=|JFH|=-cLaD
Senior Member
Join Date: Jun 2004
Old 11-07-2004 , 22:48  
Reply With Quote #45

is this working for DoD yet
__________________
-=|JFH|=-cLaD is offline
Send a message via Yahoo to -=|JFH|=-cLaD
Trp. Jed
Member
Join Date: Aug 2004
Old 11-07-2004 , 22:59  
Reply With Quote #46

Well it was written for DoD...

And its not 100% working with 0.20 as it was written for 0.16 and I havent had time to get the 0.20 bugs out yet.
Trp. Jed is offline
MAUGHOLD
Veteran Member
Join Date: Nov 2004
Location: CA USA
Old 11-08-2004 , 01:04  
Reply With Quote #47

Quote:
Originally Posted by -=|JFH|=-cLaD
is this working for DoD yet
yes but as far as i know the sound stays on well after the smoke stops.
plus the sound is way too loud

and the timelimit for throwing another nade is messed up.

i toss a smoke nade. then it says i cant toss another for a certain period of time. if i try to toss another too soon the time gets longer and longer before i can toss another.


oh jed i get this error when i change to certain maps like charlie for instance.

"[AMXX] Native error in "entity_get_string" on line 481 (file "/home/users/amxmodx/public_html/forums/files/smoke_grenade.sma").
171:13 L 11/07/2004 - 173:06: [Engine] Invalid player 0 (not in-game)"

ok i can see getting the error about smoke_grenade.sma but the [Engine] Invalid player 0 (not in-game)" maybe this is an cpunishment.amxx error having to do with FireStorm's plugin. hmmm
damn now im gonna have to learn some small language.
i cant stand being befuttled i guess thats a good thing!!
__________________
{FJ}Justice STEAM_0:0:633975 If anyone needs any help with their server, Just add me to steam friends and I'll help you out.
MAUGHOLD is offline
FeuerSturm
AlliedModders Donor
Join Date: Apr 2004
Old 11-08-2004 , 04:16  
Reply With Quote #48

you get "Invalid Player" errors when functions should be executed
on players that already left the server or are connecting and not in game
yet. adding some "is_user_connected" checks fixes the problem
FeuerSturm is offline
ilcannibal
Junior Member
Join Date: Dec 2004
Old 01-28-2005 , 14:28  
Reply With Quote #49

Main Plugin:

public round_message() {

// get the state code
new state = read_data(1)

// win draw, etc.
if (state != 1) {

// get time, 15 seconds after time when round was won.
new Float:delayTime = get_gametime() + 15

// clear up 'nades
for (new i=0; i<=33; i++) {
playerDelay[i] = delayTime // stops people throwing grenade when a round ends
// stop the hiss sound
emit_sound( grenID[i], CHAN_WEAPON, "ambience/steamjet1.wav", 0.2, ATTN_NORM, SND_STOP, PITCH_NORM )
emitted[i] = 32 // overload the emit counter to prematurely end the nade and remove it
}

liveGrens[0] = 0
liveGrens[1] = 0

} else { // round start

// reset the player grenade counts
for (new i=0; i<=33; i++) {
playerGrens[i] = 0 // grenades the player has thrown
emitted[i] = 0 // sprites emitted
}

// reset the team grenade counts
teamGrens[0] = 0
teamGrens[1] = 0

// reset the live grens count
liveGrens[0] = 0
liveGrens[1] = 0

}

return PLUGIN_CONTINUE
}


Error:

L 01/28/2005 - 10:556: [AMXX] Run time error 4 (index out of bounds) on line 531 (file "smoke_grenade.sma").
L 01/28/2005 - 10:55:56: [AMXX] Run time error 4 (index out of bounds) on line 531 (file "smoke_grenade.sma").

i have the plugin setup with debug on the end of it. and still gives me this error above.

Please help!!!
ilcannibal is offline
-=|JFH|=-cLaD
Senior Member
Join Date: Jun 2004
Old 03-06-2005 , 19:57   !PLUG
Reply With Quote #50

i dled the newest plugin ver. and i still get the same error. i can throw 1 gas nade, then if i wait to throw another the timer goes backwards.(same as b4 in my past post) I also noticed if you change to another class the timer starts over, but you still do not get any more gas-nades.

i am adding an error log.
Attached Files
File Type: txt log.txt (221.9 KB, 157 views)
__________________
-=|JFH|=-cLaD is offline
Send a message via Yahoo to -=|JFH|=-cLaD
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 01:34.


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