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

[L4D & L4D2] Achievement Trophy (2.7) [11-Dec-2022]


Post New Thread Reply   
 
Thread Tools Display Modes
honorcode23
BANNED
Join Date: Mar 2010
Location: Chile
Old 10-03-2010 , 13:51   Re: [L4D & L4D2] Achievement Trophy (30-Sep v1.3)
Reply With Quote #21

Hey you could use this function on map starts .

PHP Code:
stock PrecacheParticle(String:ParticleName[])
{
    new 
Particle CreateEntityByName("info_particle_system");
    if(
IsValidEntity(Particle) && IsValidEdict(Particle))
    {
        
DispatchKeyValue(Particle"effect_name"ParticleName);
        
DispatchSpawn(Particle);
        
ActivateEntity(Particle);
        
AcceptEntityInput(Particle"start");
        
CreateTimer(0.3timerRemovePrecacheParticleParticleTIMER_FLAG_NO_MAPCHANGE);
    }
}

public 
Action:timerRemovePrecacheParticle(Handle:timerany:Particle)
{
    if(
IsValidEntity(Particle) && IsValidEdict(Particle))
    {
        
AcceptEntityInput(Particle"Kill");
    }

Just like PrecacheSound, do PrecacheParticle("particlename");

Hope it helps
honorcode23 is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 10-03-2010 , 14:17   Re: [L4D & L4D2] Achievement Trophy (30-Sep v1.3)
Reply With Quote #22

Thanks I'll update at some point
__________________
Silvers is offline
retroGamer
New Member
Join Date: Oct 2010
Old 10-04-2010 , 00:03   Re: [L4D & L4D2] Achievement Trophy (30-Sep v1.3)
Reply With Quote #23

I made some changes to this nice plugin, added mostly tweaks for thirdpersonshoulder camera and restoring client old camera settings. Worked on v1.2 but added v1.3 particle spawning at round start.

Changelog:
- Destroy running particle timers on round end / map end / changelevel / disconnect / plugin disable
- Added convars for thirdpersonshoulder camera time (zero to disable) and how long trophies are shown
- Added check if player is playing with thirdpersonshoulder camera to avoid forcing to first person
- Saved client's previous cvar settings before changing thirdpersonshoulder cvars and restore them
- Added spawning info_particle_system by honorcode23 on event round_start (from v1.3)
- Return client back to first person mode and restore cvar settings if ClientView-timer is running and map changes
- Disabled trophy effect when finale_vehicle_leaving event fires temporarily until OnMapStart()

This is still work in progress, I'm planning to add some features and do proper testing.
Attached Files
File Type: sp Get Plugin or Get Source (l4d_achievement_trophy.sp - 719 views - 23.7 KB)
retroGamer is offline
retroGamer
New Member
Join Date: Oct 2010
Old 10-04-2010 , 02:09   Re: [L4D & L4D2] Achievement Trophy (30-Sep v1.3)
Reply With Quote #24

Forgot checking scavenge events on L4D1, this version will run also on L4D1 server.
Attached Files
File Type: sp Get Plugin or Get Source (l4d_achievement_trophy.sp - 684 views - 23.9 KB)
retroGamer is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 10-04-2010 , 02:25   Re: [L4D & L4D2] Achievement Trophy (30-Sep v1.3)
Reply With Quote #25

Thanks retroGamer.
__________________
Silvers is offline
retroGamer
New Member
Join Date: Oct 2010
Old 10-06-2010 , 00:55   Re: [L4D & L4D2] Achievement Trophy (30-Sep v1.3)
Reply With Quote #26

This is final version of plugin I posted earlier. Call it v1.4 if you wish.


New plugin features (compared to v1.2/v1.3):

- Trophy effect can be played constantly (up to 15 minutes), convar to disable looping effect
- Trophy effect is removed and camera settings are restored when map changes, player dies or changes team
- Support for players playing with thirdpersoncamera
- Saving and restoring player's old convars in case camera settings are changed by plugin (saving enabled by default, convar to disable)
- Convars to specify thirdpersoncamera settings

Convar list:

l4d_trophy_enabled - 0=Disables, 1=Enables, 2=Enables with 3rd person view. Turn the plugin on.
l4d_trophy_showtime - How long trophies are shown in seconds?
l4d_trophy_thirdpersontime - How long thirdperson view is shown in seconds? Zero disables changing to thirdperson view.
l4d_trophy_loopeffect - View trophy effect multiple times until l4d_trophy_showtime is up? If not, trophy effect is shown only once. 0=Show once, 1=Show again.
l4d_trophy_saveconvars - Save and restore client camera setting convars? 0=No, 1=Save.
l4d_trophy_tpsoffset - To which value c_thirdpersonshoulderoffset is changed when using thirdperson camera. You can't override default limits.
l4d_trophy_tpsaimdist - To which value c_thirdpersonshoulderaimdist is changed when using thirdperson camera. You can't override default limits.
l4d_trophy_camideallag - To which value cam_ideallag is changed when using thirdperson camera. You can't override default limits.
l4d_trophy_camidealdist - To which value cam_idealdist is changed when using thirdperson camera. You can't override default limits.

You need to delete old config file if you're using v1.2/1.3.
Attached Files
File Type: sp Get Plugin or Get Source (l4d_achievement_trophy.sp - 1172 views - 29.8 KB)
retroGamer is offline
xindong
Member
Join Date: Dec 2010
Old 04-20-2011 , 04:17   Re: [L4D & L4D2] Achievement Trophy (30-Sep v1.4)
Reply With Quote #27

This plugin too great, can increase kill Tank and Witch etc are particularly interested in whether there will be a trophy files?
I hope you can put it updates to 1.5
Come on!
xindong is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 04-20-2011 , 05:54   Re: [L4D & L4D2] Achievement Trophy (30-Sep v1.4)
Reply With Quote #28

Increase Tank and Witch? What are you on about? Yeah will update sometime...
__________________
Silvers is offline
alexip121093
Senior Member
Join Date: Dec 2009
Location: Hong Kong
Old 04-20-2011 , 07:09   Re: [L4D & L4D2] Achievement Trophy (30-Sep v1.4)
Reply With Quote #29

Quote:
Originally Posted by Silvers View Post
Increase Tank and Witch? What are you on about? Yeah will update sometime...
I am Chinese , i get what he means ....


he wants ....
1. the player that killed the tank or witch can get the achievement particle effect
2. a achievement files ??? <==== dont really know maybe custom achievements or achievements list?
__________________
alexip121093 is offline
Send a message via MSN to alexip121093
Omer246810
New Member
Join Date: Apr 2011
Old 04-25-2011 , 04:04   Re: [L4D & L4D2] Achievement Trophy (30-Sep v1.4)
Reply With Quote #30

oi when i type in the command to make it work l4d_trophy_enabled 2
it said you cannot (the code) in multiplayer even tho i click on single player start it up and still it said that plz help
Omer246810 is offline
Reply


Thread Tools
Display Modes

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 20:17.


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