CabConModding
Facebook
Twitter
youtube
Discord
Contact us
RSS
Menu
CabConModding
Home
New
Top
Premium
Rules
FAQ - Frequently Asked Questions
Games
Fornite
Call of Duty: Black Ops 3
Clash of Clans
Grand Theft Auto 5
Apex Legends
Assassin’s Creed Origins
Forums
Premium
Latest posts
What's new
Latest posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Log in
Register
What's new
Premium
Latest posts
Menu
Log in
Register
Navigation
Install the app
Install
More options
Dark Theme
Contact us
Close Menu
Forums
Projects
Black Ops 2 Redacted T6
REQUEST GSC
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="CF4_99" data-source="post: 47597" data-attributes="member: 201"><p>Bounce On Any Map Entity Or Spawned Entity With Custom Bounce Height of your choice for each entity.</p><p>[CODE]</p><p>TestBounce() //This is an example of how to call SpawnBounce on an entity.</p><p>{</p><p> bounceObj = spawnSM(self.origin,"com_plasticcase_friendly");</p><p> bounceObj thread SpawnBounce(900);</p><p>}</p><p></p><p>SpawnBounce(bounceHeight)</p><p>{</p><p> while(isDefined(self))</p><p> {</p><p> foreach(player in level.players)</p><p> {</p><p> if(Distance(self.origin, player.origin) < 25)</p><p> player SetVelocity(player GetVelocity()+(0,0,bounceHeight));</p><p> }</p><p> wait .01;</p><p> }</p><p>}[/CODE]</p><p></p><p>Lower Death Barriers: You can either put this in your init to lower them automatically, or make it into a function.</p><p>[CODE]DeathBarriers = GetEntArray("trigger_hurt", "classname");</p><p>foreach(Barrier in DeathBarriers)</p><p> Barrier.origin = (0,0,9999999);[/CODE]</p></blockquote><p></p>
[QUOTE="CF4_99, post: 47597, member: 201"] Bounce On Any Map Entity Or Spawned Entity With Custom Bounce Height of your choice for each entity. [CODE] TestBounce() //This is an example of how to call SpawnBounce on an entity. { bounceObj = spawnSM(self.origin,"com_plasticcase_friendly"); bounceObj thread SpawnBounce(900); } SpawnBounce(bounceHeight) { while(isDefined(self)) { foreach(player in level.players) { if(Distance(self.origin, player.origin) < 25) player SetVelocity(player GetVelocity()+(0,0,bounceHeight)); } wait .01; } }[/CODE] Lower Death Barriers: You can either put this in your init to lower them automatically, or make it into a function. [CODE]DeathBarriers = GetEntArray("trigger_hurt", "classname"); foreach(Barrier in DeathBarriers) Barrier.origin = (0,0,9999999);[/CODE] [/QUOTE]
Verification
Post reply
Forums
Projects
Black Ops 2 Redacted T6
REQUEST GSC
CabConModding is now on facebook! Check the latest Updates, the Site Status and much more now!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top