Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync Garrysmod #2

Merged
merged 1,783 commits into from
Oct 31, 2021
Merged

Sync Garrysmod #2

merged 1,783 commits into from
Oct 31, 2021

Conversation

dvdvideo1234
Copy link
Owner

No description provided.

robotboy655 and others added 30 commits September 18, 2020 16:59
Also removed a bunch of unused variables, etc, shuffled code around, fixed a potential error with thruster effects
spawnmenu_reload
New background image, scales better with custom tool panel width, holding SHIFT should now make it easier to position fingers
It returns a table of all list names.
Also aligned checkbox labels in New game
* Add player_manager.GetTable() and PLAYER:Destroy()

Getting the table of registered player classes is a pain and PLAYER:Destroy() would be useful for removing things that aren't garbage collected, such as client-side props and projected textures. Also, method.Func looks useless, might want to remove it.
* Fix mass vector_origin replacement bug

Caused by b9839ed#diff-5dec0ab92ef177ebb4780d5ee7fd4cddb6b4701902f4496738d4c7b51cd4d69cR136

* Update gmod_hoverball.lua

Co-authored-by: Rubat <robotboy655@facepunchstudios.com>
Enables by default:

- ttt_detective_hats
- ttt_teleport_telefrags
- ttt_no_nade_throw_during_prep

Fixes #1738
robotboy655 and others added 28 commits July 23, 2021 18:06
Added 3rd argument to spawnmenu.ActivateToolPanel
Adds duplicator.FigureOutRequiredAddons
Fixed constraint.GetAllConstrainedEntities returning all entities constrained to world if the given entity is constrained to world
Incorrect form

> ВЫБЕРЕТЕ ОБРАЗЕЦ

Correct

> ВЫБЕРИТЕ ОБРАЗЕЦ

The word “выберите” expresses a wish, request, or order. In this context, the verb form of the imperative plural is used.

https://russkiiyazyk.ru/orfografiya/pravopisanie/kak-pravilno-pishetsya-slovo-vyiberete-ili-vyiberite.html
* New player mic volume tip

* Increased number of tips
* Made hook.Add/Remove not silently fail on arg type mismatch

In the rare case a typo was made for the hook args, it is now noticeable.
* Add table.Shuffle

Performs an inline Fisher-Yates shuffle on the table in O(n) time

* table.Shuffle small optimization
* New library: ease

* ease -> math.ease

* fix: call correct math.ease function

probably a module leftover

* Reduce repeated multiplication to powers

* Reduce _G lookups and use a `module()`

Co-authored-by: Tom <27384135+CupCakeR@users.noreply.github.com>
Example usage

```lua
function ENT:KeyValue( key, value )
	if ( BaseClass.KeyValue ) then BaseClass.KeyValue( self, key, value ) end

	if ( self:SetNetworkKeyValue( key, value ) ) then
		return
	elseif ( self:AddOutputFromKeyValue( key, value ) ) then
		return
	end

	-- Your entity's logic goes here

end

function ENT:AcceptInput( name, activator, called, value )
	if ( BaseClass.AcceptInput and BaseClass.AcceptInput( self, name, activator, called, value ) ) then
		return true
	end

	if ( self:AddOutputFromAcceptInput( name, value ) ) then
		return true
	end

	-- Your entity's logic goes here

	return false

end
```
This simply matches behavior of the "old" method which ends up with lowercase keys.
@dvdvideo1234 dvdvideo1234 merged commit 3b03318 into dvdvideo1234:master Oct 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.