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

[TF2] Generating golden statue on victim on hit?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
deadmau54
AlliedModders Donor
Join Date: May 2013
Old 08-03-2020 , 08:35   [TF2] Generating golden statue on victim on hit?
Reply With Quote #1

Anyone has any ideas how to do this?

I would basically like to make a certain weapon (golden pan) make golden statue on victims on any hit, not just kill.

Thank you.
__________________

Last edited by deadmau54; 08-03-2020 at 08:36.
deadmau54 is offline
PC Gamer
Veteran Member
Join Date: Mar 2014
Old 08-03-2020 , 12:02   Re: [TF2] Generating golden statue on victim on hit?
Reply With Quote #2

Post the sourcecode you are using that gives the pan to the player.

It can be edited to add attribute 150 (turn to gold) to the weapon when it is given to the player.
PC Gamer is offline
deadmau54
AlliedModders Donor
Join Date: May 2013
Old 08-06-2020 , 19:20   Re: [TF2] Generating golden statue on victim on hit?
Reply With Quote #3

Quote:
Originally Posted by PC Gamer View Post
Post the sourcecode you are using that gives the pan to the player.

It can be edited to add attribute 150 (turn to gold) to the weapon when it is given to the player.
I am aware of this attribute, but am more interested in the code which would make the golden pan weapon (or any set weapon id) produce a golden statue on hit, not just on kill.
__________________
deadmau54 is offline
PC Gamer
Veteran Member
Join Date: Mar 2014
Old 08-07-2020 , 01:51   Re: [TF2] Generating golden statue on victim on hit?
Reply With Quote #4

I took the liberty of making the requested plugin for you. It uses code snippets from the [TF2] Special Ragdolls plugin written by Nanochip (link: https://forums.alliedmods.net/showthread.php?p=2633926).

Name: [TF2] Midas - Turn to Gold on Melee Hit
Description: Victim turns to gold when hit by melee weapon
Access needed for commands: ADMIN_SLAY
Commands:
sm_midas (toggles midas effect ON. Any player hit will immediately die and turn to gold)
sm_nomidas (removes midas effect)
usage: !midas <target> or !nomidas <target> or !midas if used on self

Note: This does not give player a weapon. It works with their current melee weapon.

Enjoy!
Attached Files
File Type: sp Get Plugin or Get Source (midas.sp - 133 views - 5.6 KB)

Last edited by PC Gamer; 08-08-2020 at 00:10. Reason: sourcecode edit
PC Gamer is offline
deadmau54
AlliedModders Donor
Join Date: May 2013
Old 08-26-2020 , 08:46   Re: [TF2] Generating golden statue on victim on hit?
Reply With Quote #5

Quote:
Originally Posted by PC Gamer View Post
I took the liberty of making the requested plugin for you. It uses code snippets from the [TF2] Special Ragdolls plugin written by Nanochip (link: https://forums.alliedmods.net/showthread.php?p=2633926).

Name: [TF2] Midas - Turn to Gold on Melee Hit
Description: Victim turns to gold when hit by melee weapon
Access needed for commands: ADMIN_SLAY
Commands:
sm_midas (toggles midas effect ON. Any player hit will immediately die and turn to gold)
sm_nomidas (removes midas effect)
usage: !midas <target> or !nomidas <target> or !midas if used on self

Note: This does not give player a weapon. It works with their current melee weapon.

Enjoy!
Thank you for this, I truly appreciate it! Although, would it be possible that the enemy doesn't die on hit but still produces a golden statue? So the weapon deals normal damage but only produces golden statues on hit.
__________________
deadmau54 is offline
PC Gamer
Veteran Member
Join Date: Mar 2014
Old 08-28-2020 , 02:08   Re: [TF2] Generating golden statue on victim on hit?
Reply With Quote #6

Quote:
Originally Posted by deadmau54 View Post
Thank you for this, I truly appreciate it! Although, would it be possible that the enemy doesn't die on hit but still produces a golden statue? So the weapon deals normal damage but only produces golden statues on hit.
That's an odd request... But here you go. This version allows the attacker with any melee weapon to give normal damage but still produces a golden statue of the victim on hit.
Attached Files
File Type: sp Get Plugin or Get Source (midas.sp - 132 views - 5.1 KB)
PC Gamer is offline
deadmau54
AlliedModders Donor
Join Date: May 2013
Old 08-29-2020 , 09:58   Re: [TF2] Generating golden statue on victim on hit?
Reply With Quote #7

Quote:
Originally Posted by PC Gamer View Post
That's an odd request... But here you go. This version allows the attacker with any melee weapon to give normal damage but still produces a golden statue of the victim on hit.
Thank you so much, it's perfect!
__________________
deadmau54 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 19:35.


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