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

Change Server Hostage Models


Post New Thread Reply   
 
Thread Tools Display Modes
VEN
Veteran Member
Join Date: Jan 2005
Old 07-16-2006 , 15:59   Re: Change Server Hostage Models
Reply With Quote #11

Quote:
yeah that would work fine if i wanted to use thouse models... but i dont

edit: i dont mean to sound like a prick i just would prefer to use the models i picked
I posted that code just to prove that my method works and not crashes the server. So as i said, it's probably problem with your models itself, the code is fine.
VEN is offline
Guenhwyvar
AMX Mod X Beta Tester
Join Date: Jul 2005
Location: Berlin / Germany
Old 07-17-2006 , 04:49   Re: Change Server Hostage Models
Reply With Quote #12

Nice VEN, this one works fine!

One last thing: I switched my hostages to sexy ladies, but the sound is -as expected- still the old one (male voice). Could you kindly add a feature for switching the sounds, too?
Guenhwyvar is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 07-18-2006 , 05:23   Re: Change Server Hostage Models
Reply With Quote #13

I can, but i not promise.
VEN is offline
Guenhwyvar
AMX Mod X Beta Tester
Join Date: Jul 2005
Location: Berlin / Germany
Old 07-19-2006 , 04:50   Re: Change Server Hostage Models
Reply With Quote #14

Thanx anyway for trying! My players would appreciate it, sounds strange: hot lady - dark male voice ;).
Guenhwyvar is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 07-19-2006 , 06:38   Re: Change Server Hostage Models
Reply With Quote #15

EDIT: get the lastest versions here:
http://forums.alliedmods.net/showthr...833#post428833


Ok, enjoy.
Attached Files
File Type: sma Get Plugin or Get Source (hostage_models.sma - 436 views - 895 Bytes)
File Type: sma Get Plugin or Get Source (hostage_voice.sma - 442 views - 1.7 KB)

Last edited by VEN; 01-18-2007 at 12:38.
VEN is offline
Guenhwyvar
AMX Mod X Beta Tester
Join Date: Jul 2005
Location: Berlin / Germany
Old 07-19-2006 , 07:08   Re: Change Server Hostage Models
Reply With Quote #16

Wow, great! Thank you so much! Works flawlessly!
Guenhwyvar is offline
Guenhwyvar
AMX Mod X Beta Tester
Join Date: Jul 2005
Location: Berlin / Germany
Old 07-20-2006 , 14:41   Re: Change Server Hostage Models
Reply With Quote #17

I got this error:

Quote:
L 07/20/2006 - 20:42:20: [AMXX] Displaying debug trace (plugin "hostage_voice.amxx")
L 07/20/2006 - 20:42:20: [AMXX] Run time error 4: index out of bounds
L 07/20/2006 - 20:42:20: [AMXX] [0] hostage_voice.sma:null) (line 54)
In lack of more sounds, I did this - could this be the reason?

Code:
new g_phrases[MAX_HOSTAGES][MAX_PHRASES][] = {     {"hostage/shc/hos1.wav", "hostage/shc/hos2.wav", "hostage/shc/hos3.wav", "hostage/shc/hos4.wav", "hostage/shc/hos5.wav"},     {"hostage/shc/hos1.wav", "hostage/shc/hos2.wav", "hostage/shc/hos3.wav", "hostage/shc/hos4.wav", "hostage/shc/hos5.wav"},     {"hostage/shc/hos1.wav", "hostage/shc/hos2.wav", "hostage/shc/hos3.wav", "hostage/shc/hos4.wav", "hostage/shc/hos5.wav"},     {"hostage/shc/hos1.wav", "hostage/shc/hos2.wav", "hostage/shc/hos3.wav", "hostage/shc/hos4.wav", "hostage/shc/hos5.wav"} }
Guenhwyvar is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 07-22-2006 , 14:49   Re: Change Server Hostage Models
Reply With Quote #18

This shouldn't be a reason.

Try replace
PHP Code:
 new temp[2]
 
temp[0] = sample[11]
 new 
str_to_num(temp) - 
with
PHP Code:
new random(MAX_PHRASES
VEN is offline
Guenhwyvar
AMX Mod X Beta Tester
Join Date: Jul 2005
Location: Berlin / Germany
Old 07-23-2006 , 05:50   Re: Change Server Hostage Models
Reply With Quote #19

That's it - works without errors now. Thank you again.

You should release this, it's definitely usefull for others.
Guenhwyvar is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 07-23-2006 , 09:22   Re: Change Server Hostage Models
Reply With Quote #20

I think something like this already exists, not sure though.
VEN 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 14:40.


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