Raised This Month: $39 Target: $400
 9% 

[CS:GO] Ghosts on Death - Death effect special Halloween!


Post New Thread Reply   
 
Thread Tools Display Modes
xxtolgaxx
New Member
Join Date: Apr 2018
Old 04-28-2018 , 18:24   Re: [CS:GO] Ghosts on Death - Death effect special Halloween!
Reply With Quote #31

Quote:
Originally Posted by Franc1sco View Post
Description:

Apply a ghost effect on death event made by particles and materials. Particles and materials made by iEx, also he allowed me to sell this plugin but I prefer to release it for everyone (and as start of my new serious code style).


Note: I made this plugin with a more professional code style (correctly variables named, calls, comments, etc) because since now I am studying programming in an official classroom and I intend to become a real programmer. After now no more spanish/spaghetti code from my side, because in the past I made the code faster because it was only a hobby for me, but now it will be my real job.

I will rewrite more of my plugins with a serious code style soon. Advice to improve my current serious code style are stremly welcome, I want to do it the most professional that it can.


Media:
Spoiler



Cvars:
Code:
sm_ghost_time "0.0" // Ghost appear time, 0.0 = Disappear in next round start.
sm_ghost_warmup "0" // Ghost appear in warmup? 1 = yes, 0 = no"
sm_ghost_warmup_time "10.0" // Ghost appear time in warmup. 0.0 = Forever.
sm_ghost_team_color "1" //Set ghost color depending on client team? 1 = yes, 0 = no, use random.

Server to test it yourself:




Commands:

sm_ghost - Disable the ghost effect per client.

sm_ghosts - Disable ghosts in general (Root admin needed).


Download:

Main repository
Direct download
Code changes
hello ghost plugin teach me how to install
xxtolgaxx is offline
Totenfluch
AlliedModders Donor
Join Date: Jan 2012
Location: Germany
Old 04-28-2018 , 18:32   Re: [CS:GO] Ghosts on Death - Death effect special Halloween!
Reply With Quote #32

Quote:
Originally Posted by Franc1sco View Post
Advice to improve my current serious code style are stremly welcome
This may be up to debate but here are a few points:

- Never leave "dead" Code in the Plugin

https://github.com/Franc1sco/GhostOn..._effect.sp#L62
https://github.com/Franc1sco/GhostOn..._effect.sp#L86
https://github.com/Franc1sco/GhostOn...effect.sp#L271

- Always use brackets
I used to not do brackets for a single line after but it's realy confusing for starters.
Not doing a bracket for a single if is fine. But if you follow with an else it's realy bad in my opinion

https://github.com/Franc1sco/GhostOn...effect.sp#L207
https://github.com/Franc1sco/GhostOn...effect.sp#L247
__________________
Notable Projects:
Event Item Spawner | Scissors, Rock, Paper for ZephStore
tVip | Smart Link Remover
PLG & GGC - CS:GO Roleplay

and countless more...

I can make a helicopter shoot missles if you want me to...
Totenfluch is offline
alex123pavlov
Member
Join Date: Jun 2018
Location: Moscow
Old 06-16-2018 , 11:28   Re: [CS:GO] Ghosts on Death - Death effect special Halloween!
Reply With Quote #33

make for cssurce pls
alex123pavlov is offline
Terminatorr
Member
Join Date: Dec 2018
Old 01-02-2019 , 16:20   Re: [CS:GO] Ghosts on Death - Death effect special Halloween!
Reply With Quote #34

Dose this still working?
I keep getting error on round start and exit game.
Pure server; Game/material/effects/largsmoke is different or something like that.
Terminatorr is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 01-02-2019 , 19:16   Re: [CS:GO] Ghosts on Death - Death effect special Halloween!
Reply With Quote #35

Quote:
Originally Posted by Terminatorr View Post
Dose this still working?
I keep getting error on round start and exit game.
Pure server; Game/material/effects/largsmoke is different or something like that.
Yes, it works well.

You need to configure sv pure or just put sv_pure 0 into your server.cfg
__________________
Veteran SourceMod Coder -> Activity channel
Taking paid and free jobs.
Contact: Steam, Telegram or discord ( Franc1sco#7876 ).

You like my work? +Rep in my steam profile comments or donate.

Franc1sco is offline
Send a message via MSN to Franc1sco
InfoTheRalle
Member
Join Date: Sep 2016
Old 05-06-2019 , 11:25   Re: [CS:GO] Ghosts on Death - Death effect special Halloween!
Reply With Quote #36

Hey!, is it possibile to use it with a model, like a Crow??.

Greetings TheRalle

Last edited by InfoTheRalle; 05-06-2019 at 11:26.
InfoTheRalle is offline
sarwan
New Member
Join Date: Jun 2020
Old 06-03-2020 , 14:07   Re: [CS:GO] Ghosts on Death - Death effect special Halloween!
Reply With Quote #37

Hey all- quick question. Some of my players are able to see the ghosts while others are not able to. For the players that are unable to view the ghosts- the following errors occur.

Attempting to create unknown particle system 'Ghost_Cyan'
Attempting to create unknown particle system 'Ghost_Cyan'
Attempting to create unknown particle system 'Ghost_Cyan'

If anyone is able to tell me why this doesn't work, let me know.
sarwan is offline
HKS 27D
New Member
Join Date: Sep 2020
Old 12-10-2020 , 11:54   Re: [CS:GO] Ghosts on Death - Death effect special Halloween!
Reply With Quote #38

Hello!

It would be nice to add a new feature really needed:
- the time for a ghost effect to be showed (after this time is over, the ghost will smply dissapear).

Would it be to much impact on the CSGO Server VAR if we calculate the ghost time for every dead player?
HKS 27D 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 18:34.


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