AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CS:GO] Hats (with editor menu and 3rd person) (https://forums.alliedmods.net/showthread.php?t=275306)

Franc1sco 11-26-2015 23:25

[CS:GO] Hats (with editor menu and 3rd person)
 
Demostration video:


btw, not laugh much of my horrible speaking english xD :stupid::oops::oops:

Test server: http://cache.gametracker.com/server_...FFF_000000.png


Description

Hats plugin with these features:
  • All the default csgo hats included (not download needed)
  • Auto download custom hats files
  • 3rd person camera (with front-view) when you have the !hats menu or the !editor menu opened (for can see your hat)
  • Advanced editor for change the position and angle of the hat and save it in the file
  • Your hat selection is saved using clientprefs
  • On the model change event, you hats are refreshed (Compatible with skinchooser plugins, zombie servers, etc)


Requeriments:

Dhooks


Configuration:

You can add more hats in the addons/sourcemod/configs/franug_hats.txt file with this format
Code:

        "Hat name"
        {
                "model"                "hat route"
                "attachment"                "attachment used from the model, for example facemask or forward. (facemask by default)"
                "position"                "hat position"
                "angles"                "hat angles"
                "bonemerge"                "Bonemerge hat to the playermodel. Enabled = 1. Disabled = 0 (default = 0)"
                "flag"                "admin flag required for use this model. Leave in blank for public access (public access by default)"
                "hide"                "Hide hat model in first person view. Enabled = 1. Disabled and less cpu usage = 0 (default = 1)"
        }

Example:
Code:

        "White wings"
        {
                "model"                "models/shop/wings/white.mdl"
                "position"                "-1.500000 -6.500000 -11.500000"
                "angles"                "-65.000000 170.000000 0.000000"
                "hide"                "0"
        }
        "Santa"
        {

                "model"                "models/player/holiday/santahat.mdl"
                "attachment"                "facemask"
                "position"                "-1.500000 -4.500000 0.000000"
                "angles"                "-2.500000 12.500000 13.000000"
                "flag"                "b"
        }


Cvars:
Put in server.cfg
Code:

sm_franughats_thirdperson "1" // Enable/disable third-person while using "sm_hats" or "sm_editor"

Commands:

!hats - open the hats menu
!editor - open the editor menu for change the angle and position of the a hat (Root admin flag required)
!reloadhats - Reload hats configuration. You should change map if you add new hats models (Root admin flag required)


Todo list:

-More optimized


Changelog:

Code:

Version 3.2
  • -Hide radar on third-person view

  • -Hide crosshair on third-person view


Version 3.1
  • -Added support for differents angles and positions depending of the player models

  • -Some fixes


Version 3.0
  • -Now the plugin use the New API and Syntax


Version 2.4.1
  • -Fixed some small issues


Version 2.4
  • -Fixed finally the crashes with bots

  • -Optimizations


Version 2.3
  • -Optimizations in the SDKHook_SetTransmit function.

  • -Added new "hide" value to the configuration file for dont use SDKHook_SetTransmit if not needed (less cpu usage). Check it in the example of the first post.

  • -Added one new ConVar (see below).

  • -Added a translation file.

  • -Improved the flags system.

  • -Fixed a crash with bots.

  • -New cvar sm_franughats_thirdperson "1" - Enable/disable third-person while using "sm_hats" or "sm_editor"


Version 2.2
  • -Removed gamedata dependency and now the plugin works in Windows servers too.

  • -Fixed that sometimes the hat not appear in player spawn.


Version 2.1
  • -A lot of optimizations

  • -Now on the model change event, you hats are refreshed (Compatible with skinchooser plugins, zombie servers, etc)

  • -Added flag support for each hat (see the example cfg in the first post)

  • -Fixed some bugs

  • -Now the 3rd person camera have front-view support always

  • -Added new command !reloadhats - Reload hats configuration. You should change map if you add new hats models (Root admin flag required)

  • Now Dhooks is required



Donations (optional):

If you apreciate my work, you can donate me via paypal or with a trade offer


Download:

Main repository
Direct download
Code changes

Franc1sco 11-26-2015 23:25

Re: [CS:GO] Hats (with editor menu and 3rd person)
 
3 Attachment(s)
Reserved for custom hats

Santa hat configuration:
Code:

        "Santa hat"
        {
                "model"                "models/player/holiday/santahat.mdl"
                "position"                "-1.500000 -4.500000 0.000000"
                "angles"                "-2.500000 12.500000 13.000000"
        }

Screenshots:
Not download required for CS:GO


Wings hats configuration:
Code:

        "Blue wings"
        {
                "model"                "models/shop/wings/blue.mdl"
                "position"                "-1.500000 -6.500000 -11.500000"
                "angles"                "-65.000000 170.000000 0.000000"
                "hide"                "0"
        }
        "Cyan wings"
        {
                "model"                "models/shop/wings/cyan.mdl"
                "position"                "-1.500000 -6.500000 -11.500000"
                "angles"                "-65.000000 170.000000 0.000000"
                "hide"                "0"
        }
        "Green wings"
        {
                "model"                "models/shop/wings/green.mdl"
                "position"                "-1.500000 -6.500000 -11.500000"
                "angles"                "-65.000000 170.000000 0.000000"
                "hide"                "0"
        }
        "Red wings"
        {
                "model"                "models/shop/wings/red.mdl"
                "position"                "-1.500000 -6.500000 -11.500000"
                "angles"                "-65.000000 170.000000 0.000000"
                "hide"                "0"
        }
        "White wings"
        {
                "model"                "models/shop/wings/white.mdl"
                "position"                "-1.500000 -6.500000 -11.500000"
                "angles"                "-65.000000 170.000000 0.000000"
                "hide"                "0"
        }
        "Perfectworld wings 1"
        {
                "model"                "models/shop/perfectworld_wings01_v3.mdl"
                "position"                "-1.500000 -6.500000 -11.500000"
                "angles"                "-65.000000 170.000000 0.000000"
                "hide"                "0"
        }
        "Perfectworld wings 2"
        {
                "model"                "models/shop/perfectworld_wings02_v3.mdl"
                "position"                "-1.500000 -6.500000 -11.500000"
                "angles"                "-65.000000 170.000000 0.000000"
                "hide"                "0"
        }
        "Perfectworld wings 3"
        {
                "model"                "models/shop/perfectworld_wings03_v3.mdl"
                "position"                "-1.500000 -6.500000 -11.500000"
                "angles"                "-65.000000 170.000000 0.000000"
                "hide"                "0"
        }
        "Perfectworld wings 4"
        {
                "model"                "models/shop/perfectworld_wings04_v3.mdl"
                "position"                "-1.500000 -6.500000 -11.500000"
                "angles"                "-65.000000 170.000000 0.000000"
                "hide"                "0"
        }
        "Perfectworld wings 5"
        {
                "model"                "models/shop/perfectworld_wings05_v3.mdl"
                "position"                "-1.500000 -6.500000 -11.500000"
                "angles"                "-65.000000 170.000000 0.000000"
                "hide"                "0"
        }
        "Perfectworld wings 6"
        {
                "model"                "models/shop/perfectworld_wings06_v3.mdl"
                "position"                "-1.500000 -6.500000 -11.500000"
                "angles"                "-65.000000 170.000000 0.000000"
                "hide"                "0"
        }
        "Perfectworld wings 7"
        {
                "model"                "models/shop/perfectworld_wings07_v3.mdl"
                "position"                "-1.500000 -6.500000 -11.500000"
                "angles"                "-65.000000 170.000000 0.000000"
                "hide"                "0"
        }
        "Perfectworld wings 8"
        {
                "model"                "models/shop/perfectworld_wings08_v3.mdl"
                "position"                "-1.500000 -6.500000 -11.500000"
                "angles"                "-65.000000 170.000000 0.000000"
                "hide"                "0"
        }
        "Perfectworld wings 9"
        {
                "model"                "models/shop/perfectworld_wings09_v3.mdl"
                "position"                "-1.500000 -6.500000 -11.500000"
                "angles"                "-65.000000 170.000000 0.000000"
                "hide"                "0"
        }

Screenshots:

Download wings models HERE



Download accessoriespack from gmod HERE

Franc1sco 11-26-2015 23:55

Re: [CS:GO] Hats (with editor menu and 3rd person)
 
Ok finally my demostration video have been uploaded to youtube sucessfully! Maybe after now I will upload demostration videos to my plugins and maybe using my horrible speaking english too! :up:

Demostration video:


btw, not laugh much of my horrible speaking english xD :oops::oops:

mazdarx8 11-27-2015 01:09

Re: [CS:GO] Hats (with editor menu and 3rd person)
 
hey,
maybe you can do the mask for store available?

Franc1sco 11-27-2015 01:18

Re: [CS:GO] Hats (with editor menu and 3rd person)
 
Quote:

Originally Posted by mazdarx8 (Post 2366732)
hey,
maybe you can do the mask for store available?

You mean do this plugin for the store plugin like this?

mazdarx8 11-27-2015 01:33

Re: [CS:GO] Hats (with editor menu and 3rd person)
 
Yes exactly

rogeraabbccdd 11-27-2015 06:13

Re: [CS:GO] Hats (with editor menu and 3rd person)
 
Great!
Santa hats for upcoming X'mas!

asdfxD 11-27-2015 06:30

Re: [CS:GO] Hats (with editor menu and 3rd person)
 
when i die my mask is gone, is it normal?

Lannister 11-27-2015 09:11

Re: [CS:GO] Hats (with editor menu and 3rd person)
 
Posibility to add some mask just for admins/vips?

Or maybe that's too much? anyway, GOOD JOB!

whtevrwt 11-27-2015 11:18

Re: [CS:GO] Hats (with editor menu and 3rd person)
 
Your english is not bad at all. :P

Anyway, great plugin. :)


All times are GMT -4. The time now is 21:38.

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