Raised This Month: $ Target: $400
 0% 

[L4D2] Weapon Unlock v0.8.1


Post New Thread Reply   
 
Thread Tools Display Modes
Crimson_Fox
Senior Member
Join Date: Mar 2009
Old 01-04-2010 , 20:20   Re: [L4D2] Weapon Unlock v0.2.1
Reply With Quote #51

Quote:
Originally Posted by Jоnny View Post


Code:
public OnMapStart()
{
    //Precache hidden weapon models to avoid crashes.
    PrecacheModel("models/v_models/v_rif_sg552.mdl")
    PrecacheModel("models/w_models/weapons/w_rifle_sg552.mdl")
    PrecacheModel("models/v_models/v_smg_mp5.mdl")
    PrecacheModel("models/w_models/weapons/w_smg_mp5.mdl")
    PrecacheModel("models/v_models/v_snip_awp.mdl")
        PrecacheModel("models/w_models/weapons/w_sniper_awp.mdl")
    PrecacheModel("models/v_models/v_snip_scout.mdl")
    PrecacheModel("models/w_models/weapons/w_sniper_scout.mdl")
    //Search through the entities,
    new String:EdictClassName[128]
    for (new i = 0; i <= GetEntityCount(); i++)
...
PrecacheModel("models/v_models/v_rif_sg552.mdl")
Not sure what you're getting at, it's already on the first line there.
Crimson_Fox is offline
ionxp
BANNED
Join Date: Oct 2009
Old 01-04-2010 , 20:25   Re: [L4D2] Weapon Unlock v0.2.1
Reply With Quote #52

server crashes with this plugin,it's because the models are missing from the game
ionxp is offline
Crimson_Fox
Senior Member
Join Date: Mar 2009
Old 01-04-2010 , 20:30   Re: [L4D2] Weapon Unlock v0.2.1
Reply With Quote #53

Quote:
Originally Posted by ionxp View Post
server crashes with this plugin,it's because the models are missing from the game
Are you running the latest version?
Crimson_Fox is offline
ionxp
BANNED
Join Date: Oct 2009
Old 01-04-2010 , 20:39   Re: [L4D2] Weapon Unlock v0.2.1
Reply With Quote #54

yes,maybe it's because only the german version has those files
ionxp is offline
Crimson_Fox
Senior Member
Join Date: Mar 2009
Old 01-04-2010 , 21:16   Re: [L4D2] Weapon Unlock v0.2.1
Reply With Quote #55

Quote:
Originally Posted by ionxp View Post
yes,maybe it's because only the german version has those files
No, everyone has those files. It's just that the weapons are disabled on everyone else's. Do this:

Code:
sm plugins list
Then paste the output here.
Crimson_Fox is offline
ionxp
BANNED
Join Date: Oct 2009
Old 01-04-2010 , 21:33   Re: [L4D2] Weapon Unlock v0.2.1
Reply With Quote #56

"utlmemory.h (322) : Assertion Failed: IsIdxValid(i)"
This is what i get before the server crashes with the instruction error
This was tested with sourcemod 1.3 and only it's plugins and yours

Last edited by ionxp; 01-04-2010 at 21:41.
ionxp is offline
dacomb
Senior Member
Join Date: Oct 2009
Old 01-04-2010 , 22:05   Re: [L4D2] Weapon Unlock v0.2.1
Reply With Quote #57

In Versus for some reason if CS:S weapons spawn for Team A they don't spawn in the same place for Team B if they spawn at all.
I've been using the Weapon Spawn plugin to give the other the same guns in the short term.
Can you turn on some sort of logging so I can post up some logs for you?
Otherwise it works well.

Last edited by dacomb; 01-04-2010 at 22:09.
dacomb is offline
JackieChan
AlliedModders Donor
Join Date: Nov 2009
Old 01-04-2010 , 23:06   Re: [L4D2] Weapon Unlock
Reply With Quote #58

Quote:
Originally Posted by Crimson_Fox View Post
Try the version of SourceMod I'm using. That may be the problem.
That wasn't the issue.

Through filtering out my plugins, I found the one that was causing the problem. It was Admin Cheats. Not a huge loss in not having it, but it was useful in certain situations.

Wouldn't have thought that would be the one causing someone not to be able to pick up those weapons...
JackieChan is offline
Downtown1
Veteran Member
Join Date: Mar 2004
Old 01-04-2010 , 23:15   Re: [L4D2] Weapon Unlock v0.2.1
Reply With Quote #59

Quote:
Originally Posted by dacomb View Post
In Versus for some reason if CS:S weapons spawn for Team A they don't spawn in the same place for Team B if they spawn at all.
I've been using the Weapon Spawn plugin to give the other the same guns in the short term.
Can you turn on some sort of logging so I can post up some logs for you?
Otherwise it works well.
Maybe spawns need to be re-created each round_start ? I would imagine all the entities get reset after the round is over.
Downtown1 is offline
Jоnny
Senior Member
Join Date: Jun 2007
Old 01-04-2010 , 23:23   Re: [L4D2] Weapon Unlock v0.2.1
Reply With Quote #60

one more time
Jоnny 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 17:04.


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