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

DoD Shell Shock v2.0


Post New Thread Reply   
 
Thread Tools Display Modes
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 12-14-2006 , 21:26   Re: DoD Shell Shock v1.1
Reply With Quote #11

Code:
floatdiv(set_time,ten)
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
diamond-optic
Veteran Member
Join Date: May 2005
Old 12-14-2006 , 21:50   Re: DoD Shell Shock v1.1
Reply With Quote #12

...would instead of doing:
Code:
    new Float:set_value,valuestr[5],valuenum,Float:ten,Float:set_time     valuenum = volumeup[id] + 1     num_to_str(valuenum,valuestr,4)     set_value = str_to_float(valuestr)     ten = str_to_float("10")     set_value = floatdiv(Float:set_value,Float:ten)         set_time = get_pcvar_float(p_dod_shellshock_volume_time2)          if(set_time < 1.0)         set_time = 1.0             set_time = floatdiv(Float:set_time,Float:ten)

would this be fine:
Code:
    new Float:set_value,Float:set_time         set_value = floatdiv(float(volumeup[id] + 1),10.0)     set_time = get_pcvar_float(p_dod_shellshock_volume_time2)          if(set_time < 1.0)         set_time = 1.0             set_time = floatdiv(set_time,10.0)

it seems a much more simple way of getting the same result instead of making the number a string, then the string a float...

or should i set the:
Code:
float(volumeup[id] + 1)
to a variable and then use that variable in the floatdiv?

* thanks for the help btw
__________________

Last edited by diamond-optic; 12-14-2006 at 22:01.
diamond-optic is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 12-15-2006 , 01:14   Re: DoD Shell Shock v1.1
Reply With Quote #13

Code:
    new Float:set_value,Float:set_time         set_value = floatdiv(float(volumeup[id] + 1),10.0)     set_time = get_pcvar_float(p_dod_shellshock_volume_time2)          if(set_time < 1.0)         set_time = 1.0             set_time = floatdiv(set_time,10.0)
is fine. your first way was very unlogical, you had a number, then you made it into a string, then you took that string and made it into a number, and all kinds of weird stuff.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
diamond-optic
Veteran Member
Join Date: May 2005
Old 12-15-2006 , 18:24   Re: DoD Shell Shock v1.1
Reply With Quote #14

ya i must not have every really looked at it.. that bit was done by:

Quote:
- cadav0r: fade & shake CVAR code, new volume fx methods, and various other fixes
i feel a wee bit dumber now for not noticing that
__________________
diamond-optic is offline
diamond-optic
Veteran Member
Join Date: May 2005
Old 12-16-2006 , 19:51   Re: DoD Shell Shock v1.2
Reply With Quote #15

UPDATE - version 1.2

Code:
   - 12.16.2006 Version 1.2
	  Cleaned up a bunch of things (thanks Emp`)
__________________
diamond-optic is offline
diamond-optic
Veteran Member
Join Date: May 2005
Old 03-20-2007 , 14:43   Re: DoD Shell Shock v1.2
Reply With Quote #16

UPDATE - version 1.3b

Change Log:
Code:
   - 03.17.2007 Version 1.3
	  Cleaned up some more things thru the code
	  Changed the default values for some of the cvars
	  Now the effects will stop if you die
	  Improved the effect tasks
	  Added a new feature: sfx (changes the way everything you hear sounds)

   - 03.19.2007 Version 1.3b
	  Fixed a typo in the CVAR comment section
	  More simple way to stop all the effects at once
	  Tasks are now removed on client disconnect
	  Changed volume cvar query task from 10sec to 8sec
	  Removed some plugin active checks (avoids problems when turning it on mid-game)
	  Added RoundState checks
New CVARs:
Code:
 	dod_shellshock_sfx "1" 			//Turn on(1)/off(0) soundfx effect
 	dod_shellshock_sfx_dmg "40" 		//Sets the minimum damage required
 	dod_shellshock_sfx_time "20" 		//Sets how long the effect lasts (-1 = keep effect till client dies)

i noticed i made an extra cvar to do something another cvar was already doing, so i'll post a tiny fix for that soon


*EDIT* - update to version 1.3c

sorry bout that lol..
...fixed it

Code:
   - 03.20.2007 Version 1.3c
	  Removed an extra cvar (dod_shellshock_sfx_stay)
	  Fixed the sfx effect time stuff
__________________

Last edited by diamond-optic; 03-20-2007 at 14:55. Reason: update to 1.3c
diamond-optic is offline
diamond-optic
Veteran Member
Join Date: May 2005
Old 06-13-2007 , 17:19   Re: DoD Shell Shock v1.4
Reply With Quote #17

Update to v1.4

Code:
 - 06.13.2007 Version 1.4
	  Changed the way the cvar query is done (first time client spawns)
	  Added round draws to roundstate check
	  Removed some code in the roundstate function
	  Added drop weapon effect
	  Added force prone effect
	  Added 'particle' effect
	  Few minor code changes/fixes
	  Replaced high & low vector CVARs with one single new CVAR
__________________
diamond-optic is offline
Numberg
New Member
Join Date: Jul 2007
Old 07-03-2007 , 03:22   Re: DoD Shell Shock v1.4
Reply With Quote #18

I have a problem with this plugin.
When i start a server and begin the game, i open console i see that message:

L 07/03/2007 - 08:44:54: Client CVAR querying is not enabled - check MM version!
L 07/03/2007 - 08:44:54: [AMXX] Displaying debug trace (plugin "dod_shellshock.amxx")
L 07/03/2007 - 08:44:54: [AMXX] Run time error 10: native error (native "query_client_cvar")
L 07/03/2007 - 09:193: [AMXX] [0] 12036.attach::hook_respawn (line 421)

Some of plugin scripts works ok, but when the grenade blow out near by me, correctly i hear the shellshock_ring_3 sound and the wolume is going down to zero.
Whole problem relies on it the volume of game it unreturns to defaulf former state. I don't know why this happen evry time when grenade destroy me or explode near by me.
I instal a plugin ccording to indicators on post.
I don't know what to do.
Any ideas?
Please Help.
Numberg is offline
diamond-optic
Veteran Member
Join Date: May 2005
Old 07-03-2007 , 08:45   Re: DoD Shell Shock v1.4
Reply With Quote #19

what version of metamod are you using?
__________________
diamond-optic is offline
Numberg
New Member
Join Date: Jul 2007
Old 07-04-2007 , 14:43   Re: DoD Shell Shock v1.4
Reply With Quote #20

The newest one i suppose v1.19 for windows.
Numberg is offline
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 10:01.


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