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

Blood Color/Amount Management


Post New Thread Reply   
 
Thread Tools Display Modes
Guenhwyvar
AMX Mod X Beta Tester
Join Date: Jul 2005
Location: Berlin / Germany
Old 07-07-2006 , 14:11   Re: Blood Color/Amount Management
Reply With Quote #31

The blood still disappears too fast but Iam still using it ;). Compiling with 1.75 brings this warning:

Quote:
ghw_blood_color.sma(9 : warning 204: symbol is assigned a value that is never
used: "attacker"
Guenhwyvar is offline
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 07-09-2006 , 00:14   Re: Blood Color/Amount Management
Reply With Quote #32

Due to Forum Change, you must redownload the plugin in order for the pallete command to work.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
jtp10181
Veteran Member
Join Date: May 2004
Location: Madison, WI
Old 07-09-2006 , 11:06   Re: Blood Color/Amount Management
Reply With Quote #33

the hitplaces returned by get_user_attacker are 0 - 7 but in this switch you use bitwise numbers.... I doubt it is working correctly.

Code:
  switch(hitpoint)
  {
   case 2:
   {
    get_user_origin(id,origin,1)
   }
   case 4:
   {
    origin[2] += 25
   }
   case 8:
   {
    origin[2] += 10
   }
   case 16:
   {
    origin[2] += 10
    origin[0] += 5
    origin[1] += 5
   }
   case 32:
   {
    origin[2] += 10
    origin[0] -= 5
    origin[1] -= 5
   }
   case 64:
   {
    origin[2] -= 10
    origin[0] += 5
    origin[1] += 5
   }
   case 128:
   {
    origin[2] -= 10
    origin[0] -= 5
    origin[1] -= 5
   }
  }
__________________
jtp10181 is offline
Send a message via ICQ to jtp10181 Send a message via AIM to jtp10181 Send a message via MSN to jtp10181 Send a message via Yahoo to jtp10181
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 07-09-2006 , 12:23   Re: Blood Color/Amount Management
Reply With Quote #34

When I tested the bloodsprites were created at the correct locations for me. I'll test what get_user_attacker returns later, I'm not doubting that you're telling me the truth, I just think I would've noticed that it didn't work if it didn't work. Once again, I'll test.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
-=STN=- MaGe
Veteran Member
Join Date: Apr 2004
Location: Asault World
Old 07-18-2006 , 08:13   Re: Blood Color/Amount Management
Reply With Quote #35

Welcome to the AMX Mod X 1.75-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team

/home/groups/amxmodx/tmp3/php5eR1BX.sma(9 : warning 204: symbol is assigned a value that is never used: "attacker"
Header size: 476 bytes
Code size: 2420 bytes
Data size: 1548 bytes
Stack/heap size: 16384 bytes; estimated max. usage=175 cells (700 bytes)
Total requirements: 20828 bytes

1 Warning.
Done.
__________________



-=STN=- MaGe is offline
Send a message via Yahoo to -=STN=- MaGe
-=STN=- MaGe
Veteran Member
Join Date: Apr 2004
Location: Asault World
Old 07-18-2006 , 11:26   Re: Blood Color/Amount Management
Reply With Quote #36

how do you stop the normal blood?

i have mine yellow and there is red blood on the walls
__________________



-=STN=- MaGe is offline
Send a message via Yahoo to -=STN=- MaGe
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 07-18-2006 , 13:22   Re: Blood Color/Amount Management
Reply With Quote #37

Quote:
Originally Posted by -=STN=- MaGe
how do you stop the normal blood?

i have mine yellow and there is red blood on the walls
Can't or else I would've done it.

And your warning, it's impossible for it not to exist without doing something stupid in the script that would waste efficiency.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
jtp10181
Veteran Member
Join Date: May 2004
Location: Madison, WI
Old 07-18-2006 , 19:58   Re: Blood Color/Amount Management
Reply With Quote #38

why cant you? they are server messages, register them and block them.

Also FYI this is the line causing the warning

Code:
new hitpoint, weapon, attacker = get_user_attacker(id,weapon,hitpoint)
This would work just the same

Code:
new hitpoint, weapon
get_user_attacker(id,weapon,hitpoint)
and would get rid of the warning.

And I still don't see how your hitpoint switch is working since the hitplace is 0-7 not bitwise.
__________________

Last edited by jtp10181; 07-18-2006 at 20:02.
jtp10181 is offline
Send a message via ICQ to jtp10181 Send a message via AIM to jtp10181 Send a message via MSN to jtp10181 Send a message via Yahoo to jtp10181
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 07-18-2006 , 22:59   Re: Blood Color/Amount Management
Reply With Quote #39

Okay, I lied about the warning, I actually didn't look at it, I thought that I had in the past or else I would have fixed it. Stupid me. As for the 0-7 thing I was going to test that but the day I was going to test that the internet at the cafe had gone down I remember. So I just tested it and you were indeed right. Gracias.

Updated. 0 Warnings, Blood is created in correct spot.

As for blood on wall, does it really bother you enough that you'de want me to have to include the FM module?
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
jtp10181
Veteran Member
Join Date: May 2004
Location: Madison, WI
Old 07-19-2006 , 21:05   Re: Blood Color/Amount Management
Reply With Quote #40

register_message is in the core not fakemeta. FYI
__________________
jtp10181 is offline
Send a message via ICQ to jtp10181 Send a message via AIM to jtp10181 Send a message via MSN to jtp10181 Send a message via Yahoo to jtp10181
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 12:30.


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