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

Resident Evil: Half-Life v1.4


Post New Thread Reply   
 
Thread Tools Display Modes
Dores
Veteran Member
Join Date: Jun 2008
Location: You really don't wanna k
Old 08-19-2008 , 20:03   Re: Resident Evil: Half-Life BETA
Reply With Quote #21

OMG yet another awesome monsters/zombies vs humans plugin by Sam Tsuki! GJ
__________________
O o
/Ż________________________
| IMMA FIRIN' MAH LAZOR!!!
\_ŻŻŻ
Dores is offline
LoLer
Junior Member
Join Date: Jul 2008
Old 08-19-2008 , 20:11   Re: Resident Evil: Half-Life BETA
Reply With Quote #22

L 08/19/2008 - 21:11:18: [CSTRIKE] Invalid player 1
L 08/19/2008 - 21:11:18: [AMXX] Displaying debug trace (plugin "rehl_mod.amxx")
L 08/19/2008 - 21:11:18: [AMXX] Run time error 10: native error (native "cs_get_user_team")
L 08/19/2008 - 21:11:18: [AMXX] [0] rehl_mod.sma::rehl_start (line 722)
L 08/19/2008 - 21:11:19: [CSTRIKE] Invalid player 1
L 08/19/2008 - 21:11:19: [AMXX] Displaying debug trace (plugin "rehl_mod.amxx")
L 08/19/2008 - 21:11:19: [AMXX] Run time error 10: native error (native "cs_get_user_team")
L 08/19/2008 - 21:11:19: [AMXX] [0] rehl_mod.sma::rehl_start (line 722)
LoLer is offline
Dores
Veteran Member
Join Date: Jun 2008
Location: You really don't wanna k
Old 08-19-2008 , 20:31   Re: Resident Evil: Half-Life BETA
Reply With Quote #23

Quote:
Originally Posted by LoLer View Post
L 08/19/2008 - 21:11:18: [CSTRIKE] Invalid player 1
L 08/19/2008 - 21:11:18: [AMXX] Displaying debug trace (plugin "rehl_mod.amxx")
L 08/19/2008 - 21:11:18: [AMXX] Run time error 10: native error (native "cs_get_user_team")
L 08/19/2008 - 21:11:18: [AMXX] [0] rehl_mod.sma::rehl_start (line 722)
L 08/19/2008 - 21:11:19: [CSTRIKE] Invalid player 1
L 08/19/2008 - 21:11:19: [AMXX] Displaying debug trace (plugin "rehl_mod.amxx")
L 08/19/2008 - 21:11:19: [AMXX] Run time error 10: native error (native "cs_get_user_team")
L 08/19/2008 - 21:11:19: [AMXX] [0] rehl_mod.sma::rehl_start (line 722)
Sam, i'm not sure, but i think this is caused because that the variable that holds the return value of the cs_get_user_team() native must be tagged.

So, if you want that the value returned will be stored in a variable, you must do the following:
PHP Code:
new CsTeams:player_team cs_get_user_team(i
If want that a function will return the player's team, and not putting the results in a variable, you must tag like this:
PHP Code:
return _:cs_get_user_team(i

What's wierd in the following:
PHP Code:
public SaveScore(id)
{
 if (
get_pcvar_num(rehl_save) == 0) return PLUGIN_HANDLED
 
 
new authid[32]
 if (
get_pcvar_num(rehl_saveby) == 0)
  
get_user_authid(idauthid31)
 else if (
get_pcvar_num(rehl_saveby) == 1)
  
get_user_ip(idauthid311)
 else
  
get_user_name(idauthid31)
 new 
vaultkey[64], vaultdata[64
 
 
gVaultHandle nvault_open(VAULTNAME)
 
 
format(vaultkey63"REHL-%s-points"authid
 
format(vaultdata63"%d"rehl_points[id])
 
nvault_set(gVaultHandlevaultkeyvaultdata)
 new 
msg[250]
 
format(msg249"^x04[RE:HL Mod] ^x01Score Saved!")
 
colored_msg(idmsgMSG_ONEsaytext)
 
format(msg249"^x04[RE:HL Mod] ^x01You have '^x03%d^x01' Points!"rehl_points[id])
 
colored_msg(idmsgMSG_ONEsaytext)
 
 
nvault_close(gVaultHandle)
 
 
check_top15(id)
 
 return 
PLUGIN_HANDLED
}
 
// and...
 
public client_disconnect(id)
{
 
SaveScore(id)

??
If he is disconnecting, he won't be able to see the message "Scored saved! Your score is blabla", since disconnecting is almost immediate.

One more time - I'M JUST THINKING STILL NOT SURE (I don't know much ).

And I think that if you do this:
PHP Code:
public client_disconnecting(id)
{
      
SaveScore(id);

You don't have to call SaveScore and LoadScore as a public function. That's at least what I understood from.. umm... I forgot... a pro scripter but i'm not sure who.
__________________
O o
/Ż________________________
| IMMA FIRIN' MAH LAZOR!!!
\_ŻŻŻ

Last edited by Dores; 08-19-2008 at 20:37.
Dores is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 08-19-2008 , 20:34   Re: Resident Evil: Half-Life BETA
Reply With Quote #24

People, are you blind? Just check the other pages of the thread:
Quote:
Originally Posted by hleV View Post
Line 722:
PHP Code:
player_team cs_get_user_team(i
Change to:
PHP Code:
if (!is_user_connected(i) || !is_user_alive(i))
        return 
PLUGIN_HANDLED
 
player_team 
cs_get_user_team(i
He just forgot to check if player is in server (and is alive but I believe it wouldn't show debug without is_user_alive() check).
__________________
hleV is offline
Dores
Veteran Member
Join Date: Jun 2008
Location: You really don't wanna k
Old 08-19-2008 , 21:10   Re: Resident Evil: Half-Life BETA
Reply With Quote #25

well, it didn't work for me without the override tags...

EDIT: I did looked at the other pages, but I assumed that he (LoLer) downloaded the updated and fixed version.
__________________
O o
/Ż________________________
| IMMA FIRIN' MAH LAZOR!!!
\_ŻŻŻ

Last edited by Dores; 08-19-2008 at 21:13.
Dores is offline
Sam Tsuki
Senior Member
Join Date: Apr 2008
Location: KoKoRo!
Old 08-19-2008 , 21:57   Re: Resident Evil: Half-Life BETA
Reply With Quote #26

Quote:
Originally Posted by The_Thing View Post
Okay is this a bug, I don't have a knife O_O and where should I put de_dust_monster.cfg ?? ?

edit : lol that was weird I found some problems
1) I don't have a knife
2) I started and why there are only 15 seconds to buy weapons O_O
3) When I went to search some zombies one of them (used bots, I see that You are not added a bot-pot support) I found one bots can pick up a weapons he shoot me with awp and I turned into zombie
4) When bots are infected into zombie he spawn in T base and don't even move... And CT bots don't recognize zombie from human he didn't shoot me.
5) Reliable channel overflowed

Thank You.
I restricted the knife cuz when you kill a monster with it
it makes the server crash
So, I made it so when you use the knife you get extra speed
And bots are totally unsupported
Maybe I'll try to add bot support in a later version
That's if I found a way to make them shoot zombies
And I think pod-bot doesn't know if they're using knives or not
They keep swinging in the air
If I'll be adding bot support it'll might be CZ bots

Quote:
91.121.146.10:27015 runned on linux

but have problem, if im alone on server - its ok, 2 or more ppl will kill 3 or more zombies - server crash, with builsquid or other monsters it dnt crash

so.. when im zombie and when i kill someone im dieng too and rounds end
If the round ended and you're a zombie, you DIE!!
That's not a bug
__________________
My Approved Plugins:
Sam Tsuki

HvM XP Mod's addons:
Co-op Maps
Money System

Last edited by Sam Tsuki; 08-19-2008 at 22:04.
Sam Tsuki is offline
Sam Tsuki
Senior Member
Join Date: Apr 2008
Location: KoKoRo!
Old 08-19-2008 , 22:06   Re: Resident Evil: Half-Life BETA
Reply With Quote #27

Quote:
Originally Posted by dor123 View Post
Sam, i'm not sure, but i think this is caused because that the variable that holds the return value of the cs_get_user_team() native must be tagged.

So, if you want that the value returned will be stored in a variable, you must do the following:
PHP Code:
new CsTeams:player_team cs_get_user_team(i
If want that a function will return the player's team, and not putting the results in a variable, you must tag like this:
PHP Code:
return _:cs_get_user_team(i
What's wierd in the following:
PHP Code:
public SaveScore(id)
{
 if (
get_pcvar_num(rehl_save) == 0) return PLUGIN_HANDLED
 
 
new authid[32]
 if (
get_pcvar_num(rehl_saveby) == 0)
  
get_user_authid(idauthid31)
 else if (
get_pcvar_num(rehl_saveby) == 1)
  
get_user_ip(idauthid311)
 else
  
get_user_name(idauthid31)
 new 
vaultkey[64], vaultdata[64
 
 
gVaultHandle nvault_open(VAULTNAME)
 
 
format(vaultkey63"REHL-%s-points"authid
 
format(vaultdata63"%d"rehl_points[id])
 
nvault_set(gVaultHandlevaultkeyvaultdata)
 new 
msg[250]
 
format(msg249"^x04[RE:HL Mod] ^x01Score Saved!")
 
colored_msg(idmsgMSG_ONEsaytext)
 
format(msg249"^x04[RE:HL Mod] ^x01You have '^x03%d^x01' Points!"rehl_points[id])
 
colored_msg(idmsgMSG_ONEsaytext)
 
 
nvault_close(gVaultHandle)
 
 
check_top15(id)
 
 return 
PLUGIN_HANDLED
}
 
// and...
 
public client_disconnect(id)
{
 
SaveScore(id)

??
If he is disconnecting, he won't be able to see the message "Scored saved! Your score is blabla", since disconnecting is almost immediate.

One more time - I'M JUST THINKING STILL NOT SURE (I don't know much ).

And I think that if you do this:
PHP Code:
public client_disconnecting(id)
{
      
SaveScore(id);

You don't have to call SaveScore and LoadScore as a public function. That's at least what I understood from.. umm... I forgot... a pro scripter but i'm not sure who.
That will be fixed in v1.0
And about being public
I got that from the XP mod tutorial
And there was a is_user_connected() for savescore but removed it to try something and forgot to put it back ^^"
__________________
My Approved Plugins:
Sam Tsuki

HvM XP Mod's addons:
Co-op Maps
Money System
Sam Tsuki is offline
Sam Tsuki
Senior Member
Join Date: Apr 2008
Location: KoKoRo!
Old 08-19-2008 , 22:27   Re: Resident Evil: Half-Life BETA
Reply With Quote #28

Quote:
Originally Posted by hleV View Post
These 2 aren't bugs.

I've tried this mod (only with 2 people though) and saw that the HCs (Head Crabs) are acting strange. They sometimes attack and sometimes they don't do anything. Also when they die their bodies disappear strangely.
If you mean they disappear immediatly that's cuz
when someone shoots them in dying animation, he gets points
__________________
My Approved Plugins:
Sam Tsuki

HvM XP Mod's addons:
Co-op Maps
Money System
Sam Tsuki is offline
Sam Tsuki
Senior Member
Join Date: Apr 2008
Location: KoKoRo!
Old 08-20-2008 , 00:59   Re: Resident Evil: Half-Life BETA
Reply With Quote #29

OMG!!!
BIG PROBLEM!!!
I need to block rounds from ending if all the human zombies died
If that's not possible then we need at least a fake player that stays alive in T team
Anyone can help with this???

EDIT: Fixed ^O^
__________________
My Approved Plugins:
Sam Tsuki

HvM XP Mod's addons:
Co-op Maps
Money System

Last edited by Sam Tsuki; 08-20-2008 at 05:22.
Sam Tsuki is offline
Sam Tsuki
Senior Member
Join Date: Apr 2008
Location: KoKoRo!
Old 08-20-2008 , 06:02   Re: Resident Evil: Half-Life v1.0
Reply With Quote #30

New Version: 1.0
__________________
My Approved Plugins:
Sam Tsuki

HvM XP Mod's addons:
Co-op Maps
Money System
Sam Tsuki 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 13:45.


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